Loopback Cert Guide

Lab 5.6ACLs

Two routers between a PC LAN and a server LAN. Write standard, extended and named ACLs, apply them in or out, predict which line matches, then drill wildcards and placement.

  • 5.6 Configure and verify access control lists
Live network · ACLs · simulated
  • ACL applied in
  • ACL applied out
  • No ACL
  • Shut down

Simulated: the routers, hosts, addresses (10.x.x.x private space) and console output are Loopback's simulation of IOS routers. Every host here answers every service, so only the ACLs decide what gets through.

02Recall sheet

The whole topic on one sheet.

The numbers, orders and commands the network runs on. Cover a column and say it before you look.

Standard or extended

StandardExtended
Numbers1-99, 1300-1999100-199, 2000-2699
MatchesSource IP onlyProtocol, source and destination IP, ports
Place itClose to the destinationClose to the source
Namedip access-list standard NAMEip access-list extended NAME

How it's read

  1. Top to bottom, one line at a time.
  2. The first line that matches decides. Nothing below it is read.
  3. No match: the implicit deny any at the end drops it.
  4. An ACL with no lines, or one that doesn't exist, permits everything.

Applying it

  • ip access-group 10 in or out, under the interface.
  • Direction is the router's view: in is arriving on that interface, out is leaving it.
  • One ACL per interface, per direction, per protocol. A new one replaces the old.
  • Replies cross ACLs too.

Wildcard masks

0.0.0.0
That host exactly (host 10.1.10.20)
0.0.0.255
A /24
0.0.0.15
A block of 16
255.255.255.255
Anything (any)

Wildcard = 255.255.255.255 minus the subnet mask. A 0 bit must match, a 1 bit is ignored.

Ports by name

wwwTCP 80
telnetTCP 23
22TCP, SSH
443TCP, HTTPS
domainUDP 53 (and TCP 53)
ftpTCP 21

Operators: eq, neq, lt, gt, range.

Editing named lists

  • Lines are numbered 10, 20, 30… show access-lists shows the numbers and the matches.
  • 5 deny … puts a line above 10.
  • no 20 removes just line 20.
  • no access-list 10 removes all of numbered ACL 10.

Commands

Numbered

access-list 10 deny host 10.1.10.20
access-list 10 permit any
access-list 110 permit tcp 10.1.10.0 0.0.0.255 host 10.2.20.100 eq www
access-list 110 deny ip any any

Named

ip access-list extended WEB
 permit tcp any host 10.2.20.100 eq 443
 5 deny icmp any any
 no 20
interface gi0/0
 ip access-group WEB in

Verify

show access-lists
show ip access-lists WEB
show ip interface gi0/0
show running-config
clear access-list counters

All of these work in the network's consoles, along with ?, Tab, do and ping.

Jump to a page

  1. Gi0/1HomeconnectedHow the exam works and a sample of every station
  2. Gi0/2Practice Testsconnected18 tests by domain, every answer explained
  3. Gi0/3Flashcardsconnected401 cards on every objective, plus your own
  4. Gi0/4CLI LabconnectedCommand drills and config tasks, checked like IOS
  5. Gi0/5Concept LabsconnectedYou're in Lab 5.6 ACLs. All labs.
  6. Gi0/6Study PlanconnectedAll 53 objectives, graded from your progress