cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
3587
Views
5
Helpful
8
Replies

downloading image file from TFTP server in flash from rom mode

Hello my router has missing the IOS file but i have the copy of the file in my tftp server. due to missing file, my router goes directly to rom mode. I tried tftpdnld command in case and i got this output 

rommon 5 > Ip_address=192.168.1.1

rommon 6 > ip_subnet_mask=255.255.255.0

rommon 7 > tftp_server=192.168.1.2

rommon 8 > tftp-file=c2900-universalk9-mz.SPA.151-4.M4.bin

rommon 9 > tftpdnld

 

Missing or illegal ip address for variable IP_ADDRESS

Illegal IP address.

 

usage: tftpdnld

Use this command for disaster recovery only to recover an image via TFTP.

Monitor variables are used to set up parameters for the transfer.

(Syntax: "VARIABLE_NAME=value" and use "set" to show current variables.)

"ctrl-c" or "break" stops the transfer before flash erase begins.

 

The following variables are REQUIRED to be set for tftpdnld:

IP_ADDRESS: The IP address for this unit

IP_SUBNET_MASK: The subnet mask for this unit

DEFAULT_GATEWAY: The default gateway for this unit

TFTP_SERVER: The IP address of the server to fetch from

TFTP_FILE: The filename to fetch

 

The following variables are OPTIONAL:

TFTP_VERBOSE: Print setting. 0=quiet, 1=progress(default), 2=verbose

TFTP_RETRY_COUNT: Retry count for ARP and TFTP (default=7)

TFTP_TIMEOUT: Overall timeout of operation in seconds (default=7200)

TFTP_CHECKSUM: Perform checksum test on image, 0=no, 1=yes (default=1)

FE_SPEED_MODE: 0=10/hdx, 1=10/fdx, 2=100/hdx, 3=100/fdx, 4=Auto(deflt)

 

Is there any way I can copy the file from tftp to flash so that i can boot the device.

3 Accepted Solutions

Accepted Solutions

Hello

Example tftpdnld:
tftp server =172.16.1.10/24
Your Rtr = 172.16.1.4/24

 

power cycle router
Press crtl-break
Type -set

IP_ADDRESS=172.16.1.4
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=172.16.1.10
TFTP_SERVER=172.16.1.10
TFTP_FILE=xxxxxx.bin
TFTP_RETRY_COUNT=20


then type:
tftpdnld


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

Hello

try uppercase as shown-

set

IP_ADDRESS=192.168.1.1
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=192.168.1.252
TFTP_SERVER=192.168.1.2
TFTP_FILE=c2900-universalk9-mz.SPA.151-4.M4.bin
TFTP_RETRY_COUNT=20

tftpdnld


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

The variables are case sensitive.

 

 


## Make sure to mark post as helpful, If it resolved your issue. ##

 





## Make sure to mark post as helpful, If it resolved your issue. ##

View solution in original post

8 Replies 8

Hello

Example tftpdnld:
tftp server =172.16.1.10/24
Your Rtr = 172.16.1.4/24

 

power cycle router
Press crtl-break
Type -set

IP_ADDRESS=172.16.1.4
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=172.16.1.10
TFTP_SERVER=172.16.1.10
TFTP_FILE=xxxxxx.bin
TFTP_RETRY_COUNT=20


then type:
tftpdnld


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hello Paul,

 

thanks for replying, 

First of all my router goes directly to rom mode. 

I am still not able to copy ios file from tftp to flash:(

Here's the output i got when i tried tftp dnld

rommon 9 > tftpdnld

 

Missing or illegal ip address for variable IP_ADDRESS

Illegal IP address.

 

usage: tftpdnld

Use this command for disaster recovery only to recover an image via TFTP.

Monitor variables are used to set up parameters for the transfer.

(Syntax: "VARIABLE_NAME=value" and use "set" to show current variables.)

"ctrl-c" or "break" stops the transfer before flash erase begins.

 

The following variables are REQUIRED to be set for tftpdnld:

IP_ADDRESS: The IP address for this unit

IP_SUBNET_MASK: The subnet mask for this unit

DEFAULT_GATEWAY: The default gateway for this unit

TFTP_SERVER: The IP address of the server to fetch from

TFTP_FILE: The filename to fetch

 

The following variables are OPTIONAL:

TFTP_VERBOSE: Print setting. 0=quiet, 1=progress(default), 2=verbose

TFTP_RETRY_COUNT: Retry count for ARP and TFTP (default=7)

TFTP_TIMEOUT: Overall timeout of operation in seconds (default=7200)

TFTP_CHECKSUM: Perform checksum test on image, 0=no, 1=yes (default=1)

FE_SPEED_MODE: 0=10/hdx, 1=10/fdx, 2=100/hdx, 3=100/fdx, 4=Auto(deflt)

Hello
Did you perfrom the steps i provided
Type = set  < before you apply any tftp config?


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

I performed these steps before typing tftpdnld

 

 

rommon 3 > Ip_address=192.168.1.1

rommon 4 > IP_subnet_mask=255.255.255.0

rommon 5 > default_gateway=192.168.1.252

rommon 6 > tftp_server-192.168.1.2

monitor: command "tftp_server-192.168.1.2" not found

rommon 7 > tftp_server=192.168.1.2

rommon 8 > tftp_file=c2900-universalk9-mz.SPA.151-4.M4.bin

Hello

try uppercase as shown-

set

IP_ADDRESS=192.168.1.1
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=192.168.1.252
TFTP_SERVER=192.168.1.2
TFTP_FILE=c2900-universalk9-mz.SPA.151-4.M4.bin
TFTP_RETRY_COUNT=20

tftpdnld


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

The variables are case sensitive.

 

 


## Make sure to mark post as helpful, If it resolved your issue. ##

 





## Make sure to mark post as helpful, If it resolved your issue. ##

Thank you for your help. 

Leo Laohoo
Hall of Fame
Hall of Fame

Why?  What is this long, and un-necessary, process for? 

2900 have removeable CF.