Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

ACL (Access Control List)

Direct answer

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).

When to use this

Use it to filter traffic through an interface, restrict management access, or select traffic for NAT, QoS, route maps and VPNs.

First 30 seconds

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.

Operational verification

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
Common mistakes
Common mistakes
  • 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.
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · IOS/IOS XE
Key commandshow object-group
Scope / prerequisiteUse it to filter traffic through an interface, restrict management access, or select traffic for NAT, QoS, route maps a…
Show · 1
What next?3 suggested next steps
Child topics (this level)6
Catalog command links1
Evidence1
On this pageJump to a specific section
Technical verification guide · documented only

Check 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 / checkInterpretationDoes 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.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points

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.

Key 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.
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)

TypeNumbersMatches
Standard1–99, 1300–1999Source address only
Extended100–199, 2000–2699Source, destination, protocol, ports and more
NamedAny nameStandard or extended; entries can be deleted individually

Where ACLs apply (documented)

KindApplied toDirection
Router ACLSVIs, routed ports, Layer 3 EtherChannelsOne per direction
Port ACLLayer 2 interfacesInbound (the guide is inconsistent about outbound)
VLAN mapA VLAN, for bridged trafficNo 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

TopicDetail
Keywordsany = 0.0.0.0 255.255.255.255; host = wildcard 0.0.0.0; established matches ACK or RST
Undefined ACLApplying a name that doesn't exist permits all traffic
LoggingOnly on Layer 3 interfaces; first match logged immediately, then summarised every 5 minutes
HardwareACLs run in hardware; if capacity is exceeded, packets on that interface are dropped
Countersshow ip access-lists doesn't count hardware-forwarded packets; use show platform software fed … acl counters hardware
Not supportedReflexive and dynamic ACLs, TTL matching, ACLs on the management port
Time rangesDepend 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

TypeMatches
Standard IPv4 (1–99, 1300–1999, or named)Source address
Extended IPv4 (100–199, 2000–2699, or named)Protocol, source, destination, ports
IPv6Always extended-style, named

Rules are checked top to bottom and the first match decides, so place specific entries before general ones.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
2026-09-13 · vendor docCisco Catalyst 9000 / IOS XE current

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%
Embedded reference data

Quick lookup tables

ACL processing order

The minimum mental model for every ACL lookup

StepQuestion
1What exact packet/flow is being tested?
2Does that packet traverse this ACL attachment?
3Is direction in or out correct for the packet?
4Which ACE is the first match?
5Is that ACE permit or deny?
6If none match, what does the implicit deny do?
7Does a controlled test increment the expected counter?

Standard vs Extended IPv4 ACL

Choose precision by what fields must be matched

CapabilityStandard IPv4Extended IPv4
Source IPv4YesYes
Destination IPv4NoYes
IP protocolNoYes
TCP/UDP destination portNoYes
Typical strengthSimple source policyPrecise service-flow policy
Key riskBroad effect across destinationsRule-order / tuple complexity

ACL · reference boundaries

Compact technical reference for the most important state and interpretation boundaries.

ACL elementReference rule
OrderingFirst matching ACE wins
No matchImplicit deny at end of a normal filtering ACL
Wildcard0 = compare bit, 1 = ignore bit
AttachmentFeature/interface + direction decide where evaluation occurs
CounterProves observed match at that policy point only
Confirmation

Confirm action

Continue?