[Dnsmasq-discuss] Default Lease Time

farkasbx at t-online.hu farkasbx at t-online.hu
Tue Jun 28 09:16:49 BST 2005


On Sun, 26 Jun 2005 Edward Smith wrote:

> I would like be able to set a default for the addresses in
> /etc/ethers.  Which reminds me.  When I had an /etc/ethers defining
> addresses from 192.168.5.100 to 200 AND a line like this
> 
> dhcp-range=192.168.5.100,192.168.5.200,2h
> 
> People were getting double leases.  So the guy who was assigned .100
> by ethers would get 100 and also someone who had no entry in ethers
> would get 100.  So now I just have ethers and no dhcp-range statements
> in use.


Let's suppose
that guy has got a PC with a Network Interface Card
and the MAC address of that NIC is 00:12:34:56:78:9a

If at _start-up_ your /etc/ethers file contains this line
00:12:34:56:78:9a	192.168.5.100

AND

your /etc/dnsmasq.conf file contains this line
dhcp-range=192.168.5.100,192.168.5.200,2h

then that NIC with that MAC address (and only that) will get the 192.168.5.100 IP address.

Have you ever seen the man of ethers - for example at
http://unixhelp.ed.ac.uk/CGI/man-cgi?ethers

Good luck,
George.



More information about the Dnsmasq-discuss mailing list