tftp not working

Answered Question
Sep 5th, 2007
User Badges:

I'm trying to upgrade the IOS on my 1761 using PumpKIN and it's failing.

i'm able it ping the PC from the router and vis-versa.

PumpKIN is giving me this msg:

UDP packet received failed.

inbalid opcode(0) during transfer received.

Any ideas on what could be screwed up.

Correct Answer by lgijssel about 9 years 7 months ago

Two remarks about Pumpkin, I am using it myself also.

First verify that the path where the server looks for the file is really pointing to the folder where the file resides.

In the Pumpkin status window there is a checkbox for "server running". This box must be checked.


Both tend to be incorrect/off when you need them.


regards,

Leo

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
avmabe Wed, 09/05/2007 - 13:56
User Badges:
  • Bronze, 100 points or more

hmmm... Try using the 3com tftp daemon. Type it in google. That is the one I have used for several years with no problems whatsoever.

garyrivers Wed, 09/05/2007 - 14:15
User Badges:

i tried to copy the new image using the 3Com program.

here are the results.

KSCW_RTR#copy tftp flash:

Address or name of remote host []? 10.30.40.12

Source filename []? c1700-k9o3sy7-mz.123-23.bin

Destination filename [c1700-k9o3sy7-mz.123-23.bin]?

Accessing tftp://10.30.40.12/c1700-k9o3sy7-mz.123-23.bin...

%Error opening tftp://10.30.40.12/c1700-k9o3sy7-mz.123-23.bin (Timed out)

KSCW_RTR#


what am I missing?


any ideas?


avmabe Wed, 09/05/2007 - 14:57
User Badges:
  • Bronze, 100 points or more

Check the logs on the 3com. Also check and double check the filename.

garyrivers Thu, 09/06/2007 - 05:29
User Badges:

it downloaded as:

c1700-k9o3sy7-mz.123-23.bin

so when the router asks for the source file, I should be able to enter that file name.

Right?

avmabe Thu, 09/06/2007 - 05:32
User Badges:
  • Bronze, 100 points or more

yep, that sounds fine. Just making sure... I've made that mistake before ;)


Check the logs on the 3Com TFTP Daemon and see if the router is even querying it. If the router tries to d/l it at all and can communicate with the server, you will get something in the logs.

garyrivers Thu, 09/06/2007 - 05:39
User Badges:

well, I tried the download again and here's what I got:

on the rotuer side:

KSCW_RTR#copy tftp: flash:

Address or name of remote host []? 10.30.40.12

Source filename []? c1700-k9o3sy7-mz.123-23.bin

Destination filename [c1700-k9o3sy7-mz.123-23.bin]?

Accessing tftp://10.30.40.12/c1700-k9o3sy7-mz.123-23.bin...

%Error opening tftp://10.30.40.12/c1700-k9o3sy7-mz.123-23.bin (Timed out)

KSCW_RTR#


and the tftp server didn't see the router at all.



avmabe Thu, 09/06/2007 - 05:48
User Badges:
  • Bronze, 100 points or more

ok that is good...

try this.



copy tftp://10.30.40.12/c1700-k9o3sy7-mz.123-23.bin flash:c1700-k9o3sy7-mz.123-23.bin


Can you ping 10.30.40.12 from the router? I really don't see anything wrong with you way you did it so I'm thinking maybe it can't talk to the tftp server.


Also, is there a Firewall running on the tftp server? That would also prevent this from working.


garyrivers Thu, 09/06/2007 - 05:56
User Badges:

1st of all...thanks for your help.


I tried your suggestion and the router:

SCW_RTR#$12/c1700-k9o3sy7-mz.123-23.bin flash:c1700-k9o3sy7-mz.123-23.bin

Destination filename [c1700-k9o3sy7-mz.123-23.bin]?

Accessing tftp://10.30.40.12/c1700-k9o3sy7-mz.123-23.bin...

%Error opening tftp://10.30.40.12/c1700-k9o3sy7-mz.123-23.bin (Timed out)

KSCW_RTR#


the router can see my PC and the router is basically naked. Thru Cisco Network asst. I was able to delete the router's flash and but wasn't able to transfer the new flash to the router. I pretty sure I don't want to power cycle the router since if I do, the router will REALLY be stupid and I'll be hosed!

I tried to FTP the file and here's what the server log showed:

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 FTP Server session started

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 FTP Server session started

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 USER anonymous

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 331 User name ok, need password

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 FTP: Login attempt by: anonymous

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 PASS [email protected]

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 230 User logged in

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 FTP: Login successful

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 TYPE I

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 200 Type set to I.

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 PASV

Sep 06, 2007 08:47:56 Session 5, Peer 10.30.46.242 227 Entering passive mode (10,30,40,12,18,202)

Sep 06, 2007 08:48:27 Session 5, Peer 10.30.46.242 FTP: Connection closed.

Sep 06, 2007 08:48:27 Session 5, Peer 10.30.46.242 Session closed by peer


your thoughts?

avmabe Thu, 09/06/2007 - 05:59
User Badges:
  • Bronze, 100 points or more

hmm... it's like it doesn't see the file where it (the tftpserver) thinks is should be.


Verify your config on the tftp and ftp server of the default directory where it serves files from and make sure the .bin file is in those directories.

Richard Burts Thu, 09/06/2007 - 07:40
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Gary


I am a little puzzled. The discussion has been about using TFTP but the server output is for FTP:

Peer 10.30.46.242 FTP Server session started

Are you using FTP or are you using TFTP? If it is FTP please verify that the user (in this case looks like anonymous) has permissions to login, download, upload, and overwrite files.


I am wondering if the problem with the attempts at TFTP might be caused by some firewall running on your PC which might not like the incoming connection attempt. Are you running a firewall? Is it possibly part of the problem?


HTH


Rick

Correct Answer
lgijssel Thu, 09/06/2007 - 08:26
User Badges:
  • Red, 2250 points or more

Two remarks about Pumpkin, I am using it myself also.

First verify that the path where the server looks for the file is really pointing to the folder where the file resides.

In the Pumpkin status window there is a checkbox for "server running". This box must be checked.


Both tend to be incorrect/off when you need them.


regards,

Leo

garyrivers Thu, 09/06/2007 - 11:08
User Badges:

well I FINALLY got the image onto the router.

I ended up downloading solar winds and for some reason the tftp worked.

thanks everyone for your help.

avmabe Thu, 09/06/2007 - 11:27
User Badges:
  • Bronze, 100 points or more

Glad it worked out with Solarwinds. Sorry 3ComTFTP didn't seem to work for you.

Actions

This Discussion