cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
616
Views
3
Helpful
14
Replies

Redistribution from BGP to OSPF - both withing same VRF

Warren Sullivan
Level 1
Level 1

Hi Guys,

I'm going around in circles, i can't see what is wrong here, i have essentially 3 routers, ill abbreviate to the last 5 or so characters in hostname for brevity, aco-R1 is running BGP under vrf iA-0160 as is aco-r5 - they are neighbors, all good. aco-r5 and pro-r5 are running ospf instance 2 and are neighbors, i am redistributing ospf 2 into bgp, and bgp into ospf 2.

On aco-r1 i can see the BGP route for 172.29.38.0/29, but on pro-r5 i cannot see the route for 10.79.126.164/30 being redistrubuted?

What have i missed?

 

2024-07-26 09_56_51-Cisco-vrf-migrate - GNS3.jpg

BGP Neighbor on aco-r1

2024-07-26 10_02_32-LAB-rhmptnqaco-r1 - SecureCRT.jpg

BGP Neighbor on aco-r5
2024-07-26 10_03_28-LAB-rhmptnqaco-r5 - SecureCRT.jpg

OSPF neighbor on aco-r52024-07-26 10_03_55-LAB-rhmptnqaco-r5 - SecureCRT.jpg

OPSF neighbor on pro-r5
2024-07-26 10_04_37-LAB-roptnpro-r5 - SecureCRT.jpg

BGP, OSPF and redist config on aco-r5

2024-07-26 10_05_07-LAB-rhmptnqaco-r5 - SecureCRT.jpg

sh ip route on aco-r1 - can see redistrubuted route from ospf
2024-07-26 10_05_36-LAB-rhmptnqaco-r1 - SecureCRT.jpg

sh ip route on pro-r5 - nothing
2024-07-26 10_05_55-LAB-roptnpro-r5 - SecureCRT.jpg

1 Accepted Solution

Accepted Solutions

Do under ospf 

Compatibility?

Share it here 

Without this command the ospf will never redistribute bgp into ospf since down bit is set. 

MHM

View solution in original post

14 Replies 14

Hello,

On R5 its not learning the route 10.79.126.164/30 from BGP. Its directly connected. So redistributing BGP won't work. Have you tried also redistributing connected?

 

-David

There is a loopback on aco-r1 that is being advertised to aco-r5 via BGP, see below
2024-07-26 10_46_04-LAB-rhmptnqaco-r5 - SecureCRT.jpg

Add 

Compatibility vrf lite

Under ospf 

And it will work

MHM

Sorry, this is not an option under the ospf process on this device, it is a 1000v
thanks for your suggestion!

Do under ospf 

Compatibility?

Share it here 

Without this command the ospf will never redistribute bgp into ospf since down bit is set. 

MHM

Sorry it capability not compatible keyword 

So command must be 

Capability vrf lite

MHM

To be clear here command 

Capability vrf lite to redistribute bgp LO into ospf not direct connect link between two bgp peers

Again without this command ospf not redistribute any prefix via bgp

MHM

Hi @Warren Sullivan 

 Run "bgp redistribute-internal" in the acp-r5

unfortunately this didn't fix it, thanks for the suggestion!

How is the 10.79.126.164/30 route being learned on R5. If its directly connected you may need to issue the redistribute connected command as well.

-David

Harold Ritter
Level 12
Level 12

Hi @Warren Sullivan ,

10.79.126.164/30 is a connected route on aco-r5. If you want pro-r5 to learn it via ospf, you need to configure "redistribute connected" on aco-r5 as suggested by @David Ruess .

router ospf 2 vrf IA-0160

redistribute connected subnets

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

this worked for the /30 but i still cannot see the loopback on aco-r1, and is leaned by aco-r5?

 

Review Cisco Networking for a $25 gift card