Print this page
7388 Support DHCP Client FQDN. Allow IAID/DUID for all v4.

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/dhcpagent.1m
          +++ new/usr/src/man/man1m/dhcpagent.1m
   1    1  '\" te
   2    2  .\"  Copyright (c) 1992-1996 Competitive Automation, Inc. Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
        3 +.\"  Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
   3    4  .\" 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    5  .\" 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    6  .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6      -.TH DHCPAGENT 1M "Dec 11, 2015"
        7 +.TH DHCPAGENT 1M "Nov 7, 2016"
   7    8  .SH NAME
   8    9  dhcpagent \- Dynamic Host Configuration Protocol (DHCP) client daemon
   9   10  .SH SYNOPSIS
  10   11  .LP
  11   12  .nf
  12   13  \fBdhcpagent\fR [\fB-a\fR] [ \fB-d\fR \fIn\fR] [\fB-f\fR] [\fB-v\fR]
  13   14  .fi
  14   15  
  15   16  .SH DESCRIPTION
  16   17  .LP
  17   18  \fBdhcpagent\fR implements the client half of the Dynamic Host Configuration
  18      -Protocol \fB(DHCP)\fR for machines running Solaris software.
       19 +Protocol \fB(DHCP)\fR for machines running illumos software.
  19   20  .sp
  20   21  .LP
  21   22  The \fBdhcpagent\fR daemon obtains configuration parameters for the client
  22   23  (local) machine's network interfaces from a \fBDHCP\fR server. These parameters
  23   24  may include a lease on an \fBIP\fR address, which gives the client machine use
  24   25  of the address for the period of the lease, which may be infinite. If the
  25   26  client wishes to use the \fBIP\fR address for a period longer than the lease,
  26   27  it must negotiate an extension using \fBDHCP\fR. For this reason,
  27   28  \fBdhcpagent\fR must run as a daemon, terminating only when the client machine
  28   29  powers down.
  29   30  .sp
  30   31  .LP
  31      -For IPv4, the \fBdhcpagent\fR daemon is controlled through \fBifconfig\fR(1M)
  32      -in much the same way that the \fBinit\fR(1M) daemon is controlled by
  33      -\fBtelinit\fR(1M). \fBdhcpagent\fR can be invoked as a user process, albeit one
  34      -requiring root privileges, but this is not necessary, as \fBifconfig\fR(1M)
  35      -will start it automatically.
       32 +For IPv4, the \fBdhcpagent\fR daemon is controlled through \fBipadm\fR(1M),
       33 +\fBnwamcfg\fR(1M), or \fBifconfig\fR(1M) in much the same way that the
       34 +\fBinit\fR(1M) daemon is controlled by \fBtelinit\fR(1M). \fBdhcpagent\fR can
       35 +be invoked as a user process, albeit one requiring root privileges, but this is
       36 +not necessary, as \fBipadm\fR(1M), \fBnwamcfg\fR(1M), or \fBifconfig\fR(1M)
       37 +will start \fBdhcpagent\fR automatically.
  36   38  .sp
  37   39  .LP
  38   40  For IPv6, the \fBdhcpagent\fR daemon is invoked automatically by
  39   41  \fBin.ndpd\fR(1M). It can also be controlled through \fBifconfig\fR(1M), if
  40   42  necessary.
  41   43  .sp
  42   44  .LP
  43   45  When invoked, \fBdhcpagent\fR enters a passive state while it awaits
  44      -instructions from \fBifconfig\fR(1M) or \fBin.ndpd\fR(1M). When it receives a
  45      -command to configure an interface, it brings up the interface (if necessary)
  46      -and starts DHCP. Once DHCP is complete, \fBdhcpagent\fR can be queried for the
  47      -values of the various network parameters. In addition, if DHCP was used to
  48      -obtain a lease on an address for an interface, it configures the address for
  49      -use. When a lease is obtained, it is automatically renewed as necessary. If the
       46 +instructions from \fBipadm\fR(1M), \fBnwamcfg\fR(1M), \fBifconfig\fR(1M), or
       47 +\fBin.ndpd\fR(1M). When \fBdhcpagent\fR receives a command to configure an
       48 +interface, \fBdhcpagent\fR brings up the interface (if necessary) and starts
       49 +DHCP. Once DHCP is complete, \fBdhcpagent\fR can be queried for the values of
       50 +the various network parameters. In addition, if DHCP was used to obtain a lease
       51 +on an address for an interface, \fBdhcpagent\fR configures the address for use.
       52 +When a lease is obtained, it is automatically renewed as necessary. If the
  50   53  lease cannot be renewed, \fBdhcpagent\fR will unconfigure the address, but the
  51      -interface will be left up and \fBdhcpagent\fR will attempt to acquire a new
  52      -address lease. \fBdhcpagent\fR monitors system suspend/resume events and will
  53      -validate any non-permanent leases with the DHCP server upon resume. Similarly,
       54 +interface will be left up, and \fBdhcpagent\fR will attempt to acquire a new
       55 +address lease.
       56 +.sp
       57 +.LP
       58 +\fBdhcpagent\fR monitors system suspend/resume events and will validate any
       59 +non-permanent leases with the DHCP server upon resume. Similarly,
  54   60  \fBdhcpagent\fR monitors link up/down events and will validate any
  55   61  non-permanent leases with the DHCP server when the downed link is brought back
  56   62  up. The lease validation mechanism will restart DHCP if the server indicates
  57   63  that the existing lease is no longer valid. If the server cannot be contacted,
  58   64  then the existing lease will continue. This behavior can be modified with the
  59   65  \fBVERIFIED_LEASE_ONLY\fR parameter in the \fB/etc/default/dhcpagent\fR file.
  60   66  See the description of this parameter below.
  61   67  .sp
  62   68  .LP
  63   69  For IPv4, if the configured interface is found to be unplumbed, or to have a
