1502 Remove conversion cruft from manpages
[unleashed.git] / usr / src / man / man1m / dhcpagent.1m
blob984f941db21fcbc11e3d4f6eca96b4f56519c9f1
1 '\" te
2 .\"  Copyright (c) 1992-1996 Competitive Automation, Inc. Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
4 .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
5 .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DHCPAGENT 1M "Sep 21, 2009"
7 .SH NAME
8 dhcpagent \- Dynamic Host Configuration Protocol (DHCP) client daemon
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBdhcpagent\fR [\fB-a\fR] [ \fB-d\fR \fIn\fR] [\fB-f\fR] [\fB-v\fR]
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 \fBdhcpagent\fR implements the client half of the Dynamic Host Configuration
19 Protocol \fB(DHCP)\fR for machines running Solaris software.
20 .sp
21 .LP
22 The \fBdhcpagent\fR daemon obtains configuration parameters for the client
23 (local) machine's network interfaces from a \fBDHCP\fR server. These parameters
24 may include a lease on an \fBIP\fR address, which gives the client machine use
25 of the address for the period of the lease, which may be infinite. If the
26 client wishes to use the \fBIP\fR address for a period longer than the lease,
27 it must negotiate an extension using \fBDHCP\fR. For this reason,
28 \fBdhcpagent\fR must run as a daemon, terminating only when the client machine
29 powers down.
30 .sp
31 .LP
32 For IPv4, the \fBdhcpagent\fR daemon is controlled through \fBifconfig\fR(1M)
33 in much the same way that the \fBinit\fR(1M) daemon is controlled by
34 \fBtelinit\fR(1M). \fBdhcpagent\fR can be invoked as a user process, albeit one
35 requiring root privileges, but this is not necessary, as \fBifconfig\fR(1M)
36 will start it automatically.
37 .sp
38 .LP
39 For IPv6, the \fBdhcpagent\fR daemon is invoked automatically by
40 \fBin.ndpd\fR(1M). It can also be controlled through \fBifconfig\fR(1M), if
41 necessary.
42 .sp
43 .LP
44 When invoked, \fBdhcpagent\fR enters a passive state while it awaits
45 instructions from \fBifconfig\fR(1M) or \fBin.ndpd\fR(1M). When it receives a
46 command to configure an interface, it brings up the interface (if necessary)
47 and starts DHCP. Once DHCP is complete, \fBdhcpagent\fR can be queried for the
48 values of the various network parameters. In addition, if DHCP was used to
49 obtain a lease on an address for an interface, it configures the address for
50 use. When a lease is obtained, it is automatically renewed as necessary. If the
51 lease cannot be renewed, \fBdhcpagent\fR will unconfigure the address, but the
52 interface will be left up and \fBdhcpagent\fR will attempt to acquire a new
53 address lease. \fBdhcpagent\fR monitors system suspend/resume events and will
54 validate any non-permanent leases with the DHCP server upon resume. Similarly,
55 \fBdhcpagent\fR monitors link up/down events and will validate any
56 non-permanent leases with the DHCP server when the downed link is brought back
57 up. The lease validation mechanism will restart DHCP if the server indicates
58 that the existing lease is no longer valid. If the server cannot be contacted,
59 then the existing lease will continue. This behavior can be modified with the
60 \fBVERIFIED_LEASE_ONLY\fR parameter in the \fB/etc/default/dhcpagent\fR file.
61 See the description of this parameter below.
62 .sp
63 .LP
64 For IPv4, if the configured interface is found to be unplumbed, or to have a
65 different IP address, subnet mask, or broadcast address from those obtained
66 from DHCP, the interface is abandoned from DHCP control.
67 .sp
68 .LP
69 For IPv6, \fBdhcpagent\fR automatically plumbs and unplumbs logical interfaces
70 as necessary for the IPv6 addresses supplied by the server. The IPv6 prefix
71 length (netmask) is not set by the DHCPv6 protocol, but is instead set by
72 \fBin.ndpd\fR(1M) using prefix information obtained by Router Advertisements.
73 If any of the logical interfaces created by \fBdhcpagent\fR is unplumbed, or
74 configured with a different IP address, it will be abandoned from DHCP control.
75 If the link-local interface is unplumbed, then all addresses configured by DHCP
76 on that physical interface will be removed.
77 .sp
78 .LP
79 In addition to \fBDHCP\fR, \fBdhcpagent\fR also supports \fBBOOTP\fR (IPv4
80 only). See \fIRFC 951, Bootstrap Protocol\fR. Configuration parameters obtained
81 from a \fBBOOTP\fR server are treated identically to those received from a
82 \fBDHCP\fR server, except that the \fBIP\fR address received from a \fBBOOTP\fR
83 server always has an infinite lease.
84 .sp
85 .LP
86 \fBDHCP\fR also acts as a mechanism to configure other information needed by
87 the client, for example, the domain name and addresses of routers. Aside from
88 the IP address, and for IPv4 alone, the netmask, broadcast address, and default
89 router, the agent does not directly configure the workstation, but instead acts
90 as a database which may be interrogated by other programs, and in particular by
91 \fBdhcpinfo\fR(1).
92 .sp
93 .LP
94 On clients with a single interface, this is quite straightforward. Clients with
95 multiple interfaces may present difficulties, as it is possible that some
96 information arriving on different interfaces may need to be merged, or may be
97 inconsistent. Furthermore, the configuration of the interfaces is asynchronous,
98 so requests may arrive while some or all of the interfaces are still
99 unconfigured. To handle these cases, one interface may be designated as
100 primary, which makes it the authoritative source for the values of \fBDHCP\fR
101 parameters in the case where no specific interface is requested. See
102 \fBdhcpinfo\fR(1) and \fBifconfig\fR(1M) for details.
105 For IPv4, the \fBdhcpagent\fR daemon can be configured to request a particular
106 host name. See the \fBREQUEST_HOSTNAME\fR description in the \fBFILES\fR
107 section. When first configuring a client to request a host name, you must
108 perform the following steps as root to ensure that the full DHCP negotiation
109 takes place:
111 .in +2
113 # pkill dhcpagent
114 # rm /etc/dhcp/\fIinterface\fR.dhc
115 # reboot
117 .in -2
122 All DHCP packets sent by \fBdhcpagent\fR include a vendor class identifier (RFC
123 2132, option code 60; RFC 3315, option code 16). This identifier is the same as
124 the platform name returned by the \fBuname\fR \fB-i\fR command, except:
125 .RS +4
127 .ie t \(bu
128 .el o
129 Any commas in the platform name are changed to periods.
131 .RS +4
133 .ie t \(bu
134 .el o
135 If the name does not start with a stock symbol and a comma, it is automatically
136 prefixed with \fBSUNW\fR.
138 .SS "Messages"
141 The \fBdhcpagent\fR daemon writes information and error messages in five
142 categories:
144 .ne 2
146 \fBcritical\fR
148 .sp .6
149 .RS 4n
150 Critical messages indicate severe conditions that prevent proper operation.
154 .ne 2
156 \fBerrors\fR
158 .sp .6
159 .RS 4n
160 Error messages are important, sometimes unrecoverable events due to resource
161 exhaustion and other unexpected failure of system calls; ignoring errors may
162 lead to degraded functionality.
166 .ne 2
168 \fBwarnings\fR
170 .sp .6
171 .RS 4n
172 Warnings indicate less severe problems, and in most cases, describe unusual or
173 incorrect datagrams received from servers, or requests for service that cannot
174 be provided.
178 .ne 2
180 \fBinformational\fR
182 .sp .6
183 .RS 4n
184 Informational messages provide key pieces of information that can be useful to
185 debugging a \fBDHCP\fR configuration at a site. Informational messages are
186 generally controlled by the \fB-v\fR option. However, certain critical pieces
187 of information, such as the IP address obtained, are always provided.
191 .ne 2
193 \fBdebug\fR
195 .sp .6
196 .RS 4n
197 Debugging messages, which may be generated at two different levels of
198 verbosity, are chiefly of benefit to persons having access to source code, but
199 may be useful as well in debugging difficult DHCP configuration problems.
200 Debugging messages are only generated when using the \fB-d\fR option.
205 When \fBdhcpagent\fR is run without the \fB-f\fR option, all messages are sent
206 to the system logger \fBsyslog\fR(3C) at the appropriate matching priority and
207 with a facility identifier \fBLOG_DAEMON\fR. When \fBdhcpagent\fR is run with
208 the \fB-f\fR option, all messages are directed to standard error.
209 .SS "DHCP Events and User-Defined Actions"
212 If an executable (binary or script) is placed at \fB/etc/dhcp/eventhook\fR, the
213 \fBdhcpagent\fR deamon will automatically run that program when any of the
214 following events occur:
216 .ne 2
218 \fB\fBBOUND\fR and \fBBOUND6\fR\fR
220 .sp .6
221 .RS 4n
222 These events occur during interface configuration. The event program is invoked
223 when \fBdhcpagent\fR receives the DHCPv4 ACK or DHCPv6 Reply message from the
224 DHCP server for the lease request of an address, indicating successful initial
225 configuration of the interface. (See also the \fBINFORM\fR and \fBINFORM6\fR
226 events, which occur when configuration parameters are obtained without address
227 leases.)
231 .ne 2
233 \fB\fBEXTEND\fR and \fBEXTEND6\fR\fR
235 .sp .6
236 .RS 4n
237 These events occur during lease extension. The event program is invoked just
238 after \fBdhcpagent\fR receives the DHCPv4 ACK or DHCPv6 Reply from the DHCP
239 server for the DHCPv4 REQUEST (renew) message or the DHCPv6 Renew or Rebind
240 message.
242 Note that with DHCPv6, the server might choose to remove some addresses, add
243 new address leases, and ignore (allow to expire) still other addresses in a
244 given Reply message. The \fBEXTEND6\fR event occurs when a Reply is received
245 that leaves one or more address leases still valid, even if the Reply message
246 does not extend the lease for any address. The event program is invoked just
247 before any addresses are removed, but just after any new addresses are added.
248 Those to be removed will be marked with the \fBIFF_DEPRECATED\fR flag.
252 .ne 2
254 \fB\fBEXPIRE\fR and \fBEXPIRE6\fR\fR
256 .sp .6
257 .RS 4n
258 These events occur during lease expiration. For DHCPv4, the event program is
259 invoked just before the leased address is removed from an interface. For
260 DHCPv6, the event program is invoked just before the last remaining leased
261 addresses are removed from the interface.
265 .ne 2
267 \fB\fBDROP\fR and \fBDROP6\fR\fR
269 .sp .6
270 .RS 4n
271 These events occur during the period when an interface is dropped. The event
272 program is invoked just before the interface is removed from DHCP control. If
273 the interface has been abandoned due the user unplumbing the interface, then
274 this event will occur after the user's action has taken place. The interface
275 might not be present.
279 .ne 2
281 \fB\fBINFORM\fR and \fBINFORM6\fR\fR
283 .sp .6
284 .RS 4n
285 These events occur when an interface acquires new or updated configuration
286 information from a DHCP server by means of the DHCPv4 \fBINFORM\fR or the
287 DHCPv6 Information-Request message. These messages are sent using an
288 \fBifconfig\fR(1M) \fBdhcp inform\fR command or when the DHCPv6 Router
289 Advertisement \fBO\fR (letter 0) bit is set and the \fBM\fR bit is not set.
290 Thus, these events occur when the DHCP client does not obtain an IP address
291 lease from the server, and instead obtains only configuration parameters.
295 .ne 2
297 \fB\fBLOSS6\fR\fR
299 .sp .6
300 .RS 4n
301 This event occurs during lease expiration when one or more valid leases still
302 remain. The event program is invoked just before expired addresses are removed.
303 Those being removed will be marked with the \fBIFF_DEPRECATED\fR flag.
305 Note that this event is not associated with the receipt of the Reply message,
306 which occurs only when one or more valid leases remain, and occurs only with
307 DHCPv6. If all leases have expired, then the EXPIRE6 event occurs instead.
311 .ne 2
313 \fB\fBRELEASE\fR and \fBRELEASE6\fR\fR
315 .sp .6
316 .RS 4n
317 This event occurs during the period when a leased address is released. The
318 event program is invoked just before \fBdhcpagent\fR relinquishes the address
319 on an interface and sends the DHCPv4 \fBRELEASE\fR or DHCPv6 Release packet to
320 the DHCP server.
325 The system does not provide a default event program. The file
326 \fB/etc/dhcp/eventhook\fR is expected to be owned by root and have a mode of
327 755.
330 The event program will be passed two arguments, the interface name and the
331 event name, respectively. For DHCPv6, the interface name is the name of the
332 physical interface.
335 The event program can use the \fBdhcpinfo\fR(1) utility to fetch additional
336 information about the interface. While the event program is invoked on every
337 event defined above, it can ignore those events in which it is not interested.
338 The event program runs with the same privileges and environment as
339 \fBdhcpagent\fR itself, except that \fBstdin\fR, \fBstdout\fR, and \fBstderr\fR
340 are redirected to \fB/dev/null\fR. Note that this means that the event program
341 runs with root privileges.
344 If an invocation of the event program does not exit after 55 seconds, it is
345 sent a \fBSIGTERM\fR signal. If does not exit within the next three seconds, it
346 is terminated by a \fBSIGKILL\fR signal.
349 See EXAMPLES for an example event program.
350 .SH OPTIONS
353 The following options are supported:
355 .ne 2
357 \fB\fB-a\fR\fR
359 .sp .6
360 .RS 4n
361 Adopt a configured IPv4 interface. This option is for use with diskless
362 \fBDHCP\fR clients. In the case of diskless \fBDHCP\fR, \fBDHCP\fR has already
363 been performed on the network interface providing the operating system image
364 prior to running \fBdhcpagent\fR. This option instructs the agent to take over
365 control of the interface. It is intended primarily for use in boot scripts.
367 The effect of this option depends on whether the interface is being adopted.
369 If the interface is being adopted, the following conditions apply:
371 \fBdhcpagent\fR uses the client id specified in
372 \fB/chosen\fR:\fI<client_id>\fR, as published by the PROM or as specified on a
373 \fBboot\fR(1M) command line. If this value is not present, the client id is
374 undefined. The DHCP server then determines what to use as a client id. It is an
375 error condition if the interface is an Infiniband interface and the PROM value
376 is not present.
378 If the interface is not being adopted:
380 \fBdhcpagent\fR uses the value stored in \fB/etc/default/dhcpagent\fR. If this
381 value is not present, the client id is undefined. If the interface is
382 Infiniband and there is no value in \fB/etc/default/dhcpagent\fR, a client id
383 is generated as described by the draft document on DHCP over Infiniband,
384 available at:
386 .in +2
388 http://www.ietf.org
390 .in -2
395 .ne 2
397 \fB\fB-d\fR \fIn\fR\fR
399 .sp .6
400 .RS 4n
401 Set debug level to \fIn\fR. Two levels of debugging are currently available, 1
402 and 2; the latter is more verbose.
406 .ne 2
408 \fB\fB-f\fR\fR
410 .sp .6
411 .RS 4n
412 Run in the foreground instead of as a daemon process. When this option is used,
413 messages are sent to standard error instead of to \fBsyslog\fR(3C).
417 .ne 2
419 \fB\fB-v\fR\fR
421 .sp .6
422 .RS 4n
423 Provide verbose output useful for debugging site configuration problems.
426 .SH EXAMPLES
428 \fBExample 1 \fRExample Event Program
431 The following script is stored in the file \fB/etc/dhcp/eventhook\fR, owned by
432 root with a mode of 755. It is invoked upon the occurrence of the events listed
433 in the file.
436 .in +2
438 #!/bin/sh
441 echo "Interface name: " $1
442 echo "Event: " $2
444 case $2 in
445 "BOUND")
446      echo "Address acquired from server "\e
447          `/sbin/dhcpinfo -i $1 ServerID`
448      ;;
449 "BOUND6")
450      echo "Addresses acquired from server " \e
451          `/sbin/dhcpinfo -v6 -i $1 ServerID`
452      ;;
453 "EXTEND")
454     echo "Lease extended for " \e
455          `sbin/dhcpinfo -i $1 LeaseTim`" seconds"
456      ;;
457 "EXTEND6")
458     echo "New lease information obtained on $i"
459      ;;
460 "EXPIRE" | "DROP" | "RELEASE")
461      ;;
463 esac
464 ) >/var/run/dhcp_eventhook_output 2>&1
466 .in -2
471 Note the redirection of stdout and stderr to a file.
473 .SH FILES
475 .ne 2
477 \fB\fB/etc/dhcp/\fIif\fR.dhc\fR\fR
481 \fB\fB/etc/dhcp/\fIif\fR.dh6\fR\fR
483 .sp .6
484 .RS 4n
485 Contains the configuration for interface. The mere existence of this file does
486 not imply that the configuration is correct, since the lease might have
487 expired. On start-up, \fBdhcpagent\fR confirms the validity of the address
488 using REQUEST (for DHCPv4) or Confirm (DHCPv6).
492 .ne 2
494 \fB\fB/etc/dhcp/duid\fR\fR
498 \fB\fB/etc/dhcp/iaid\fR\fR
500 .sp .6
501 .RS 4n
502 Contains persistent storage for DUID (DHCP Unique Identifier) and IAID
503 (Identity Association Identifier) values. The format of these files is
504 undocumented, and applications should not read from or write to them.
508 .ne 2
510 \fB\fB/etc/default/dhcpagent\fR\fR
512 .sp .6
513 .RS 4n
514 Contains default values for tunable parameters. All values may be qualified
515 with the interface they apply to by prepending the interface name and a period
516 (".") to the interface parameter name. The parameters include: the interface
517 parameter name.
519 To configure IPv6 parameters, place the string \fB\&.v6\fR between the
520 interface name (if any) and the parameter name. For example, to set the global
521 IPv6 parameter request list, use \fB\&.v6.PARAM_REQUEST_LIST\fR. To set the
522 \fBCLIENT_ID\fR (\fBDUID\fR) on \fBhme0\fR, use \fBhme0.v6.CLIENT_ID\fR.
524 The parameters include:
526 .ne 2
528 \fB\fBVERIFIED_LEASE_ONLY\fR\fR
530 .sp .6
531 .RS 4n
532 Indicates that a \fBRELEASE\fR rather than a \fBDROP\fR should be performed on
533 managed interfaces when the agent terminates. Release causes the client to
534 discard the lease, and the server to make the address available again. Drop
535 causes the client to record the lease in \fB/etc/dhcp/\fIinterface\fR.dhc\fR or
536 \fB/etc/dhcp/\fIinterface\fR.dh6\fR for later use. In addition, when the link
537 status changes to \fBup\fR or when the system is resumed after a suspend, the
538 client will verify the lease with the server. If the server is unreachable for
539 verification, then the old lease will be discarded (even if it has time
540 remaining) and a new one obtained.
542 Enabling this option is often desirable on mobile systems, such as laptops, to
543 allow the system to recover quickly from moves.
547 .ne 2
549 \fB\fBOFFER_WAIT\fR\fR
551 .sp .6
552 .RS 4n
553 Indicates how long to wait between checking for valid \fBOFFER\fRs after
554 sending a \fBDISCOVER\fR. For DHCPv6, sets the time to wait between checking
555 for valid Advertisements after sending a Solicit.
559 .ne 2
561 \fB\fBCLIENT_ID\fR\fR
563 .sp .6
564 .RS 4n
565 Indicates the value that should be used to uniquely identify the client to the
566 server. This value can take one of three basic forms:
568 .in +2
570 \fIdecimal\fR,\fIdata\fR...
571 0xHHHHH...
572 "\fIstring\fR...."
574 .in -2
577 The first form is an RFC 3315 DUID. This is legal for both IPv4 DHCP and
578 DHCPv6. For IPv4, an RFC 4361 Client ID is constructed from this value. In this
579 first form, the format of \fIdata\fR... depends on the decimal value. The
580 following formats are defined for this first form:
582 .ne 2
584 \fB1,\fIhwtype\fR,\fItime\fR,\fIlla\fR\fR
586 .sp .6
587 .RS 4n
588 Type 1, DUID-LLT. The \fIhwtype\fR value is an integer in the range 0-65535,
589 and indicates the type of hardware. The \fItime\fR value is the number of
590 seconds since midnight, January 1st, 2000 UTC, and can be omitted to use the
591 current system time. The \fIlla\fR value is either a colon-separated MAC
592 address or the name of a physical interface. If the name of an interface is
593 used, the \fIhwtype\fR value can be omitted. For example: \fB1,,,hme0\fR
597 .ne 2
599 \fB2,\fIenterprise\fR,\fIhex\fR...\fR
601 .sp .6
602 .RS 4n
603 Type 2, DUID-EN. The \fIenterprise\fR value is an integer in the range
604 0-4294967295 and represents the SMI Enterprise number for an organization. The
605 \fIhex\fR string is an even-length sequence of hexadecimal digits.
609 .ne 2
611 \fB3,\fIhwtype\fR,\fIlla\fR\fR
613 .sp .6
614 .RS 4n
615 Type 3, DUID-LL. This is the same as DUID-LLT (type 1), except that a time
616 stamp is not used.
620 .ne 2
622 \fB*,\fIhex\fR\fR
624 .sp .6
625 .RS 4n
626 Any other type value (0 or 4-65535) can be used with an even-length hexadecimal
627 string.
630 The second and third forms of \fBCLIENT_ID\fR are legal for IPv4 only. These
631 both represent raw Client ID (without RFC 4361), in hex, or NVT ASCII string
632 format. Thus, "\fBSun\fR" and \fB0x53756E\fR are equivalent.
636 .ne 2
638 \fB\fBPARAM_REQUEST_LIST\fR\fR
640 .sp .6
641 .RS 4n
642 Specifies a list of comma-separated integer values of options for which the
643 client would like values, or symbolic \fBSite\fR or \fBOption\fR option names.
644 Symbolic option names for IPv4 are resolved through \fB/etc/dhcp/inittab\fR.
645 Option names for IPv6 are resolved by means of \fB/etc/dhcp/inittab6\fR.
649 .ne 2
651 \fB\fBPARAM_IGNORE_LIST\fR\fR
653 .sp .6
654 .RS 4n
655 Specifies a list of options (constructed in the same manner as
656 \fBPARAM_REQUEST_LIST\fR) that the DHCP client will ignore. Ignored options are
657 treated as though the server did not return the options specified. Ignored
658 options are not visible using \fBdhcpinfo\fR(1) or acted on by the client. This
659 parameter can be used, for example, to disable an unwanted client name or
660 default router.
664 .ne 2
666 \fB\fBREQUEST_HOSTNAME\fR\fR
668 .sp .6
669 .RS 4n
670 Indicates the client requests the DHCP server to map the client's leased IPv4
671 address to the host name associated with the network interface that performs
672 DHCP on the client. The host name must be specified in the
673 \fB/etc/hostname.\fIinterface\fR\fR file for the relevant interface on a line
674 of the form
676 .in +2
678 inet \fIhostname\fR
680 .in -2
683 where \fIhostname\fR is the host name requested.
685 This option works with DHCPv4 only.
691 .ne 2
693 \fB\fB/etc/dhcp/eventhook\fR\fR
695 .sp .6
696 .RS 4n
697 Location of a DHCP event program.
700 .SH ATTRIBUTES
703 See \fBattributes\fR(5) for descriptions of the following attributes:
708 box;
709 c | c
710 l | l .
711 ATTRIBUTE TYPE  ATTRIBUTE VALUE
713 Interface Stability     Committed
716 .SH SEE ALSO
719 \fBdhcpinfo\fR(1), \fBifconfig\fR(1M), \fBinit\fR(1M), \fBin.mpathd\fR(1M),
720 \fBin.ndpd\fR(1M), \fBsyslog\fR(3C), \fBattributes\fR(5), \fBdhcp\fR(5)
723 \fI\fR
726 Croft, B. and Gilmore, J.,\fIBootstrap Protocol (BOOTP)\fRRFC 951, Network
727 Working Group, September 1985.
730 Droms, R., \fIDynamic Host Configuration Protocol\fR, RFC 2131, Network Working
731 Group, March 1997.
734 Lemon, T. and B. Sommerfeld. \fIRFC 4361, Node-specific Client Identifiers for
735 Dynamic Host Configuration Protocol Version Four (DHCPv4)\fR. Nominum and Sun
736 Microsystems. February 2006.
739 Droms, R. \fIRFC 3315, Dynamic Host Configuration Protocol for IPv6
740 (DHCPv6)\fR. Cisco Systems. July 2003.
741 .SH NOTES
744 The \fBdhcpagent\fR daemon can be used on IPv4 logical interfaces, just as with
745 physical interfaces. When used on a logical interface, the daemon automatically
746 constructs a Client ID value based on the DUID and IAID values, according to
747 RFC 4361. The  \fB/etc/default/dhcpagent\fR \fBCLIENT_ID\fR value, if any,
748 overrides this automatic identifier.
751 As with physical IPv4 interfaces, the \fB/etc/hostname.hme0:1\fR and
752 \fB/etc/dhcp.hme0:1\fR files must also be created in order for \fBhme0:1\fR to
753 be automatically plumbed and configured at boot. In addition, unlike physical
754 IPv4 interfaces, \fBdhcpagent\fR does not add or remove default routes
755 associated with logical interfaces.
758 DHCP can be performed on IPMP IP interfaces to acquire and maintain IPMP data
759 addresses. Because an IPMP IP interface has no hardware address, the daemon
760 automatically constructs a Client ID using the same approach described above
761 for IPv4 logical interfaces. In addition, the lack of a hardware address means
762 the daemon must set the "broadcast" flag in all \fBDISCOVER\fR and
763 \fBREQUEST\fR messages on IPMP IP interfaces. Some DHCP servers may refuse such
764 requests.
767 DHCP can be performed on IP interfaces that are part of an IPMP group (to
768 acquire and maintain test addresses). The daemon will automatically set the
769 \fBNOFAILOVER\fR and \fBDEPRECATED\fR flags on each test address. Additionally,
770 the daemon will not add or remove default routes in this case. Note that the
771 actual DHCP packet exchange may be performed over any active IP interface in
772 the IPMP group. It is strongly recommended that test addresses have infinite
773 leases. Otherwise, an extended network outage detectable only by probes may
774 cause test address leases to expire, causing \fBin.mpathd\fR(1M) to revert to
775 link-based failure detection and trigger an erroneous repair.
778 With DHCPv6, the link-local interface must be configured using
779 \fB/etc/hostname6.hme0\fR in order for DHCPv6 to run on \fBhme0\fR at boot
780 time. The logical interfaces for each address are plumbed by \fBdhcpagent\fR
781 automatically.