How can I deny all even number host addresses and allow all odd IP addresses via a serial connection. Does any one have a short ACL script for this solution.
I think if you just change the least significant bit in your mask you would be able to match all Even or Odd host adresses, not very nice to do, and can become quite difficult to manage.
Give us an example then. Lets say allow all uneven IP's in 172.16.1.0 /24 (.1, .3, .5, .7 etc..) and block all the even ones. How would you achieve that by changing the mask?
I can't think of a way how without putting an acl entry in for each host. No mask defines even or odd!
I'd still like to know the reason why slate13 actually wants to do this?
Chris.
**********************
Chris A.C, CCNA, CCSA
**********************
Well, example would then be : 172.16.1.0 /24 change the mask to an inverted acl mask 0.0.0.254 try it, see if i'm wrong. This would make the last bit always have to be '1' which would only give you access from odd host numbers since the last bit has to be a '1'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.