08-24-2022 02:35 AM
Hi
i am trying to establish a ebgp from a vrf loopback towards a peer ip which is in global routing table and is being imported in vrf using following command
import from default-vrf route-policy <route-policy-name>
ping is happening but bgp is not coming up .
is it possible to establish bgp using source as interface in a vrf towards a interface on other box reachable through global routing table ?
08-24-2022 05:10 AM - edited 08-24-2022 05:10 AM
I dont know about XR/XE but for IOS YES you can config under VRF source of bgp.
08-24-2022 05:34 AM
08-24-2022 05:44 AM - edited 08-24-2022 05:45 AM
R1-R2
R1 using VRF <X> to connect to R2 using global
R2 dont care about the VRF, VRF is locally known, what is important is
1- R1 VRF can reach the R2
2- R2 can reach R1 VRF LO
with IOS you can use under the IPV4 VRF the BGP update source which is LO which config with VRF <X>
this make BGP using LO VRF <X> to establish BGP session with R2.
are you run only IPV4 or there are other address family ?
08-24-2022 06:55 AM
Hi
thanks , yes we will be doing the same for ipv6 also
08-24-2022 07:11 AM - edited 08-24-2022 09:29 AM
Hi @gautamanish ,
It is indeed possible, but you need to make sure the global routing table also has a route to the loopback interface sitting in the VRF. Try adding a static route in the global with the loopback interface as the destination.
ip route <loopback interface ip address in the VRF> 255.255.255.255 Loopback X
Also bear in mind that routes advertised via that BGP session will need to be exported from the VRF to the global.
Regards,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide