07-23-2020 09:58 AM
prefix-set ABC = 92.x.x.x/12, 172.xxx.x.x/16 le 24, 8.x.x.x/19 le 24, 192.x.x.x/24, 172.x.x.x/24, 92.xxx.xx.x/24, , 92.x.x.x/16 le 24
Need to create the RPL Policy on IOS XR that can allow all the above prefixes (present in the prefix-set) to be advertised to the eBGP neigbhor
in remote AS. In addition to that, any /32 length prefix belonging to the given prefix-set abc ranges with community 1234, should also be advertised in ebgp
07-23-2020 12:54 PM
route-policy test
if (destination in ABC) or (destination in abc and community matches-any $1234) then
pass
endif
end-policy
!
end
I think this is what you meant, two different prefix-sets right?
Sam
07-23-2020 10:43 PM - edited 07-24-2020 02:58 AM
Thank You for Your response Sam
We are looking something close to,
if (destination in ABC)
THEN PASS
if (destination with /32 length, based on prefix ranges (supernets) given in ABC prefix-set and community matches-any $1234) then
add another community $5454
07-25-2020 12:52 PM
You would have to create a second prefix-set named DEF for example with below on each prefix:
172.0.0.0/16 ge 32
The logic should be to look at the more specific prefixes first and then less specific second.
route-policy test
if destination in DEF and community matches-any $1234 then
set community $5454
elseif destination in ABC then
pass
endif
end-policy
Sam
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