{"id":158,"date":"2009-07-08T11:53:53","date_gmt":"2009-07-08T10:53:53","guid":{"rendered":"http:\/\/mccltd.net\/blog\/?p=158"},"modified":"2010-04-26T10:12:38","modified_gmt":"2010-04-26T09:12:38","slug":"recovering-ios-config-from-rommon-via-tftp","status":"publish","type":"post","link":"http:\/\/darenmatthews.com\/blog\/?p=158","title":{"rendered":"Recovering an IOS using TFTP and Xmodem"},"content":{"rendered":"<p>Have you lost or corrupted an IOS?\u00a0 These procedures descibe:<\/p>\n<ul>\n<li>How to recover an IOS from rommon using TFTP<\/li>\n<li>How to recover an IOS from switch: prompt using Xmodem<!--more--><\/li>\n<\/ul>\n<p><strong>This is the minimum configuration to recover via TFTP:<\/strong><\/p>\n<blockquote><p>rommon 1 &gt; IP_ADDRESS=192.168.1.100<br \/>\nrommon 2 &gt; IP_SUBNET_MASK=255.255.255.0<br \/>\nrommon 3 &gt; DEFAULT_GATEWAY=192.168.1.1<br \/>\nrommon 4 &gt; TFTP_SERVER=192.168.1.50<br \/>\nrommon 5 &gt; TFTP_FILE=c2600-adventerprisek9-mz.124-5a.bin<br \/>\nrommon 6 &gt; tftpdnld (this command kicks off the tftp download)<\/p><\/blockquote>\n<p><strong>If you are at the &#8220;switch:&#8221; prompt and therefore are unable to recover an IOS using TFTP, use this procedure to recover via Xmodem:<\/strong><\/p>\n<blockquote><p>switch: dir flash:<br \/>\nDirectory of flash:\/<\/p>\n<p>2\u00a0\u00a0\u00a0 -rwx\u00a0 2344\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;date&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 config.text<br \/>\n3\u00a0\u00a0\u00a0 -rwx\u00a0 24\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;date&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 private-config.text<br \/>\n5\u00a0\u00a0\u00a0 -rwx\u00a0 40\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;date&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 env_vars<br \/>\n6\u00a0\u00a0\u00a0 -rwx\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;date&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 system_env_vars<\/p>\n<p>15994368 bytes available (4608 bytes used)<\/p>\n<p>switch:copy xmodem: flash:c3550-ipservicesk9-mz.122-25.SEE.bin<br \/>\nBegin the Xmodem or Xmodem-1K transfer now&#8230;<br \/>\nCCCC<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Have you lost or corrupted an IOS?\u00a0 These procedures descibe: How to recover an IOS from rommon using TFTP How to recover an IOS from switch: prompt using Xmodem<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[3],"_links":{"self":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/158"}],"collection":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158"}],"version-history":[{"count":4,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":859,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions\/859"}],"wp:attachment":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}