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


  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值