根据这篇文章,我可以使用erase nvram:
andreload
命令删除当前的启动配置文件并将路由器恢复到出厂默认设置。
https://www.oreilly.com/library/view/cisco-ios-cookbook/0596527225/ch01s06.html
R1#erase ?
/all Erase all files(in NVRAM)
/no-squeeze-reserve-space Do not reserve space for squeeze operation
flash: Filesystem to be erased
nvram: Filesystem to be erased
pram: Filesystem to be erased
slot0: Filesystem to be erased
startup-config Erase contents of configuration memory
R1#erase nvram: ?
<cr>
R1#erase nvram:
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
R1#
*Mar 1 00:07:24.891: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
R1#
我也试过erase startup-config
了reload
问题是在那之后什么都没有发生。它只是在输入命令后立即停止响应reload
。
R1#reload
Proceed with reload? [confirm]
如上面的链接所示(或仅参考下面的示例),我没有得到任何提示继续重新加载。
Router1#reload
System configuration has been modified. Save? [yes/no]: no
Proceed with reload? [confirm]<enter>