Today I wanted to change my passwords on my router Cisco 888e.
I connect by telnet my router and access the enable mode.
Then, I set my enable password to passwordxxx with the command enable password password1.
After a show run, i could see in this config my new password correctly set.
Then, I set my enable secret password to passwordxxx (the same) with the command enable secret password password1.
I log off the enable mode.
Try to log on with the command en but when I type the new or the old password, I receive a 'Access denied' message.
And I'm sure of the new one because on my command line to define it I could see this new password in clear!!!
I can't understand what is wrong...
What are my solutions to access the enable mode again?
If I reboot my router, it'll run the previous config file with the old password? I've only worked on the running config file and haven't apply these changes to the nvram.
Otherwise, what are the other solutions?
Thanks for your help.
If you have not save the configuration a reboot will do it, You will be able to then connect using the old password.
Now regarding the new password and being unable to login I know you check it but man you might have wrote it down differently.
Please try it one more time and let us know,
if you had set your password by command "enable password password1"
and then issued command "enable secret password password1", you should have received an error message
"The enable secret you have chosen is the same as your enable password.
This is not recommended. Re-enter the enable secret."
So it looks like you made a typo when issued the second command.
As the secret password is prefered when both are configured, your secret password (with the typo!) is reguired now.
So the easiest way is to reboot now.
Best practice for next times:
Don't log off the enable mode after you changed the password.
Open a new VTY session instead.
In a case anything goes wrong with your login, you can fix it from the original session being in enable mode still.
ad "And I'm sure of the new one because on my command line to define it I could see this new password in clear!!!"
It's possible you included some non-printable character by typo. Like a space in the end of the password, e.g.
If you setup "enable password" and "enable secret" (enable secret) will take precedence. And generally you can't setup both the same so try typing in your old enable secret password.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: