{"id":22529,"date":"2021-10-13T03:07:38","date_gmt":"2021-10-13T03:07:38","guid":{"rendered":"https:\/\/ded9.com\/?p=22529"},"modified":"2025-12-24T08:30:30","modified_gmt":"2025-12-24T08:30:30","slug":"how-to-restore-cisco-ios-equipment-with-tftp","status":"publish","type":"post","link":"https:\/\/ded9.com\/de\/how-to-restore-cisco-ios-equipment-with-tftp\/","title":{"rendered":"How to Restore Cisco IOS Equipment With TFTP"},"content":{"rendered":"<p><span style=\"font-size: 12pt;\">Network Experts Recommend That The Best Way To Get Acquainted With Network Equipment And Troubleshoot Devices Is To Do Tasks And Configurations Practically, Because You Can Never Get Practical Concepts With Theoretical Knowledge Alone.\u00a0<\/span><\/p>\n<p>Of course, it is recommended that this be done on equipment nearing the end of its life when the warranties are no longer valid.<\/p>\n<p>When Cisco switches or routers have a problem, the best option is to recover or troubleshoot the console cable, but sometimes circumstances require us to look for other solutions.<\/p>\n<p>One significant problem for network administrators is recovering or upgrading the IOS operating system on Cisco devices.<\/p>\n<p>This article examines how to solve this problem using tftpdnld in a familiar environment. If the device&#8217;s operating system runs without issues, you are lucky; this guide is for you if you encounter a problem.<\/p>\n<p>We recommend backing up iOS first so you have a reliable backup in case the original fails. Several articles describe restoring IOS to cyberspace equipment.<\/p>\n<p>However, this article outlines the steps for users without the necessary technical experience.<\/p>\n<p>To follow this article to the end, you need a terminal simulator to see the Cisco device&#8217;s output. I often use TeraTerm (free) or <a href=\"https:\/\/ded9.com\/what-is-putty-and-how-to-connect-to-linux-server\/\">PuTTY<\/a> (free), or SecureCRT (excellent but not free).<\/p>\n<h2><span style=\"font-size: 18pt;\">1. Connect to your device using the settings manually:<\/span><\/h2>\n<p><strong>Baud rate: 9600 (bits per second)<\/strong><\/p>\n<p><strong>Data bits: 8<\/strong><\/p>\n<p><strong>Parity: none<\/strong><\/p>\n<p><strong>Stop bits: 1<\/strong><\/p>\n<p><strong>Flow control: none<\/strong><\/p>\n<p>If the router is connected directly to the network, the flash drive likely has no IOS file. Use the dir Flash command to ensure this is in a familiar environment. If you do not see the file named xxxxx.bin, it means that the IOS does not exist.<\/p>\n<h2><span style=\"font-size: 18pt;\">2. The next step is configuring a TFTP server that controls transferring the IOS to the router.<\/span><\/h2>\n<p>For the convenience of a free TFTP server on the Internet by Philip Junin at\u00a0<a href=\"http:\/\/tftpd32.jounin.net\/\" target=\"_blank\" rel=\"noopener\">http:\/\/tftpd32.jounin.net\/<\/a>Built in 32 and 64-bit versions available. Ensure that the above server is installed and set up by the router and accessible through the network.<\/p>\n<p>Connect an Ethernet cable to the FastEthernet 0.0 router interface. If, as mentioned, you have made a backup of Cisco IOS, you are now ready to do the following.<\/p>\n<p>If not, you need to find another way to get IOS. If you plan to do the above steps in an enterprise environment, there is likely a SmartNet agreement (or support) between your organization and Cisco.<\/p>\n<p>If you purchased your device from a reputable company, you can use Cisco Support Services. Cisco has put the IOS files ready on its website for registered customers. Once iOS is in the leading TFTP directory, you can perform a recovery operation.<\/p>\n<p>You can quickly check the current environment settings within the familiar environment by running the set command and going back to the previous step. The above solution allows you to access the set of locations that are important to you.<\/p>\n<h3><span style=\"font-size: 14pt;\">The return values \u200b\u200bare as follows:<\/span><\/h3>\n<p>IP_ADDRESS = 10.1.10.100 (IP address used by the router)<\/p>\n<p>IP_SUBNET_MASK = 255.255.0.0 (Mask used by the router)<\/p>\n<p>DEFAULT_GATEWAY = 10.1.10.1 (optional)<\/p>\n<p>TFTP_SERVER = 10.1.10.120 (IP address of your TFTP server machine)<\/p>\n<p>TFTP_FILE = xxxxxxxxxxxxxxx.bin<\/p>\n<p>The easiest way to enter the IOS file name is to check the TFTP root folder on your TFTP server. To make it easier to work in the TFTP root folder in TFTPD, click the Show Dir button (Figure 1). After doing this, click the Explorer button (Figure 2).<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-22531\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-32.jpeg\" alt=\"The easiest way to enter the IOS file name is to check the TFTP root folder on your TFTP server. To make it easier to work in the TFTP root folder in TFTPD, click the Show Dir button\" width=\"407\" height=\"342\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-32.jpeg 407w, https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-32-300x252.jpeg 300w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><\/p>\n<h4 style=\"text-align: center;\">figure 1<\/h4>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22532\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-33.jpeg\" alt=\"After doing this, click the Explorer button\" width=\"347\" height=\"217\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-33.jpeg 347w, https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-33-300x188.jpeg 300w\" sizes=\"(max-width: 347px) 100vw, 347px\" \/><\/p>\n<h4 style=\"text-align: center;\">figure 2<\/h4>\n<p>Doing so will open a File Explorer instance with the selected TFTP Root folder. Locate the iOS file (.bin) and click it once to select it. Then right-click the file, copy its name, and paste it into Familiar. If you do not use this method to copy the file name, there is an option to enter the file name manually, but the error occurs when typing a lot.<\/p>\n<p>After entering the required information, run the &#8220;tftpdnld&#8221; command again in the common directory. You will see a confirmation message listing the newly entered values. If they are correct, type &#8220;y&#8221; and press Enter.<\/p>\n<p><strong>rommon x&gt; tftpdnld<\/strong><\/p>\n<p><strong>IP_ADDRESS: 10.1.10.200<\/strong><\/p>\n<p><strong>IP_SUBNET_MASK: 255.255.0.0<\/strong><\/p>\n<p><strong>DEFAULT_GATEWAY: 10.1.1.1<\/strong><\/p>\n<p><strong>TFTP_SERVER: 10.1.10.120<\/strong><\/p>\n<p><strong>TFTP_FILE: c2600-adventerprisek9-mz.124-23.bin<\/strong><\/p>\n<p>A message appears that you should only use the above command for post-disaster recovery. Otherwise, all the data stored on all existing partitions of the flash drive will be erased! Do you want to continue? Press the Y key.<\/p>\n<p><strong>y \/ n: [n]: (Invoke this command for disaster recovery only. WARNING: all existing data in all partitions on Flash will be lost! Do you wish to continue? y \/ n: [n] \ud83d\ude42<\/strong><\/p>\n<p>If everything goes well, you will see the output from Figure 3 in your console window.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-22533\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-34.jpeg\" alt=\"If everything goes well, you will see the output from Figure 3 in your console window.\" width=\"835\" height=\"669\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-34.jpeg 835w, https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-34-300x240.jpeg 300w, https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-34-768x615.jpeg 768w\" sizes=\"(max-width: 835px) 100vw, 835px\" \/><\/p>\n<h4 style=\"text-align: center;\">Figure 3<\/h4>\n<p>Next, you should see a confirmation message (indicating that the file is being copied) similar to what you saw in the TFTP server window (Figure 4). When the copy is complete (which takes only two minutes or less using this method), the following lines are displayed:<\/p>\n<p><strong>File reception completed. Copying file c2600-adventerprisek9-mz.124-23.bin to flash. Erasing Flash at 0x604c0000<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-22534\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-35.jpeg\" alt=\"Next, you should see a confirmation message (indicating that the file is being copied) similar to what you saw in the TFTP server window (Figure 4).\" width=\"405\" height=\"341\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-35.jpeg 405w, https:\/\/ded9.com\/wp-content\/uploads\/2021\/10\/word-image-35-300x253.jpeg 300w\" sizes=\"(max-width: 405px) 100vw, 405px\" \/><\/p>\n<h4 style=\"text-align: center;\">Figure 4<\/h4>\n<p>At this point, the flash memory is cleared automatically. Depending on the flash drive&#8217;s size, this process takes two to five minutes.<\/p>\n<p>After clearing the Flash, a message is displayed.<\/p>\n<h3><strong>Program flash location 0x60020000<\/strong><\/h3>\n<p>Flash is now loaded using the iOS file. This process is time-consuming on some devices. After completing it, you will return to the standard notification.<\/p>\n<p>Type the reset command to boot the device from the copied IOS file. If the IP addresses shown in this article differ from yours, you must use the correct IP address when entering the instructions.<\/p>\n<p>The critical thing to remember is that the TFTP server IP address and the IP address used inside the room to identify the device must be on the same network. Set the port number and other items.<\/p>\n<h2>FAQ<\/h2>\n<div id=\"rank-math-rich-snippet-wrapper\"><div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-1\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What is the purpose of using TFTP to restore Cisco IOS?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>TFTP is used to transfer the IOS image file to Cisco network equipment to recover or upgrade the operating system.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-2\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How do you restore Cisco IOS using TFTP?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Set up a TFTP server, connect the device to the network, enter ROMmon or recovery mode, and push the IOS image file to the device.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-3\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What should you check after the IOS restore?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Verify the new IOS image loads correctly, ensure proper configuration, and confirm the device boots normally.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Network Experts Recommend That The Best Way To Get Acquainted With Network Equipment And Troubleshoot Devices Is To Do Tasks And Configurations Practically, Because You Can Never Get Practical Concepts With Theoretical Knowledge Alone.\u00a0 Of course, it is recommended that this be done on equipment nearing the end of its life when the warranties are [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":22530,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[96],"tags":[3188,11740],"class_list":["post-22529","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-network","tag-putty","tag-tftp"],"acf":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/22529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/comments?post=22529"}],"version-history":[{"count":5,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/22529\/revisions"}],"predecessor-version":[{"id":266444,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/22529\/revisions\/266444"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/media\/22530"}],"wp:attachment":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/media?parent=22529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/categories?post=22529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/tags?post=22529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}