1DHCP6C(8)                 BSD System Manager's Manual                DHCP6C(8)
2

NAME

4     dhcp6c — DHCPv6 client daemon
5

SYNOPSIS

7     dhcp6c [-c configfile] [-Ddfi] [-p pid-file] [-P profile] interface
8            [interfaces...]
9

DESCRIPTION

11     dhcp6c works as a DHCPv6 client and gets information from DHCPv6 servers
12     to configure the specified interface.  Multiple interfaces can be speci‐
13     fied separated by spaces or tabs, in which case dhcp6c will work on all
14     the interfaces simultaneously.
15
16     The command line options are:
17
18     -c configfile
19             Use configfile as the configuration file.
20
21     -d      Print debugging messages.
22
23     -D      Even more debugging information is printed.
24
25     -f      Foreground mode (useful when debugging).  Although dhcp6c usually
26             prints warning, debugging, or error messages to syslog(8), it
27             prints the messages to standard error if this option is speci‐
28             fied.
29
30     -i      Info-req mode.  In this mode, stateless DHCPv6 is executed with
31             the following configuration, and the obtained info is written to
32             stdout.  After this output, dhcp6c is terminated.  (suits for a
33             use in shell-script etc).
34
35              interface (interface given in the argument) {
36                     information-only;
37                     script (a script which displays the received information to stdout);
38              };
39
40             Since the configuration is internally generated, you cannot pro‐
41             vide a configuration in this mode.  If you want to have different
42             actions for the stateless DHCPv6 information, you should write an
43             appropriate configuration and invoke dhcp6c without this option.
44
45     -p pid-file
46             Use pid-file to dump the process ID of dhcp6c.
47
48     -P profile
49             Use the given profile defined in the dhcp6c configuration file
50             for interfaces which do not have a specific configuration.
51
52     The program will daemonize itself on invocation unless the -f or -i op‐
53     tion is specified.
54
55     Upon receipt of the SIGHUP or SIGTERM signals, dhcp6c will remove all
56     stateful resources from the system.  In the former case the daemon will
57     then reinvoke itself, while it will stop running in the latter case.  In
58     either case, dhcp6c will send DHCPv6 Release messages to release re‐
59     sources assigned from servers.
60

FILES

62     /var/run/dhcp6c.pid           is the default file that contains pid of
63                                   the currently running dhcp6c.
64     /etc/wide-dhcpv6/dhcp6c.conf  is the default configuration file.
65     /var/lib/dhcpv6/dhcp6c_duid   is the file to store the client's DUID.
66

Configuration Script

68     When dhcp6c receives a reply message, it will invoke a supplementary con‐
69     figuration script specified in the dhcp6c.conf(5) file.  The daemon will
70     provide the script with configuration parameters as environment vari‐
71     ables, which include:
72
73     REASON  The reason why the script is invoked.  As of this writing, the
74             value is always "NBI" and thus meaningless.
75     new_domain_name_servers
76             A list of available DNS servers, each of which is an IPv6 numeric
77             address and is separated by a white space character.
78     new_domain_name
79             A list of DNS names, which provides DNS name search path.
80     new_ntp_servers
81             A list of available NTP servers, each of which is an IPv6 numeric
82             address and is separated by a white space character.
83     new_sip_servers
84             A list of available SIP server addresses, each of which is an
85             IPv6 numeric address and is separated by a white space character.
86     new_sip_name
87             A list of SIP server domain names.
88     new_nis_servers
89             A list of available NIS server addresses, each of which is an
90             IPv6 numeric address and is separated by a white space character.
91     new_nis_name
92             A list of NIS domain names.
93     new_nisp_servers
94             A list of available NIS+ server addresses, each of which is an
95             IPv6 numeric address and is separated by a white space character.
96     new_nisp_name
97             A list of NIS+ domain names.
98     new_bcmcs_servers
99             A list of available BCMCS server addresses, each of which is an
100             IPv6 numeric address and is separated by a white space character.
101     new_bcmcs_name
102             A list of BCMCS server domain names.
103
104     Note that the daemon does not always provide all the parameters.  It sets
105     an environment variable only when the corresponding configuration parame‐
106     ter is provided by the DHCPv6 server.
107

SEE ALSO

109     daemon(3), dhcp6c.conf(5), dhcp6s(8)
110
111     Ralph Droms, Editor, Dynamic Host Configuration Protocol for IPv6
112     (DHCPv6), RFC 3315, 2003.
113

HISTORY

115     The dhcp6c command first appeared in WIDE/KAME IPv6 protocol stack kit.
116

BUGS

118     dhcp6c is incomplete and violates DHCPv6 protocol spec, in several as‐
119     pects.  In particular, temporary address assignment is intentionally
120     omitted.
121
122     Information Refresh Time Option is not recognized in Info-req mode, since
123     dhcp6c terminates after it receives a REPLY message.
124
125KAME                             Sep 12, 1999                             KAME
Impressum