1 .\" $KAME: dhcp6c.8,v 1.36 2005/03/17 05:27:01 suz Exp $
3 .\" Copyright (C) 1998 and 1999 WIDE Project.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the project nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 .Nd DHCPv6 client daemon
39 .Op Fl c Ar configfile
48 works as a DHCPv6 client and gets information from DHCPv6 servers
49 to configure the specified
53 can be specified separated by spaces or tabs,
56 will work on all the interfaces simultaneously.
58 The command line options are:
59 .Bl -tag -width indent
61 .It Fl c Ar configfile
64 as the configuration file.
66 Print debugging messages.
68 Even more debugging information is printed.
70 Foreground mode (useful when debugging).
73 usually prints warning, debugging, or error messages to
75 it prints the messages to standard error if this option is
78 Info-req mode. In this mode, stateless DHCPv6 is executed with the folllowing configuration, and the obtained info is written to stdout. After this output,
80 is terminated. (suits for a use in shell-script etc).
82 interface (interface given in the argument) {
84 script (a script which displays the received information to stdout);
88 Since the configuration is internally generated, you cannot provide a configuration in this mode. If you want to have different actions for the stateless DHCPv6 information, you should write an appropriate configuration and invoke
96 to override default(LLT) DUID type generation
100 to dump the process ID of
104 The program will daemonize itself on invocation unless the
116 will remove all stateful resources from the system.
117 In the former case the daemon will then reinvoke itself,
118 while it will stop running in the latter case.
121 will send DHCPv6 Release messages to release resources assigned from servers.
124 .Bl -tag -width /usr/local/etc/dhcp6c.conf -compact
125 .It Pa /var/run/dhcp6c.pid
126 is the default file that contains pid of the currently running
128 .It Pa /usr/local/etc/dhcp6c.conf
129 is the default configuration file.
130 .It Pa /var/db/dhcp6c_duid
131 is the file to store the client's DUID.
133 .Sh Configuration Script
136 receives a reply message,
137 it will invoke a supplementary configuration script specified in the
140 The daemon will provide the script with configuration parameters as
141 environment variables,
144 .Bl -tag -width Ds -compact
146 The reason why the script is invoked.
150 and thus meaningless.
151 .It Ic new_domain_name_servers
152 A list of available DNS servers,
153 each of which is an IPv6 numeric address and is separated by a white
155 .It Ic new_domain_name
157 which provides DNS name search path.
158 .It Ic new_ntp_servers
159 A list of available NTP servers,
160 each of which is an IPv6 numeric address and is separated by a white
162 .It Ic new_sip_servers
163 A list of available SIP server addresses,
164 each of which is an IPv6 numeric address and is separated by a white
167 A list of SIP server domain names.
168 .It Ic new_nis_servers
169 A list of available NIS server addresses,
170 each of which is an IPv6 numeric address and is separated by a white
173 A list of NIS domain names.
174 .It Ic new_nisp_servers
175 A list of available NIS+ server addresses,
176 each of which is an IPv6 numeric address and is separated by a white
179 A list of NIS+ domain names.
180 .It Ic new_bcmcs_servers
181 A list of available BCMCS server addresses,
182 each of which is an IPv6 numeric address and is separated by a white
184 .It Ic new_bcmcs_name
185 A list of BCMCS server domain names.
188 Note that the daemon does not always provide all the parameters.
189 It sets an environment variable only when the corresponding
190 configuration parameter is provided by the DHCPv6 server.
197 .%A Ralph Droms, Editor
199 .%T Dynamic Host Configuration Protocol for IPv6 (DHCPv6)
206 command first appeared in WIDE/KAME IPv6 protocol stack kit.
210 is incomplete and violates DHCPv6 protocol spec, in several aspects.
211 In particular, temporary address assignment is intentionally omitted.
213 Information Refresh Time Option is not recognied in Info-req mode, since
215 terminates after it receives a REPLY message.