本文转载自 胖鲨鱼网络 http://www.pangshayu.com/html/6010.html

关键字:思科交换机,CISCO2960,重灌IOS,重装IOS,switch:

公司的一台思科2960交换机拿来设置,在清空配置的时候不小心清空了Flash:结果reload启动不起来,直接进入了"SWITCH:”模式。

然后就Boot启动:

switch: boot
Loading "flash:c2960-lanbasek9-mz.122-44.SE6/c2960-lanbasek9-mz.122-44.SE6.bin".
..flash:c2960-lanbasek9-mz.122-44.SE6/c2960-lanbasek9-mz.122-44.SE6.bin: no such
file or directory

Error loading "flash:c2960-lanbasek9-mz.122-44.SE6/c2960-lanbasek9-mz.122-44.SE6
.bin"

Interrupt within 5 seconds to abort boot process.
Boot process failed...


结果如上,还是不行加载不上IOS,然后我就做了Reset动作:


switch: reset
Are you sure you want to reset the system (y/n)?y
System resetting...

Boot Sector Filesystem (bs) installed, fsid: 2
Base ethernet MAC Address: ac:a0:16:59:6e:00
Xmodem file system is available.
The password-recovery mechanism is enabled.
Initializing Flash...
flashfs[0]: 0 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 1024
flashfs[0]: Bytes available: 32513024
flashfs[0]: flashfs fsck took 9 seconds.
...done Initializing Flash.
done.
Loading "flash:c2960-lanbasek9-mz.122-44.SE6/c2960-lanbasek9-mz.122-44.SE6.bin".
..flash:c2960-lanbasek9-mz.122-44.SE6/c2960-lanbasek9-mz.122-44.SE6.bin: no such
file or directory

Error loading "flash:c2960-lanbasek9-mz.122-44.SE6/c2960-lanbasek9-mz.122-44.SE6
.bin"

Interrupt within 5 seconds to abort boot process.
Boot process failed...

The system is unable to boot automatically.  The BOOT
environment variable needs to be set to a bootable
p_w_picpath.

错误提示是"Error loading "flash:c2960-lanbasek9-mz.122-44.SE6/c2960-lanbasek9-mz.122-44.SE6
.bin"。加载不上c2960的IOS文件。为了确认Flash中是否真的没有IOS文件,我加载flash查看:


switch: flash_init
Initializing Flash...
...The flash is already initialized.

switch: dir flash:
Directory of flash:/


32513024 bytes available (1024 bytes used)

switch:


结果还真的什么也没有,My God!真的是给清空了,好吧,只有重灌了。在网上Downloa IOS文件:c2960-lanbasek9-mz.122-44.SE6.bin,或者去CISO官网Download最新的IOS。


下载好后准备Cisco TFTP软件,准备重灌。要在SWITCH模式下用Xmodem方式灌才可以。方法如下:

1.用C**ole控制台连接交换机(这是必须的,已经在连接了)。

2.打开TFTP服务。

3.在超级终端里输入:

switch:copy xmodem:flash:c2960-lanbasek9-mz.122-44.SE6.bin

Begin the Xmodem or Xmodem-1K transfer now...

CCCCC

此时会出现CCCCCC字符,说明正在传送文件。

4.还要在超级终端菜单的"传送-->发送文件",在协力选项中选择Xmodem或着Xmodem-1K协议,然后选择IOS的相应文件(就是刚才输入的c2960-lanbasek9-mz.122-44.SE6.bin),开始正式传送。


选择Xmodem协议传送,有时会传送失败,Xmodem协议不行就选择1K Xmodem协议。我就是用1K Xmodem协议传送成功的。传送过程会很长,要1-2个小时,看文件大小,要慢慢等。等传送进度条跑完,会出现一下界面和提示:8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

File “xmodem:” successfully copied to "flash:c2960-lanbasek9-mz.122-44.SE6.bin"

switch: