DHCPd sending lease expiration of 3600 seconds

Simon Hobson dhcp1 at thehobsons.co.uk
Wed Feb 18 08:08:05 UTC 2009


Jeff Haran wrote:

>  > It seems sometimes the client requests a shorter lease.  If
>>  you want a
>>  longer lease assigned than the client requests, just assign a
>>  min-lease
>>  like this:
>>  min-lease-time 85200;
>>
>>  along with your max and default of 86400 and you'll get leases in the
>  > window of 85200-86400.



>Thanks for the response, but I've tried that.
>
>I set min-lease-time, max-lease-time and default-lease-time all to
>infinite and I still get finite offers from the server.
>
>The configuration file I tried this most recently with looks like this:
>
># 2-17-2009, jharan, infinite leases
>
>default-lease-time infinite;
>max-lease-time infinite;
>min-lease-time infinite;
>
>class "brocade" {
>         match if substring (option dhcp-client-identifier, 1, 24) =
>"BRCDBP-CP0-SLOT01-HOST00" and option vendor-class-identifier =
>"BROCADE";
>}
>
>shared-network backplane {
>         subnet 192.168.74.0 netmask 255.255.255.0 {
>#               default-lease-time infinite;
>#               max-lease-time infinite;
>#               min-lease-time infinite;
>                 option subnet-mask 255.255.255.0;
>                 pool {
>                         range 192.168.74.200 192.168.74.200;
>                         allow members of "brocade";
>                 }
>         }
>}
>
>The length of the lease in the offer from the server was 0x36643dea
>seconds according to Wireshark, which is 914 million seconds.
>
>That's long, but not infinite.

...

>lease 192.168.74.200 {
>   starts 3 2009/02/18 08:08:53;
>   ends 2 2038/01/19 03:14:06;
>   cltt 3 2009/02/18 08:08:53;
>   binding state active;
>   next binding state free;
>   hardware ethernet 00:60:69:f0:00:80;
>   uid "\000BRCDBP-CP0-SLOT01-HOST00";
>}

There isn't actually a value for 'infinite', the best the server can 
do is use the end of time, which in unix terms is currently 19th Jan 
2038 when the 32bit counter rolls over. Is 28 years not a long enough 
lease :-)

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the dhcp-users mailing list