how do I set password for switch?

Unanswered Question
Jagdeep Gambhir Wed, 10/10/2007 - 12:54


Router(config)#username cisco password 123

To enable telnet to ask for a username and password

Router(config)#line vty 0 4

Router(config-if) #login local



sundar.palaniappan Wed, 10/10/2007 - 15:20


I would make a small modification to JG's post to get the login prompt you are looking for. While 'login' under the VTY would cause the switch to prompt for a password 'login local' would cause the switch to prompt for a username and password. Moreover you need to configure the VTY and enable password for this to work.

line vty 0 4

pass cisco


enable password cisco



jon.axe Thu, 10/11/2007 - 07:35


Sundar gave you the correct answer above.

ine vty 0 4 (This command allows 5 active telent sessions).

pass cisco (local password to the vty group).

login (optional but the default username is admin)

enable password cisco (This is to set the enable password used for all sessions whether it be via telnet or console.


This Discussion