Date: Fri, 4 Jan 2002 23:36:30 +0100 From: Erik Trulsson <ertr1013@student.uu.se> To: Will Froning <wfroning@angui.sh> Cc: freebsd-questions@freebsd.org Subject: Re: DHCP Lease length Message-ID: <20020104223630.GA59341@student.uu.se> In-Reply-To: <20020104142504.M72226-100000@angui.sh> References: <20020104142504.M72226-100000@angui.sh>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 04, 2002 at 02:31:03PM -0800, Will Froning wrote: > [please cc me as I'm not on the list] > > I was looking at /var/db/dhcp.leases on a dhcp client machine. The > renew time does not match the dhcp-lease-time. > > <snip> > > lease { > interface "rl0"; > fixed-address 192.168.1.20; > option subnet-mask 255.255.255.0; > option time-offset -8; > option routers 192.168.1.254; > option domain-name-servers 192.168.1.11,192.168.1.12; > option host-name "mybox"; > option domain-name "somenetwork.com"; > option broadcast-address 192.168.1.255; > option dhcp-lease-time 14400; > option dhcp-message-type 5; > option dhcp-server-identifier 192.168.1.1; > renew 5 2002/1/4 22:44:34; > rebind 6 2002/1/5 00:14:34; > expire 6 2002/1/5 00:44:34; > } > > <snip> > > Logically, I would think the renew time and expire time would be 4 > hours different. Any words of wisdom? Logically they should be less than 4 hours apart. Looking in the dhclient.conf(5) manpage one can find the following: The renew statement defines the time at which the dhcp client should begin trying to contact its server to renew a lease that it is using. The rebind statement defines the time at which the dhcp client should begin to try to contact any dhcp server in order to renew its lease. The expire statement defines the time at which the dhcp client must stop using a lease if it has not been able to contact a server in order to renew it. I bet that the last time your server updated its dhcp lease was at 20:44:34. Then the renew time is 2 hours later, half-way through that lease, and expire is 2 hours after that. (Since your lease-time is 4 hours.) (renew is the next time it will try to update the lease, not the last time it did so, it which case it should have been 4 hours before expire.) -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020104223630.GA59341>