路由器基础配置

一、值得注意的点

1.如何重置配置信息?

1)首先查看当前的配置信息

<R2>display current-configuration 
[V200R003C00]
#
 sysname R2
 header shell information "Welcome to Q***** Lab World."
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
 drop illegal-mac alarm
#
 wlan ac-global carrier id other ac id 0
#
 set cpu-usage threshold 80 restore 75
#

2)查看下次启动时的配置文件

<R2>display startup 
MainBoard: 
  Startup system software:                   null
  Next startup system software:              null
  Backup system software for next startup:   null
  Startup saved-configuration file:          null
  Next startup saved-configuration file:     flash:/vrpcfg.zip
  Startup license file:                      null
  Next startup license file:                 null
  Startup patch package:                     null
  Next startup patch package:                null
  Startup voice-files:                       null
  Next startup voice-files:                  null

可以看到闪存中包含下次启动使用的文件。
3)删除闪存中的配置文件

<R2>reset saved-configuration 
This will delete the configuration in the flash memory.

The device configuratio
ns will be erased to reconfigure.

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

4)再次查看下次启动时的配置文件

<R2>display startup 
MainBoard: 
  Startup system software:                   null
  Next startup system software:              null
  Backup system software for next startup:   null
  Startup saved-configuration file:          null
  Next startup saved-configuration file:     null
  Startup license file:                      null
  Next startup license file:                 null
  Startup patch package:                     null
  Next startup patch package:                null
  Startup voice-files:                       null
  Next startup voice-files:                  null

可以看到,闪存中已经没有配置文件了。
5)重新启动设备:

<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]:y

输入“y”, 表示会将当前的配置信息保存到下次启动的配置中,意味着下次启动还会加载:

display current-configuration 

命令下的配置信息。

<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
System will reboot! Continue ? [y/n]:y
Info: system is rebooting ,please wait...

输入“n”时,才表示下次启动时不要加载当前的配置信息,此时确认重启设备后,才能恢复到初始状态,即重置。

猜你喜欢

转载自blog.csdn.net/ttwlqqj/article/details/108542920