Cisco2960交换机忘记密码的解决办法 2023-11-18 网络 暂无评论 2285 次阅读 1.长按MODEL键,打开电源,按住mode按钮直到sys灯不闪动(常亮状态)直到出现switch:模式 2.初始化flash卡 ``` switch: flash_init Initializing Flash... flashfs[0]: 603 files, 19 directories flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 32514048 flashfs[0]: Bytes used: 8335872 flashfs[0]: Bytes available: 24178176 flashfs[0]: flashfs fsck took 10 seconds. ...done Initializing Flash. Setting console baud rate to 9600... ``` 3.查看FLASH 内容 ``` switch: dir flash: Directory of flash:/ 2 -rwx 1481 config.text.renamed 3 -rwx 5 private-config.text.renamed 7 drwx 192 c2960-lanbase-mz.122-35.SE5 24178176 bytes available (8335872 bytes used) ``` 4.重命名密码文件名,并查看 ``` switch: rename flash:config.text.renamed flash:config.text.renamed.old switch: dir flash: Directory of flash:/ 2 -rwx 1481 config.text.renamed.old 3 -rwx 5 private-config.text.renamed 7 drwx 192 c2960-lanbase-mz.122-35.SE5 24178176 bytes available (8335872 bytes used) ``` 5.重启 ``` switch: boot Loading "flash:c2960-lanbase-mz.122-35.SE5/c2960-lanbase-mz.122-35.SE5.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ File "flash:c2960-lanbase-mz.122-35.SE5/c2960-lanbase-mz.122-35.SE5.bin" uncompressed and installed, entry point: 0x3000 executing... Restricted Rights Legend Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c) of the Commercial Computer Software - Restricted Rights clause at FAR sec. 52.227-19 and subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer Software clause at DFARS sec. 252.227-7013. cisco Systems, Inc. 170 West Tasman Drive San Jose, California 95134-1706 Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1) Copyright (c) 1986-2007 by Cisco Systems, Inc. Compiled Thu 19-Jul-07 20:06 by nachen Image text-base: 0x00003000, data-base: 0x00D40000 Initializing flashfs... flashfs[1]: 603 files, 19 directories flashfs[1]: 0 orphaned files, 0 orphaned directories flashfs[1]: Total bytes: 32514048 flashfs[1]: Bytes used: 8335872 flashfs[1]: Bytes available: 24178176 flashfs[1]: flashfs fsck took 1 seconds. flashfs[1]: Initialization complete....done Initializing flashfs. POST: CPU MIC register Tests : Begin POST: CPU MIC register Tests : End, Status Passed POST: PortASIC Memory Tests : Begin POST: PortASIC Memory Tests : End, Status Passed POST: CPU MIC interface Loopback Tests : Begin POST: CPU MIC interface Loopback Tests : End, Status Passed POST: PortASIC RingLoopback Tests : Begin POST: PortASIC RingLoopback Tests : End, Status Passed POST: PortASIC CAM Subsystem Tests : Begin POST: PortASIC CAM Subsystem Tests : End, Status Passed POST: PortASIC Port Loopback Tests : Begin POST: PortASIC Port Loopback Tests : End, Status Passed Waiting for Port download...Complete cisco WS-C2960-24TT-L (PowerPC405) processor (revision D0) with 61440K/4088K bytes of memory. Processor board ID FOC1202W1WG Last reset from power-on 1 Virtual Ethernet interface 24 FastEthernet interfaces 2 Gigabit Ethernet interfaces The password-recovery mechanism is enabled. 64K bytes of flash-simulated non-volatile configuration memory. Base ethernet MAC Address : 00:1F:27:44:5F:00 Motherboard assembly number : 73-10390-04 Power supply part number : 341-0097-02 Motherboard serial number : FOC12022J7G Power supply serial number : AZS115017D4 Model revision number : D0 Motherboard revision number : A0 Model number : WS-C2960-24TT-L System serial number : FOC1202W1WG Top Assembly Part Number : 800-27221-03 Top Assembly Revision Number : B0 Version ID : V03 CLEI Code Number : COM3L00BRB Hardware Board Revision Number : 0x01 Switch Ports Model SW Version SW Image ------ ----- ----- ---------- ---------- * 1 26 WS-C2960-24TT-L 12.2(35)SE5 C2960-LANBASE-M Press RETURN to get started! Would you like to terminate autoinstall? [yes]: --- System Configuration Dialog --- ``` 6.进入特权模式,flash中的配置文件改回原来的名字。 ``` Would you like to enter the initial configuration dialog? [yes/no]: n Switch>en Switch#rename flash:config.text.renamed.old flash:config.text.renamed Destination filename [config.text.renamed]? Switch# Switch#copy flash:config.text.renamed system:running-config ``` 标签: cisco 本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。