本文档介绍如何恢复思科路由器启用口令和启用加密口令。这些口令可对特权执行和配置模式的访问权限进行保护。启用口令可以恢复,但是启用加密口令经过了加密,必须使用新口令进行替换。
重要说明:

要在 Cisco 6400 上模拟此步骤,请将节点路由处理器 (NRP) 或节点交换机处理器 (NSP) 卡拔出,然后再插入。

要在带有 NI-2 的 Cisco 6x00 上模拟此步骤,请将 NI-2 卡拔出,然后再插入。

在启动后的 60 秒内按下终端键盘上的 Break 键,使路由器进入 ROMMON 模式。

如果中断顺序不起作用,请参阅口令恢复过程中的标准break键序列组合,获取其他键组合。

在 rommon 1> 提示符处键入 confreg 0x2142,以便从闪存启动。

此步骤将会跳过存储口令的启动配置。

在 rommon 2> 提示符处键入 reset。

路由器将会重新启动,但是会忽略保存的配置。

在每个设置问题后键入 no 或按 Ctrl-C,跳过初始设置过程。

在 Router> 提示符处键入 enable。

您将进入启用模式,此时应看到 Router# 提示符。

键入 configure memory 或 copy startup-config running-config,将非易失性 RAM (NVRAM) 复制到内存中。

重要信息:请勿键入 copy running-config startup-config 或 write。这些命令将会擦除您的启动配置。

键入 show running-config。

show running-config 命令将会显示路由器的配置。在此配置中,在所有接口下将会出现 shutdown 命令,显示当前关闭的所有接口。此外,口令(启用口令、启用加密、vty、控制台口令)可能是加密格式,也可能是未加密格式。您可重复使用未加密的口令,您必须将加密的口令更改为新口令。

键入 configure terminal。

此时将会显示 hostname(config)# 提示符。

键入 enable secret ,以更改启用加密口令。例如:

hostname(config)#enable secret cisco
在所用的每个接口上发出 no shutdown 命令。

如果发出 show ip interface brief 命令,则要使用的每个接口都应显示 up up。

键入 config-register 。其中 configuration_register_setting 的值为步骤 2 中记录的值或 0x2102。例如:

hostname(config)#config-register 0x2102
按 Ctrl-z 或 end,离开配置模式。

此时将会显示 hostname# 提示符。

键入 write memory 或 copy running-config startup-config,以提交更改。

密码恢复程序示例
本部分提供了一个口令恢复过程的示例。此示例是使用 Cisco 2600 系列路由器创建的。即使您使用的不是 Cisco 2600 系列路由器,以下输出也可为您的产品体验提供示例。

