Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

how do I set password for switch?

The example below is what I am trying to figure out. How do I set password so that when I telnet to switch I get the "user access verification" login?

User Access Verification

Password:

Switch-3560>en

Password:

Switch-3560#

4 REPLIES

Re: how do I set password for switch?

Jose,

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

Regards,

~JG

Re: how do I set password for switch?

Jose,

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

login

enable password cisco

HTH

Sundar

Community Member

Re: how do I set password for switch?

Thanks Sundar!

Can you tell me how to configure VTY and enable password to do this?

Community Member

Re: how do I set password for switch?

Jose,

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.

1365
Views
0
Helpful
4
Replies
CriarFaça o para criar o conteúdo