码迷,mamicode.com
首页 > 移动开发 > 详细

交换机IOS和配置文件的备份与还原

时间:2015-03-31 12:59:25      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:ftp服务器   交换机   配置文件   flash   

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)


本文出自 “技术至上” 博客,请务必保留此出处http://wuxiangdong.blog.51cto.com/8274747/1626718

交换机IOS和配置文件的备份与还原

标签:ftp服务器   交换机   配置文件   flash   

原文地址:http://wuxiangdong.blog.51cto.com/8274747/1626718

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!