ICND2: Interconnecting Cisco Networking Devices Part 2 (legacy) — Question 131
A network administrator needs to allow only one Telnet connection to a router. For anyone viewing the configuration and issuing the show run command, the password for Telnet access should be encrypted. Which set of commands will accomplish this task?
Answer options
- A. service password-encryption access-list permit 192.168.1.0.0.0.0.255 line vty0 4 login password cisco access-class 1
- B. enable password secret line vty0 login password cisco
- C. service password-encryption line vty0 login password cisco
- D. service password-encryption line vty0 4 login password cisco
Correct answer: C
Explanation
Option C is correct because it enables password encryption and configures the line vty0 for Telnet access with an encrypted password. Option A is incorrect as it adds unnecessary access-list configuration, and Option B misuses the enable password instead of setting the correct Telnet password. Option D is also incorrect as it specifies 'line vty0 4', which is not valid for allowing only one Telnet connection.