交换机备份ios
SW2#show flash
Directory of flash:/
1 -rw- 4414921 <no date> c2960-lanbase-mz.122-25.FX.bin
64016384 bytes total (59601463 bytes free)
SW2#copy flash tftp //将flash备份进TFTP
Source filename []? c2960-lanbase-mz.122-25.FX.bin
Address or name of remote host []? 192.168.1.2
Destination filename [c2960-lanbase-mz.122-25.FX.bin]? SW2.bin
Writing c2960-lanbase-mz.122-25.FX.bin…!!!
[OK - 4414921 bytes]
4414921 bytes copied in 0.189 secs (634675 bytes/sec)
//ios 备份成功
删除交换机iOS并恢复
SW2#delete flash
Delete filename []?c2960-lanbase-mz.122-25.FX.bin
Delete flash:/c2960-lanbase-mz.122-25.FX.bin? [confirm]
SW2#show flash
Directory of flash:/
No files in directory
64016384 bytes total (64016384 bytes free)
//iOS已删除
//iOS恢复之前不可断电(重启)否则将无法操作
SW2#copy tftp flash //从TFTP恢复
Address or name of remote host []? 192.168.1.2
Source filename []? SW2.bin
Destination filename [SW2.bin]?
Accessing tftp://192.168.1.2/SW2.bin…
Loading SW2.bin from 192.168.1.2: !!!
[OK - 4414921 bytes]
4414921 bytes copied in 0.206 secs (582299 bytes/sec)
SW2#show flash
Directory of flash:/
2 -rw- 4414921 SW2.bin
64016384 bytes total (59601463 bytes free)
//iOS已从服务器恢复
//重启之后恢复成功
恢复iOS之前重启结果—将无法进入系统
*此时交换机已经无法正常开机,需要用计算机串口连接交换机console口,用CRT等超级终端连接交换机下载iOS进行恢复