Cisco路由器密码恢复

编程知识 更新时间:2023-04-23 16:52:56


1


重启路由器,当出现启动过程时,不断按下Ctrl+Break键来中断路由器启动,使路由器进入rommon模式。

System Bootstrap, Version 12.4(1r) [hqluong 1r], RELEASE SOFTWARE (fc1) 

Copyright (c) 2005 by cisco Systems, Inc. 

Initializing memory for ECC 

c2821 processor with 262144 Kbytes of main memory 

Main memory is configured to 64 bit mode with ECC enabled 

Readonly ROMMON initialized 

rommon 1>


2


改变配置寄存器的值为 0x2142,这会使得路由器开机时不读取 NVRAM 中的配置文件。

rommon 1>confreg 0x2142


3


输入“i”,在rommon模式下重新启动路由器。重启后路由器空配置进入setup模式,用Ctrl+C或者回答“n”退出setup模式。

rommon 2 > i

4


将配置文件从NVRAMcopy至RAM中。

Router>enable

Router#copy startup-config running-config

5


修改running-config enable密码,如果有其他登录密码一并可以修改。

R2#configure terminal

R2(config)#enable password cisco

6


将寄存器的值恢复至0x2102,设备启动时加载NVRAM中的配置文件。

R2(config)#config-register 0x2102 

7


将当前运行配置文件保存至NVRAM中

R2(config)#exit

R2#copy running-config startup-config

8


重新启动设备,使用新密码登录设备

R2#reload

1


重启路由器,当出现启动过程时,不断按下Ctrl+Break键来中断路由器启动,使路由器进入rommon模式。

System Bootstrap, Version 12.4(1r) [hqluong 1r], RELEASE SOFTWARE (fc1) 

Copyright (c) 2005 by cisco Systems, Inc. 

Initializing memory for ECC 

c2821 processor with 262144 Kbytes of main memory 

Main memory is configured to 64 bit mode with ECC enabled 

Readonly ROMMON initialized 

rommon 1>


2


改变配置寄存器的值为 0x2142,这会使得路由器开机时不读取 NVRAM 中的配置文件。

rommon 1>confreg 0x2142


3


输入“i”,在rommon模式下重新启动路由器。重启后路由器空配置进入setup模式,用Ctrl+C或者回答“n”退出setup模式。

rommon 2 > i

4


将配置文件从NVRAMcopy至RAM中。

Router>enable

Router#copy startup-config running-config

5


修改running-config enable密码,如果有其他登录密码一并可以修改。

R2#configure terminal

R2(config)#enable password cisco

6


将寄存器的值恢复至0x2102,设备启动时加载NVRAM中的配置文件。

R2(config)#config-register 0x2102 

7


将当前运行配置文件保存至NVRAM中

R2(config)#exit

R2#copy running-config startup-config

8


重新启动设备,使用新密码登录设备

R2#reload

更多推荐

Cisco路由器密码恢复

本文发布于:2023-04-18 00:09:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/8cdcc65fe2316b871c082a07eb9a14e1.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:路由器   密码恢复   Cisco

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 84245文章数
  • 12965阅读数
  • 0评论数