交換機備份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進行恢復