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:

  1. Enter global configuration mode of the CISCO router.
  2. Put the command line console 0 to the router.
  3. Provide the password by using password command. For example, if you want to put password "cisco" then the command will be password cisco.
  4. At last, put the command login.

Commands for configuring console password

Router>enable
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#line console 0
Router(config-line)#password cisco
Router(config-line)#login
Router(config-line)#

Why virtual terminal password is required?

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:

  1. Enter global configuration mode of the CISCO router.
  2. Put the command line vty 0 4 to the router.
  3. Provide the password by using password command. For example, if you want to put password "cisco" then the command will be password cisco.
  4. At last, put the command login.

Commands for configuring virtual terminal password

Router>enable
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#line vty 0 4
Router(config-line)#password cisco
Router(config-line)#login
Router(config-line)#

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.

Commands for configuring enable password

Enable password:

Router>enable
Router#config
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#enable password cisco
Router(config)#

Perform password encryption:

Router>enable
Router#config
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#enable secret cisco
Router(config)#

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.

© Written by rancidTaste

If you are enjoyed this post, please consider to give a thumbs up and leave a comment. You may Subscribe to rancidTaste's RSS feed to get new pages which will be delivered to your feed reader. You can also read more hubs by rancidTaste.

JOIN HUBPAGES & ENJOY WORLD'S BEST WRITINGS

More by this Author


Comments 10 comments

Philipo 7 years ago


rancidTaste profile image

rancidTaste 7 years ago Author

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...


Rwaki 6 years ago

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

Thanks a lot for saving a life!!


vero malal 6 years ago

thmbs up. nade my work better. am now not lugging behind in class consulting. thumbs up. vero


ATIFCO102 6 years ago

i think this is a goood and important thinks for any one love CISCO DEVICE;;; -- ATIFCO --- SUDAN -- RAK CUS

big thakns


vince 4 years ago

thankx for the tips guys, it was very helpful


jimcrowthers profile image

jimcrowthers 4 years ago from Port Charlotte

Voted "up" and "useful". Thanks for posting this valuable info! Helped me figure out a configuration question.


phoolchand 4 years ago

good explain this topic and thankyou sir


ankit 3 years ago

useful and nice page


Moni 3 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.

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

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


    Click to Rate This Article
    working