An ACL is a list of rules that tells a router which traffic to allow and which to block. It is the simplest firewall a network has, and it is a core CCNA topic. Here is how ACLs work, with examples.
Published 28 November 2026 • SHM Soft
Every network has traffic it wants and traffic it does not want. Guests should reach the internet, but not the finance server. The office should reach the printer, but not the camera system. Someone has to enforce those rules, and on a Cisco network, that someone is often an access control list.
ACL stands for Access Control List. It is an ordered list of permit and deny rules that a router or switch checks against each packet. In this guide, we explain what ACLs are, how they work, the difference between standard and extended ACLs, and how to write them without locking yourself out.

An access control list is a set of rules, checked in order from top to bottom, that decides whether a packet is permitted or denied. When a packet arrives at an interface with an ACL, the router compares it against the first rule. If it matches, the router does what the rule says, and stops checking. If it does not match, the router tries the second rule, then the third, and so on. If the packet matches no rule at all, it hits the invisible rule at the end of every ACL: deny everything. This is called the implicit deny, and it is the most important thing to remember about ACLs.
ACLs are used for two main jobs. The first is security: blocking traffic that should not pass, like stopping guest devices from reaching internal servers. The second is traffic control: matching traffic for other features, like NAT, quality of service, or policy routing. In the second job, the ACL does not permit or deny anything by itself. It just identifies the traffic, and another feature acts on it. The CCNA focuses on the security job, but it is worth knowing the other one exists.
Standard vs extended ACLs
There are two main types of ACL. A standard ACL filters traffic by the source IP address only. It can say: allow traffic from 192.168.1.0, or deny traffic from 192.168.2.0. It cannot say anything about the destination, the protocol, or the port. Standard ACLs are numbered 1 to 99, and 1300 to 1999. They are simple, and they are the oldest type.
An extended ACL can filter by source and destination address, by protocol, and by port number. It can say: allow traffic from the Sales network to the web server on port 80, but deny everything else. Or: allow DNS queries to the DNS server, but block all other traffic to it. Extended ACLs are numbered 100 to 199, and 2000 to 2699. They are far more useful, and they are the type you will use most often.
Both types can also be named instead of numbered. A named ACL works the same way, but it has a readable name, like BLOCK-GUESTS, instead of a number. Named ACLs are easier to manage, because you can see what each one does, and you can delete a single rule from the middle without rebuilding the whole list. On a numbered ACL, you usually have to delete the whole list and start again to change one line.
How ACLs are applied
An ACL does nothing until you apply it to an interface, in a direction. An inbound ACL checks packets as they arrive at the interface, before the router processes them. An outbound ACL checks packets as they leave the interface, after the router has decided where they are going. The direction matters, and picking the wrong one is a common mistake.
The rule of thumb is: put a standard ACL as close to the destination as possible, and put an extended ACL as close to the source as possible. The reason is simple. A standard ACL only knows the source, so if you put it near the source, it blocks that source from reaching everything, not just the one thing you wanted to protect. An extended ACL knows the source and the destination, so you can put it near the source and it will only block the exact traffic you named.
ACLs use wildcard masks to say which bits of an address must match and which can vary. A wildcard mask looks like a subnet mask, but it means the opposite. In a wildcard mask, a 0 means the bit must match exactly, and a 1 means the bit can be anything. A subnet mask of 255.255.255.0 has the wildcard mask 0.0.0.255. The two are related: the wildcard mask is the subnet mask subtracted from 255.255.255.255.
Here is an example. The wildcard mask 0.0.0.255 means the first three octets must match, and the last octet can be anything. So the rule access-list 1 permit 192.168.1.0 0.0.0.255 matches every address from 192.168.1.0 to 192.168.1.255. The wildcard mask 0.0.0.0 means every bit must match, so it matches exactly one address. That is written as the keyword host followed by the address, which is clearer to read.
Wildcard masks can also match patterns that are not a neat subnet. The mask 0.0.0.3 matches four addresses, which is a /30. The mask 0.0.1.255 matches two whole /24 networks. Once you are comfortable with subnet masks and subnetting, wildcard masks click quickly, because they are the same binary idea with the bits flipped. The most common exam mistake is using a subnet mask where a wildcard mask belongs, so check which one the question wants before you answer.
The most common mistake is the order of the rules. ACLs are checked top to bottom, and the first match wins. If you put a broad permit at the top, like permit everything from the Sales network, then a deny below it for one Sales computer will never be reached, because the permit already matched. Specific rules go first, general rules go last.
The second mistake is forgetting the implicit deny. Every ACL ends with an invisible deny-all rule. If you write an ACL with only deny rules and no permit, it blocks everything, because nothing matches the deny rules and then the implicit deny blocks the rest. If you want to block one thing and allow everything else, you must add an explicit permit at the end, like permit ip any any. Forgetting that line is the single most common reason an ACL breaks a network.
The third mistake is applying the ACL in the wrong direction, or on the wrong interface. An inbound ACL on the wrong interface checks traffic that was never meant to be filtered, and the traffic you wanted to filter passes through unchecked. The fix is to think about the path the traffic takes, and to apply the ACL where the traffic actually flows. Testing helps: after you apply an ACL, try the traffic you wanted to block, and try the traffic you wanted to allow. If both behave as expected, you got it right.

