交换机密码忘了无法登陆,保留原有配置重新配置
配置方法:
第一步:在重启交换机时按ctrl+c进入monitor模式下
第二步:在monitor模式下输入

Monitor:>copy startup maipu……………… #将配置文件备份到maipu(自己起的文件名文件)
Copy file '/flash/startup' to '/flash/maipu' :
Copying. OK.

第三步:在monitor模式下删除startup文件

Monitor:>del startup
WARNING:
The Data of file '/flash/startup' will be lost! if OS is deleted,the system will hangup!
Please confirm to continue?(Y/N)y
Deleting... OK!

第四步:重启设备。

Monitor:>reset

第五步:设备开启,将没有配置,进入特权模式下,并进入文件系统,使用type命令打开复制的maipu文件,将配置记录下来,比如复制出来保存到文本中。

router#file
router(config-fs)#dir
  size      date     time    name
------------   ------    ------  --------
43852      JUL-05-2015 15:36:16  logging      
1024       JUL-04-2015 11:10:30  tech        <DIR>
11581068     JUN-19-2015 09:06:46  rp23-i-6.4.16(R).pck 
0        JUN-19-2015 09:14:08  history      
1024       JUN-19-2015 09:15:06  snmp        <DIR>
4        JUL-05-2015 15:30:42  secret      
0        JUL-05-2015 15:30:14  backup      
2        JUL-05-2015 15:30:30  PKISTORE     
1226       JUL-05-2015 15:31:54  maipu
router(config-fs)#config-file maipu    //强制加载maipu的配置

标签: none