NAME
dhclient.conf —
DHCP client configuration
file
DESCRIPTION
dhclient.conf is the configuration file
for dhclient(8). It is a free-form ASCII text file made up of
declarations, extra tabs and newlines for formatting purposes and comments.
Keywords in the file are case-insensitive. Comments begin with the
‘#’ character and extend to the end of the current line.
PROTOCOL TIMING DECLARATIONS
backoff-cutoffseconds;- Sets the maximum number of seconds to wait before retransmitting a packet. The default is 10 seconds.
initial-intervalseconds;- Sets the number of seconds between the first packet transmission and the first retransmission of the packet. The default is 1 second.
link-timeoutseconds;- Sets the number of seconds to wait for a lease before going into the background as a daemon. The default is 10 seconds.
rebootseconds;- Sets the number of seconds to wait before giving up on reacquiring the previous lease, and how long to attempt unicast renewal requests before falling back to broadcast renewal requests. The default is 1 second.
retryseconds;- Sets the number of seconds to wait before starting a new attempt to obtain a lease. The default is 1 second.
select-timeoutseconds;- Sets the number of seconds to wait for additional leases after the first
lease arrives. After
select-timeoutseconds the best lease received will be selected. The default is 0 seconds, i.e. immediately use the first acceptable lease received. timeoutseconds;- Sets the number of seconds to wait for a lease. If no lease is received, the first valid lease in dhclient.leases(5) will be used. The default is 30 seconds.
DHCP OPTION DECLARATIONS
appendoption option-value;- Append option-value to the value of
option in the lease. Each
appendfor option overrides any previousappend,default,ignore,prependorsupersedefor option.If the option's data cannot be appended to, i.e. it has a fixed size, then
appendwill be treated asdefault. defaultoption option-value;- If no value for option is present in the lease, use
option-value. Each
defaultfor option overrides any previousappend,default,ignore,prependorsupersedefor option. ignore[option, ...];- Discard values provided for the listed options.
ignorestatements are cumulative, except that an empty list will remove all previously specified options. Eachignorefor option overrides any previousappend,default,prependorsupersedefor option. prependoption option-value;- Prepend option-value to the value of
option in the lease. Each
prependfor option overrides any previousappend,default,ignore,prependorsupersedefor option.If the option's data cannot be prepended to, i.e. it has a fixed size, then
prependwill be treated assupersede. request[option, ...];- Ask that any lease contain values for the listed options.
requeststatements are cumulative, except that an empty list will remove all previously specified options. The default is to request the options bootfile-name, broadcast-address, classless-static-routes, host-name, domain-name, domain-name-servers, domain-search, routers, subnet-mask, tftp-server-name and time-offset. require[option, ...];- Discard leases that do not contain the listed options.
requirestatements are cumulative, except that an empty list will remove all previously specified options. The default is to require the option subnet-mask. sendoption option-value;- Include option-value in requests for a lease. To
include multiple options in requests,
sendcan be used multiple times. supersedeoption option-value;- Use option-value for the given
option regardless of the value in the lease. Each
supersedefor option overrides any previousappend,default,ignore,prependorsupersedefor option. uselease[option, ...];- Use the unmodified values provided in the lease for any specified
option.
useleasestatements are cumulative. If no option is specified, all lease option values will be used unmodified.useleasefor option overrides any previousappend,default,ignore,prependorsupersedefor option.
OTHER DECLARATIONS
filenamepath;- Use path instead of the
filefield of the DHCP offer when binding a lease. fixed-addressip-address;- Use ip-address instead of the
yiaddrfield of the DHCP offer when binding a lease. interface"name" { declaration; ...; }- Apply any declaration only to the named interface.
rejectip-address;- Discard leases from the specified address. If more than one
rejectis present, all leases from any of the addresses will be discarded. next-serverip-address;- Use ip-address instead of the
siaddrfield of the DHCP offer when binding a lease. server-namehost;- Use host instead of the
snamefield of the DHCP offer when binding a lease.
FILES
- /etc/dhclient.conf
- /etc/examples/dhclient.conf
SEE ALSO
dhclient.leases(5), dhcp-options(5), dhcpd.conf(5), dhclient(8), dhcpd(8)