cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1894
Views
7
Helpful
3
Replies

Cisco IOS OSPF route to vrf routing table

Hi!

I have problem to get default route into vrf routing table. 

We have own MPLS network. In one site we have CE1 device that have static default route in

 vrf si-tekniikka

to firewall. Another CE2 device is another site and same

vrf si-tekniikka

configured in bgp process. I can see default route behind that CE1 device. 

CE2 has also OSPF process in that

vrf si-tekniikka

OSPF process are configured to

redistribute bgp

6666 subnets. Other side OSPF is

vrf si-tekniikka

but i can see only own interfaces in

vrf si-tekniikka 

routing table.

show ip ospf

database external show that routes are in database but i can't see

default route in vrf si-tekniikka

routing table. How can i manage to make this work? 

vrf si-tekniikka OSPF ---> OSPF vrf si-tekniikka CE2 --> vrf si-tekniikka CE1 - >

default static route to firewall

 

I hope you understand what i am trying to do..

1 Accepted Solution

Accepted Solutions

Harold Ritter
Spotlight
Spotlight

Hi Petri,

The reason the LSA is in the OSPF database and not installed in the RIB, is that when the route is redistributed from BGP to OSPF, the Down bit is set on the LSA. This mechanism is used to avoid routing loops. The other router, which is running in

vrf-lite

mode, will not install it by default.

You need to use the

capability vrf-lite

under the ospf process on the router behind CE2, so that the route will be installed even if the Down bit is set on the external LSA.

router ospf 1 vrf si-tekniikka

capability vrf-lite

 

For more information, please refer to the following documentation:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/15-sy/iro-15-sy-book/iro-sup-vrf.html

 

Regards,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

3 Replies 3

Hello,

 

post a schematic drawing of your topology, as well as the full configurations of all devices involved.

Harold Ritter
Spotlight
Spotlight

Hi Petri,

The reason the LSA is in the OSPF database and not installed in the RIB, is that when the route is redistributed from BGP to OSPF, the Down bit is set on the LSA. This mechanism is used to avoid routing loops. The other router, which is running in

vrf-lite

mode, will not install it by default.

You need to use the

capability vrf-lite

under the ospf process on the router behind CE2, so that the route will be installed even if the Down bit is set on the external LSA.

router ospf 1 vrf si-tekniikka

capability vrf-lite

 

For more information, please refer to the following documentation:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/15-sy/iro-15-sy-book/iro-sup-vrf.html

 

Regards,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Hi!

 

Thank you very much! This solved my problem. 

 

-Petri