cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
555
Views
0
Helpful
3
Replies

Need help with RPL Policy on IOS XR

Cisco-NetWorld
Level 1
Level 1

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

3 Replies 3

smilstea
Cisco Employee
Cisco Employee

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

 

 

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

 

 

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