恢复误删除的交换机flash
1、以 Cisco3550为例,先从好的交换机里导出bin文件,设置计算机的
IP地址为192.168.1.1 (与tftp服务器IP地址同网段)
网关地址192.168.1.254 (设置tftp服务器IP地址)
在secretCRT的选项中
Transfer>start TFTP server
Options>Session options
在选项X/Y/Zmodem里设置upload和download地址(TFTP服务器存储文件用)
在好的交换机中
switch>enable
switch#show version
可以查看到flash:c3550-i9q3l2-mz.121-13.EA1a\c3550-i9q3l2-mz.121-13.EA1a.bin
switch#conf t
switch(config)#int vlan1
switch(config-if)#ip address 192.168.1.2 255.255.255.0 (与tftp服务器IP地址同网段)
switch(config-if)#exit
switch(config)#ip default-gateway 192.168.1.254 (tftp服务器IP地址)
switch(config)#^z
switch#copy flash:c3550-i9q3l2-mz.121-13.EA1a\c3550-i9q3l2-mz.121-13.EA1a.bin tftp
Address or name of remote host[]? 192.168.1.1 (计算机IP地址)
Destination file[]?c3550-i9q3l2-mz.121-13.EA1a.bin
完成上传
2、在误删的交换机中
switch:flash_init
switch:copy xmodem: flash:c3550-i9q3l2-mz.121-13.EA1a.bin
Begin the Xmodem or Xmodem-1K transfer now...
CCCC
此时在点击选项Transfer>send Xmodem...
在tftp服务器指定的目录下找到c3550-i9q3l2-mz.121-13.EA1a.bin点击确定
完成下载
switch:boot
即可重启正常