Cisco路由器口令恢复800

发布者:上海IT外包来源:http://www.lanmon.net点击数:3261

Password Recovery Procedure

for the Cisco 800

Description

This document describes the password recovery procedure for the Cisco 800.

Step-by-Step Procedure

  1. Attach a terminal or PC with terminal emulation to the console port of the router. Use the following terminal settings:

    9600 baud rate
    No parity
    8 data bits
    1 stop bit

    The required console cable specifications are described in Cabling Guide for RJ-45 Console and AUX Ports (Cisco's 1000 series, 2500 series, and AS5100).

  2. Type show version and record the setting of the configuration register. Click here to see output of a show version command.

    The configuration register setting is usually 0x2102 or 0x102.

  3. Using the switch, turn off the router and then turn it on.
  4. Press Break on the terminal keyboard within 60 seconds of the powerup to put the router into ROMMON.

    If the break sequence doesn't work, see Possible Key Combinations for Break Sequence During Password Recovery for other key combinations.

  5. Type set ios-conf = 142 at theboot#prompt.

    If Flash is intact, the best setting is 0x42.

    If the Flash is not installed or is erased, use the 0x41 setting. Note that with this setting you can view or erase the configuration but cannot change the password.

  6. Type boot at theboot#>prompt to initialize the router.

    The router reboots but ignores its saved configuration.

  7. Type no after each setup question or press Ctrl-C to skip the initial setup procedure.
  8. Type enable at theRouter>prompt.

    You'll be in enable mode and see theRouter#prompt.

  9. Important Type config mem or copy start running to copy the nonvolatile RAM (NVRAM) into memory. Do not type config term.
  10. Type wr term or show running.

    The show running and wr term commands show the configuration of the router. In this configuration you see under all the interfaces the shutdown command, which means all interfaces are currently shutdown. Also, you can see the passwords either in encrypted or unencrypted format.

  11. Type config term and make the changes.

    The prompt is nowhostname(config)#.

  12. Type enable secret <password>.
  13. Issue the no shutdown command on every interface that is used. If you issue a show ip interface brief command, every interface that you want to use should be "up up".
  14. Type config-register 0x2102, or the value you recorded in step 2.
  15. Press Ctrl-z to leave the configuration mode.

    The prompt is nowhostname#.

  16. Type write mem or copy running startup to commit the changes.
    Router>show version Cisco Internetwork Operating System Software
    IOS (tm) C800 Software (C800-Y6-MW), Version 12.1(1), RELEASE SOFTWARE (fc1)
    Copyright (c) 1986-2000 by cisco Systems, Inc.
    Compiled Tue 14-Mar-00 16:01 by cmong
    Image text-base: 0x000EA000, data-base: 0x005D3000
    
    ROM: TinyROM version 1.0(3)
    Router uptime is 2 days, 3 hours, 8 minutes
    System returned to ROM by power-on
    System image file is "flash:c800-y6-mw.121-1"
    
    Cisco C801 (MPC850) processor (revision 0) with 51428K bytes of virtual memory.
    Processor board ID JAD03050229
    CPU part number 33
    Bridging software.
    Basic Rate ISDN software, Version 1.1.
    1 Ethernet/IEEE 802.3 interface(s)
    1 ISDN Basic Rate interface(s)
    12M bytes of physical memory (DRAM)
    8K bytes of non-volatile configuration memory
    8M bytes of flash on board (4M from flash card) Configuration register is 0x2102 !--- The router was just powercycled and during
    bootup a break sequence was sent to the router. TinyROM version 1.0(3)
    Fri Apr 30 18:22:12 1999
    Copyright (c) 1998-1999 by cisco Systems, Inc.
    All rights reserved.
    
    POST ......... OK. 12MB DRAM, 8MB Flash.
    
    boot# set ios-conf = 142 boot# boot Booting "c800-y6-mw.121-1" ...,
            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) C800 Software (C800-Y6-MW), Version
    12.1(1), RELEASE SOFTWARE (fc1)
    Copyright (c) 1986-2000 by cisco Systems, Inc.
    Compiled Tue 14-Mar-00 16:01 by cmong
    Image text-base: 0x000EA000, data-base: 0x005D3000
    
    Cisco C801 (MPC850) processor (revision 0) with 51428K bytes of virtual memory.
    Processor board ID JAD03050229
    CPU part number 33
    Bridging software.
    Basic Rate ISDN software, Version 1.1.
    1 Ethernet/IEEE 802.3 interface(s)
    1 ISDN Basic Rate interface(s)
    12M bytes of physical memory (DRAM)
    8K bytes of non-volatile configuration memory
    8M bytes of flash on board (4M from flash card)
    
    
        --- System Configuration Dialog ---
    
    Would you like to enter the initial configuration dialog? [yes/no]: n Press RETURN to get started! (press Enter)  00:01:45: %SYS-5-RESTART: System restarted --
    Cisco Internetwork Operating System Software
    IOS (tm) C800 Software (C800-Y6-MW), Version 12.1(1), RELEASE SOFTWARE (fc1)
    Copyright (c) 1986-2000 by cisco Systems, Inc.
    Compiled Tue 14-Mar-00 16:01 cmong
    00:01:45: %LINK-5-CHANGED: Interface BRI0, changed state to administratively down 
    00:01:45: %LINK-5-CHANGED: Interface Ethernet0, changed state to administratively down 
    00:01:46: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0, changed state to down 
    00:01:46: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to down 
    Router>en Router#copy start run Destination filename [running-config]? (press Enter) 2010 bytes copied in 32.120 secs (62 bytes/sec)
    Router#
    Router#
    00:02:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0:1, changed state to down
    00:02:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0:2, changed state to down
    Router#conf t Enter configuration commands, one per line. End with CNTL/Z.
    Router(config)#enable secret cisco Router(config)#
    00:03:39: %SYS-5-CONFIG_I: Configured from console by console
    
    Router#sh ip int brief Interface   IP-Address      OK?    Method   Status                 Protocol
    BRI0        unassigned      YES    TFTP     administratively down  down
    BRI0:1      unassigned      YES    unset    administratively down  down
    BRI0:2      unassigned      YES    unset    administratively down  down
    Dialer0     unassigned      YES    TFTP     up                     up 
    Dialer1     192.168.32.1    YES    TFTP     up                     up
    Ethernet0   10.200.40.65    YES    TFTP  administratively down down
    Router#conf t Enter configuration commands, one per line. End with CNTL/Z.
    Router(config)#int e 0 Router(config-if)#no shut Router(config-if)#
    00:04:02: %LINK-3-UPDOWN: Interface Ethernet0, changed state to up
    00:04:03: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to up
    Router(config)#config-reg 0x2102 Router(config)#^Z Router#
    00:04:36: %SYS-5-CONFIG_I: Configured from console by console
    Router#write mem

说明:
以上典型配置有很多已经是厂商停产产品,但是,不少设备往往还有运行,关于该设备的配置或者方案优化,你可以联系蓝盟,我们的资深工程师会给你意外的惊喜!上海蓝盟网络技术有限公司于2002年成立,业务涵盖IT外包、电脑维护、网络维护、网管外包、驻场服务、人员派驻、应急支持、系统集成、网络搬迁、网络升级、数据备份、综合布线、电脑维修、计算机维护、计算机维修,网络改造、网络整理、网络调试、局域网组建、 应急上门、数据恢复、网络咨询、服务管理、运维咨询、ITIL培训、ITSS咨询等,拥有近200名工程师,正在为近500家客户提供“一站式” 的IT外包服务。网址:www.lanmon.com www.lanmon.net 官方微博:http://weibo.com/lanmon2012 咨询电话:4008200159 蓝色学苑:www.bluestudy.net
IT外包
>
400-635-8089
立即
咨询
电话咨询
服务热线
400-635-8089
微信咨询
微信咨询
微信咨询
公众号
公众号
公众号
返回顶部