cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1216
Views
10
Helpful
4
Replies

BGP to OSPF redistribution with VRFs

Michael Gross
Level 1
Level 1

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 4

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?

Laurent Aubert
Cisco Employee
Cisco Employee

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.

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

Mike

OUpengcheng2008
Level 1
Level 1

111

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: