路由器密码恢复

cisco路由器密码恢复
实验环境packet tracert
 
//配置密码
Router#config ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#enab
R1(config)#enable se
R1(config)#enable secret cisco_old
R1(config)#end
%SYS-5-CONFIG_I: Configured from console by console
R1#wr
Building configuration...
[OK]
R1#
 
//进入ROMMON恢复密码(ctrl+break)
#############################
monitor: command "boot" aborted due to user interrupt
rommon 1 > confreg 0x2142
rommon 2 > boot
System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
Copyright (c) 2000 by cisco Systems, Inc.
cisco 2811 (MPC860) processor (revision 0x200) with 60416K/5120K bytes of memory
Self decompressing the image :
##################
 
 

Continue with configuration dialog? [yes/no]: n

Press RETURN to get started!
 
Router>
Router>en
Router#copy start
Router#copy startup-config run
Router#copy startup-config running-config   //加载启动配置
Destination filename [running-config]?
495 bytes copied in 0.416 secs (1189 bytes/sec)
%SYS-5-CONFIG_I: Configured from console by console
R1#config ter
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#en
R1(config)#enab
R1(config)#enable se
R1(config)#enable secret cisco_new  //修改配置中的密码
R1(config)#end
%SYS-5-CONFIG_I: Configured from console by console
R1#wr
Building configuration...     //写入配置文件
[OK]
R1#config ter
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#config-re
R1(config)#config-register 0x2102    //改回寄存器值
R1(config)#

本文出自 “学习中” 博客,谢绝转载!

你可能感兴趣的:(职场,恢复,密码,路由器,休闲)