12-03-2017 09:56 AM - edited 03-08-2019 12:58 PM
how to create username and password in a router or switch ?
Solved! Go to Solution.
12-03-2017 12:26 PM
12-03-2017 12:26 PM
12-03-2017 07:05 PM - edited 12-03-2017 07:05 PM
Hi
Additional to Mark's comment:
conf t
username <your username> privilege <privilege level> password <your password>
:-)
12-31-2017 12:59 PM
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.
12-31-2017 01:09 PM
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)?
01-02-2018 12:41 AM
You type login local
its conf t once only to get into configure mode then line vty 0 15 then login local
01-02-2018 07:56 AM
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
06-08-2024 04:58 AM
What if your router does not take the "Login Local" command is there another way to make the router prompt a Username and Password?
06-09-2024 09:19 PM - edited 06-09-2024 09:22 PM
conf t
hostname HOST
ip domain-name xxx.yy
crypto key gen rsa
username xxx secret secret_password
ip ssh version 2
line con 0
login local
liine vty 0 15
login local
transport input ssh
06-09-2024 10:25 PM
Router>enable
Router# configure terminal
Router(config)# hostname R-1
R-1(config)#line vty 0 4
R-1(config-line)#login local
R-1(config-line)#exit
R-1(config)# username <xyz) privilege 15 secret <password>
R-1(config)#exit
R-1#copy running-config startup-config
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