cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1037
Views
0
Helpful
2
Replies

Prefix-set range for route-policy in BGP

cryptodork
Level 1
Level 1

When creating a prefix-set for a route policy to be used in BGP would the following be functionally equivalent?  Thanks!

 

192.168.0.0/16 ge 17

192.168.0.0/16 le 32

192.168.0.0/16 ge 17 le 32

1 Accepted Solution

Accepted Solutions

Harold Ritter
Spotlight
Spotlight

They are not all functionally equivalent.

 

> 192.168.0.0/16 ge 17

prefix matches 192.168.0.0/16 and prefix-length is greater than 16

 

> 192.168.0.0/16 le 32

prefix matches 192.168.0.0/16 and prefix-length is greater than 15

 

> 192.168.0.0/16 ge 17 le 32

Functionally equivalent to the first one

 

Regards,

 

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

2 Replies 2

Harold Ritter
Spotlight
Spotlight

They are not all functionally equivalent.

 

> 192.168.0.0/16 ge 17

prefix matches 192.168.0.0/16 and prefix-length is greater than 16

 

> 192.168.0.0/16 le 32

prefix matches 192.168.0.0/16 and prefix-length is greater than 15

 

> 192.168.0.0/16 ge 17 le 32

Functionally equivalent to the first one

 

Regards,

 

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Awesome!  Thanks!  I was  having difficulty with the "le 32".  I didn't realize that it was including the prefix length.  Thank you again!