The TCP/IP Guide - Version 3.0 (Contents) ` 1137 _ © 2001-2005 Charles M. Kozierok. All Rights Reserved.
a notebook computer in to the network to check e-mail or transfer a file. If that machine is
assigned an IP address using automatic allocation, the visitor will “take it with him” when he
leaves. Obviously, not a great idea.
For this reason, most administrators prefer to use dynamic allocation instead, with
addresses set to a very long time frame, such as a year or two years. This is considered
“near enough to infinity” that it approximates a permanent assignment, but allows an IP
address to eventually be recovered if a device for whatever reason stops using it. In such a
policy, anything that really, truly needs a permanent assignment is given an address using
manual assignment, which requires a conscious decision to dedicate the address to a
particular device.
Related Information: For a little more information related to lease length
selection, see the topic on DHCP server implementation problems and issues.
DHCP Lease "Life Cycle" Overview (Allocation, Reallocation, Renewal,
Rebinding and Release) and Lease Timers
The use of dynamic address allocation in DHCP means a whole new way of thinking about
addresses. A client no longer owns an address, but rather leases it. This means that when
a client machine is set to use DHCP dynamic addressing, it can never assume that it has an
address on a permanent basis. Each time it powers up, it must engage in communications
with a DHCP server to begin or confirm the lease of an address. It also must perform other
activities over time to manage this lease and possibly terminate it.
The DHCP Lease "Life Cycle"
Calling dynamic address assignments leases is a good analogy, because a DHCP IP
address lease is similar to a “real world” lease in a number of respects. For example, when
you rent an apartment, you sign the lease. Then you use the apartment for a period of time.
Typically, assuming you are happy with the place, you will renew the lease before it expires,
so you can keep using it. If by the time you get near the end of the lease the owner of the
apartment has not allowed you to renew it, you will probably lease a different apartment to
ensure you have somewhere to live. And if you decide, say, to move out of the country, you
may terminate the lease and not get another at all.
DHCP leases follow a similar lease “life cycle”, which generally consists of the following
phases:
☯ Allocation: A client begins with no active lease, and hence, no DHCP-assigned
address. It acquires a lease through a process of allocation.
☯ Reallocation: If a client already has an address from an existing lease, then when it
reboots or starts up after being shut down, it will contact the DHCP server that granted
it the lease to confirm the lease and acquire operating parameters. This is sometimes
called reallocation; it is similar to the full allocation process but shorter.