[c-nsp] ASR9K VRF route leaking

Anton Turygin pa3op at tsua.net
Fri Apr 8 11:13:19 EDT 2011


Just another theoretical question.

How can I import routes into VRF from the global routing table basing on 
community attribute? (which was done via "import ipv4 unicast map" in 
IOS)?

Thanks.

On Fri, 8 Apr 2011, Anton Turygin wrote:

> That was my mistake.
> I had to put redistribute static instaed of connected.
>
> With "redistribute static" it is working fine.
>
> ;-)
>
>
> On Fri, 8 Apr 2011, Anton Turygin wrote:
>
>> Hello,
>> 
>> Got some problems with configuring vrfs under IOS XR 4.0.
>> 
>> have the following config:
>> 
>> #sh run vrf
>> Fri Apr  8 17:39:17.029 EEST
>> vrf 1
>> address-family ipv4 unicast
>>  import route-target
>>   1:1
>>   2:2
>>  !
>>  export route-target
>>   1:1
>>   2:2
>>  !
>> !
>> !
>> vrf 2
>> address-family ipv4 unicast
>>  import route-target
>>   1:1
>>   2:2
>>  !
>>  export route-target
>>   1:1
>>   2:2
>>  !
>> !
>> !
>> #sh run router static vrf 1
>> Fri Apr  8 17:39:28.190 EEST
>> router static
>> vrf 1
>>  address-family ipv4 unicast
>>   1.1.1.0/24 Null0
>>  !
>> !
>> !
>> #sh run router static vrf 2
>> Fri Apr  8 17:39:29.663 EEST
>> router static
>> vrf 2
>>  address-family ipv4 unicast
>>   2.2.2.0/24 Null0
>>  !
>> !
>> !
>> #sh run router bgp
>> [...]
>> vrf 1
>>  rd 1:1
>>  address-family ipv4 unicast
>>   redistribute connected
>>  !
>> !
>> vrf 2
>>  rd 2:2
>>  address-family ipv4 unicast
>>   redistribute connected
>> 
>> #
>> 
>> 
>> As per my understanding now the route 2.2.2.0/24 from vrf 2 should appear 
>> in vrf 1 routing table (at least this kind of config would be enough for 
>> IOS 12.2). But this does not happen.
>> 
>> Can please anyone point me to the right piece of documentation.
>> What am I missing?
>> 
>> Thank you.
>> 
>> 
>> 
>
>

-- 
RAZ-RIPE
Technological Systems CJSC
Senior Network Engineer



More information about the cisco-nsp mailing list