DHCP Lease Expired -- Windows 2003

My DHCP server still shows the attached leases, but they are already expired (past the 10hr period)

In the past I looked at this I was thinking it did NOT show already expired leases.

I rebooted the server, RESTARTED the DHCP service, etc,
but the expired leases are still displaying instead of going away.

 1. Do expired leases stay until someone else uses the IP address ?
 2. Is my DHCP server maybe failing to DROP these expired leases now ?
finance_teacherAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SandeepSr System AdministratorCommented:
On a Windows Server 2003 DHCP server, when an DHCP lease expires, the lease is marked for deletion in the DHCP database. It isn't immediately deleted from the database however. Instead, DHCP clients are granted a 4 hour reprieve just in case they still need to use the address so they can renew it. After this grace period elapses, the expired lease can be reused by another client requesting an IP address. Once per hour the DHCP server runs a cleanup cycle which reclaims unused leases. If you have lots of DHCP clients issuing requests on your network and there are no leases available, the DHCP cleanup cycle runs immediately, reclaiming leases marked for deletion so new leases can be issued to clients requesting them. You can modify the cleanup cycle to run more frequently (if you are short of available leases) or less frequently (if you have a large pool of available leases) by modifying the registry key HKLM\System\CurrentControlSet\Services\DHCPServer\Parameters\LeaseExtension
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
finance_teacherAuthor Commented:
The below will happen if I don't
have all my IPs used, correct ?
  ** 6:02 am = lease expired
  ** 10:02 am = server is READY to release IP if needed NOW
  ** 11:00 am = hourly cleanup releases IP if not already done (could be changed if desired)
0
SandeepSr System AdministratorCommented:
Yes...Try modifying the LeaseExtension time to release the expired IP
0
Acronis Data Cloud 7.8 Enhances Cyber Protection

A closer look at five essential enhancements that benefit end-users and help MSPs take their cloud data protection business further.

SandeepSr System AdministratorCommented:
Also can you advise what value you have @DatabaseCleanupInterval in same path i.e. HKLM\System\CurrentControlSet\Services\DHCPServer\Parameters\

This value is described in minutes, and if this is more than 4 hour or so, you can reduce the same by using below command

netsh dhcp set databasecleanupinterval <Minutes>

https://technet.microsoft.com/en-us/library/cc963208.aspx

Just modify the minutes what you want to put, you can try with making it as 60. So every one hour data base clean up will be done.
0
finance_teacherAuthor Commented:
My DHCP server has HKLocalMachine\System\CurrentControlSet\Services\DHCPServer\Parameters\, but no LeaseExtension under that.  It does have DatabaseCleanupInterval = 60 (decimal) --> 3c (hexadecimal)

I assume this is OK and LeaseExtension was just never created in Windows 2003 ?
0
SandeepSr System AdministratorCommented:
Yes

Try adding as below

DHCP Grace Period = Amount of time AFTER DHCP lease expires before it is subject to DHCP clean up (default = 4 hours!)
Can be set by adding HKLM\System\CurrentControlSet\Services\DHCPServer\ Parameters\LeaseExtension DWORD reg key (in minutes)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DHCP

From novice to tech pro — start learning today.