cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2742
Views
0
Helpful
3
Replies

Cisco 1900 Password configuration

BHconsultants88
Level 1
Level 1

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

2 Accepted Solutions

Accepted Solutions

Reza Sharifi
Hall of Fame
Hall of Fame

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

View solution in original post

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

View solution in original post

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

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

Thank you for your help folks, I knew I could count on you guys! :-)

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