↓ open down ↓ 31 lines elided ↑ open up ↑
  95  101  information arriving on different interfaces may need to be merged, or may be
  96  102  inconsistent. Furthermore, the configuration of the interfaces is asynchronous,
  97  103  so requests may arrive while some or all of the interfaces are still
  98  104  unconfigured. To handle these cases, one interface may be designated as
  99  105  primary, which makes it the authoritative source for the values of \fBDHCP\fR
 100  106  parameters in the case where no specific interface is requested. See
 101  107  \fBdhcpinfo\fR(1) and \fBifconfig\fR(1M) for details.
 102  108  .sp
 103  109  .LP
 104  110  For IPv4, the \fBdhcpagent\fR daemon can be configured to request a particular
 105      -host name. See the \fBREQUEST_HOSTNAME\fR description in the \fBFILES\fR
 106      -section. When first configuring a client to request a host name, you must
 107      -perform the following steps as root to ensure that the full DHCP negotiation
 108      -takes place:
      111 +Fully Qualified Domain Name (FQDN) or host name. See the \fBREQUEST_FQDN\fR or
      112 +\fBREQUEST_HOSTNAME\fR description in the \fBFILES\fR section. When first
      113 +configuring a client to request an FQDN or host name, you must perform the
      114 +following steps as root to ensure that the full DHCP negotiation takes place:
 109  115  .sp
 110  116  .in +2
 111  117  .nf
 112  118  # pkill dhcpagent
 113  119  # rm /etc/dhcp/\fIinterface\fR.dhc
 114  120  # reboot
 115  121  .fi
 116  122  .in -2
 117  123  .sp
 118  124  
↓ open down ↓ 368 lines elided ↑ open up ↑
 487  493  .ne 2
 488  494  .na
 489  495  \fB\fB/etc/dhcp/duid\fR\fR
 490  496  .ad
 491  497  .br
 492  498  .na
 493  499  \fB\fB/etc/dhcp/iaid\fR\fR
 494  500  .ad
 495  501  .sp .6
 496  502  .RS 4n
 497      -Contains persistent storage for DUID (DHCP Unique Identifier) and IAID
 498      -(Identity Association Identifier) values. The format of these files is
 499      -undocumented, and applications should not read from or write to them.
      503 +Contains persistent storage for system-generated DUID (DHCP Unique Identifier)
      504 +and interface-specific IAID (Identity Association Identifier) values which are
      505 +used if no \fBCLIENT_ID\fR is defined (see below). The format of these files is
      506 +undocumented, and applications should not read from or write to them.  Instead,
      507 +\fBdhcpinfo\fR(1) can be used to query the \fBdhcpagent\fR for \fIClientID\fR.
      508 +For DHCPv6 interfaces, the result will contain the DUID. For DHCPv4 interfaces
      509 +with \fBV4_DEFAULT_IAID_DUID\fR enabled (see below), the result will contain
      510 +the IAID and DUID.
 500  511  .RE
 501  512  
 502  513  .sp
 503  514  .ne 2
 504  515  .na
 505  516  \fB\fB/etc/default/dhcpagent\fR\fR
 506  517  .ad
 507  518  .sp .6
 508  519  .RS 4n
 509  520  Contains default values for tunable parameters. All values may be qualified
↓ open down ↓ 19 lines elided ↑ open up ↑
 529  540  discard the lease, and the server to make the address available again. Drop
 530  541  causes the client to record the lease in \fB/etc/dhcp/\fIinterface\fR.dhc\fR or
 531  542  \fB/etc/dhcp/\fIinterface\fR.dh6\fR for later use. In addition, when the link
 532  543  status changes to \fBup\fR or when the system is resumed after a suspend, the
 533  544  client will verify the lease with the server. If the server is unreachable for
 534  545  verification, then the old lease will be discarded (even if it has time
 535  546  remaining) and a new one obtained.
 536  547  .sp
 537  548  Enabling this option is often desirable on mobile systems, such as laptops, to
 538  549  allow the system to recover quickly from moves.
      550 +.sp
      551 +Default value of this option is \fIno\fR.
 539  552  .RE
 540  553  
 541  554  .sp
 542  555  .ne 2
 543  556  .na
 544  557  \fB\fBOFFER_WAIT\fR\fR
 545  558  .ad
 546  559  .sp .6
 547  560  .RS 4n
 548      -Indicates how long to wait between checking for valid \fBOFFER\fRs after
 549      -sending a \fBDISCOVER\fR. For DHCPv6, sets the time to wait between checking
 550      -for valid Advertisements after sending a Solicit.
      561 +Indicates how long to wait in seconds between checking for valid
      562 +\fBOFFER\fRs after sending a \fBDISCOVER\fR. For DHCPv6, sets the time to
      563 +wait between checking for valid Advertisements after sending a Solicit.
      564 +.sp
      565 +Default value of this option is \fI3\fR.
 551  566  .RE
 552  567  
 553  568  .sp
 554  569  .ne 2
 555  570  .na
 556  571  \fB\fBCLIENT_ID\fR\fR
 557  572  .ad
 558  573  .sp .6
 559  574  .RS 4n
 560  575  Indicates the value that should be used to uniquely identify the client to the
↓ open down ↓ 62 lines elided ↑ open up ↑
 623  638  .RE
 624  639  
 625  640  The second and third forms of \fBCLIENT_ID\fR are legal for IPv4 only. These
 626  641  both represent raw Client ID (without RFC 4361), in hex, or NVT ASCII string
 627  642  format. Thus, "\fBSun\fR" and \fB0x53756E\fR are equivalent.
 628  643  .RE
 629  644  
 630  645  .sp
 631  646  .ne 2
 632  647  .na
      648 +\fB\fBV4_DEFAULT_IAID_DUID\fR\fR
      649 +.ad
      650 +.sp .6
      651 +.RS 4n
      652 +Indicates whether to use, when CLIENT_ID is not defined, a system-managed,
      653 +RFC 3315-style (i.e., DHCPv6-style) binding identifier as documented in
      654 +RFC 4361, "Node-specific Client Identifiers for DHCPv4," for IPv4
      655 +interfaces which for purposes of backward compatibility do not normally get
      656 +default binding identifiers.
      657 +.sp
      658 +An IPv4 interface that is not in an IP network multipathing (IPMP) group,
      659 +that is not IP over InfiniBand (IPoIB), and that is not a logical interface
      660 +does not normally get a default binding identifier.
      661 +.sp
      662 +Default value of this option is \fIno\fR.
      663 +.RE
      664 +
      665 +.sp
      666 +.ne 2
      667 +.na
 633  668  \fB\fBPARAM_REQUEST_LIST\fR\fR
 634  669  .ad
 635  670  .sp .6
 636  671  .RS 4n
 637  672  Specifies a list of comma-separated integer values of options for which the
 638  673  client would like values, or symbolic \fBSite\fR or \fBOption\fR option names.
 639  674  Symbolic option names for IPv4 are resolved through \fB/etc/dhcp/inittab\fR.
 640  675  Option names for IPv6 are resolved by means of \fB/etc/dhcp/inittab6\fR.
 641  676  .RE
 642  677  
↓ open down ↓ 8 lines elided ↑ open up ↑
 651  686  \fBPARAM_REQUEST_LIST\fR) that the DHCP client will ignore. Ignored options are
 652  687  treated as though the server did not return the options specified. Ignored
 653  688  options are not visible using \fBdhcpinfo\fR(1) or acted on by the client. This
 654  689  parameter can be used, for example, to disable an unwanted client name or
 655  690  default router.
 656  691  .RE
 657  692  
 658  693  .sp
 659  694  .ne 2
 660  695  .na
      696 +\fB\fBREQUEST_FQDN\fR\fR
      697 +.ad
      698 +.sp .6
      699 +.RS 4n
      700 +Indicates the client requests the DHCP server to map the client's leased
      701 +IPv4 address to the Fully Qualified Domain Name (FQDN) associated with the
      702 +network interface that performs DHCP on the client and to collaborate with
      703 +a compatible DNS server to manage A and PTR resource records for the FQDN
      704 +for the life of the lease.
      705 +.sp .6
      706 +The hostname in the FQDN is determined from the following possible
      707 +configurations:
      708 +.sp
      709 +.ne 2
      710 +.na
      711 +1.  \fBipadm\fR(1M): include the \fB-1,--primary\fR flag when creating an
      712 +address that uses DHCP so that \fBnodename\fR(4) is used as the
      713 +\fIhostname\fR.
      714 +.ad
      715 +.sp
      716 +.ne 2
      717 +.na
      718 +2.  \fBipadm\fR(1M): include the \fB-h,--reqhost\fR \fIhostname\fR switch
      719 +when executing the \fBcreate-addr -T dhcp\fR subcommand, or use the
      720 +\fBset-addrprop -p reqhost=\fR\fIhostname\fR subcommand for any existing
      721 +DHCP address.
      722 +.ad
      723 +.sp
      724 +.ne 2
      725 +.na
      726 +3.  \fBnwamcfg\fR(1M): set a property,
      727 +\fBip-primary=\fR\fIon\fR, for an ncu ip that uses DHCP so that
      728 +\fBnodename\fR(4) is used as the \fIhostname\fR.
      729 +.ad
      730 +.sp
      731 +.ne 2
      732 +.na
      733 +4.  \fBnwamcfg\fR(1M): set a property,
      734 +\fBip-reqhost=\fR\fIhostname\fR, for an ncu ip that uses DHCP.
      735 +.ad
      736 +.sp
      737 +The \fIhostname\fR value is either a Partially Qualified Domain Name (PQDN)
      738 +or an FQDN (i.e., a "rooted" domain name ending with a '.' or one inferred
      739 +to be an FQDN if it contains at least three DNS labels such as
      740 +srv.example.com).  If a PQDN is specified, then an FQDN is constructed if
      741 +either a \fBdefaultdomain\fR(4) or a \fBresolv.conf\fR(4) \fBdomain\fR is
      742 +defined.
      743 +.sp
      744 +If an FQDN is sent, \fBREQUEST_HOSTNAME\fR processing will not be done,
      745 +per RFC 4702 (3.1):  "clients that send the Client FQDN option in their
      746 +messages MUST NOT also send the Host Name."
      747 +.sp
      748 +Default value of this option is \fIyes\fR.
      749 +.RE
      750 +
      751 +.sp
      752 +.ne 2
      753 +.na
 661  754  \fB\fBREQUEST_HOSTNAME\fR\fR
 662  755  .ad
 663  756  .sp .6
 664  757  .RS 4n
 665  758  Indicates the client requests the DHCP server to map the client's leased IPv4
 666  759  address to the host name associated with the network interface that performs
 667      -DHCP on the client. The host name must be specified in the
      760 +DHCP on the client. The host name must be specified as documented for a
      761 +PQDN in \fBREQUEST_FQDN\fR above or specified in the
 668  762  \fB/etc/hostname.\fIinterface\fR\fR file for the relevant interface on a line
 669  763  of the form
 670  764  .sp
 671  765  .in +2
 672  766  .nf
 673  767  inet \fIhostname\fR
 674  768  .fi
 675  769  .in -2
 676  770  .sp
 677  771  
 678  772  where \fIhostname\fR is the host name requested.
 679  773  .sp
 680  774  This option works with DHCPv4 only.
      775 +.sp
      776 +Default value of this option is \fIyes\fR.
 681  777  .RE
 682  778  
 683  779  .RE
 684  780  
 685  781  .sp
 686  782  .ne 2
 687  783  .na
 688  784  \fB\fB/etc/dhcp/eventhook\fR\fR
 689  785  .ad
 690  786  .sp .6
↓ open down ↓ 12 lines elided ↑ open up ↑
 703  799  c | c
 704  800  l | l .
 705  801  ATTRIBUTE TYPE  ATTRIBUTE VALUE
 706  802  _
 707  803  Interface Stability     Committed
 708  804  .TE
 709  805  
 710  806  .SH SEE ALSO
 711  807  .LP
 712  808  \fBdhcpinfo\fR(1), \fBifconfig\fR(1M), \fBinit\fR(1M), \fBin.mpathd\fR(1M),
 713      -\fBin.ndpd\fR(1M), \fBsyslog\fR(3C), \fBattributes\fR(5), \fBdhcp\fR(5)
      809 +\fBin.ndpd\fR(1M), \fBipadm\fR(1M), \fBnwamcfg\fR(1M), \fBsyslog\fR(3C),
      810 +\fBdefaultdomain\fR(4), \fBnodename\fR(4), \fBresolv.conf\fR(4),
      811 +\fBattributes\fR(5), \fBdhcp\fR(5)
 714  812  .sp
 715  813  .LP
 716  814  \fI\fR
 717  815  .sp
 718  816  .LP
 719  817  Croft, B. and Gilmore, J.,\fIBootstrap Protocol (BOOTP)\fRRFC 951, Network
 720  818  Working Group, September 1985.
 721  819  .sp
 722  820  .LP
 723  821  Droms, R., \fIDynamic Host Configuration Protocol\fR, RFC 2131, Network Working
↓ open down ↓ 50 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX