cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
102
Views
0
Helpful
2
Replies
sanjaynadarajah
Beginner

Re : Question on prefix-list


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
Engager

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
Participant

Hi,
I think also that they achieve same result.

Rolf Fischer
Engager

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