Router>enablePassword:Password:Password:% Bad secretsRouter>show versionCisco Internetwork Operating System SoftwareIOS (tm) C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)Copyright (c) 1986-1999 by cisco Systems, Inc.Compiled Tue 07-Dec-99 02:21 by phanguyeImage text-base: 0x80008088, data-base: 0x80C524F8ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)Router uptime is 3 minutesSystem returned to ROM by abort at PC 0x802D0B60System image file is "flash:c2600-is-mz.120-7.T"cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory.Processor board ID JAB031202NK (3878188963)M860 processor: part number 0, mask 49Bridging software.X.25 software, Version 3.0.0.Basic Rate ISDN software, Version 1.1.2 Ethernet/IEEE 802.3 interface(s)2 Serial(sync/async) network interface(s)1 ISDN Basic Rate interface(s)32K bytes of non-volatile configuration memory.8192K bytes of processor board System flash partition 1 (Read/Write)8192K bytes of processor board System flash partition 2 (Read/Write)Configuration register is 0x2102Router>!--- The router was just powercycled, and during bootup a !--- break sequence was sent to the router.!*** System received an abort due to Break Key ***signal= 0x3, code= 0x500, context= 0x813ac158PC = 0x802d0b60, Vector = 0x500, SP = 0x80006030rommon 1 > confreg 0x2142You must reset or power cycle for new config to take effectrommon 2 > resetSystem Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)Copyright (c) 1999 by cisco Systems, Inc.TAC:Home:SW:IOS:Specials for infoC2600 platform with 32768 Kbytes of main memoryprogram load complete, entry point: 0x80008000, size: 0x6fdb4cSelf decompressing the image : ######################################################################################################################################################################################################################################################## [OK] Restricted Rights LegendUse, duplication, or disclosure by the Government issubject to restrictions as set forth in subparagraph(c) of the Commercial Computer Software - RestrictedRights clause at FAR sec. 52.227-19 and subparagraph(c) (1) (ii) of the Rights in Technical Data and ComputerSoftware clause at DFARS sec. 252.227-7013. cisco Systems, Inc. 170 West Tasman Drive San Jose, California 95134-1706Cisco Internetwork Operating System SoftwareIOS (tm) C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)Copyright (c) 1986-1999 by cisco Systems, Inc.Compiled Tue 07-Dec-99 02:21 by phanguyeImage text-base: 0x80008088, data-base: 0x80C524F8cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory.Processor board ID JAB031202NK (3878188963)M860 processor: part number 0, mask 49Bridging software.X.25 software, Version 3.0.0.Basic Rate ISDN software, Version 1.1.2 Ethernet/IEEE 802.3 interface(s)2 Serial(sync/async) network interface(s)1 ISDN Basic Rate interface(s)32K bytes of non-volatile configuration memory.8192K bytes of processor board System flash partition 1 (Read/Write)8192K bytes of processor board System flash partition 2 (Read/Write) --- System Configuration Dialog ---Would you like to enter the initial configuration dialog? [yes/no]: nPress RETURN to get started!00:00:19: %LINK-3-UPDOWN: Interface BRI0/0, changed state to up00:00:19: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up00:00:19: %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to up00:00:19: %LINK-3-UPDOWN: Interface Serial0/0, changed state to down00:00:19: %LINK-3-UPDOWN: Interface Serial0/1, changed state to down00:00:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0/0, changed state to down00:00:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to upRouter>00:00:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to up00:00:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down00:00:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to down00:00:50: %SYS-5-RESTART: System restarted --Cisco Internetwork Operating System SoftwareIOS (tm) C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)Copyright (c) 1986-1999 by cisco Systems, Inc.Compiled Tue 07-Dec-99 02:21 by phanguye00:00:50: %LINK-5-CHANGED: Interface BRI0/0, changed state to administratively down00:00:52: %LINK-5-CHANGED: Interface Ethernet0/0, changed state to administratively down00:00:52: %LINK-5-CHANGED: Interface Serial0/0, changed state to administratively down00:00:52: %LINK-5-CHANGED: Interface Ethernet0/1, changed state to administratively down00:00:52: %LINK-5-CHANGED: Interface Serial0/1, changed state to administratively down00:00:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to down00:00:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to downRouter>Router>enableRouter#copy startup-config running-configDestination filename [running-config]?1324 bytes copied in 2.35 secs (662 bytes/sec)Router#00:01:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0/0:1, changed state to down00:01:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0/0:2, changed state to downRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#enable secret < password >Router(config)#^Z00:01:54: %SYS-5-CONFIG_I: Configured from console by consoleRouter#show ip interface briefInterface IP-Address OK? Method Status ProtocolEthernet0/0 10.200.40.37 YES TFTP administratively down downSerial0/0 unassigned YES TFTP administratively down downBRI0/0 193.251.121.157 YES unset administratively down downBRI0/0:1 unassigned YES unset administratively down downBRI0/0:2 unassigned YES unset administratively down downEthernet0/1 unassigned YES TFTP administratively down downSerial0/1 unassigned YES TFTP administratively down downLoopback0 193.251.121.157 YES TFTP up upRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface Ethernet0/0Router(config-if)#no shutdownRouter(config-if)#00:02:14: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up00:02:15: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to upRouter(config-if)#interface BRI0/0Router(config-if)#no shutdownRouter(config-if)#00:02:26: %LINK-3-UPDOWN: Interface BRI0/0:1, changed state to down00:02:26: %LINK-3-UPDOWN: Interface BRI0/0:2, changed state to down00:02:26: %LINK-3-UPDOWN: Interface BRI0/0, changed state to up00:02:115964116991: %ISDN-6-LAYER2UP: Layer 2 for Interface BR0/0, TEI 68 changed to upRouter(config-if)#^ZRouter#00:02:35: %SYS-5-CONFIG_I: Configured from console by consoleRouter#copy running-config startup-configDestination filename [startup-config]?Building configuration...[OK]Router#show versionCisco Internetwork Operating System SoftwareIOS (tm) C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)Copyright (c) 1986-1999 by cisco Systems, Inc.Compiled Tue 07-Dec-99 02:21 by phanguyeImage text-base: 0x80008088, data-base: 0x80C524F8ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)Router uptime is 3 minutesSystem returned to ROM by abort at PC 0x802D0B60System image file is "flash:c2600-is-mz.120-7.T"cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory.Processor board ID JAB031202NK (3878188963)M860 processor: part number 0, mask 49Bridging software.X.25 software, Version 3.0.0.Basic Rate ISDN software, Version 1.1.2 Ethernet/IEEE 802.3 interface(s)2 Serial(sync/async) network interface(s)1 ISDN Basic Rate interface(s)32K bytes of non-volatile configuration memory.8192K bytes of processor board System flash partition 1 (Read/Write)8192K bytes of processor board System flash partition 2 (Read/Write)Configuration register is 0x2142Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#config-register 0x2102Router(config)#^Z00:03:20: %SYS-5-CONFIG_I: Configured from console by consoleRouter#show versionCisco Internetwork Operating System SoftwareIOS (tm) C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)Copyright (c) 1986-1999 by cisco Systems, Inc.Compiled Tue 07-Dec-99 02:21 by phanguyeImage text-base: 0x80008088, data-base: 0x80C524F8ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)Router uptime is 3 minutesSystem returned to ROM by abort at PC 0x802D0B60System image file is "flash:c2600-is-mz.120-7.T"cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory.Processor board ID JAB031202NK (3878188963)M860 processor: part number 0, mask 49Bridging software.X.25 software, Version 3.0.0.Basic Rate ISDN software, Version 1.1.2 Ethernet/IEEE 802.3 interface(s)2 Serial(sync/async) network interface(s)1 ISDN Basic Rate interface(s)32K bytes of non-volatile configuration memory.8192K bytes of processor board System flash partition 1 (Read/Write)8192K bytes of processor board System flash partition 2 (Read/Write)Configuration register is 0x2142 (will be 0x2102 at next reload)Router#

