cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
406
Views
11
Helpful
5
Replies

eBGP from a vrf to a neighbor ipv4 in global

gautamanish
Level 1
Level 1

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 ?

5 Replies 5

I dont know about XR/XE but for IOS YES you can config under VRF source of bgp. 

gautamanish
Level 1
Level 1
Hi MHM
Thanks for your reply
My query is bgp peering from a source ip in vrf to peer ip reachable through global routing table

Under vrf we are using following to import peer IP address

Vrf
Import from default-vrf route-policy


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 ?

Hi

thanks , yes we will be doing the same for ipv6 also

 

Harold Ritter
Cisco Employee
Cisco Employee

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Review Cisco Networking for a $25 gift card