upload IOS

Answered Question

I attempting to upload IOS to a FLASH drive on Cisco router 2821 via console.

But I'm getting a failure message:

"ARP: address resolution for 216.214.47.112 timed out.

ARP failed with failure code 1. TFTP transfer aborted."

Here is the input:

IP_ADDRESS=216.214.47.70

rommon 7 > IP_SUBNET_MASK=255.255.255.0

rommon 8 > DEFAULT_GATEWAY=216.214.47.1

rommon 9 > TFTP_SERVER=216.214.47.112

rommon 10 > TFTP_FILE=c2800nm-spservicesk9-mz.124-17a.bin

rommon 11 > tftpdnld

And here is the output:

IP_ADDRESS: 216.214.47.70

IP_SUBNET_MASK: 255.255.255.0

DEFAULT_GATEWAY: 216.214.47.1

TFTP_SERVER: 216.214.47.112

TFTP_FILE: c2800nm-spservicesk9-mz.124-17a.bin

TFTP_VERBOSE: Progress

TFTP_RETRY_COUNT: 18

TFTP_TIMEOUT: 7200

TFTP_CHECKSUM: Yes

TFTP_MACADDR: 00:15:63:8f:4a:c0

GE_PORT: Gigabit Ethernet 0

GE_SPEED_MODE: Auto

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

...........

ARP: address resolution for 216.214.47.112 timed out.

ARP failed with failure code 1. TFTP transfer aborted.

TFTP: Operation terminated prematurely.

Please advise.

Thank you,

Vlad.

I have this problem too.
0 votes
Correct Answer by Richard Burts about 8 years 9 months ago

Vlad

I am glad that you could find the directory and were able to copy the IOS image file to the router.

HTH

Rick

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.8 (6 ratings)
Loading.
Richard Burts Thu, 02/14/2008 - 14:29

Vlad

Your router believes that the TFTP server is at address 216.214.47.112 which is in the local subnet. Can you verify that the IP address on the TFTP server is 216.214.47.112 and that the server is in the same broadcast domain with the router (looks like interface Gig0 on the router)?

From the fact that ARP is failing I am wondering if the server address is not right or if the server might not be in the same broadcast domain as the router interface.

HTH

Rick

fred.mancen Fri, 02/15/2008 - 10:47

Hi Vlad.

"I attempting to upload IOS to a FLASH drive on Cisco router 2821 via CONSOLE. "

I believe that you are trying to load a image via console port, not through the network, am I right? If this is your scenario, you need to transfer the image via Xmodem, using the Hyperterminal, setting your console speed to the maximum (115000 bps). With a little patience you could load the image without problems.

The router output attempting to a disaster recovering is because this resource is commonly used when the router boots in ROMmon.

Regards.

Could someone help me choose what package I need to download out of this list:

ADVANCED ENTERPRISE SERVICES

ADVANCED ENTERPRISE SERVICES WITH SNA SWITCHING

ADVANCED IP SERVICES

ADVANCED SECURITY

AISK9-AESK9 FEAT SET FACTORY UPG FOR BUNDLES

AISK9-AISK9 FEAT SET FACTORY UPG FOR BUNDLES

ASK9-AESK9 FEAT SET FACTORY UPG FOR BUNDLES

ASK9-AISK9 FEAT SET FACTORY UPG FOR BUNDLES

ASK9-ASK9 FEAT SET FACTORY UPG FOR BUNDLES

ENTERPRISE BASE

ENTERPRISE BASE W/O CRYPTO

ENTERPRISE SERVICES

ENTERPRISE SERVICES W/O CRYPTO

INT VOICE/VIDEO GK, IPIP GW, TDMIP GW

INT VOICE/VIDEO GK, IPIPGW, TDMIP GW AES

INT VOICE/VIDEO GK, IPIPGW, TDMIP GW AES, LI

INT VOICE/VIDEO, IPIP GW, TDMIP GW

INT VOICE/VIDEO, IPIPGW, TDMIP GW AES

IP BASE

IP BASE W/O CRYPTO

IP VOICE

IP VOICE W/O CRYPTO

SP SERVICES

SPSK9-AESK9 FEAT SET FACTORY UPG FOR BUNDLES

SPSK9-AISK9 FEAT SET FACTORY UPG FOR BUNDLES

SPSK9-ESK9 FEAT SET FACTORY UPG FOR BUNDLES

SPSK9-SPSK9 FEAT SET FACTORY UPG FOR BUNDLES

