background image
LAN Connectivity Problems
319
Obtaining an IP Address
Hosts can obtain an IP address in one of two ways: statically or dynamically.
Once an IP address is configured on a host, it is assigned to that machine
until the administrator removes it. Assuming that the address, mask, and
gateway were configured correctly, and that it is not a duplicate IP address,
the host will not have any problems connecting to the LAN that could be
attributed to its IP address and configuration.
There are two protocols used to allow hosts to obtain their IP address
dynamically: Bootstrap Protocol (BootP) and Dynamic Host Configuration
Protocol (DHCP)
.
DHCP
DHCP is a superset of the Bootstrap Protocol (BootP). This means that it
uses the same protocol structure as BootP, but it has enhancements added.
Both of these protocols use servers that dynamically configure clients when
requested. The two major enhancements are address pools and lease times.
The process for each differs somewhat. DHCP clients broadcast a Dis-
cover message that contains the MAC address, hostname, and other
options. The broadcast is sent from UDP port 67 to UDP port 68. Servers
respond by sending from UDP port 68 destined to UDP port 67. When the
server sends the response, it is called an Offer. The Offer includes the infor-
mation sent in the client's Discover request, IP configuration information,
and lease information. If the client chooses to accept the offer, it sends a
Request that includes the Offer information, as well as the original Dis-
cover information. If the DHCP server is still able to grant the Offer con-
figuration, it will send an acknowledgment to the client. If it cannot grant
the Offer, it sends a Decline message to the client. Figure 6.8 gives a clearer
picture of these transactions.
Copyright ©2000 SYBEX , Inc., Alameda, CA
www.sybex.com