1dhcpd-options(5) File Formats Manual dhcpd-options(5)
2
3
4
6 dhcp-options - Dynamic Host Configuration Protocol options
7
9 The Dynamic Host Configuration protocol allows the client to receive
10 options from the DHCP server describing the network configuration and
11 various services that are available on the network. When configuring
12 dhcpd(8) or dhclient(8) , options must often be declared. The syntax
13 for declaring options, and the names and formats of the options that
14 can be declared, are documented here.
15
17 DHCP option statements always start with the option keyword, followed
18 by an option name, followed by option data. The option names and data
19 formats are described below. It is not necessary to exhaustively
20 specify all DHCP options - only those options which are needed by
21 clients must be specified.
22
23 Option data comes in a variety of formats, as defined below:
24
25 The ip-address data type can be entered either as an explicit IP
26 address (e.g., 239.254.197.10) or as a domain name (e.g., haa‐
27 gen.isc.org). When entering a domain name, be sure that that domain
28 name resolves to a single IP address.
29
30 The ip6-address data specifies an IPv6 address, like ::1 or
31 3ffe:bbbb:aaaa:aaaa::1.
32
33 The int32 data type specifies a signed 32-bit integer. The uint32
34 data type specifies an unsigned 32-bit integer. The int16 and uint16
35 data types specify signed and unsigned 16-bit integers. The int8 and
36 uint8 data types specify signed and unsigned 8-bit integers. Unsigned
37 8-bit integers are also sometimes referred to as octets.
38
39 The text data type specifies an NVT ASCII string, which must be
40 enclosed in double quotes - for example, to specify a root-path option,
41 the syntax would be
42
43 option root-path "10.0.1.4:/var/tmp/rootfs";
44
45 The domain-name data type specifies a domain name, which must not be
46 enclosed in double quotes. This data type is not used for any exist‐
47 ing DHCP options. The domain name is stored just as if it were a text
48 option.
49
50 The domain-list data type specifies a list of domain names, enclosed in
51 double quotes and separated by commas ("example.com", "foo.exam‐
52 ple.com").
53
54 The flag data type specifies a boolean value. Booleans can be either
55 true or false (or on or off, if that makes more sense to you).
56
57 The string data type specifies either an NVT ASCII string enclosed in
58 double quotes, or a series of octets specified in hexadecimal, sepa‐
59 rated by colons. For example:
60
61 option dhcp-client-identifier "CLIENT-FOO";
62 or
63 option dhcp-client-identifier 43:4c:49:45:54:2d:46:4f:4f;
64
65 The destination-descriptor describe the IP subnet number and subnet
66 mask of a particular destination using a compact encoding. This encod‐
67 ing consists of one octet describing the width of the subnet mask, fol‐
68 lowed by all the significant octets of the subnet number. The follow‐
69 ing table contains some examples of how various subnet number/mask com‐
70 binations can be encoded:
71
72 Subnet number Subnet mask Destination descriptor
73 0 0 0
74 10.0.0.0 255.0.0.0 8.10
75 10.0.0.0 255.255.255.0 24.10.0.0
76 10.17.0.0 255.255.0.0 16.10.17
77 10.27.129.0 255.255.255.0 24.10.27.129
78 10.229.0.128 255.255.255.128 25.10.229.0.128
79 10.198.122.47 255.255.255.255 32.10.198.122.47
80
82 Sometimes it's helpful to be able to set the value of a DHCP option
83 based on some value that the client has sent. To do this, you can use
84 expression evaluation. The dhcp-eval(5) manual page describes how to
85 write expressions. To assign the result of an evaluation to an
86 option, define the option as follows:
87
88 option my-option = expression ;
89
90 For example:
91
92 option hostname = binary-to-ascii (16, 8, "-",
93 substring (hardware, 1, 6));
94
96 The documentation for the various options mentioned below is taken from
97 the latest IETF draft document on DHCP options. Options not listed
98 below may not yet be implemented, but it is possible to use such
99 options by defining them in the configuration file. Please see the
100 DEFINING NEW OPTIONS heading later in this document for more informa‐
101 tion.
102
103 Some of the options documented here are automatically generated by the
104 DHCP server or by clients, and cannot be configured by the user. The
105 value of such an option can be used in the configuration file of the
106 receiving DHCP protocol agent (server or client), for example in condi‐
107 tional expressions. However, the value of the option cannot be used in
108 the configuration file of the sending agent, because the value is
109 determined only after the configuration file has been processed. In the
110 following documentation, such options will be shown as "not user con‐
111 figurable"
112
113 The standard options are:
114
115 option all-subnets-local flag;
116
117 This option specifies whether or not the client may assume that all
118 subnets of the IP network to which the client is connected use the
119 same MTU as the subnet of that network to which the client is
120 directly connected. A value of true indicates that all subnets share
121 the same MTU. A value of false means that the client should assume
122 that some subnets of the directly connected network may have smaller
123 MTUs.
124
125 option arp-cache-timeout uint32;
126
127 This option specifies the timeout in seconds for ARP cache entries.
128
129 option bcms-controller-address ip-address [, ip-address... ];
130
131 This option configures a list of IPv4 addresses for use as Broadcast
132 and Multicast Controller Servers ("BCMS").
133
134 option bcms-controller-names domain-list;
135
136 This option contains the domain names of local Broadcast and Multi‐
137 cast Controller Servers ("BCMS") controllers which the client may
138 use.
139
140 option bootfile-name text;
141
142 This option is used to identify a bootstrap file. If supported by
143 the client, it should have the same effect as the filename declara‐
144 tion. BOOTP clients are unlikely to support this option. Some DHCP
145 clients will support it, and others actually require it.
146
147 option boot-size uint16;
148
149 This option specifies the length in 512-octet blocks of the default
150 boot image for the client.
151
152 option broadcast-address ip-address;
153
154 This option specifies the broadcast address in use on the client's
155 subnet. Legal values for broadcast addresses are specified in sec‐
156 tion 3.2.1.3 of STD 3 (RFC1122).
157
158 option cookie-servers ip-address [, ip-address... ];
159
160 The cookie server option specifies a list of RFC 865 cookie servers
161 available to the client. Servers should be listed in order of pref‐
162 erence.
163
164 option default-ip-ttl uint8;
165
166 This option specifies the default time-to-live that the client should
167 use on outgoing datagrams.
168
169 option default-tcp-ttl uint8;
170
171 This option specifies the default TTL that the client should use when
172 sending TCP segments. The minimum value is 1.
173
174 option default-url string;
175
176 The format and meaning of this option is not described in any stan‐
177 dards document, but is claimed to be in use by Apple Computer. It is
178 not known what clients may reasonably do if supplied with this
179 option. Use at your own risk.
180
181 option dhcp-client-identifier string;
182
183 This option can be used to specify a DHCP client identifier in a host
184 declaration, so that dhcpd can find the host record by matching
185 against the client identifier.
186
187 Please be aware that some DHCP clients, when configured with client
188 identifiers that are ASCII text, will prepend a zero to the ASCII
189 text. So you may need to write:
190
191 option dhcp-client-identifier "\0foo";
192
193 rather than:
194
195 option dhcp-client-identifier "foo";
196
197 option dhcp-lease-time uint32;
198
199 This option is used in a client request (DHCPDISCOVER or DHCPREQUEST)
200 to allow the client to request a lease time for the IP address. In a
201 server reply (DHCPOFFER), a DHCP server uses this option to specify
202 the lease time it is willing to offer.
203
204 This option is not directly user configurable in the server; refer to
205 the max-lease-time and default-lease-time server options in
206 dhcpd.conf(5).
207
208 option dhcp-max-message-size uint16;
209
210 This option, when sent by the client, specifies the maximum size of
211 any response that the server sends to the client. When specified on
212 the server, if the client did not send a dhcp-max-message-size
213 option, the size specified on the server is used. This works for
214 BOOTP as well as DHCP responses.
215
216 option dhcp-message text;
217
218 This option is used by a DHCP server to provide an error message to a
219 DHCP client in a DHCPNAK message in the event of a failure. A client
220 may use this option in a DHCPDECLINE message to indicate why the
221 client declined the offered parameters.
222
223 This option is not user configurable.
224
225 option dhcp-message-type uint8;
226
227 This option, sent by both client and server, specifies the type of
228 DHCP message contained in the DHCP packet. Possible values (taken
229 directly from RFC2132) are:
230
231 1 DHCPDISCOVER
232 2 DHCPOFFER
233 3 DHCPREQUEST
234 4 DHCPDECLINE
235 5 DHCPACK
236 6 DHCPNAK
237 7 DHCPRELEASE
238 8 DHCPINFORM
239
240 This option is not user configurable.
241
242 option dhcp-option-overload uint8;
243
244 This option is used to indicate that the DHCP ´sname´ or ´file´
245 fields are being overloaded by using them to carry DHCP options. A
246 DHCP server inserts this option if the returned parameters will
247 exceed the usual space allotted for options.
248
249 If this option is present, the client interprets the specified addi‐
250 tional fields after it concludes interpretation of the standard
251 option fields.
252
253 Legal values for this option are:
254
255 1 the ´file´ field is used to hold options
256 2 the ´sname´ field is used to hold options
257 3 both fields are used to hold options
258
259 This option is not user configurable.
260
261 option dhcp-parameter-request-list uint16 [, uint16... ];
262
263 This option, when sent by the client, specifies which options the
264 client wishes the server to return. Normally, in the ISC DHCP
265 client, this is done using the request statement. If this option is
266 not specified by the client, the DHCP server will normally return
267 every option that is valid in scope and that fits into the reply.
268 When this option is specified on the server, the server returns the
269 specified options. This can be used to force a client to take
270 options that it hasn't requested, and it can also be used to tailor
271 the response of the DHCP server for clients that may need a more lim‐
272 ited set of options than those the server would normally return.
273
274 option dhcp-rebinding-time uint32;
275
276 This option specifies the number of seconds from the time a client
277 gets an address until the client transitions to the REBINDING state.
278
279 This option is user configurable, but it will be ignored if the value
280 is greater than the lease time.
281
282 To make DHCPv4+DHCPv6 migration easier in the future, any value con‐
283 figured in this option is also used as a DHCPv6 "T1" (renew) time.
284
285 option dhcp-renewal-time uint32;
286
287 This option specifies the number of seconds from the time a client
288 gets an address until the client transitions to the RENEWING state.
289
290 This option is user configurable, but it will be ignored if the value
291 is greater than the rebinding time, or lease time.
292
293 To make DHCPv4+DHCPv6 migration easier in the future, any value con‐
294 figured in this option is also used as a DHCPv6 "T2" (rebind) time.
295
296 option dhcp-requested-address ip-address;
297
298 This option is used by the client in a DHCPDISCOVER to request that a
299 particular IP address be assigned.
300
301 This option is not user configurable.
302
303 option dhcp-server-identifier ip-address;
304
305 This option is used in DHCPOFFER and DHCPREQUEST messages, and may
306 optionally be included in the DHCPACK and DHCPNAK messages. DHCP
307 servers include this option in the DHCPOFFER in order to allow the
308 client to distinguish between lease offers. DHCP clients use the
309 contents of the ´server identifier´ field as the destination address
310 for any DHCP messages unicast to the DHCP server. DHCP clients also
311 indicate which of several lease offers is being accepted by including
312 this option in a DHCPREQUEST message.
313
314 The value of this option is the IP address of the server.
315
316 This option is not directly user configurable. See the server-identi‐
317 fier server option in dhcpd.conf(5).
318
319 option domain-name text;
320
321 This option specifies the domain name that client should use when
322 resolving hostnames via the Domain Name System.
323
324 option domain-name-servers ip-address [, ip-address... ];
325
326 The domain-name-servers option specifies a list of Domain Name System
327 (STD 13, RFC 1035) name servers available to the client. Servers
328 should be listed in order of preference.
329
330 option domain-search domain-list;
331
332 The domain-search option specifies a ´search list´ of Domain Names to
333 be used by the client to locate not-fully-qualified domain names.
334 The difference between this option and historic use of the domain-
335 name option for the same ends is that this option is encoded in
336 RFC1035 compressed labels on the wire. For example:
337
338 option domain-search "example.com", "sales.example.com",
339 "eng.example.com";
340
341 option extensions-path text;
342
343 This option specifies the name of a file containing additional
344 options to be interpreted according to the DHCP option format as
345 specified in RFC2132.
346
347 option finger-server ip-address [, ip-address... ];
348
349 The Finger server option specifies a list of Finger servers available
350 to the client. Servers should be listed in order of preference.
351
352 option font-servers ip-address [, ip-address... ];
353
354 This option specifies a list of X Window System Font servers avail‐
355 able to the client. Servers should be listed in order of preference.
356
357 option host-name string;
358
359 This option specifies the name of the client. The name may or may
360 not be qualified with the local domain name (it is preferable to use
361 the domain-name option to specify the domain name). See RFC 1035 for
362 character set restrictions. This option is only honored by dhclient-
363 script(8) if the hostname for the client machine is not set.
364
365 option ieee802-3-encapsulation flag;
366
367 This option specifies whether or not the client should use Ethernet
368 Version 2 (RFC 894) or IEEE 802.3 (RFC 1042) encapsulation if the
369 interface is an Ethernet. A value of false indicates that the client
370 should use RFC 894 encapsulation. A value of true means that the
371 client should use RFC 1042 encapsulation.
372
373 option ien116-name-servers ip-address [, ip-address... ];
374
375 The ien116-name-servers option specifies a list of IEN 116 name
376 servers available to the client. Servers should be listed in order
377 of preference.
378
379 option impress-servers ip-address [, ip-address... ];
380
381 The impress-server option specifies a list of Imagen Impress servers
382 available to the client. Servers should be listed in order of pref‐
383 erence.
384
385 option interface-mtu uint16;
386
387 This option specifies the MTU to use on this interface. The minimum
388 legal value for the MTU is 68.
389
390 option ip-forwarding flag;
391
392 This option specifies whether the client should configure its IP
393 layer for packet forwarding. A value of false means disable IP for‐
394 warding, and a value of true means enable IP forwarding.
395
396 option irc-server ip-address [, ip-address... ];
397
398 The IRC server option specifies a list of IRC servers available to
399 the client. Servers should be listed in order of preference.
400
401 option log-servers ip-address [, ip-address... ];
402
403 The log-server option specifies a list of MIT-LCS UDP log servers
404 available to the client. Servers should be listed in order of pref‐
405 erence.
406
407 option lpr-servers ip-address [, ip-address... ];
408
409 The LPR server option specifies a list of RFC 1179 line printer
410 servers available to the client. Servers should be listed in order
411 of preference.
412
413 option mask-supplier flag;
414
415 This option specifies whether or not the client should respond to
416 subnet mask requests using ICMP. A value of false indicates that the
417 client should not respond. A value of true means that the client
418 should respond.
419
420 option max-dgram-reassembly uint16;
421
422 This option specifies the maximum size datagram that the client
423 should be prepared to reassemble. The minimum legal value is 576.
424
425 option merit-dump text;
426
427 This option specifies the path-name of a file to which the client's
428 core image should be dumped in the event the client crashes. The
429 path is formatted as a character string consisting of characters from
430 the NVT ASCII character set.
431
432 option mobile-ip-home-agent ip-address [, ip-address... ];
433
434 This option specifies a list of IP addresses indicating mobile IP
435 home agents available to the client. Agents should be listed in
436 order of preference, although normally there will be only one such
437 agent.
438
439 option nds-context string;
440
441 The nds-context option specifies the name of the initial Netware
442 Directory Service for an NDS client.
443
444 option nds-servers ip-address [, ip-address... ];
445
446 The nds-servers option specifies a list of IP addresses of NDS
447 servers.
448
449 option nds-tree-name string;
450
451 The nds-tree-name option specifies NDS tree name that the NDS client
452 should use.
453
454 option netbios-dd-server ip-address [, ip-address... ];
455
456 The NetBIOS datagram distribution server (NBDD) option specifies a
457 list of RFC 1001/1002 NBDD servers listed in order of preference.
458
459 option netbios-name-servers ip-address [, ip-address...];
460
461 The NetBIOS name server (NBNS) option specifies a list of RFC
462 1001/1002 NBNS name servers listed in order of preference. NetBIOS
463 Name Service is currently more commonly referred to as WINS. WINS
464 servers can be specified using the netbios-name-servers option.
465
466 option netbios-node-type uint8;
467
468 The NetBIOS node type option allows NetBIOS over TCP/IP clients which
469 are configurable to be configured as described in RFC 1001/1002. The
470 value is specified as a single octet which identifies the client
471 type.
472
473 Possible node types are:
474
475 1 B-node: Broadcast - no WINS
476
477 2 P-node: Peer - WINS only
478
479 4 M-node: Mixed - broadcast, then WINS
480
481 8 H-node: Hybrid - WINS, then broadcast
482
483 option netbios-scope string;
484
485 The NetBIOS scope option specifies the NetBIOS over TCP/IP scope
486 parameter for the client as specified in RFC 1001/1002. See RFC1001,
487 RFC1002, and RFC1035 for character-set restrictions.
488
489 option netinfo-server-address ip-address [, ip-address... ];
490
491 The netinfo-server-address option has not been described in any RFC,
492 but has been allocated (and is claimed to be in use) by Apple Comput‐
493 ers. It's hard to say if the above is the correct format, or what
494 clients might be expected to do if values were configured. Use at
495 your own risk.
496
497 option netinfo-server-tag text;
498
499 The netinfo-server-tag option has not been described in any RFC, but
500 has been allocated (and is claimed to be in use) by Apple Computers.
501 It's hard to say if the above is the correct format, or what clients
502 might be expected to do if values were configured. Use at your own
503 risk.
504
505 option nis-domain text;
506
507 This option specifies the name of the client's NIS (Sun Network
508 Information Services) domain. The domain is formatted as a character
509 string consisting of characters from the NVT ASCII character set.
510
511 option nis-servers ip-address [, ip-address... ];
512
513 This option specifies a list of IP addresses indicating NIS servers
514 available to the client. Servers should be listed in order of pref‐
515 erence.
516
517 option nisplus-domain text;
518
519 This option specifies the name of the client's NIS+ domain. The
520 domain is formatted as a character string consisting of characters
521 from the NVT ASCII character set.
522
523 option nisplus-servers ip-address [, ip-address... ];
524
525 This option specifies a list of IP addresses indicating NIS+ servers
526 available to the client. Servers should be listed in order of pref‐
527 erence.
528
529 option nntp-server ip-address [, ip-address... ];
530
531 The NNTP server option specifies a list of NNTP servesr available to
532 the client. Servers should be listed in order of preference.
533
534 option non-local-source-routing flag;
535
536 This option specifies whether the client should configure its IP
537 layer to allow forwarding of datagrams with non-local source routes
538 (see Section 3.3.5 of [4] for a discussion of this topic). A value
539 of false means disallow forwarding of such datagrams, and a value of
540 true means allow forwarding.
541
542 option ntp-servers ip-address [, ip-address... ];
543
544 This option specifies a list of IP addresses indicating NTP (RFC
545 1035) servers available to the client. Servers should be listed in
546 order of preference.
547
548 option nwip-domain string;
549
550 The name of the NetWare/IP domain that a NetWare/IP client should
551 use.
552
553 option nwip-suboptions string;
554
555 A sequence of suboptions for NetWare/IP clients - see RFC2242 for
556 details. Normally this option is set by specifying specific Net‐
557 Ware/IP suboptions - see the NETWARE/IP SUBOPTIONS section for more
558 information.
559
560 option path-mtu-aging-timeout uint32;
561
562 This option specifies the timeout (in seconds) to use when aging Path
563 MTU values discovered by the mechanism defined in RFC 1191.
564
565 option path-mtu-plateau-table uint16 [, uint16... ];
566
567 This option specifies a table of MTU sizes to use when performing
568 Path MTU Discovery as defined in RFC 1191. The table is formatted as
569 a list of 16-bit unsigned integers, ordered from smallest to largest.
570 The minimum MTU value cannot be smaller than 68.
571
572 option perform-mask-discovery flag;
573
574 This option specifies whether or not the client should perform subnet
575 mask discovery using ICMP. A value of false indicates that the
576 client should not perform mask discovery. A value of true means that
577 the client should perform mask discovery.
578
579 option policy-filter ip-address ip-address
580 [, ip-address ip-address...];
581
582 This option specifies policy filters for non-local source routing.
583 The filters consist of a list of IP addresses and masks which specify
584 destination/mask pairs with which to filter incoming source routes.
585
586 Any source routed datagram whose next-hop address does not match one
587 of the filters should be discarded by the client.
588
589 See STD 3 (RFC1122) for further information.
590
591 option pop-server ip-address [, ip-address... ];
592
593 The POP3 server option specifies a list of POP3 servers available to
594 the client. Servers should be listed in order of preference.
595
596 option resource-location-servers ip-address
597 [, ip-address...];
598
599 This option specifies a list of RFC 887 Resource Location servers
600 available to the client. Servers should be listed in order of pref‐
601 erence.
602
603 option root-path text;
604
605 This option specifies the path-name that contains the client's root
606 disk. The path is formatted as a character string consisting of
607 characters from the NVT ASCII character set.
608
609 option router-discovery flag;
610
611 This option specifies whether or not the client should solicit
612 routers using the Router Discovery mechanism defined in RFC 1256. A
613 value of false indicates that the client should not perform router
614 discovery. A value of true means that the client should perform
615 router discovery.
616
617 option router-solicitation-address ip-address;
618
619 This option specifies the address to which the client should transmit
620 router solicitation requests.
621
622 option routers ip-address [, ip-address... ];
623
624 The routers option specifies a list of IP addresses for routers on
625 the client's subnet. Routers should be listed in order of prefer‐
626 ence.
627
628 option slp-directory-agent boolean ip-address [, ip-address... ];
629
630 This option specifies two things: the IP addresses of one or more
631 Service Location Protocol Directory Agents, and whether the use of
632 these addresses is mandatory. If the initial boolean value is true,
633 the SLP agent should just use the IP addresses given. If the value
634 is false, the SLP agent may additionally do active or passive multi‐
635 cast discovery of SLP agents (see RFC2165 for details).
636
637 Please note that in this option and the slp-service-scope option, the
638 term "SLP Agent" is being used to refer to a Service Location Proto‐
639 col agent running on a machine that is being configured using the
640 DHCP protocol.
641
642 Also, please be aware that some companies may refer to SLP as NDS.
643 If you have an NDS directory agent whose address you need to config‐
644 ure, the slp-directory-agent option should work.
645
646 option slp-service-scope boolean text;
647
648 The Service Location Protocol Service Scope Option specifies two
649 things: a list of service scopes for SLP, and whether the use of this
650 list is mandatory. If the initial boolean value is true, the SLP
651 agent should only use the list of scopes provided in this option;
652 otherwise, it may use its own static configuration in preference to
653 the list provided in this option.
654
655 The text string should be a comma-separated list of scopes that the
656 SLP agent should use. It may be omitted, in which case the SLP
657 Agent will use the aggregated list of scopes of all directory agents
658 known to the SLP agent.
659
660 option smtp-server ip-address [, ip-address... ];
661
662 The SMTP server option specifies a list of SMTP servers available to
663 the client. Servers should be listed in order of preference.
664
665 option static-routes ip-address ip-address
666 [, ip-address ip-address...];
667
668 This option specifies a list of static routes that the client should
669 install in its routing cache. If multiple routes to the same desti‐
670 nation are specified, they are listed in descending order of prior‐
671 ity.
672
673 The routes consist of a list of IP address pairs. The first address
674 is the destination address, and the second address is the router for
675 the destination.
676
677 The default route (0.0.0.0) is an illegal destination for a static
678 route. To specify the default route, use the routers option. Also,
679 please note that this option is not intended for classless IP routing
680 - it does not include a subnet mask. Since classless IP routing is
681 now the most widely deployed routing standard, this option is virtu‐
682 ally useless, and is not implemented by any of the popular DHCP
683 clients, for example the Microsoft DHCP client.
684
685 NOTE to Fedora dhclient users:
686 dhclient-script interprets trailing 0 octets of the target as indi‐
687 cating the subnet class of the route, so for the following static-
688 routes value:
689 option static-routes 172.0.0.0 172.16.2.254,
690 192.168.0.0 192.168.2.254;
691 dhclient-script will create routes:
692 172/8 via 172.16.2.254 dev $interface
693 192.168/16 via 192.168.2.254 dev $interface
694
695 option classless-static-routes destination-descriptor ip-address
696 [, destination-descriptor ip-address...];
697
698 This option (see RFC3442) specifies a list of classless static routes
699 that the client should install in its routing cache.
700
701 This option can contain one or more static routes, each of which con‐
702 sists of a destination descriptor and the IP address of the router
703 that should be used to reach that destination.
704
705 Many clients may not implement the Classless Static Routes option.
706 DHCP server administrators should therefore configure their DHCP
707 servers to send both a Router option and a Classless Static Routes
708 option, and should specify the default router(s) both in the Router
709 option and in the Classless Static Routes option.
710
711 If the DHCP server returns both a Classless Static Routes option and
712 a Router option, the DHCP client ignores the Router option.
713
714 option streettalk-directory-assistance-server ip-address
715 [, ip-address...];
716
717 The StreetTalk Directory Assistance (STDA) server option specifies a
718 list of STDA servers available to the client. Servers should be
719 listed in order of preference.
720
721 option streettalk-server ip-address [, ip-address... ];
722
723 The StreetTalk server option specifies a list of StreetTalk servers
724 available to the client. Servers should be listed in order of pref‐
725 erence.
726
727 option subnet-mask ip-address;
728
729 The subnet mask option specifies the client's subnet mask as per RFC
730 950. If no subnet mask option is provided anywhere in scope, as a
731 last resort dhcpd will use the subnet mask from the subnet declara‐
732 tion for the network on which an address is being assigned. However,
733 any subnet-mask option declaration that is in scope for the address
734 being assigned will override the subnet mask specified in the subnet
735 declaration.
736
737 option subnet-selection string;
738
739 Sent by the client if an address is required in a subnet other than
740 the one that would normally be selected (based on the relaying
741 address of the connected subnet the request is obtained from). See
742 RFC3011. Note that the option number used by this server is 118; this
743 has not always been the defined number, and some clients may use a
744 different value. Use of this option should be regarded as slightly
745 experimental!
746
747 This option is not user configurable in the server.
748
749 option swap-server ip-address;
750
751 This specifies the IP address of the client's swap server.
752
753 option tcp-keepalive-garbage flag;
754
755 This option specifies whether or not the client should send TCP
756 keepalive messages with an octet of garbage for compatibility with
757 older implementations. A value of false indicates that a garbage
758 octet should not be sent. A value of true indicates that a garbage
759 octet should be sent.
760
761 option tcp-keepalive-interval uint32;
762
763 This option specifies the interval (in seconds) that the client TCP
764 should wait before sending a keepalive message on a TCP connection.
765 The time is specified as a 32-bit unsigned integer. A value of zero
766 indicates that the client should not generate keepalive messages on
767 connections unless specifically requested by an application.
768
769 option tftp-server-name text;
770
771 This option is used to identify a TFTP server and, if supported by
772 the client, should have the same effect as the server-name declara‐
773 tion. BOOTP clients are unlikely to support this option. Some DHCP
774 clients will support it, and others actually require it.
775
776 option time-offset int32;
777
778 The time-offset option specifies the offset of the client's subnet in
779 seconds from Coordinated Universal Time (UTC).
780
781 option time-servers ip-address [, ip-address... ];
782
783 The time-server option specifies a list of RFC 868 time servers
784 available to the client. Servers should be listed in order of pref‐
785 erence.
786
787 option trailer-encapsulation flag;
788
789 This option specifies whether or not the client should negotiate the
790 use of trailers (RFC 893 [14]) when using the ARP protocol. A value
791 of false indicates that the client should not attempt to use trail‐
792 ers. A value of true means that the client should attempt to use
793 trailers.
794
795 option uap-servers text;
796
797 This option specifies a list of URLs, each pointing to a user authen‐
798 tication service that is capable of processing authentication
799 requests encapsulated in the User Authentication Protocol (UAP). UAP
800 servers can accept either HTTP 1.1 or SSLv3 connections. If the list
801 includes a URL that does not contain a port component, the normal
802 default port is assumed (i.e., port 80 for http and port 443 for
803 https). If the list includes a URL that does not contain a path com‐
804 ponent, the path /uap is assumed. If more than one URL is specified
805 in this list, the URLs are separated by spaces.
806
807 option user-class string;
808
809 This option is used by some DHCP clients as a way for users to spec‐
810 ify identifying information to the client. This can be used in a
811 similar way to the vendor-class-identifier option, but the value of
812 the option is specified by the user, not the vendor. Most recent
813 DHCP clients have a way in the user interface to specify the value
814 for this identifier, usually as a text string.
815
816 option vendor-class-identifier string;
817
818 This option is used by some DHCP clients to identify the vendor type
819 and possibly the configuration of a DHCP client. The information is
820 a string of bytes whose contents are specific to the vendor and are
821 not specified in a standard. To see what vendor class identifier
822 clients are sending, you can write the following in your DHCP server
823 configuration file:
824
825 set vendor-string = option vendor-class-identifier;
826
827 This will result in all entries in the DHCP server lease database
828 file for clients that sent vendor-class-identifier options having a
829 set statement that looks something like this:
830
831 set vendor-string = "SUNW.Ultra-5_10";
832
833 The vendor-class-identifier option is normally used by the DHCP
834 server to determine the options that are returned in the vendor-
835 encapsulated-options option. Please see the VENDOR ENCAPSULATED
836 OPTIONS section later in this manual page for further information.
837
838 option vendor-encapsulated-options string;
839
840 The vendor-encapsulated-options option can contain either a single
841 vendor-specific value or one or more vendor-specific suboptions.
842 This option is not normally specified in the DHCP server configura‐
843 tion file - instead, a vendor class is defined for each vendor, ven‐
844 dor class suboptions are defined, values for those suboptions are
845 defined, and the DHCP server makes up a response on that basis.
846
847 Some default behaviours for well-known DHCP client vendors (cur‐
848 rently, the Microsoft Windows 2000 DHCP client) are configured auto‐
849 matically, but otherwise this must be configured manually - see the
850 VENDOR ENCAPSULATED OPTIONS section later in this manual page for
851 details.
852
853 option vivso string;
854
855 The vivso option can contain multiple separate options, one for each
856 32-bit Enterprise ID. Each Enterprise-ID discriminated option then
857 contains additional options whose format is defined by the vendor who
858 holds that ID. This option is usually not configured manually, but
859 rather is configured via intervening option definitions. Please also
860 see the VENDOR ENCAPSULATED OPTIONS section later in this manual page
861 for details.
862
863 option www-server ip-address [, ip-address... ];
864
865 The WWW server option specifies a list of WWW servers available to
866 the client. Servers should be listed in order of preference.
867
868 option x-display-manager ip-address [, ip-address... ];
869
870 This option specifies a list of systems that are running the X Window
871 System Display Manager and are available to the client. Addresses
872 should be listed in order of preference.
873
875 An IETF draft, draft-ietf-dhc-agent-options-11.txt, defines a series of
876 encapsulated options that a relay agent can add to a DHCP packet when
877 relaying it to the DHCP server. The server can then make address
878 allocation decisions (or whatever other decisions it wants) based on
879 these options. The server also returns these options in any replies
880 it sends through the relay agent, so that the relay agent can use the
881 information in these options for delivery or accounting purposes.
882
883 The current draft defines two options. To reference these options in
884 the dhcp server, specify the option space name, "agent", followed by a
885 period, followed by the option name. It is not normally useful to
886 define values for these options in the server, although it is permissi‐
887 ble. These options are not supported in the client.
888
889 option agent.circuit-id string;
890
891 The circuit-id suboption encodes an agent-local identifier of the
892 circuit from which a DHCP client-to-server packet was received. It
893 is intended for use by agents in relaying DHCP responses back to the
894 proper circuit. The format of this option is currently defined to
895 be vendor-dependent, and will probably remain that way, although the
896 current draft allows for for the possibility of standardizing the
897 format in the future.
898
899 option agent.remote-id string;
900
901 The remote-id suboption encodes information about the remote host end
902 of a circuit. Examples of what it might contain include caller ID
903 information, username information, remote ATM address, cable modem
904 ID, and similar things. In principal, the meaning is not well-spec‐
905 ified, and it should generally be assumed to be an opaque object that
906 is administratively guaranteed to be unique to a particular remote
907 end of a circuit.
908
909 option agent.DOCSIS-device-class uint32;
910
911 The DOCSIS-device-class suboption is intended to convey information
912 about the host endpoint, hardware, and software, that either the host
913 operating system or the DHCP server may not otherwise be aware of
914 (but the relay is able to distinguish). This is implemented as a
915 32-bit field (4 octets), each bit representing a flag describing the
916 host in one of these ways. So far, only bit zero (being the least
917 significant bit) is defined in RFC3256. If this bit is set to one,
918 the host is considered a CPE Controlled Cable Modem (CCCM). All
919 other bits are reserved.
920
921 option agent.link-selection ip-address;
922
923 The link-selection suboption is provided by relay agents to inform
924 servers what subnet the client is actually attached to. This is use‐
925 ful in those cases where the giaddr (where responses must be sent to
926 the relay agent) is not on the same subnet as the client. When this
927 option is present in a packet from a relay agent, the DHCP server
928 will use its contents to find a subnet declared in configuration, and
929 from here take one step further backwards to any shared-network the
930 subnet may be defined within...the client may be given any address
931 within that shared network, as normally appropriate.
932
934 The Client FQDN option, currently defined in the Internet Draft draft-
935 ietf-dhc-fqdn-option-00.txt is not a standard yet, but is in suffi‐
936 ciently wide use already that we have implemented it. Due to the com‐
937 plexity of the option format, we have implemented it as a suboption
938 space rather than a single option. In general this option should not
939 be configured by the user - instead it should be used as part of an
940 automatic DNS update system.
941
942 option fqdn.no-client-update flag;
943
944 When the client sends this, if it is true, it means the client will
945 not attempt to update its A record. When sent by the server to the
946 client, it means that the client should not update its own A record.
947
948 option fqdn.server-update flag;
949
950 When the client sends this to the server, it is requesting that the
951 server update its A record. When sent by the server, it means that
952 the server has updated (or is about to update) the client's A record.
953
954 option fqdn.encoded flag;
955
956 If true, this indicates that the domain name included in the option
957 is encoded in DNS wire format, rather than as plain ASCII text. The
958 client normally sets this to false if it doesn't support DNS wire
959 format in the FQDN option. The server should always send back the
960 same value that the client sent. When this value is set on the con‐
961 figuration side, it controls the format in which the fqdn.fqdn subop‐
962 tion is encoded.
963
964 option fqdn.rcode1 flag;
965
966 option fqdn.rcode2 flag;
967
968 These options specify the result of the updates of the A and PTR
969 records, respectively, and are only sent by the DHCP server to the
970 DHCP client. The values of these fields are those defined in the DNS
971 protocol specification.
972
973 option fqdn.fqdn text;
974
975 Specifies the domain name that the client wishes to use. This can
976 be a fully-qualified domain name, or a single label. If there is no
977 trailing ´.´ character in the name, it is not fully-qualified, and
978 the server will generally update that name in some locally-defined
979 domain.
980
981 option fqdn.hostname --never set--;
982
983 This option should never be set, but it can be read back using the
984 option and config-option operators in an expression, in which case it
985 returns the first label in the fqdn.fqdn suboption - for example, if
986 the value of fqdn.fqdn is "foo.example.com.", then fqdn.hostname will
987 be "foo".
988
989 option fqdn.domainname --never set--;
990
991 This option should never be set, but it can be read back using the
992 option and config-option operators in an expression, in which case it
993 returns all labels after the first label in the fqdn.fqdn suboption -
994 for example, if the value of fqdn.fqdn is "foo.example.com.", then
995 fqdn.hostname will be "example.com.". If this suboption value is
996 not set, it means that an unqualified name was sent in the fqdn
997 option, or that no fqdn option was sent at all.
998
999 If you wish to use any of these suboptions, we strongly recommend that
1000 you refer to the Client FQDN option draft (or standard, when it becomes
1001 a standard) - the documentation here is sketchy and incomplete in com‐
1002 parison, and is just intended for reference by people who already
1003 understand the Client FQDN option specification.
1004
1006 RFC2242 defines a set of encapsulated options for Novell NetWare/IP
1007 clients. To use these options in the dhcp server, specify the option
1008 space name, "nwip", followed by a period, followed by the option name.
1009 The following options can be specified:
1010
1011 option nwip.nsq-broadcast flag;
1012
1013 If true, the client should use the NetWare Nearest Server Query to
1014 locate a NetWare/IP server. The behaviour of the Novell client if
1015 this suboption is false, or is not present, is not specified.
1016
1017 option nwip.preferred-dss ip-address [, ip-address... ];
1018
1019 This suboption specifies a list of up to five IP addresses, each of
1020 which should be the IP address of a NetWare Domain SAP/RIP server
1021 (DSS).
1022
1023 option nwip.nearest-nwip-server ip-address
1024 [, ip-address...];
1025
1026 This suboption specifies a list of up to five IP addresses, each of
1027 which should be the IP address of a Nearest NetWare IP server.
1028
1029 option nwip.autoretries uint8;
1030
1031 Specifies the number of times that a NetWare/IP client should attempt
1032 to communicate with a given DSS server at startup.
1033
1034 option nwip.autoretry-secs uint8;
1035
1036 Specifies the number of seconds that a Netware/IP client should wait
1037 between retries when attempting to establish communications with a
1038 DSS server at startup.
1039
1040 option nwip.nwip-1-1 uint8;
1041
1042 If true, the NetWare/IP client should support NetWare/IP version 1.1
1043 compatibility. This is only needed if the client will be contacting
1044 Netware/IP version 1.1 servers.
1045
1046 option nwip.primary-dss ip-address;
1047
1048 Specifies the IP address of the Primary Domain SAP/RIP Service server
1049 (DSS) for this NetWare/IP domain. The NetWare/IP administration
1050 utility uses this value as Primary DSS server when configuring a sec‐
1051 ondary DSS server.
1052
1054 DHCPv6 options differ from DHCPv4 options partially due to using 16-bit
1055 code and length tags, but semantically zero-length options are legal in
1056 DHCPv6, and multiple options are treated differently. Whereas in
1057 DHCPv4 multiple options would be concatenated to form one option, in
1058 DHCPv6 they are expected to be individual instantiations. Understand‐
1059 ably, many options are not "allowed" to have multiple instances in a
1060 packet - normally these are options which are digested by the DHCP pro‐
1061 tocol software, and not by users or applications.
1062
1063 option dhcp6.client-id string;
1064
1065 This option specifies the client's DUID identifier. DUIDs are simi‐
1066 lar but different from DHCPv4 client identifiers - there are docu‐
1067 mented duid types:
1068
1069 duid-llt
1070
1071 duid-en
1072
1073 duid-ll
1074
1075 This value should not be configured, but rather is provided by
1076 clients and treated as an opaque identifier key blob by servers.
1077
1078 option dhcp6.server-id string;
1079
1080 This option specifies the server's DUID identifier. One may use this
1081 option to configure an opaque binary blob for your server's identi‐
1082 fier.
1083
1084 option dhcp6.ia-na string;
1085
1086 The Identity Association for Non-temporary Addresses (ia-na) carries
1087 assigned addresses that are not temporary addresses for use by the
1088 DHCPv6 client. This option is produced by the DHCPv6 server soft‐
1089 ware, and should not be configured.
1090
1091 option dhcp6.ia-ta string;
1092
1093 The Identity Association for Temporary Addresses (ia-ta) carries tem‐
1094 porary addresses, which may change upon every renewal. There is no
1095 support for this in the current DHCPv6 software.
1096
1097 option dhcp6.ia-addr string;
1098
1099 The Identity Association Address option is encapsulated inside ia-na
1100 or ia-ta options in order to represent addresses associated with
1101 those IA's. These options are manufactured by the software, so
1102 should not be configured.
1103
1104 option dhcp6.oro uint16 [ , uint16, ... ];
1105
1106 The Option Request Option ("ORO") is the DHCPv6 equivalent of the
1107 parameter-request-list. Clients supply this option to ask servers to
1108 reply with options relevant to their needs and use. This option must
1109 not be directly configured, the request syntax in dhclient.conf (5)
1110 should be used instead.
1111
1112 option dhcp6.preference uint8;
1113
1114 The preference option informs a DHCPv6 client which server is ´pre‐
1115 ferred´ for use on a given subnet. This preference is only applied
1116 during the initial stages of configuration - once a client is bound
1117 to an IA, it will remain bound to that IA until it is no longer valid
1118 or has expired. This value may be configured on the server, and is
1119 digested by the client software.
1120
1121 option dhcp6.elapsed-time uint16;
1122
1123 The elapsed-time option is constructed by the DHCPv6 client software,
1124 and is potentially consumed by intermediaries. This option should
1125 not be configured.
1126
1127 option dhcp6.relay-msg string;
1128
1129 The relay-msg option is constructed by intervening DHCPv6 relay agent
1130 software. This option is entirely used by protocol software, and is
1131 not meant for user configuration.
1132
1133 option dhcp6.unicast ip6-address;
1134
1135 The unicast option is provided by DHCPv6 servers which are willing
1136 (or prefer) to receive Renew packets from their clients by exchanging
1137 UDP unicasts with them. Normally, DHCPv6 clients will multicast
1138 their Renew messages. This may be configured on the server, and
1139 should be configured as an address the server is ready to reply to.
1140
1141 option dhcp6.status-code status-code [ string ] ;
1142
1143 The status-code option is provided by DHCPv6 servers to inform
1144 clients of error conditions during protocol communication. This
1145 option is manufactured and digested by protocol software, and should
1146 not be configured.
1147
1148 option dhcp6.rapid-commit ;
1149
1150 The rapid-commit option is a zero-length option that clients use to
1151 indicate their desire to enter into rapid-commit with the server.
1152 This option is not supported by the client at this time, and is
1153 digested by the server when present, so should not be configured.
1154
1155 option dhcp6.vendor-opts string;
1156
1157 The vendor-opts option is actually an encapsulated sub-option space,
1158 in which each Vendor-specific Information Option (VSIO) is identified
1159 by a 32-bit Enterprise-ID number. The encapsulated option spaces
1160 within these options are defined by the vendors.
1161
1162 To make use of this option, the best way is to examine the section
1163 titled VENDOR ENCAPSULATED OPTIONS below, in particular the bits
1164 about the "vsio" option space.
1165
1166 option dhcp6.interface-id string;
1167
1168 The interface-id option is manufactured by relay agents, and may be
1169 used to guide configuration differentiating clients by the interface
1170 they are remotely attached to. It does not make sense to configure a
1171 value for this option, but it may make sense to inspect its contents.
1172
1173 option dhcp6.reconf-msg dhcpv6-message;
1174
1175 The reconf-msg option is manufactured by servers, and sent to clients
1176 in Reconfigure messages to inform them of what message the client
1177 should Reconfigure using. There is no support for DHCPv6 Reconfigure
1178 extensions, and this option is documented informationally only.
1179
1180 option dhcp6.reconf-accept ;
1181
1182 The reconf-accept option is included by DHCPv6 clients that support
1183 the Reconfigure extentions, advertising that they will respond if the
1184 server were to ask them to Reconfigure. There is no support for
1185 DHCPv6 Reconfigure extensions, and this option is documented informa‐
1186 tionally only.
1187
1188 option dhcp6.sip-servers-names domain-list;
1189
1190 The sip-servers-names option allows SIP clients to locate a local SIP
1191 server that is to be used for all outbound SIP requests, a so-
1192 called"outbound proxy server." If you wish to use manually entered
1193 IPv6 addresses instead, please see the sip-servers-addresses option
1194 below.
1195
1196 option dhcp6.sip-servers-addresses ip6-address [, ip6-address ... ] ;
1197
1198 The sip-servers-addresses option allows SIP clients to locate a local
1199 SIP server that is to be used for all outbound SIP requests, a so-
1200 called "outbound proxy servers." If you wish to use domain names
1201 rather than IPv6 addresses, please see the sip-servers-names option
1202 above.
1203
1204 option dhcp6.name-servers ip6-address [, ip6-address ... ] ;
1205
1206 The name-servers option instructs clients about locally available
1207 recursive DNS servers. It is easiest to describe this as the "name‐
1208 server" line in /etc/resolv.conf.
1209
1210 option dhcp6.domain-search domain-list;
1211
1212 The domain-search option specifies the client's domain search path to
1213 be applied to recursive DNS queries. It is easiest to describe this
1214 as the "search" line in /etc/resolv.conf.
1215
1216 option dhcp6.ia-pd string;
1217
1218 The ia-pd option is manufactured by clients and servers to create a
1219 Prefix Delegation binding - to delegate an IPv6 prefix to the client.
1220 It is not directly edited in dhcpd.conf(5) or dhclient.conf(5), but
1221 rather is manufactured and consumed by the software.
1222
1223 option dhcp6.ia-prefix string;
1224
1225 The ia-prefix option is placed inside ia-pd options in order to iden‐
1226 tify the prefix(es) allocated to the client. It is not directly
1227 edited in dhcpd.conf(5) or dhclient.conf(5), but rather is manufac‐
1228 tured and consumed by the software.
1229
1230 option dhcp6.nis-servers ip6-address [, ip6-address ... ] ;
1231
1232 The nis-servers option identifies, in order, NIS servers available to
1233 the client.
1234
1235 option dhcp6.nisp-servers ip6-address [, ip6-address ... ] ;
1236
1237 The nisp-servers option identifies, in order, NIS+ servers available
1238 to the client.
1239
1240 option nis-domain-name domain-list;
1241
1242 The nis-domain-name option specifies the NIS domain name the client
1243 is expected to use, and is related to the nis-servers option.
1244
1245 option nisp-domain-name domain-list;
1246
1247 The nisp-domain-name option specifies the NIS+ domain name the client
1248 is expected to use, and is related to the nisp-servers option.
1249
1250 option dhcp6.sntp-servers ip6-address [, ip6-address ... ] ;
1251
1252 The sntp-servers option specifies a list of local SNTP servers avail‐
1253 able for the client to synchronize their clocks.
1254
1255 option dhcp6.info-refresh-time uint32;
1256
1257 The info-refresh-time option gives DHCPv6 clients using Information-
1258 request messages a hint as to how long they should between refreshing
1259 the information they were given. Note that this option will only be
1260 delivered to the client, and be likely to affect the client's behav‐
1261 iour, if the client requested the option.
1262
1263 option dhcp6.bcms-server-d domain-list;
1264
1265 The bcms-server-d option contains the domain names of local BCMS
1266 (Broadcast and Multicast Control Services) controllers which the
1267 client may use.
1268
1269 option dhcp6.bcms-server-a ip6-address [, ip6-address ... ] ;
1270
1271 The bcms-server-a option contains the IPv6 addresses of local BCMS
1272 (Broadcast and Multicast Control Services) controllers which the
1273 client may use.
1274
1275 option dhcp6.remote-id string;
1276
1277 The remote-id option is constructed by relay agents, to inform the
1278 server of details pertaining to what the relay knows about the client
1279 (such as what port it is attached to, and so forth). The contents of
1280 this option have some vendor-specific structure (similar to VSIO),
1281 but we have chosen to treat this option as an opaque field.
1282
1283 option dhcp6.subscriber-id;
1284
1285 The subscriber-id option is an opaque field provided by the relay
1286 agent, which provides additional information about the subscriber in
1287 question. The exact contents of this option depend upon the vendor
1288 and/or the operator's configuration of the remote device, and as such
1289 is an opaque field.
1290
1291 option dhcp6.fqdn string;
1292
1293 The fqdn option is normally constructed by the client or server, and
1294 negotiates the client's Fully Qualified Domain Name, as well as which
1295 party is responsible for Dynamic DNS Updates. See the section on the
1296 Client FQDN SubOptions for full details (the DHCPv4 and DHCPv6 FQDN
1297 options use the same "fqdn." encapsulated space, so are in all ways
1298 identical).
1299
1300 option dhcp6.lq-query string;
1301
1302 The lq-query option is used internally by for lease query.
1303
1304 option dhcp6.client-data string;
1305
1306 The client-data option is used internally by for lease query.
1307
1308 option dhcp6.clt-time uint32;
1309
1310 The clt-time option is used internally by for lease query.
1311
1312 option dhcp6.lq-relay-data ip6-address string;
1313
1314 The lq-relay-data option is used internally by for lease query.
1315
1316 option dhcp6.lq-client-link ip6-address [, ip6-address ... ] ;
1317
1318 The lq-client-link option is used internally by for lease query.
1319
1321 The Internet Systems Consortium DHCP client and server provide the
1322 capability to define new options. Each DHCP option has a name, a
1323 code, and a structure. The name is used by you to refer to the
1324 option. The code is a number, used by the DHCP server and client to
1325 refer to an option. The structure describes what the contents of an
1326 option looks like.
1327
1328 To define a new option, you need to choose a name for it that is not in
1329 use for some other option - for example, you can't use "host-name"
1330 because the DHCP protocol already defines a host-name option, which is
1331 documented earlier in this manual page. If an option name doesn't
1332 appear in this manual page, you can use it, but it's probably a good
1333 idea to put some kind of unique string at the beginning so you can be
1334 sure that future options don't take your name. For example, you might
1335 define an option, "local-host-name", feeling some confidence that no
1336 official DHCP option name will ever start with "local".
1337
1338 Once you have chosen a name, you must choose a code. All codes between
1339 224 and 254 are reserved as ´site-local´ DHCP options, so you can pick
1340 any one of these for your site (not for your product/application). In
1341 RFC3942, site-local space was moved from starting at 128 to starting at
1342 224. In practice, some vendors have interpreted the protocol rather
1343 loosely and have used option code values greater than 128 themselves.
1344 There's no real way to avoid this problem, and it was thought to be
1345 unlikely to cause too much trouble in practice. If you come across a
1346 vendor-documented option code in either the new or old site-local spa‐
1347 ces, please contact your vendor and inform them about rfc3942.
1348
1349 The structure of an option is simply the format in which the option
1350 data appears. The ISC DHCP server currently supports a few simple
1351 types, like integers, booleans, strings and IP addresses, and it also
1352 supports the ability to define arrays of single types or arrays of
1353 fixed sequences of types.
1354
1355 New options are declared as follows:
1356
1357 option new-name code new-code = definition ;
1358
1359 The values of new-name and new-code should be the name you have chosen
1360 for the new option and the code you have chosen. The definition
1361 should be the definition of the structure of the option.
1362
1363 The following simple option type definitions are supported:
1364
1365 BOOLEAN
1366
1367 option new-name code new-code = boolean ;
1368
1369 An option of type boolean is a flag with a value of either on or off
1370 (or true or false). So an example use of the boolean type would be:
1371
1372 option use-zephyr code 180 = boolean;
1373 option use-zephyr on;
1374
1375 INTEGER
1376
1377 option new-name code new-code = sign integer width ;
1378
1379 The sign token should either be blank, unsigned or signed. The width
1380 can be either 8, 16 or 32, and refers to the number of bits in the
1381 integer. So for example, the following two lines show a definition of
1382 the sql-connection-max option and its use:
1383
1384 option sql-connection-max code 192 = unsigned integer 16;
1385 option sql-connection-max 1536;
1386
1387 IP-ADDRESS
1388
1389 option new-name code new-code = ip-address ;
1390
1391 An option whose structure is an IP address can be expressed either as a
1392 domain name or as a dotted quad. So the following is an example use of
1393 the ip-address type:
1394
1395 option sql-server-address code 193 = ip-address;
1396 option sql-server-address sql.example.com;
1397
1398 IP6-ADDRESS
1399
1400 option new-name code new-code = ip6-address ;
1401
1402 An option whose structure is an IPv6 address must be expressed as a
1403 valid IPv6 address. The following is an example use of the ip6-address
1404 type:
1405
1406 option dhcp6.some-server code 1234 = array of ip6-address;
1407 option dhcp6.some-server 3ffe:bbbb:aaaa:aaaa::1, 3ffe:bbbb:aaaa:aaaa::2;
1408
1409
1410 TEXT
1411
1412 option new-name code new-code = text ;
1413
1414 An option whose type is text will encode an ASCII text string. For
1415 example:
1416
1417 option sql-default-connection-name code 194 = text;
1418 option sql-default-connection-name "PRODZA";
1419
1420
1421 DATA STRING
1422
1423 option new-name code new-code = string ;
1424
1425 An option whose type is a data string is essentially just a collection
1426 of bytes, and can be specified either as quoted text, like the text
1427 type, or as a list of hexadecimal contents separated by colons whose
1428 values must be between 0 and FF. For example:
1429
1430 option sql-identification-token code 195 = string;
1431 option sql-identification-token 17:23:19:a6:42:ea:99:7c:22;
1432
1433
1434 DOMAIN-LIST
1435
1436 option new-name code new-code = domain-list [compressed] ;
1437
1438 An option whose type is domain-list is an RFC1035 formatted (on the
1439 wire, "DNS Format") list of domain names, separated by root labels.
1440 The optional compressed keyword indicates if the option should be com‐
1441 pressed relative to the start of the option contents (not the packet
1442 contents).
1443
1444 When in doubt, omit the compressed keyword. When the software recieves
1445 an option that is compressed and the compressed keyword is omitted, it
1446 will still decompress the option (relative to the option contents
1447 field). The keyword only controls whether or not transmitted packets
1448 are compressed.
1449
1450 Note that when domain-list formatted options are output as environment
1451 variables to dhclient-script(8), the standard DNS -escape mechanism is
1452 used: they are decimal. This is appropriate for direct use in eg
1453 /etc/resolv.conf.
1454
1455
1456 ENCAPSULATION
1457
1458 option new-name code new-code = encapsulate identifier ;
1459
1460 An option whose type is encapsulate will encapsulate the contents of
1461 the option space specified in identifier. Examples of encapsulated
1462 options in the DHCP protocol as it currently exists include the vendor-
1463 encapsulated-options option, the netware-suboptions option and the
1464 relay-agent-information option.
1465
1466 option space local;
1467 option local.demo code 1 = text;
1468 option local-encapsulation code 197 = encapsulate local;
1469 option local.demo "demo";
1470
1471
1472 ARRAYS
1473
1474 Options can contain arrays of any of the above types except for the
1475 text and data string types, which aren't currently supported in arrays.
1476 An example of an array definition is as follows:
1477
1478 option kerberos-servers code 200 = array of ip-address;
1479 option kerberos-servers 10.20.10.1, 10.20.11.1;
1480
1481 RECORDS
1482
1483 Options can also contain data structures consisting of a sequence of
1484 data types, which is sometimes called a record type. For example:
1485
1486 option contrived-001 code 201 = { boolean, integer 32, text };
1487 option contrived-001 on 1772 "contrivance";
1488
1489 It's also possible to have options that are arrays of records, for
1490 example:
1491
1492 option new-static-routes code 201 = array of {
1493 ip-address, ip-address, ip-address, integer 8 };
1494 option static-routes
1495 10.0.0.0 255.255.255.0 net-0-rtr.example.com 1,
1496 10.0.1.0 255.255.255.0 net-1-rtr.example.com 1,
1497 10.2.0.0 255.255.224.0 net-2-0-rtr.example.com 3;
1498
1499
1501 The DHCP protocol defines the vendor-encapsulated-options option, which
1502 allows vendors to define their own options that will be sent encapsu‐
1503 lated in a standard DHCP option. It also defines the Vendor Identified
1504 Vendor Sub Options option ("VIVSO"), and the DHCPv6 protocol defines
1505 the Vendor-specific Information Option ("VSIO"). The format of all of
1506 these options is usually internally a string of options, similarly to
1507 other normal DHCP options. The VIVSO and VSIO options differ in that
1508 that they contain options that correspond to vendor Enterprise-ID num‐
1509 bers (assigned by IANA), which then contain options according to each
1510 Vendor's specifications. You will need to refer to your vendor's docu‐
1511 mentation in order to form options to their specification.
1512
1513 The value of these options can be set in one of two ways. The first
1514 way is to simply specify the data directly, using a text string or a
1515 colon-separated list of hexadecimal values. For help in forming these
1516 strings, please refer to RFC2132 for the DHCPv4 Vendor Specific Infor‐
1517 mation Option, RFC3925 for the DHCPv4 Vendor Identified Vendor Sub
1518 Options, or RFC3315 for the DHCPv6 Vendor-specific Information Option.
1519 For example:
1520
1521 option vendor-encapsulated-options
1522 2:4:
1523 AC:11:41:1:
1524 3:12:
1525 73:75:6e:64:68:63:70:2d:73:65:72:76:65:72:31:37:2d:31:
1526 4:12:
1527 2f:65:78:70:6f:72:74:2f:72:6f:6f:74:2f:69:38:36:70:63;
1528 option vivso
1529 00:00:09:bf:0E:
1530 01:0c:
1531 48:65:6c:6c:6f:20:77:6f:72:6c:64:21;
1532 option dhcp6.vendor-opts
1533 00:00:09:bf:
1534 00:01:00:0c:
1535 48:65:6c:6c:6f:20:77:6f:72:6c:64:21;
1536
1537 The second way of setting the value of these options is to have the
1538 DHCP server generate a vendor-specific option buffer. To do this, you
1539 must do four things: define an option space, define some options in
1540 that option space, provide values for them, and specify that that
1541 option space should be used to generate the relevant option.
1542
1543 To define a new option space in which vendor options can be stored, use
1544 the option space statement:
1545
1546 option space name [ [ code width number ] [ length width number ] [
1547 hash size number ] ] ;
1548
1549 Where the numbers following code width, length width, and hash size
1550 respectively identify the number of bytes used to describe option
1551 codes, option lengths, and the size in buckets of the hash tables to
1552 hold options in this space (most DHCPv4 option spaces use 1 byte codes
1553 and lengths, which is the default, whereas most DHCPv6 option spaces
1554 use 2 byte codes and lengths).
1555
1556 The code and length widths are used in DHCP protocol - you must config‐
1557 ure these numbers to match the applicable option space you are config‐
1558 uring. They each default to 1. Valid values for code widths are 1, 2
1559 or 4. Valid values for length widths are 0, 1 or 2. Most DHCPv4
1560 option spaces use 1 byte codes and lengths, which is the default,
1561 whereas most DHCPv6 option spaces use 2 byte codes and lengths. A
1562 zero-byte length produces options similar to the DHCPv6 Vendor-specific
1563 Information Option - but not their contents!
1564
1565 The hash size defaults depend upon the code width selected, and may be
1566 254 or 1009. Valid values range between 1 and 65535. Note that the
1567 higher you configure this value, the more memory will be used. It is
1568 considered good practice to configure a value that is slightly larger
1569 than the estimated number of options you plan to configure within the
1570 space. Previous versions of ISC DHCP (up to and including DHCP 3.0.*),
1571 this value was fixed at 9973.
1572
1573 The name can then be used in option definitions, as described earlier
1574 in this document. For example:
1575
1576 option space SUNW code width 1 length width 1 hash size 3;
1577 option SUNW.server-address code 2 = ip-address;
1578 option SUNW.server-name code 3 = text;
1579 option SUNW.root-path code 4 = text;
1580
1581 option space ISC code width 1 length width 1 hash size 3;
1582 option ISC.sample code 1 = text;
1583 option vendor.ISC code 2495 = encapsulate vivso-sample;
1584 option vendor-class.ISC code 2495 = text;
1585
1586 option ISC.sample "configuration text here";
1587 option vendor-class.ISC "vendor class here";
1588
1589 option space docsis code width 2 length width 2 hash size 17;
1590 option docsis.tftp-servers code 32 = array of ip6-address;
1591 option docsis.cablelabs-configuration-file code 33 = text;
1592 option docsis.cablelabs-syslog-servers code 34 = array of ip6-address;
1593 option docsis.device-id code 36 = string;
1594 option docsis.time-servers code 37 = array of ip6-address;
1595 option docsis.time-offset code 38 = signed integer 32;
1596 option vsio.docsis code 4491 = encapsulate docsis;
1597
1598 Once you have defined an option space and the format of some options,
1599 you can set up scopes that define values for those options, and you can
1600 say when to use them. For example, suppose you want to handle two
1601 different classes of clients. Using the option space definition shown
1602 in the previous example, you can send different option values to dif‐
1603 ferent clients based on the vendor-class-identifier option that the
1604 clients send, as follows:
1605
1606 class "vendor-classes" {
1607 match option vendor-class-identifier;
1608 }
1609
1610 subclass "vendor-classes" "SUNW.Ultra-5_10" {
1611 vendor-option-space SUNW;
1612 option SUNW.root-path "/export/root/sparc";
1613 }
1614
1615 subclass "vendor-classes" "SUNW.i86pc" {
1616 vendor-option-space SUNW;
1617 option SUNW.root-path "/export/root/i86pc";
1618 }
1619
1620 option SUNW.server-address 172.17.65.1;
1621 option SUNW.server-name "sundhcp-server17-1";
1622
1623 option vivso-sample.sample "Hello world!";
1624
1625 option docsis.tftp-servers ::1;
1626
1627
1628 As you can see in the preceding example, regular scoping rules apply,
1629 so you can define values that are global in the global scope, and only
1630 define values that are specific to a particular class in the local
1631 scope. The vendor-option-space declaration tells the DHCP server to
1632 use options in the SUNW option space to construct the DHCPv4 vendor-
1633 encapsulated-options option. This is a limitation of that option - the
1634 DHCPv4 VIVSO and the DHCPv6 VSIO options can have multiple vendor defi‐
1635 nitions all at once (even transmitted to the same client), so it is not
1636 necessary to configure this.
1637
1639 dhcpd.conf(5), dhcpd.leases(5), dhclient.conf(5), dhcp-eval(5),
1640 dhcpd(8), dhclient(8), RFC2132, RFC2131, RFC3046, RFC3315.
1641
1643 The Internet Systems Consortium DHCP Distribution was written by Ted
1644 Lemon under a contract with Vixie Labs. Funding for this project was
1645 provided through Internet Systems Consortium. Information about Inter‐
1646 net Systems Consortium can be found at https://www.isc.org.
1647
1648
1649
1650 dhcpd-options(5)