Thank you,

Vlad.

Richard Burts Fri, 02/15/2008 - 13:20

Vlad

I am not seeing anything in what you have posted that looks like the image is bad or not right. Are you seeing something that is not yet posted that makes you think that the problem is with the image? If so can you tell us what?

The filename in the original attempt to load IOS was the SP SERVICES image. Without knowing more about your environment and your requirements it would be difficult for us to advise on what feature set would be appropriate for you.

I would like to go back to an earlier post. You say that the PC is connected directly to the router. Is it connected with straight through cable or with crossover cable? If it is straight through then that is the problem - the router and directly connected PC should be connected with crossover cable.

HTH

Rick

Richard Burts Fri, 02/15/2008 - 12:55

Frederico

The output in the original post clearly shows that he is attempting to use tftpdnld which runs TFTP on a LAN port.

IP_ADDRESS=216.214.47.70

rommon 7 > IP_SUBNET_MASK=255.255.255.0

rommon 8 > DEFAULT_GATEWAY=216.214.47.1

rommon 9 > TFTP_SERVER=216.214.47.112

rommon 10 > TFTP_FILE=c2800nm-spservicesk9-mz.124-17a.bin

rommon 11 > tftpdnld

While xmodem may be a possibility to consider it is much slower than tftpdnld. At first I was a bit confused about the statement of loading via CONSOLE but then realized that he is describing a console session to the router and not really trying to load over the console connection.

HTH

Rick

Rick and Fred,

I tried to download IOS from TFTP server and in Xmodem console. Result the same - "timed out". When I was working with TFTP server I tried both cables straight and crossover with the same result.

Here is an output when I'm turn on the router:

"System Bootstrap, Version 12.3(8r)T7, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 2004 by cisco Systems, Inc.

Initializing memory for ECC

.

c2821 processor with 262144 Kbytes of main memory

Main memory is configured to 64 bit mode with ECC enabled

Readonly ROMMON initialized

device does not contain a valid FS

boot: cannot open "flash:"

boot: cannot determine first executable file name on device "flash:"

c2821 processor with 262144 Kbytes of main memory

Main memory is configured to 64 bit mode with ECC enabled."

Look for the line "device does not contain a valid FS". Does it mean that device does not see IOS, or CF can be bad?

Also, in what directory of TFTP server IOS has to be located? Under TFTP?

Regards,

Vlad.

Richard Burts Mon, 02/18/2008 - 20:14

Vlad

In the original post the output clearly shows that the router is attempting to ARP for the TFTP server and that ARP was failing. Was that with the straight through cable? When you try it with the cross over cable do you get the same error output about ARP failing? Before we focus on whether TFTP works we must get ARP to work. Without a success in ARP there is no possibility that TFTP will work. It might be some issue other than cables. But if ARP fails then there will be no communication over the LAN interface. Before we can worry about TFTP we must get the interface working so that the router and the PC can ARP for each other.

The message about device does not contain a valid FS is worrying me. It would seem to indicate that there is a problem with your flash. If there is a problem with the flash then any attempt to load a new image will fail. I have seen issues where the compact flash card had become loose or not seated well. Can you try removing the compact flash and re-seating it? Or can you try a different compact flash in this router?

What directory the image should be in will depend on which TFTP server you are running. Some of the implementations want it to be in root. Many of the implementations want it to be in the tftpboot directory. The version of the server that I typically run allows you to configure the server and to specify whatever directory you want. So the answer very much depends on what TFTP server you are running.

HTH

Rick

vaisharm Mon, 02/18/2008 - 20:54

Vlad,

Please provide the following outputs from ROMMON:

dev

dir flash:

dir slot0:

If you are using Xmodem (xmodem will FORMAT the flash and copy the new IOS), you need to have console connection the router (via rollover cable) and no other cable is required. To increase the throuhput bump the baud rate to 115200bps and use xmodem with -cy switch (choose ymodem under protocol when). Here are the steps:

Increase the baudrate to 115200

ROMMON1>confreg 0x3922

ROMMON2>reset

Now disconnect the hyperterminal session and connect again with 115200 as buad rate.

Issue xmodem:

ROMMON1>xmodem -cy

On hyperterminal window go to -> Transfer>Send File . Browse to the IOS file location and under protocol drop down choose ymodem.

Once completed the rotuer would reload and take you to the 'Router>' prompt. No other manual intervention would be required.

Steps to set the baud rate back to 9600 are:

router#

conf t

line con 0

speed 9600

