01-17-2017 08:19 AM - edited 03-08-2019 08:56 AM
Hi guys
Hope someone can help with this VERY simple query as I'm making a real pigs ear of it.
I have a blank router that I'm trying to apply some config on. What are the user/password commands that I need to add to the device? Whatever I configure, stops me from logging in after reboot.
Would appreciate the help
Solved! Go to Solution.
01-17-2017 08:40 AM
Hi,
Configure a username and password and set the vty line, so you can logon locally to the device.
username test123 privilege 15 password 7 <password>
if you want to access it via telnet using an IP
under the vty line
line vty 0 4
login local
if you want to access it via console
just add the same password to console line
line con 0
password <password>
Also, make sure the config register is 0x2102. You can see it by issuing
sh ver
HTH
01-17-2017 08:42 AM
Hello,
here is what your configuration for local user authentication should look like for console port access and for Telnet access:
Console
1900#configure terminal
1900config)#line con 0
1900(config-line)#
1900(config-line)#password yourpassword
1900(config-line)#login
1900(config-line)#end
1900#wr mem
After that, your running configuration should have this:
line con 0
password yourpassword
login
Telnet
1900#configure terminal
1900(config)#username yourname password youpassword
1900(config)#line vty 0 4
1900(config-line)#
1900(config-line)#login local
1900(config-line)#end
1900#wr mem
After that, your running configuration should have this:
line vty 0 4
login local
01-17-2017 08:40 AM
Hi,
Configure a username and password and set the vty line, so you can logon locally to the device.
username test123 privilege 15 password 7 <password>
if you want to access it via telnet using an IP
under the vty line
line vty 0 4
login local
if you want to access it via console
just add the same password to console line
line con 0
password <password>
Also, make sure the config register is 0x2102. You can see it by issuing
sh ver
HTH
01-23-2017 11:57 AM
Thank you for your help folks, I knew I could count on you guys! :-)
01-17-2017 08:42 AM
Hello,
here is what your configuration for local user authentication should look like for console port access and for Telnet access:
Console
1900#configure terminal
1900config)#line con 0
1900(config-line)#
1900(config-line)#password yourpassword
1900(config-line)#login
1900(config-line)#end
1900#wr mem
After that, your running configuration should have this:
line con 0
password yourpassword
login
Telnet
1900#configure terminal
1900(config)#username yourname password youpassword
1900(config)#line vty 0 4
1900(config-line)#
1900(config-line)#login local
1900(config-line)#end
1900#wr mem
After that, your running configuration should have this:
line vty 0 4
login local
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