[Dnsmasq-discuss] static dhcp range and lease times

Simon Kelley simon at thekelleys.org.uk
Sat Jul 21 09:06:23 BST 2012


On 21/07/12 07:32, Craig Yoshioka wrote:
> Hmm, I tried it out, and the static hosts do not seem to inherit the lease-time from the static range
>
> with:
>
> dhcp-range=eth1,10.0.0.101,10.0.0.200,24h
> dhcp-range=eth1,10.0.0.0,10.0.0.100,static,240h
>
> # ips are declared in /etc/hosts
> dhcp-host=node-2
> dhcp-host=node-3
>
> node-2 and node-3 do not seem to get a 10day lease time
>

The problem is subtlety in selecting which dhcp-range to use (and 
therefore which lease time.)

try

dhcp-range=tag:!known,eth1,10.0.0.101,10.0.0.200,24h
dhcp-range=eth1,10.0.0.0,10.0.0.100,static,240h

to make the 24h range invalid when a configured host is found.


Simon.


> while:
>
> dhcp-range=eth1,10.0.0.101,10.0.0.200,24h
> dhcp-range=eth1,10.0.0.0,10.0.0.100,static,240h
>
> # ips are declared in /etc/hosts
> dhcp-host=node-2,240h
> dhcp-host=node-3,240h
>
> seems to work as expected.
>
> On Jul 19, 2012, at 11:36 PM, Simon Kelley <simon at thekelleys.org.uk> wrote:
>
>> On 20/07/12 03:31, Craig Yoshioka wrote:
>>> does the following declarations:
>>>
>>> dhcp-range=10.0.0.10,10.0.0.100,static,infinite
>>> dhcp-host=host1,10.0.0.20
>>> dhcp-host=host2,10.0.0.21
>>>
>>> mean host1 and host2 will inherit the infinite lease time?
>>>
>>
>> yes.
>>
>> Cheers,
>>
>> Simon.
>>
>>
>>
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>




More information about the Dnsmasq-discuss mailing list