在特权模式书写命令

router#erase startup-config  恢复出厂设置

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

[OK]

Erase of nvram: complete

%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram

router#reload    重启系统

恢复出厂设置完成了