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

I got locked out of my switch

acokoqiz
Level 1
Level 1

I am currently practicing on cisco packet tracer, so I used the command "enable password 5 cisco" then I leave the global configuration mode to the user mode and try to go to privilege's mode using the enable command, and I am prompted for a password which I set but when I type in 'cisco' as I earlier set. I keep getting bad secret message

How do I go about this or did I set the password wrong ?

6 Replies 6

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

You have a typo in your configuration. enable password does not take a privilege level, as I assume that is what you intended the '5' to mean. As such the enable password has been set to '5 cisco' .

cheers,

Seb.

R Manjunatha
Level 3
Level 3

Hi,

the password which you used that is " 5 cisco " 

please type as follow.

Switch>en

Password:5 cisco

Switch#

regards,

if you config AAA for enable, you need to add local at end and try many time before it success.
try this way

Martin L
VIP
VIP

Are you talking about this "<0-9> Encryption types not explicitly specified" option listed in  enable password ?  ?

dist-rtr01(config)#enable password ?
0 Specifies an UNENCRYPTED password will follow
7 Specifies a HIDDEN password will follow
<0-9> Encryption types not explicitly specified

PT should give you an error "Invalid encryption type: 5"  as it is just a simulator; it does not work or behave the same as real IOS. But, it will work (or should) when you type in enable password 7 05080F1C2243 (where 05080F1C2243 represents encrypted word of cisco)

dist-rtr01(config)#
dist-rtr01(config)#enable password 7 05080F1C2243
WARNING: Command has been added to the configuration using a type 7 password. However, type 7 passwords will soon be deprecated. Migrate to a supported password type
dist-rtr01(config)#

---------------------

dist-rtr01(config)#enable password ?
0 Specifies an UNENCRYPTED password will follow
7 Specifies a HIDDEN password will follow
<0-9> Encryption types not explicitly specified
LINE The UNENCRYPTED (cleartext) 'enable' password
level Set exec level password

dist-rtr01(config)#enable password 5 cisco
Invalid encryption type: 5

dist-rtr01(config)#

You should read CCNA book for explanation of access, but CIsco doc page has also explanation see

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/security/d1/sec-d1-cr-book/sec-cr-e1.html#wp3884449514

Remember: with PT always use ? to see your options. PT is just a simulator, not real IOS

Regards, ML
**Please Rate All Helpful Responses **

btw. above output is from CML     Cisco IOS XE Software, Version 17.03.02
Cisco IOS Software [Amsterdam], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 17.3.2, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Sat 31-Oct-20 13:16 by mcpre

 

siskum
Spotlight
Spotlight

Hello!

Your enable password is "5 cisco" you have to type as below, so simple.

Router>enable
Password: 5 cisco
Router#

Router#sh run
no service password-encryption
!
hostname Router
!
enable password 5 cisco
!
!
!
Router#conf t
Router(config)#
Router(config)#

Pls thumbs up, and press sloved problem. It will help for others too.

Best regards/Mallawar

 

 

Sisira