一、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
二、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,重启
三、输入上述两个命令后,路由器恢复出厂设置。
补:清除某端口配置,全局模式下clear configuration interface g0/0/x