dhcpclient.1m (2010 09)

d
dhcpclient(1M) dhcpclient(1M)
NAME
dhcpclient - Client for Dynamic Host Configuration Protocol Server
SYNOPSIS
dhcpclient [-G][-N
hostname ] -b interface [-f tracefile][-g class-id ][
-l debug_level ][-n]
[
-p][-s
server_ipaddress][-t
log_type ][-x send_attempts][
-z time_to_wait ]
dhcpclient -d interface [-s server_ipaddress]
dhcpclient [-N hostname ][-f
tracefile][-l debug_level ] -m interface [-p][
-s
server_ipaddress][
-t log_type ][-z
time_to_wait ]
dhcpclient [-f tracefile][
-l debug_level ][-p] -r interface [-s server_ipaddress][
-t
log_type ]
dhcpclient -v
DESCRIPTION
dhcpclient is used to obtain the configuration parameters from the Dynamic Host Configuration Proto-
col (DHCP) server (bootpd (1M)) to configure the host. Currently,
dhcpclient supports 10bt (10BaseT)
and 100bt (100BaseT)
Ethernet networks only. It does not support FDDI and Token-Ring net-
works.
dhcpclient is invoked by the auto_parms script (see auto_parms (1M)) at boot up. The
/etc/rc.config.d/netconf
file is used for the configuration of the interfaces. To invoke
dhcpclient using the auto_parms script, set the DHCP_ENABLE[index ] variable to a non-zero
value in the /etc/rc.config.d/netconf
file. dhcpclient can also be invoked at the command
prompt, when the interface is not configured.
Once the
dhcpclient obtains the configuration parameters from the server, it is stored in a
configuration file named /etc/dhcpclient.data
. The configuration parameters are valid for a fixed
time, lease time.
The configuration information in
/etc/dhcpclient.data
file will be of the following format.
<
code><length><data>
00 <length> IFname
01 <length> hostname
02 <length> sname
03 <length> bootfile
04 <length> NIS_domain
05 <length> domain_name
06 <length> lease_duration
07 <length> lease_expiration
08 <length> T1
09 <length> T2
10 <length> htype
11 <length> chaddr
12 <length> IP_addr
13 <length> subnet_mask
14 <length> broadcast_addr
15 <length> default_gateway
16 <length> server_addr
17 <length> boot_server
18 <length> dest_gateway
19 <length> DNS_server
20 <length> LPR_server
21 <length> swap_server
22 <length> NIS_server
23 <length> NTP_server
24 <length> raw_options
The length field denotes the length of the data field following it.
All these lines collectively indicate one record. The configuration file will have series of records.
Since this file contains all the configuration information, it can be used to identify the server from which
the configuration parameters were obtained. The configuration file can also be used to obtain the same
configuration parameters from the server. So, once the
dhcpclient is invoked, it will try to read the
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (4 pages)