I there a way to combine hosts in an access list. I have a block of hosts/source ip's but they are not consecutive numbers. i may have 22.214.171.124/5/6/7 then i will skip 8/9/10 have 11 then skip 12. this is tough when doing access lists. or do i have to do a separate line for each host?
This is your big lesson in numbering a network with foresight. The best way is to renumber the hosts but that may be easier said than done, but if I was backed into a corner using your example, then I would do this...
access-list 1 remark Blocked Hosts as per example
access-list 1 deny 126.96.36.199 0.0.0.3
access-list 1 deny host 188.8.131.52
access-list 1 pemit any
What I have done here, is looked at the binary number of the last octet of coresponding numbers
4 = 0000 0100
5 = 0000 0101
6 = 0000 0110
7 = 0000 0111
as the first 6 bits are common with those numbers (and everything else that I'm letting through), I going to let them through, but I'm going to mask off the last two bits
0000 0011 = 3
That's how I came up with 184.108.40.206 0.0.0.3 in the first ACE
As 220.127.116.11 is all by itself, it had to have it's own entry.
We are pleased to announce availability of Beta software for 16.6.3. 16.6.3 will be the second rebuild on the 16.6 release train targeted towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are looking for early feedback from custome...