|
实验4:交换机Cisco3550密码恢复
1.拨下交换机电源线.
2.按住交换机前面板MODE键的同时插上电源.
3.直到交换机前面板端口1的灯从绿色到不亮,松开MODE键.
4.这时配置端会出现:
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 the operating system software:
flash_init
boot
初始化flash: switch:flash_init
Initializing Flash...
flashfs[0]: 18 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 15998976
flashfs[0]: Bytes used: 5088256
flashfs[0]: Bytes available: 10910720
flashfs[0]: flashfs fsck took 17 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
加载系统帮助文件: switch: load_helper
查看flash的文件有哪些: switch: dir flash:
Directory of flash:/
2 -rwx 736 <date> vlan.dat
3 -rwx 342 <date> system_env_vars
5 drwx 192 <date> c3550-i5q3l2-mz.121-11.EA1
7 -rwx 0 <date> env_vars
8 -rwx 2088 <date> config.text
9 -rwx 47 <date> private-config.text
10910720 bytes available (5088256 bytes used)
密码在config.text里面,重命名该文件后重启系统:
switch: rename flash:config.text flash:config.text1
switch: boot
Loading "flash:c3550-i5q3l2-mz.121-11.EA1/c3550-i5q3l2-mz.121-11 .EA1.bin"...
......
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: no
Press RETURN to get started!
这时系统加载不到配置文件,所以不需要输入特权用户的密码.
Switch>enable
Switch#rename flash:config.text1 flash:config.text
Destination filename [config.text] y
Switch#copy flash:config.text system:running-config
Destination filename [running-config]?
2088 bytes copied in 1.112 secs (2088 bytes/sec)
Switch3550#config terminal
重设新密码 Switch3550(config)#enable secret cisco
Switch3550(config)#write mem
Switch3550(config)#end
Switch3550#reload
Q:为什么要初始化和加载系统帮助文件?
|
|