glenn.satchell at uniq.com.au
Sat Sep 8 12:40:35 UTC 2012
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.
More information about the dhcp-users