cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1199
Views
15
Helpful
2
Replies

ios xr bgp equivelant of ios

jwilde
Level 1
Level 1

What would be the equivalent on xr to do a max paths statement.  I believe on ios it is maxas-limit.

2 Accepted Solutions

Accepted Solutions

tkarnani
Cisco Employee
Cisco Employee

you may have to do a route-policy

 

route-policy max-asns
 if as-path length ge 5 then
   drop
 else
   pass
 endif
end-policy

View solution in original post

mivens
Level 1
Level 1

maxas-limit limits the length of the AS path rather than the number of paths. In XR, you can use a condition like

if as-path length ge <n> then drop endif 

in your rpl import policy.

View solution in original post

2 Replies 2

tkarnani
Cisco Employee
Cisco Employee

you may have to do a route-policy

 

route-policy max-asns
 if as-path length ge 5 then
   drop
 else
   pass
 endif
end-policy

mivens
Level 1
Level 1

maxas-limit limits the length of the AS path rather than the number of paths. In XR, you can use a condition like

if as-path length ge <n> then drop endif 

in your rpl import policy.