ACL rule order is the quiet reason behind some of the most frustrating tickets in networking. You write the permit statement, check the syntax twice, apply it to the interface, and the traffic is still dropped. The line is correct. The router simply never gets to it.
This is the ACL rule order trap: an access control list is not a set of independent rules, it is a sequence. Cisco IOS reads it from the top, stops at the first match and ignores everything below. If a broader statement sits above your permit, or the traffic matches nothing at all and falls into the implicit deny, a perfectly written line does nothing.
This guide is for CCNA students, junior network engineers, and anyone troubleshooting Cisco access lists in a real network. Whether you are studying or working in Sydney, Melbourne, Adelaide, Perth, Canberra, or elsewhere in Australia, you will learn the eight most common causes of ACL issues, the show commands that expose them in minutes, and the habits that keep ACL rule order from causing problems again.
How ACL Rule Order Works on a Cisco Router
Three behaviours explain almost every “my permit does not work” case.
- Top-down processing. Each packet is compared with entries in sequence number order, starting from the lowest.
- First match wins. As soon as a packet matches an entry, the permit or deny action is taken and processing stops. Later entries are never checked for that packet.
- Implicit deny. Every ACL ends with an invisible deny any. If a packet matches nothing, it is dropped, and the line never appears in the configuration.
Once you hold those three ideas in your head, ACL rule order stops being mysterious. The real skill is spotting which of them is working against you.
8 Reasons a Correct Permit Statement Still Fails
1. A broader deny sits above your permit
This is the classic. A deny for a whole subnet comes first, and a permit for one host inside that subnet comes later. The host matches the deny, the router stops, and the permit is dead code. When you review ACL rule order, always read from the top and ask which line the packet hits first.
access-list 101 deny ip 10.10.10.0 0.0.0.255 any
access-list 101 permit tcp host 10.10.10.25 host 192.168.50.10 eq 443
! The host 10.10.10.25 matches line 1 and is denied. Line 2 is never reached.
2. The traffic falls into the implicit deny
Sometimes nothing above your permit blocks the traffic, but nothing permits it either. A missing return path, a different port, or traffic you did not think about (routing protocol updates, ICMP, DNS) hits the invisible deny any at the end. If the ACL has no permit ip any any or an equivalent catch-all, anything unlisted is dropped.
3. The ACL is applied to the wrong interface or direction
Inbound and outbound are always from the router’s point of view. An ACL applied outbound on the LAN-facing interface looks at traffic leaving towards the LAN, not traffic entering from it. Many correct statements fail because the ACL was bound to the right interface in the wrong direction, or to the wrong interface entirely. Remember the placement rule of thumb: standard ACLs close to the destination, extended ACLs close to the source.
4. New entries were appended below an existing deny
On a numbered ACL, new lines added with the old-style command are appended to the bottom. If a deny already sits above, your new permit lands underneath it and never fires. Named ACLs and numbered ACLs edited in named mode let you choose a sequence number and slot the permit in at the right position.
ip access-list extended 101
5 permit tcp host 10.10.10.25 host 192.168.50.10 eq 443
! Sequence 5 now sits above the broad deny, so the specific permit is matched first.
5. A wildcard mask is wrong
Wildcard masks are inverted subnet masks, and mixing them up is a rite of passage. Writing 255.255.255.0 where 0.0.0.255 is needed changes which addresses match entirely. A line can look right at a glance and still match a different range, which sends packets down to a later entry or to the implicit deny. This is a frequent source of ACL rule order confusion in CCNA labs.
6. Source and destination, protocol or port are swapped
In an extended ACL the order is protocol, source, then destination. Swapping them, using ip when the line needs tcp, or putting eq 443 on the wrong side means the statement matches traffic that does not exist. Remember that the port after the destination matches the service you are connecting to, not the random source port the client picked.
7. Return traffic is blocked because ACLs are stateless
A standard IOS access list does not track sessions. You can permit the request and still drop the reply, because the reply is a separate packet that has to match its own entry. Permit the return traffic explicitly, use the established keyword for TCP replies where it fits, or move to a stateful feature such as reflexive ACLs or a zone-based firewall.
8. NAT changes what the ACL sees
When NAT is involved, the order of operations decides which address an ACL matches. For traffic going from inside to outside, an inbound ACL sees the original inside address, while an outbound ACL on the outside interface sees the translated one. For traffic coming from outside to inside, NAT happens before the inbound ACL is evaluated on some paths, so you must reference the right address. Check which address the packet carries at the point the ACL is applied.
How to Troubleshoot ACL Rule Order in 10 Minutes
Do not guess. Let the router tell you which line is matching, using Cisco’s guidance on commonly used IP ACLs as a reference.
- Read the ACL with hit counters. The match counts show which entry traffic is actually hitting:
show access-lists
show ip access-lists 101
- Confirm where it is applied. Check the interface and direction:
show ip interface GigabitEthernet0/0 | include access list
- Reset and retest. Clear the counters, send one test packet, and look at which line increments:
clear ip access-list counters 101
ping 192.168.50.10 source 10.10.10.1
- Check the order. Use the sequence numbers in the output to spot a deny above your permit, then insert the permit with a lower sequence number.
- Validate in a lab first. Reproduce the problem in Cisco Packet Tracer before touching production.
- Mind the router itself. An outbound ACL does not filter traffic that the router generates, so a ping from the router can succeed while user traffic fails.
Best Practices to Prevent ACL Rule Order Mistakes
- Order from specific to general. Put narrow exceptions first and broad permits or denies last.
- Use named ACLs. They are easier to read and edit than numbered lists.
- Leave gaps in sequence numbers. Number entries 10, 20, 30 so you can insert a line later without rebuilding the list.
- Add remarks. A remark on each block explains intent for the next engineer.
- Review ACL rule order before every change. Print the list, read it top to bottom, and predict where each flow will match.
- Protect remote access. When editing an ACL over SSH, schedule a safety reload and cancel it once the change is proven.
- Document and test. Keep a record of what each ACL protects and test with hit counters after every change.
ACL Rule Order Troubleshooting Quick Reference
Use this table to move from symptom to command.
| Symptom | Likely cause | Command to confirm |
| Permit line shows zero hits | A deny above it matches first | show access-lists |
| Only some hosts are blocked | Wildcard mask matches wrong range | show running-config | section access-list |
| No ACL entries are matching | Wrong interface or direction | show ip interface [interface] |
| Requests work, replies fail | Stateless ACL blocks return traffic | show access-lists with counters |
| New permit never fires | Appended below an existing deny | Insert with a lower sequence number |
| Works from router, fails for users | Outbound ACL does not filter router traffic | Test from a host, not the router |
| Behaviour changes with NAT | ACL matches translated or untranslated address | show ip nat translations |
A Common ACL Rule Order Scenario
Consider an illustrative example. A branch office blocks the guest subnet from reaching internal servers with a broad deny. Later, the helpdesk is asked to let one printer server reach a file server. The engineer adds a precise permit for that one host and confirms the syntax is perfect. Nothing changes.
The new line was appended at the bottom, below the broad deny, so the printer server matched the deny first and the permit showed zero hits. The fix took thirty seconds: insert the permit with a lower sequence number above the deny. This example is a composite for illustration, not a specific customer case, but it is exactly what ACL rule order looks like on a real ticket.
Master ACLs and Pass the CCNA
Access control lists are a core CCNA topic, and exam questions love to test ACL rule order, implicit deny and wildcard masks. They also separate confident network engineers from nervous ones on the job. If you want structured, hands-on practice, explore the courses at CCNA Certification Australia. Learners in Melbourne, Sydney, Brisbane, Perth, Adelaide, Canberra, Hobart and Darwin can study for the exam and build practical routing, switching and security skills.
Cisco publishes the official exam topics on its CCNA certification page, and the Cisco Learning Network is a good place to see how other candidates study. Useful pathways include:
- CCNA 200-301 course: routing, switching, IP services, security fundamentals and ACLs.
- CCNA lab and Packet Tracer practice: build, break and fix ACLs in a safe environment.
- CCNA exam preparation and practice questions: test yourself on ACL rule order and wildcard masks.
- CCNP Enterprise pathway: the natural next step for network engineers.
ACL Rule Order FAQs
Why is my Cisco ACL permit statement not working?
The most common reasons are a deny above it, the implicit deny at the end, the wrong interface or direction, and a wrong wildcard mask. Check the hit counters with show access-lists to see which line is matching.
Does ACL rule order matter?
Yes. Cisco IOS checks entries from the top and stops at the first match, so the position of every line decides the outcome for overlapping rules.
What is the implicit deny in an ACL?
It is an invisible deny any at the end of every access list. Any packet that matches no entry is dropped, even though the line never appears in the configuration.
How do I insert a line in the middle of an ACL?
Enter the ACL in named mode, or edit a numbered ACL with the ip access-list command, then add the entry with a sequence number lower than the line you want it to precede.
Should I use inbound or outbound ACLs?
It depends on where you want to filter. Inbound filters traffic as it enters an interface and saves processing, while outbound filters traffic as it leaves. Always think from the router’s point of view.
Final Thoughts on ACL Rule Order
The correct permit statement is only half the job. Where it sits, where it is applied and what comes before and after it decide whether traffic flows. Treat ACL rule order as a design decision, read every list from the top, and let the hit counters confirm what you think is happening. Do that and the trap becomes a quick fix instead of a long night.
Ready to build these skills properly? Explore the CCNA courses at ccnacertification.com.au and start your certification pathway today.
