03-24-2004 11:15 PM - edited 03-02-2019 02:32 PM
I would like to know if anyone has encountered a problem of setting up a Standard ACL on a range of subnets to deny even numbered IP addresses while allowing odd numbered IP addresses to be contacted.
03-25-2004 12:22 AM
Hi,
do you mean something like
access-list 1 permit 0.0.0.1 255.255.255.254 ?
This ACL checks only the last bit in the source IP address and permits the packets having this bit equal to 1 (odd numbers).
Or if you want to permit odd addresses from a.b.c.0/24, use
access-list 1 permit a.b.c.1 0.0.0.254
General rule: ACL checks only that bits in IP address which are 0 in the wildcard used.
If you need to check the destination address use similar form of extended ACL.
Regards,
Milan
03-25-2004 11:44 AM
Thanks Milan; I see what you are saying. I appreciate your help on this. So the 255.255.255.254 will check any ip address with the last bit 1 and the other form; 0.0.0.254 will check a specific range of addresses and allow only the odd numbers in the range to go thru. Very nice. Thanks again.
Mark
03-28-2004 11:13 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide