{"id":205,"date":"2007-06-04T06:09:24","date_gmt":"2007-06-04T02:09:24","guid":{"rendered":"http:\/\/mudji.net\/press\/?p=205"},"modified":"2021-06-11T21:58:18","modified_gmt":"2021-06-11T17:58:18","slug":"password-recovery-procedure-for-the-cisco-2000-2500","status":"publish","type":"post","link":"https:\/\/mudji.net\/press\/?p=205","title":{"rendered":"Password Recovery Procedure for the Cisco 2000 &#038; 2500"},"content":{"rendered":"<p>This section provides an example of the password recovery procedure. This example uses a Cisco 2500 Series Router.<\/p>\n<blockquote><p>Router&gt;enable<br \/>\nPassword:<br \/>\nPassword:<br \/>\nPassword:<br \/>\n% Bad secrets<br \/>\nRouter&gt;show version<\/p>\n<p>Cisco Internetwork Operating System Software<\/p>\n<p>IOS &#8482; 2500 Software (C2500-JS-L), Version 12.2(24a)<br \/>\nRELEASE SOFTWARE (fc3)<\/p>\n<p>Copyright (c) 1986-2004 by cisco Systems, Inc.<br \/>\nCompiled Fri 28-May-04 19:30 by pwade<\/p>\n<p>Image text-base: 0x0306C4E0, data-base: 0x00001000<\/p>\n<p>ROM: System Bootstrap, Version 11.0(10c), RELEASE SOFTWARE<br \/>\nBOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c),<br \/>\nRELEASE SOFTWARE (fc1)Router uptime is 5 minutes<br \/>\nSystem returned to ROM by power-on<br \/>\nSystem image file is &#8220;flash:\/c2500-js-l.122-24a.bin&#8221;<\/p>\n<p>cisco 2500 (68030) processor (revision D) with 14336K\/2048K bytes of memory.<\/p>\n<p>Processor board ID 02315272, with hardware revision 00000000<\/p>\n<p>Bridging software.<\/p>\n<p>X.25 software, Version 3.0.0.<\/p>\n<p>SuperLAT software (copyright 1990 by Meridian Technology Corp).<\/p>\n<p>TN3270 Emulation software.<\/p>\n<p>1 Ethernet\/IEEE 802.3 interface(s)<\/p>\n<p>1 Token Ring\/IEEE 802.5 interface(s)<\/p>\n<p>2 Serial network interface(s)<\/p>\n<p>32K bytes of non-volatile configuration memory.<\/p>\n<p>16384K bytes of processor board System flash (Read ONLY)<\/p>\n<p><strong>Configuration register is 0x2102 <\/strong><\/p>\n<p>!&#8212; This is the current value of the configuration register.<\/p>\n<p>Router&gt;<\/p>\n<p><strong>!&#8212; The router was just power cycled and during bootup<br \/>\n!&#8212; break sequence is sent to the router (CTRL+Break).<\/strong><\/p>\n<p><!--more--><br \/>\nSystem Bootstrap, Version 11.0(10c), SOFTWARE<br \/>\nCopyright (c) 1986-1996 by cisco Systems<br \/>\n2500 processor with 16384 Kbytes of main memory<\/p>\n<p>Abort at 0x10EA83C (PC)<br \/>\n&gt;o<br \/>\nConfiguration register = 0x2102 at last boot<\/p>\n<p><strong>!&#8212; You can also issue the o command at the ROMmon prompt<br \/>\n!&#8212; in order to view the configuration register settings value.<\/strong><\/p>\n<p>Bit# Configuration register option settings:<br \/>\n15 Diagnostic mode disabled<br \/>\n14 IP broadcasts do not have network numbers<br \/>\n13 Boot default ROM software if network boot fails<br \/>\n12-11 Console speed is 9600 baud<br \/>\n10 IP broadcasts with ones<br \/>\n08 Break disabled<br \/>\n07 OEM disabled<br \/>\n06 Ignore configuration disabled<br \/>\n03-00 Boot file is cisco2-2500 (or &#8216;boot system&#8217; command)<\/p>\n<p>&gt;o\/r 0x2142<\/p>\n<p><strong>!&#8212; Changes the value of config-register to 2142, so that<br \/>\n!&#8212; the router boots and ignores the NVRAM contents.<\/strong><\/p>\n<p>&gt;i<\/p>\n<p><strong>!&#8212; Initializes or resets the router; the<br \/>\n!&#8212; router boots with the default configuration.<\/strong><\/p>\n<p>System Bootstrap, Version 11.0(10c), RELEASE SOFTWARE<br \/>\nCopyright (c) 1986-1996 by cisco Systems<br \/>\n2500 processor with 8192 Kbytes of main memory<br \/>\nF3: 13626872+197596+780568 at 0x3000060<br \/>\nRestricted Rights Legend<br \/>\nUse, duplication, or disclosure by the Government is<br \/>\nsubject to restrictions as set forth in subparagraph<br \/>\n(c) of the Commercial Computer Software &#8211; Restricted<br \/>\nRights clause at FAR sec. 52.227-19 and subparagraph<br \/>\n(c) (1) (ii) of the Rights in Technical Data and Computer<br \/>\nSoftware clause at DFARS sec. 252.227-7013.<br \/>\ncisco Systems, Inc.<br \/>\n170 West Tasman Drive<br \/>\nSan Jose, California 95134-1706<br \/>\nCisco Internetwork Operating System Software<br \/>\nIOS &#8482; 2500 Software (C2500-JS-L), Version 12.2(24a),<br \/>\nRELEASE SOFTWARE (fc1)<br \/>\nCopyright (c) 1986-1999 by cisco Systems, Inc.<br \/>\nCompiled Fri 28-May-04 19:30 by pwade<br \/>\nImage text-base: 0x0306C4E0, data-base: 0x00001000<br \/>\ncisco 2500 (68030) processor (revision D) with 14336K\/2048K bytes of memory.<br \/>\nProcessor board ID 02315272, with hardware revision 00000000<br \/>\nBridging software.<br \/>\nX.25 software, Version 3.0.0.<br \/>\nSuperLAT software (copyright 1990 by Meridian Technology Corp).<br \/>\nTN3270 Emulation software.<br \/>\n1 Ethernet\/IEEE 802.3 interface(s)<br \/>\n1 Token Ring\/IEEE 802.5 interface(s)<br \/>\n2 Serial network interface(s)<br \/>\n32K bytes of non-volatile configuration memory.<br \/>\n16384K bytes of processor board System flash (Read ONLY)<br \/>\n&#8212; System Configuration Dialog &#8212;<br \/>\nWould you like to enter the initial configuration dialog? [yes\/no]:<\/p>\n<p><strong>!&#8212; Ctrl+C pressed.<\/strong><\/p>\n<p>!<br \/>\nPress RETURN to get started!<br \/>\n00:00:08: %LINK-3-UPDOWN: Interface Ethernet0, changed state to up<br \/>\n00:00:08: %LINK-3-UPDOWN: Interface Serial0, changed state to up<br \/>\n00:00:08: %LINK-3-UPDOWN: Interface Serial1, changed state to up<br \/>\n00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0,<br \/>\nchanged state to up<br \/>\n00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1,<br \/>\nchanged state to up<br \/>\n00:01:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0,<br \/>\nchanged state to up<br \/>\n00:01:29: %LINK-3-UPDOWN: Interface Ethernet0Translating &#8220;Router&#8221;&#8230;<br \/>\ndomain server (255.255.255.255), changed state to up<br \/>\n00:01:30: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1,<br \/>\nchanged state to up<br \/>\n00:01:31: %SYS-5-RESTART: System restarted &#8212;<br \/>\nCisco Internetwork Operating System Software<br \/>\nIOS &#8482; 2500 Software (C2500-JS-L), Version 12.2(24a),<br \/>\nRELEASE SOFTWARE (fc1)<br \/>\nCopyright (c) 1986-1999 by cisco Systems, Inc.<br \/>\nCompiled Fri 28-May-04 19:30 by pwade<br \/>\n00:01:32: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0,<br \/>\nchanged state to down<br \/>\n00:01:33: %LINK-5-CHANGED: Interface Ethernet0, changed state to<\/p>\n<p>administratively down<\/p>\n<p>00:01:33: %LINK-5-CHANGED: Interface Serial0, changed state to<\/p>\n<p>administratively down<br \/>\n00:01:33: %LINK-5-CHANGED: Interface Serial1, changed state to<br \/>\nadministratively down<br \/>\n00:01:33: %LINK-5-CHANGED: Interface TokenRing0, changed state to<\/p>\n<p>administratively down<\/p>\n<p>00:01:34: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0,<br \/>\nchanged state to down<br \/>\n00:01:34: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1,<br \/>\nchanged state to down<br \/>\n00:01:34: %LINEPROTO-5-UPDOWN: Line protocol on Interface TokenRing0,<br \/>\nchanged state to down<br \/>\nRouter&gt;enable<br \/>\nRouter#copy startup-config running-config<br \/>\nDestination filename [running-config]?<\/p>\n<p><strong>!&#8212; Press ENTER. <\/strong><\/p>\n<p>1278 bytes copied in 10.448 secs (127 bytes\/sec)<\/p><\/blockquote>\n<p><strong>Note: <\/strong>After you copy the configuration file from NVRAM to RAM, based on how the password is last configured, you can either:<\/p>\n<p>* perform a password recovery, if the enable password is configured (which is in plain text format)<\/p>\n<p>or<br \/>\n* perform a password replacement, if the enable secret password is configured (which is in encrypted format)<\/p>\n<p>In order to check the format in which the password is configured on the router, use the show running-config command, and look for enable password or enable secret password in the configuration.<\/p>\n<p><strong>Password Replacement<\/strong><br \/>\nThis output from the show running-config command shows that the enable secret password is configured. As a result, you can perform password replacement as shown in this example.<\/p>\n<blockquote><p>Router#show running-config<\/p>\n<p><strong>!&#8212; This command can be used to view the unencrypted password.<\/strong><\/p>\n<p>Building configuration&#8230;<\/p>\n<p>Current configuration : 431 bytes<br \/>\n!<br \/>\nversion 12.2<br \/>\nservice timestamps debug uptime<br \/>\nservice timestamps log uptime<br \/>\nno service password-encryption<br \/>\n!<br \/>\nhostname Router<br \/>\n!<\/p>\n<div><strong>enable password XxXxXx <\/strong><\/div>\n<p><strong>!&#8212; Here the password is plain clear text. We can either maintain<br \/>\n!&#8212; the same password or replace with a new password for security reasons.<\/p>\n<p>!&#8212; Output Suppressed.<\/p>\n<p><\/strong><\/p><\/blockquote>\n<p>This output from the show running-config command shows that the enable secret password is configured. As a result, you can perform password replacement as shown in this example.<\/p>\n<blockquote><p>Router#show running-config<br \/>\nBuilding configuration&#8230;<br \/>\nCurrent configuration : 835 bytes<br \/>\n!<br \/>\nversion 12.2<br \/>\nservice timestamps debug uptime<br \/>\nservice timestamps log uptime<br \/>\nno service password-encryption<br \/>\n!<br \/>\nhostname Router<br \/>\n!<br \/>\n<strong>enable secret 5 $1$Oea234\/6Ppi0PZYzAj\/vX0<\/strong><\/p>\n<div><strong>!&#8212; Password replacement has to be done as the password is in encrypted format.<\/strong><\/div>\n<p><strong>!&#8212; Output suppressed.<\/p>\n<p><\/strong>Router#configure terminal<br \/>\nEnter configuration commands, one per line. End with CNTL\/Z.<br \/>\n<strong>Router(config)#enable secret xxxxxxx<\/strong><br \/>\nRouter(config)#<br \/>\n00:03:39: %SYS-5-CONFIG_I: Configured from console by console<\/p><\/blockquote>\n<p>When the password recovery or replacement is complete, the next steps are the same, as shown in this example output:<\/p>\n<blockquote><p>Router#show ip interface brief<\/p>\n<p>Router(config)#interface ethernet 0<br \/>\nRouter(config-if)#no shutdown<br \/>\n*Mar 1 00:04:12.863: %LINK-3-UPDOWN: Interface Ethernet0,<br \/>\nchanged state to up<br \/>\n*Mar 1 00:04:13.947: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0,<br \/>\nchanged state to up<br \/>\nRouter(config-if)#interface serial 0<br \/>\nRouter(config-if)#no shutdown<br \/>\n*Mar 1 00:04:18.107: %LINK-3-UPDOWN: Interface Serial0,<br \/>\nchanged state to up<br \/>\n*Mar 1 00:04:19.167: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0,<br \/>\nchanged state to up<br \/>\nRouter(config-if)#interface serial 1<br \/>\nRouter(config-if)#no shutdown<br \/>\nRouter(config-if)#<br \/>\n*Mar 1 00:04:27.055: %LINK-3-UPDOWN: Interface Serial1,<br \/>\nchanged state to up<br \/>\n*Mar 1 00:04:28.071: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1,<br \/>\nchanged state to up #<br \/>\nRouter(config-if)#^Z<br \/>\nRouter#<br \/>\n00:02:35: %SYS-5-CONFIG_I: Configured from console by console<br \/>\nRouter#copy running-config startup-config<br \/>\nDestination filename [startup-config]?<br \/>\nBuilding configuration&#8230;<br \/>\n[OK]<\/p><\/blockquote>\n<p>After you recover or replace the password, you must reset the configuration register value to <strong>0x2102<\/strong>, which was changed earlier in the procedure to 0x2142 in order to ignore the startup configuration and boot the router. In order to verify the configuration register value, issue the show version command.<\/p>\n<blockquote><p>Router#show version<br \/>\nCisco Internetwork Operating System Software<br \/>\nIOS &#8482; 2500 Software (C2500-JS-L), Version 12.2(24a)RELEASE SOFTWARE (fc3)<br \/>\nCopyright (c) 1986-2004 by cisco Systems, Inc.<br \/>\nCompiled Fri 28-May-04 19:30 by pwade<br \/>\nImage text-base: 0x0306C4E0, data-base: 0x00001000<\/p>\n<p>ROM: System Bootstrap, Version 11.0(10c), RELEASE SOFTWARE<br \/>\nBOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c),<br \/>\nRELEASE SOFTWARE (fc1)<\/p>\n<p>Router uptime is 5 minutes<br \/>\nSystem returned to ROM by power-on<br \/>\nSystem image file is &#8220;flash:\/c2500-js-l.122-24a.bin&#8221;<\/p>\n<p>cisco 2500 (68030) processor (revision D) with 14336K\/2048K bytes of memory.<br \/>\nProcessor board ID 02315272, with hardware revision 00000000<br \/>\nBridging software.<br \/>\nX.25 software, Version 3.0.0.<br \/>\nSuperLAT software (copyright 1990 by Meridian Technology Corp).<br \/>\nTN3270 Emulation software.<br \/>\n1 Ethernet\/IEEE 802.3 interface(s)<br \/>\n1 Token Ring\/IEEE 802.5 interface(s)<br \/>\n2 Serial network interface(s)<br \/>\n32K bytes of non-volatile configuration memory.<br \/>\n16384K bytes of processor board System flash (Read ONLY)<\/p>\n<p><strong>Configuration register is 0x2142<\/strong><\/p>\n<p>Router#configure terminal<br \/>\nEnter configuration commands, one per line. End with CNTL\/Z.<br \/>\n<strong>Router(config)#config-register 0x2102<\/strong><\/p>\n<p><strong>!&#8212; The config-register is changed back to load the router<br \/>\n!&#8212; with NVRAM configuration.<\/strong><\/p>\n<p>Router(config)#^Z<br \/>\n00:03:20: %SYS-5-CONFIG_I: Configured from console by console<\/p><\/blockquote>\n<p>When you issue the <strong>config-reg 0x2102<\/strong> command, the new configuration register value is not immediately applied. The new value is applied only after the router is reloaded. The <strong>show version<\/strong> command shows the current value (0x2142) and the value that will be applied after the next reload (0x2102).<\/p>\n<blockquote><p>Router#show version<br \/>\nCisco Internetwork Operating System Software<br \/>\nIOS &#8482; 2500 Software (C2500-JS-L), Version 12.2(24a)RELEASE SOFTWARE (fc3)<br \/>\nCopyright (c) 1986-2004 by cisco Systems, Inc.<br \/>\nCompiled Fri 28-May-04 19:30 by pwade<br \/>\nImage text-base: 0x0306C4E0, data-base: 0x00001000<\/p>\n<p>ROM: System Bootstrap, Version 11.0(10c), RELEASE SOFTWARE<br \/>\nBOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c),<br \/>\nRELEASE SOFTWARE (fc1)<\/p>\n<p>Router uptime is 5 minutes<br \/>\nSystem returned to ROM by power-on<br \/>\nSystem image file is &#8220;flash:\/c2500-js-l.122-24a.bin&#8221;<\/p>\n<p>cisco 2500 (68030) processor (revision D) with 14336K\/2048K bytes of memory.<br \/>\nProcessor board ID 02315272, with hardware revision 00000000<br \/>\nBridging software.<br \/>\nX.25 software, Version 3.0.0.<br \/>\nSuperLAT software (copyright 1990 by Meridian Technology Corp).<br \/>\nTN3270 Emulation software.<br \/>\n1 Ethernet\/IEEE 802.3 interface(s)<br \/>\n1 Token Ring\/IEEE 802.5 interface(s)<br \/>\n2 Serial network interface(s)<br \/>\n32K bytes of non-volatile configuration memory.<br \/>\n16384K bytes of processor board System flash (Read ONLY)<\/p>\n<p><strong>Configuration register is 0x2142 (will be 0x2102 at next reload)<\/strong><br \/>\nRouter#<\/p><\/blockquote>\n<p>After you save the configuration, reload the router, and verify the configuration register value is 0x2102, as shown in this example:<\/p>\n<blockquote><p>Router#<strong>write memory<\/strong><br \/>\n*Mar 1 00:05:09.035: %SYS-5-CONFIG_I: Configured from console by console<br \/>\nBuilding configuration&#8230;<br \/>\n[OK]<br \/>\nRouter#<br \/>\nRouter#<strong>reload <\/strong><br \/>\nProceed with reload? [confirm]<\/p>\n<div><strong><br \/>\n!&#8212; Press Enter to continue.<\/strong><\/div>\n<p><strong>!&#8212; Starts to load the Cisco IOS from Flash and takes the configuration from the NVRAM.<\/p>\n<p><\/strong>00:17:36: %SYS-5-RELOAD: Reload requested by console.<\/p>\n<p>System Bootstrap, Version 11.0(10c), SOFTWARE<br \/>\nCopyright (c) 1986-1996 by cisco Systems<br \/>\n2500 processor with 14336 Kbytes of main memory<\/p>\n<p>F3: 15011856+968960+947120 at 0x3000060<\/p>\n<p><strong><br \/>\n!&#8212; Output suppressed.<\/strong><\/p>\n<p>Router#<strong>show version<\/strong><br \/>\nCisco Internetwork Operating System Software<br \/>\nIOS &#8482; 2500 Software (C2500-JS-L), Version 12.2(24a)RELEASE SOFTWARE (fc3)<br \/>\nCopyright (c) 1986-2004 by cisco Systems, Inc.<br \/>\nCompiled Fri 28-May-04 19:30 by pwade<br \/>\nImage text-base: 0x0306C4E0, data-base: 0x00001000<\/p>\n<p>ROM: System Bootstrap, Version 11.0(10c), RELEASE SOFTWARE<br \/>\nBOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c),<br \/>\nRELEASE SOFTWARE (fc1)<\/p>\n<p>Router uptime is 5 minutes<br \/>\nSystem returned to ROM by reload<br \/>\nSystem image file is &#8220;flash:\/c2500-js-l.122-24a.bin&#8221;<\/p>\n<p>cisco 2500 (68030) processor (revision D) with 14336K\/2048K bytes of memory.<br \/>\nProcessor board ID 02315272, with hardware revision 00000000<br \/>\nBridging software.<br \/>\nX.25 software, Version 3.0.0.<br \/>\nSuperLAT software (copyright 1990 by Meridian Technology Corp).<br \/>\nTN3270 Emulation software.<br \/>\n1 Ethernet\/IEEE 802.3 interface(s)<br \/>\n1 Token Ring\/IEEE 802.5 interface(s)<br \/>\n2 Serial network interface(s)<br \/>\n32K bytes of non-volatile configuration memory.<br \/>\n16384K bytes of processor board System flash (Read ONLY)<br \/>\nConfiguration register is <strong>0x2102<\/strong><\/p>\n<p>Router#<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This section provides an example of the password recovery procedure. This example uses a Cisco 2500 Series Router. Router&gt;enable Password: Password: Password: % Bad secrets Router&gt;show version Cisco Internetwork Operating &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/mudji.net\/press\/index.php?rest_route=\/wp\/v2\/posts\/205"}],"collection":[{"href":"https:\/\/mudji.net\/press\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudji.net\/press\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudji.net\/press\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudji.net\/press\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205"}],"version-history":[{"count":1,"href":"https:\/\/mudji.net\/press\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":494,"href":"https:\/\/mudji.net\/press\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions\/494"}],"wp:attachment":[{"href":"https:\/\/mudji.net\/press\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudji.net\/press\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudji.net\/press\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}