任务 5:恢复路由器到出厂设置
步骤 1:使用 erase 命令,清空 R1 的 startup-config
R1#erase startup-config Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] 按下回车 [OK] Erase of nvram: complete
步骤 2:使用 reload 命令重启 R1
R1#reload System configuration has been modified. Save? [yes/no]: no //如果出现这个提问,选择 NO Proceed with reload? [confirm] //按下回车键
步骤 3:等待 R1 的重启,待 R1 重启后,会看到以下提问,说明 R1 的配置是空的(初始化)
--- System Configuration Dialog --- Would you like to enter the initial configuration dialog? [yes/no]: % Please answer 'yes' or 'no'.
步骤 4:清空 R2 的 startup-config 并重启,使 R2 也回到出厂设置
R2#erase startup-config Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] 按下回车 [OK] Erase of nvram: complete R2#reload System configuration has been modified. Save? [yes/no]: no //如果出现这个提问,选择 NO Proceed with reload? [confirm] //按下回车键 ................. ................. ................. --- System Configuration Dialog --- Would you like to enter the initial configuration dialog? [yes/no]: % Please answer 'yes' or 'no'.