[c-nsp] Inter-VRF OSPF Redistribution
Chris Mason
chris at noodles.org.uk
Fri Feb 19 07:47:42 EST 2010
Hi Oli,
> Chris,
>
>> Does anyone know whether it is possible to redistribute routes between
>> two different OSPF processes when they are associated with different
> VRFs?
>
> you need to use BGP and route-target import/export to exchange routes
> between the VRFs (even with vrf-lite). for example to import green
> routes into red:
>
> i.e.
>
> ip vrf red
> rd 1:1
> route-target both 1:1
> route-target import 1:2
> !
> ip vrf green
> rd 1:2
> route-target both 1:2
>
> router ospf 1 vrf red
> ..
> router ospf 2 vrf green
> ..
> !
> router bgp 65000
> address-family ipv4 vrf green
> redistribute ospf 2 match internal external ..
> !
>
> you can use import/export maps to do a more granular import/export.
That works fine if both interfaces are within VRFs, but one interface is
within a VRF and another is within the global table. The route within
the VRF needs to be leaked to the global table, but dynamically.
>
> oli
Chris
More information about the cisco-nsp
mailing list