快速业务通道

部分Cisco路由器口令的恢复

作者 佚名技术 来源 网络技术 浏览 发布时间 2012-07-01
 

Contents

    Description

    Step-by-Step Procedure



    Related Information

Description

This document describes the password recovery procedure for the following Cisco products:

  • Cisco 2000
  • Cisco 2500
  • Cisco 3000
  • Cisco 4000
  • Cisco AccessPro
  • Cisco 7000 (RP)
  • Cisco AGS
  • Cisco IGS
  • Cisco STS-10x

Step-by-Step Procedure

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

    No flow control

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

  1. 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.

  2. Using the switch, turn off the router and then turn it on.
  3. Press Break on the terminal keyboard within 60 seconds of the powerup to put the router into ROMMON.
  4. Type o/r 0x2142 at the > prompt to boot from Flash without loading the configuration.
  5. Type i at the > prompt.

    The router reboots but ignores its saved configuration.

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

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

  8. Important Type config mem or copy start running to copy the nonvolatile RAM (NVRAM) into memory. Do not type config term.
  9. 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.

  10. Type config term and make the changes.

    The prompt is now hostname(config)#.

  11. Type enable secret <password>.
  12. 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".
  13. Type config-register 0x2102, or the value you recorded in step 2.
  14. Press Ctrl-z to leave the configuration mode.

    The prompt is now hostname#.

  15. Type write mem or copy running startup to commit the changes.

Example of Password Recovery on a Cisco 2500

The example shown here is password recovery on a Cisco 2500.

Router>en

Password:

Password:

Password:

% Bad secrets

Router>show version

Cisco Internetwork Operating System Software

IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(7)T,  RELEASE SOFTWARE (fc2)

Copyright (c) 1986-1999 by cisco Systems, Inc.

Compiled Mon 06-Dec-99 17:10 by phanguye

Image text-base: 0x0306C4E0, data-base: 0x00001000

ROM: System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE

BOOTFLASH: 3000 Bootstrap Software (IGS-RXBOOT), Version 10.2(8a), RELEASE SOFTWARE (fc1)

Router uptime is 5 minutes

System returned to ROM by power-on

System image file is "flash:/c2500-js-l.120-7.

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多
上一篇: 路由器基础知识下一篇: 网络协议

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号