Print this page
12305 typos in dhcp man pages
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man1m/dhcpagent.1m.man.txt
+++ new/usr/src/man/man1m/dhcpagent.1m.man.txt
1 1 DHCPAGENT(1M) Maintenance Commands DHCPAGENT(1M)
2 2
3 3
4 4
5 5 NAME
6 6 dhcpagent - Dynamic Host Configuration Protocol (DHCP) client daemon
7 7
8 8 SYNOPSIS
9 9 dhcpagent [-a] [ -d n] [-f] [-v]
10 10
11 11
12 12 DESCRIPTION
13 13 dhcpagent implements the client half of the Dynamic Host Configuration
14 14 Protocol (DHCP) for machines running illumos software.
15 15
16 16
17 17 The dhcpagent daemon obtains configuration parameters for the client
18 18 (local) machine's network interfaces from a DHCP server. These
19 19 parameters may include a lease on an IP address, which gives the client
20 20 machine use of the address for the period of the lease, which may be
21 21 infinite. If the client wishes to use the IP address for a period
22 22 longer than the lease, it must negotiate an extension using DHCP. For
23 23 this reason, dhcpagent must run as a daemon, terminating only when the
24 24 client machine powers down.
25 25
26 26
27 27 For IPv4, the dhcpagent daemon is controlled through ipadm(1M),
28 28 nwamcfg(1M), or ifconfig(1M) in much the same way that the init(1M)
29 29 daemon is controlled by telinit(1M). dhcpagent can be invoked as a user
30 30 process, albeit one requiring root privileges, but this is not
31 31 necessary, as ipadm(1M), nwamcfg(1M), or ifconfig(1M) will start
32 32 dhcpagent automatically.
33 33
34 34
35 35 For IPv6, the dhcpagent daemon is invoked automatically by in.ndpd(1M).
36 36 It can also be controlled through ifconfig(1M), if necessary.
37 37
38 38
39 39 When invoked, dhcpagent enters a passive state while it awaits
40 40 instructions from ipadm(1M), nwamcfg(1M), ifconfig(1M), or in.ndpd(1M).
41 41 When dhcpagent receives a command to configure an interface, dhcpagent
42 42 brings up the interface (if necessary) and starts DHCP. Once DHCP is
43 43 complete, dhcpagent can be queried for the values of the various
44 44 network parameters. In addition, if DHCP was used to obtain a lease on
45 45 an address for an interface, dhcpagent configures the address for use.
46 46 When a lease is obtained, it is automatically renewed as necessary. If
47 47 the lease cannot be renewed, dhcpagent will unconfigure the address,
48 48 but the interface will be left up, and dhcpagent will attempt to
49 49 acquire a new address lease.
50 50
51 51
52 52 dhcpagent monitors system suspend/resume events and will validate any
53 53 non-permanent leases with the DHCP server upon resume. Similarly,
54 54 dhcpagent monitors link up/down events and will validate any non-
55 55 permanent leases with the DHCP server when the downed link is brought
56 56 back up. The lease validation mechanism will restart DHCP if the server
57 57 indicates that the existing lease is no longer valid. If the server
58 58 cannot be contacted, then the existing lease will continue. This
59 59 behavior can be modified with the VERIFIED_LEASE_ONLY parameter in the
60 60 /etc/default/dhcpagent file. See the description of this parameter
61 61 below.
62 62
63 63
64 64 For IPv4, if the configured interface is found to be unplumbed, or to
65 65 have a different IP address, subnet mask, or broadcast address from
66 66 those obtained from DHCP, the interface is abandoned from DHCP control.
67 67
68 68
69 69 For IPv6, dhcpagent automatically plumbs and unplumbs logical
70 70 interfaces as necessary for the IPv6 addresses supplied by the server.
71 71 The IPv6 prefix length (netmask) is not set by the DHCPv6 protocol, but
72 72 is instead set by in.ndpd(1M) using prefix information obtained by
73 73 Router Advertisements. If any of the logical interfaces created by
74 74 dhcpagent is unplumbed, or configured with a different IP address, it
75 75 will be abandoned from DHCP control. If the link-local interface is
76 76 unplumbed, then all addresses configured by DHCP on that physical
77 77 interface will be removed.
78 78
79 79
80 80 In addition to DHCP, dhcpagent also supports BOOTP (IPv4 only). See RFC
81 81 951, Bootstrap Protocol. Configuration parameters obtained from a BOOTP
82 82 server are treated identically to those received from a DHCP server,
83 83 except that the IP address received from a BOOTP server always has an
84 84 infinite lease.
85 85
86 86
87 87 DHCP also acts as a mechanism to configure other information needed by
88 88 the client, for example, the domain name and addresses of routers.
89 89 Aside from the IP address, and for IPv4 alone, the netmask, broadcast
90 90 address, and default router, the agent does not directly configure the
91 91 workstation, but instead acts as a database which may be interrogated
92 92 by other programs, and in particular by dhcpinfo(1).
93 93
94 94
95 95 On clients with a single interface, this is quite straightforward.
96 96 Clients with multiple interfaces may present difficulties, as it is
97 97 possible that some information arriving on different interfaces may
98 98 need to be merged, or may be inconsistent. Furthermore, the
99 99 configuration of the interfaces is asynchronous, so requests may arrive
100 100 while some or all of the interfaces are still unconfigured. To handle
101 101 these cases, one interface may be designated as primary, which makes it
102 102 the authoritative source for the values of DHCP parameters in the case
103 103 where no specific interface is requested. See dhcpinfo(1) and
104 104 ifconfig(1M) for details.
105 105
106 106
107 107 For IPv4, the dhcpagent daemon can be configured to request a
108 108 particular Fully Qualified Domain Name (FQDN) or host name. See the
109 109 REQUEST_FQDN or REQUEST_HOSTNAME description in the FILES section. When
110 110 first configuring a client to request an FQDN or host name, you must
111 111 perform the following steps as root to ensure that the full DHCP
112 112 negotiation takes place:
113 113
114 114 # pkill dhcpagent
115 115 # rm /etc/dhcp/interface.dhc
116 116 # reboot
117 117
118 118
119 119
120 120
121 121 All DHCP packets sent by dhcpagent include a vendor class identifier
122 122 (RFC 2132, option code 60; RFC 3315, option code 16). This identifier
123 123 is the same as the platform name returned by the uname -i command,
124 124 except:
125 125
126 126 o Any commas in the platform name are changed to periods.
127 127
128 128 o If the name does not start with a stock symbol and a comma,
129 129 it is automatically prefixed with SUNW.
130 130
131 131 Messages
132 132 The dhcpagent daemon writes information and error messages in five
133 133 categories:
134 134
135 135 critical
136 136
137 137 Critical messages indicate severe conditions that prevent proper
138 138 operation.
139 139
140 140
141 141 errors
142 142
143 143 Error messages are important, sometimes unrecoverable events due to
144 144 resource exhaustion and other unexpected failure of system calls;
145 145 ignoring errors may lead to degraded functionality.
146 146
147 147
148 148 warnings
149 149
150 150 Warnings indicate less severe problems, and in most cases, describe
151 151 unusual or incorrect datagrams received from servers, or requests
152 152 for service that cannot be provided.
153 153
154 154
155 155 informational
156 156
157 157 Informational messages provide key pieces of information that can
158 158 be useful to debugging a DHCP configuration at a site.
159 159 Informational messages are generally controlled by the -v option.
160 160 However, certain critical pieces of information, such as the IP
161 161 address obtained, are always provided.
162 162
163 163
164 164 debug
165 165
166 166 Debugging messages, which may be generated at two different levels
167 167 of verbosity, are chiefly of benefit to persons having access to
168 168 source code, but may be useful as well in debugging difficult DHCP
169 169 configuration problems. Debugging messages are only generated when
170 170 using the -d option.
171 171
172 172
173 173
174 174 When dhcpagent is run without the -f option, all messages are sent to
175 175 the system logger syslog(3C) at the appropriate matching priority and
176 176 with a facility identifier LOG_DAEMON. When dhcpagent is run with the
177 177 -f option, all messages are directed to standard error.
178 178
179 179 DHCP Events and User-Defined Actions
180 180 If an executable (binary or script) is placed at /etc/dhcp/eventhook,
181 181 the dhcpagent daemon will automatically run that program when any of
182 182 the following events occur:
183 183
184 184 BOUND and BOUND6
185 185
186 186 These events occur during interface configuration. The event
187 187 program is invoked when dhcpagent receives the DHCPv4 ACK or DHCPv6
188 188 Reply message from the DHCP server for the lease request of an
189 189 address, indicating successful initial configuration of the
190 190 interface. (See also the INFORM and INFORM6 events, which occur
191 191 when configuration parameters are obtained without address leases.)
192 192
193 193
194 194 EXTEND and EXTEND6
195 195
196 196 These events occur during lease extension. The event program is
197 197 invoked just after dhcpagent receives the DHCPv4 ACK or DHCPv6
198 198 Reply from the DHCP server for the DHCPv4 REQUEST (renew) message
199 199 or the DHCPv6 Renew or Rebind message.
200 200
201 201 Note that with DHCPv6, the server might choose to remove some
202 202 addresses, add new address leases, and ignore (allow to expire)
203 203 still other addresses in a given Reply message. The EXTEND6 event
204 204 occurs when a Reply is received that leaves one or more address
205 205 leases still valid, even if the Reply message does not extend the
206 206 lease for any address. The event program is invoked just before any
207 207 addresses are removed, but just after any new addresses are added.
208 208 Those to be removed will be marked with the IFF_DEPRECATED flag.
209 209
210 210
211 211 EXPIRE and EXPIRE6
212 212
213 213 These events occur during lease expiration. For DHCPv4, the event
214 214 program is invoked just before the leased address is removed from
215 215 an interface. For DHCPv6, the event program is invoked just before
216 216 the last remaining leased addresses are removed from the interface.
217 217
218 218
219 219 DROP and DROP6
220 220
221 221 These events occur during the period when an interface is dropped.
222 222 The event program is invoked just before the interface is removed
223 223 from DHCP control. If the interface has been abandoned due the user
224 224 unplumbing the interface, then this event will occur after the
225 225 user's action has taken place. The interface might not be present.
226 226
227 227
228 228 INFORM and INFORM6
229 229
230 230 These events occur when an interface acquires new or updated
231 231 configuration information from a DHCP server by means of the DHCPv4
232 232 INFORM or the DHCPv6 Information-Request message. These messages
233 233 are sent using an ifconfig(1M) dhcp inform command or when the
234 234 DHCPv6 Router Advertisement O (letter 0) bit is set and the M bit
235 235 is not set. Thus, these events occur when the DHCP client does not
236 236 obtain an IP address lease from the server, and instead obtains
237 237 only configuration parameters.
238 238
239 239
240 240 LOSS6
241 241
242 242 This event occurs during lease expiration when one or more valid
243 243 leases still remain. The event program is invoked just before
244 244 expired addresses are removed. Those being removed will be marked
245 245 with the IFF_DEPRECATED flag.
246 246
247 247 Note that this event is not associated with the receipt of the
248 248 Reply message, which occurs only when one or more valid leases
249 249 remain, and occurs only with DHCPv6. If all leases have expired,
250 250 then the EXPIRE6 event occurs instead.
251 251
252 252
253 253 RELEASE and RELEASE6
254 254
255 255 This event occurs during the period when a leased address is
256 256 released. The event program is invoked just before dhcpagent
257 257 relinquishes the address on an interface and sends the DHCPv4
258 258 RELEASE or DHCPv6 Release packet to the DHCP server.
259 259
260 260
261 261
262 262 The system does not provide a default event program. The file
263 263 /etc/dhcp/eventhook is expected to be owned by root and have a mode of
264 264 755.
265 265
266 266
267 267 The event program will be passed two arguments, the interface name and
268 268 the event name, respectively. For DHCPv6, the interface name is the
269 269 name of the physical interface.
270 270
271 271
272 272 The event program can use the dhcpinfo(1) utility to fetch additional
273 273 information about the interface. While the event program is invoked on
274 274 every event defined above, it can ignore those events in which it is
275 275 not interested. The event program runs with the same privileges and
276 276 environment as dhcpagent itself, except that stdin, stdout, and stderr
277 277 are redirected to /dev/null. Note that this means that the event
278 278 program runs with root privileges.
279 279
280 280
281 281 If an invocation of the event program does not exit after 55 seconds,
282 282 it is sent a SIGTERM signal. If does not exit within the next three
283 283 seconds, it is terminated by a SIGKILL signal.
284 284
285 285
286 286 See EXAMPLES for an example event program.
287 287
288 288 OPTIONS
289 289 The following options are supported:
290 290
291 291 -a
292 292
293 293 Adopt a configured IPv4 interface. This option is for use with
294 294 diskless DHCP clients. In the case of diskless DHCP, DHCP has
295 295 already been performed on the network interface providing the
296 296 operating system image prior to running dhcpagent. This option
297 297 instructs the agent to take over control of the interface. It is
298 298 intended primarily for use in boot scripts.
299 299
300 300 The effect of this option depends on whether the interface is being
301 301 adopted.
302 302
303 303 If the interface is being adopted, the following conditions apply:
304 304
305 305 dhcpagent uses the client id specified in /chosen:<client_id>, as
306 306 published by the PROM or as specified on a boot(1M) command line.
307 307 If this value is not present, the client id is undefined. The DHCP
308 308 server then determines what to use as a client id. It is an error
309 309 condition if the interface is an Infiniband interface and the PROM
310 310 value is not present.
311 311
312 312 If the interface is not being adopted:
313 313
314 314 dhcpagent uses the value stored in /etc/default/dhcpagent. If this
315 315 value is not present, the client id is undefined. If the interface
316 316 is Infiniband and there is no value in /etc/default/dhcpagent, a
317 317 client id is generated as described by the draft document on DHCP
318 318 over Infiniband, available at:
319 319
320 320 http://www.ietf.org
321 321
322 322
323 323
324 324 -d n
325 325
326 326 Set debug level to n. Two levels of debugging are currently
327 327 available, 1 and 2; the latter is more verbose.
328 328
329 329
330 330 -f
331 331
332 332 Run in the foreground instead of as a daemon process. When this
333 333 option is used, messages are sent to standard error instead of to
334 334 syslog(3C).
335 335
336 336
337 337 -v
338 338
339 339 Provide verbose output useful for debugging site configuration
340 340 problems.
341 341
342 342
343 343 EXAMPLES
344 344 Example 1 Example Event Program
345 345
346 346
347 347 The following script is stored in the file /etc/dhcp/eventhook, owned
348 348 by root with a mode of 755. It is invoked upon the occurrence of the
349 349 events listed in the file.
350 350
351 351
352 352 #!/bin/sh
353 353
354 354 (
355 355 echo "Interface name: " $1
356 356 echo "Event: " $2
357 357
358 358 case $2 in
↓ open down ↓ |
358 lines elided |
↑ open up ↑ |
359 359 "BOUND")
360 360 echo "Address acquired from server "\
361 361 `/sbin/dhcpinfo -i $1 ServerID`
362 362 ;;
363 363 "BOUND6")
364 364 echo "Addresses acquired from server " \
365 365 `/sbin/dhcpinfo -v6 -i $1 ServerID`
366 366 ;;
367 367 "EXTEND")
368 368 echo "Lease extended for " \
369 - `sbin/dhcpinfo -i $1 LeaseTim`" seconds"
369 + `/sbin/dhcpinfo -i $1 LeaseTim`" seconds"
370 370 ;;
371 371 "EXTEND6")
372 372 echo "New lease information obtained on $i"
373 373 ;;
374 374 "EXPIRE" | "DROP" | "RELEASE")
375 375 ;;
376 376
377 377 esac
378 378 ) >/var/run/dhcp_eventhook_output 2>&1
379 379
380 380
381 381
382 382
383 383 Note the redirection of stdout and stderr to a file.
384 384
385 385
386 386 FILES
387 387 /etc/dhcp/if.dhc
388 388 /etc/dhcp/if.dh6
389 389
390 390 Contains the configuration for interface. The mere existence of
391 391 this file does not imply that the configuration is correct, since
392 392 the lease might have expired. On start-up, dhcpagent confirms the
393 393 validity of the address using REQUEST (for DHCPv4) or Confirm
394 394 (DHCPv6).
395 395
396 396
397 397 /etc/dhcp/duid
398 398 /etc/dhcp/iaid
399 399
400 400 Contains persistent storage for system-generated DUID (DHCP Unique
401 401 Identifier) and interface-specific IAID (Identity Association
402 402 Identifier) values which are used if no CLIENT_ID is defined (see
403 403 below). The format of these files is undocumented, and applications
404 404 should not read from or write to them. Instead, dhcpinfo(1) can be
405 405 used to query the dhcpagent for ClientID. For DHCPv6 interfaces,
406 406 the result will contain the DUID. For DHCPv4 interfaces with
407 407 V4_DEFAULT_IAID_DUID enabled (see below), the result will contain
408 408 the IAID and DUID.
409 409
410 410
411 411 /etc/default/dhcpagent
412 412
413 413 Contains default values for tunable parameters. All values may be
414 414 qualified with the interface they apply to by prepending the
415 415 interface name and a period (".") to the interface parameter name.
416 416 The parameters include: the interface parameter name.
417 417
418 418 To configure IPv6 parameters, place the string .v6 between the
419 419 interface name (if any) and the parameter name. For example, to set
420 420 the global IPv6 parameter request list, use .v6.PARAM_REQUEST_LIST.
421 421 To set the CLIENT_ID (DUID) on hme0, use hme0.v6.CLIENT_ID.
422 422
423 423 The parameters include:
424 424
425 425 VERIFIED_LEASE_ONLY
426 426
427 427 Indicates that a RELEASE rather than a DROP should be performed
428 428 on managed interfaces when the agent terminates. Release causes
429 429 the client to discard the lease, and the server to make the
430 430 address available again. Drop causes the client to record the
431 431 lease in /etc/dhcp/interface.dhc or /etc/dhcp/interface.dh6 for
432 432 later use. In addition, when the link status changes to up or
433 433 when the system is resumed after a suspend, the client will
434 434 verify the lease with the server. If the server is unreachable
435 435 for verification, then the old lease will be discarded (even if
436 436 it has time remaining) and a new one obtained.
437 437
438 438 Enabling this option is often desirable on mobile systems, such
439 439 as laptops, to allow the system to recover quickly from moves.
440 440
441 441 Default value of this option is no.
442 442
443 443
444 444 OFFER_WAIT
445 445
446 446 Indicates how long to wait in seconds between checking for
447 447 valid OFFERs after sending a DISCOVER. For DHCPv6, sets the
448 448 time to wait between checking for valid Advertisements after
449 449 sending a Solicit.
450 450
451 451 Default value of this option is 3.
452 452
453 453
454 454 CLIENT_ID
455 455
456 456 Indicates the value that should be used to uniquely identify
457 457 the client to the server. This value can take one of three
458 458 basic forms:
459 459
460 460 decimal,data...
461 461 0xHHHHH...
462 462 "string...."
463 463
464 464
465 465 The first form is an RFC 3315 DUID. This is legal for both IPv4
466 466 DHCP and DHCPv6. For IPv4, an RFC 4361 Client ID is constructed
467 467 from this value. In this first form, the format of data...
468 468 depends on the decimal value. The following formats are defined
469 469 for this first form:
470 470
471 471 1,hwtype,time,lla
472 472
473 473 Type 1, DUID-LLT. The hwtype value is an integer in the
474 474 range 0-65535, and indicates the type of hardware. The time
475 475 value is the number of seconds since midnight, January 1st,
476 476 2000 UTC, and can be omitted to use the current system
477 477 time. The lla value is either a colon-separated MAC address
478 478 or the name of a physical interface. If the name of an
479 479 interface is used, the hwtype value can be omitted. For
480 480 example: 1,,,hme0
481 481
482 482
483 483 2,enterprise,hex...
484 484
485 485 Type 2, DUID-EN. The enterprise value is an integer in the
486 486 range 0-4294967295 and represents the SMI Enterprise number
487 487 for an organization. The hex string is an even-length
488 488 sequence of hexadecimal digits.
489 489
490 490
491 491 3,hwtype,lla
492 492
493 493 Type 3, DUID-LL. This is the same as DUID-LLT (type 1),
494 494 except that a time stamp is not used.
495 495
496 496
497 497 *,hex
498 498
499 499 Any other type value (0 or 4-65535) can be used with an
500 500 even-length hexadecimal string.
501 501
502 502 The second and third forms of CLIENT_ID are legal for IPv4
503 503 only. These both represent raw Client ID (without RFC 4361), in
504 504 hex, or NVT ASCII string format. Thus, "Sun" and 0x53756E are
505 505 equivalent.
506 506
507 507
508 508 V4_DEFAULT_IAID_DUID
509 509
510 510 Indicates whether to use, when CLIENT_ID is not defined, a
511 511 system-managed, RFC 3315-style (i.e., DHCPv6-style) binding
512 512 identifier as documented in RFC 4361, "Node-specific Client
513 513 Identifiers for DHCPv4," for IPv4 interfaces which for purposes
514 514 of backward compatibility do not normally get default binding
515 515 identifiers.
516 516
517 517 An IPv4 interface that is not in an IP network multipathing
518 518 (IPMP) group, that is not IP over InfiniBand (IPoIB), and that
519 519 is not a logical interface does not normally get a default
520 520 binding identifier.
521 521
522 522 Default value of this option is no.
523 523
524 524
525 525 PARAM_REQUEST_LIST
526 526
527 527 Specifies a list of comma-separated integer values of options
528 528 for which the client would like values, or symbolic Site or
529 529 Option option names. Symbolic option names for IPv4 are
530 530 resolved through /etc/dhcp/inittab. Option names for IPv6 are
531 531 resolved by means of /etc/dhcp/inittab6.
532 532
533 533
534 534 PARAM_IGNORE_LIST
535 535
536 536 Specifies a list of options (constructed in the same manner as
537 537 PARAM_REQUEST_LIST) that the DHCP client will ignore. Ignored
538 538 options are treated as though the server did not return the
539 539 options specified. Ignored options are not visible using
540 540 dhcpinfo(1) or acted on by the client. This parameter can be
541 541 used, for example, to disable an unwanted client name or
542 542 default router.
543 543
544 544
545 545 REQUEST_FQDN
546 546
547 547 Indicates the client requests the DHCP server to map the
548 548 client's leased IPv4 address to the Fully Qualified Domain Name
549 549 (FQDN) associated with the network interface that performs DHCP
550 550 on the client and to collaborate with a compatible DNS server
551 551 to manage A and PTR resource records for the FQDN for the life
552 552 of the lease.
553 553
554 554 The hostname in the FQDN is determined from the following
555 555 possible configurations:
556 556
557 557 1. ipadm(1M): include the -1,--primary flag when creating an
558 558 address that uses DHCP so that nodename(4) is used as the
559 559 hostname.
560 560
561 561 2. ipadm(1M): include the -h,--reqhost hostname switch when
562 562 executing the create-addr -T dhcp subcommand, or use the set-
563 563 addrprop -p reqhost=hostname subcommand for any existing DHCP
564 564 address.
565 565
566 566 3. nwamcfg(1M): set a property, ip-primary=on, for an ncu ip
567 567 that uses DHCP so that nodename(4) is used as the hostname.
568 568
569 569 4. nwamcfg(1M): set a property, ip-reqhost=hostname, for an
570 570 ncu ip that uses DHCP.
571 571
572 572 The hostname value is either a Partially Qualified Domain Name
573 573 (PQDN) or an FQDN (i.e., a "rooted" domain name ending with a
574 574 '.' or one inferred to be an FQDN if it contains at least three
575 575 DNS labels such as srv.example.com). If a PQDN is specified,
576 576 then an FQDN is constructed if DNS_DOMAINNAME is defined or if
577 577 ADOPT_DOMAINNAME is set to yes and an eligible domain name (as
578 578 described below) is available.
579 579
580 580 If an FQDN is sent, REQUEST_HOSTNAME processing will not be
581 581 done, per RFC 4702 (3.1): "clients that send the Client FQDN
582 582 option in their messages MUST NOT also send the Host Name."
583 583
584 584 Default value of this option is yes.
585 585
586 586
587 587 DNS_DOMAINNAME
588 588
589 589 Indicates the value that should be appended to a PQDN specified
590 590 by the -h,--reqhost option of ipadm(1M), by the ncu ip-reqhost
591 591 property of nwamcfg(1M), or by nodename(4) to construct an FQDN
592 592 for REQUEST_FQDN processing. If the hostname value is already
593 593 an FQDN, then the value of this option is not used.
594 594
595 595
596 596 ADOPT_DOMAINNAME
597 597
598 598 Indicates that a domain name returned by the DHCP server or the
599 599 domain from resolv.conf(4) should be adopted if needed to
600 600 construct an FQDN from a PQDN specified by the -h,--reqhost
601 601 option of ipadm(1M), by the ncu ip-reqhost property of
602 602 nwamcfg(1M), or by nodename(4). If the hostname value is
603 603 already an FQDN, then the value of this option is not
604 604 applicable. The eligible DHCP option for domain name is DHCPv4
605 605 DNSdmain.
606 606
607 607 Default value of this option is no.
608 608
609 609
610 610 REQUEST_HOSTNAME
611 611
612 612 Indicates the client requests the DHCP server to map the
613 613 client's leased IPv4 address to the host name associated with
614 614 the network interface that performs DHCP on the client. The
615 615 host name must be specified as documented for a PQDN in
616 616 REQUEST_FQDN above or specified in the /etc/hostname.interface
617 617 file for the relevant interface on a line of the form
618 618
619 619 inet hostname
620 620
621 621
622 622 where hostname is the host name requested.
623 623
624 624 This option works with DHCPv4 only.
625 625
626 626 Default value of this option is yes.
627 627
628 628
629 629
630 630 /etc/dhcp/eventhook
631 631
632 632 Location of a DHCP event program.
633 633
634 634
635 635 ATTRIBUTES
636 636 See attributes(5) for descriptions of the following attributes:
637 637
638 638
639 639
640 640
641 641 +--------------------+-----------------+
642 642 | ATTRIBUTE TYPE | ATTRIBUTE VALUE |
643 643 +--------------------+-----------------+
644 644 |Interface Stability | Committed |
645 645 +--------------------+-----------------+
646 646
647 647 SEE ALSO
648 648 dhcpinfo(1), ifconfig(1M), init(1M), in.mpathd(1M), in.ndpd(1M),
649 649 ipadm(1M), nwamcfg(1M), syslog(3C), nodename(4), resolv.conf(4),
650 650 attributes(5), dhcp(5)
651 651
652 652
653 653
654 654
655 655 Croft, B. and Gilmore, J. RFC 951, Bootstrap Protocol (BOOTP), Network
656 656 Working Group, September 1985.
657 657
658 658
659 659 Droms, R. RFC 2131, Dynamic Host Configuration Protocol, Network
660 660 Working Group, March 1997.
661 661
662 662
663 663 Lemon, T. and B. Sommerfeld. RFC 4361, Node-specific Client Identifiers
664 664 for Dynamic Host Configuration Protocol Version Four (DHCPv4). Nominum
665 665 and Sun Microsystems. February 2006.
666 666
667 667
668 668 Droms, R. RFC 3315, Dynamic Host Configuration Protocol for IPv6
669 669 (DHCPv6). Cisco Systems. July 2003.
670 670
671 671 NOTES
672 672 The dhcpagent daemon can be used on IPv4 logical interfaces, just as
673 673 with physical interfaces. When used on a logical interface, the daemon
674 674 automatically constructs a Client ID value based on the DUID and IAID
675 675 values, according to RFC 4361. The /etc/default/dhcpagent CLIENT_ID
676 676 value, if any, overrides this automatic identifier.
677 677
678 678
679 679 As with physical IPv4 interfaces, the /etc/hostname.hme0:1 and
680 680 /etc/dhcp.hme0:1 files must also be created in order for hme0:1 to be
681 681 automatically plumbed and configured at boot. In addition, unlike
682 682 physical IPv4 interfaces, dhcpagent does not add or remove default
683 683 routes associated with logical interfaces.
684 684
685 685
686 686 DHCP can be performed on IPMP IP interfaces to acquire and maintain
687 687 IPMP data addresses. Because an IPMP IP interface has no hardware
688 688 address, the daemon automatically constructs a Client ID using the same
689 689 approach described above for IPv4 logical interfaces. In addition, the
690 690 lack of a hardware address means the daemon must set the "broadcast"
691 691 flag in all DISCOVER and REQUEST messages on IPMP IP interfaces. Some
692 692 DHCP servers may refuse such requests.
693 693
694 694
695 695 DHCP can be performed on IP interfaces that are part of an IPMP group
696 696 (to acquire and maintain test addresses). The daemon will automatically
697 697 set the NOFAILOVER and DEPRECATED flags on each test address.
698 698 Additionally, the daemon will not add or remove default routes in this
699 699 case. Note that the actual DHCP packet exchange may be performed over
700 700 any active IP interface in the IPMP group. It is strongly recommended
701 701 that test addresses have infinite leases. Otherwise, an extended
702 702 network outage detectable only by probes may cause test address leases
703 703 to expire, causing in.mpathd(1M) to revert to link-based failure
↓ open down ↓ |
324 lines elided |
↑ open up ↑ |
704 704 detection and trigger an erroneous repair.
705 705
706 706
707 707 With DHCPv6, the link-local interface must be configured using
708 708 /etc/hostname6.hme0 in order for DHCPv6 to run on hme0 at boot time.
709 709 The logical interfaces for each address are plumbed by dhcpagent
710 710 automatically.
711 711
712 712
713 713
714 - June 30, 2017 DHCPAGENT(1M)
714 + February 13, 2020 DHCPAGENT(1M)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX