3778560 bytes available (3962880 bytes used) 4) 重启交换机 switch: boot 5) 当出现问你是否进行配置时,选择NO(因为它找不到配置文件config.text文件了) Would you like to enter the initial configuration dialog? [yes/no]:no 6) 从用户模式登录特权模式,无需密码。 Switch>en Switch# 7) 恢复刚才重命令的配置文件名. Switch#ren flash:config.old flash:config.text Destination filename [config.text]?直接回车 8) 用老的配置文件替换当前的配置文件。 Switch#copy flash:config.text system:running-config Destination filename [running-config]?直接回车 % Login disabled on line 1, until 'password' is set % Login disabled on line 2, until 'password' is set % Login disabled on line 3, until 'password' is set % Login disabled on line 4, until 'password' is set % Login disabled on line 5, until 'password' is set % Login disabled on line 6, until 'password' is set % Login disabled on line 7, until 'password' is set % Login disabled on line 8, until 'password' is set % Login disabled on line 9, until 'password' is set % Login disabled on line 10, until 'password' is set % Login disabled on line 11, until 'password' is set % Login disabled on line 12, until 'password' is set % Login disabled on line 13, until 'password' is set % Login disabled on line 14, until 'password' is set % Login disabled on line 15, until 'password' is set % Login disabled on line 16, until 'password' is set 1531 bytes copied in 2.364 secs (765 bytes/sec) 9) 修改使用密码。 Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#en secret adm0509 Switch(config)# 10) 重启交换机,密码已被改成adm0509. Switch#reload Proceed with reload? [confirm]