Use it to filter specific applications between networks, for example allow HTTPS to a server subnet and deny the rest.
Extended IPv4 ACL
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.
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.
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
Operational reference
Fast context before you go deeper.
access-list <100-199> permit <protocol> <source> <wildcard> <destination> <wildcard>Primary Commands
Configuration and operational commands for this Topic.
access-list <100-199> permit <protocol> <source> <wildcard> <destination> <wildcard>ReferenceAdd a permit entry to a numbered extended IPv4 ACL matching protocol, source and destination.
Use when: Permit a defined IPv4 protocol flow using a numbered Extended ACL.
Quick note: Verify the first match and attachment/direction.
Cisco IOS / IOS XE · mixedip access-list extended <name>ReferenceCreate a named extended ACL, here used to match traffic for policy-based routing.
Use when: Define the exact packet set that should match a PBR route-map sequence.
Quick note: Verify with ACL counters and show route-map during a controlled test.
permit tcp <source> <wildcard> <destination> <wildcard> eq <port>ReferenceAdd a permit entry for TCP traffic to a destination port in an extended ACL.
Use when: Permit a specific TCP service flow.
Quick note: After ACL permit evidence, verify TCP handshake/application and reverse path.
Cisco IOS / IOS XE · mixeddeny ip <source> <wildcard> <destination> <wildcard>ReferenceAdd a deny entry for IP traffic to an extended IPv4 ACL.
Use when: Deny all IPv4 protocols between the matched source and destination ranges.
Quick note: Use a controlled test and counter delta.
Cisco IOS / IOS XE · mixedVerification & 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 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.
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.
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
| Part | Example |
|---|---|
| Action | permit / deny |
| Protocol | ip, tcp, udp, icmp, protocol number |
| Source + wildcard | 10.20.0.0 0.0.0.255, host 10.20.0.5, any |
| Source port (TCP/UDP) | eq, gt, lt, range (rarely needed) |
| Destination + wildcard | host 10.10.50.10 |
| Destination port | eq 443, eq domain |
| Options | established, log, DSCP, TTL |
Ordering rules
| Rule | Why |
|---|---|
| Specific entries before general ones | First match wins |
| Frequent matches early | Not a performance issue in hardware, but easier to read |
Explicit deny with log before a broad permit | Shows what is blocked |
| Remember the implicit deny | Return 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.
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.
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
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 → 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%Quick lookup tables
Extended IPv4 ACL · technical reference
Compact network access/security mechanics, policy and evidence boundaries for fast lookup.
| Field | Extended IPv4 ACL |
|---|---|
| Protocol | IP/TCP/UDP/ICMP/etc. |
| Source | Address + wildcard/host/any |
| Destination | Address + wildcard/host/any |
| Service | Port/type where applicable |
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.