In this section, we will discuss how to set password in a Cisco Router and their commands with examples

How to set password in a  Router

Network security is the major concern, while we deploy the router in  a data  network. The router works uninterruptedly  in a network, thus it is more vulnerable to the external threats and unauthorized access to the network.

In order to prevent and protect out network from unwanted threats and unauthorized access, the router must be password protected.

Types of Password

The different levels of password are set  to access the router. There are five different passwords that can be set on a Cisco Router.

  • Enable Password
  • Enable Secret Password
  • Line Console Password
  • Line Auxiliary Password
  • Telnet or VTY Password

how to set password in cisco router

Enable and Enable Secret are called the Privileged mode password. These two password are set to go from User Exec Mode to the Privileged Exec Mode. The Enable Secret password is encrypted by default.

The other  three passwords i.e. Line Console, Line Aux and VTY passwords are set to access or login  to the router.

Enable Password

Enable password is set on the router in order to go from user exec mode to the privileged exec mode. The CLI command to set enable password is:

Router>ENABLE

Router#CONFIGURE TERMINAL

Router(config)#ENABLE PASSWORD 1234

Enable Secret Password

Enable secret password is also set to go from user exec mode to the privileged mode. However, it has higher precedence then the Enable password. Also, the Enable Secret password is encrypted by default with MD5 Hash function. That means, Enable Secret password is more secure than Enable password.

Passwords are the part of configuration files. Hence, the enable password can be seen as a plain text, whereas the enable secret password is seen as encrypted format.

Router>ENABLE

Router#CONFIGURE TERMINAL

Router(config)#ENABLE SECRET 12345

Line Console Password

Line console password is set to the router, when is accessed physically using the Console port. The command for configuring line console password is:

Router>ENABLE

Router#CONFIGURE TERMINAL

Router(config)#LINE CONSOLE 0

Router(config-line)#LOGIN

Router(config-line)#PASSWORD 123456

Line Auxiliary Password

Auxiliary password  is set on the router, when it is accessed of login form the remote location using modem. The password for line aux is :

Router>ENABLE

Router#CONFIGURE TERMINAL

Router(config)#LINE AUX 0

Router(config-line)#LOGIN

Router(config-line)#PASSWORD 123456

Telnet or VTY Password

VTY password is set on the router, when it is accessed though remote login using telnet service. By default, Cisco router support 5 telnet sessions simultaneously. The same password can be set for all the telnet session. The command for VTY password are as:

Router>ENABLE

Router#CONFIGURE TERMINAL

Router(config)#LINE VTY 0  4

Router(config-line)#LOGIN

Router(config-line)#PASSWORD 123456

2 thoughts on “How to set password in a Cisco Router”

  1. Hi, I do think this is an excellent web site. I stumbledupon it 😉 I may revisit yet again since i have book marked it.Money and freedom is the best way to change, may you be richand continue to help others.

Leave a Reply

Your email address will not be published. Required fields are marked *