一 为什么需要清空配置?
在网络的运维中,会遇到设备下架的场景,需要将下架的设备挪到其它地方使用,那么下架前需要对设备进行配置清空处理。
二 如何清空设备配置?
清空配置文件。有如下两种方式:
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".
如果对你有用,帮忙点个在看 点赞 转发吧,如果有什么想法,请在评论区留言!