{"id":914,"date":"2013-03-15T15:07:28","date_gmt":"2013-03-15T22:07:28","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=914"},"modified":"2013-03-15T15:07:28","modified_gmt":"2013-03-15T22:07:28","slug":"recover-a-cisco-switch-password","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=914","title":{"rendered":"Recover a Cisco switch password"},"content":{"rendered":"<p>Used this procedure to get back into a Cisco 35xx switch that I forgot the enable password.<\/p>\n<p>Unplug switch.<br \/>\nPush and hold the mode button on the front of the switch, and plug the switch in.<\/p>\n<p>At the switch prompt, enter flash_init<\/p>\n<blockquote><p>switch: flash_init<br \/>\nInitializing Flash&#8230;<br \/>\nflashfs[0]: 456 files, 6 directories<br \/>\nflashfs[0]: 0 orphaned files, 0 orphaned directories<br \/>\nflashfs[0]: Total bytes: 32514048<br \/>\nflashfs[0]: Bytes used: 9057280<br \/>\nflashfs[0]: Bytes available: 23456768<br \/>\nflashfs[0]: flashfs fsck took 13 seconds.<br \/>\n&#8230;done Initializing Flash.<br \/>\nBoot Sector Filesystem (bs) installed, fsid: 3<br \/>\nSetting console baud rate to 9600&#8230;<\/p><\/blockquote>\n<p>Once back at the switch prompt, enter load_helper.<\/p>\n<blockquote><p>switch: load_helper<\/p><\/blockquote>\n<p>Temporarily, rename the current config.<\/p>\n<blockquote><p>switch: rename flash:config.text flash:config.backup<\/p><\/blockquote>\n<blockquote><p>switch: boot<\/p>\n<p>Would you like to terminate autoinstall? [yes]: yes<\/p>\n<p>         &#8212; System Configuration Dialog &#8212;<\/p>\n<p>Would you like to enter the initial configuration dialog? [yes\/no]: no<\/p><\/blockquote>\n<p>Enable with no pasword:<\/p>\n<blockquote><p>Switch>enable<br \/>\nSwitch#<\/p><\/blockquote>\n<p>Rename the config renamed earlier:<\/p>\n<blockquote><p>Switch#rename flash:config.backup flash:config.text<br \/>\nDestination filename [config.text]? <\/p><\/blockquote>\n<p>Now, copy it to be your running config:<\/p>\n<blockquote><p>Switch#copy flash:config.text system:running-config<br \/>\nDestination filename [running-config]?\n<\/p><\/blockquote>\n<p>Fix your mistake:<\/p>\n<blockquote><p>Zswitch(config)#no enable secret<br \/>\nZswitch(config)#enable password <em>mysupersecretpassword<\/em><\/p><\/blockquote>\n<p>Copy the updated running config to be the startup:<\/p>\n<blockquote><p>Zswitch(config)#exit<br \/>\nZswitch#copy running-config startup-config<br \/>\nDestination filename [startup-config]? <\/p><\/blockquote>\n<p>I reloaded the switch to verify I could get in now.<\/p>\n<blockquote><p>Zswitch#reload<br \/>\nProceed with reload? [confirm]<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Used this procedure to get back into a Cisco 35xx switch that I forgot the enable password. Unplug switch. Push and hold the mode button on the front of the switch, and plug the switch in. At the switch prompt, enter flash_init switch: flash_init Initializing Flash&#8230; flashfs[0]: 456 files, 6 directories flashfs[0]: 0 orphaned files, [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[319,249,320,321],"class_list":["post-914","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-cisco","tag-password","tag-recovery","tag-switch"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=914"}],"version-history":[{"count":1,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/914\/revisions"}],"predecessor-version":[{"id":915,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/914\/revisions\/915"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}