|
cisco路由器的密码恢复 要求:1.掌握 cisco 路由器密码恢复
拓扑:
http://img2.51cto.com/attachments/month_1112/20111219_cd9e64be4352163f488fn6zM2bl5zg9A.jpg
配置:
1.在路由重启时,按下ctrl+break键,进入rommon模式
System Bootstrap, Version 12.2(7r) [cmong 7r],>
Copyright (c) 2002 by cisco Systems, Inc.
C2600 platform with 131072 Kbytes of main memory
PC = 0xfff0ac3c, Vector = 0x500, SP = 0x8000438c
monitor: command "boot" aborted due to user interrupt
rommon 1 >
2. 在rommon模式下,修改寄存值为0x2142
rommon 1 > confreg 0x2142
3.重启路由器,使修改后的寄存值生效
rommon 2 > reset
4.进入路由器的手工配置模式
Would you like to enter the initial configuration dialog? [yes/no]: no
Router>enable
Router#
5.将NVRAM中的startup-config文件copy至running-config中
Router#copy startup-config running-config
Destination filename [running-config]?
988 bytes copied in 2.600 secs (380 bytes/sec)
device-RT1#
6.进入全局模式,修改用户模式进入特权模式的密码
device-RT1#configure terminal
device-RT1(config)#enable password cisco
7.将寄存值还原成0x2102
device-RT1(config)#config-register 0x2102
8.保存配置文件
device-RT1#copy running-config startup-config
注:2500系列路由器的寄存值修改命令为 o/r 0x2142 ,重启命令为 i 。
cisco交换机的密码恢复
要求:1.掌握 cisco 交换机密码恢复
拓扑:
http://img2.51cto.com/attachments/month_1112/20111219_a67f43af040649b2dc08ICkkd5EyD4Ph.jpg |
|
|