2012年(77)
分类: LINUX
2012-08-06 15:59:06
1、断电重启Switch,同时住Mode键,待十五秒后,Switch port fastethernet0/1变成虎珀色,松开 .......
2、进入最小模式switch:
Base ethernet MAC Address: 00:1e:79:04:eb: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
load_helper
boot
switch:
3、键入flash_int
switch: flash_init
Initializing Flash...
flashfs[0]: 458 files, 6 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 9078784
flashfs[0]: Bytes available: 23435264
flashfs[0]: flashfs fsck took 13 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs) installed, fsid: 3
Setting console baud rate to 9600...
4、键入 load_helper
5、键入dir flash:
键入此命令后,显示出一些文件,其中有一个文件是储存配置信息的config.text
6、键入rename flash:config.text flash:config.old
改名就可以跳过原有配置文件信息,并不用担心配置文件丢失,如果你输入delete flash:confi.text那么你将不幸了,原有配置信息将丢失
7、键入boot,重启OK
8、键入en ,嘿,不需要密码了
9、改回原有的配置文件信息,rename flash:config.old flash:config.text
10、改密码conf t en pas cisco
11、wri mem保存