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

Simon Kelley simon at thekelleys.org.uk
Wed Mar 16 21:17:44 GMT 2011


Frank wrote:
> 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
> 


OK, for 2.45 you need the old syntax: last two lines should be

dhcp-vendorclass=pxestuff,PXEClient
dhcp-ignore=pxestuff

Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list