Module 6.4 60 minIntermediate

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.

Course plan — preview

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 out

Extended 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 in

11 more sections in this chapter, plus a 4-question quiz and a hands-on lab.

Course plan

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