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 in 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.
show feedback form
close
by Phraxos edited by aryoba  last modified: 2008-01-17 15:34:13 |