Difficulty: Medium
Correct Answer: access-list 10 deny 172.16.144.0 0.0.7.255
Explanation:
Introduction / Context:
Standard ACLs match only the source address (with a wildcard mask). To block an entire subnet, you must calculate the correct network address and wildcard from the given prefix length. Here, the host 172.16.144.17 belongs to a /21 network, so we compute that network's base and wildcard.
Given Data / Assumptions:
Concept / Approach:
For /21, the block size in the third octet is 8 (since 256 − 248 = 8). The subnet ranges are 0,8,16,…,144,152,160,… in the third octet. The address 172.16.144.17 falls in the 172.16.144.0–172.16.151.255 range. The wildcard for /21 is 0.0.7.255 (inverse of 255.255.248.0).
Step-by-Step Solution:
Verification / Alternative check:
Testing addresses at the boundaries (172.16.144.0 and 172.16.151.255) confirms they match the wildcard range, while 172.16.152.0 does not.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
access-list 10 deny 172.16.144.0 0.0.7.255
Discussion & Comments