from the pump application to perform actions including immediate renewal of an
address, release of an address, or printing of the current status information about the
interface managed by the pump daemon.
The ISC DHCP Client
The ISC DHCP client is a general-purpose client intended for use on computers
running Unix and Unix-like operating systems. The DHCP client protocol engine is
implemented by using the same underlying network code that’s used to implement
the ISC DHCP server. On top of that is a DHCP client protocol engine. When an
address is acquired, the DHCP client invokes a shell script that issues system-specific
commands to configure the network interfaces and routing table, and to install the
DNS configuration.
ISC DHCP Client Installation
The ISC DHCP client is included in the ISC DHCP distribution. The instructions for
installing the DHCP server, included in Chapter 14, “The ISC DHCP Server,” and in
Appendix F, “DHCP Server and Operating System Versions,” also apply to the client.
The client program is called
dhclient, and it is installed automatically when you
type
make install after building the distribution, as shown in Chapter 14.
Because the underlying network interface code is the same for the ISC DHCP client
and server, the system-specific caveats mentioned in Appendix F all apply to the
client as well as the server. Like the server, the client should be installed in the
system startup script so that it automatically configures network interfaces on system
startup.
ISC DHCP Client Operation
As mentioned in the section “The Theory of DHCP Client Operation,” earlier in this
chapter, the ISC DHCP client normally starts up and runs in the foreground until it
acquires an IP address. After it acquires an IP address, the foreground process exits,
and the client continues running in the background as a daemon.
You can take advantage of this behavior by starting the DHCP client in the system
startup script before any daemons that depend on the network being configured are
started. Because the client does not exit until the network is configured (or until it
can no longer successfully be configured), daemons that are started after the DHCP
client’s foreground process exits can reasonably depend on having network connec-
tivity when they are started.
If, for some reason, it is not considered desirable to have the DHCP client go into the
background on startup, you can specify the
-d switch. You can specify the -q switch
to make the client startup process completely silent. You can obtain a complete
The ISC DHCP Client 367
025 3273 CH21 10/3/02 4:57 PM Page 367