cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3226
Views
16
Helpful
2
Replies

ASR9K VRF import route-policy issue

lwlim8888
Level 1
Level 1

Hi Guys,

 

I'd like to import specific prefix from VRF B (RT:65500:1000) to VRF TEST. I have the following config but it's not importing the specific prefix. If I configured import route-target 65500:1000 then I'll be receiving all the prefixes in that VRF.

Appreciate for your assistance to this issue.

 

vrf TEST
 address-family ipv4 unicast
  import route-policy VRF_Import

  export route-target
   65500:2000


route-policy VRF_Import
  if extcommunity rt matches-any (65500:1000) and destination in (10.28.0.128/28) then
    pass
  endif
end-policy

2 Replies 2

You'll need import route-target 65500:1000 as well as a 'base' import, then the import policy will be used to filter the import further.

yep, you're right. I had the same problem. Basically add the rt in the import and then control the prefixes with route-policy:

vrf TEST
 address-family ipv4 unicast
  import route-policy VRF_Import

 export route-target
65500:2000
65500:1000

route-policy VRF_Import
  if extcommunity rt matches-any (65500:1000) and destination in (10.28.0.128/28) then
    pass
  endif
end-policy