<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false"><div><div>I'm trying to pxe boot a Raspberry Pi 3B (not 3B+) with dnsmasq configured with a tftp server on a different host.  In all cases I've tried it always uses dnsmasq as the tftp server.  Btw, I have Raspberry Pi 4 that does work.</div><div><br></div><div>Doing some tests with my own pxe server I was able to get the Raspberry Pi 3B to use the proper tftp server only when I sent option 66 last or possibly after option 43 as both are true.</div><div><br></div><div>Is there a way to configure dnsmasq for this to work?  </div><div><br></div><div>The Raspberry Pi 3B does request the tftp server parameter last, however the RFC says it is not required for the server to comply though it does say it MUST try.</div><div><br></div><div>FROM RFC2132</div><div><br></div><div>9.8. Parameter Request List</div><div><br></div><div>   This option is used by a DHCP client to request values for specified</div><div>   configuration parameters.  The list of requested parameters is</div><div>   specified as n octets, where each octet is a valid DHCP option code</div><div>   as defined in this document.</div><div><br></div><div>   The client MAY list the options in order of preference.  The DHCP</div><div>   server is not required to return the options in the requested order,</div><div>   but MUST try to insert the requested options in the order requested</div><div>   by the client.</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div>Details below</div><div><br></div><div>Network Devices</div><div>===============</div><div>192.168.0.1 = router</div><div>192.168.0.4 = dnsmasq server</div><div>192.168.0.5 = ntp server</div><div>192.168.0.6 = rpi3b computer</div><div>192.168.0.7 = tftp server</div><div><br></div><div>dnsmasq configuration</div><div>=====================</div><div>dhcp-range=192.168.0.0,192.168.0.255,255.255.255.0,12h</div><div>dhcp-reply-delay=tag:rpi3b,2</div><div>dhcp-ignore=tag:!known</div><div>dhcp-option=3,192.168.0.1</div><div>dhcp-option=6,192.168.0.4</div><div>dhcp-option=42,192.168.0.5</div><div>dhcp-boot="bootcode.bin","192.168.0.7",192.168.0.7</div><div>pxe-service=0,Raspberry Pi Boot</div><div>enable-tftp</div><div>tftp-root=/home/pi/network/tftpboot</div><div>log-dhcp</div><div>domain-needed</div><div>bogus-priv</div><div>no-hosts</div><div>addn-hosts=/home/pi/network/hosts</div><div>dhcp-host=aa:bb:cc:dd:ee:ff,rpi3,192.168.0.6,infinite,set:rpi3b</div><div><br></div><div>/home/pi/network/hosts/hosts</div><div>============================</div><div>192.168.0.6    rpi3.example.com</div><div><br></div><div>dnsmasq output</div><div>==============</div><div>dnsmasq-dhcp[48831]: 653460281 available DHCP range: 192.168.0.0 -- 192.168.0.255</div><div>dnsmasq-dhcp[48831]: 653460281 vendor class: PXEClient:Arch:00000:UNDI:002001</div><div>dnsmasq-dhcp[48831]: 653460281 DHCPDISCOVER(wlan0) aa:bb:cc:dd:ee:ff</div><div>dnsmasq-dhcp[48831]: 653460281 tags: rpi3b, known, wlan0</div><div>dnsmasq-dhcp[48831]: 653460281 reply delay: 2</div><div>dnsmasq-dhcp[48831]: 653460281 DHCPOFFER(wlan0) 192.168.0.6 aa:bb:cc:dd:ee:ff</div><div>dnsmasq-dhcp[48831]: 653460281 requested options: 43:vendor-encap, 60:vendor-class, 67:bootfile-name,</div><div>dnsmasq-dhcp[48831]: 653460281 requested options: 128, 129, 130, 131, 132, 133, 134, 135, 66:tftp-server</div><div>dnsmasq-dhcp[48831]: 653460281 next server: 192.168.0.7</div><div>dnsmasq-dhcp[48831]: 653460281 sent size:  1 option: 53 message-type  2</div><div>dnsmasq-dhcp[48831]: 653460281 sent size:  4 option: 54 server-identifier  192.168.0.4</div><div>dnsmasq-dhcp[48831]: 653460281 sent size:  4 option: 51 lease-time  infinite</div><div>dnsmasq-dhcp[48831]: 653460281 sent size: 12 option: 66 tftp-server  192.168.0.7</div><div>dnsmasq-dhcp[48831]: 653460281 sent size: 13 option: 67 bootfile-name  bootcode.bin</div><div>dnsmasq-dhcp[48831]: 653460281 sent size:  4 option:  1 netmask  255.255.255.0</div><div>dnsmasq-dhcp[48831]: 653460281 sent size:  4 option: 28 broadcast  192.168.0.255</div><div>dnsmasq-dhcp[48831]: 653460281 sent size:  9 option: 60 vendor-class  50:58:45:43:6c:69:65:6e:74</div><div>dnsmasq-dhcp[48831]: 653460281 sent size: 17 option: 97 client-machine-id  00:44:44:44:44:44:44:44:44:44:44:44:44:44...</div><div>dnsmasq-dhcp[48831]: 653460281 sent size: 32 option: 43 vendor-encap  06:01:03:0a:04:00:50:58:45:09:14:00:00:11...</div><div>dnsmasq-tftp[48831]: sent /home/pi/network/tftpboot/bootcode.bin to 192.168.0.6</div><div>dnsmasq-tftp[48831]: file /home/pi/network/tftpboot/bootsig.bin not found</div><div><br style="font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;"></div></div><br></div></div></body></html>