<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 
路由器密码丢失的处理方法

如果路由器的特权用户密码丢失,按照如下所述步骤操作,便可以重新设置新密码:

1 、 准备一台运行仿真终端程序的PC,推荐使用ProcommWindows Hyper Terminal(超级终端)。

2 、 将PC的串口和路由器的控制台口用配套提供的扁平控制台线缆连接好。

3 、 路由器关机,重开路由器,在超级终端上按CTRL+Break键(注意在加电路由器之后迅即按下中断序列 能导致路由器被锁住,在这种情况下,需要重新关开路由器,同样,记住终端仿真程序使用不同的按键组合来产生中断序列,最流行的两大终端仿真器是超级终端和Procomm,对于超级终端应同时按下Ctrl+ Break 来产生中断序列,而Procomm则要同时按下ALT+B键。密码修复工作只能在将超级终端连到路由器控制台端口的情况下才可被执行,这些步骤在路由器的辅助端口是行不通的),使路由器进入rom监控模式,出现了boot:的提示符。

4 、 在boot:提示符,下运行setup-reg(该指令为隐含命令)回车,出现如下的选择菜单。

 

boot: setup-reg

Configuration Summary

enabled are:

console baud: 9600

do you wish to change the configuration? y/n [n]: y ⇐ 在这里输入'y'回车

enable "bypass the system configure file"? y/n [n]: y ⇐ 在这里输入y'回车,注意这里是enable, 41页 共63 [url]http://www.i-net.com.cn[/url]

⇐接下去的全部直接回车,采用缺省的应

 

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

enable "user break/abort enabled"? y/n [n]: n

change console speed? y/n [n]: n

Configuration Summary

enabled are:

bypass the system configure file

console baud: 9600

重新继续交互询问是否还需要修改参数,因为已经修改完毕,输入n回车

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

program flash location 0x2070000

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

boot:

5 、 在boot:下输入reset,重启路由器,这时路由器重启动时,将忽略NV内存中的配置信息,便不存在控制密码和使能密码了,启动路由器后直接回车,便直接进入路由器的命令提示符下。

 

At any point you may enter a question mark '?' for help.

Use ctrl-c to abort configuration dialog at any prompt.

Default settings are in square brackets '[]'.

Would you like to enter the initial configuration dialog? [yes]: n

由于忽略了配置,系统提示是否进setup交互配置模式,这里输入’n’,不进入交互配置模式

Press RETURN to get started!

Red-Giant>en

Red-Giant#

6 、 如果配置无关紧要,那么直接在特权层下运行write,然后reboot路由器便可以了,如果其中的配置还需要用到,那么可以在特权层下,执行

 

copy startup-configuration running-configuration

来完成这项任务,然后执行config term命令进入全局配置模式,运行

enable secret 0 abcde ,这里的‘abcde’便是新的密码了,完成之后可按下ctrl+Z退出全局配置模式,进入到特权用户模式,键入write 将新密码保存到NV内存中,然后reboot路由器。

7 、 重启路由器,还是按照上面步骤3的方法,进入到rom监控模式下,boot:输入setup-reg回车。

 

boot: setup-reg

Configuration Summary

enabled are:

bypass the system configure file

console baud: 9600

do you wish to change the configuration? y/n [n]: y ⇐ 在这里输入'y'回车

disable "bypass the system configure file"? y/n [n]: y

在这里输入'y'回车,注意这里是disable,而上面的是enable,下面的用缺省回答

 

enable "debug mode"? y/n [n]:n enable "user break/abort enabled"? y/n [n]:n change console speed? y/n [n]:n Configuration Summary enabled are: console baud: 9600 ⇐重新继续交互询问是否还需要修改参数,因为已经修改完毕,输入n回车 do you wish to change the configuration? y/n [n]: program flash location 0x2070000 You must reset or power cycle for new config to take effect boot: 8、 在boot:提示符号下,输入save,保存当前的bootrom的配置信息。 9、 在boot:下运行reset重启路由器,到这一步,实现了修改密码的目的,现在路由器便可以采用新的密码来工作了。