Use it after every ACL change, and when someone says "the firewall blocks it".
Verification · ACL
Verifying an ACL means proving it is applied where intended and that test traffic hits the expected entries — not just reading the configuration.
1. show ip interface <if> | include access list — applied and direction.
2. clear access-list counters <name>.
3. Generate the test flow (ping, telnet <ip> <port>, application).
4. show access-lists <name> — the expected entry counted?
5. Nothing counted → traffic does not pass that interface or direction.
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
Confirm attachment/direction; if permit is proven, continue to route/NAT/return path/service.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show access-lists [name|number]Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show access-lists [name|number]ShowDisplay configured ACLs and match counters.
Use when: ACL validation.
Quick note: Counters help confirm traffic is hitting an ACE.
IOS/IOS XE · mixedshow ip interface <interface>ReferenceInspect interface IPv4 address, prefix and protocol state.
Use when: Use at the IPv4 Addressing, Subnetting and VLSM boundary after prerequisite state is verified.
Quick note: Operational guidance. A mathematically valid address does not prove it is unique, correctly routed, allowed by policy or configured with the intended mask.
Cisco IOS / IOS XE · mixedshow access-listsShowACL entries and counters where supported.
Use when: Use after confirming the Access Control target and before changing state.
Quick note: Cross-platform security / Cisco / Linux / Windows. A control being configured does not prove enforcement, visibility, containment or acceptable residual risk.
Cisco IOS XE · mixedshow ip access-listsShowDisplay IPv4 ACLs and their hit counters.
Use when: Inspect IPv4 ACL state and correlate a controlled packet with the first matching ACE.
Quick note: Use before/after counters around one exact flow.
Cisco IOS / IOS XE · policyshow ipv6 access-listShowDisplay IPv6 ACLs and hit counters.
Use when: Inspect effective IPv6 ACL policy and counters.
Quick note: If ACL permits but IPv6 fails, continue to ND/routing/return path.
Cisco IOS / IOS XE · policyHow to read the output
show access-lists [name|number]Look first: ACE order, match counters, implicit deny context
Healthy: Expected ACE matches traffic and counters move during controlled test.
Warning: Earlier shadowing ACE, no counter movement or unexpected deny.
Does not prove: Counter movement proves matching, not that ACL is the root cause.
show access-listsLook first: ACE order, match counters, implicit deny context
Healthy: Expected ACE matches traffic and counters move during controlled test.
Warning: Earlier shadowing ACE, no counter movement or unexpected deny.
Does not prove: Counter movement proves matching, not that ACL is the root cause.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 First 30 seconds Verify boundary
Immediate answer: Correlate the intended packet tuple with ACE order/counters and the exact interface/direction attachment before editing the ACL.
Verification chain: packet tuple → applied interface/direction → ACL sequence → ACE match/counter → permit/deny → downstream/return path
Stop condition: ACL content alone does not show attachment, direction or which ACE matched the failing flow.
Step 2 Known-good, broken and proof-boundary verification Verify boundary
Known-good ACL state is the intended ACL attached at the intended boundary, the correct ACE counter increasing for the controlled flow, unrelated ACEs remaining stable and the original workload producing the expected permit/deny result. Broken state includes wrong direction, shadowed ACE, wrong tuple after NAT or unexpected implicit deny. A matching ACL counter shows that packet reached and matched that ACE, but it does not show later forwarding or application success, which is the limit of what it shows.
Step 3 Verification and output interpretation Verify boundary
Inspect the ACL and attachments, record counters, create or observe a representative flow, and record counters again. Confirm the packet's source/destination/protocol/ports and the route/interface direction. A counter delta on a deny localizes the enforcement decision; a permit delta only clears the ACL stage and should be followed by route/neighbor/return-path evidence if the service still fails.
Step 4 Step-by-step troubleshooting Narrow the fault
Boundary rule: ACL content alone does not show attachment, direction or which ACE matched the failing flow.
Step 5 Evidence-first workflow Narrow the fault
Counter rises on intended ACE: the tested traffic is reaching and matching that ACE; compare permit/deny with intent, then move downstream if permitted.
Counter rises on an earlier unexpected ACE: ordering/shadowing is the immediate policy boundary.
No relevant counter changes: show interface/feature attachment, direction and packet path before editing the ACL.
ACL permits but service fails: move to routing, NAT, firewall/stateful policy, return path, transport and application evidence.
Step 6 Failure isolation: observation → implication → next check Narrow the fault
If an intended permit/deny counter remains zero, verify the ACL is attached to the correct interface/direction and inspect the packet tuple at that point. If a broader earlier ACE increments, rule order is the failing step. If counters increment as expected but traffic still fails, move to routing/NAT/return path rather than editing the ACL. If an implicit deny is suspected, create evidence with a controlled flow and existing logging/counters before adding a broad permit. Keep source, destination and protocol fixed.
Evidence · 4 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
After a baseline snapshot and one controlled IPv4 test, only the intended first-match ACE shows the expected counter increase.
command output · Evidence referenceEarlier IPv4 ACE increments instead of intended ruleA controlled test increments an earlier ACE while the intended later ACE does not change.
command output · Evidence referenceNo ACL counter changes during the testA controlled test produces no change on the ACEs expected to match.
observation · Evidence referencePermit decision is correct but application still failsThe exact test packet is permitted by the intended ACL ACE, yet transport/application completion fails.
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.
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.
ReferenceWhat it is1 section · depth on demand
What it is
ACL verification combines the configured ACE order with match counters and the actual attachment/direction. show access-lists, show ip access-lists and show ipv6 access-list expose ACL definitions and counters on supported IOS / IOS XE releases.
ReferenceHow it works1 section · depth on demand
Mechanics, state owner and dependency boundary
ACL behavior depends on rule order, direction, interface/feature attachment and the packet tuple seen at that boundary. An ACL definition is inert until referenced, and counters reflect only traffic that reaches and matches a line. NAT, routing, control-plane versus data-plane placement and IPv4/IPv6 family can change the tuple or path before evaluation. Therefore configuration text, attachment and hit counters are separate state owners.
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
Verifying ACLs: configuration, attachment, counters and hardware
An ACL can be correct on paper and still not do what you expect. Check its content, where it is attached, and what the hardware actually counts.
What the Catalyst 9300 guide says about counters
The IPv4 ACL guide notes that show ip access-lists shows match counts that don't include hardware-switched packets. On Catalyst 9300 most traffic is switched in hardware, so use show platform software fed switch {num|active|standby} acl counters hardware for hardware counters. The guide also states that ACLs are enforced in hardware, and that exhausted TCAM can lead to dropped traffic on affected VLANs.
C9300# show ip access-lists USERS-IN
Extended IP access list USERS-IN
10 permit udp 10.20.0.0 0.0.0.255 host 10.10.50.10 eq domain
40 deny ip 10.20.0.0 0.0.0.255 10.10.0.0 0.0.255.255 log (318 matches)
C9300# show ip interface Vlan20 | include access list
Inbound access list is USERS-IN
C9300# show platform software fed switch active acl counters hardware | include Drop|Deny
Ingress IPv4 Forward (0x12000003): 9182331 frames
Ingress IPv4 PACL Drop (0x01000005): 3112 frames
Ingress IPv4 RACL Drop (0x0b000005): 812234 frames
C9300# show platform hardware fed switch active fwd-asic resource tcam utilization
C9300# show logging | include IPACCESSLOG
%SEC-6-IPACCESSLOGP: list USERS-IN denied tcp 10.20.0.25(51332) -> 10.10.20.15(445), 12 packets
Verification steps
| Step | Command |
|---|---|
| ACL content and order | show ip access-lists <name> |
| Attached to the right interface and direction | show ip interface <id> \| include access list, show running-config interface <id> |
| Hardware drops by ACL type | show platform software fed switch active acl counters hardware |
| TCAM resources | show platform hardware fed switch active fwd-asic resource tcam utilization |
| Logged denies | show logging \| include IPACCESSLOG |
When traffic is blocked unexpectedly
| Check | Typical finding |
|---|---|
| Implicit deny at the end | Return traffic or DHCP/routing protocols not permitted |
| Order of entries | A broad deny before a specific permit |
| Several ACL types on the path | A PACL or VLAN map blocks before the RACL is evaluated |
| Wrong direction | ACL applied out when in was intended |
| TCAM exhaustion | Syslog messages about ACL programming failures |
When traffic passes unexpectedly
An undefined ACL applied to an interface permits all traffic, according to the guide. A typo in the ACL name on ip access-group therefore removes the filtering silently. Check that show ip access-lists <name> actually returns the ACL you think is applied.
Documented example, not captured output.
Method
ACL verification proves the ACL is applied, matches as intended and does not block legitimate traffic.
1. show ip interface <if> — which ACL is applied in which direction.
2. show access-lists <name> — hit counters per entry.
3. Clear counters, generate test traffic, and see which entry matches.
4. Add log to a deny entry temporarily to see what is dropped.
5. Test from the real source, not from the router itself.
| Observation | Meaning |
|---|---|
| No hits anywhere | ACL not applied or wrong direction |
| Hits on a broad deny | Missing permit above it |
| Permit hits but traffic fails | Problem elsewhere (return path, routing) |
State model and technical mechanics
A complete ACL check has three objects: the policy definition, the enforcement attachment and the actual packet tuple/path. First-match semantics mean the intended ACE may never be reached if an earlier rule matches. Attachments determine whether the ACL is active for the flow, while routing/NAT determine what addresses and direction appear at that point. Counters add runtime evidence, but they are meaningful only when mapped to a specific ACE and time window. An ACL is an ordered packet-classification policy.
Limits and common misconceptions
A zero counter is not evidence an ACE is unused; traffic may not have occurred during the window, may take another path or may match an earlier rule. High counters do not show the rule is correct—they can expose an overly broad match. ACL verification should establish behavior at one policy boundary, not label the entire application path healthy or broken.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Preserve sequence numbers/remarks and use a planned traffic matrix so verification has expected permit and deny cases. Before editing a live ACL, identify every place the object is referenced to avoid unintended shared impact. For management ACLs, keep a recovery session. For transit ACLs, prefer controlled representative traffic and existing counters over generating disruptive test patterns. Design ACLs from explicit traffic intent.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → ACL → Verification. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Quick lookup tables
ACL troubleshooting flow
Use counter deltas only after path/attachment are known
| 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 |
Verification · technical reference
Compact network access/security mechanics, policy and evidence boundaries for fast lookup.
| Verification step | Evidence |
|---|---|
| Definition | ACE order and implicit deny |
| Attachment | Interface/line/feature + direction |
| Runtime | Counter delta for known tuple |
| Next layer | Routing/return path/application |