[Dnsmasq-discuss] Static IP and hostname

Donnie Berkholz spyderous@gentoo.org
Thu, 31 Mar 2005 15:34:36 -0800


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm having trouble setting static IP addresses and hostnames based on
the hardware address.

Relevant dnsmasq.conf settings (dhcp-host is nearly the same as in
dnsmasq.conf.example):

dhcp-range=192.168.0.50,static,12h
dhcp-host=<hw address>,node01,192.168.1.1,1h

Log shows:

dnsmasq[5775]: DHCPDISCOVER(eth0) <hw address> no address available

I'm not sure what's going on here, and I can't figure out a way to get
more verbose error reporting to figure it out. Google wasn't helpful either.

If I set dhcp-range's end range to a number, it hands out an IP in the
dynamic range to <hw address>.

I'm using dnsmasq 2.22, but this was also a problem on the first version
I tried, 2.15.

Any help would be appreciated. I'm probably misconfiguring it, but I
can't figure out the problem.

Thanks,
Donnie
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCTIkLXVaO67S1rtsRAuvWAKDSKf+VTcb1Djai/RxKkPHlNogyFwCbBvKH
sGeWN0LU2veOTJyeJaZqcBg=
=oUAs
-----END PGP SIGNATURE-----