05-02-2016 08:05 PM - edited 03-05-2019 03:56 AM
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-
Solved! Go to Solution.
05-03-2016 02:52 AM
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
05-02-2016 10:54 PM
Hi,
I think also that they achieve same result.
05-03-2016 02:52 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide