cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
347
Views
0
Helpful
3
Replies

distribution lists

f.fnlaspect
Level 1
Level 1

is there anything wrong with putting this is a distribution list:-

access-list 12 permit 172.16.158.0 0.1.255.255

when I enter it, it is accepted but when I view config it is shown as 172.16.0.0. and not 172.16.158.0.

Any ideas?

3 Replies 3

svermill
Level 4
Level 4

It shows up that way because your wildcard mask says to. 0.1.255.255 says ignore the final two octets and the lowest bit of the second. Match only the first octet and the first seven bits of the second.

I think I tried 0.254.255.255 as well and got the same result. Is it something to do with the access-list being below 100?

Try 0.0.0.255 as a wildcard

Review Cisco Networking for a $25 gift card