cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
588
Views
0
Helpful
4
Replies

prefix-list

jey.theepan
Level 1
Level 1

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

4 Replies 4

Harold Ritter
Cisco Employee
Cisco Employee

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

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

No the first one would match prefix-length of 22 to 32 whereas the second one 23 to 32.

Hope this helps,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Thanks

Getting Started

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: