网络通信 频道

手把手教你恢复Cisco路由器密码

    Cisco2500系列路由器(以2509为例)登陆密码的恢复具体操作方法:

    1、在启动的60 秒内按下中断键Ctrl+Break,如果Break被屏蔽了可以使用循环开机的方法,使设备进入rom monitor状态。

    2、在rom monitor中输入o命令:

    >o
    configuration register=0X2102 at last boot
    ……

    记下当前的Configuration register值,这里是0x2102,通常为0x2102或0x102。如果用命令不能获得有关提示,可以查看类似的路由器来获得配置寄存器的值或用0x2102试试。

    3、输入“>o/r 0x0142”,更新Configuration register值,使路由器启动时跳过配置文件直接启动,以便原来的密码不起作用,具体操作如下:

    >o/r 0x0142

    4、重新启动路由器:

    >i
    rommon 2>reset

    5、在“Setup”模式,对所有问题回答“No”

    6、进入特权模式:

    router>enable

    7、下载NVRAM

    Router>configure memory

    8、恢复原始配置寄存器值并激活所有端口:

    2509#configure terminal
    2509(config)#configregister 0X2102
    2509(config)#interface e0/1
    2509(config)#no shutdown

    9、查询并记录丢失的口令:

    2509#show configuration (show startupconfig)

    10、修改口令:

    2509#configure terminal
    2509(config)line console 0
    2509(config line)#login
    2509(config line)#password xxxxxxx
    2509(config line)#
    2509(config line)#write memory (copy running config startupconfig)
 

0
相关文章