cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
246
Views
10
Helpful
2
Replies
Beginner

ios xr bgp equivelant of ios

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
Cisco Employee

Re: ios xr bgp equivelant of ios

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
Highlighted
Beginner

Re: ios xr bgp equivelant of ios

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.

2 REPLIES 2
Cisco Employee

Re: ios xr bgp equivelant of ios

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
Highlighted
Beginner

Re: ios xr bgp equivelant of ios

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.

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards