如果是接触旧的思科交换机或者一时间忘记密码无法登陆到设备里面的时候,你就需要对其进行密码恢复/破解。首先确保你能物理上接触到该设备,并用自己的笔记本连接到设备的Console口。不同设备恢复过程有少许不一样。(思科路由器密码恢复请看这里)
思科交换机密码恢复
- 拔下交换机电源,按住交换机面板上“Mode” 键,插上电源。交换机重启进入控制台模式,提示符为“switch:”
- switch: flash_init,初始化flash文件系统
- switch: load_helper,启动交换机助手,个人认为打了这个命令也没用,囧。
- switch: dir flash: ,显示flash中的文件信息,默认会出现config.text配置文件
- switch: rename flash:config.text flash:config.old,重命名配置文件,下次重启flash就不加载旧的配置信息了
- switch: reboot,重启交换机
- switch>enable ,进入特权模式
- switch#rename flash:config.old flash:config.text,把配置文件名修改回来
- switch#copy flash:config.text running-config,将配置文件加载入RAM中
- Switch#config terminal,进入全局配置模式
- switch(config)#no enable secret,去除密码,这部可根据需要,修改console密码,telnet密码等
- Switch(config)#end
- Switch#copy running-config startup-config,写存
做完后可重启交换机进行验证。
文章评论