Technical data

Configuring the DHCP Client
8.2 DHCP Client Components
Example 8–1 shows the contents of a typical CLIENT.PCY file.
Example 8–1 Client Startup File
$ TYPE CLIENT.PCY
class_id TCPVMS
lease_desired 86400 # 24 hour lease
request routers
request host_name
request dns_servers
request dns_domain_name
The format of the configuration file must adhere to the following rules:
Blank lines are ignored.
The pound (#) character introduces a comment that continues to the next
newline character.
Each new policy option must begin and end on a separate line.
Policy options are introduced by a keyword and may be Boolean, or they may
take a value separated from the keyword by white space (but not a newline
character).
If an option is present more than once, only the value attached to the last
occurrence will be take effect; earlier values are ignored.
Table 8–1 describes the configuration keywords.
Table 8–1 Configuration Keywords
Keyword Description
class_id
Specifies the client’s class identification. Consult RFC
2131 for details. The only class supported by TCP/IP
Services is TCPVMS.
lease_desired seconds
Specifies that a client may request a lease of a
particular duration, although DHCP servers are not
bound to honor the request. If the client does not want
a lease of a particular duration, seconds should be set
to 0. If an infinite lease is required, set seconds to
-1. Otherwise, specify (in seconds) the lease duration
required. The default value is 0 seconds. A DHCP
server grants a client permission to use an IP address
for a fixed period of time, which may be infinite. In
the language of DHCP, the client is granted a lease on
the IP address.
retries
Specifies the maximum number of DHCPDISCOVER,
DHCPOFFER, DHCP_REQUEST, DHCPNAK
sequences the client attempts. An offer received
and then refused is an unusual event; if it occurs more
than once, this indicates a problem with the server.
If you do not want to limit the number of bad offers
that a client is willing to accept, set the value of this
parameter to 0 (zero) or a negative value. The default
value is 2 attempts.
(continued on next page)
8–6 Configuring the DHCP Client