07-07-2015 04:50 AM
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
07-08-2015 11:21 AM
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.
09-20-2023 06:54 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide