Password recovery 2950 is Deleting configuration Why

Bob Brown
Bob Brown used Ask the Experts™
on
I am using " Password Recovery Procedure for the Cisco Catalyst Fixed Configuration Layer 2 and Layer 3 Switches"
And after I reset the username and password, then go into config t - all of the changes from my original config.text is not there
its all wiped out.  Why ????   isn't this process only suppose to affect the username and password. ??

config t                                                                    

username admin33 privilege 15 password Cisco45  : I substitute this for enable secret and enable password.  

line vty 0 15
login local

line con 0
login local
end
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2018
Commented:
It should keep original startup configuration. Most likely you skipped to copy original configuration file into the memory prior to save changes
     copy flash:config.text run
or
    copy flash:config.text.old run (if you renamed file according to recommendation rename flash:config.text flash:config.text.old )
That one will upload your original startup file to running configuration.
Password recovery should happen after that step. If you just change password and save configuration and skip copying startup configuration with running configuration, sure, everything will be deleted since you did overwrite startup configuration with empty configuration (except those few lines).
nader alkahtaniInformation security consultant

Commented:
Following
The process does not do so automatically, are you saving the existing configuration as one of your steps.

The password is part of the configuration file, so once you restart and run flash_init and load_helper you then need to save the config.text on flash, for example rename flash:config.text flash:config.old.  Then you can just rename it back by copy flash:config.old flash:running-config and reset the password to something you know.

Here is the cisco link and steps:

http://www.cisco.com/image/gif/paws/12040/pswdrec_2900xl.pdf
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
After doing this on a Cisco 2950 switch. I figured out what the process does. The Cisco document is a process of steps that stops the prompting of the original username and password You may have forgotten or lost. And then give the technician at the console the ability to enter into Config t mode aka global configuration mode the ability to enter a username and password you have document and know.

switch#copy flash:config.text system:running−config   After the original config.text gets copy Back into memory - There will be no username or pw.
switch#show run  : You will here the contents of your original config.text. The next step will allow you to enter into Config t
Config t
enable secret Cisco34
username admin43 privilege 15 secret Cisco65
end
wr or copy run config
reload   After your reload you will now be able to login to switch with a Username and Password  You Know and Do Not Forget.

Author

Commented:
You helped thanks
Good.  The process takes you back to default, but the config is still present, so when you copy it back in your in enable mode and can change the password.  If you just copied it and logged out  you would be back to square one and not be able to logon again.

Author

Commented:
I already tried it and it for Not do that. Bryant. You are working with the same config.text, and entering additional username and password you now have documented. And if you do a show run you will see the original contents
Distinguished Expert 2018

Commented:
show run is irrelevant.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial