« Random "Trick" | Main | Two very cool switch commands »

November 2, 2006

Recovering IOS from ROMMON via TFTP

This information is here primarily for my reference at customer sites; for some odd reason, I seem to be recovering IOS images through ROMMON quite a bit lately. These are the minimum fields to get this going through TFTP rather than XModem.

rommon 1 > ...
IP_ADDRESS=192.168.1.100
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=192.168.1.1
TFTP_SERVER=192.168.1.50
TFTP_FILE=c2600-adventerprisek9-mz.124-5a.bin
tftpdnld (this command kicks off the tftp download)

Posted by JC at November 2, 2006 3:39 PM

Comments

When you do this, what interface is getting assigned the IP address? Does the router use the first Ethernet/FastEthernet interface?

Thanks,

Jeff

Posted by: Jeff at November 2, 2006 4:44 PM

Now THIS is handy to have! Thanks for the tip!

Jeff,

I may be wrong, and JC may correct me. But, I believe rommon builds it's own virtual interface, during the rommon session. When you leave the rommon session, you lose the configuration you made in it.

Cheers!
Aaron

Posted by: Aaron Paxson at November 2, 2006 6:34 PM

Yeah, it's the first LAN port (http://www.cisco.com/warp/public/471/76.html confirms this).

doing a "sync" (I think? check the rommon help) before the tftpdnld oughta make it remember the settings.

Posted by: cos at November 3, 2006 2:57 AM

I've used this same procedure to recover from an error of my own creation on my home lab. I only had one FE interface so I assume that the ip address would be assigned to the 0 interface (ie ethernet0, fe0/0).

Posted by: Dedan at November 3, 2006 11:34 AM

I believe this only works with an onboard fe interface. I had no luck on a 3640 that had nm interfaces in the past. Maybe I just got lucky with 2620xm. Way cooler than waiting on XModem. Like sledding on rocks to ice.

Posted by: David Lundgren at November 11, 2006 11:08 PM

It's funny you say that David - I just tried it on a 3640 and found the TFTPDNLD command missing from RomMon - I'd definitely say this is for routers that have a on-board FE interface.

Posted by: JC at November 12, 2006 3:42 PM

Did anyone catch my question/post about HSRP in the routing section? It's a little different since it applies to an ISP scenario. If I need to clarify the layout a little more for an answer I can do that.

Posted by: David Lundgren at November 13, 2006 8:17 PM

When assigning ip address in rommom of cisco router to which ethernet port the ip address will get assigned(If i had two ethernet port on my router)

Posted by: raghu at February 16, 2007 2:33 AM

Hey JC, I experienced exactly this. I couldn't find the command. But when I did a reboot on the machine, something odd happened. It seemed to download the image file after reboot.

Posted by: FR at April 13, 2007 1:39 AM

Thank yo very much. It did the work for me.

Posted by: Shams Iqbal at June 19, 2007 5:14 AM

Hi Jeremy,

I had a notebook containing these ROMMON commands used for recovering the image, just in case I forgot them. Today, I found out that if you simply type "tftpdnld", nothing happens (natch) but you do get a response containing all of the commands you need before initiating the download.

Also, for people who need to do an XModem transfer, you can set a config register value to boot from ROM and also set a higher baud rate.

0x3922 - Boots into ROM (ignoring break) with a console baud rate of 115200bps

http://www.cisco.com/application/pdf/paws/50421/config-register-use.pdf

Posted by: darenmatthews at October 5, 2008 4:54 PM

Hey!!! Need help!!! Please!!!!

I have a cisco 7200, but I formatted the bootflash and the slot0, I have nothing in the router. What can I do?

Posted by: quino82 at October 14, 2008 4:23 AM

Thank you Jeremy. I googled this and yours was the first to come up. I will see you in April!

Posted by: Robert Kim at March 2, 2009 9:36 AM

hi.I have a 3750 switch
then set IP_ADDRESS=192.168.1.100 dont light any leed off switch and cannot ping from tftp server it.
please help me.
tanks.

Posted by: javad at September 22, 2009 1:18 AM

www.ciscoblog.com is very pleasant to read. The article is very professionally written. I enjoyed reading www.ciscoblog.com. keep it that way.

Posted by: payday loans canada at November 27, 2009 11:36 PM

Substantially, the article is actually the freshest on this noteworthy topic. I harmonise with your conclusions and will thirstily look forward to your forthcoming updates. Just saying thanks will not just be adequate, for the extraordinary lucidity in your writing. I will instantly grab your rss feed to stay abreast of any updates. De lightful work and much success in your business dealings!

Posted by: Micahel at December 22, 2009 8:52 PM

Hello Sir
I am new to your site I hope you will help me.
In my cisco 2611 lab router i had some issue so i erased flash & CHANGE CONSOLE SPEED TO 115200 & reboot the router. After that i changed my connection settings & try to connect router it showing the console is connected but it is not boot up in Rommon mode so i can’t type anything. I tried to all eight connection speed one by one to connect via console but the result is same. Rommon mode is not showed up.
waiting for reply

& Many Thanks for CBT Nugget Series

Posted by: Sabby at January 3, 2010 12:48 AM

Thanks for posting this. Would be intrested to read more or possibly please contact me by email thank you!

Posted by: Oil Change at January 28, 2010 10:19 AM

Interessanter Blog und danke f

Posted by: Elidia Winsor at January 30, 2010 2:20 AM

Post a comment




Remember Me?

(you may use HTML tags for style)