路由器的密码恢复

简介:
路由器的密码恢复 :
原理:启动时绕过 startup-config 的配置 (enable 密码保存在 startup-config ) ,然后重新配置 enable 密码。
如果要使路由器在启动时绕过 startup-config 的配置,只有修改配置寄存器的值。正常情况下配置寄存器的值是 0x2102==0010.0001.0 0 00.0010 ,其中第三段的第 2 个比特位可以控制路由器的启动顺序。如果该位为 0 ,则启动时候运行 startup-config 的配置,如果该位为 1 则忽略 startup-config 的配置,而进入 setup 模式。
 
从通信服务器上进入某一路由器(以二楼第一机房 6 号路由器 C2600 为例)
routerserver#r6
Trying r6 (10.0.0.1, 2006)... Open
 
关闭路由器电源再打开,然后按下 CTRL 键,不停地按 Break 键,直到出现 rommon1> 为止,使路由器进入 ROM  Moniror 模式。
System Bootstrap, Version 12.2(7r) [cmong 7r], RELEASE SOFTWARE (fc1)
Copyright (c) 2002 by cisco Systems, Inc.
C2600 platform with 131072 Kbytes of main memory
 
 
monitor: command "boot" aborted due to user interrupt
rommon 1 >
rommon 1 >
rommon 1 > confreg 0x2142       改变寄存器的值,让路由器忽略 startup-config 的配置,而进入 Setup 模式
 
 
You must reset or power cycle for new config to take effect
rommon 2 > reset     重新启动路由器
 
System Bootstrap, Version 12.2(7r) [cmong 7r], RELEASE SOFTWARE (fc1)
Copyright (c) 2002 by cisco Systems, Inc.
C2600 platform with 131072 Kbytes of main memory
 
program load complete, entry point: 0x80008000, size: 0xe688c8
Self decompressing the image : #################################################
################################################################################
################################################################################
########################## [OK]
 
Smart Init is enabled
smart init is sizing iomem
  ID            MEMORY_REQ                 TYPE
00036B          0X00103980 C2611XM Dual Fast Ethernet
                0X000F3BB0 public buffer pools
                0X00211000 public particle pools
TOTAL:          0X00408530
 
If any of the above Memory Requirements are
"UNKNOWN", you may be using an unsupported
configuration or there is a software problem and
system operation may be compromised.
Rounded IOMEM up to: 5Mb.
Using 3 percent iomem. [5Mb/128Mb]
 
              Restricted Rights Legend
 
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
 
           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706
 
 
 
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IK8O3S-M), Version 12.2(11)T,  RELEASE SOFTWARE (
fc1)
TAC Support: [url]http://www.cisco.com/tac[/url]
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Thu 01-Aug-02 12:47 by ccai
Image text-base: 0x8000809C, data-base: 0x818188F4
 
 
Compliance with U.S. Export Laws and Regulations - Encryption
 
This product performs encryption and is regulated for export
by the U.S. Government.
 
This product is not authorized for use by persons located
outside the United States and Canada that do not have prior
approval from Cisco Systems, Inc. or the U.S. Government.
 
This product may not be exported outside the U.S. and Canada
either by physical or electronic means without PRIOR approval
of Cisco Systems, Inc. or the U.S. Government.
 
Persons outside the U.S. and Canada may not re-export, resell,
or transfer this product by either physical or electronic means
without  prior approval of Cisco Systems, Inc. or the U.S.
Government.
 
cisco 2611XM (MPC860P) processor (revision 0x100) with 125952K/5120K bytes of me
mory.
Processor board ID JAD07020UQK (3078295415)
M860 processor: part number 5, mask 2
Bridging software.
X.25 software, Version 3.0.0.
2 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
32768K bytes of processor board System flash (Read/Write)
 
 
         --- System Configuration Dialog ---
 
Would you like to enter the initial configuration dialog? [yes/no]: no   不进入对话模式   退回到 EXEC 模式
 
 
Press RETURN to get started!
 
 
*Mar  1 00:00:14.046: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state t
o up
*Mar  1 00:00:14.046: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state t
o up
*Mar  1 00:00:15.048: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
et0/0, changed state to down
*Mar  1 00:00:15.048: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
et0/1, changed state to down
*Mar  1 00:00:20.613: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state
to administratively down
*Mar  1 00:00:20.613: %LINK-5-CHANGED: Interface FastEthernet0/1, changed state
to administratively down
*Mar  1 00:00:22.384: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IK8O3S-M), Version 12.2(11)T,  RELEASE SOFTWARE (
fc1)
TAC Support: [url]http://www.cisco.com/tac[/url]
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Thu 01-Aug-02 12:47 by ccai
*Mar  1 00:00:22.384: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoing
 a cold start
Router>
Router>enable   进入特权模式
Router#copy startup-config running-config   使路由器以前的配置生效,保证以前的配置不丢失。
Destination filename [running-config]?
 
702 bytes copied in 2.488 secs (282 bytes/sec)
Router#config terminal   进入全局模式
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#no enable password   删除使能密码
Router(config)#no enable secret   删除加密的使能密码
Router(config)#config-register 0x2102   把配置寄存器的值改回来,否则以后每次重新启动路由器都进入        setup 模式
Router#copy running-config startup-config  保存当前配置
Destination filename [startup-config]?
Building configuration...
[OK]
Router#reload  重新启动
Proceed with reload? [confirm]
 
*Mar  1 00:06:14.950: %SYS-5-RELOAD: Reload requested by console.
System Bootstrap, Version 12.2(7r) [cmong 7r], RELEASE SOFTWARE (fc1)
Copyright (c) 2002 by cisco Systems, Inc.
C2600 platform with 131072 Kbytes of main memory
 
program load complete, entry point: 0x80008000, size: 0xe688c8
Self decompressing the image : #################################################
################################################################################
################################################################################
########################## [OK]
 
Smart Init is enabled
smart init is sizing iomem
  ID            MEMORY_REQ                 TYPE
00036B          0X00103980 C2611XM Dual Fast Ethernet
                0X000F3BB0 public buffer pools
                0X00211000 public particle pools
TOTAL:          0X00408530
 
If any of the above Memory Requirements are
"UNKNOWN", you may be using an unsupported
configuration or there is a software problem and
system operation may be compromised.
Rounded IOMEM up to: 5Mb.
Using 3 percent iomem. [5Mb/128Mb]
 
              Restricted Rights Legend
 
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
 
           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706
 
 
 
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IK8O3S-M), Version 12.2(11)T,  RELEASE SOFTWARE (
fc1)
TAC Support: [url]http://www.cisco.com/tac[/url]
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Thu 01-Aug-02 12:47 by ccai
Image text-base: 0x8000809C, data-base: 0x818188F4
 
 
Compliance with U.S. Export Laws and Regulations - Encryption
 
This product performs encryption and is regulated for export
by the U.S. Government.
 
This product is not authorized for use by persons located
outside the United States and Canada that do not have prior
approval from Cisco Systems, Inc. or the U.S. Government.
 
This product may not be exported outside the U.S. and Canada
either by physical or electronic means without PRIOR approval
of Cisco Systems, Inc. or the U.S. Government.
 
Persons outside the U.S. and Canada may not re-export, resell,
or transfer this product by either physical or electronic means
without  prior approval of Cisco Systems, Inc. or the U.S.
Government.
 
cisco 2611XM (MPC860P) processor (revision 0x100) with 125952K/5120K bytes of me
mory.
Processor board ID JAD07020UQK (3078295415)
M860 processor: part number 5, mask 2
Bridging software.
X.25 software, Version 3.0.0.
2 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.
32768K bytes of processor board System flash (Read/Write)
 
 
 
