{"id":702,"date":"2012-11-28T11:46:56","date_gmt":"2012-11-28T02:46:56","guid":{"rendered":"http:\/\/loreatec.jp\/e\/blog\/?p=702"},"modified":"2012-11-28T11:46:56","modified_gmt":"2012-11-28T02:46:56","slug":"how-to-wipe-out-cisco-router-data","status":"publish","type":"post","link":"https:\/\/loreatec.jp\/e\/blog\/?p=702","title":{"rendered":"How to wipe out CISCO router data"},"content":{"rendered":"<p>Recently we had securely wipe out the configuration data of a few cisco routers at LoreaTec and I thought it could be useful to post it here. After you complete the steps bellow the router will be back to factory settings, the same as when you bought it new.<\/p>\n<p>The command output may be a little different depending on the model but with the steps bellow you should be able to wipe the data of most CISCO routers.<\/p>\n<p>I have marked in <span style=\"color: #ff0000;\">RED<\/span> the commands you need to input to make it clearer. The rest is explanation or router output example.<\/p>\n<p>1-Turn on the router. Before the prompt loads press <span style=\"color: #ff0000;\">Ctrl+C<\/span> (on some models you need to press <span style=\"color: #ff0000;\">Ctrl+Enter+Break<\/span>) and you will see the as bellow.<\/p>\n<p>Self decompressing the image :<br \/>\n#######################<br \/>\nmonitor: command &#8220;boot&#8221; aborted due to user interrupt<br \/>\nrommon 1 &gt;<\/p>\n<p>&nbsp;<\/p>\n<p>2-Enter?<span style=\"color: #ff0000;\">confreg 0x2142<span style=\"color: #000000;\"> as you see bellow:<\/span><\/span><\/p>\n<p>rommon 1 &gt; confreg 0x2142<br \/>\nrommon 2 &gt;<\/p>\n<p>&nbsp;<\/p>\n<p>3-Now it says rommon 2 &gt; enter <span style=\"color: #ff0000;\">reset<\/span>? command so that the router reboots.<\/p>\n<p>rommon 2 &gt; reset<br \/>\nSystem Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)<br \/>\nCisco 1841 (revision 5.0) with 114688K\/16384K bytes of memory.<\/p>\n<p>Self decompressing the image :<br \/>\n########################################################################## [OK]<br \/>\nRestricted Rights Legend<\/p>\n<p>Use, 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.<\/p>\n<p>cisco Systems, Inc.<br \/>\n170 West Tasman Drive<br \/>\nSan Jose, California 95134-1706<\/p>\n<p>&nbsp;<\/p>\n<p>Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)<br \/>\nTechnical Support: http:\/\/www.cisco.com\/techsupport<br \/>\nCopyright (c) 1986-2007 by Cisco Systems, Inc.<br \/>\nCompiled Wed 18-Jul-07 04:52 by pt_team<br \/>\nImage text-base: 0x60080608, data-base: 0x6270CD50<br \/>\nThis product contains cryptographic features and is subject to United<br \/>\nStates and local country laws governing import, export, transfer and<br \/>\nuse. Delivery of Cisco cryptographic products does not imply<br \/>\nthird-party authority to import, export, distribute or use encryption.<br \/>\nImporters, exporters, distributors and users are responsible for<br \/>\ncompliance with U.S. and local country laws. By using this product you<br \/>\nagree to comply with applicable laws and regulations. If you are unable<br \/>\nto comply with U.S. and local laws, return this product immediately.<\/p>\n<p>A summary of U.S. laws governing Cisco cryptographic products may be found at:<br \/>\nhttp:\/\/www.cisco.com\/wwl\/export\/crypto\/tool\/stqrg.html<\/p>\n<p>If you require further assistance please contact us by sending email to<br \/>\nexport@cisco.com.<br \/>\nCisco 1841 (revision 5.0) with 114688K\/16384K bytes of memory.<br \/>\nProcessor board ID FTX0947Z18E<br \/>\nM860 processor: part number 0, mask 49<br \/>\n2 FastEthernet\/IEEE 802.3 interface(s)<br \/>\n2 Low-speed serial(sync\/async) network interface(s)<br \/>\n191K bytes of NVRAM.<br \/>\n63488K bytes of ATA CompactFlash (Read\/Write)<br \/>\nCisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)<br \/>\nTechnical Support: http:\/\/www.cisco.com\/techsupport<br \/>\nCopyright (c) 1986-2007 by Cisco Systems, Inc.<br \/>\nCompiled Wed 18-Jul-07 04:52 by pt_team<br \/>\n4- It asks you if you want to continue with configuration dialog. Enter <span style=\"color: #ff0000;\">n<\/span> en press <span style=\"color: #ff0000;\">enter<\/span> two times.<\/p>\n<p>&#8212; System Configuration Dialog &#8212;<\/p>\n<p>Continue with configuration dialog? [yes\/no]:n<\/p>\n<p>&nbsp;<\/p>\n<p>Press RETURN to get started!<br \/>\nRouter&gt;<br \/>\n5-escribis enable<\/p>\n<p>Router&gt;enable<br \/>\nRouter#<br \/>\n6-Write <span style=\"color: #ff0000;\">startup-config<\/span> and press <span style=\"color: #ff0000;\">enter<\/span> key.<\/p>\n<p>Router#erase startup-config<br \/>\n7-Write <span style=\"color: #ff0000;\">erase startup-config<\/span> and press <span style=\"color: #ff0000;\">enter<\/span> key again.<\/p>\n<p>Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] Press <span style=\"color: #ff0000;\">enter<\/span> key<br \/>\n[OK]<br \/>\nErase of nvram: complete<br \/>\n%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram<br \/>\nRouter#<br \/>\n8-Write <span style=\"color: #ff0000;\">conf t<\/span> or <span style=\"color: #ff0000;\">configure terminal<\/span> to continue with the router set up.<\/p>\n<p>Router#conf t<br \/>\nEnter configuration commands, one per line. End with CNTL\/Z.<br \/>\nRouter(config)#<br \/>\n9-Write <span style=\"color: #ff0000;\">config-register 0x2102<\/span><\/p>\n<p>Router(config)#config-register 0x2102<br \/>\nRouter(config)#<br \/>\n10-Write <span style=\"color: #ff0000;\">end<\/span> to make the router go back to factory settings.<\/p>\n<p>Router(config)#end<\/p>\n<p>%SYS-5-CONFIG_I: Configured from console by console<br \/>\nRouter#<br \/>\n11-Write <span style=\"color: #ff0000;\">reload<\/span> to process and save all the changes and let it boot.<\/p>\n<p>Router#reload<br \/>\nProceed with reload? [confirm]<br \/>\n%SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.<br \/>\nySystem Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)<br \/>\nCisco 1841 (revision 5.0) with 114688K\/16384K bytes of memory.<\/p>\n<p>Self decompressing the image :<br \/>\n########################################################################## [OK]<br \/>\nRestricted Rights Legend<\/p>\n<p>Use, 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.<\/p>\n<p>cisco Systems, Inc.<br \/>\n170 West Tasman Drive<br \/>\nSan Jose, California 95134-1706<\/p>\n<p>&nbsp;<\/p>\n<p>Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)<br \/>\nTechnical Support: http:\/\/www.cisco.com\/techsupport<br \/>\nCopyright (c) 1986-2007 by Cisco Systems, Inc.<br \/>\nCompiled Wed 18-Jul-07 04:52 by pt_team<br \/>\nImage text-base: 0x60080608, data-base: 0x6270CD50<br \/>\nThis product contains cryptographic features and is subject to United<br \/>\nStates and local country laws governing import, export, transfer and<br \/>\nuse. Delivery of Cisco cryptographic products does not imply<br \/>\nthird-party authority to import, export, distribute or use encryption.<br \/>\nImporters, exporters, distributors and users are responsible for<br \/>\ncompliance with U.S. and local country laws. By using this product you<br \/>\nagree to comply with applicable laws and regulations. If you are unable<br \/>\nto comply with U.S. and local laws, return this product immediately.<\/p>\n<p>A summary of U.S. laws governing Cisco cryptographic products may be found at:<br \/>\nhttp:\/\/www.cisco.com\/wwl\/export\/crypto\/tool\/stqrg.html<\/p>\n<p>If you require further assistance please contact us by sending email to<br \/>\nexport@cisco.com.<br \/>\nCisco 1841 (revision 5.0) with 114688K\/16384K bytes of memory.<br \/>\nProcessor board ID FTX0947Z18E<br \/>\nM860 processor: part number 0, mask 49<br \/>\n2 FastEthernet\/IEEE 802.3 interface(s)<br \/>\n2 Low-speed serial(sync\/async) network interface(s)<br \/>\n191K bytes of NVRAM.<br \/>\n63488K bytes of ATA CompactFlash (Read\/Write)<br \/>\nCisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)<br \/>\nTechnical Support: http:\/\/www.cisco.com\/techsupport<br \/>\nCopyright (c) 1986-2007 by Cisco Systems, Inc.<br \/>\nCompiled Wed 18-Jul-07 04:52 by pt_team<br \/>\n&#8212; System Configuration Dialog &#8212;<\/p>\n<p>Continue with configuration dialog? [yes\/no]:<\/p>\n<p>&nbsp;<\/p>\n<p>12-Select <span style=\"color: #ff0000;\">no<\/span> and you are back to the initial prompt. Now the router has the same settings as when it was bought.<\/p>\n<p>Continue with configuration dialog? [yes\/no]: n<br \/>\nPress RETURN to get started!<\/p>\n<p>&nbsp;<\/p>\n<p>Router&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>Please link to this post if the information was useful. Please contact us at LoreaTec if you have any comments or if there is any mistake.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently we had securely wipe out the configuration data of a few cisco routers at LoreaTec and I thought it could be useful to post it here. After you complete the steps bellow the router will be back to factory settings, the same as when you bought it new. The command output may be a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[183],"tags":[],"class_list":["post-702","post","type-post","status-publish","format-standard","hentry","category-cisco-networking"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/loreatec.jp\/e\/blog\/index.php?rest_route=\/wp\/v2\/posts\/702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loreatec.jp\/e\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loreatec.jp\/e\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loreatec.jp\/e\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loreatec.jp\/e\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=702"}],"version-history":[{"count":4,"href":"https:\/\/loreatec.jp\/e\/blog\/index.php?rest_route=\/wp\/v2\/posts\/702\/revisions"}],"predecessor-version":[{"id":706,"href":"https:\/\/loreatec.jp\/e\/blog\/index.php?rest_route=\/wp\/v2\/posts\/702\/revisions\/706"}],"wp:attachment":[{"href":"https:\/\/loreatec.jp\/e\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loreatec.jp\/e\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loreatec.jp\/e\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}