| Setting Router Passwords There are five passwords used to secure your Cisco routers: console, auxiliary, telnet (VTY), enable password, and enable secret. Just as you learned earlier in the chapter, the first two passwords are used to set your enable password that’s used to secure privileged mode. This will prompt a user for a password when the enable command is used. The other three are used to configure a password when user mode is accessed either through the console port, through the auxiliary port, or via Telnet. |
|
Enable Passwords You set the enable passwords from global configuration mode like this: Router(config)#enable ? last-resort Define enable action if no TACACS servers respond password Assign the privileged level password secret Assign the privileged level secret use-tacacs Use TACACS to check enable passwords |
|
The following points describe the enable password parameters: Last-resort Allows you to still enter the router if you set up authentication through a TACACS server and it’s not available. But it isn’t used if the TACACS server is working. Password Sets the enable password on older, pre-10.3 systems, and isn’t ever used if an enable secret is set. Secret Is the newer, encrypted password that overrides the enable password if it’s set. Use-tacacs This tells the router to authenticate through a TACACS server. It’s convenient if you have anywhere from a dozen to multitudes of routers, because, well, would you like to face the fun task of changing the password on all those routers? If you’re sane, no, you wouldn’t. So instead, just go through the TACACS server, and you only have to change the password once—yeah! |
|
Here’s an example of setting the enable passwords: If you try to set the enable secret and enable passwords the same, the router will give you a nice, polite warning to change the second password. If you don’t have older legacy routers, don’t even bother to use the enable password. |
|
User-mode passwords are assigned by using the line command: Router(config)#line ? <0-70> First Line number aux Auxiliary line console Primary terminal line tty Terminal controller vty Virtual terminal x/y Slot/Port for Modems |
|
Here are the lines to be concerned with: aux Sets the user-mode password for the auxiliary port. It’s usually used for attaching a modem to the router, but it can be used as a console as well. console Sets a console user-mode password. vty Sets a Telnet password on the router. If this password isn’t set, then Telnet can’t be used by default. To configure the user-mode passwords, you configure the line you want and use either the login or no login command to tell the router to prompt for authentication. |
|
Auxiliary Password
|
|
Console Password Router(config-line)#line console ? |
|
For one, the exec-timeout 0 0 command sets the timeout for the
console EXEC session to Router(config)#line con 0
|
|
Telnet Password Router(config-line)#line vty 0 ?
|
|
Encrypting Your Passwords To manually encrypt your passwords, use the service password-encryption
command. Router#config t |
|
Here is an example of how you might set and encrypt your Telnet
password under the CCNA objectives: Here are the commands in order: |
|
|
Remember that the CCNA objectives may require that you use the login command before you set the VTY password, or you may just need to set it after the password. |
|
<<< ccnaguru.com |
|
|