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

Re : Question on prefix-list

sanjaynadarajah
Level 1
Level 1


Hi,

I have a question on prefix-list.  

Can someone confirm that the below prefix-list achieve the same result ? as to my understanding, both the below would achive the same result which is it matches prefixes from /23 to /32 are allowed.

1) ip prefix-list Restrict-Prefix-Length seq 100 permit 0.0.0.0/23 le 32
2) ip prefix-list Restrict-Prefix-Length seq 100 permit 0.0.0.0/0 ge 23 le 32

Thank you.

Cheers,
-SN-

1 Accepted Solution

Accepted Solutions

Rolf Fischer
Level 9
Level 9

Hi,

actually there is a big difference.

1) matches only the prefixes 0.0.0.x and 0.0.1.x with a subnet mask length of /23 or greater (doesn't make much sense I guess)

2) matches any prefix with a subnet mask length of /23 or greater, for instance 172.16.0.0/23, 192.168.0.0/24 or 1.1.1.1/32 etc.

HTH
Rolf

View solution in original post

2 Replies 2

Milos Megis
Level 3
Level 3

Hi,
I think also that they achieve same result.

Rolf Fischer
Level 9
Level 9

Hi,

actually there is a big difference.

1) matches only the prefixes 0.0.0.x and 0.0.1.x with a subnet mask length of /23 or greater (doesn't make much sense I guess)

2) matches any prefix with a subnet mask length of /23 or greater, for instance 172.16.0.0/23, 192.168.0.0/24 or 1.1.1.1/32 etc.

HTH
Rolf

Review Cisco Networking products for a $25 gift card