(At this point you would loose console access. Disconnect the console session and connect again @ 9600 bps)

exit

wr mem

--------------

When using TFTPDNLD -

Connect the router directly (via crossover cable) to the tftp server and assign the IP address for the TFTP server as the default gateway as well.

If using a switch in between the router and the TFTP server, set the TFTP server IP and the DG on the router to be the same (if the tftp server and the router are in the same subnet).

Only if the tftp server and the router are in different subnets, you would use a DG other then the tftp server IP.

Make sure any firewall or VPN client is not blocking access to the tftp server.

Use the following tftp server and the IOS file will have to be stored in the same directory as the tftp server.

http://tftpd32.jounin.net/download/tftpd32.323.zip

Let me know if you run into any issues.

HTH,

-Vaibhav

Vaibhav,

thank you for advise how to increase the baudrate to 115200. It's really helped. The IOS was copying about 1.5 hours but I still redceived an error. Here is the message:

WARNING: All existing data in flash will be lost!

Invoke this application only for disaster recovery.

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

Ready to receive file c2800nm-adventerprisek9-mz.124-18.bin ...

Unknow file system on Compact flash

Converting to LEFS

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeee

Download Complete!

open: bad first simple flash file magic number (0xffffffff) at (logicl) location

0x0

open(): Open Error = -1

loadprog: error - on file open

rommon 5 >

Also, down bellow you can outputs that you requested:

rommon 8 > dev

Devices in device table:

id name

flash: compact flash

bootflash: boot flash

eprom: eprom

rommon 9 > dir flash:

File size Checksum File name

rommon 10 > dir slot0:

bad device name

usage: dir

Regards,

Vlad.

vaisharm Thu, 02/21/2008 - 22:29

Vlad,

Looks like there's some problem with the flash. We can try to recover it. Normally when you do xmodem the flash will be formatted and then the IOS is copied on it. The output that you have provided shows that the flash is being formatted (the letter 'e' means erasing ). Once this is done the file is copied (you would see repeated '!' signs which means the file is being copied) to the DRAM and then to flash and the FAT is build. The output above does not show that. Either it stopped halfway or probably you din't wait long enough (it normally sits there for about 2mins and then proceeds).

Anyways, if the flash is bad, we can copy the IOS directly to DRAM and not to flash by using the -r switch. This would be even faster and once the IOS is copied to DRAM, the router will boot to the router prompt. Then we can format the flash and copy using the tftp server.

It just struck me, since this is a 2800 router, if you have a PCMCIA card reader you can directly format the flash card and copy the image on to it from your laptop/workstation.

Else, try this :

rommon>xmodem -cry

Be careful not to reload the router as it will drop into ROMMON again. You'll have to copy the IOS to the flash (after xmodem -cry) so that it boots up fine everytime using the IOS copied in the flash.

HTH,

~Vaibhav

Vaibhav,

I ran xmodem -cry .... Here is an output:

*Feb 22 16:49:50.591: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEth

ernet0/1, changed state to down

*Feb 22 16:49:50.591: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/

0, changed state to down

*Feb 22 16:49:50.823: %SYS-5-CONFIG_I: Configured from memory by console

*Feb 22 16:49:51.151: %SYS-5-RESTART: System restarted --

Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9-M), Version 12.4(18),

RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2007 by Cisco Systems, Inc.

Compiled Fri 30-Nov-07 16:35 by prod_rel_team

*Feb 22 16:49:51.155: %SNMP-5-COLDSTART: SNMP agent on host yourname is undergoi

ng a cold start

*Feb 22 16:49:51.595: %CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is OFF

*Feb 22 16:49:52.823: %LINK-5-CHANGED: Interface GigabitEthernet0/1, changed sta

te to administratively down

*Feb 22 16:49:52.839: %LINK-5-CHANGED: Interface Serial0/0/0, changed state to a

dministratively down

*Feb 22 16:49:54.023: %DSPRM-5-UPDOWN: DSP 2 in slot 0, changed state to up

*Feb 22 16:49:55.327: %DSPRM-5-UPDOWN: DSP 1 in slot 0, changed state to up% Gen

erating 1024 bit RSA keys, keys will be non-exportable...[OK]

*Feb 22 16:50:08.687: %SSH-5-ENABLED: SSH 1.99 has been enabled

*Feb 22 16:50:09.223: %PKI-6-AUTOSAVE: Running configuration saved to NVRAM _

It did not drop to ROMMON. I did not reload the router. What's next?

