How to Configure CISCO Router Password?

Passwords are used to restrict access to a CISCO router. Passwords can be given to the virtual terminal lines and the console line. Moreover, password can be set privileged EXEC mode. This page will provide the information to set up CISCO router password to virtual terminal lines, console lines and privileged mode. Even more, you will learn how to encrypt the password also.

Why console password is required?

Console password is usedful on a network on which multiple people have to access to the router. The persons who are not authorized, can't access the router. Thus it prevents unautorized person from accessing the router.

Configuring console password of a CISCO router:

Enter global configuration mode of the CISCO router.

Put the command line console 0 to the router.

Provide the password by using password command. For example, if you want to put password "cisco" then the command will be password cisco.

Virtual terminal password refers to telnet password. Through telnet, you can access the router and can change anything. So, it's really important to protect the use of telnet by giving a strong password.

Configuring virtual terminal password of a CISCO router:

Different hardware has different no of vty lines defined. Cisco has the range 0 to 4 vty lines. It means it has 5 vty lines. You can set the password of vty lines by the following steps:

Enter global configuration mode of the CISCO router.

Put the command line vty 0 4 to the router.

Provide the password by using password command. For example, if you want to put password "cisco" then the command will be password cisco.

Why enable password is required?

Enable password is required to restrict the access of privileged EXEC mode.

Configuring enable password of a CISCO router:

From the global configuration mode, use the command enable password to restrict access to privileged EXEC mode. However, this password is visible in the routers configuration file. To encrypt the password, enable secret command is required. By using enable secret command the password is encrypted and can't be readable to a human.

How to encrypt all the CISCO router password?

By default all the passwords of a CISCO router is readable in clear text in the configuration file. This is a great security threat if someone read it and configure or change the router configuration. So, to protect form display the password, service password-encryption command is used to encrypt the passwords. service password-encryption is a global command and encrypt the passwords:

enable password

console password

vty password

aux password

By following the above steps you can easily configure CISCO router passwords.

Comments

No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.

sending

Moni 4 years ago

Thanks a lot for providing the valuable information. One simple query about the default admin password. When new id is created with a new password what would happened the earlier default admin id (id - cisco, password- cisco)? If router it would be accessible by using earlier id & password (id - cisco, password- cisco). Appreciate if you sent your valuable comments at earliest.

This a nice post. I used it successfully after getting stuck for weeks!!

Thanks a lot for saving a life!!

Author

rancidTaste 8 years ago

Thanks philipo for your comment. If you use any router, then you can easily set password to your router. You may also configure your router. I already published some posts. More posts will be published soon. Thanks...