03-06-2014 03:59 AM - edited 03-07-2019 06:33 PM
Hi All,
By mistake, I have removed the passwords under line con 0 and line vty 0 4.
After I signed out I realized that I can't access (telnet). It's always giving me this message " Password required, but none set".
As I've also removed the password under line con 0, I'm wondering that if I can still access through the console cable?
If not, how can I recover the passwords, or how can I access the switch?
Please Help me out !
Thanks in advance
03-06-2014 04:14 AM
If you didn't save changes, you can reboot the switch to get it back to where it was before the change. By default, console access doesn't have a password configured as far as I know, so you should be able to get back in with the console.
HTH,
John
*** Please rate all useful posts ***
03-06-2014 04:42 AM
Thanks John.
The password for the console was already configured, and I removed it by the command: no password but I left the login command.
So, the current situation is:
line con0
login
line vty 0 4
login
Can I still get in with the console?
If not, what should I do?
Thanks
03-06-2014 04:46 AM
As John stated - if you didn't save anything just shutdown switch and power it up again and everything is going to be as before changes. That would be the most simple thing to do...
HTH,
Dragan
03-06-2014 06:43 AM
Both alternatives should work, assuming that you did not do write mem or copy run start after making the config changes. There should be no problem with access through the console port. The default operation of the console is to allow access without a password. So you should have no problem with console access, and it might be less disruptive than a power cycle.
HTH
Rick
03-06-2014 06:41 AM
If you can't log in anymore then you can use password recovery.
When you reboot the switch hold the "mode" button untill you see switch:
then enable flash.
Then type, or better copy and past
rename flash:config.text flash:config.alt
reload the switch and it will but up without config.
then go to enable mode and type:
rename flash:config.alt flash:config.text
erase startup, reload the switch, and you can set the configuration again. (if you have that offcource) otherwise i would not recomend this option.
Good luck
03-06-2014 08:09 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
If you have SNMP write access to the device, you can change/fix the config via that. (It's easy if you have the right "tool". We use SolarWinds's Cisco Config Viewer.)
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