一:备份配置文件

设备作为FTP服务器,用户PC作为FTP客户端

# 配置设备的FTP功能及FTP用户信息。

<HUAWEI> system-view

[HUAWEI] ftp server enable

[HUAWEI] aaa

[HUAWEI-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789

[HUAWEI-aaa] local-user admin1234 privilege level 15

[HUAWEI-aaa] local-user admin1234 service-type ftp

[HUAWEI-aaa] local-user admin1234 ftp-directory cfcard:/  //这里注意是你交换机当前目录dir

[HUAWEI-aaa] quit

[HUAWEI] quit

# 保存设备当前配置。

<HUAWEI> save

# 从终端PC通过FTP连接设备,输入用户名admin1234和密码Helloworld@6789,并采用binary模式进行文件传输。

终端以Window win7操作系统为例说明。

C:\Documents and Settings\Administrator> ftp 10.136.23.5

Connected to 10.136.23.5.

220 FTP service ready.

User (10.136.23.5:(none)): admin1234

331 Password required for admin1234.

Password:

230 User logged in.

ftp> binary

200 Type set to I.

ftp>

# 备份配置文件。

ftp> get vrpcfg.zip

200 Port command okay.

150 Opening BINARY mode data connection for vrpcfg.zip.

226 Transfer complete.

ftp: 收到 1257 字节,用时 0.03秒 40.55千字节/秒。

设置恢复的配置文件为下次启动配置文件并重启设备

C:\Users\Administrator>这是备份的配置文件的默认路径

至此备份成功

二:恢复配置文件

设备作为FTP服务器,本地PC作为FTP客户端,将备份的配置文件上传到设备中

# 配置设备的FTP服务器功能及FTP用户信息。

<HUAWEI> system-view

[HUAWEI] ftp server enable

[HUAWEI] aaa

[HUAWEI-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789

[HUAWEI-aaa] local-user admin1234 privilege level 15

[HUAWEI-aaa] local-user admin1234 service-type ftp

[HUAWEI-aaa] local-user admin1234 ftp-directory cfcard:/

[HUAWEI-aaa] quit

[HUAWEI] quit

# 从终端PC通过FTP连接设备,输入用户名admin1234和密码Helloworld@6789,并采用binary模式进行文件传输。

终端以Window XP操作系统为例说明。

C:\Documents and Settings\Administrator> ftp 10.136.23.5

Connected to 10.136.23.5.

220 FTP service ready.

User (10.136.23.5:(none)): admin1234

331 Password required for admin1234.

Password:

230 User logged in.

ftp> binary

200 Type set to I.

ftp>

# 上传备份的配置文件到设备中。

ftp> put vrpcfg.zip

200 Port command okay.

150 Opening BINARY mode data connection for vrpcfg.zip.

226 Transfer complete.

ftp: 发送 1257 字节,用时 0.03秒 40.55千字节/秒。

至此上传配置文件成功了

dir命令查看是否上传成功了

设置恢复的配置文件为下次启动配置文件并重启设备

<HUAWEI> startup saved-configuration config.cfg

<HUAWEI> display startup

MainBoard:

Configured startup system software:        cfcard:/device_software.cc

Startup system software:                   cfcard:/device_software.cc

Next startup system software:              cfcard:/device_software.cc

Startup saved-configuration file:          cfcard:/config_old.cfg   //设备当前的配置文件名。

Next startup saved-configuration file:     cfcard:/config.cfg   //下次启动的配置文件名。

Startup paf file:                          default

Next startup paf file:                     default

Startup license file:                      default

Next startup license file:                 default

Startup patch package:                     NULL

Next startup patch package:                NULL

<HUAWEI> reboot   //重启设备。

Info: The system is now comparing the configuration, please wait.

Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file cfcard:/config.cfg. Continue? [Y/N]:N   //输入N防止设备当前的配置保存到备份的配置文件中。

Now saving the current configuration to the slot 13.

Save the configuration successfully.

Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.

System will reboot! Continue?[Y/N]:Y   //输入Y重启设备。

以上是参照华为文档,亲测

华为S5700基础配置----备份和恢复配置文件的更多相关文章

  1. Oracle基础 数据库备份和恢复

    一.为什么需要数据备份 造成数据丢失的主要原因: 1.介质故障. 2.用户的错误操作. 3.服务器的彻底崩溃. 4.计算机病毒. 5.不可预料的因素. Oracle中故障类型分为以下4种. 1.语句故 ...

  2. 华为S5700交换机初始化和配置SSH和TELNET远程登录方法

    基础设置: 配置登陆IP地址<Quidway> system-view                                                            ...

  3. 自学Aruba4.2-Aruba AC基础配置(1)

    点击返回:自学Aruba之路 自学Aruba4.2-Aruba AC基础配置(1) 管理员登陆(admin/saic_admin): Cli Web 管理帐号 控制器基础设置: 控制器恢复出厂设置 查 ...

  4. Oracle连接配置以及实例的备份和恢复

    背景:一个团队项目开发,不可能每个人都架设自己本地的数据库,大多数情况下是统一用服务器上的数据库,这时候就需要进行远程数据库的连接.而且有时候还需要进行数据库搬迁 ,这时候就需要进行数据库的备份和恢复 ...

  5. bitnami redmine安装、配置、备份、恢复(这篇文章靠谱)

    bitnami redmine安装.配置.备份.恢复 2012-12-17 12:33 2596人阅读 评论(0) 收藏 举报 1. 安装时语言选择英文,不可以选择中文,否则不能正常运行,可以在账户里 ...

  6. 华为S5700配置端口镜像和华三S5120配置802.1X认证记录

    一.说明 事情的起因是我们部门有个华为的S5700交换机,想配置端口镜像抓包但让助理买的串口线很久都还没到:而昨天测试部的同事说他们那有台华三的S5120想要配802.1X认证,但只有华为交换机的文档 ...

  7. SpringCloud系列九:SpringCloudConfig 基础配置(SpringCloudConfig 的基本概念、配置 SpringCloudConfig 服务端、抓取配置文件信息、客户端使用 SpringCloudConfig 进行配置、单仓库目录匹配、应用仓库自动选择、仓库匹配模式)

    1.概念:SpringCloudConfig 基础配置 2.具体内容 通过名词就可以发现,SpringCloudConfig 核心作用一定就在于进行配置文件的管理上.也就是说为了更好的进行所有微服务的 ...

  8. bitnami redmine安装、配置、备份、恢复

    1. 安装时语言选择英文,不可以选择中文,否则不能正常运行,可以在账户里改为显示中文:   2. 安装完成后,最上面的标题栏字体太小,修改:   D:\BitNami\redmine-2.1.4-0\ ...

  9. Oracle 数据库备份和恢复配置

    可能的失败及其解决方法 失败类型 我们坑你遇到的失败或错误分为两大类:物理和逻辑.物理错误一般是硬件错误或使用数据库的应用程序中的软件错误,而逻辑错误一般在终端用户级别(数据库用户和管理员). 按从轻 ...

随机推荐

  1. 【求出所有最短路+最小割】【多校第一场】【G题】

    题意 A从1要追在N的 B 只能走最短的路 问B最少切断多少条路可以让A不能过来 问B最多切断多少条路A还是能过来 对于1 求出1到N的所有最短路的路径,对其求最小割 对于2 求出长度最小的最短路即可 ...

  2. SQL日期格式转换(经常用又经常忘记的东西)转载自http://www.cnblogs.com/wangyuelang0526/archive/2012/06/06/2538224.html

    Select CONVERT(varchar(100), GETDATE(), 8):14:53:14Select CONVERT(varchar(100), GETDATE(), 9): 06 6 ...

  3. JQ 动态添加节点

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  4. 背包问题递归java

    public boolean PackageProblem(int[] arr,int start,int targetLeft,int target) { if(arr.length==0) { S ...

  5. E - Number Sequence(第二季水)

    Description A single positive integer i is given. Write a program to find the digit located in the p ...

  6. C - The Hardest Problem Ever

    Description Julius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever ...

  7. 设计模式--委托模式C++实现

    原文章地址:http://www.cnblogs.com/zplutor/archive/2011/09/17/2179756.html [委托模式 C++实现] 我对.Net的委托模型印象很深刻,使 ...

  8. 【转】mysql行列转换方法总结

    转:http://blog.chinaunix.net/uid-7692530-id-2567582.html 在某些数据库中有交叉表,但在MySQL中却没有这个功能,但网上看到有不少朋友想找出一个解 ...

  9. js中邦定事件与解绑支持匿名函数

    和一个朋友讨论了一下,DOM2绑定方式都是有名的函数,匿名的处理起来有些麻烦,而且即使是有名的函数,在IE低版本的浏览器也是解除不掉的,this指向需要修改,着实费了一番功夫,这个是兼容ie低版本的, ...

  10. Gallery过时替代方案HorizontalScrollView

    布局: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:androi ...