{"id":1027,"date":"2017-09-17T01:43:19","date_gmt":"2017-09-17T07:43:19","guid":{"rendered":"http:\/\/www.jedge.com\/wordpress\/?p=1027"},"modified":"2018-05-22T21:13:17","modified_gmt":"2018-05-23T03:13:17","slug":"reset-to-cisco-switch-to-factory-defaults","status":"publish","type":"post","link":"https:\/\/www.jedge.com\/wordpress\/2017\/09\/reset-to-cisco-switch-to-factory-defaults\/","title":{"rendered":"Reset to Cisco Switch to Factory Defaults"},"content":{"rendered":"<p>First step is connecting the Cisco console to our workstation. I chose to use the Console cable plugged into a Prolific Serial-to-USB adapter. While you can plug your adapter into your Windows workstation and connect via Putty I do not recommend it. Even at Windows 7 I have issues with the adapter and I\u2019m not using one of those cheap Chinese knockoffs. Without fail my workstation will eventually BSoD. Lenovo work laptop or Acer personal laptop it doesn\u2019t matter. I prefer to connect to my Ubuntu workstation and use minicom.<br \/>\n<!--more--><br \/>\nPlug in your adapter and check &#8220;dmesg&#8221; to identify your serial device (usually \/dev\/ttyUSB0).<br \/>\n<pre><code>\n$ dmesg |tail\n[&nbsp;&nbsp; 88.483038] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0\n[&nbsp;&nbsp; 88.483050] usb 1-3: Product: USB-Serial Controller\n[&nbsp;&nbsp; 88.483053] usb 1-3: Manufacturer: Prolific Technology Inc.\n[&nbsp;&nbsp; 89.517987] usbcore: registered new interface driver usbserial\n[&nbsp;&nbsp; 89.518001] usbcore: registered new interface driver usbserial_generic\n[&nbsp;&nbsp; 89.518012] usbserial: USB Serial support registered for generic\n[&nbsp;&nbsp; 89.520965] usbcore: registered new interface driver pl2303\n[&nbsp;&nbsp; 89.520998] usbserial: USB Serial support registered for pl2303\n[&nbsp;&nbsp; 89.521033] pl2303 1-3:1.0: pl2303 converter detected\n[&nbsp;&nbsp; 89.521962] usb 1-3: pl2303 converter now attached to ttyUSB0<\/code><\/pre><\/p>\n<p>The connection details are as follows:<\/p>\n<ul>\n<li>9600 baud<\/li>\n<li>8 data bits<\/li>\n<li>2 stop bits<\/li>\n<li>No parity<\/li>\n<li>None (flow control)<\/li>\n<\/ul>\n<p><pre><code>$sudo minicom \u2013s\nconfiguration -&gt; Serial port setup\nA -&gt; \/dev\/ttyUSB0 -&gt; Enter\nE -&gt; C -&gt; X -&gt; Enter\nF -&gt; Enter\nconfiguration -&gt; Exit -&gt; Enter<\/code><\/pre><\/p>\n<p>Press the \u201cMode\u201d button and power on your device. After a few seconds release the button. You will see the following once the device boots.<br \/>\n<pre><code>Boot Sector Filesystem (bs) installed, fsid: 2\nBase ethernet MAC Address: 00:22:be:1b:8c:00\nXmodem file system is available.\nThe password-recovery mechanism is enabled.\n\nThe system has been interrupted prior to initializing the\nflash filesystem.&nbsp;&nbsp;The following commands will initialize\nthe flash filesystem, and finish loading the operating\nsystem software:\n\n&nbsp;&nbsp;&nbsp;&nbsp;flash_init\n&nbsp;&nbsp;&nbsp;&nbsp;boot\n\nswitch: flash_init\nInitializing Flash...\nflashfs[0]: 5 files, 1 directories\nflashfs[0]: 0 orphaned files, 0 orphaned directories\nflashfs[0]: Total bytes: 32514048\nflashfs[0]: Bytes used: 11672064\nflashfs[0]: Bytes available: 20841984\nflashfs[0]: flashfs fsck took 10 seconds.\n...done Initializing Flash.\n\nswitch: dir flash:\nDirectory of flash:\/\n\n&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;-rwx&nbsp;&nbsp;1919&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private-config.text\n&nbsp;&nbsp;&nbsp;&nbsp;3&nbsp;&nbsp;-rwx&nbsp;&nbsp;11660773&nbsp;&nbsp;&lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c2960-lanbasek9-mz.122-58.SE2.bin\n&nbsp;&nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;-rwx&nbsp;&nbsp;1140&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vlan.dat\n&nbsp;&nbsp;&nbsp;&nbsp;5&nbsp;&nbsp;-rwx&nbsp;&nbsp;3096&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; multiple-fs\n&nbsp;&nbsp;&nbsp;&nbsp;6&nbsp;&nbsp;-rwx&nbsp;&nbsp;2816&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; config.text\n\n20841984 bytes available (11672064 bytes used)\n\nswitch: del flash:config.text\nAre you sure you want to delete &quot;flash:config.text&quot; (y\/n)?y\nFile &quot;flash:config.text&quot; deleted\n\nswitch: del flash:vlan.dat\nAre you sure you want to delete &quot;flash:vlan.dat&quot; (y\/n)?y\nFile &quot;flash:vlan.dat&quot; deleted\n\nswitch: boot\nLoading &quot;flash:\/c2960-lanbasek9-mz.122-58.SE2.bin&quot;...@@@@@@@@@@@@@@@@@@@@@@@@@@@\nFile &quot;flash:\/c2960-lanbasek9-mz.122-58.SE2.bin&quot; uncompressed and installed, ent0\nexecuting...\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Restricted Rights Legend\n\nUse, duplication, or disclosure by the Government is\nsubject to restrictions as set forth in subparagraph\n(c) of the Commercial Computer Software - Restricted\nRights clause at FAR sec. 52.227-19 and subparagraph\n(c) (1) (ii) of the Rights in Technical Data and Computer\nSoftware clause at DFARS sec. 252.227-7013.\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cisco Systems, Inc.\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 170 West Tasman Drive\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; San Jose, California 95134-1706\n\nCisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(58)SE2, RE)\nTechnical Support: http:\/\/www.cisco.com\/techsupport\nCopyright (c) 1986-2011 by Cisco Systems, Inc.\nCompiled Thu 21-Jul-11 02:13 by prod_rel_team\n\nInitializing flashfs...\n\n. . . SNIP . . .\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --- System Configuration Dialog ---\n\nEnable secret warning\n----------------------------------\nIn order to access the device manager, an enable secret is required\nIf you enter the initial configuration dialog, you will be prompted for the enat\nIf you choose not to enter the intial configuration dialog, or if you exit setu,\nplease set an enable secret using the following CLI in configuration mode-\nenable secret 0 &lt;cleartext password&gt;\n----------------------------------\nWould you like to enter the initial configuration dialog? [yes\/no]:no\n<\/code><\/pre><br \/>\nNow you have a clean slate to work with.<br \/>\n&nbsp;<br \/>\nResources<br \/>\n<a href=\"https:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/switches\/lan\/catalyst2960\/hardware\/installation\/guide\/2960_hg\/hgcliset.html\" target=\"_blank\">https:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/switches\/lan\/catalyst2960\/hardware\/installation\/guide\/2960_hg\/hgcliset.html<\/a><br \/>\n<a href=\"https:\/\/fatmin.com\/2012\/12\/02\/how-to-reset-cisco-catalyst-2960-back-to-factory-defaults\/comment-page-1\/\" target=\"_blank\">https:\/\/fatmin.com\/2012\/12\/02\/how-to-reset-cisco-catalyst-2960-back-to-factory-defaults\/comment-page-1\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First step is connecting the Cisco console to our workstation. I chose to use the Console cable plugged into a Prolific Serial-to-USB adapter. While you can plug your adapter into your Windows workstation and connect via Putty I do not recommend it. Even at Windows 7 I have issues with the adapter and I\u2019m not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,5],"tags":[161,18],"class_list":["post-1027","post","type-post","status-publish","format-standard","hentry","category-configuration","category-installing-using-tools","tag-cisco","tag-configuration-2"],"_links":{"self":[{"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/posts\/1027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1027"}],"version-history":[{"count":9,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/posts\/1027\/revisions"}],"predecessor-version":[{"id":1050,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/posts\/1027\/revisions\/1050"}],"wp:attachment":[{"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}