Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

BGP to OSPF redistribution with VRFs

I am having a problem with redistribution of routes between BGP and OSPF when using VRFs mapping to VLANs between the PE and CE.

In this lab I've put together I have R4 and R5 communicating with eachother via BGP with MPLS. If I redistribute the BGP into OSPF and delivering the connection to the CE without VLANs it works fine. If I want to essentially keep the same primary network going into the other side of the BGP but send the VRF over a VLAN to the next router the redistribution doesn't happen.

In this example I have

192.168.100.0/24 (R6) --ospf-- (R4) --BGP-- (R5) --ospf-- (R7) 192.168.200.0/24

Between R4 and R5 is the core network running ospf (R1 - R3).

Can anyone point me in the right direction why this isn't working? I am obviously missing something here.

Thanks,

Mike

4 REPLIES
Community Member

Re: BGP to OSPF redistribution with VRFs

R6 - running Multi-VRF (VRF-Lite)

router ospf 30 vrf POS

log-adjacency-changes

network 192.168.0.0 0.0.255.255 area 0

try adding 'capability vrf-lite' to the ospf process on R6

and maybe also ad RD to the VRF?

Cisco Employee

Re: BGP to OSPF redistribution with VRFs

Hi Mike,

You need to add capability vrf-lite under ospf process of R6 and R7 because they are configured with VRF-lite. This command will disable the check usually done on the PE to avoid routing loops.

HTH

Laurent.

Community Member

Re: BGP to OSPF redistribution with VRFs

Thank you both for the response! That was it. It's working fine now.

Mike

Community Member

Re: BGP to OSPF redistribution with VRFs

111

489
Views
10
Helpful
4
Replies
CreatePlease to create content