1 .\" $KAME: rtsold.8,v 1.20 2003/04/11 12:46:12 jinmei Exp $
3 .\" Copyright (C) 1995, 1996, 1997, and 1998 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
36 .Nd router solicitation daemon
41 .Op Fl M Ar script-name
42 .Op Fl O Ar script-name
43 .Op Fl A Ar script-name
45 .Op Fl R Ar script-name
49 .Op Fl M Ar script-name
50 .Op Fl O Ar script-name
51 .Op Fl A Ar script-name
53 .Op Fl R Ar script-name
57 .Op Fl M Ar script-name
58 .Op Fl O Ar script-name
59 .Op Fl A Ar script-name
60 .Op Fl R Ar script-name
64 .Op Fl M Ar script-name
65 .Op Fl O Ar script-name
66 .Op Fl A Ar script-name
67 .Op Fl R Ar script-name
72 is the daemon program to send ICMPv6 Router Solicitation messages
73 on the specified interfaces.
74 If a node (re)attaches to a link,
76 sends some Router Solicitations on the link destined to the link-local scope
77 all-routers multicast address to discover new routers
78 and to get non link-local addresses.
81 should be used on IPv6 hosts
85 If you invoke the program as
87 it will transmit probes from the specified
89 without becoming a daemon.
101 sends at most 3 Router Solicitations on an interface
102 after one of the following events:
106 Just after invocation of
110 The interface is up after a temporary interface failure.
112 detects such failures by periodically probing to see if the status
113 of the interface is active or not.
114 Note that some network cards and drivers do not allow the extraction
118 cannot detect the change of the interface status.
120 Every 60 seconds if the
122 option is specified and the
124 daemon cannot get the interface status.
125 This feature does not conform to the IPv6 neighbor discovery
126 specification, but is provided for mobile stations.
127 The default interval for router advertisements, which is on the order of 10
128 minutes, is slightly long for mobile stations.
129 This feature is provided
130 for such stations so that they can find new routers as soon as possible
131 when they attach to another link.
136 has sent a Router Solicitation, and has received a valid Router Advertisement,
137 it refrains from sending additional solicitations on that interface, until
138 the next time one of the above events occurs.
140 When sending a Router Solicitation on an interface,
142 includes a Source Link-layer address option if the interface
143 has a link-layer address.
146 manages a per-interface parameter to detect if a separate protocol is
147 needed for configuration parameters other than host's addresses.
148 At the invocation time, the flag is FALSE, and becomes TRUE when
149 the daemon receives a router advertisement with the OtherConfig flag
151 A script file can be specified to deal with the case
155 start resending router solicitation messages by one of the conditions
157 the daemon resets the parameter because the event may indicate a
158 change on the attached link.
160 Upon receipt of signal
163 will dump the current internal state into
164 .Pa /var/run/rtsold.dump .
167 The options are as follows:
168 .Bl -tag -width indent
170 Autoprobe outgoing interfaces.
172 will try to find any non-loopback, IPv6-capable interfaces
173 and send router solicitation messages on all of them.
177 Enable more debugging including the printing of internal timer information.
181 from becoming a daemon (foreground mode).
182 Warning messages are generated to standard error
186 Explicitly configure the kernel to accept Router Advertisements and
187 disable IPv6 forwarding.
188 These settings are required for proper
191 Without this option, the current settings will be obeyed;
192 if they are incompatible with proper operation,
193 warning messages will be generated,
194 but Router Solicitations will still be sent.
195 The settings may be changed manually with
200 Transmit Router Solicitation packets immediately, without waiting the
201 normal random (between 0 and 1 second) delay.
202 This option should not be used on networks where it might result in
203 congestion due to many hosts simultaneously (re)connecting and
204 sending such packets.
206 Enable mobility support.
207 If this option is specified,
209 sends probing packets to default routers that have advertised Router
211 when the node (re)attaches to an interface.
212 Moreover, if the option is specified,
214 periodically sends Router Solicitation on an interface that does not support
218 Perform only one probe.
219 Transmit Router Solicitation packets until at least one valid Router
220 Advertisement packet has arrived on each
223 .It Fl M Ar script-name
224 Specifies a supplement script file to handle the Managed Configuration
225 flag of the router advertisement.
226 When the flag changes from FALSE to TRUE,
230 with a first argument of the receiving interface name
231 and a second argument of the sending router address,
232 expecting the script will then start a protocol for the managed
235 must be the absolute path from root to the script file, be a regular
236 file, and be created by the same owner who runs
238 .It Fl O Ar script-name
239 Specifies a supplement script file to handle the Other Configuration
240 flag of the router advertisement.
241 When the flag changes from FALSE to TRUE,
245 with a first argument of the receiving interface name
246 and a second argument of the sending router address,
247 expecting the script will then start a protocol for the other
249 The script will not be run if the Managed Configuration flag in the
250 router advertisement is also TRUE.
252 must be the absolute path from root to the script file, be a regular
253 file, and be created by the same owner who runs
255 .It Fl A Ar script-name
256 Specifies a supplement script file to always be called for the router
261 with a first argument of the receiving interface name
262 and a second argument of the sending router address.
264 must be the absolute path from root to the script file, be a regular
265 file, and be created by the same owner who runs
268 Writes the process ID of
272 instead of the default PID file
273 .Pa /var/run/rtsold.pid .
274 .It Fl R Ar script-name
275 Specifies a script to run when router advertisement options
276 .Dv RDNSS Pq Recursive DNS Server
278 .Dv DNSSL Pq DNS Search List
280 The information of DNS servers and DNS search domains will be sent to
281 standard input of this script.
284 script is used by default.
286 Specifies whether to add the source address of Router Advertisement
287 messages to the interface name in the parameters of the RDNSS and DNSSL
292 is specified, the interface name in the script parameters will be
293 .Ql ifname:slaac:[RA-source-address] .
299 .Bl -tag -width /var/run/rtsold.dump -compact
300 .It Pa /var/run/rtsold.pid
301 The PID of the currently running
303 .It Pa /var/run/rtsold.dump
304 Internal state dump file.
318 command is based on the
320 command, which first appeared in WIDE/KAME IPv6 protocol stack kit.
322 is now integrated into
326 When a network card is removed and reinserted, the corresponding interface index
330 assumes such changes will not occur, and always uses the index that
331 it got at invocation.
334 may not work if you reinsert a network card.
337 should be killed and restarted.
339 The IPv6 autoconfiguration specification assumes a single-interface host.
340 You may see kernel error messages if you try to autoconfigure a host with
342 Also, it seems contradictory for