Configuring a Numbered IPv4 Access Control List
This post walks beginners through configuring a standard numbered IPv4 ACL on a Cisco router. It covers creating ACL entries with wildcard masks, applying the ACL to an interface, and verifying behavior using IOS show commands. Real CLI output is included throughout.
Create the list with access-list 10 deny 192.168.10.0 0.0.0.255 and access-list 10 permit any, then apply it with ip access-group 10 out on the interface nearest the destination. Check it with show ip access-lists.
Access Control Lists are one of those topics that feel intimidating at first but quickly make sense once you see them in action. In this post, we'll walk through how to configure a numbered IPv4 ACL on a Cisco router, step by step. By the end, you'll have a working ACL and a solid mental model for how they behave.
What Is a Numbered ACL?
A numbered ACL is a list of permit or deny statements that Cisco IOS evaluates against IP traffic. The word "numbered" just means you identify the list with a number rather than a name. For standard IPv4 ACLs, you use numbers 1 to 99 (or 1300 to 1999 for expanded range). For extended ACLs, you use 100 to 199 (or 2000 to 2699).
In this post we'll focus on standard numbered ACLs, which filter traffic based solely on the source IP address. Extended ACLs add source, destination, and protocol matching, and we'll cover those in a future post.
The Scenario
Imagine you have a router with two interfaces. You want to block traffic from the 192.168.10.0/24 network from reaching the 10.0.0.0/8 network, but allow everything else. Here's how you'd build that with a standard numbered ACL.
Step 1: Create the ACL
Standard ACLs are created in global configuration mode. Each line you add becomes an entry in the list, evaluated top to bottom.
Router(config)# access-list 10 deny 192.168.10.0 0.0.0.255
Router(config)# access-list 10 permit anyA few things to notice here:
- ACL number 10: this is a standard ACL (falls within the 1-99 range)
- Wildcard mask
0.0.0.255: this is not a subnet mask. It tells IOS which bits to ignore. All zeros mean "must match," all ones mean "don't care." So0.0.0.255means match the first three octets exactly, ignore the last. permit any: this explicitly permits everything else. This is important because every ACL has an implicitdeny anyat the end. Without this line, all other traffic would be silently dropped.
Step 2: Apply the ACL to an Interface
An ACL does nothing until you apply it to an interface and specify a direction. Standard ACLs should generally be placed closest to the destination to avoid blocking traffic unintentionally on other paths.
Router(config)# interface GigabitEthernet0/1
Router(config-if)# ip access-group 10 outHere, out means the ACL will evaluate traffic leaving the router through that interface. You can also apply it in to filter traffic arriving on the interface.
Step 3: Verify the ACL
Once applied, use show ip access-lists to verify your entries and check hit counts:
Router# show ip access-lists
Standard IP access list 10
10 deny 192.168.10.0, wildcard bits 0.0.0.255 (12 matches)
20 permit any (47 matches)The match counts are incredibly useful during troubleshooting. If your deny entry never shows any matches, traffic probably isn't hitting that interface in the direction you expected.
You can also confirm the ACL is applied to the correct interface with:
Router# show ip interface GigabitEthernet0/1
GigabitEthernet0/1 is up, line protocol is up
Outgoing access list is 10
Inbound access list is not setA Quick Word on ACL Order
IOS processes ACL entries sequentially from top to bottom and stops at the first match. This means more specific entries should always come before broader ones. If you accidentally put permit any at the top, nothing below it will ever be evaluated.
Numbered ACLs: common questions
Which numbers are standard ACLs?
1 to 99 and 1300 to 1999. Extended lists use 100 to 199 and 2000 to 2699.
What if I forget permit any?
The implicit deny drops all traffic that matches no line.
Where does a new line go?
Below the existing lines, when you add it without a sequence number. A broader line above it can stop it from ever matching.
What does no access-list 10 remove?
The whole list, not one line. To remove one line, enter ip access-list standard 10 and use no with its sequence number.
What's Next
Now that you can configure a standard numbered ACL, the natural next step is understanding extended numbered ACLs, which give you much finer control by filtering on source IP, destination IP, protocol, and port numbers. We'll build on exactly what you've learned here and add that extra layer of precision.
If you want to reinforce these concepts with structured reading, the Cisco Press CCNA 200-301 Official Cert Guide by Wendell Odom covers ACLs in depth and ties them directly to exam objectives.
Stuck on a step, or want to compare notes with other students? Ask in our free CCNA study group on Skool.
Tools and resources for this topic
- Wendell Odom CCNA Vol 1 — Covers networking fundamentals, switching, and routing basics.
- Wendell Odom CCNA Vol 2 — Covers wireless LANs, ACLs, security, IP services, network architecture and automation.