(Answer) (Category) Cisco CCIE Certification and CCNP Certification FAQs :
How do I compute an access-list to match even or odd networks?
Author: OhioHondo
Date: 2003-04-05 17:58 -600
In the octet that you want
1) have the network portion be even if you want to deny or permit even networks. have the network portion be odd if you want to permit or deny odd networks.
2) use a mask of 254 for that octet
i.e. for specifying even in the 3rd octet
 access-list 1 permit 172.172.64.0 0.0.254.255 (the 64 can be any even number)
i.e. for specifying odd in the 3rd octet
 access-list 1 permit 172.172.65.0 0.0.254.255 (the 65 can be any odd number)

A similar problem is trying to calculate the smallest possible access-list to match several networks: (Xref) How do I compute an access-list with the minimum number of lines?
[Append to This Answer]
Previous: (Answer) How do I compute an access-list with the minimum number of lines?
Next: (Answer) How do I disable frame relay inverse arp?
This document is: http://ertw.com/cgi-bin/fom?file=45
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
This FAQ administered by ...