Security

An engineer must allow SSH to a router only from the 10.1.1.0/24 management subnet. The extended ACL MGMT-ONLY is already defined. How should it be applied to the remote-access lines?

Show the answer

Correct answerC. Use access-class MGMT-ONLY in under line vty 0 15

AWhy not this: ip access-group applies to interfaces; it is not a valid command under line vty.

BWhy not this: A service-policy under control-plane needs a policy map (CoPP), not an ACL name.

CWhy this is right: access-class is the line-mode command that filters incoming VTY sessions by source address.

DWhy not this: An ACL on a loopback does not filter sessions arriving on the physical interfaces.

The access-class command binds an ACL to the VTY lines so only permitted sources can open Telnet or SSH sessions. The ip access-group command filters traffic on interfaces and is not accepted under line configuration.