INIT
state, after which it should acquire a different IP address. If a DHCP server sends
a
DHCPNAK
message when it shouldn’t or doesn’t send one when it should, the client
may not be able to acquire or renew a lease.
The Server Sends DHCPNAK Message When Inappropriate
If two DHCP servers are providing DHCP service for a single network segment, both
DHCP servers must agree on the subnet configuration and on any static IP address
assignments they have for that network segment. If they are performing dynamic IP
address allocation, they must not be allocating from the same set of IP addresses
unless they have some way to communicate with one another about which addresses
they assign (for example, the DHCP failover protocol).
If two DHCP servers do not agree on the configuration of a given network segment,
it is likely that each server is preventing clients from completing the DHCP configu-
ration process with the other server. If you have access to the logs of both DHCP
servers, you can compare them to see whether this is happening. If a client sends a
DHCPDISCOVER
message, gets a
DHCPOFFER
message from one server, sends a
DHCPREQUEST
message for that IP address, and gets a
DHCPNAK
message from the other server, one of
the two servers is not configured correctly; the
DHCPNAK message prevents the DHCP
client from acquiring an IP address from the other server.
Rogue DHCP Servers
If you think you have only one DHCP server configured to support a given network
segment, you might be wrong; perhaps some user of that network segment tried to
configure his or her own DHCP server and got the configuration wrong. You might
be able to determine that this happened by running a network analyzer on the
network and watching the DHCP packets that are exchanged with a client. If you see
DHCP packets coming from some IP address on which you aren’t aware that a DHCP
server exists, you have a rogue DHCP server on your network.
Configuration Drift Between Cooperating DHCP Servers
A common configuration error can occur when two servers are providing service on
the same network segment. As the DHCP server begins to run low on addresses for a
network segment, a subnet is added on one server to make more addresses available,
but the administrator forgets to add that subnet to the other DHCP server. The new
subnet is configured on the same network segment as the old subnet. Thus, one
server’s idea of what IP subnets are configured for the network segment is different
from the other server’s idea.
This configuration error does not show up until some DHCP client is offered an
address on the newly allocated subnet. At that time, the DHCP client broadcasts a
CHAPTER 24 Debugging Problems with DHCP424
028 3273 CH24 10/3/02 4:57 PM Page 424