3

I am trying to create named extended access-lists on Cisco IOS on an 800 series router, but it changes the destination network to 0.0.0.0.

Example:

ip access-list extended ACL-TEST
    permit tcp host 192.168.1.44 192.168.2.0 255.255.255.0 eq 44818
exit

is accepted with no errors, but then when I run "show access-lists" the output is:

Extended IP access list ACL-TEST
    10 permit tcp host 192.168.1.44 0.0.0.0 255.255.255.0 eq 44818

What am I doing wrong? Thanks.

1 Answer 1

6

Access lists do not use an ordinary subnet mask. They use a "wildcard " mask. A wildcard mask is the ones complement of the subnet mask. So 255.255.255.0 becomes 0.0.0.255

1
  • Yes, thanks, exactly, I had IOS and ASA syntax mixed up.
    – jdt
    Jun 20, 2017 at 17:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.