Pcornel
Networking · Security › ACL

Standard IPv4 ACL

Cheat sheet · https://pcornel.dk/topic.php?topic=759

Back to the Topic

Answer

A standard IPv4 ACL (numbers 1–99 and 1300–1999, or ip access-list standard <name>) matches only the source IP address.

Remember

Because only the source is checked, place standard ACLs close to the destination so they do not block traffic to other places. host 10.1.1.1 is the same as 10.1.1.1 0.0.0.0; any is 0.0.0.0 255.255.255.255.

First checks

  • show access-lists <name> — entries in order with match counters.
  • show ip interface <if> | include access list — ACLs applied inbound and outbound.
  • show running-config | section access-list — the ACL as configured.
  • show ipv6 access-list <name> — IPv6 ACL entries and counters.
  • clear access-list counters <name> — reset counters before a test.

Commands

access-list <1-99> permit <source> <wildcard>
Add a permit entry to a numbered standard IPv4 ACL (matches source address only).
access-list <1-99> deny <source> <wildcard>
Add a deny entry to a numbered standard IPv4 ACL (matches source address only).
ip access-list standard <name>
Create a named standard IPv4 ACL.
permit <source> <wildcard>
Add a permit entry to a named standard IPv4 ACL.
deny <source> <wildcard>
Add a deny entry to a named standard IPv4 ACL.
ip nat inside source list
show access-lists

Verify in this order

ACL applied on the right interface and direction → packet compared top-down → first matching entry decides → no match = implicit deny → counter increments on the matching entry

Where it usually breaks

local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result

Standard IPv4 ACL · technical reference

PropertyStandard IPv4 ACL
Primary matchSource IPv4 address
Destination/serviceNot distinguished
End behaviorImplicit deny
Design implicationPlacement must limit broad effect

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=759

Confirmation

Confirm action

Continue?