News: This forum is now permanently frozen.
Pages: [1]
Topic: DHCP lease time issue ... clients or m0n0wall dhcpd?  (Read 5366 times)
« on: May 22, 2007, 22:31:01 »
brgangoo *
Posts: 13

I've noticed that DHCP leases are being requested by clients at half the value of the default lease time.

For instance, using m0n0wall's default settings for the DHCP Server:

Default Lease Time:  7200 sec
Max Lease Time:  86400 sec

the clients (all which are Win XP or Win 2003) will send a DHCPREQUEST at 3600 sec intervals.  Is this normal?  Shouldn't clients make the request at 7200 sec?  It's annoying to see duplicated leases handed out in the DHCP lease table.

Here's a screen shot:

(http://www.geocities.com/globalrevolt/m0n0_dhcp_default.PNG)

I'm using m0n0wall cdrom 1.23 and the problem exists even if I change the Default Lease Time to other values.
« Last Edit: May 22, 2007, 22:33:44 by brgangoo »
« Reply #1 on: May 23, 2007, 00:31:18 »
brgangoo *
Posts: 13

After reading about DHCP on Microsoft's website, it appears that the DHCP client goes through a Renewing State at 50% of the lease time.  A key value in the Windows Registry called DhcpRetryTime appears to verify this.

However, one would expect the DHCP server to automatically expire a lease that it has just renewed -- even if time remains on the lease.  Does m0n0wall's dhcpd have a parameter that can adjust this behavior?
« Reply #2 on: January 22, 2008, 17:42:26 »
prosphora *
Posts: 1

brgangoo,
Did you ever find any resolution to this?  I realize its been a while since the last post....
« Reply #3 on: November 16, 2008, 05:01:16 »
brgangoo *
Posts: 13

Wow, I hate bring back this old thread of mine, but I haven't resolved this issue yet and it appears it still exists in the latest stable version (v1.235).
« Reply #4 on: November 18, 2008, 20:06:34 »
cmb *****
Posts: 851

It's not a problem, this is just how DHCP works, with any OS and any server. The DHCP standard specifies clients first attempt to renew a lease at 50% of lease length, which is exactly what is happening. This way if their first renewal attempt fails (DHCP server unavailable, network problem, etc.), they still have half the lease time to continue to attempt to renew. If you want them to renew less frequently, increase your lease time. They're renewing at half your default lease time, which is what is supposed to happen.
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines