[Dnsmasq-discuss] ignore PXE but not DHCP

Simon Kelley simon at thekelleys.org.uk
Fri Apr 30 18:46:46 BST 2010


Ignacio Díez wrote:
> El 30/04/10 17:32, Simon Kelley escribió:
>> 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.
>>
> 
> 
> It doesn't seem to work, possibly because I am not using any pxe-service 
> lines. Here is my dnsmasq.conf (I should have posted it earlier):
> 
> listen-address=127.0.0.1
> listen-address=161.67.106.150
> bind-interfaces
> dhcp-range=161.67.106.250,161.67.106.254,5m
> dhcp-option=vendor:MSFT,2,1i
> tftp-root=/var/lib/tftpboot
> dhcp-boot=pxelinux.0,hydra,161.67.106.150
> dhcp-lease-max=150
> dhcp-leasefile=/var/lib/misc/dnsmasq.leases
> dhcp-hostsfile=~/hydra/manager/nodes.list
> 
> 
> This nodes.list file contains something like:
> 
> 00:30:1b:ad:07:d7,ignore
> 00:11:85:5e:26:24,ignore
> 

Ah, the problem is actually simpler:

the dhcp-boot line becomes

dhcp-boot=net:#nopxe,pxelinux.0,hydra,161.67.106.150

and the nodes.list lines

00:30:1b:ad:07:d7,net:nopxe
00:11:85:5e:26:24,net:nopxe

Note: no "ignore" anywhere.

HTH

Simon.





More information about the Dnsmasq-discuss mailing list