DHCP-OPTIONS(5) | MidnightBSD File Formats Manual | DHCP-OPTIONS(5) |
dhcp-options
—
Dynamic Host Configuration Protocol options
The Dynamic Host Configuration protocol allows the client to
receive options
from the DHCP server describing the
network configuration and various services that are available on the
network. When configuring
dhcpd(8) or
dhclient(8), options
must often be declared. The syntax for declaring options, and the names and
formats of the options that can be declared, are documented here.
DHCP option
statements always start with
the option
keyword, followed by an option name,
followed by option data. The option names and data formats are described
below. It is not necessary to exhaustively specify all DHCP options - only
those options which are needed by clients must be specified.
Option data comes in a variety of formats, as defined below:
The ip-address data type can be entered
either as an explicit IP address (e.g.,
239.254.197.10
) or as a domain name (e.g.,
haagen.isc.org
). A domain name must resolve to a
single IP address.
The int32 data type specifies a signed 32-bit integer. The uint32 data type specifies an unsigned 32-bit integer. The int16 and uint16 data types specify signed and unsigned 16-bit integers. The int8 and uint8 data types specify signed and unsigned 8-bit integers. Unsigned 8-bit integers are also sometimes referred to as octets.
The string data type specifies an NVT (Network Virtual Terminal) ASCII string, which must be enclosed in double quotes - for example, to specify a domain-name option, the syntax would be
option domain-name
"isc.org";
The flag data type specifies a boolean
value. Booleans can be either true
or
false
(or on
or
off
, if that makes more sense to you).
The data-string data type specifies either an NVT ASCII string enclosed in double quotes, or a series of octets specified in hexadecimal, separated by colons. For example:
option dhcp-client-identifier
"CLIENT-FOO";
option dhcp-client-identifier
43:4c:49:45:54:2d:46:4f:4f;
The documentation for the various options mentioned below is taken
from the IETF draft document on DHCP options, RFC 2132. Options which are
not listed by name may be defined by the name
option-
nnn, where
nnn is the decimal number of the option code. These
options may be followed either by a string, enclosed in quotes, or by a
series of octets, expressed as two-digit hexadecimal numbers separated by
colons. For example:
option option-133 "my-option-133-text"; option option-129 1:54:c9:2b:47;
Because dhcpd(8) does not know the format of these undefined option codes, no checking is done to ensure the correctness of the entered data.
The standard options are:
option
subnet-mask
ip-address;subnet-mask
option specifies the client's
subnet mask as per RFC 950. If no subnet-mask option is provided anywhere
in scope, as a last resort
dhcpd(8) will use the
subnet mask from the subnet declaration for the network on which an
address is being assigned. However,
any
subnet-mask option declaration that is in scope for the address being
assigned will override the subnet mask specified in the subnet
declaration.option
time-offset
int32;time-offset
option specifies the offset of the
client's subnet in seconds from Coordinated Universal Time (UTC).option
routers
ip-address [,
ip-address ...];routers
option specifies a list of IP
addresses for routers on the client's subnet. Routers should be listed in
order of preference.option
time-servers
ip-address [,
ip-address ...];time-server
option specifies a list of RFC 868
time servers available to the client. Servers should be listed in order of
preference.option
ien116-name-servers
ip-address [,
ip-address ...];ien116-name-servers
option specifies a list of
IEN 116 name servers available to the client. Servers should be listed in
order of preference.option
domain-name-servers
ip-address [,
ip-address ...];domain-name-servers
option specifies a list of
Domain Name System (STD 13, RFC 1035) name servers available to the
client. Servers should be listed in order of preference.option
log-servers
ip-address [,
ip-address ...];log-servers
option specifies a list of MIT-LCS
UDP log servers available to the client. Servers should be listed in order
of preference.option
cookie-servers
ip-address [,
ip-address ...];cookie-servers
option specifies a list of RFC
865 cookie servers available to the client. Servers should be listed in
order of preference.option
lpr-servers
ip-address [,
ip-address ...];lpr-servers
option specifies a list of RFC
1179 line printer servers available to the client. Servers should be
listed in order of preference.option
impress-servers
ip-address [,
ip-address ...];impress-servers
option specifies a list of
Imagen Impress servers available to the client. Servers should be listed
in order of preference.option
resource-location-servers
ip-address [,
ip-address ...];option
host-name
string;domain-name
option to specify the domain name).
See RFC 1035 for character set restrictions.option
boot-size
uint16;option
merit-dump
string;option
domain-name
string;option
domain-search
string;option
swap-server
ip-address;option
root-path
string;option
ip-forwarding
flag;option
non-local-source-routing
flag;option
policy-filter
ip-address ip-address [,
ip-address ip-address ...];Any source-routed datagram whose next-hop address does not match one of the filters should be discarded by the client.
See STD 3 (RFC 1122) for further information.
option
max-dgram-reassembly
uint16;option
default-ip-ttl
uint8;option
path-mtu-aging-timeout
uint32;option
path-mtu-plateau-table
uint16 [,
uint16 ...];option
interface-mtu
uint16;option
all-subnets-local
flag;option
broadcast-address
ip-address;option
perform-mask-discovery
flag;option
mask-supplier
flag;option
router-discovery
flag;option
router-solicitation-address
ip-address;option
static-routes
ip-address ip-address [,
ip-address ip-address ...];The routes consist of a list of IP address pairs. The first address is the destination address, and the second address is the router for the destination.
The default route (0.0.0.0) is an illegal destination for a
static route. To specify the default route, use the
routers
option.
option
trailer-encapsulation
flag;option
arp-cache-timeout
uint32;option
ieee802-3-encapsulation
flag;option
default-tcp-ttl
uint8;option
tcp-keepalive-interval
uint32;option
tcp-keepalive-garbage
flag;option
nis-domain
string;option
nis-servers
ip-address [,
ip-address ...];option
ntp-servers
ip-address [,
ip-address ...];option
netbios-name-servers
ip-address [,
ip-address ...];netbios-name-servers
option.option
netbios-dd-server
ip-address [,
ip-address ...];option
netbios-node-type
uint8;Possible node types are:
option
netbios-scope
string;option
font-servers
ip-address [,
ip-address ...];option
x-display-manager
ip-address [,
ip-address ...];option
dhcp-client-identifier
data-string;option
nisplus-domain
string;option
nisplus-servers
ip-address [,
ip-address ...];option
tftp-server-name
string;server-name
declaration. BOOTP clients are
unlikely to support this option. Some DHCP clients will support it, and
others actually require it.option
bootfile-name
string;filename
declaration. BOOTP clients are unlikely
to support this option. Some DHCP clients will support it, and others
actually require it.option
mobile-ip-home-agent
ip-address [,
ip-address ...];option
smtp-server
ip-address [,
ip-address ...];smtp-server
option specifies a list of SMTP
servers available to the client. Servers should be listed in order of
preference.option
pop-server
ip-address [,
ip-address ...];pop-server
option specifies a list of POP3
servers available to the client. Servers should be listed in order of
preference.option
nntp-server
ip-address [,
ip-address ...];nntp-server
option specifies a list of NNTP
servers available to the client. Servers should be listed in order of
preference.option
www-server
ip-address [,
ip-address ...];www-server
option specifies a list of WWW
servers available to the client. Servers should be listed in order of
preference.option
finger-server
ip-address [,
ip-address ...];finger-server
option specifies a list of
finger(1) servers
available to the client. Servers should be listed in order of
preference.option
irc-server
ip-address [,
ip-address ...];irc-server
option specifies a list of IRC
servers available to the client. Servers should be listed in order of
preference.option
streettalk-server
ip-address [,
ip-address ...];streettalk-server
option specifies a list of
StreetTalk servers available to the client. Servers should be listed in
order of preference.option
streettalk-directory-assistance-server
ip-address [, ip-address
...];dhclient.conf(5), dhcpd.conf(5), dhcpd.leases(5), dhclient(8), dhcpd(8)
RFC 2131, RFC 2132.
The dhcpd(8) utility was written by Ted Lemon <mellon@vix.com> under a contract with Vixie Labs.
The current implementation was reworked by Henning Brauer <henning@openbsd.org>.
January 1, 1995 | midnightbsd-3.1 |