Routing

 View Only
last person joined: 23 hours ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
Expand all | Collapse all

Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

  • 1.  Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-10-2017 10:33

    I am currently using OSPFv3 between the CE and PE in the following scenario. The PEs are Juniper and CEs, another vendor (Cisco). I have enabled the address families/realms for both IPv4 and IPv6  between the CEs and the PEs. OSPF is established and I can see the OSPFv3 routes from the local CE on the local PE which is advertised through MP-BGP to the remote PE. In other words, I can see all OSPFv3 routes in the VPNv4 table. However, remote routes that is imported into the local PE (VRF) is not advertised into OSPFv3. I have configured export/Import policy for OSPF to export the BGP routes from the VRF to OSPF and also for loop prevention using tagging but seems that's not working as I can't see any remote routes in the local CPEs. I checked the OSPFv3 database (and also in realm IPv4-Unicast), no remote route is installed. With OSPFv2, everything works perfect with the exact same configurations w.r.t MPLS VPN.

     

    Any idea what's going on please? Any help will be appreciated.

     

    Thanks.

    Scenario:

    |CE-1| --- |PE-1| ---- |PE-2| --- |CE-2|



  • 2.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-11-2017 20:07

    Hi,

     

    Can you please share the export/import policy which you are using to advertise BGP routes to OSPFv3 here?

     

    Thanks



  • 3.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-11-2017 23:27

    Thanks Sarathirao. Please see below the policy statements for OSPF. I have included the policy statement for the IPVPN also.

     

    set policy-options policy-statement OSPF-EXPORT term 10 from protocol bgp
    set policy-options policy-statement OSPF-EXPORT term 10 then tag 65532
    set policy-options policy-statement OSPF-EXPORT term 10 then accept
    set policy-options policy-statement OSPF-IMPORT term 10 from protocol ospf3
    set policy-options policy-statement OSPF-IMPORT term 10 from tag 65532
    set policy-options policy-statement OSPF-IMPORT term 10 then reject
    set policy-options policy-statement OSPF-IMPORT then accept

     

    set policy-options policy-statement VPN-EXPORT term 10 from protocol direct
    set policy-options policy-statement VPN-EXPORT term 10 from protocol static
    set policy-options policy-statement VPN-EXPORT term 10 from protocol ospf3
    set policy-options policy-statement VPN-EXPORT term 10 then metric 10
    set policy-options policy-statement VPN-EXPORT term 10 then community add SET-RT-1:2888
    set policy-options policy-statement VPN-EXPORT term 10 then accept
    set policy-options policy-statement VPN-EXPORT then reject
    set policy-options policy-statement VPN-IMPORT term 10 from protocol bgp
    set policy-options policy-statement VPN-IMPORT term 10 from community MATCH-RT-1:2888
    set policy-options policy-statement VPN-IMPORT term 10 then metric add 10
    set policy-options policy-statement VPN-IMPORT term 10 then accept
    set policy-options policy-statement VPN-IMPORT then reject

    set policy-options community MATCH-RT-1:2888 members target:1:2888
    set policy-options community SET-RT-1:2888 members target:1:2888

     

     



  • 4.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-12-2017 02:54

    Hi,

     

    Can you share routing-instance configuration as well?

    are you running ipv6 in your core as well or using 6vPE?

     

    Regards

     



  • 5.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-12-2017 04:06

    Hi Singhh, 

     

    Below is the routing-instance configurations; no IPv6 in the CORE but is enabled to route VPNv6 prefixes.

     

    set routing-instances VRF-OSPF instance-type vrf
    set routing-instances VRF-OSPF interface <interface id>
    set routing-instances VRF-OSPF route-distinguisher 1:3
    set routing-instances VRF-OSPF vrf-import VPN-IMPORT
    set routing-instances VRF-OSPF vrf-export VPN-EXPORT
    set routing-instances VRF-OSPF vrf-table-label
    set routing-instances VRF-OSPF routing-options auto-export
    set routing-instances VRF-OSPF protocols ospf3 realm ipv4-unicast area 0.0.0.0 interface <interface id>
    set routing-instances VRF-OSPF protocols ospf3 export OSPF-EXPORT
    set routing-instances VRF-OSPF protocols ospf3 import OSPF-IMPORT
    set routing-instances VRF-OSPF protocols ospf3 area 0.0.0.0 interface <interface id>



  • 6.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-12-2017 04:24

    Ok.

     

    I am curious now, Can you please explain how are you enabling your core to route VPNv6 prefix? by enabling family inet6-vpn under protocol bgp?

    do you see hidden routes in vrf/routing-instance table?

     

    For IPv6 route, you need to have IPv6 next-hop. I am not sure how you are doing this. try enabling ipv6-tunneling inder protocol mpls and check.

     

    Regards

     



  • 7.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-12-2017 05:05

    Hi Singhh, Thanks for looking into this.

     

    In my small lab of just 2 PEs, here is the configurations. I am not particularly routing any IPv6 prefixes at the moment.

     

    set protocols bgp group CORE-MPLS type internal
    set protocols bgp group CORE-MPLS local-address 1.1.1.1
    set protocols bgp group CORE-MPLS family inet any
    set protocols bgp group CORE-MPLS family inet-vpn any
    set protocols bgp group CORE-MPLS family inet6 any
    set protocols bgp group CORE-MPLS family inet6-vpn any
    set protocols bgp group CORE-MPLS neighbor 2.2.2.2

     

    Also, I can't see any hidden prefixes; see below

    > show route table VRF-OSPF.inet hidden

    VRF-OSPF.inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)

    VRF-OSPF.inet6.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)

     

    From the core perspective, I can see the exported ospf routes from both PEs in the bgp.l3vpn.0 table.

     

    Thanks.

     



  • 8.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-12-2017 05:48

    Ok.

     

    1) Please confirm if you see remote CE route in bgp vpnv4 table ?

    2) Are these 5 route in "VRF-OSPF.inet6.0: 5 destinations, 5 routes" table imported from bgp vpnv4 table?

     

    Aslo, It seems like, your PE to CE is v6 and your core is v4 only. Can you configure ipv6-tunneling as well under protocol mpls and check?

    And can you share your full config, if possible?

     

     

     

     



  • 9.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-12-2017 08:41


  • 10.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-12-2017 09:22

    Singhh, 

     

    1. Yes, I can see remote CE route in VPNv4 table. 

    2. No. Those are local prefixes including the link local prefixes.

    3. I have configured the ipv6-tunneling on both PEs under the MPLS proto but still those routes are not redistributed into ospfv3 domain. Also, the PE-CE is enabled for both v6 and v4. 

     

    I have also attached both PE configurations. 

     

    NB: The current configurations works perfectly well with OSPFv2 and the current requirement is using OSPFv3 to route IPv4 traffic.

     

    Thanks for your help so far mate.

     

     

    Attachment(s)

    txt
    PE-2 Configurations.txt   3 KB 1 version
    txt
    PE-1 Configurations.txt   3 KB 1 version


  • 11.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-12-2017 10:01

    Hi,

     

    Couldn't check full config but I don't see any export policy applied to BGP on both PE.

     

    try this.

     

    PE1

    Set protocol bgp group CORE-MPLS export OSPF-IMPORT

     

    try same way on PE2 as well and let me know if it works



  • 12.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-12-2017 13:44

    VPNv4 is enabled between both PEs and VPNv4 prefixes are advertised/received by both PEs. See the configure below for the VRF configurations. The VRF export is already advertising the OSPFv3 routes into MP-BGP. As confirmed earlier, I can see both local and remote routes in the bgp.l3vpn.0 and the VRF tables. The issue here is the imported routes are not advertised to the OSPFv3 domain i.e. not installed in the OSPFv3 database and not advertised to the CE. 

     

    Any reason why you want me to apply the ospf export policy to bgp again? It is already exported through the VRF.

     

    set routing-instances VRF-OSPF vrf-import VPN-IMPORT
    set routing-instances VRF-OSPF vrf-export VPN-EXPORT



  • 13.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-12-2017 22:28

     

    I am not sure how the routes are getting exported in BGP without applying export policies to BGP.

     

    To check further, Can you paste the output of below commands from PE1?

     

    show route table VRF-OSPF.inet.0

    show route advertising-protocol bgp 2.2.2.2

    show route 

     



  • 14.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-13-2017 03:04
      |   view attached

    Hi Singhh, 

     

    Attached is the output of the show commands you requested.

     

    Thanks.

    Attachment(s)

    txt
    OSPFv3 Output.txt   4 KB 1 version


  • 15.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-13-2017 03:20

     

    Let me test this. I will check and let you know



  • 16.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-13-2017 04:00

    Many Thanks Singh. I will wait for your feedback.



  • 17.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF
    Best Answer

    Posted 09-13-2017 04:25

    Hi,

     

    I just test it in My lab.

     

    Please use config as below.

     

    set protocols ospf3 realm ipv4-unicast export OSPF-EXPORT



  • 18.  RE: Need Help : OSPFv3 issue on Juniper MP-BGP --> OSPF

    Posted 09-13-2017 04:45

    Massive Thanks Singhh. That did the magic.

     

    Really appreciate your help on this mate.