[Dnsmasq-discuss] ignore PXE but not DHCP

Simon Kelley simon at thekelleys.org.uk
Fri Apr 30 16:32:52 BST 2010


Ignacio Díez wrote:
> Hello,
> 
>     I have dnsmasq configured both as a PXE and a DHCP server. I can
> make the computers boot from their HDD or from PXE with the
> dhcp-host:MAC,ignore line.
> 
>     However, if dnsmasq ignores the petition, the PC boots from the disk
> but it cannot get an IP, as dnsmasq ignores both the PXE and the DHCP
> requests. How can I make dnsmasq ignore only PXE request but serve DHCP
> anyway?
> 
>     I've been trying to find the solution over the internet and the
> dnsmasq documentation, but I seem unable to find it.
> 
> 
> Regards,
>    Nacho
> 


To stop a machine from doing PXE, but still allow DHCP

dhcp-host=<MAC>,net:nopxe

which sets the tag "nopxe"

add "net:#nopxe" to all your existing pxe-service lines, that makes them
valid only when "nopxe" is NOT set.

add

pxe-service=net:nopxe,x86PC,0

which provides a single pxe-service to hosts with nopxe set, to do boot
from local disk.

You're setting a pxe-prompt, you may need to add "net:#nopxe" to that too.

I think that should work, let me kow if it doesn't and I'll think some more.


Cheers,

Simon.





More information about the Dnsmasq-discuss mailing list