前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >清空设备配置的两种方式

清空设备配置的两种方式

作者头像
网络工程师笔记
发布2021-05-17 16:00:20
1.1K0
发布2021-05-17 16:00:20
举报

一 为什么需要清空配置?

在网络的运维中,会遇到设备下架的场景,需要将下架的设备挪到其它地方使用,那么下架前需要对设备进行配置清空处理。

如何清空设备配置?

清空配置文件。有如下两种方式:

1、通过命令行使设备以缺省配置启动。

执行命令reset saved-configuration清除设备下次启动使用的配置文件信息,然后重启设备,重启时提示保存配置,请选择“N”不保存。

代码语言:javascript
复制
<HUAWEI> reset saved-configuration
The action will delete the saved configuration on the device.
The configuration will be erased to reconfigure.Continue? [Y/N]: y
Warning: Now the configuration on the device is being deleted.
..........
Info: Succeeded in clearing the configuration in the device.
代码语言:javascript
复制
<HUAWEI> reboot
slot 1:
Next startup system software: flash:/basicsoftware.cc
Next startup saved-configuration file: NULL
Next startup paf file: default
Next startup patch package: NULL
Warning: The current configuration will be saved to the next startup saved-confi
guration file. Continue? [Y/N]: n
Warning: The system will reboot. Continue? [Y/N]: y 
代码语言:javascript
复制

2、通过BIOS/BootLoader菜单使设备以空配置启动。以下显示信息以CE6850EI为例。

进入BIOS主菜单,选择第4项,进入启动文件子菜单。

接着选择第2项,进入修改启动文件信息菜单。

代码语言:javascript
复制
        BIOS Menu (Version: 281)

     1. Continue to boot
     2. Update from serial interface
     3. Update from ethernet interface
     4. Modify startup parameters
     5. File system
     6. Modify BIOS password
     7. Modify console password               //从V200R019C00版本开始,没有此选项。
     8. Restore factory defaults
     9. Reboot

Enter your choice(1-9): 4

        Startup Submenu

     1. Display current startup configuration
     2. Modify startup configuration
     3. Return

Enter your choice(1-3): 2
'.' = clear field;  Ctrl+C = quit; Enter = use current configuration               
                 
Current startup file is "software.cc", modify the file name if needed.       
Input the new file name: softwarenew.cc       
The startup file has been modified from "software.cc" to "softwarenew.cc".

Current config file is "vrpcfg.cfg", modify the file name if needed.           
Input the new file name: .         //此处输入“.”,以空配置启动

Current patch file is "patchfile.PAT", modify the file name if needed.
Input the new file name: patchfilenew.PAT
The patch file has been modified from "patchfile.PAT" to "patchfilenew.PAT".

如果对你有用,帮忙点个在看+点赞+转发吧,如果有什么想法,请在评论区留言!

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2021-03-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 网络工程师笔记 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档