20.2 IOS Image Management Cisco Forum FAQ
Links: home · search · speed test · login · more ·


Search for: in all FAQs
FAQ RevisionsEditors: skj, Covenant, aryoba, Phraxos
Last modified on 2008-11-21 15:11:04

20.2 IOS Image Management

·How to prepare TFTP server with freeware
·How do I upgrade a Cisco router IOS image or to backup to my computer?
·Deleted/Corrupted/Wrong Type/No IOS image and router won't boot
·How do I copy a 2600 IOS image to 16MB flash when the router says it won't fit?
Do you need to have TFTP server? You need to install the TFTP software first. Here are few links on how to get it and install it for * FREE *

Windows:
SolarWinds TFTP

Note:
It has been known that the SolarWinds TFTP daemon can't handle any IOS files that are above 32MB in size. You may want to use other TFTP daemon instead.

http://tftpd32.jounin.net/

3Com TFTP

Mac OS X:
http://www.macupdate.com/info.php/id/11116

Linux:
http://www.linux.com/howtos/Clone-HOWTO/setting-up.shtml

Make sure that your computer specification (the would-be-TFTP-server) meets the TFTP software requirements. Don't worry, usually TFTP software does not require high-end or specialized computer or server. Even Pentium Pro running Windows 95 can be a rock-solid TFTP server.


Thanks to aryoba and Phraxos for submitting the links above.

feedback form

by Covenant edited by aryoba
last modified: 2008-05-15 14:41:53

Please note:

If your equipment is Cisco 801-805 Router that uses Tiny ROM, then please use the following guide instead.

Cisco IOS Software Upgrade Procedure for Cisco 801, 802, 803, 804, and 805 Series Routers

Need to make backup image? Or need to download image? Try the following:

1) Backup image to TFTP server
Router>enable
Router#copy flash:{your IOS image filename} tftp://{TFTP server IP address}

2) Download image from TFTP server
Router>enable
Router#copy tftp://{TFTP server IP address} flash:

Upgrade or Download Router IOS image to Flash Memory

1)
To transfer an IOS from PC --> ROUTER, the following conditions must meet

* IOS image the router to have is in working condition since corrupted IOS image won't do any good
* IOS image the router to have meets the router DRAM and flash memory size. Keep in mind that maximize router DRAM and flash memory size before IOS image upgrade is always a good idea to make sure the router can fit and can run any IOS image version
* When the router is still running the older IOS image version, backup the older IOS image to TFTP or FTP server (the next steps explain this further). This backup should perform before any IOS image upgrade. In case of unsuccessful IOS image upgrade (due to too-small DRAM size, corrupted IOS image, etc.) it is always a good to know that you are able to reverse the change by putting back the older IOS image (the one that you backup earlier) to the router

2)
In order to transfer an IOS image you will need to run a TFTP program on your computer. Your computer will then become TFTP server during the IOS image transfer. A simple FREE one can be found here
»Cisco Forum FAQ »How to prepare TFTP server with freeware

Note that when the router is running newer IOS image, IOS image transfer using FTP server is also supported. If you prefer to use FTP session to transfer the IOS image and the router IOS currently supports it, then FTP transfer is another choice. The rest of this FAQ will use TFTP transfer however.

3)
It is recommended that the PC (the TFTP server) is on the same subnet as your router. Easiest way is to assign a static IP to your machine [x.x.x.100 255.255.255.0]. If there is a switch between the PC (the TFTP server) and the router, then also make sure both PC and router are within the same VLAN or the same broadcast domain.

When your network is using hub instead of switch, then there might be some collision that severely degrade the TFTP traffic flow; hence screwing up the download or upload process. In this case, it is highly suggested to use either a switch or simply back-to-back connection using crossover cable between the router and the PC.

4)
Next go to the privilege exec prompt and type

r1#copy tftp flash

It will ask you for 3 things.
1. The IP address of your server. Enter whatever you set your PC IP address to.
2. The name of the IOS source file. Enter the exact name of the IOS file you are trying to install. If its not named the same the transfer will fail. It may ask you for the destination filename as well.
3. It will also ask you if you wish you to erase your flash before copy, say yes

If everything works it will look something like close to this.

r1#copy tftp flash
Address or name of remote host []? 10.50.50.100
Source filename []? c2600-i-mz.121-14.bin
Destination filename [c2600-i-mz.121-14.bin]?y
Accessing t»»ftp://10.50.50.100/c2600-i-mz.121-14.bin...
Erase flash: before copying? [confirm]y
Erasing the flash filesystem will remove all files! Continue? [confirm]y
Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeee ...erased
Erase of flash: complete
Loading c2600-i-mz.121-14.bin from 10.10.10.2 (via Ethernet0/0):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 4501480/9001984 bytes]

Verifying checksum... OK (0xAC8A)
4501480 bytes copied in 56.88 secs (80383 bytes/sec)


5)
After the IOS transfers you will need to reboot. The router then may ask if you want to save the router configuration. Depending on if you changed your IP address to a new scheme or just used the same address you may or may not want to save your config.

Backup Router IOS image to TFTP Server

In order to backup an IOS from ROUTER --> PC, use the similar steps. However on Step 4, you need to enter a different command. This is where you want to make sure the TFTP server can send and receive.

r1#copy flash tftp

The rest of steps are applicable still.

When The Router Does Not Boot

Note that this tip is applicable when the router is currently able to bootup normally. When the router does not boot normally or does not boot at all, then check out the next tip.

»Cisco Forum FAQ »Deleted/Corrupted/Wrong Type/No IOS image and router won't boot

feedback form

by dpocoroba edited by aryoba
last modified: 2008-10-30 14:42:57

Introduction

When you have to troubleshoot a router that has no working IOS image on its flash, then you have several choices to revive. They are the following

* Use tftpdnld command on the ROMMON mode
* Use dnld command on the ROMMON mode when tftpdnld command is not available due to old version of ROMMON chip
* Borrow other router flash memory chip
* Borrow other router platform functionality

Follwing is the discussion.

Use tftpdnld command on the ROMMON mode

If you have deleted or installed the wrong IOS (or one that is too big for the memory fitted on your router) then the router may crash or boot to the ROMMON (ROM Monitor) prompt. If the router crashes, restart it and enter the break sequence when it restarts to get to the ROMMON prompt. Once you are inside the ROMMON mode, you can download a new IOS from a TFTP server.

Note that break sequence to enter ROMMON mode varies, which depends on your Terminal Emulator software and Operating System PC you are running. Check out the following link to find out proper break sequence.

Standard Break Key Sequence Combinations To Enter ROMMON Mode
http://www.cisco.com/en/US/products/hw/routers/ps133/products_tech_note09186a0080174a34.shtml

As a note that when you don't have yet TFTP server, you can prepare one for free. Free TFTP software can be found here »Cisco Forum FAQ »How to prepare TFTP server with freeware. From protocol perspective, please note that TFTP is completely different to FTP and the two are not interchangeable.

The variables you need to enter directly at the ROMMON prompt are:


Keep in mind that the router and the TFTP server needs to be in the same subnet and have the same default gateway.

Following is an illustration. Let us say that the TFTP server setting are the following.

IP address: 10.0.0.25
Subnet Mask: 255.255.255.0
Default Gateway: 10.0.0.1

There is a c1700-k9o3sy7-mz.124-5a.bin file at the TFTP server default directory to copy to the router.

To match the above setting, here are ROMMON setting.


You can check that everything is set up correctly by entering set on its own.

Once you are happy then enter tftpdnld at the ROMMON prompt and your IOS image will be installed from your TFTP server.

N.B. This will erase the flash so any other files stored there will be lost. If you want to boot from the image on the TFTP server without writing it to flash then use the command tftpdnld -r. This will load the IOS on the TFTP server into router memory and boot the router from it but the flash will remain unchanged.

With ROMMON mode case is important so make sure you enter commands and variables in upper or lower case as detailed here.

For more troubleshooting info using tftpdnld command, please check out the following FAQ:
»Cisco Forum FAQ »Corrupt image & router boots into rommon mode

Use dnld command on the ROMMON mode

Some routers that have older version of ROMMON chip don't have tftpdlnd command available. When this is your case, then you could use the dnld command which is serving similar functionality as the tftpdnld command. Using dnld command, you will be downloading working IOS image through RS-232 serial port (i.e CONSOLE or AUX ports). The largest issue to use those serial ports is that the transfer rate is slow compared to the Ethernet-based tftpdnld command transfer rate even though you set the rate to 115200 bps (the "fastest possible" RS-232 serial port transfer rate). Therefore you might want to use the next alternatives to revive routers.

Borrow other router flash memory chip

The key is to keep various router platforms that share the same flash memory chip hardware specification. You can take this advantage to revive routers that has no tftpdnld command on their ROMMON mode. Following is illustration.

You may note that 2500, 2600, 3600, and 4000/4500/4700 series routers share the same flash memory chip hardware specification. The 4000/4500/4700 series routers run older ROMMON chips that has no tftpdnld command available on their ROMMON mode. Fortunately for 2500 series router, Cisco offers newer version ROMMON chips that has tftpdnld command available on their ROMMON mode. With 2600 and 3600 series routers, they come from factory carrying the newer version ROMMON mode already.

Let's say you have to revive a 4500 router. You can pick up a working 2600 router to revive. Download the proper 4500 IOS image into the 2600 router flash memory chip. Note that the 2600 router might complain that IOS image you download is unsuitable for the 2600 router. You can safely ignore the message since you then will move the flash memory chip into the 4500 router to revive the router.

Borrow other router platform functionality

Let's consider similar illustration. You still need to use the 2600 series router to revive the 4500 series router. This time you temporarily remove the 2600 series router flash memory chip and place the 4500 series router flash memory chip into the 2600 series router. Using tftpdlnd command available on the 2600 series router ROMMON mode, download proper 4500 series router IOS image into the flash memory chip. You then move back the 4500 series router flash memory chip to the 4500 series router. You now should be able to boot up the 4500 series router without problem. Don't forget to place back the original 2600 series router flash memory chip to the 2600 series router.

The previous illustration shows that you need to utilize the tftpdnld command available on the 2600 ROMMON mode. This means that the 2600 series router has to boot up or enter into ROMMON mode which is generally unwanted. The preferable is to revive via CLI mode instead.

When you use a router that has PCMCIA memory slot like 3600 series router, you can revive via CLI mode. Here is how to do it. Verify that the PCMCIA memory card has a working 3600 series router IOS image. Also verify that the 3600 series router is configured to boot up from PCMCIA memory card in case no valid IOS image is found on the flash memory chip.

As previous illustration, you temporarily remove the 3600 series router flash memory chip and place the 4500 series router flash memory chip into the 3600 series router. Note that the 3600 series router will boot up using IOS image found on the PCMCIA memory card. In other words, the 3600 series router boots up into CLI mode as normal. You then download proper 4500 series router IOS image into the flash memory chip from CLI mode using copy tftp flash command. You then move back the 4500 series router flash memory chip to the 4500 series router. You now should be able to boot up the 4500 series router without problem. Don't forget to place back the original 3600 series router flash memory chip to the 3600 series router.

For more info regarding router models that share the same DRAM/Flash memory chip hardware specification, check out the following FAQ.
»Cisco Forum FAQ »Cisco equipment memory chip specification

Suggestions

You should have a way to keep working IOS image accessible at all times. From the above illustrations, here are some suggestions.

* Keep identical routers (i.e. the same router model, the same DRAM and flash memory size, the same ROMMON chip, the same IOS image) around to backup each other
* Keep several flash memory chips that contain working IOS image for each router platform you have
* Keep various router platform that share the same flash memory chip hardware specification
* Prefer to use routers that has PCMCIA memory slot to revive routers
* Store backup IOS images safely on other media such as CD-ROM, DVD, USB keys, or tape backup

And of course, keep having TFTP server available and maintain your Smartnet contract so you can keep downloading IOS image from Cisco website.

feedback form

by Phraxos edited by aryoba
last modified: 2008-10-30 14:50:23

This is a known issue and there is a Cisco document that details what you have to do:

Image Does Not Fit Onto Default 16MB Flash Card For 2610/2611/2612/2613/2620/2621 Routers

Please note that after performing the squeeze operation, when you copy the image to flash, you will be asked if you want to erase the flash - make sure you answer "no" or you will wipe out the effects of what you have already done.

feedback form

by Phraxos edited by aryoba
last modified: 2008-03-18 14:21:57


Thank you for using lo-fi dslreports.com - report bugs
© 99-2008 silver matrix LLC