Prefix Lists – More Examples
In 192/8 deny /25 and above
ip prefix-list Example deny 192.0.0.0/8 ge 25
This denies all prefix sizes /25, /26, /27, /28, /29, /30, /31 and /32 in the address block 192.0.0.0/8
It has the same effect as the previous example
In 192/8 permit prefixes between /12 and /20
ip prefix-list Example permit 192.0.0.0/8 ge 12 le 20
This denies all prefix sizes /8, /9, /10, /11, /21, /22 and higher in the address block 193.0.0.0/8
Permit all prefixes
ip prefix-list Example 0.0.0.0/0 le 32