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:
Write the deny statement with correct wildcards and eq ftp on the destination.Append a broad permit to allow all other traffic.Apply the ACL in the correct direction (typically inbound on the source or outbound on an intermediate interface).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 access-list 101 permit ip any any
Discussion & Comments