08-24-2007 12:04 PM - edited 03-05-2019 06:05 PM
How do I setup a password for router?
What's different about secret enable?
Will that allow me to login without username and use just a password?
Solved! Go to Solution.
08-24-2007 12:32 PM
Jose,=
Please follow these steps.
To set up local user and password,
Step 1 : Create Username and Password for the telnet session
Router#config t
Router(config)# username cisco password mike123
" in above example we are created cisco as the username and mike123 as password .
Step 2: Configure the Telnet session under line Vty lines .
Router#config t
Router(config)# line vty 0 4
Router(config)# login local
If you want to configure your router for the enable password as cisco , then follow,
Step 1 : Router#config t
Router(config)#enable password cisco
If you want to configure your router for the enable Secret password as cisco ,
Step 1: Router#config t
Router(config)#enable secret cisco
if you configured both enable and enable secret then only enable secret will be active.
If you don't that router should prompt for user name ,pwd then do not set up local user.
I hope so that these Steps will help you to configure the router.
Regards,
~JG
Please rate helpful posts
08-24-2007 12:36 PM
Hi Jose, go over the bellow link to get an understanding of Cisco ios passwords and the history behind in using enable secrets and enable passwords.
The use of enable secret passwords simply provides more security as password are encrypted.
http://www.cisco.com/en/US/tech/tk59/technologies_tech_note09186a00801d7efa.shtml
Also go over this link for IOS basic commands
including passwords, saving configurations
and different type of configuration modes on a router.
etc.
[edit]
If need to configure a username and directly go into router enable mode you can do:
router>#config t
router>(config)#username personsname privilege 15 password xxxxx
HTH
Jorge
08-24-2007 12:32 PM
Jose,=
Please follow these steps.
To set up local user and password,
Step 1 : Create Username and Password for the telnet session
Router#config t
Router(config)# username cisco password mike123
" in above example we are created cisco as the username and mike123 as password .
Step 2: Configure the Telnet session under line Vty lines .
Router#config t
Router(config)# line vty 0 4
Router(config)# login local
If you want to configure your router for the enable password as cisco , then follow,
Step 1 : Router#config t
Router(config)#enable password cisco
If you want to configure your router for the enable Secret password as cisco ,
Step 1: Router#config t
Router(config)#enable secret cisco
if you configured both enable and enable secret then only enable secret will be active.
If you don't that router should prompt for user name ,pwd then do not set up local user.
I hope so that these Steps will help you to configure the router.
Regards,
~JG
Please rate helpful posts
08-24-2007 12:47 PM
Thank you JG!!
08-24-2007 12:36 PM
Hi Jose, go over the bellow link to get an understanding of Cisco ios passwords and the history behind in using enable secrets and enable passwords.
The use of enable secret passwords simply provides more security as password are encrypted.
http://www.cisco.com/en/US/tech/tk59/technologies_tech_note09186a00801d7efa.shtml
Also go over this link for IOS basic commands
including passwords, saving configurations
and different type of configuration modes on a router.
etc.
[edit]
If need to configure a username and directly go into router enable mode you can do:
router>#config t
router>(config)#username personsname privilege 15 password xxxxx
HTH
Jorge
08-24-2007 12:46 PM
Thank you Jorge!
08-24-2007 12:43 PM
Jose
In the implementation of IOS there is a password to get to user mode and an enable password to get to privilege mode (sometimes called enable mode). By default both of these passwords are entered in clear text and are stored in the config in clear text. Cisco provides the ability to encrypt these passwords using the service password-encryption.
However the encryption used is a fairly weak one and there are multiple sources for software that will break the encryption and recover the clear text password. So Cisco provided the ability to protect the password to privilege mode with strong encryption by configuring enable secret. So enable secret is designed to never be in the clear and to be protected by a strong encryption.
I am not sure that I understand the second part of your question. I am not sure whether you are asking about the ability to login (to user mode) without a username and only use a password or whether you are talking about login and get directly to privilege mode.
It is easy to login with a password (and no username) and go into user mode. This is the default behavior of IOS. If you configure a password on the vty lines (and configure login on the vty lines) then when you telnet to the router you will be prompted for a password and it will log you in without a user name.
If you want to login and go directly to privilege mode (without using AAA) you would want to configure login local under the vty lines which will prompt for a user name and a password. You need to configure at least one user name and password before you configure login local or you may lock yourself out of the router. In configuring the user name there is an optional parameter "privilege" and if you configure a user name with privilege 15 then that user will go directly into privilege mode. There is also a way to do this with AAA authorization but that is more complicated and can be discussed later.
HTH
Rick
08-24-2007 12:46 PM
Thanks Rick!
08-24-2007 12:46 PM
Thanks Rick!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide