cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
33264
Views
0
Helpful
4
Replies

how do I set password for switch?

jose.jimenez
Level 1
Level 1

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 4

Jagdeep Gambhir
Level 10
Level 10

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

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

Thanks Sundar!

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

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: