Pitfalls of Shared-Network Configurations
DHCP administrators commonly make the mistake of omitting necessary informa-
tion when they first set up a shared-network configuration. For example, say you
have a network segment with two IP subnets and you intend to supply IP addresses
for one subnet with one DHCP server and IP addresses for the other subnet with a
second DHCP server. You might be tempted to just write a subnet declaration in each
server’s configuration file for the subnet that server is intended to serve and not
mention the other subnet. The problem with this is that DHCP servers are responsi-
ble for telling DHCP clients whether their IP address is correct for a given network.
DHCPNAK Message Wars
Imagine that a
DHCP client on the shared network described in the preceding section
broadcasts a
DHCPDISCOVER packet. Both DHCP servers may respond with a DHCPOFFER
packet, each offering an IP address on a different subnet. The client chooses one and
sends out a
DHCPREQUEST for that IP address. The DHCP server whose address was not
chosen sees that the requested address is not on the subnet that it knows is
connected to the network segment on which the
DHCPREQUEST was sent. It therefore
sends the client a
DHCPNAK message. If that DHCPNAK message arrives before the other
server’s
DHCPACK message, the client does not get its address and must start over. This
DHCPNAK war can go on indefinitely.
If both servers know about both subnets, however, neither server will send DHCPNAK
messages in response to DHCPREQUEST messages for IP addresses on the subnet being
served by the other server. Clients can, therefore, be configured successfully.
If both DHCP servers are being managed by the same administrator, it is possible to
see what is happening by examining the server logs; if one or both of the servers are
sending
DHCPNAK messages in response to client requests that are correct, their config-
urations must be fixed. If one network administrator controls one of the DHCP
servers and a second administrator controls the other, a network analyzer could be
needed to solve this problem. Chapter 24, “Debugging Problems with DHCP,”
discusses this in more detail.
Cable Modem Networks
Cable modem networks are broadcast networks, just like Ethernet networks. Most
ISPs that provide cable modem service use DHCP to perform address assignment on
their networks. Some cable modem networks have extensive filtering so that a
subscriber sees only packets meant for his or her home. However, many cable
modem networks are just big LANs, where a subscriber can see every packet sent to
anybody on his or her network segment, including DHCP packets. If you set up a
DHCP server but do not configure it carefully, it is likely that the server will see a
DHCPREQUEST message sent by a computer belonging to your neighbor down the
street, deduce that the machine is asking for an IP address on the wrong network,
CHAPTER 15 Configuring a DHCP Server270
019 3273 CH15 10/3/02 4:59 PM Page 270