stcaac 发表于 2018-7-21 09:32:46

cisco路由器一般密码恢复

  第一步:用物理线连接 Router Console 口。
  第二步:记录配置登记值,通常为 0x2102。
  第三步:重启路由器,同时按 Ctrl+Break,发出Break 信号,进入boot
  mode(硬件重启)。
  第四步:修改配置登记值为0x2142。
  第五步:重启路由器。
  第六步:此时路由器的配置登记值为 0x2142,路由器启动时不会自动加载
  NVRAM 中的配置文件,所以需要手工把 NVRAM中的配置文件 copy到
  运行配置中。
  第七步:进入全局配置模式,把原密码删除。
  第八步:设置新密码。
  第九步:在全局配置模式下把配置登记值修改回默认值 0x2102。
  第十步:保存重启。
  1. 查看默认的配置登记值:
  Router>show version (查看版本及配置登记值)
  Cisco Internetwork Operating System Software

  IOS (tm) 2500 Software (C2500-I-L), Version 12.1(27b),>  (fc1)
  Copyright (c) 1986-2005 by cisco Systems, Inc.
  Compiled Tue 16-Aug-05 22:38 by pwade
  Image text-base: 0x03041FDC, data-base: 0x00001000

  ROM: System Bootstrap, Version 5.2(8a),>
  BOOTLDR: 3000 Bootstrap Software (IGS-RXBOOT), Version 10.2(8a),>  SOFTWARE (fc1)
  Router uptime is 45 minutes
  System returned to ROM by power-on
  System image file is "flash:c2500-i-l.121-27b.bin"
  cisco 2500 (68030) processor (revision L) with 14336K/2048K bytes of

  Processor board>  Bridging software.
  X.25 software, Version 3.0.0.
  2 Ethernet/IEEE 802.3 interface(s)
  2 Serial network interface(s)
  32K bytes of non-volatile configuration memory.
  8192K bytes of processor board System flash (Read ONLY)
  Configuration register is 0x2102 (当前配置登记值,记住这个值!)
  2. 在路由器上创建密码:
  Router>enable
  Router#configure terminal
  Router(config)#enable secret cisco
  Router(config)#line console 0
  Router(config-line)#password cisco
  Router(config-line)#login
  Router(config-line)#end
  Router#exit
  Password:
  此时路由器上已经设置了密码,假如我们忘记了密码,无法登陆路由器。
  3. 请断开电源,然后加电。加电的同时请按住键盘上的 Ctrl+Break 即可
  进入到下面的模式:

  System Bootstrap, Version 5.2(8a),>  Copyright (c) 1986-1995 by cisco Systems
  2500 processor with 14336 Kbytes of main memory
  Abort at 0x1050B40 (PC)
  >_
  4. 在提示符>后输入 o/r 0x2142 修改配置登记值:
  >o/r 0x2142
  注意:(2600 系列以上路由器命令有所不同:
  rommon 1>confreg 0x2142
  5. 重启路由器:
  >init
  注意:(2600 系列以上路由器命令有所不同:
  rommon 1>reset)
  6. 进入系统后,把NVRAM 中配置 copy 回运行配置
  Router#copy startup-config running-config
  7. 进入全局配置模式,把原密码删除:
  Router(config)#no enable secret
  8. 设置新密码,配置登记值修改回默认值,保存
  Router(config)#enable secret CISCO
  Router(config)#config-register 0x2102
  Router#copy running-config startup-config
  Router#reload
页: [1]
查看完整版本: cisco路由器一般密码恢复