1.備份IOS和配置文件
1.首先要有一個配置好的ftp服務器,並且保證要在一個網段中(能夠互相的ping通)。
實例:
Switch#copy 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]?
Writing c2960-lanbase-mz.122-
25.FX.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!
[OK - 4414921 bytes]
4414921 bytes copied in 0.281 secs (426881 bytes/sec)
這樣就將一個IOS備份到了ftp服務器上,這個可以對IOS的升級和重裝提供便利。
2.恢復IOS和配置文件
實例:
Switch#copy tftp flash:
Address or name of remote host []? 192.168.1.2
Source filename []? c2960-lanbase-mz.122-25.FX.bin
Destination filename [c2960-lanbase-mz.122-25.FX.bin]?
%Warning:There is a file already existing with this name
Do you want to over write? [confirm]
Accessing tftp://192.168.1.2/c2960-lanbase-mz.122-25.FX.bin....
Loading c2960-lanbase-mz.122-25.FX.bin from 192.168.1.2:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 4414921 bytes]
4414921 bytes copied in 3.313 secs (36206 bytes/sec)