Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running a Windows 7 PC with VMware installed which has my Ubuntu (10.04 Lucid Lynx). I recently installed a DHCP server and TFTP (Xinet tftpd) using these instructions. I've mapped a network drive so that my Windows has access to all the files in my VM through a 192.x.x.x IP address.

I'm trying to throw some custom firmware onto a router. The router has its own built-in TFTP utility that will download the image. It successfully manages to do everything but it is slow because it writes it to flash memory. There is another method that is much quicker because it writes to RAM directly but it must use the TFTP server in Ubuntu.

The issue I'm facing is that the Ubuntu TFTP transfer seems to be timing out. The transfer starts but never goes past ~60%. Here's my /etc/xinetd.d/tftp file (similar to a known working config):

service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = -s /home/user/tftp/
disable         = no
cps             = 300 2
per_source      = 60
}

I've done some searching but can't find any parameters for this file to control timeout time or number of retries. The last two arguments (cps, per_source) and completely alien to me (can anyone explain). I have a few possible solutions but the easiest would be to get this TFTP server working. Can anyone help? Either with a timeout configuration or maybe even recommend a different TFTP server?
Thanks!

share|improve this question

closed as off-topic by mdpc, Ward, TheCleaner, Tom O'Connor Mar 21 at 9:44

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – mdpc, Ward, TheCleaner, Tom O'Connor
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

I am not a Linux expert, but I use the server_args parameter (http://linux.die.net/man/5/xinetd.conf) to pass parameters to the TFTP process. tftpd has a --timeout parameter (http://linux.die.net/man/8/tftpd). You might try something like

service tftp {
    [...]
    server_args = --timeout 10000 -s /home/user/tftp/

}
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.