Mac OS X Server 10.1: DHCP Leases Do Not Appear to Expire

When looking at DHCP client information in Server Admin, you may see client IP addresses with a Time Left value of "0 minutes". IP Addresses with this notation represent client leases that have expired, but that have not necessarily been reassigned.
Symptom

DHCP clients have a Time Left value of "0 minutes" listed in Server Admin. This appears in the DHCP Clients window (Figure 1), which is accessed by choosing View DHCP Clients from the DHCP/NetBoot module of Server Admin.




Figure 1 The DHCP Clients window

Solution

Client lease expiration occurs at the time specified in the Configure DHCP window of Server Admin. When client leases expire, the DHCP Clients window of Server Admin shows a Time Left value of "0 minutes". These are leases that have expired and are available for reassignment, if necessary.

The DHCP server attempts to associate client hardware addresses with the same IP addresses whenever possible, so an expired lease is retained for future reassignment to the same hardware address that originally requested it. The DHCP server will recycle a leased IP address when these conditions are met:

The available IP address range (and thus maximum number of leases) is set in Server Admin. To access these settings, follow these steps:

These settings appear in the General pane of the subnet's individual configuration window.

Example

If you create a pool of 100 DHCP client addresses but only start up 25 computers, then the same 25 leases should always be given to those computers. Next, let these leases expire and start up 25 different computers. These clients now receive 25 new leases while the original 25 show as expired. If you start up the original 25 computers, they should get the same IP addresses they had before.

If you keep starting up new computers until 100 leases are used, each computer receives its leased IP address. At this point, no additional computers should be able to receive a new lease. If you shut down all computers and allow the leases to expire, a newly added system (computer 101) gets a new lease, but consumes a previously used DHCP IP address. Server Admin would indicated that there are now 99 leases with a Time Left value of 0 minutes.
Published Date: Feb 20, 2012