Regards,

Vlad.

Richard Burts Fri, 02/22/2008 - 09:53

Vlad

I believe that the suggestions made by Vaibhav are very good - you should get into privilege mode, then you should format the flash, and if that is successful then you should copy tftp flash to get the image from the TFTP server onto the flash.

HTH

Rick

Richard Burts Fri, 02/22/2008 - 12:59

Vlad

Have you taken the steps to format the flash and to copy the IOS from the TFTP server into flash? If you have not done these things then it will create the problem again if you reload the router.

A simple way to answer this question is that if you do show flash and it displays an image file in flash then it is ok to reload. If it does not display an image file in flash then it is not ok to reload.

HTH

Rick

Rick,

I was trying to load IOS from TFTP server to flash, but getting an error message. I loaded a few different files with IOS to TFTP server, but still could not copy them to flash. I tried both connections console and ethernet (crossover cable)conectiions.

Here is an input and output:

Username: cisco

Password:

halsted_line01#enable

halsted_line01#copy tftp flash

Address or name of remote host []? 10.10.10.2

Source filename []? c2800nm-entbasek9-mz.124-10.bin

Destination filename [c2800nm-entbasek9-mz.124-10.bin]?

Accessing tftp://10.10.10.2/c2800nm-entbasek9-mz.124-10.bin...

%Error opening tftp://10.10.10.2/c2800nm-entbasek9-mz.124-10.bin (No such file o

r directory)

halsted_line01#

Vlad.

Richard Burts Thu, 02/28/2008 - 10:40

Vlad

The output that you posted here indicates some issue with the TFTP server and not necessarily any problem with the router. The error indicates that the TFTP server could not find the file that you told it to load. The common causes of the TFTP server not finding the file are that there was something in the file name misspelled (what is in the output looks reasonable but I can not be certain that it is right) or that the file is not in the directory that the server is looking in. You might want to check how the TFTP server is configured, especially for what directory it is looking in for the file that it will serve. Many TFTP servers can be configured to specify a directory if you do not want to use what is its default directory. So you might want to see where it is looking and whether the image file is in that directory.

HTH

Rick

Correct Answer
Richard Burts Thu, 02/28/2008 - 11:50

Vlad

I am glad that you could find the directory and were able to copy the IOS image file to the router.

HTH

Rick

Rick,

now I have new issue:-(. I decided to copy to flash another release of Cisco IOS. And here is a result:

halsted_line01#copy tftp: flash:

Address or name of remote host []? 10.10.10.2

Source filename []? c2800nm-spservicesk9-mz.124-18.bin

Destination filename [c2800nm-spservicesk9-mz.124-18.bin]?

Accessing tftp://10.10.10.2/c2800nm-spservicesk9-mz.124-18.bin...

Erase flash: before copying? [confirm]y

Erasing the flash filesystem will remove all files! Continue? [confirm]y

Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased

Erase of flash: complete

Loading c2800nm-spservicesk9-mz.124-18.bin from 10.10.10.2 (via GigabitEthernet0

/0): !!

%Error copying flash:c2800nm-spservicesk9-mz.124-18.bin (No space left on device

)

halsted_line01#

I deleted existing IOS and sh flash command indicates that there is no files on the flash.

Any thoughts?

Vlad.

Richard Burts Thu, 02/28/2008 - 14:46

Vlad

It appears that the new image that you attempted to copy requires more flash memory than you have available on the router. In the process of the copy the router erased the content of flash but then the copy of the new file failed. So now there is no image in flash.

The good news is that the router can continue to run with no image in flash. Having an image in flash only becomes an issue when the router needs to boot. So for the time being - do NOT initiate any reboot of the router.

While the router is running you should be able to do a normal copy of the IOS image file that you are running (the one that was in flash before you erased it to make room for the new one). Once you get the image back into flash there should not be a problem.

If the router should happen to boot before you get an image into flash it would go to rommon - as it was when this discussion started. In that case you would need to use tftpdnld or xmodem to copy the image file as you did earlier in this discussion.

HTH

Rick

Richard Burts Thu, 02/28/2008 - 17:39

Vlad

I do not see any reason to format the CF. If I understand right you had an IOS image file in the CF and then it was erased. That is not necessarily a reason to format the CF. (of course if you do format the CF I do not believe that it will harm anything)

If I understand right you had several IOS image files on the TFTP server. I suggest that you use the version that was on the CF at one point and copy it to flash again.

HTH

Rick

Actions

This Discussion