I need your explanation for the below prefix list.
I want to allow only the IP address from
18.104.22.168 to 22.214.171.124 with mask 255.255.255.0
Initially i configured the
ip prefix-list SAIRAM permit 126.96.36.199/16 ge 22 le 24
I thought that, I am matching the ip address first 2 octets "11.1" and matching the subnetmask 188.8.131.52, so that i will achieve.
but It didn't work. It allowed all the ip address in this subnet say example 184.108.40.206, 220.127.116.11 etc. which i wanted to block
Then, I reconfigured like this
ip prefix-list SAIRAM permit 18.104.22.168/22 le 24
It started working perfectly.
I am not able to determine the difference between the two and why the first logic didn't.
Can you please explain what mistake i did in first one
Thanks in advance
The prefix list was given as follows:
ip prefix-list PL permit 192.0.2.64/27 ge 29 le 30
It is permitting subnets of the network 192.0.2.64/27 with netmasks from /29 to /30. The original network 192.0.2.64/27 goes from 192.0.2.64 up to 192.0.2.95.
So the permissible networks with the mask /29 will be:
And the permissible networks with the mask /30 will be:
... and so on, up to:
Can you follow this?