Standard vs Extended ACLs: Cisco Access Lists with Examples
The comparison-first guide to Cisco access control lists for CCNA 200-301: what each type filters on, the numbered ranges (1–99 vs 100–199), where to place each, and full IOS configuration examples for standard, extended and named ACLs. Includes wildcard-mask practice, the classic exam traps, and 5 practice questions.
What is a Cisco ACL?
An access control list (ACL) is an ordered list of permit and deny statements that acts as a packet filter. When a packet reaches an interface with an ACL applied, the router checks the packet against the statements top-down: the first statement that matches decides the packet's fate — permit forwards it, deny drops it. Anything matching no statement hits the invisible implicit deny at the end and is dropped.
ACLs are applied to an interface in a direction: in filters traffic entering the interface (heading toward the router), and out filters traffic leaving the interface (heading away from the router). A packet can be checked twice on its journey: against the inbound ACL of the ingress interface, and — after the routing decision — against the outbound ACL of the egress interface. Traffic the router itself generates (pings from the router, routing updates) is never filtered by interface ACLs.
There are two types, and the exam tests the difference relentlessly. If you only remember one sentence: standard ACLs filter on the source address only; extended ACLs filter on source, destination, protocol and port. For the full topic overview, see our CCNA access lists guide.
Standard vs extended ACLs: the head-to-head comparison
| Standard ACL | Extended ACL | |
|---|---|---|
| Filters on | Source IP address only | Source IP, destination IP, protocol (TCP / UDP / ICMP / IP) and port numbers |
| Numbered ranges | 1–99 (expanded 1300–1999) | 100–199 (expanded 2000–2699) |
| Named version | ip access-list standard NAME | ip access-list extended NAME |
| Wildcard mask | Required — same syntax as extended | Required — same syntax as standard |
| Place it… | As close to the destination as possible | As close to the source as possible |
| Best for | Blocking a host or subnet from reaching everything | Blocking specific traffic between specific endpoints |
Why the placement rule? A standard ACL can only say “this source” — it cannot distinguish which destination the traffic is heading for. Put one near the source and you block that host from reaching everything, including servers it is allowed to use. So standard ACLs go near the destination, where the blast radius is smallest. An extended ACL can precisely target “source X to destination Y on port Z”, so you place it near the source and drop the junk before it consumes bandwidth crossing the network. The exam asks “where would you apply this ACL?” constantly — this reasoning is the answer.
Standard ACLs: source-only filtering (1–99)
Standard ACLs are numbered 1–99 (expanded range 1300–1999) and match only the source IP address. The syntax is simple:
access-list {1-99} {permit | deny} source [source-wildcard]
Scenario: host 192.168.20.7 on the guest network keeps probing the finance servers behind R2's GigabitEthernet0/1 interface. Block that single host from reaching anything beyond R2. Because a standard ACL cannot match the destination, we apply it close to the destination — outbound on R2's Gi0/1, the interface facing the servers:
! Block the probing host, permit everything else
R2(config)# access-list 10 deny host 192.168.20.7
R2(config)# access-list 10 permit any
R2(config)# interface gigabitEthernet 0/1
R2(config-if)# ip access-group 10 out
host 192.168.20.7is shorthand for192.168.20.7 0.0.0.0— a wildcard of all zeros means every bit must match, so exactly one address is matched.permit anyis shorthand forpermit 0.0.0.0 255.255.255.255— a wildcard of all ones means no bit must match, so everything is permitted.- Order matters: the specific
denycomes before the generalpermit. ACLs are checked top-down and the first match wins — reversed, the host would be permitted before its deny was ever evaluated. ip access-group 10 outapplies the ACL to traffic leaving Gi0/1 toward the servers. Verify withshow access-listsandshow ip interface gigabitEthernet 0/1.
Notice the final permit any. Without it, the implicit deny would drop all other traffic too — the ACL would block the one host and break the entire server farm. Forgetting the catch-all permit is the number-one beginner mistake and a favourite troubleshooting scenario on the exam.
Extended ACLs: full packet filtering (100–199)
Extended ACLs are numbered 100–199 (expanded range 2000–2699) and can match the source address, destination address, protocol and port numbers — the full five-tuple the exam loves. The syntax adds everything a standard ACL lacks:
access-list {100-199} {permit | deny} protocol source source-wildcard destination dest-wildcard [operator port]
Scenario: the guest network 192.168.20.0/24 must not reach the web server at 192.168.30.10 on HTTP or HTTPS, but all other traffic to the server farm stays up. This needs destination and port matching, so it has to be extended — and we apply it close to the source, inbound on the guest-facing interface, so the blocked traffic dies before travelling anywhere:
! Block guest web access to the server, allow everything else
R1(config)# access-list 101 deny tcp 192.168.20.0 0.0.0.255 host 192.168.30.10 eq 80
R1(config)# access-list 101 deny tcp 192.168.20.0 0.0.0.255 host 192.168.30.10 eq 443
R1(config)# access-list 101 permit ip any any
R1(config)# interface gigabitEthernet 0/0
R1(config-if)# ip access-group 101 in
tcpselects the protocol — useudp,icmporip(every IP packet) as needed. Port matching only makes sense withtcporudp.eq 80/eq 443match destination ports 80 and 443. Other operators:neq(not equal),lt(less than),gt(greater than) andrange(e.g.range 1024 65535).permit ip any anyallows everything the deny lines didn't catch — the protocolipmeans all IPv4 traffic, and the doubleanycovers every source and destination.ip access-group 101 infilters traffic entering Gi0/0 from the guest LAN. Because the ACL is precise, dropping here is safe: legitimate flows to other servers never match the deny lines.- Run
show access-lists 101and watch the per-line match counters — if your deny lines show zero matches while users complain, the ACL is applied in the wrong direction or on the wrong interface.
Named ACLs: editable, readable, the modern default
Numbered ACLs are the classic syntax, but named ACLs are what you'll use in real networks — and the exam expects you to configure them. A named ACL can be either type: ip access-list standard NAME behaves exactly like a 1–99 ACL, and ip access-list extended NAME behaves exactly like a 100–199 ACL.
The big win is editability. Each entry gets a sequence number (10, 20, 30…), so you can delete or insert individual lines later. With a numbered ACL, changing one line means removing and rebuilding the whole list. Here is the guest-policy scenario rewritten as a named extended ACL:
R1(config)# ip access-list extended GUEST-POLICY
R1(config-ext-nacl)# 10 deny tcp 192.168.20.0 0.0.0.255 host 192.168.30.10 eq 80
R1(config-ext-nacl)# 20 deny tcp 192.168.20.0 0.0.0.255 host 192.168.30.10 eq 443
R1(config-ext-nacl)# 30 permit ip any any
R1(config-ext-nacl)# exit
R1(config)# interface gigabitEthernet 0/0
R1(config-if)# ip access-group GUEST-POLICY in
- Need to also block FTP (port 21)? Re-enter the ACL and add
15 deny tcp 192.168.20.0 0.0.0.255 host 192.168.30.10 eq 21— sequence 15 slots neatly between 10 and 20. - HTTPS restriction lifted?
no 20removes just that line.show ip access-listsdisplays the sequence numbers. - A named standard ACL works the same way:
ip access-list standard BLOCK-GUEST, then10 deny host 192.168.20.7and20 permit any.
Exam tip: if a question shows an ACL being edited line-by-line with sequence numbers, it must be a named ACL — numbered ACLs don't support that workflow.
Wildcard masks in ACLs: the syntax that keeps appearing
Every ACL line uses a wildcard mask, and it trips people up because it is the inverse of a subnet mask: a 0 bit means “this bit must match”, a 1 bit means “don't care”. In a subnet mask, 1 means network — in a wildcard, 1 means ignore. Flip the meaning and wildcard questions become easy.
The fastest way to get a wildcard is 255.255.255.255 minus the subnet mask, octet by octet. Memorise these — they cover nearly every exam question:
| Subnet (CIDR) | Subnet mask | Wildcard mask |
|---|---|---|
/16 | 255.255.0.0 | 0.0.255.255 |
/21 | 255.255.248.0 | 0.0.7.255 |
/24 | 255.255.255.0 | 0.0.0.255 |
/26 | 255.255.255.192 | 0.0.0.63 |
/27 | 255.255.255.224 | 0.0.0.31 |
/28 | 255.255.255.240 | 0.0.0.15 |
/30 | 255.255.255.252 | 0.0.0.3 |
| single host | — | host keyword = 0.0.0.0 |
| everything | — | any keyword = 0.0.0.0 255.255.255.255 |
Two wildcard tricks the exam loves: first, wildcards don't have to sit on octet boundaries — 10.0.0.0 0.0.0.254 matches only the even addresses in that /24, because the wildcard's zero low bit forces the address's low bit to match the base (0 = even). Second, always double-check your inversion: a /28 is 255.255.255.240, so the wildcard is 0.0.0.15, not 0.0.0.16.
Need a wildcard for an unusual mask? Our free subnet calculator shows the wildcard for any address instantly, and the CCNA subnetting cheat sheet walks through the inversion method step by step.
CCNA exam traps: implicit deny, direction, and established
ACL questions on the 200-301 are rarely about syntax — they're about the behaviours people forget. Drill these six until they're reflex:
- The implicit deny. Every ACL ends with an invisible
deny ip any any. Traffic matching no line is dropped — silently. “The ACL permits what it should, but everything else broke” always means a missingpermit ip any any. Many engineers write the deny explicitly asdeny ip any any logso drops show up in the logs. - Direction is relative to the interface.
in= entering that interface toward the router;out= leaving that interface away from the router. A packet is checked against the inbound ACL on ingress, routed, then checked against the outbound ACL on egress. Applying the right ACLinon the wrong interface — or the wrong direction on the right interface — is the classic “why is nothing matching?” scenario. - First match wins, top-down. Always order statements most-specific to least-specific. A broad
permitabove a specificdenymakes the deny dead code. When troubleshooting, read the ACL from the top and stop at the first line the packet matches — that's the verdict. - The
establishedkeyword.access-list 120 permit tcp any any establishedpermits only TCP segments with the ACK or RST bit set — return traffic from sessions initiated from the inside. The standard pattern: block new connections from the internet, allow the replies. Note it is not stateful — it just checks the bits, unlike a real firewall. - Placement, again. Standard close to the destination (it can only match sources), extended close to the source (drop junk early). If a question asks where to apply an ACL, identify the type first — the placement follows from it.
- Interface ACLs ignore router-generated traffic. Pings sourced from the router, routing protocol updates, and other locally generated packets bypass interface ACLs entirely — they only filter traffic passing through.
Practice questions
Five exam-style questions covering the traps above. Answer from memory, then click to reveal.
Q1. You configure an ACL with three permit lines and nothing else. A packet arrives that matches none of them. What happens to it?
It is dropped. Every ACL ends with an implicit deny ip any any, so unmatched traffic is denied. The fix is a final permit ip any any (for a default-allow policy) — or write the deny explicitly with log so you can see what is being dropped.
Q2. A router has these two lines, in this order:
access-list 10 permit 172.16.0.0 0.0.255.255
access-list 10 deny host 172.16.5.5
A packet from 172.16.5.5 arrives. Permitted or denied?
Permitted. ACLs are evaluated top-down and the first match wins — the broad permit matched before the specific deny was ever checked, so the deny is dead code. Correct order: the specific deny host 172.16.5.5 first, then the general permit.
Q3. You must stop the 10.10.10.0/24 subnet from reaching the payroll server at 192.168.99.5 on TCP 3389, while allowing that subnet everywhere else. Which ACL type do you use, and where do you apply it?
Extended ACL, applied inbound on the interface facing 10.10.10.0/24 — as close to the source as possible. You need destination and port matching (deny tcp 10.10.10.0 0.0.0.255 host 192.168.99.5 eq 3389 followed by permit ip any any), which only an extended ACL can do. A standard ACL could only block the whole subnet from everything.
Q4. What wildcard mask matches exactly the subnet 172.16.8.0/21?
0.0.7.255. A /21 mask is 255.255.248.0; the wildcard is 255.255.255.255 minus the mask, octet by octet: 255−255=0, 255−255=0, 255−248=7, 255−0=255. Verify any mask↔wildcard pair instantly with the subnet calculator.
Q5. What does this line do?
access-list 150 permit tcp any any established
It permits TCP return traffic. The established keyword matches only segments with the ACK or RST bit set — replies to sessions initiated from the inside. The classic use: deny new inbound connections from the internet while letting the answers to your own outbound sessions back in. It is a static bit check, not stateful inspection.
Keep going with ACLs
Standard vs extended is the core comparison, but the exam also tests time-based ACLs, reflexive ACLs and how ACLs interact with NAT and VPNs — all covered in our full CCNA access lists guide. Then lock the knowledge in: drill the numbered ranges and wildcard inversions with our free flashcards, and work through timed CCNA 200-301 practice questions until placement, direction and ordering are reflex.
More study guides: CCNA access lists Subnetting cheat sheet NAT and PAT Network security fundamentals
Ready to test yourself?
ACLs are one topic of six on the CCNA 200-301. Take the free 25-question mock test — no sign-up — and find out where you stand. One subscription (£5/month or £39/year) unlocks all 370 exam-style questions, 20 in-browser labs and 300 flashcards across all 10 certifications.
Start the free mock test →