A. access-list 23 permit 10.10.10.0 0.0.0.255
line vty 0 15
access-class 23 out transport input all
B. access-list 23 permit 10.10.10.0 255.255.255.0
line vty 0 15
access-class 23 in transport input ssh
C. access-list 23 permit 10.10.10.0 0.0.0.255
line vty 0 4
access-class 23 in transport input ssh
D. access-list 23 permit 10.10.10.0 0.0.0.255
line vty 0 15
access-class 23 in transport input ssh
Explanation:
The correct answer is D.
To meet the requirement, the configuration must do two things:
Permit only the 10.10.10.0/24 subnet to access the VTY lines Allow only a secure remote access protocol, which is SSH The correct Cisco IOS configuration is: access-list 23 permit 10.10.10.0 0.0.0.255
line vty 0 15
access-class 23 in transport input ssh
Why D is correct access-list 23 permit 10.10.10.0 0.0.0.255
This correctly matches the subnet 10.10.10.0/24 using the proper wildcard mask 0.0.0.255.
line vty 0 15
This applies the restriction to all VTY lines, not only a subset.
access-class 23 in
This filters incoming remote access connections to the router.
transport input ssh
This allows only SSH, which is encrypted and secure, and prevents Telnet or other clear-text remote access protocols.
Why the other options are incorrect
A is incorrect because:
access-class 23 out filters outbound connections from the VTY lines, not inbound management access.
transport input all allows insecure protocols such as Telnet.
B is incorrect because: