Cisco Catalyst 3550/3750 交换机 enable密码清除,并保留原配置。
步骤如下:
1、将交换机console口与电脑相连,再按住交换机面板前的“mode”键,然后重启交换机,直到面板的”STAT”灯亮(如果不确定就一直按着半分钟,或直到手指酸),松开。
2、此时会出现命令提示符
switch:
如下:
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 load_helper boot
switch: flash_init
Initializing Flash?
flashfs[0]: 4 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 15998976
flashfs[0]: Bytes used: 8282624
flashfs[0]: Bytes available: 7716352
flashfs[0]: flashfs fsck took 11 seconds.
done Initializing Flash.
Boot Sector Filesystem (bs) installed, fsid: 3 Setting console baud rate to 9600?
switch: load_helper
switch: dir flash: 查看flash下的文件目录
2 -rwx 8276561 <date> c3750-ipservices-mz.122-37.SE.bin
3 -rwx 616 <date> vlan.dat
4 -rwx 5 <date> private-config.text
6 -rwx 3027 <date> config.text 7716352 bytes available (8282624 bytes used)
switch: rename flash:config.text flash:config.text.old
switch: boot
Loading “flash:/c3750-ipservices-mz.122-37.SE.bin”?@@@@
3、重启后进入ios进行如下操作:
Would you like to enter the initial configuration dialog? [yes/no]: no
Would you like to terminate autoinstall? [yes]: //选择yes 还原配置文件名称,并复制配置文件至running中
Switch>en
Switch#rename flash:config.text.old flash:config.text
Switch#copy flash:config.text system:running-config
Switch#configure terminal
Switch(config)#no enable password
Switch(config)#exit
Switch#wr
00:04:04: %SYS-5-CONFIG_I: Configured from console by console Building configuration? [OK]
交换机的enable密码被清除完成。
评论