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.
Original Message:
Sent: 10-04-2021 09:53
From: Unknown User
Subject: How can I import bgp routes learned from remote PE into inet.0 table ?
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 - thereis non. The other side of theVPN is a contrail controller, which only speaks inet-vpn.).I also discussed with this my SE, and they didn't had a quick answer buthave to discuss internally,but I hope that our community here maybe also has an idea howto leakroutes received via inet-vpn to inet.0...Thanks,TomPS:No, rib-groups between bgp.l3vpn.0 and inet.0 doesn't work, tried thatalready.
From here
Right now the only thing I can do is to use static route with next-table.
thanks a lot !!
Original Message:
Sent: 10-03-2021 10:20
From: GABRIEL FLORES
Subject: How can I import bgp routes learned from remote PE into inet.0 table ?
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
Original Message:
Sent: 09-27-2021 13:31
From: Unknown User
Subject: How can I import bgp routes learned from remote PE into inet.0 table ?
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.0vrf1.inet.0: 16 destinations, 16 routes (16 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both10.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 vrfset routing-instances vrf1 route-distinguisher 192.168.1.33:33set routing-instances vrf1 vrf-target target:65123:1
Here is the vrf configuration
thanks for any ideas !!