|
|
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: | |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||