LoveUnix » 网络 & 安全 » 路由器口令恢复
让LU留住您的每

一天 让LU博客留住您的每一天
2004-5-10 11:07 无花果
Password Recovery Procedure<br />for the Cisco 1000, 2600, 3600, 4500, 4700, AS5x00, 6x00, 7000 (RSP7000), 7100, 7200, uBR7200, 7500, 12000, MC3810, LightStream1010, and Catalyst 5500 (RSM), and 8500<br /><br /><br />--------------------------------------------------------------------------------<br /><br />Contents<br />Description <br />Step-by-Step Procedure <br />Example of Password Recovery on a Cisco 2600 <br />Related Information<br /><br /><br />--------------------------------------------------------------------------------<br /><br />Description<br />This document describes the password recovery procedure for the following Cisco products:<br /><br />Cisco 1003 <br />Cisco 1004 <br />Cisco 1005 <br />Cisco 1600 <br />Cisco 1700 <br />Cisco 2600 <br />Cisco 3600 <br /> Cisco 4500 <br />Cisco 4700 <br />Cisco AS5x00 <br />Cisco 6x00 <br />Cisco 7000 (RSP7000) <br />Cisco 7100 <br />Cisco 7200 <br />Cisco uBR7200 <br /> Cisco 7500 <br />Cisco 12000 <br />Cisco LS1010 <br />Catalyst 5500 (RSM) <br />Catalyst 8510-CSR <br />Catalyst 8510-MSR <br />Catalyst 8540-CSR <br />Catalyst 8540-MSR <br />Cisco MC3810 <br /> <br /><br />Step-by-Step Procedure<br />Attach a terminal or PC with terminal emulation to the console port of the router. Use the following terminal settings: <br />9600 baud rate <br />No parity <br />8 data bits <br />1 stop bit <br />No flow control<br /><br />The required console cable specifications are described in the Cabling Guide for RJ-45 Console and AUX Ports (Cisco&#39;s 1000 series, 2500 series, and AS5100).<br /><br />Type show version and record the setting of the configuration register. Click here to see output of a show version command. <br />The configuration register setting is usually 0x2102 or 0x102.<br /><br />Using the switch, turn off the router and then turn it on. <br />Press Break on the terminal keyboard within 60 seconds of the powerup to put the router into ROMMON. <br />If the break sequence doesn&#39;t work, see Possible Key Combinations for Break Sequence During Password Recovery for other key combinations. <br /><br />Type confreg 0x2142 at the rommon 1&gt; prompt to boot from Flash without loading the configuration. <br />Type reset at the rommon 2&gt; prompt. <br />The router reboots but ignores its saved configuration.<br /><br />Type no after each setup question or press Ctrl-C to skip the initial setup procedure. <br />Type enable at the Router&gt; prompt. <br />You&#39;ll be in enable mode and see the Router# prompt.<br /><br />Important Type config mem or copy start running to copy the nonvolatile RAM (NVRAM) into memory. Do not type config term. <br />Type wr term or show running. <br />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.<br /><br />Type config term and make the changes. <br />The prompt is now hostname(config)#.<br /><br />Type enable secret &lt;password&gt;. <br />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 &quot;up up&quot;. <br />Type config-register 0x2102, or the value you recorded in step 2. <br />Press Ctrl-z to leave the configuration mode. <br />The prompt is now hostname#.<br /><br />Type write mem or copy running startup to commit the changes. <br />Example of Password Recovery on a Cisco 2600<br />The following example shows password recovery on a Cisco 2600. <br /><br />Router&gt;en<br />Password:<br />Password:<br />Password:<br />% Bad secrets<br /><br />Router&gt;sh ver<br />Cisco Internetwork Operating System Software<br />IOS ™ C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)<br />Copyright &copy; 1986-1999 by cisco Systems, Inc.<br />Compiled Tue 07-Dec-99 02:21 by phanguye<br />Image text-base: 0x80008088, data-base: 0x80C524F8<br /><br />ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)<br /><br />Router uptime is 3 minutes<br />System returned to ROM by abort at PC 0x802D0B60<br />System image file is &quot;flash:c2600-is-mz.120-7.T&quot;<br /><br />cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory.<br />Processor board ID JAB031202NK (3878188963)<br />M860 processor: part number 0, mask 49<br />Bridging software.<br />X.25 software, Version 3.0.0.<br />Basic Rate ISDN software, Version 1.1.<br />2 Ethernet/IEEE 802.3 interface(s)<br />2 Serial(sync/async) network interface(s)<br />1 ISDN Basic Rate interface(s)<br />32K bytes of non-volatile configuration memory.<br />--More-- 8192K bytes of processor board System flash partition 1 (Read/Write)<br />8192K bytes of processor board System flash partition 2 (Read/Write)<br /><br />Configuration register is 0x2102<br /><br />Router&gt; <br /><br />&#33;--- The router was just powercycled and during bootup a <br />&#33;--- break sequence was sent to the router.<br />&#33;<br /><br />*** System received an abort due to Break Key ***<br /><br />signal= 0x3, code= 0x500, context= 0x813ac158<br />PC = 0x802d0b60, Vector = 0x500, SP = 0x80006030<br />rommon 1 &gt; confreg 0x2142<br /><br /><br />You must reset or power cycle for new config to take effect<br />rommon 2 &gt; reset<br /><br /><br />System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)<br />Copyright &copy; 1999 by cisco Systems, Inc.<br />TAC:Home:SW:IOS:Specials for info<br />C2600 platform with 32768 Kbytes of main memory<br /><br /><br />program load complete, entry point: 0x80008000, size: 0x6fdb4c<br /><br />Self decompressing the image : ###############################<br />##############################################################<br />##############################################################<br />##############################################################<br />############################### [OK]<br /><br /><br /> Restricted Rights Legend<br /><br />Use, duplication, or disclosure by the Government is<br />subject to restrictions as set forth in subparagraph<br />&copy; of the Commercial Computer Software - Restricted<br />Rights clause at FAR sec. 52.227-19 and subparagraph<br />&copy; (1) (ii) of the Rights in Technical Data and Computer<br />Software clause at DFARS sec. 252.227-7013.<br /><br /> cisco Systems, Inc.<br /> 170 West Tasman Drive<br /> San Jose, California 95134-1706<br /><br />Cisco Internetwork Operating System Software<br />IOS ™ C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)<br />Copyright &copy; 1986-1999 by cisco Systems, Inc.<br />Compiled Tue 07-Dec-99 02:21 by phanguye<br />Image text-base: 0x80008088, data-base: 0x80C524F8<br /><br />cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory.<br />Processor board ID JAB031202NK (3878188963)<br />M860 processor: part number 0, mask 49<br />Bridging software.<br />X.25 software, Version 3.0.0.<br />Basic Rate ISDN software, Version 1.1.<br />2 Ethernet/IEEE 802.3 interface(s)<br />2 Serial(sync/async) network interface(s)<br />1 ISDN Basic Rate interface(s)<br />32K bytes of non-volatile configuration memory.<br />8192K bytes of processor board System flash partition 1 (Read/Write)<br />8192K bytes of processor board System flash partition 2 (Read/Write)<br /><br /><br /> --- System Configuration Dialog ---<br /><br />Would you like to enter the initial configuration dialog? [yes/no]: n<br /><br />Press RETURN to get started&#33;<br /><br />00:00:19: %LINK-3-UPDOWN: Interface BRI0/0, changed state to up<br />00:00:19: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up<br />00:00:19: %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to up<br />00:00:19: %LINK-3-UPDOWN: Interface Serial0/0, changed state to down<br />00:00:19: %LINK-3-UPDOWN: Interface Serial0/1, changed state to down<br />00:00:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0/0, changed state to down<br />00:00:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up<br />Router&gt;<br />00:00:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to up<br />00:00:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down<br />00:00:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to down<br />00:00:50: %SYS-5-RESTART: System restarted --<br />Cisco Internetwork Operating System Software<br />IOS ™ C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)<br />Copyright &copy; 1986-1999 by cisco Systems, Inc.<br />Compiled Tue 07-Dec-99 02:21 by phanguye<br />00:00:50: %LINK-5-CHANGED: Interface BRI0/0, changed state to administratively down<br />00:00:52: %LINK-5-CHANGED: Interface Ethernet0/0, changed state to administratively down<br />00:00:52: %LINK-5-CHANGED: Interface Serial0/0, changed state to administratively down<br />00:00:52: %LINK-5-CHANGED: Interface Ethernet0/1, changed state to administratively down<br />00:00:52: %LINK-5-CHANGED: Interface Serial0/1, changed state to administratively down<br />00:00:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to down<br />00:00:53: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to down<br />Router&gt;<br />Router&gt;en<br />Router#copy start run<br />Destination filename [running-config]?<br />1324 bytes copied in 2.35 secs (662 bytes/sec)<br />Router#<br />00:01:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0/0:1, changed state to down<br />00:01:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0/0:2, changed state to down<br />Router#conf t<br />Enter configuration commands, one per line. End with CNTL/Z.<br />Router(config)#enable secret cisco<br />Router(config)#^Z<br />00:01:54: %SYS-5-CONFIG_I: Configured from console by console<br />Router#sh ip int brief<br /><br />Interface      IP-Address        OK?     Method     Status                   Protocol<br />Ethernet0/0    10.200.40.37      YES     TFTP       administratively down    down<br />Serial0/0      unassigned        YES     TFTP       administratively down    down<br />BRI0/0         193.251.121.157   YES     unset      administratively down    down<br />BRI0/0:1       unassigned        YES     unset      administratively down    down<br />BRI0/0:2       unassigned        YES     unset      administratively down    down<br />Ethernet0/1    unassigned        YES     TFTP       administratively down    down<br />Serial0/1      unassigned        YES     TFTP       administratively down    down<br />Loopback0      193.251.121.157   YES     TFTP       up                       up<br />Router#conf t<br />Enter configuration commands, one per line. End with CNTL/Z.<br />Router(config)#int Ethernet0/0<br />Router(config-if)#no shut<br />Router(config-if)#<br />00:02:14: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up<br />00:02:15: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up<br />Router(config-if)#int BRI0/0<br />Router(config-if)#no shut<br />Router(config-if)#<br />00:02:26: %LINK-3-UPDOWN: Interface BRI0/0:1, changed state to down<br />00:02:26: %LINK-3-UPDOWN: Interface BRI0/0:2, changed state to down<br />00:02:26: %LINK-3-UPDOWN: Interface BRI0/0, changed state to up<br />00:02:115964116991: %ISDN-6-LAYER2UP: Layer 2 for Interface BR0/0, TEI 68 changed to up<br />Router(config-if)#^Z<br />Router#<br />00:02:35: %SYS-5-CONFIG_I: Configured from console by console<br />Router#copy run start<br />Destination filename [startup-config]?<br />Building configuration...<br />[OK]<br />Router#sh ver<br />Cisco Internetwork Operating System Software<br />IOS ™ C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)<br />Copyright &copy; 1986-1999 by cisco Systems, Inc.<br />Compiled Tue 07-Dec-99 02:21 by phanguye<br />Image text-base: 0x80008088, data-base: 0x80C524F8<br /><br />ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)<br /><br />Router uptime is 3 minutes<br />System returned to ROM by abort at PC 0x802D0B60<br />System image file is &quot;flash:c2600-is-mz.120-7.T&quot;<br /><br />cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory.<br />Processor board ID JAB031202NK (3878188963)<br />M860 processor: part number 0, mask 49<br />Bridging software.<br />X.25 software, Version 3.0.0.<br />Basic Rate ISDN software, Version 1.1.<br />2 Ethernet/IEEE 802.3 interface(s)<br />2 Serial(sync/async) network interface(s)<br />1 ISDN Basic Rate interface(s)<br />32K bytes of non-volatile configuration memory.<br />--More-- 8192K bytes of processor board System flash partition 1 (Read/Write)<br />8192K bytes of processor board System flash partition 2 (Read/Write)<br /><br />Configuration register is 0x2142<br /><br />Router#conf t<br />Enter configuration commands, one per line. End with CNTL/Z.<br />Router(config)#config-reg 0x2102<br />Router(config)#^Z<br />00:03:20: %SYS-5-CONFIG_I: Configured from console by console<br /><br />Router#sh ver<br />Cisco Internetwork Operating System Software<br />IOS ™ C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)<br />Copyright &copy; 1986-1999 by cisco Systems, Inc.<br />Compiled Tue 07-Dec-99 02:21 by phanguye<br />Image text-base: 0x80008088, data-base: 0x80C524F8<br /><br />ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1)<br /><br />Router uptime is 3 minutes<br />System returned to ROM by abort at PC 0x802D0B60<br />System image file is &quot;flash:c2600-is-mz.120-7.T&quot;<br /><br />cisco 2611 (MPC860) processor (revision 0x202) with 26624K/6144K bytes of memory.<br />Processor board ID JAB031202NK (3878188963)<br />M860 processor: part number 0, mask 49<br />Bridging software.<br />X.25 software, Version 3.0.0.<br />Basic Rate ISDN software, Version 1.1.<br />2 Ethernet/IEEE 802.3 interface(s)<br />2 Serial(sync/async) network interface(s)<br />1 ISDN Basic Rate interface(s)<br />32K bytes of non-volatile configuration memory.<br />--More-- 8192K bytes of processor board System flash partition 1 (Read/Write)<br />8192K bytes of processor board System flash partition 2 (Read/Write)<br /><br />Configuration register is 0x2142 (will be 0x2102 at next reload)<br /><br />Router#

页: [1]
查看完整版本: 路由器口令恢复


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.