重庆思庄Oracle、Redhat认证学习论坛

标题: 华为路由器如何恢复出厂设置? [打印本页]

作者: 郑全    时间: 2022-9-14 18:12
标题: 华为路由器如何恢复出厂设置?
比如:
  我这里 修改了设备名字:
   sysname r2
   interface GigabitEthernet0/0/0
   ip address 2.2.2.254 255.255.255.0

   之后保存:
   查看配置:
   [r2]disp current
   ...
   sysname r2
   interface GigabitEthernet0/0/0
   ip address 2.2.2.254 255.255.255.0
   ...

   [r2]

   如果想回到出厂设置
   <r2>reset saved-configuration

   This will delete the configuration in the flash memory.

   The device configurations will be erased to reconfigure.

   Are you sure? (y/n)[n]:y
    Clear the configuration in the device successfully.
   <r2>

   重启生效
   <r2>reboot
Info: The system is comparing the configuration, please wait.
Warning: All the configuration will be saved to the next startup configuration.
Continue ? [y/n]:n            --注意,这里要选择 n
   System will reboot! Continue ? [y/n]:y
Info: system is rebooting ,please wait...

   之后,重启后,发现前面修改的配置都没有了,包含 设备的名字:
   
439676321a8f278e88.png
登录/注册后可看大图