[c-nsp] Multiple Route-Target import within VRF

Oliver Boehmer (oboehmer) oboehmer at cisco.com
Sat Dec 26 07:44:03 EST 2009


 
> 
> I have a question regarding how to match more than 1 (one) route-target
> within importing VRF, short brief as below:
> i have two PE , let say PE#1 and PE#2
> PE#1 :
> VRF ABC
>  rd 1:111
>  route-target export 1:222
>  route-target export 1:333
>  route-target import 1:111
> 
> PE#2 :
> VRF ABC
>  rd 1:111
>  route-target export 1:111
>  route-target import ???
> 
> is there anyway to configure whenever PE#2 wanna import route from PE#1 VRF
> ABC , then PE#2 should match RT:1:222 AND RT:1:333.
> when i configure PE#2 with route-target import 1:222 OR 1:333 (just one of
> route-target) the PE#2 vrf ABC could read the route from PE#1 vrf ABC.
> i've tried doing with "import map" which is not solving the solution.
> 
> considering it is extended community, I have read that to match 2 or more
> community can be done with "standar community" where we could put command
> "exact" in the end of configuration.
 
you could use 

ip extcommunity-list 101 permit RT:1:222_RT:1:333_

within an import map (possibly also with a 2nd entry "ip extcommunity-list 101 permit RT:1:333_RT:1:222_", not sure about the order and requirement to match possible permutations). 
However I would consider defining another RT for this purpose, i.e. add "route-target export 1:444" on all the VRFs you have export 1:222 and 1:333 and import this new one.. Not sure what you're trying to achieve

	oli


More information about the cisco-nsp mailing list