If the client fails to renew its lease, when the lease expires, the DHCP server removes
the lease from the lease database. When the DHCP server is stopped and then
restarted, it checks to see whether any leases expired while it was stopped, and if so,
it removes any DNS entries that had been entered for those leases.
DHCP Message Handling
DHCP clients can send a variety of other messages during operation, including
DHCPDECLINE, DHCPRELEASE, DHCPINFORM, and DHCPLEASEQUERY messages. The follow-
ing sections discuss the handling of these messages.
DHCPDECLINE
Message Handling
A DHCP client can send DHCPDECLINE messages if it is assigned an IP address that
another client is using. The client detects this by sending an ARP request for the IP
address it is assigned when it receives a
DHCPACK message while in the REQUESTING
state. If it receives a response to this ARP message, the client knows that the address
it received is in use, so it sends a
DHCPDECLINE message, indicating to the DHCP
server that the client cannot use the address.
The ISC DHCP server normally honors
DHCPDECLINE messages from clients, creating
permanent leases for such addresses, marking them as abandoned (see the section
“Address Assignment”), and logging a message indicating that this happened. When
an address is marked as abandoned, it is not normally allocated to any client. If a
client is sending
DHCPDECLINE messages as a denial of service attack, the server
reclaims abandoned leases according to a strategy described later in this chapter. This
prevents such denial of service attacks from causing great harm, although they still
place an additional load on the DHCP server.
DHCPRELEASE
Message Handling
When a server receives a DHCPRELEASE message from a client, it changes the expira-
tion time of the lease to the current time and records the lease. A message is logged,
indicating that this happened.
DHCPINFORM
Message Handling
When the server receives a DHCPINFORM message, it collects the parameters that are
appropriate for the network segment that the client claims to be connected to and
sends them to the client in a
DHCPACK message. No address allocation is performed.
The server prints log messages, indicating that the
DHCPINFORM message was received
and that the
DHCPACK was sent. If the server has not been configured to be authorita-
tive, the server ignores and does not respond to
DHCPINFORM messages because the
information it has may not be correct.
DHCP Message Handling 199
016 3273 CH12 10/3/02 4:59 PM Page 199