Setting the Enable, Console, and vty Passwords

Next, configure the enable, console, and vty passwords for R1. To set the enable password, enter global configuration mode and enter the following:

Router(config)#enable password 
   password

To set the console and vty passwords, enter line configuration mode for line con0 and line vty 0 4, and use the following command:

Router(config-line)#password 
   password

Then set the enable, console, and vty passwords to be falcons, as demonstrated in Example 6-2.

Example 6-2. Setting the Enable, Console, and vty Passwords on R1

R1>enable
R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#enable password falcons
R1(config)#line con 0
R1(config-line)#password falcons
R1(config-line)#exit
R1(config)#line vty 0 4
R1(config-line)#password falcons
R1(config-line)#^Z
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#copy running-config startup-config
Building configuration...
[OK]
R1#

After configuring each password, save the configuration to ensure that the passwords remain in effect after the router is power-cycled.

+ Share This