Use it to filter traffic through an interface, restrict management access, or select traffic for NAT, QoS, route maps and VPNs.
ACL (Access Control List)
An access control list is an ordered list of permit and deny entries. A router or switch compares each packet with the entries from the top, acts on the first match, and drops anything that matches nothing (the implicit deny at the end).
1. show ip interface <if> | include access list — which ACL, which direction?
2. show access-lists <name> — read entries top-down: which is the first that matches the flow?
3. clear access-list counters <name>, generate the traffic, read the counters again.
4. No entry counts → implicit deny, or the ACL is on the wrong interface or direction.
5. Fix by inserting a sequence-numbered entry (<seq> permit ...) above the blocking one.
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
Context & applicabilityCommon mistakes · platform/version boundaries
- Reading only the ACE you expect instead of every earlier rule.
- Forgetting the implicit deny.
- Reversing inbound/outbound direction.
- Treating wildcard masks like subnet masks.
- Using a standard ACL where destination/service precision is required.
- Assuming a zero counter shows policy is not involved.
- Editing policy before proving which ACL/ACE sees the exact test flow.
Operational reference
Fast context before you go deeper.
show object-groupCheck the correct boundary
An ACL must be evaluated in ordered rule sequence on the actual interface, address family and packet direction. A matching entry does not guarantee the intended traffic passed the entire path.
Cisco IOS/IOS XE IPv4 interface ACL examples. Verify exact source/destination/protocol/ports, attachment direction and the return route; IPv6 access-groups are a separate syntax and scope.
| Read-only example / check | Interpretation | Does not prove |
|---|---|---|
show access-lists
|
Configured ACL entries and counters, where implemented | A listed permit/deny is not proof the ACL is applied to the test interface |
show ip interface <interface>
|
IPv4 interface state and inbound/outbound access-groups | An attached ACL does not prove a specific packet matched or reached the service |
Official documentation
Documentation reviewed 12 October 2026. These are explanatory reference examples, not observed production state, captured Evidence, or a new stored verification event. Confirm exact software release and scope on the device.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
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 Verification path Verify boundary
Primary bounded procedure: Use show access-lists, identify the exact attached ACL/direction, generate one controlled test and confirm the intended ACE counter changes.
Step 2 Verification and output interpretation Verify boundary
Use show access-lists or show ip access-lists to verify the exact ordered entries and counters. Confirm the ACL is attached at the intended interface/feature and direction using the relevant interface/configuration view. With a controlled test, observe the expected ACE counter increment while neighboring entries remain consistent with the traffic model. A counter delta is strong local evidence that the packet reached and matched that policy point, but it does not show what happened before or after the ACL.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
A Standard IPv4 ACL matches the source IPv4 address. It does not directly distinguish destination networks, IP protocols or transport ports, so one permit/deny can affect that source toward many destinations wherever the ACL is attached.
Subtopic Extended IPv4 ACLAn Extended IPv4 ACL can classify IPv4 traffic by protocol, source, destination and—where the protocol supports it—transport-layer ports or other protocol-specific fields.
Subtopic Apply IPv4 ACL`ip access-group <acl> in|out` attaches an IPv4 ACL to a Layer-3 interface in a specific direction.
Subtopic IPv6 ACLAn IPv6 ACL applies ordered permit/deny policy to IPv6 traffic.
Subtopic VTY ACLA VTY ACL restricts which remote source addresses are allowed to open management sessions to the device VTY lines.
Subtopic VerificationACL verification combines the configured ACE order with match counters and the actual attachment/direction.
Order matters: put specific entries before general ones. Every ACL ends with an invisible deny any, so an ACL with only deny entries blocks everything. Wildcard masks are inverted subnet masks (0.0.0.255 for a /24). One ACL per interface, per direction, per protocol.
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
An Access Control List (ACL) is an ordered list of Access Control Entries (ACEs) that classifies traffic and applies a permit or deny decision. Cisco IOS / IOS XE ACLs are evaluated top-down: the first matching ACE decides the result, and traffic that reaches the end without a match is denied by the implicit deny.
ReferenceWhy it matters1 section · depth on demand
Why it matters
Use ACLs to enforce Layer-3/Layer-4 traffic policy, restrict management access, classify flows for other features, and create explicit boundaries between networks or services. Troubleshoot them by following one exact packet tuple through the actual attachment and direction.
ReferenceHow it works1 section · depth on demand
How ACL processing works
For a packet that reaches an ACL boundary, IOS / IOS XE compares the packet against ACEs from top to bottom. The first matching ACE decides permit or deny; later lines are not consulted. If no explicit ACE matches, the packet reaches the implicit deny. This is why ordering, attachment and direction must be considered together. A perfectly written ACL that the packet never traverses is irrelevant to that test.
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
IPv4 access control lists on Catalyst 9300
The Catalyst 9300 IPv4 ACL guide describes ACLs as ordered lists of entries (ACEs). They are tested in order, the first match decides, and every ACL ends with an implicit deny.
Types (documented)
| Type | Numbers | Matches |
|---|---|---|
| Standard | 1–99, 1300–1999 | Source address only |
| Extended | 100–199, 2000–2699 | Source, destination, protocol, ports and more |
| Named | Any name | Standard or extended; entries can be deleted individually |
Where ACLs apply (documented)
| Kind | Applied to | Direction |
|---|---|---|
| Router ACL | SVIs, routed ports, Layer 3 EtherChannels | One per direction |
| Port ACL | Layer 2 interfaces | Inbound (the guide is inconsistent about outbound) |
| VLAN map | A VLAN, for bridged traffic | No direction; one map per VLAN |
Ingress order: port ACL, VLAN map, router ACL. Egress order: router ACL, VLAN map, port ACL.
C9300(config)# ip access-list extended USERS-IN
C9300(config-ext-nacl)# 10 permit udp any host 10.10.50.53 eq domain
C9300(config-ext-nacl)# 20 permit tcp any 10.10.50.0 0.0.0.255 eq 443
C9300(config-ext-nacl)# 30 deny ip any 10.10.0.0 0.0.255.255 log
C9300(config-ext-nacl)# 40 permit ip any any
C9300(config)# interface Vlan20
C9300(config-if)# ip access-group USERS-IN in
C9300# show ip access-lists USERS-IN
Extended IP access list USERS-IN
10 permit udp any host 10.10.50.53 eq domain (18342 matches)
20 permit tcp any 10.10.50.0 0.0.0.255 eq 443 (88121 matches)
30 deny ip any 10.10.0.0 0.0.255.255 log (412 matches)
40 permit ip any any (1022871 matches)
Documented behaviour worth knowing
| Topic | Detail |
|---|---|
| Keywords | any = 0.0.0.0 255.255.255.255; host = wildcard 0.0.0.0; established matches ACK or RST |
| Undefined ACL | Applying a name that doesn't exist permits all traffic |
| Logging | Only on Layer 3 interfaces; first match logged immediately, then summarised every 5 minutes |
| Hardware | ACLs run in hardware; if capacity is exceeded, packets on that interface are dropped |
| Counters | show ip access-lists doesn't count hardware-forwarded packets; use show platform software fed … acl counters hardware |
| Not supported | Reflexive and dynamic ACLs, TTL matching, ACLs on the management port |
| Time ranges | Depend on the clock; NTP recommended |
Placement
Put extended ACLs close to the source, so unwanted traffic is dropped early. Standard ACLs, which match only the source, go close to the destination.
Documented example, not captured output.
Quick reference
ACLs (Access Control Lists) are ordered lists of permit and deny rules matched against packets. They filter traffic on interfaces and also select traffic for NAT, QoS, route maps and VTY access. Each list ends with an implicit deny.
| Type | Matches |
|---|---|
| Standard IPv4 (1–99, 1300–1999, or named) | Source address |
| Extended IPv4 (100–199, 2000–2699, or named) | Protocol, source, destination, ports |
| IPv6 | Always extended-style, named |
Rules are checked top to bottom and the first match decides, so place specific entries before general ones.
Concept and state model
ACL behavior depends on both content and attachment. Standard IPv4 ACLs primarily match source IPv4 identity, while extended ACLs can match protocol, source/destination and transport ports. Named ACLs improve readability but do not change the first-match model. Sequence numbers make ordering explicit and allow controlled insertion. Wildcard masks in classic IOS ACL syntax invert the usual subnet-mask mental model: zero bits must match and one bits are ignored. The ACL itself is only the policy expression; an interface ip access-group, VTY access-class or other feature determines where and in which direction that expression is evaluated. Counters, where available, reflect observed matches at that attachment point.
Operational boundaries and common misconceptions
A correct-looking ACL that is not attached has no effect. A matching permit counter does not show the downstream service accepts the traffic, while a deny counter does not by itself show the application symptom is caused solely by that ACL. Earlier entries can shadow later entries, and wildcard mistakes can create unexpectedly broad or narrow scope. Remember that return traffic may traverse a different interface/direction or require separate state/policy depending on the design; a stateless ACL is not a stateful firewall.
ReferenceConfiguration & state2 sections · depth on demand
Lifecycle
Use bounded changes. Capture known-good pre-state, verify management access and rollback path, change the smallest owning object, wait only for the protocol-specific convergence window, and compare exact post-state. Do not restart protocols, clear broad state or weaken ACL/security policy merely to make a test pass.
Configuration model and design choices
Write ACLs from specific intent outward: define the exact traffic that should be permitted or denied, place more-specific exceptions before broader matches, and make the final policy outcome obvious. For interface filtering, apply the ACL in the direction where it evaluates the intended traffic with the least ambiguity. Use remarks and named lists for durable references. Treat “permit any” and broad wildcard entries as design decisions, not convenience defaults. When changing a production ACL, preserve the current list/order and verify whether edits can be made transactionally or require careful resequencing on the deployed software.
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. 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%Official Cisco vendor documentation reviewed for bounded reference claims: ACL matching, ordering, attachment and verification. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.
Basis: https://www.cisco.com/c/en/us/td/docs/switches/lan/c9000/security/acls/acls-configuration-guide/access-control-lists.html · confidence 94%Quick lookup tables
ACL processing order
The minimum mental model for every ACL lookup
| Step | Question |
|---|---|
| 1 | What exact packet/flow is being tested? |
| 2 | Does that packet traverse this ACL attachment? |
| 3 | Is direction in or out correct for the packet? |
| 4 | Which ACE is the first match? |
| 5 | Is that ACE permit or deny? |
| 6 | If none match, what does the implicit deny do? |
| 7 | Does a controlled test increment the expected counter? |
Standard vs Extended IPv4 ACL
Choose precision by what fields must be matched
| Capability | Standard IPv4 | Extended IPv4 |
|---|---|---|
| Source IPv4 | Yes | Yes |
| Destination IPv4 | No | Yes |
| IP protocol | No | Yes |
| TCP/UDP destination port | No | Yes |
| Typical strength | Simple source policy | Precise service-flow policy |
| Key risk | Broad effect across destinations | Rule-order / tuple complexity |
ACL · reference boundaries
Compact technical reference for the most important state and interpretation boundaries.
| ACL element | Reference rule |
|---|---|
| Ordering | First matching ACE wins |
| No match | Implicit deny at end of a normal filtering ACL |
| Wildcard | 0 = compare bit, 1 = ignore bit |
| Attachment | Feature/interface + direction decide where evaluation occurs |
| Counter | Proves observed match at that policy point only |