Passwords

Passwords
You can use five passwords to secure your Cisco routers: console, auxiliary, Telnet (VTY),
enable password, and enable secret. However, other commands are necessary to complete the
password configurations on a router or switch, as shown in Table 1.8.
TABLE 1 . 8 Setting Passwords
Command Meaning
Todd(config)#enable password todd Sets the enable password to Todd.
Todd(config)#enable secret todd Sets the enable secret password to Todd.
Supersedes the enable password.
Todd(config)#line line Changes to line mode to configure the
console, aux, and VTY (Telnet).
Todd(config-line)#password password The line password for aux, console, and VTY
(Telnet) are all set in line configuration mode.
Todd(config-line)#login When a line is configured to use a password,
the login command must be set to prompt for
login.
Todd(config)#service password-encryption Encrypts the passwords in the clear-text
configuration file (both running-config and
startup-config).