Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #2999

Re: tftp configuration

From ein <ein@no.spam>
Newsgroups comp.os.linux.networking
Subject Re: tftp configuration
Date 2014-06-24 04:07 +0200
Organization ATMAN - ATM S.A.
Message-ID <loamgc$j48$1@node2.news.atman.pl> (permalink)
References <ep8m7b-3h9.ln1@pc.home>

Show all headers | View raw


Hactar wrote:
> I'm trying to set up a TFTP server on my machine (Ubuntu 13.04 LTS
> I think, or maybe 12.04 LTS).  It's hpa-tftp, run by xinetd.  I
> need it to download the firmware loader into a router so I can put
> DD-WRT on it. How do I configure the server?  Is there some file
> that maps a MAC address to a given file?  Does the client identify
> itself somehow and the image needs to be named a certain thing or
> in a certain place to go to that client?  Does the server log
> something on success?  Do I have to do something to hosts_allow to
> enable it?  Curious minds, etc.

It's hard to say. Show us - How recovery procedure looks like?
Is device dead?

The most common way is usually hard reset of the device or bricked
device sends broadcast packets with DHCP discover with selected option 60.

Then device starts bootstrap and tries to download a file from TFTP
server. You will see that in logs, I mean who want to download what
and if it succeed. It's very big shortcut. Go there to read more how
PXE-DHCP Handshake looks like:
http://blogs.technet.com/b/dominikheinz/archive/2011/03/18/dhcp-amp-pxe-basics.aspx

DHCP server must be configured for this. My config looks like:

# DHCP server network
subnet 10.1.1.0
# network mask
netmask 255.255.255.224
{
     authoritative;
     range 10.1.1.21 10.1.1.30;
     option broadcast-address 10.1.1.31;
     option routers 10.1.1.1;

     option netbios-name-servers 10.1.1.1;
     range dynamic-bootp 10.1.1.15 10.1.1.17;
     option domain-name-servers 10.1.1.1,62.179.1.62,62.179.1.63;
     use-host-decl-names on;

### Begin of PXE part ###
     if substring (option vendor-class-identifier, 0, 9) = "PXEClient"
         {
                filename "pxe/pxelinux.0";
         }
### End of PXE part ###
}


> Oh, the xinetd control file I have is:
> 
> { socket_type     = dgram protocol        = udp wait            =
> yes user            = root server          = /usr/sbin/in.tftpd 
> server_args     = -s /var/lib/tftpboot }
> 
> Does that look reasonable?  Thanks

Yes, add "-vvv" to arguments to get more noise about tftpd actions.



Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

tftp configuration ebenZEROONE@verizon.net (Hactar) - 2014-06-23 14:38 -0400
  Re: tftp configuration ein <ein@no.spam> - 2014-06-24 04:07 +0200
    Re: tftp configuration ebenZEROONE@verizon.net (Hactar) - 2014-06-23 22:52 -0400
      Re: tftp configuration ein <ein@no.spam> - 2014-06-24 09:29 +0200
        Re: tftp configuration ebenZEROONE@verizon.net (Hactar) - 2014-06-24 15:05 -0400
          Re: tftp configuration ein <ein@no.spam> - 2014-06-25 08:58 +0200
            Re: tftp configuration ein <ein@no.spam> - 2014-06-25 09:04 +0200
              Re: tftp configuration ein <ein@no.spam> - 2014-06-25 09:07 +0200

csiph-web