DHCPOFFER timeout

John Miller johnmill at brandeis.edu
Mon Sep 10 15:35:35 UTC 2012


Thanks, Simon and Glenn.  When in doubt, look at the source code!

John

On 09/08/2012 08:40 AM, Glenn Satchell wrote:
> On Sat, September 8, 2012 5:44 am, Simon Hobson wrote:
>> John Miller wrote:
>>> After sending a DHCPOFFER packet to a client, how long will dhcpd
>>> wait before discarding that offer?  My boss asked me this earlier
>>> today, and I didn't have a good answer, nor did I see anything
>>> definitive in RFC 2131 or the dhcpd docs.
>>
>> It's two minutes I think. If you look in the leases file, you'll see
>> a lease record created before the lease is offered. If the client
>> subsequently requests the lease, then a new record with the admin set
>> length will be created.
>>
>> Dunno if there are any config options to change this, or if you'd
>> need to recompile.
>>
> This is from server/dhcp.c:
>
>          /* Set the lease to really expire in 2 minutes, unless it has
>             not yet expired, in which case leave its expiry time alone. */
>          when = cur_time + 120;
>          if (when < lease -> ends)
>                  when = lease -> ends;
>
> so confirm 2 minutes (120 seconds) and is hardwired, so no option to
> change the value.
>
> regards,
> -glenn
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>


More information about the dhcp-users mailing list