Carlos Carvalho
2007-01-05 06:49:27 UTC
I'm using the config below for dhcp in dnsmasq.
In /etc/dnsmasq.conf:
dhcp-authoritative
no-ping
leasefile-ro
domain=fisica.ufpr.br
dhcp-option=19,0
conf-file = /etc/dnsmasq/dhcp
In /etc/dnsmasq/dhcp:
dhcp-option=3,zagros
# smtp server
dhcp-option=69,hoggar
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
rootfs.
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 200.17.214.144 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.
Any ideas?
In /etc/dnsmasq.conf:
dhcp-authoritative
no-ping
leasefile-ro
domain=fisica.ufpr.br
dhcp-option=19,0
conf-file = /etc/dnsmasq/dhcp
In /etc/dnsmasq/dhcp:
dhcp-option=3,zagros
# smtp server
dhcp-option=69,hoggar
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
rootfs.
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 200.17.214.144 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.
Any ideas?