我有位同事在删除Catalys 3524交换机的配置时,不小心将IOS给删了,让我帮恢复。
为了往3524里灌一个IOS,我先找了另外一台Catalys 3524,将IOS影像下载下来,具体过程如下:
首先将交换机与计算机用双绞线连接,并由串口线连接console口,启动超级终端,连接速率选择9600,同时启动tftp程序。
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int vlan1
Switch(config-if)#ip add 192.168.1.2 255.255.255.0
Switch(config-if)#end
Switch#
00:13:56: %SYS-5-CONFIG_I: Configured from console by console
Switch#copy flash: tftp
Source filename []? c3500XL-c3h2s-mz.120-5.4.WC.1.bin
Address or name of remote host []? 192.168.1.9
Destination filename [c3500XL-c3h2s-mz.120-5.4.WC.1.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1751552 bytes copied in 19.643 secs (92186 bytes/sec)
通过以上操作,就将IOS在下来了。
接下来启动没有IOS的交换机,因为没了IOS,它自动进入switch:状态。用串口线连接switch的console口,输入命令 copy xmodem: flash:ios-filename.bin,交换机将出现一个个C字符表示正在试图通过xmodem协议连接。
在路由器还没有超时之前,在超级终端上选择菜单:传送->发送文件... 选中要发送到交换机的IOS文件并更改对话框内的“协议”项为“xmodem”.
由于连接速度是9600bps,不能更改(好象路由器可以),所以每秒钟大约只能传1k字节,传完一个IOS需要较多时间,我这里用了39分钟。之后,键入reset,你就会发现已经成功了。