一:备份配置文件

设备作为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. nodejs 计算内存使用率

    //计算内存使用率 function calcMem(){ let mem_total = os.totalmem(), mem_free = os.freemem(), mem_used = mem ...

  2. SyntaxError: Non-ASCII character '\xe2' in file 编码错误

    Editing .py file in the Notepad: But when run in the PowerShell, I found the follwing error: It seem ...

  3. union以及一些扩展

    select name,age from Students where Age<3unionselect name ,age from Students where Age >4--两个结 ...

  4. 数据库监控[Z]

    --查看表锁 select * from sys.v_$sqlarea where disk_reads>100    --监控事例的等待 select event,sum(decode(wai ...

  5. poj-2403-cup

    题目描述 The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume o ...

  6. javascript 高级程序设计学习笔记(面向对象的程序设计)继承

    ECMAScript中描述了原型链的概念,原型链是实现继承的主要方法. 实现原型链继承有一种基本模式 function SuperType () { this.property = true; } S ...

  7. rpm方式安装MySQL-5.6

    1. 卸载系统原有的mysql-libs rpm -e [name] --nodeps 2. 安装MySQL rpm -ivh MySQL-server-XXXXXX rpm -ivh MySQL-c ...

  8. C++标准程序读书笔记-第三章错误和异常处理

    1.命名空间(namespace)std C++标准程序库中的所有标示符都被定义于一个名为std的namespace 2.标准异常类别 (1)语言本身或标准程序库所抛出的所有异常,都派生自基类exce ...

  9. Windows Server 2008企业64位版防火墙添加端口的方法

    原始地址:http://www.veryhuo.com/a/view/48280.html 什么是防火墙的入站规则和出站规则 简单的说 出站就是你访问外网 入站就是外网访问你 记得在两年前写过一篇教程 ...

  10. PHP字符编码问题-总结

    今天在网上看到一个人的对于php开发中字符编码的总结,感觉不错,摘录如下: 一,php编码转换        1.通过iconv()函数实现编码转换                语法:iconv(s ...