分享思科Cisco12000系列路由器的口令恢复过程相关推荐

  1. Cisco系列路由器密码恢复研究与实践

    密码恢复原理 (1)Cisco路由器保存了几种不同的配置参数,并存放在不同的内存模块中.Cisco系列路由器的内存有:ROM,闪存(Flash memory),RAM,不可变RAM和动态内存(DRAM ...

  2. Cisco交换机路由器口令恢复

    我想大家会经常忘掉交换机或者路由器口令,忘记了怎么来恢复口令呢?根据笔者的一些工程经验作了一些如下的总结: 交换机口令恢复的步骤     ⒈连接交换机的console口到终端或PC仿真终端.用无Mod ...

  3. 华为ar2200series配置手册_思科ASA系列防火墙配置手册

    思科ASA系列防火墙配置手册 思科ASA系列防火墙配置手册 使用console连接线登录方法 1.使用cisco的console连接线,连接设备的console口和计算机com口(笔记本用USB转CO ...

  4. 地址池命令 思科理由_思科互联网络操作系统 ——路由器接口

    点击蓝字 关注我们 路由器接口 接口配置是最重要的路由器配置之一,因为若没有接口,路由器几乎就毫无用处.另外,要与其他设备通信,接口配置必须绝对精确.配置接口时,我们需要指定网络层地址.介质类型和带宽 ...

  5. Cisco路由器的口令恢復

    口 令 恢 复 原 理 ---- Cisco 路 由 器 保 存 了 几 种 不 同 的 配 置 参 数, 并 存放 在不 同 的 内 存 模 块 中, 介 绍 如 下: ---- ·内 部 内 存 ...

  6. 思科NXOS系列交换机(N5K,N7K,N9K)和华为CE交换机配置比对

    最近做了一个国产化替换的项目,把思科NXOS系列交换机的配置翻译分享一点出来. NXOS 备注 CE 功能 feature bash-shell feature tacacs+ cfs eth dis ...

  7. cisco 2900企业级系列路由器初始配置

    cisco 2900企业级系列路由器初始配置 最近公司拓展业务,网络部署全都交给我一个人,鸭梨山大,花了几天饿补了网络方面的知识,cisco路由器的配置做个学习笔记简单记录下. 准备工具: 笔记本一台 ...

  8. Cisco 3800系列路由器硬件故障排除

    说明:本文提供的是对思科设备的定制分析 简介 预备知识 要求 所用的组件 惯例 硬件-软件兼容性与内存要求 错误信息 Cisco 3800 系列路由器故障排除 启动顺序 模块与卡 NM−1T3/E3安 ...

  9. linux 路由器 漏洞,多个Linksys EA系列路由器信息泄露漏洞(CVE-2014-8244)

    发布日期:2014-10-31 更新日期:2014-11-04 受影响系统: Linksys EA系列路由器 EA6900 Linksys EA系列路由器 EA6700 Linksys EA系列路由器 ...

最新文章

  1. 命名实体识别NER 如何使用BERT实现
  2. android开发教程
  3. jqm的多列布局demo,html5的多列布局demo,多列布局的具体解说,html5开发实例具体解释...
  4. 自定义EventSource(三)IncrementingEventCounter
  5. 2017年网络统考计算机成绩,2017年12月江苏省成人计算机基础统考成绩查询
  6. 华为HCC2014的变与不变
  7. easyUI 之datagrid 在前端自定义排序
  8. Pandas系列(十六)快速进行日期处理
  9. 转大白话系列之C#委托与事件讲解大结局
  10. IEC61850——开山篇
  11. 【基础篇】Navicat让MySQL数据库可视化
  12. jre7或jre8或其他版本共存问题
  13. Bp算法公式推导推导-详解
  14. 请高手指点,简单的几个数组操作方法不知道是否可以有更好的改进方法或者更简单的方法?
  15. 计算机维护岗位主要职责怎么写,计算机维护岗位职责.doc
  16. python爬虫---如何爬取京东商品评论并进行数据存储
  17. 将瀚高数据库表内数据导出Excel格式
  18. 恒峰祥可信讲述拼多多电商店铺推广和商品推广有什么不同
  19. freemarker模板生成word文档踩坑记录
  20. Power Query介绍

热门文章

  1. 《气场修习术》阅读笔记
  2. 对奥卡姆剃刀(Occam’s razor)原理的思考
  3. idea terminal窗口如何删除历史命令
  4. html5 定位坐标不精准,[Web开发]Html5定位不准确问题
  5. 电脑Win7系统刷新dns缓存,输入“ipconfig /flushdns”命令后,显示无法刷新DNS解析缓存:执行期间,函数出了问题
  6. Python网络爬虫入门篇---小白必看
  7. 【成长经历】【钉钉前端】 高中毕业-如何用 15 年从小白到技术专家
  8. 字节跳动终面:35K,18薪,什么时候能入职?
  9. 如何使用Python预测机票价格
  10. CSS样式的状态hover、focus、active、link、visited详解