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


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

Re: tftp configuration

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

Show all headers | View raw


Hactar wrote:
> In article <loamgc$j48$1@node2.news.atman.pl>, ein  <ein@no.spam> wrote:
>> 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?
> 
> Dunno.  How do I tell?  When I power it up, the power light blinks for a
> while and eventually turns green.  No other light turn on.   If I then
> connect its WAN port to my other router, the "WAN Ethernet" light turns
> green and flickers every few seconds, and the "Internet" lights turns
> orange.

Most of devices has recovery procedure(s). You should study your
device's user manual. You didn't even write its name.

>> The most common way is usually hard reset of the device or bricked
>> device sends broadcast packets with DHCP discover with selected option 60.
> 
> I've given it a 30/30/30 reset.  The DHCP server (the other router) lists
> several devices to which it has given addresses in the last few hours,
> but none are this router.  I thought maybe it gave up on DHCP before the
> ethernet was connected so I power-cycled it with the ethernet hooked up;
> same story, no go.

If the device doesn't have recovery procedure then most likely there is
also an option to connect service console port and upload firmware via
so called zmodem protocol using that console serial connection.

>> 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
> 
> Thanks.  It doesn't like this machine (or me in particular), as neither
> Firefox nor Chrome can log in.  I'll have to try it elsewhere.
> 
>> 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
>> {
[...]
>>
>> ### Begin of PXE part ###
>>      if substring (option vendor-class-identifier, 0, 9) = "PXEClient"
>>          {
>>                 filename "pxe/pxelinux.0";
>>          }
>> ### End of PXE part ###
>> }
> 
> I guess I need to implement that in the router's DHCP server.  Where does
> one get pxelinux.0 and where does it go?

Please study documentation:
http://www.syslinux.org/wiki/index.php/PXELINUX
http://www.debian-administration.org/article/478/Setting_up_a_server_for_PXE_network_booting

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