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.
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#
Note
In a production environment, it is wise to set the enable, console, and vty passwords to be different so that access to the router is controlled in a secure manner. In addition, it is highly recommended that in production environments, you use the enable secret password, which is encrypted, instead of the enable password. For the purposes of the lab, the enable password is used and all three passwords are set to falcons, for simplicity's sake. You will have a chance to configure the enable secret password in Appendix C, "Self-Study Lab."
After configuring each password, save the configuration to ensure that the passwords remain in effect after the router is power-cycled.
Top |