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

Enable Password

ohforce55
Level 1
Level 1

Hi,

I'm trying to telnet to a switch with username, password, and enable password that I set up.

I get a login prompt with username and password when I configure 'login local' under line vty 0 15 but no enable password although I configured it.

line vty 0 4
 exec-timeout 5 0
 password 7 040A5A1501245859060B0E
 login local
 transport input telnet
line vty 5 15
 exec-timeout 5 0
 password 7 040A5A1501245859060B0E
 login local
 transport input telnet
!

I get a login prompt with only password and enable password when I just configure 'login' under line vty 0 15.

Is there any way that I can get a login prompt with all username, password, and enable password when enabling telnet?

Thanks in advance!

6 Replies 6

joselgo2
Cisco Employee
Cisco Employee

Hello!

For you requirement with login local, you need to configure a global username and password. These are stored in the local database.

try in the privilege mode:

#username Cisco password class

and then try the telnet.

Greetings!

Hi,

Thanks for your reply. I don't have any problem to telnet to the device.

What I want is that I want to get a login prompt (username, password, and enable password).

'Login local' just helps me to get login prompt with username and password but not enable password.

If I just use 'login', I get a password and enable password but not username.

Thanks.

Hi!

If I understood correctly, you alredy has created a user and a password for login local, so when you enter by telnet to the device, the device asking for a user and then with a password.

and the last part is use a password for privilege mode, did you do use enable secret or enable password in your configuration?, my recomendation is use enable secret.

Greetings!

Hi,

I should've posted all configs. Yeah I already configured user and password and enable secret. But still I don't get enable password with 'login local' but with 'login' Please see the below,

enable secret 5 $1$3dSU$XLltVo8rMuPAInZbWvZ0y.

!

username xxx privilege 15 secret 5 $1$duz2$O1zhda.bcZweMMwQkK8Qs0

!
line con 0
line vty 0 4
exec-timeout 5 0
login local
transport input telnet
line vty 5 15
exec-timeout 5 0
login local
transport input telnet
!

I finally got this resolved.

When creating user and password, I removed privilege 15 and it worked.

Thanks!

This test config works for me.

Telnet server:

R4(config)#username cisco password cisco
R4(config)#enable password cisco
R4(config)#end
R4#sh run | i user
*Jun 9 16:23:46.413: %SYS-5-CONFIG_I: Configured from console by console
R4#sh run | sec vty
line vty 0 4
login local
line vty 5 15
login local
R4#


Test from a remote system:

R5-BGP4435#telnet 4.4.4.4
Trying 4.4.4.4 ... Open

User Access Verification

Username: cisco
Password:
R4>en
Password:
R4#





Review Cisco Networking for a $25 gift card