



In this tutorial, we are going to illustrate how to successfully download, configure, & boot a new IOS image on a Cisco router or switch.

The following information must be determined before attempting to upgrade the
IOS image on the Cisco network device:
Once you have verified all the above, you can take the following steps to download and boot a new IOS image.
Once this has been completed, you are ready to change the boot statement so that the correct image is booted.
In this example, we are going to specify the new image first, however, we are then going to specify the original image second, in case the router has a problem booting the new one. This ensures our router boots a working image to avoid having a router stuck in rommon mode.| SYNTAX | DESCRIPTION |
| router | |
| copy tftp flash | The first step to begin the process of downloading a new image |
Following this, you will be prompted by the device to answer a few questions:
Then the router will attempt to access the image via TFTP from the specified TFTP server, then it will ask you if you want to erase the existing flash before copying. I do not recommend deleting the existing flash unless you must in order to free up space to hold the new image. Once you have answered this last question, & hit enter, you should starts seeing a lot of “!’s scrolling across the screen, which indicates the file is being downloaded. If the download fails, you will get an error indicating why it failed. The most common type of problems are file permissions issues, IP connectivity issues, or not enough flash to hold the
new image.
Once completed, the flash will most likely be verified automatically, to make sure there is no corruption with the file. However, some platforms allow you to verify it manually by issuing the “verify flash <image-name>” command. This will also check the flash over to make sure it is OK.
The reason why the image “c2800nm-ipbase-mz.123-8.T6.bin” will be booted & not the other is simply because of the order the commands were put in. To verify the order is correct, issue the show run command and make sure the primary image is listed before the secondary.
Once you have finished setting the boot statements, issue the “reload” command from EXEC mode. This will reload the router & load the new image. If the router fails to load the new image, the router will try the second image that was working previously.
To verify the new image was loaded, issue the “show version” command from EXEC mode. This will display the current IOS.
Is the TFTP file transfer over a slow WAN link? If there is a Cisco router that has the code you need and it is reachable over a higher speed link, you can set that router up as a TFTP server. From the router you want to become a TFTP server, issue the following command in global configuration mode:
tftp-server flash:<flash file name>
So if we wanted Router B to act as a TFTP server for the image mentioned above,
we would issue the following command from global-config mode:
| SYNTAX | DESCRIPTION |
| router | |
tftp-server flash: c2800nm-ipbase-mz.123-8.T6.bin |
Set the router up to serve as a TFTP server for the specified image |
| SYNTAX | DESCRIPTION |
| router | |
| boot system flash c2800nm-ipbase-mz.123-8.T6.bin | Set the router to first boot this specified image |
| boot system flash | Set the router to boot this specified image if the previous image can’t be booted |