Depending on which version of the DHCP client you are using and on the nature of
the problem, it may be difficult to tell which of these two problems has occurred.
Failure to Acquire or Renew a Lease
Some older DHCP clients, such as the one included in Windows 95, notify the user if
they fail to acquire or renew a lease. Unfortunately, most modern DHCP clients
assume that if they are unable to get an IP address from a DHCP server, they should
use an Automated Private IP Addressing (APIPA) as described in Chapter 21 in the
section titled, “When a Client Fails to Get an Address.” The clients included in
Windows 98, 2000, Me, and XP, and the clients included in Mac OS 9 and later
versions all do APIPA autoconfiguration if they can’t contact a DHCP server or
acquire an IP address.
These clients do not display a dialog box if they fail to acquire an IP address. Instead,
they choose an IP address on the 169.254.0.0/16 subnet. The only way to tell that
the client chose an autoconfiguration address is to find out what IP address the
client has, if any. If the client has an IP address that starts with 169.254, the DHCP
client was not able to acquire an IP address from the DHCP server.
To check the IP address that a client acquired on Windows 98, you use the
winipcfg
command. When you do, a dialog box appears, allowing you to see what IP address
is assigned to each network interface. In Windows NT, 2000, and XP you use the
ipconfig command to display a list of interfaces and their IP addresses. In Windows
Me you can use either of these commands. On Unix and Linux systems, you can
type
netstat -in to get a list of the IP addresses associated with each interface. On
Mac OS 9, the TCP/IP Control Panel sometimes shows the IP address that is config-
ured to a particular network interface, if you select that interface and click on the
Info
button, but it does not always display this information. On Mac OS X, you can
use the Network Preferences dialog box to show the IP address of an interface, and
you can also use the
netstat command.
NOTE
DHCP clients on multiuser systems, such as Unix, Linux, NetBSD, and Windows NT, do not
necessarily display dialog boxes indicating that a problem exists in acquiring an IP address.
Instead, the DHCP client reports the problems through the system error log. To determine
that these systems failed to acquire an IP address, you can either look in the error log or check
the IP address assigned to each network interface that the DHCP client is instructed to config-
ure. If the network interface doesn’t have an IP address, the DHCP client failed to acquire one.
On Unix-like systems, the syslog daemon, which is configured through the
/etc/syslog.conf
file, writes the system error log. If you don’t know where DHCP
client errors are logged, consulting this file and the documentation for the DHCP
CHAPTER 24 Debugging Problems with DHCP414
028 3273 CH24 10/3/02 4:57 PM Page 414