Press RETURN to get started!
 
 
*Mar  1 00:00:13.942: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state t
o up
*Mar  1 00:00:13.942: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state t
o up
*Mar  1 00:00:15.132: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
et0/0, changed state to down
*Mar  1 00:00:15.132: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
et0/1, changed state to down
*Mar  1 00:00:16.610: %SYS-5-CONFIG_I: Configured from memory by console
*Mar  1 00:00:17.924: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state
to administratively down
*Mar  1 00:00:17.928: %LINK-5-CHANGED: Interface FastEthernet0/1, changed state
to administratively down
*Mar  1 00:00:20.424: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IK8O3S-M), Version 12.2(11)T,  RELEASE SOFTWARE (
fc1)
TAC Support: [url]http://www.cisco.com/tac[/url]
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Thu 01-Aug-02 12:47 by ccai
*M
 
User Access ar  1 00:00:20.424: %SNMP-5-COLDSTART: SNMP agent on host Router is
undergoing a cold startVerification


本文转自凌激冰51CTO博客,原文链接:http://blog.51cto.com/dreamfire/98101,如需转载请自行联系原作者
相关文章
|
7月前
|
人工智能 自然语言处理 机器人
一键部署开源DeepSeek并集成到钉钉
DeepSeek发布了两款先进AI模型V3和R1,分别适用于对话AI、内容生成及推理任务。由于官方API流量限制,阿里云推出了私有化部署方案,无需编写代码即可完成部署,并通过计算巢AppFlow集成到钉钉等渠道。用户可独享资源,避免服务不可用问题。部署步骤包括选择机器资源、配置安全组、创建应用与连接流,最终发布应用版本,实现稳定高效的AI服务。
599 4
一键部署开源DeepSeek并集成到钉钉
|
域名解析 网络协议 调度
阿里云移动研发平台EMAS支持纯血鸿蒙HarmonyOS NEXT
阿里云移动研发平台EMAS作为面向应用全生命周期提供一站式的应用研发管理服务产品,其核心产品包括云构建,HTTPDNS 和移动推送正式推出了针对纯血鸿蒙的SDK版本,将为广大开发者在鸿蒙生态中构建高效、稳定、可靠的企业级应用提供强有力的支持。如有疑问,请进入钉钉群(群号35248489)进行相关咨询。
|
算法 安全 Java
数据库如何合理生成主键:UUID、雪花算法
1.使用自增主键的弊端 首先在实际工程中我们很少用1,2,3......这样的自增主键,原因如下: 主键冲突 性能问题 安全问题 主键冲突: 比如我要跨数据库进行数据同步、或者在分布式系统中跨“分区”进行数据同步,不难想象,1,2,3......这种递增的单数字是极容易产生冲突的。
603 0
|
文字识别 监控 安全
《钉钉连接平台速成手册》全新发布!
钉钉连接平台,通过简单的低代码配置,帮助企业迅捷实现系统集成和连接。原本应用之间的连接需要技术人员去开发才能实现,通过连接平台,非专业技术同学也能够通过简单的低代码或者零代码的方式就实现应用互联互通,帮助企业降低集成实施的周期和成本。
1094 1
《钉钉连接平台速成手册》全新发布!
|
网络协议 C++ Docker
Docker pull拉取镜像报错“Error response from daemon: Get "https://registry-1.docker.io/v2”解决办法
Docker pull拉取镜像报错“Error response from daemon: Get "https://registry-1.docker.io/v2”解决办法
51529 1
|
Java API
开发利器Hutool之MapUtil的使用
开发利器Hutool之MapUtil的使用
2366 0
开发利器Hutool之MapUtil的使用
调用bios喇叭发声
话不多说,上代码:   #include #include #include using namespace std; const int DO = 261; const int RE = 293; const int MI = 329; const int FA...
1050 0
|
分布式计算 Java Maven
Spark Getting started
Getting Started Stopping the server Routes Request Response Query Maps Cookies Sessions Halting Filters Redirects Exception Mapping Static files ...
970 0