<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">D.L.C. Burggraaff</b> <span dir="ltr"><<a href="mailto:burdi02@gmail.com">burdi02@gmail.com</a>></span><br>
Date: Wed, Jul 9, 2014 at 4:46 PM<br>Subject: dnsmasq : how to configure for pxe over http<br>To: <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a><br><br><br><div dir="ltr">
<div><div><div>L.S.<br><br></div><div>For days I have been trying, but I whatever google hints I try the files get delivered over tftp instead of http.<br></div><div>Any hints on what I am doing wrong will be appreciated.<br>

</div><div>Kind regards, Dick Burggraaff</div><div><br>linux - slackware current<br>kernel 3.15.4 64bit, userland 32bit<br>dnsmasq 2.71<br></div>syslinux 6.02<br></div>lighttpd 1.4.35, /var/www/htdocs-lighttpd/pxe symlinked to /srv/pxe<br>

<br></div><u>script</u><br><div><br><div>#!/bin/sh<br><br># pmagic_pxeserver : Run services for pxe booting<br>===============================================<br># Written by Dick Burggraaff (burdi01)<br><br>PXEDIR=/srv/pxe<br>

<br># Determine the IP address of the first interface<br>IP="$(ifconfig | grep broadcast | head -n1 | awk '{print$2}')"<br>if [ -z "$IP" ]; then<br>   echo ">>> FATAL: no IP address for the first network interface"<br>

   exit 1<br>fi<br><br># Determine the C class subnet<br>SUBNET="$(echo $IP | cut -d"." -f1-3)"<br><br># Start the DHCP and TFTP servers<br>killall dnsmasq &>/dev/null<br>dnsmasq --enable-tftp --tftp-root=$PXEDIR --dhcp-range=$SUBNET.50,proxy \<br>

   --log-dhcp --pxe-prompt="Press F8 for boot menu",0 \<br>   --pxe-service=x86PC,"Boot from the network",lpxelinux \<br>   --dhcp-boot=lpxelinux.0,http://$IP/pxe/<br><br>echo ">>> The PXE services should be running now"<br>

<br></div><div><u>script end</u><br></div></div></div>
</div><br></div>