Here is a realistic example. Your office has a staff network, 192.168.10.0/24, and a guest network, 192.168.30.0/24. Guests should reach the internet, but they should not reach the staff server at 192.168.10.50. You write an extended ACL and apply it inbound on the router interface that faces the guests.
The ACL has two lines. First: deny traffic from 192.168.30.0 to the host 192.168.10.50. Second: permit everything else. The order matters. The deny is specific, so it goes first. The permit is general, so it goes last. Without the permit, the implicit deny would block the guests from the internet too, which is not what you want. With it, guests can browse the web, but they cannot touch the server.
To write it on a Cisco router, you would use a named extended ACL, apply it inbound on the guest-facing interface, and then test it. From a guest device, try to reach the server. It should fail. Try to reach the internet. It should work. From a staff device, try to reach the server. It should work, because the ACL is only on the guest interface. Three tests, and you know the ACL does its job.
Watch on YouTube: What is ACL in Networking? | Standard vs Extended ACL Explained | CCNA
ACLs and VLANs: a natural pair
ACLs work best when the network is already divided into groups. If guests, staff, cameras, and servers are all on one flat network, there is nothing for an ACL to separate. If they are on separate VLANs, each with its own subnet, then an ACL on the router between them can enforce the rules cleanly. That is the normal design: VLANs divide the network, and ACLs guard the borders between the divisions. For the wider picture, see our guide to network security fundamentals.
What is an ACL in networking?
An access control list is an ordered list of permit and deny rules that a router or switch checks against each packet. The first matching rule decides what happens to the packet, and anything that matches no rule is denied by the implicit deny at the end.
What is the difference between a standard and an extended ACL?
A standard ACL filters by source IP address only, and it is numbered 1 to 99. An extended ACL filters by source and destination address, protocol, and port number, and it is numbered 100 to 199. Extended ACLs are far more precise and more commonly used.
What is the implicit deny?
It is an invisible deny-all rule at the end of every ACL. If a packet matches no rule in the list, it is denied. That is why an ACL with only deny rules blocks everything, and why you must add an explicit permit at the end if you want to allow other traffic.
What is a wildcard mask?
A wildcard mask says which bits of an address must match and which can vary. A 0 means the bit must match, and a 1 means it can be anything. It is the opposite of a subnet mask. For a /24 network, the wildcard mask is 0.0.0.255.
Where should I place a standard ACL?
As close to the destination as possible, because a standard ACL only knows the source, and placing it near the source would block that source from reaching everything. Extended ACLs go as close to the source as possible, because they are precise enough to block only the traffic you name.
Conclusion
An ACL is a simple idea: a list of rules, checked in order, that permits or denies traffic. Standard ACLs filter by source only, extended ACLs filter by source, destination, protocol, and port, and every ACL ends with an implicit deny. Wildcard masks say which address bits must match, and the direction and placement decide which traffic the list actually sees.
Write specific rules first, general rules last, and always add a permit at the end if you want other traffic to pass. Test from both sides, and never apply an ACL to the interface you are connected through without a way back in. Do that, and ACLs will do one of the most useful jobs in networking, quietly and reliably.
Related articles:
Telnet vs SSH: Remote Access Protocols Compared
Two remote access protocols, one plain text and one encrypted, compared.
What Is a VLAN? A Simple Guide
How one switch acts like several separate networks, and why ACLs guard the borders between them.
What Is EIGRP? How It Works and EIGRP vs OSPF
Cisco's fast-converging routing protocol, and how it compares with OSPF.
Want a clear price for your project?
Tell us what you need and we will send a free quote with no hidden charges.