Difficulty: Medium
Correct Answer: access-list 101 deny tcp 200.200.10.0 0.0.0.255 200.199.11.0 0.0.0.255 eq ftp \naccess-list 101 permit ip any any
Explanation:
Introduction / Context:
Extended IPv4 access control lists (ACLs) can filter by protocol, source/destination networks, and ports. Here, we must block FTP (TCP port 21) from one /24 to another, while allowing all other traffic.
Given Data / Assumptions:
Concept / Approach:
Use an extended ACL (numbered 100–199 or named) that first denies the specific TCP/21 flow, then permits all remaining IP traffic. The order matters: ACLs are processed top-down with first-match logic.
Step-by-Step Solution:
Verification / Alternative check:
Test with FTP and another protocol (e.g., HTTP or ICMP) from a host in 200.200.10.0/24 to 200.199.11.0/24. FTP should fail; other traffic should pass.
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting the final permit; misplacing eq ftp on the wrong side; using subnet masks instead of wildcards.
Final Answer:
access-list 101 deny tcp 200.200.10.0 0.0.0.255 200.199.11.0 0.0.0.255 eq ftp \naccess-list 101 permit ip any any
Discussion & Comments