Routing

 View Only
last person joined: yesterday 

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.
  • 1.  How can I import bgp routes learned from remote PE into inet.0 table ?

    Posted 09-27-2021 13:39
    I have the following routes learned from the remote PE, I need to import them into the global inet.0 table.
    root@vMX-3# run show route protocol bgp table vrf1.inet.0
    
    vrf1.inet.0: 16 destinations, 16 routes (16 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    10.11.11.0/30      *[BGP/170] 00:01:26, localpref 100, from 192.168.1.111
                          AS path: I, validation-state: unverified
                        > to 10.20.1.1 via ge-0/0/5.0, Push 300544, Push 299888(top)
    192.168.1.1/32     *[BGP/170] 00:01:26, MED 0, localpref 100, from 192.168.1.111
                          AS path: I, validation-state: unverified
                        > to 10.20.1.1 via ge-0/0/5.0, Push 300544, Push 299888(top)
    192.168.1.2/32     *[BGP/170] 00:01:26, MED 0, localpref 100, from 192.168.1.111
                          AS path: I, validation-state: unverified
                        > to 10.20.1.1 via ge-0/0/5.0, Push 300544, Push 299888(top)
    192.168.1.3/32     *[BGP/170] 00:01:26, MED 0, localpref 100, from 192.168.1.111
                          AS path: I, validation-state: unverified
                        > to 10.20.1.1 via ge-0/0/5.0, Push 300544, Push 299888(top)
    192.168.1.11/32    *[BGP/170] 00:01:26, MED 1, localpref 100, from 192.168.1.111
                          AS path: I, validation-state: unverified
                        > to 10.20.1.1 via ge-0/0/5.0, Push 300544, Push 299888(top)
    192.168.1.22/32    *[BGP/170] 00:01:26, MED 0, localpref 100, from 192.168.1.111
                          AS path: I, validation-state: unverified
                        > to 10.20.1.1 via ge-0/0/5.0, Push 300544, Push 299888(top)
    ​
    I tried to use rib-group and  did not figure out how to import the routes from the remote PE.
    set routing-instances vrf1 instance-type vrf
    set routing-instances vrf1 route-distinguisher 192.168.1.33:33
    set routing-instances vrf1 vrf-target target:65123:1
    ​

    Here is the vrf configuration


    thanks for any ideas !!


  • 2.  RE: How can I import bgp routes learned from remote PE into inet.0 table ?

    Posted 09-27-2021 18:07
    I searched the internet for any approaches, it seems that is not possible.
    One simple go-around way is to use logical interfaces between vrf table and inet.0 table.

    Any other straight solution ?

    thanks !!


  • 3.  RE: How can I import bgp routes learned from remote PE into inet.0 table ?

    Posted 10-02-2021 05:12
    Anyone can help on this ?

    thanks !!


  • 4.  RE: How can I import bgp routes learned from remote PE into inet.0 table ?

    Posted 10-04-2021 05:32
    Hi Gongyayu,

    you were on the right track, you can leak those routes to inet.0 using a rib-group, there are plenty of examples on how utilize rib-groups. 

    one that i can think of is the KB16133, also if you are having troubles try the auto-export inside the VRF, you shouldnt need it since your routes are learned through BGP, but the answer to your question is yes and it is with rib-groups.

    Thanks, 
    Gabriel F.V
    <slot name="channel"></slot>

    ------------------------------
    GABRIEL FLORES
    ------------------------------



  • 5.  RE: How can I import bgp routes learned from remote PE into inet.0 table ?

    Posted 10-04-2021 10:51
    I tried and it did not work to leak routes learned from PE.  I found the following:
    Hi Guys,
    
    I have found an answer why my rib-groups and everything is not working:
    All fiddling with RIB-groups is for PE-CE, and not for PE-PE.
    As the primary route is in bgp.l3vpn.0, I cannot leak from vrf.inet.0,
    which is the secondary table for the route.
    
    (If somebody asks why I can't do the leaking on the CE-PE router - there
    is non. The other side of the
    VPN is a contrail controller, which only speaks inet-vpn.).
    
    I also discussed with this my SE, and they didn't had a quick answer but
    have to discuss internally,
    but I hope that our community here maybe also has an idea howto leak
    routes received via inet-vpn to inet.0...
    
    Thanks,
    Tom
    
    PS:
    No, rib-groups between bgp.l3vpn.0 and inet.0 doesn't work, tried that
    already.​

    From here

    Right now the only thing I can do is  to use static route with next-table.

    thanks a lot !!




  • 6.  RE: How can I import bgp routes learned from remote PE into inet.0 table ?

    Posted 12-06-2021 05:52
    So far what I can do is either to use static route pointing to the next-table vrf-table, or to use lt-0/0/x interfaces to bridge vrf instance and inet.0 via some routing protocols.
    Anyone can coach me any cleaner approach on this ?

    thanks !!


  • 7.  RE: How can I import bgp routes learned from remote PE into inet.0 table ?

    Posted 12-05-2021 06:11
    thanks so much !!