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