Cisco CCNA mock exam questions sample test – Question 342

.Which Cisco Internetwork Operating System (IOS) command is used to encrypt passwords on Cisco routers?

A. password secure
B. service encryption-password
C. service password-encryption
D. enable password

Correct Answer: C

The service password-encryption command is used to encrypt passwords on Cisco routers. It is used to encrypt all passwords configured on the router, both current and future. This
means all passwords in the plain text configuration file will be encrypted. This command is issued in global configuration mode. The syntax of the command is as follows:
Router(config)# service password-encryption
This command does not have any parameters.
Once executed any password in the configuration file will appear similar to what is shown below when the running or startup configuration files are viewed:
R1#show run

line console 0
password 7 09-4f60C0B1C1B

The password secure and service encryption-password commands are incorrect because they are not valid Cisco IOS commands.
The enable password command is used to set the privileged EXEC mode password, and does not encrypt the password by default.
Infrastructure Security
Configure, verify, and troubleshoot basic device hardening
Cisco > Cisco IOS Security Configuration Guide, Release 12.4 > Part 7: Secure Infrastructure > Configuring Security with Passwords, Privilege Levels and, Login Usernames for CLI
Sessions on Networking Devices