[Dnsmasq-discuss] problem with dhcp options
carlos at fisica.ufpr.br
Fri Jan 5 06:49:27 GMT 2007
I'm using the config below for dhcp in dnsmasq.
conf-file = /etc/dnsmasq/dhcp
# smtp server
dhcp-range = 192.168.5.1,static,5m
conf-file = /etc/dnsmasq/dhcp-hosts
And this is the config for one of the machines in /etc/dnsmasq/dhcp-hosts:
dhcp-host = abiod,00:e0:7d:d0:b8:e5,id:*,net:abiod
dhcp-boot = net:abiod,/var/remoteboot/pentium-rtl8139,hoggar
dhcp-option = abiod,19,/var/nfsroot/profs-root/abiod
All names are in /etc/hosts.
First, in one of the machines that boots using bootp I noticed that it
gets it's IP and the one for the tftp server (the same that is the dns
and runs dnsmasq). However it doesn't get the gateway (zagros, see
above). Using ISC dhcpd the bootp bios prints the IP of the gateway.
It manages to load the kernel and boots it. The kernel mounts the
The init scripts run udhcpc, which queries the dhcp server and runs a
script to configure other mount points. udhcpc is failing with
Lease of 18.104.22.168 obtained, lease time 300
zsh: segmentation fault env - ~/udhcpc -q -s ./foo
In another machine with more recent software I get
*** glibc detected *** malloc(): memory corruption: 0x0804f278 ***
zsh: abort env - ./udhcpc -q -s ./script.udhcpc
This machine doesn't have the dhcp-option = abiod,19... in the config,
just the first two lines, because it boots via pxe.
More information about the Dnsmasq-discuss