Access Control Lists: practice questions

Standard and extended, numbered and named IPv4 ACLs: rule order, the implicit deny, wildcard masks and where to apply them.

CCNA 200-301 v2.0, exam topic 4.6 · part of 4. Network Services and Security, 20% of the exam

The same material in the CCNA 200-301 v1.1 exam: Access Control Lists

What this topic covers

Rule ordering
Rules are evaluated top down; the first match wins.
Implicit deny
Traffic matching no rule is dropped.
Standard and extended ACLs
Standard ACLs match only the source address; extended ACLs also match the protocol, destination and ports.
Numbered and named ACLs
Named ACLs are easier to read, and entries can be inserted or removed by sequence number.
Wildcard masks
Zero bits must match and one bits are ignored, so 0.0.0.255 matches a /24.
ACL placement
Extended ACLs go near the source of the traffic; standard ACLs go near its destination.

Sample question

Try it, then open the answer. Our questions are written by AI and checked independently before they are published.

Medium Single choice

Refer to the exhibit. An engineer must permit host 10.10.20.77 to access server 10.10.50.100 on TCP port 443. Which sequence number must the engineer assign to the permit statement?

show access-lists SECURE_IN
Seq  Action  Protocol  Source                Destination           Port    Hits
10   permit  tcp       10.10.20.0 0.0.0.63   10.10.50.0 0.0.0.255  eq 443  240
20   deny    tcp       10.10.20.64 0.0.0.63  10.10.50.64 0.0.0.63  eq 443  58
30   deny    ip        10.10.20.0 0.0.0.127  10.10.50.0 0.0.0.255          112
40   permit  ip        any                   any                           1845
  1. A. 25
  2. B. 35
  3. C. 15
  4. D. 45
Show the answer

Answer: C. 15

Cisco IOS processes access lists sequentially from top to bottom and stops evaluation at the first matching entry. Sequence 10 matches source addresses 10.10.20.0 through 10.10.20.63, which does not include host 10.10.20.77. Sequence 20 matches source addresses 10.10.20.64 through 10.10.20.127 and destination addresses 10.10.50.64 through 10.10.50.127 on TCP port 443; both host 10.10.20.77 and server 10.10.50.100 fall inside these ranges, so sequence 20 is the first matching rule and denies the traffic. To permit this specific flow, the new permit statement must be placed before sequence 20, which requires assigning sequence number 15.

Further reading