NOTE
This mechanism for finding alternate servers for extending a lease was included in DHCP to
enhance reliability. If the server from which a DHCP client received its lease is unavailable for
an extended period, the client automatically locates another server. If the DHCP server that
granted a client its lease is moved to a new computer system, with a new IP address, the
client automatically finds the server at its new address when it cannot contact it at the old
address.
Using alternate DHCP servers implies that the servers can coordinate the information about
clients and leases. If dhcpserve gives an address to desktop1, other servers must learn about
that address and its lease before they can extend the lease. The DHCP specification in RFC
2131 does not define a standard way for servers to exchange lease information. Chapter 10,
“Failover Protocol Operation.” And Chapter 17, “Setting Up a Reliable DHCP Service,” discuss
some alternatives for using multiple DHCP servers.
In the REBINDING state, after a server has received the broadcast DHCPREQUEST message
from the client, it unicasts the
DHCPACK message to the client. When the client
receives a
DHCPACK message, it records the new lease and the responding server’s
address. The next time the client extends its lease, it uses this new server.
When a Lease Expires
If a client is unable to contact a server to renew its lease before the lease expires, the
client must stop using its IP address and go back to the
INIT state. When the client’s
lease on an address expires while the client is using the network, all active TCP
connections are dropped, and the user might have to reconnect to network applica-
tions that were in use. Data (and tempers!) can be lost when the client’s lease
expires, so it is important for the client to extend the lease before it expires. Ways of
preventing lease expiration are discussed in Chapter 17.
Moving to a New Network
If desktop1 moves to a new network segment while it is powered off, DHCP allows it
to quickly discover that it has moved. When it starts up after the move, it broadcasts
a
DHCPREQUEST message for its old IP address. When dhcpserve receives the DHCPRE-
QUEST message, it compares the new network segment to the requested address and
determines that the address will not work on that network segment. For example, if
desktop1 moves from the 192.168.11.0 subnet to the 192.168.12.0 subnet, it broad-
casts its previous address—say, 192.168.11.25—in a
DHCPREQUEST message. The relay
agent on the 192.168.12.0 subnet forwards the message to the server. The server
checks its configuration information and finds that the client’s requested address,
192.168.11.25, is not on the same network segment as the 192.168.12.0 subnet,
which means that
desktop1’s address is invalid.
Client States 115
011 3273 CH08 10/3/02 5:00 PM Page 115