删除配置及重启路由器
要删除启动配置,我们可使用命令erase startup-config:
Todd#erase startup-config
Erasing the nvram filesystem will remove all configuration files!
Continue? [confirm][enter]
[OK]
Erase of nvram:complete
Todd#
*Feb 28 23:51:21.179:%SYS-7-NV_BLOCK_INIT:Initialized the geometry of nvram
Todd#sh startup-config
startup-config is not present
Todd#reload
Proceed with reload? [confirm]System configuration has been modified.
Save? [yes/no]:n
执行命令erase startup-config后,如果重启路由器(或断电后再通电),我们将进入设置模式,因为NVRAM中没有保存任何配置。我们可随时按Ctrl+C退出设置模式(命令reload只能在特权模式下执行)