03-12-2004 06:19 AM - edited 03-02-2019 02:14 PM
how to match a prefix-list statement that would permit anything with /22 and above
i.e. from 10.10.128.0/22.....to /32
I found two different ways to do it
1. ip prefix-list TEST seq 5 permit 10.10.128.0/22 le 32
2. ip prefix-list TEST seq 5 permit 10.10.128.0/21 ge 22 le 32
what are the difference? or which one is bettter
Thanks...Jey
03-12-2004 06:49 AM
The first entry will match any prefix that matches 10.10.128.0/22 with any mask length from 22 to 32.
The second entry will match any prefix that matches 10.10.128.0/21 with any mask length from 22 to 32.
For instance, Entry 2 would permit 10.10.132.0/24 whereas Entry 1 would deny it.
Hope this helps,
03-12-2004 07:01 AM
are these two have the same effects..
ip prefix-list TEST seq 5 permit 10.10.128.0/22 le 32
ip prefix-list TEST seq 5 permit 10.10.128.0/22 ge 23 le 32
03-12-2004 07:27 AM
No the first one would match prefix-length of 22 to 32 whereas the second one 23 to 32.
Hope this helps,
03-12-2004 08:26 AM
Thanks
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: