tftp ios from rommon

Unanswered Question
Nov 20th, 2007

Hello,

1760 router image file is to large for the available memory. The router boots into rommon. I want to tftp the IOS image but I can't set the ip address on the router. I try using the ip_address but it will not take it.

Here are my only option from rommon after using help

break set/show/clear the breakpoint

confreg configuration register utility

cont continue executing a downloaded image

context display the context of a loaded image

cookie display contents of cookie PROM in hex

dev list the device table

dir list files in file system

dis display instruction stream

dnld serial download a program module

frame print out a selected stack frame

help monitor builtin command help

history monitor command history

meminfo main memory information

repeat repeat a monitor command

reset system reset

set display the monitor variables

stack produce a stack trace

sync write monitor environment to NVRAM

sysret print out info from last system return

tftpdnld tftp image download

unalias unset an alias

unset unset a monitor variable

xmodem x/ymodem image download

Please let me know how to set ip address gateway ect. Thanks

Jason

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Richard Burts Tue, 11/20/2007 - 19:27

Jason

It has been a while since I did this, and I am not sure that I have ever done it on a 1760, but I believe that the set command will allow you to set the variables, including ip address, gateway, etc, to allow you to tftpdnld the image file.

HTH

Rick

jason-calbert_2 Tue, 11/20/2007 - 19:44

Hello,

Thanks for the responce this is what I get when I use set

rommon 5 > set ip_address 192.168.1.5

usage: set

rommon 6 >

glen.grant Wed, 11/21/2007 - 05:48

Disaster Recovery with TFTP Download

The standard way to load new software on your router is using the copy tftp flash privileged EXEC command from the Cisco IOS software command-line interface (CLI). However, if the router is unable to boot the Cisco IOS software, you can load new software while in ROM monitor mode.

This section tells how, in ROM monitor mode, to download a Cisco IOS software image from a remote TFTP server to the router Flash memory. Use the tftpdnld command only for disaster recovery because it erases all existing data in Flash memory before downloading a new software image to the router.

Note A 10BASE-T Ethernet Port is not active in ROM monitor mode and, thus, cannot be used for TFTP download. The Cisco 1700 modular routers do not support the WIC-1ENET card in ROM monitor mode.

TFTP Download Command Variables

This section describes the system variables that can be set in ROM monitor mode and that are used during the TFTP download process. There are required and optional variables.

Note The commands described in this section are case sensitive and must be entered exactly as shown in the lists.

Required Variables

The following variables must be set with the commands shown before using the tftpdnld command:

Variable

Command

IP address of the router.

IP_ADDRESS= ip_address

Subnet mask of the router.

IP_SUBNET_MASK= ip_address

IP address of the default gateway of the router.

DEFAULT_GATEWAY= ip_address

IP address of the TFTP server from which the software will be downloaded.

TFTP_SERVER= ip_address

The name of the file that will be downloaded to the router.

TFTP_FILE= filename

Optional Variables

The following variables can be set with the commands shown before using the tftpdnld command:

Variable

Command

Whether or not the router performs a checksum test on the downloaded image:

1-Checksum test is performed.

0-No checksum test is performed.

TFTP_CHECKSUM=setting

Number of times the router attempts ARP and TFTP download. The default is 7.

TFTP_RETRY_COUNT= retry_times

Amount of time, in seconds, before the download process times out. The default is 2400 seconds (40 minutes).

TFTP_TIMEOUT= time

Configures how the router displays file download progress.

0-No progress is displayed.

1-Exclamation points (!!!) are displayed to indicate file download progress. This is the default setting.

2-Detailed progress is displayed during the file download process. For example:

Initializing interface.

Interface link state up.

ARPing for 1.4.0.1

ARP reply for 1.4.0.1 received. MAC address 00:00:0c:07:ac:01

TFTP_VERBOSE= setting

Using the TFTP Download Command

The steps described in this section should be performed while in ROM monitor mode.

Step 1 Use the appropriate commands to enter all the required variables and any optional variables.

Step 2 Enter the tftpdnld command as follows:

rommon 1 > tftpdnld [ -r ]

Note The -r variable is optional. Entering this variable downloads and boots the new software but does not save the software to Flash. You can then use the image that is in Flash the next time you enter the reload command in the Cisco IOS software CLI.

You will see output similar to the following:

IP_ADDRESS: 10.0.0.1

IP_SUBNET_MASK: 255.255.0.0

DEFAULT_GATEWAY: 1.3.0.1

TFTP_SERVER: 223.255.254.254

TFTP_FILE: c1700-bnr2sy-mz.070298

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]:

Step 3 If you are sure that you want to continue, enter y in response to the question in the output:

Do you wish to continue? y/n: [n]:y

The router will begin to download the new file.

Pressing Ctrl-C or Break stops the transfer before the Flash memory is erased.

jarredtaylor Wed, 11/21/2007 - 05:33

Jason,

If I'm not mistaken, you use the 'set' command to simply view the variables that have been configured. To configure the variables like IP address, gateway, etc. just enter them at the rommon prompt as follows:

IP_ADDRESS= ip_address

IP_SUBNET_MASK= ip_address

DEFAULT_GATEWAY= ip_address

TFTP_SERVER= ip_address

TFTP_FILE= filename

At that point you can issues the tftpdnld command and all should be well.

jason-calbert_2 Wed, 11/21/2007 - 07:04

when I enter these in rommon it won't take the commands. I know that they are case sensitive so I have tried them both ways.

Any help is appreciated. Thanks

Jason

glen.grant Wed, 11/21/2007 - 13:07

Don't know you should be able to input it , the commands in my note were copied right of the cisco doc , you should be able to cut and paste those commands in of course substituting your addresses where it says ip address , such as

IP_ADDRESS=192.168.0.1

IP_SUBNET_MASK=255.255.255.0

If that doesn't work then you may have to open a TAC case as that is the operational instructions in my previous note on how to tftp download from a 1700 rommon prompt.

It should look like this substituting your addresses.

rommon 1 > IP_ADDRESS=192.10.4.1

rommon 2 > IP_SUBNET_MASK=255.255.255.0

rommon 3 > DEFAULT_GATEWAY=192.10.4.254

rommon 4 > TFTP_SERVER=192.10.4.254

rommon 5 > TFTP_FILE=2600xm.bin

sbaddipu Wed, 11/21/2007 - 14:42

I think that should work. I did that on some old 2600 routers previously

satya

Actions

This Discussion