show access-lists
Lists every access list with its entries in order, their sequence numbers and how many packets each has matched.
Written by a working field network engineer · CCNA, Security+, CySA+
Lists every ACL entry in order with its sequence number and match counter. The counters are how you prove which entry a packet actually hit.
Example output
R1#show access-lists
Standard IP access list 1
10 permit 192.168.10.0, wildcard bits 0.0.0.255 (1532 matches)
Extended IP access list BLOCK-TELNET
10 deny tcp any any eq telnet (4 matches)
20 permit ip any any (2210 matches)Reference output: hand-written in standard Cisco IOS format for this example network, not captured from a device.
Useful variants
show ip access-listsshow access-lists BLOCK-TELNETclear access-list counters
What each column or field means
| Field | Meaning |
|---|---|
Standard / Extended | Standard lists (1-99, 1300-1999) match source address only. Extended lists (100-199, 2000-2699) match protocol, source, destination and ports. Named lists can be either. |
Sequence number (10, 20) | Entries are checked in this order and the first match wins. Use the numbers to insert or delete one entry. |
wildcard bits | The inverse mask: 0 bits must match, 1 bits are ignored. |
(N matches) | Packets that have matched the entry since the counters were last cleared. |
Implicit deny | Not shown, but every ACL ends with deny any. Packets that match nothing are dropped and counted nowhere. |
When it doesn’t look right
Traffic is blocked and no entry’s counter increases.
It is hitting the invisible implicit deny at the end. Add an explicit permit (or a final deny ip any any log to see it).
A permit entry never matches.
An earlier, broader entry catches the traffic first. Reorder with sequence numbers so specific entries come before general ones.
Counters stay at zero for the whole list.
The list is not applied, or is applied on the wrong interface or direction. Check show ip interface for the interface.
Related commands
Try it yourself
- Cisco Standard ACLs (Pro)
- Cisco Extended ACLs (Pro)
- Extended ACL Blocking Telnet (Pro)
- Rule Order Inside an Access List (Pro)
- ACL Filtering Logic Debug (Pro)
- Or build the example network in the free Sandbox
Learn it in the CCNA path
- Standard Access Control Lists (5. Security Fundamentals)
- Extended Access Control Lists (5. Security Fundamentals)
- Write a named standard ACL (5. Security Fundamentals)
- Permit web traffic with an ordered extended ACL (5. Security Fundamentals)
- Read an ACL as an ordered policy, not a list of intentions (5. Security Fundamentals)
Topic
Access Control Lists (ACLs) — Write standard, extended and named ACLs, apply them in the right direction on the right interface, and read their match counters.