BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Access Control Lists (ACLs)

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

What each column or field means

FieldMeaning
Standard / ExtendedStandard 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 bitsThe 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 denyNot 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

Learn it in the CCNA path

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.

All 57 commands