[Dnsmasq-discuss] BOOTP/TFTP config

Simon Kelley simon at thekelleys.org.uk
Wed Apr 25 12:03:19 BST 2007


dhcp-host=00:0c:42:08:*:*,*,192.168.6.1

Using wildcards here is a an odd thing to do: I assume you have a whole
set of these things and you want to boot them one-at-a-time using this
address?

That won't work: the first MAC address seen will get a lease forever on
192.168.6.1 and no other MAC address will get a lease since only one
address is available and it's already leased.

A better strategy might be to provide a set of addresses with

dhcp-range=192.168.6.1,192.168.6.254

and let dnsmasq dynamically allocate those addresses by setting

bootp-dynamic

and not have a dhcp-host line at all.

The leases will last forever (there's no alternative for BOOTP) so the
size of you address pool should be larger then the total number of
distinct clients you will ever use.

Cheers,

Simon.




More information about the Dnsmasq-discuss mailing list