Configure Leasetime

Chinmaya S. Narayana Reddy chinmayareddy at gmail.com
Wed Mar 29 17:49:57 UTC 2006


Quick question on this,
Can I force dhcp lease time, irrespective of what is declared globally and
what client requests,
by using option 51 for the particular host ? Reason is, my users can change
option 51 only !!
thanks
chinmaya

On 3/24/06, Simon Hobson <dhcp at thehobsons.co.uk> wrote:
>
> Chinmaya S. Narayana Reddy wrote:
>
> >I have to configure leasetime for each device, if the device is not
> >configured,
> >then I would like to use a default/global value.
> >
> >To achieve this I tried following configuration
> >
> >--- dhcpd.conf ---
> >default-lease-time 3600; # one hour lease
> >max-lease-time 864000; # 7days
> >
> >host MACADDRESS {
> >     ...
> >     option dhcp-lease-time 86400; # 1day
> >}
> >
> >
> >When I boot my device, 1 hour lease is given out, I expected 1day.
> >
> >I tried this one too (eliminating default-lease-time statement)
> >--- dhcpd.conf ---
> >max-lease-time 864000; # 7days
> >
> >host MACADDRESS {
> >     ...
> >     option dhcp-lease-time 86400; # 1day
> >}
> >
> >
> >Now my device gets 12hours lease.
> >
> >Can anyone please tell me how I can configure this?
>
> Try setting max, min, and default lease times. Default is the value
> to be used if the client doesn't specify one, otherwise the client
> supplied value is used. Min and Max are lower and upper bounds on
> allowable leases.
>
> If you have a number of clients to set, then you can save some space
> by using a group :
>
> group onehourclients {
>    min-lease-time 3600 ;
>    max-lease-time 3600 ;
>
>    host a { ... }
>    host b { ... }
> }
>
>
>


--
thanks
chinmaya swaroop



More information about the dhcp-users mailing list