Cisco交换机4506/4006密码恢复详细过程

简介:

步骤:

1、  打开45交换机的电源后,出现提示后按住键盘上的“CtrlC”5秒。然后进入系统ROM moniter状态(ROMmon)


! Here, you power cycle the switch.


**********************************************************


* Welcome to ROM Monitor for WSX4014 System. *


* Copyright (c) 19992000, 2001 by Cisco Systems, Inc. *


* All rights reserved. *


**********************************************************


ROM Monitor Program Version 12.1(10r)EY(1.21)


Board type 1, Board revision 7


Swamp FPGA revision 16, Dagobah FPGA revision 43


Timer interrupt test passed.


MAC Address : 0002b983affe


IP Address : 172.16.84.122


Netmask : 255.255.255.0


Gateway : 172.16.84.1


TftpServer : Not set.


Main Memory : 256 MBytes


***** The system will autoboot in 5 seconds *****


Type controlC to prevent autobooting.


! At this point, press Ctrl+C.


Autoboot cancelled......... please wait!!!


Autoboot cancelled......... please wait!!!


rommon 1 > [interrupt]


! The module ended in the ROMmon.


rommon 1 > [interrupt]




2、  进入了ROMmon模式后使用命令“confreg”进入系统恢复阶段。


    rommon 1 > confreg


Configuration Summary :


=> load ROM after netboot fails


=> console baud: 9600


=> autoboot from: commands specified in 'BOOT' environment variable


do you wish to change the configuration? y/n [n]: y


enable "diagnostic mode"? y/n [n]: n


enable "use net in IP bcast address"? y/n [n]: n


disable "load ROM after netboot fails"? y/n [n]: n


enable "use all zero broadcast"? y/n [n]: n


enable "break/abort has effect"? y/n [n]: n


enable "ignore system config info"? y/n [n]: y


change console baud rate? y/n [n]: n


change the boot characteristics? y/n [n]: n


Configuration Summary :


=> load ROM after netboot fails


=> ignore system config info


=> console baud: 9600


=> autoboot from: commands specified in 'BOOT' environment variable


do you wish to save this configuration? y/n [n]: y


You must reset or power cycle for new configuration to take effect




如果当你在“ignore system config info”时选择了Y,系统已经将寄存器值修改为0x2142,无需下面那一步了。


rommon 1 >confreg 0x2142


You must reset or power cycle for the new configuration to take effect




3、 修改寄存器值以后使用命令“reset”从新启动引擎。


   rommon 2 > reset


Resetting .......


rommon 3 >




当系统从新启动以后,你进入交换机后模式的提示符就成为了“Switch>



通过使用命令“Switch#show version”来查看现在的寄存器值是否修改成功。


Switch#show version


----看看是不是有下面这一行


Configuration register is 0x2142


此时交换机的配置为空,使用命令“Switch#show startupconfig”查看曾经的配置。


此时可以看到密码和原先的设备配置情况。可以进行保存作为原始配置的备份




4、 当查看寄存器值和配置备份后我们就可以进行下一步的操作了。


使用命令configure memory来保存startup-config中的内容到running-config中。


Switch#configure memory


Uncompressed configuration from 1307 bytes to 3014 bytes


00:13:52: %SYS5CONFIG_I: Configured from memory by console


c4006SUPIII#


同样可以使用命令“copy startupconfig runningconfig”把原先的配置拷贝到现在的running-config中。




5、  此时就可以删除原来的密码了。


Switch (config)#no enable password




6、 删除密码后需要恢复原来的寄存器值。最后保存配置就可以了


 c4006SUPIII(config)#configregister 0x2102


   c4006SUPIII#write memory 保存


7、最后使用“show version”命令来检查修改后的寄存器值是否修改回去了。、


     c4006SUPIII#show version


! 看看是不是有下面这一行



Configuration register is 0x2142 (will be 0x2102 at next reload)


c4006SUPIII#


最后从新启动系统,还原初始的寄存器值。


本文转自gaodi2002 51CTO博客,原文链接:http://blog.51cto.com/gaodi2002/1618215


相关文章
|
5月前
|
算法 网络协议 Linux
【Cisco Packet Tracer】交换机的自学习算法
【Cisco Packet Tracer】交换机的自学习算法
160 0
|
网络架构
交换机与路由器技术-10-交换机密码恢复
交换机与路由器技术-10-交换机密码恢复
49 0
|
2月前
|
数据安全/隐私保护
锐捷交换机Console密码忘了,怎么破?
锐捷交换机Console密码忘了,怎么破?
111 0
锐捷交换机Console密码忘了,怎么破?
|
5月前
|
网络协议 Linux 网络架构
【Cisco Packet Tracer】集线器和交换机区别
【Cisco Packet Tracer】集线器和交换机区别
180 1
|
12月前
|
算法 网络虚拟化 C语言
【Cisco Packet Tracer】交换机划分Vlan实验
文章目录 一、前期准备 二、实验要求 三、搭建局域网 四、配置pc端的ip 五、配置VLAN 六、设置端口模式trunk 七、PING检验是否通路
|
存储 数据安全/隐私保护 网络架构
路由器设备管理 以及 交换机、路由器 密码设置与恢复
一、路由器硬件概述 如同计算机一样,路由器也是由各种各样的硬件组成的,并且每个硬件所具备的功能各不相同。
230 0
|
网络虚拟化 iOS开发
计算机网络实验(思科模拟器Cisco Packet Tracer)——交换机配置以及虚拟局域网VLAN
计算机网络实验(思科模拟器Cisco Packet Tracer)——交换机配置以及虚拟局域网VLAN
计算机网络实验(思科模拟器Cisco Packet Tracer)——交换机配置以及虚拟局域网VLAN
|
Linux 数据安全/隐私保护
光纤交换机忘记密码
修改密码后忘记
217 0
|
数据安全/隐私保护 网络虚拟化 网络架构
|
3月前
|
网络安全 数据安全/隐私保护 网络虚拟化
下一篇
无影云桌面