路由器密码重置

关闭路由器电源,开启后60S内,按CTRL+C 组合键进入monitor模式

Self decompressing the image :


############          


monitor: command "boot" aborted due to user interrupt


rommon 1 > 

进入之后使用命令confreg修改寄存器的值

rommon 2 > confreg 0x2142

使用reset命令重启

rommon 3 > reset

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 :

########################################################################## [OK]
 
重启完成后,进入特权模式将配置文件导入到内存
 
Router#copy startup-config running-config

Destination filename [running-config]?
 
514 bytes copied in 0.416 secs (1235 bytes/sec)

Router#
 
此时已经可不用密码进入全局配置模式,使用enable password 来更改密码
 
Router(config)#enable  password abc123
 
退出到特权模式 将内存写入到配置文件
Router#copy running-config startup-config

Destination filename [startup-config]?

Building configuration...

[OK]
关闭路由器电源,再次进入monitor模式,将寄存器的值改回原来的值
 
rommon 2 > confreg 0x2102

rommon 3 > reset
 
重启后便可用修改后的密码进入路由器全局配置模式

 

posted @ 2018-06-07 17:31  knightysa  阅读(367)  评论(0编辑  收藏  举报