Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Extended IPv4 ACL

Direct answer

An extended IPv4 ACL (numbers 100–199 and 2000–2699, or ip access-list extended <name>) matches protocol, source and destination addresses, ports and flags such as established.

When to use this

Use it to filter specific applications between networks, for example allow HTTPS to a server subnet and deny the rest.

First 30 seconds

1. show access-lists <name> — entries and counters.

2. Check the order: protocol, source, destination — and on which side the port is written.

3. Return traffic blocked? It needs its own entry (or established for TCP).

4. show ip interface <if> | include access list — direction right?

5. Test and confirm the intended entry counts.

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
Platform / version applicability
Protocol standard + deployed implementation
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.

PlatformProtocol standard · Cisco IOS / IOS XE
Key commandaccess-list <100-199> permit <protocol> <source> <wildcard> <destination> <wildcard>
Scope / prerequisiteUse it to filter specific applications between networks, for example allow HTTPS to a server subnet and deny the rest.
Reference · 4
What next?3 suggested next steps
Catalog command links4
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

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

1 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 and output interpretation Verify boundary

Verify representative tuples against the configured order and observe per-ACE counters while confirming the ACL is attached to the correct interface/direction. For TCP/UDP, validate which side owns the destination service port; a reversed port assumption can make a syntactically valid ACE useless. Where NAT exists, compare pre/post-translation addresses to the actual enforcement point. A hit counter shows classification, not successful downstream service.

Command lookup Jump straight to Cisco syntax
Key points

Syntax: permit|deny <protocol> <source> <wildcard> [port] <destination> <wildcard> [port]. Ports after the source match the source port, after the destination the destination port. Place extended ACLs close to the source to drop traffic early. Remember return traffic if the ACL is applied in both directions.

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 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. This makes it suitable for precise service-flow policy.

ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

Extended ACLs match protocol, source, destination and ports

The Catalyst 9300 IPv4 ACL guide states that extended ACLs match source and destination addresses and optionally the protocol, with port and other options for TCP, UDP, ICMP and IGMP. Numbered extended ACLs use 100–199 and 2000–2699. New entries in a numbered extended or named ACL go at the end, and the first match decides.

C9300(config)# ip access-list extended USERS-IN
C9300(config-ext-nacl)# 10 permit udp 10.20.0.0 0.0.0.255 host 10.10.50.10 eq domain
C9300(config-ext-nacl)# 20 permit tcp 10.20.0.0 0.0.0.255 any eq 443
C9300(config-ext-nacl)# 30 permit icmp 10.20.0.0 0.0.0.255 any echo
C9300(config-ext-nacl)# 40 deny   ip 10.20.0.0 0.0.0.255 10.10.0.0 0.0.255.255 log
C9300(config-ext-nacl)# 50 permit ip 10.20.0.0 0.0.0.255 any
C9300(config-ext-nacl)# 15 permit tcp 10.20.0.0 0.0.0.255 host 10.10.50.20 eq 22
C9300# show ip access-lists USERS-IN

Entry 15 is inserted between 10 and 20 thanks to sequence numbers.

Building an entry

PartExample
Actionpermit / deny
Protocolip, tcp, udp, icmp, protocol number
Source + wildcard10.20.0.0 0.0.0.255, host 10.20.0.5, any
Source port (TCP/UDP)eq, gt, lt, range (rarely needed)
Destination + wildcardhost 10.10.50.10
Destination porteq 443, eq domain
Optionsestablished, log, DSCP, TTL

Ordering rules

RuleWhy
Specific entries before general onesFirst match wins
Frequent matches earlyNot a performance issue in hardware, but easier to read
Explicit deny with log before a broad permitShows what is blocked
Remember the implicit denyReturn traffic and routing protocols need permits if the ACL is in their path

Hardware

ACLs are enforced in TCAM. Port ranges and many entries consume TCAM and L4 operator resources. The guide warns that traffic on affected VLANs can be dropped if TCAM is exhausted. Check usage with show platform hardware fed switch active fwd-asic resource tcam utilization.

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

An extended IPv4 ACL matches protocol, source and destination addresses, ports and TCP flags, so it can filter precisely and is applied close to the source.

ip access-list extended USERS-IN
 permit tcp 10.20.0.0 0.0.0.255 host 10.0.0.25 eq 443
 permit udp 10.20.0.0 0.0.0.255 host 10.0.0.53 eq domain
 deny   ip 10.20.0.0 0.0.0.255 10.0.0.0 0.0.255.255 log
 permit ip 10.20.0.0 0.0.0.255 any

Documented example, not captured output.

Remember return traffic: on a router (not stateful), an inbound ACL in the other direction must allow replies, for example with established for TCP.

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

State model and technical mechanics

Extended ACEs evaluate protocol plus source/destination IPv4 address fields and, for supported protocols such as TCP/UDP, optional source/destination port operators. ICMP types and other protocol-specific fields can also be represented by relevant syntax. First-match/implicit-deny behavior still applies, so precision does not remove the need for intentional ordering. The same flow can look different before and after NAT, making the enforcement point important when writing address tuples. An ACL is an ordered packet-classification policy.

Limits and common misconceptions

Extended ACLs remain stateless packet filters unless the surrounding feature provides state. An outbound permit does not automatically create a return-session rule, and TCP 'established' style matching is not equivalent to full connection-state inspection. The ACL also cannot show route symmetry or application identity. Use its counters as enforcement evidence only for the tuple and point where it is applied.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Start with a plain-language traffic matrix and translate it into ACEs: source, destination, protocol, service and action. Place specific exceptions before broader ranges, use remarks/sequence numbers, and choose attachment/direction where the packet has the address/port tuple you intend to classify. Avoid overly broad 'permit ip any any' entries above restrictions because first-match semantics will shadow them. Design ACLs from explicit traffic intent.

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 docProtocol standard + deployed implementation RFC 791

Authoritative/upstream documentation reviewed for bounded claims in Security → ACL → Extended IPv4 ACL. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc791.html · confidence 94%
Embedded reference data

Quick lookup tables

Extended IPv4 ACL · technical reference

Compact network access/security mechanics, policy and evidence boundaries for fast lookup.

FieldExtended IPv4 ACL
ProtocolIP/TCP/UDP/ICMP/etc.
SourceAddress + wildcard/host/any
DestinationAddress + wildcard/host/any
ServicePort/type where applicable
Depth when you need it

Deep reference

Additional depth

Five-tuple mental model

For TCP/UDP service policy, write the test as protocol + source IP/prefix + source port (when relevant) + destination IP/prefix + destination port. Then walk ACEs in order. This prevents a common troubleshooting error where an ACL looks right at the address level but the protocol or destination port does not match.

Confirmation

Confirm action

Continue?