Standard and Extended ACLs
ACLs filter packets by Layer 3/4 information. Standard ACLs match source IP only and live close to the destination. Extended ACLs match source, destination, protocol, and port — and live close to the source. This chapter walks through both with worked examples.
What you'll learn
- Write a numbered standard ACL and apply it to an interface.
- Write a numbered or named extended ACL with protocol/port matches.
- Explain the implicit deny and the importance of order.
Standard ACL — source IP only
Numbers 1–99 (and 1300–1999) are standard ACLs. They match only on source IP. Apply outbound on the interface closest to the destination so legitimate traffic is allowed elsewhere first.
R1(config)# access-list 10 permit 10.0.10.0 0.0.0.255
R1(config)# access-list 10 deny 10.0.20.0 0.0.0.255
R1(config)# access-list 10 permit any
R1(config)# interface Gi0/1
R1(config-if)# ip access-group 10 outExtended ACL — full 5-tuple
Numbers 100–199 (and 2000–2699) — or named — are extended. Match source, destination, protocol, and port. Apply inbound on the interface closest to the source so unwanted traffic dies before it consumes router resources.
R1(config)# ip access-list extended WEB-IN
R1(config-ext-nacl)# permit tcp 10.0.0.0 0.0.255.255 host 10.0.99.10 eq 80
R1(config-ext-nacl)# permit tcp 10.0.0.0 0.0.255.255 host 10.0.99.10 eq 443
R1(config-ext-nacl)# deny ip any any log
R1(config-ext-nacl)# exit
R1(config)# interface Gi0/0
R1(config-if)# ip access-group WEB-IN in11 more sections in this chapter, plus a 4-question quiz and a hands-on lab.
Modules 2–8 are part of the Course & Lab Pass and All-Access Max — start with a free account
You can see the title, summary, learning objectives and the opening sections. The rest of this chapter, like all of modules 2–8, comes with the Course & Lab Pass and All-Access Max. A free account opens Module 1: How Networks Work end-to-end and saves your labs — start there, no card required.
- Read every chapter in Module 1 — How Networks Work
- Save labs of up to 5 devices
- Save up to 3 topologies
- See the full course syllabus + chapter titles
Free account · no card required · compare plans any time
Build it step by step
- Give the whole network one clockBuild an NTP hierarchy from HQ to a branch switch, read the strata hop by hop, then find the security ACL that silently broke time while ping kept working. · 7 steps · ~20 min · 3 devices
- Guard the server with an ACLLet one workstation reach the server, stop the guest laptop, and learn what the implicit deny does to everyone else. · 7 steps · ~20 min · 5 devices
- A DMZ behind a firewallStand a firewall between three zones so the public reaches one server and nothing else. · 7 steps · ~25 min · 6 devices
- Branch office capstoneStaff and guests on one switch: guests lease an address the moment they plug in, reach the internet, and never see a staff file. · 10 steps · ~40 min · 7 devices