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


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

Re: tftp configuration

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From ebenZEROONE@verizon.net (Hactar)
Newsgroups comp.os.linux.networking
Subject Re: tftp configuration
Date Mon, 23 Jun 2014 22:52:34 -0400
Organization A noiseless patient Spider
Lines 84
Message-ID <io5n7b-7of.ln1@pc.home> (permalink)
References <ep8m7b-3h9.ln1@pc.home> <loamgc$j48$1@node2.news.atman.pl>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 8bit
Injection-Info mx05.eternal-september.org; posting-host="9f874ea7a9757770a9eec1c698a90b6f"; logging-data="4245"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//UFsKKIHhsfwXV84LAkjB"
Originator eben@ebens-pc2.(none) (Eben King)
X-Newsreader trn 4.0-test77 (Sep 1, 2010)
X-No-ahbou yes
X-GetARealNewsreader <!
X-Face $/l:}sIrV@ebX4l8a`l.7j#B:>O~R&,e07C6?Th7atH"C~AW%c!1~C%Z!#2W<zAyF'Y0"~\lLMpPE$&3gN~s9=X<5=NF`%ngs&:+56-YTDgK[XGX%1El.]DWi(Uii4XTO@cGM5&qn`f=,$g}QPkY8o3{yYHWf?:}Mig]
Cancel-Lock sha1:5TiwEugt/IJvhUSWxC+yAGZkx3I=
Xref csiph.com comp.os.linux.networking:3000

Show key headers only | View raw


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.

> 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.

> 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
> {
>      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 ###
> }

I guess I need to implement that in the router's DHCP server.  Where does
one get pxelinux.0 and where does it go?

> > 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.

Thanks.

-- 
-eben    QebWenE01R@vTerYizUonI.nOetP    ebmanda.redirectme.net:81
LIBRA:  A big promotion is just around the corner for someone
much more talented than you.  Laughter is the very best medicine,
remember that when your appendix bursts next week.  -- Weird Al

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