Verification
Cheat sheet · https://pcornel.dk/topic.php?topic=764
Answer
Verifying an ACL means proving it is applied where intended and that test traffic hits the expected entries — not just reading the configuration.
Remember
Counters are the evidence: reset them, generate one known flow, read which entry counted. log on an entry shows matches in the log but costs CPU — use it briefly. Unused entries over weeks are candidates for removal.
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
show access-lists- ACL entries and counters where supported.
show access-lists [name|number]- Display configured ACLs and match counters.
show ip interface <interface>- Inspect interface IPv4 address, prefix and protocol state.
show ip access-lists- Display IPv4 ACLs and their hit counters.
show ipv6 access-list- Display IPv6 ACLs and hit counters.
show ip access-lists <name>show running-config interface <id>show platform software fed switch active acl counters hardwareshow platform hardware fed switch active fwd-asic resource tcam utilizationip access-groupshow ip interface <if>show access-lists <name>
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
ACL troubleshooting flow
| Step | Evidence |
|---|---|
| 1 | Exact protocol/source/destination/ports |
| 2 | Interface/VTY/feature attachment |
| 3 | Direction |
| 4 | Full ordered ACL |
| 5 | Baseline counters |
| 6 | One controlled test |
| 7 | Counter delta / first matching ACE |
| 8 | Downstream route/NAT/service if permitted |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=764