06-14-2021 08:16 PM
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.
Solved! Go to Solution.
06-14-2021 08:39 PM - edited 06-14-2021 08:40 PM
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
06-14-2021 10:08 PM
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
06-14-2021 10:50 PM
The variables are case sensitive.
## Make sure to mark post as helpful, If it resolved your issue. ##
06-14-2021 08:39 PM - edited 06-14-2021 08:40 PM
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
06-14-2021 08:49 PM
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)
06-14-2021 08:55 PM
Hello
Did you perfrom the steps i provided
Type = set < before you apply any tftp config?
06-14-2021 08:57 PM
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
06-14-2021 10:08 PM
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
06-14-2021 10:50 PM
The variables are case sensitive.
## Make sure to mark post as helpful, If it resolved your issue. ##
06-14-2021 10:42 PM
Thank you for your help.
06-14-2021 11:12 PM
Why? What is this long, and un-necessary, process for?
2900 have removeable CF.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide