Extended IPv4 ACL
Cheat sheet · https://pcornel.dk/topic.php?topic=760
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.
Remember
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.
First 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.
Commands
ip access-list extended <name>- Create a named extended ACL, here used to match traffic for policy-based routing.
access-list <100-199> permit <protocol> <source> <wildcard> <destination> <wildcard>- Add a permit entry to a numbered extended IPv4 ACL matching protocol, source and destination.
permit tcp <source> <wildcard> <destination> <wildcard> eq <port>- Add a permit entry for TCP traffic to a destination port in an extended ACL.
deny ip <source> <wildcard> <destination> <wildcard>- Add a deny entry for IP traffic to an extended IPv4 ACL.
show platform hardware fed switch active fwd-asic resource tcam utilization
Verify in this order
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
Where it usually breaks
local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result
Extended IPv4 ACL · technical reference
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=760