[Dnsmasq-discuss] How to disable bootp and all pxe boot in Dnsamsq?

Frank frank at cloud.com
Wed Mar 16 21:06:56 GMT 2011


Thanks quick reply.
It seems doesn't work. my dnsmasq is 2.45 and I do see these options 
from help.
from tcpdump and dnsmasq log, it still leases IP to pxe machine.

13:46:38.414484 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, 
Request from 00:26:b9:5e:c2:e3 (oui Unknown), length: 300
13:46:38.414952 IP 192.168.152.211.bootps > baremetal.bootpc: 
BOOTP/DHCP, Reply, length: 311
13:46:38.416306 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, 
Request from 00:26:b9:5e:c2:e3 (oui Unknown), length: 300
13:46:38.416536 IP 192.168.152.211.bootps > baremetal.bootpc: 
BOOTP/DHCP, Reply, length: 311

Mar 16 13:46:38 dnsmasq[17502]: DHCPOFFER(eth0) 192.168.152.223 
00:26:b9:5e:c2:e3
Mar 16 13:46:38 dnsmasq[17502]: DHCPREQUEST(eth0) 192.168.152.223 
00:26:b9:5e:c2:e3
Mar 16 13:46:38 dnsmasq[17502]: DHCPACK(eth0) 192.168.152.223 
00:26:b9:5e:c2:e3 baremetal

any other way to check out what's wrong? thank you.
below is my dnsmasq.conf

domain-needed
bogus-priv
resolv-file=/etc/dnsmasq-resolv.conf
local=/cloudnine.internal/
bind-interfaces
expand-hosts
domain=cloudnine.internal
dhcp-option=option:router,192.168.152.1
dhcp-range=192.168.152.211,static
dhcp-hostsfile=/etc/dhcphosts.txt
dhcp-option=15,cloudnine.internal
dhcp-option=vendor:MSFT,2,1i
leasefile-ro
log-queries
log-facility=/var/log/dnsmasq.log
dhcp-script=/usr/bin/echoer.sh
dhcp-scriptuser=root
dhcp-authoritative
dhcp-vendorclass=set:pxestuff,PXEClient
dhcp-ignore=tag:pxestuff


On 03/16/2011 01:30 PM, Simon Kelley wrote:
> Frank wrote:
>> Hi experts:
>>       In my subnet there is an bare metal provision system called
>> "linmin" which will serve pxe installation, I am also using dnsmasq in
>> same subnet as a programmable DHCP server.
>>       now I want to disable all bootp and pxe stuff in dnsmasq because if
>> dnsmasq offers IP during pxe installation, the linmin system will not work.
>>       I see from the man page simply ignores parameter will disable the
>> functionality, so I add "dhcp-boot" in /etc/dnsmasq.conf, unlucky the
>> dnsmasq cannot start error message:
>>
>> Starting dnsmasq:
>> dnsmasq: missing parameter at line 87 of /etc/dnsmasq.conf
>>
>>       So what should I do to disable it? thank you.
>>
> PXE boot ROMS make DHCP requests with the vendor-class set to a string
> which starts with "PXEClient"  you can test for this with
>
> dhcp-vendorclass=set:pxestuff,"PXEClient"
>
> and then tell dnsmasq to ignore anything which matches with
>
> dhcp-ignore=tag:pxestuff
>
>
> That syntax assumes a reasonably up-to-date dnsmasq version. You can do
> the same thing with older code but the syntax is different, so check
> back here for a translation.
>
> HTH
>
> Simon.




More information about the Dnsmasq-discuss mailing list