10-07-2021 06:21 AM - edited 10-07-2021 06:41 AM
I have Cisco 2960 switch and I need to reset the password without losing all the configurations on the switch. I found the below commands and I'm not sure it is working or not. can anyone verify that will work and save the configuration?
Using driver version 1 for media type 1
Using driver version 1 for media type 2
Base ethernet MAC Address: a4:0c:c3:f1:d8:00
Xmodem file system is available.
The password-recovery mechanism is enabled.The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
system software:flash_init
bootswitch:
-- MORE --
mifs[8]: 5 files, 1 directories
mifs[8]: Total bytes : 524288
mifs[8]: Bytes used : 9216
mifs[8]: Bytes available : 515072
mifs[8]: mifs fsck took 1 seconds.
mifs[9]: 12 files, 3 directories
mifs[9]: Total bytes : 57671680
mifs[9]: Bytes used : 19113472
mifs[9]: Bytes available : 38558208
mifs[9]: mifs fsck took 41 seconds.
...done Initializing Flash.switch:switch:
switch: dir flash:
Directory of flash:/ 2 -rwx 676 <date> vlan.dat
3 -rwx 2239 <date> config.text
4 drwx 512 <date> crashinfo_ext
6 -rwx 156 <date> express_setup.debug
7 -rwx 5 <date> private-config.text
8 drwx 512 <date> crashinfo
11 -rwx 556 <date> vlan.dat.renamed
12 -rwx 18591722 <date> c3750e-universalk9-mz.150-1.SE3.bin
13 -rwx 4973 <date> config.text.renamed
14 -rwx 5 <date> private-config.text.renamed
15 -rwx 2072 <date> multiple-fs
38558208 bytes available (19113472 bytes used)
Switch>en
Switch#rename flash:config.text.old flash:config.text
Destination filename [config.text]?
Switch#copy flash:config.text system:running-config
Destination filename [running-config]?
TEST#
*Mar 1 00:05:14: %LINK-5-CHANGED: Interface FastEthernet0, changed state to administratively down
*Mar 1 00:05:15: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down
TEST#
TEST#conf t
Enter configuration commands, one per line. End with CNTL/Z.
TEST(config)#enable secre
TEST(config)#enable secret
TEST(config)#enable secret
TEST(config)#enable secret your_new_password_here
TEST(config)#end
TEST#write memory
Solved! Go to Solution.
10-07-2021 06:32 AM
Follow below document : ( focus copy the config)
10-07-2021 06:32 AM
Follow below document : ( focus copy the config)
10-07-2021 07:44 AM
that works. Thank you.
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