cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11702
Views
0
Helpful
6
Replies

Username and password

jonk34567
Level 4
Level 4

how to create username and password in a router or switch ?

1 Accepted Solution

Accepted Solutions

Mark Malone
VIP Alumni
VIP Alumni
Below will setup a basic username with md5 password

conf t
username test priv 15 secret xxxxx

conf t
line vty 0 15
login local

View solution in original post

6 Replies 6

Mark Malone
VIP Alumni
VIP Alumni
Below will setup a basic username with md5 password

conf t
username test priv 15 secret xxxxx

conf t
line vty 0 15
login local

Hi 

Additional to Mark's comment:

 

conf t

username <your username> privilege <privilege level> password <your password>

 

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

That does not work

 

"username admin privilege 15 admin" (without the quotes) results in a "^" under the letter d in the password. (Adding the word "secret" between the "15" and the password appears to have done something.

When I enter the command "line vty 0 15" (without the quotes of course) it gives me the following prompt: "Bloor_Router(config-line)#" (without the quotes) and appears to want something.

 

And why the "configure terminal/conf t" again after the "line vty 0 15" command (as that we are already at configuring the terminal prompt)?

You type login local 

its conf t once only to get into configure mode then line vty 0 15 then login local

So the "login local" is entered at the "Bloor_Router(config-line)#" prompt then?


I tried the following but still can't login using the graphical interface - it keeps prompting me for the Level 15 username/password:

Bloor_Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Bloor_Router(config)#username admin privilege 15 secret 0 admin
Bloor_Router(config)#line vty 0 4
Bloor_Router(config-line)#login local
Bloor_Router(config-line)#exit
Bloor_Router(config)#exit
Bloor_Router#
*Jan  2 10:45:24.278: %SYS-5-CONFIG_I: Configured from console by console

 

Review Cisco Networking products for a $25 gift card