xref: /freebsd/usr.sbin/rtsold/rtsold.8 (revision db82af41db538fba5938d8585b2e2e2c206affb6)
19a364ca3SHajimu UMEMOTO.\"	$KAME: rtsold.8,v 1.20 2003/04/11 12:46:12 jinmei Exp $
2804c83d4SKris Kennaway.\"
37d56d374SYoshinobu Inoue.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
47d56d374SYoshinobu Inoue.\" All rights reserved.
57d56d374SYoshinobu Inoue.\"
67d56d374SYoshinobu Inoue.\" Redistribution and use in source and binary forms, with or without
77d56d374SYoshinobu Inoue.\" modification, are permitted provided that the following conditions
87d56d374SYoshinobu Inoue.\" are met:
97d56d374SYoshinobu Inoue.\" 1. Redistributions of source code must retain the above copyright
107d56d374SYoshinobu Inoue.\"    notice, this list of conditions and the following disclaimer.
117d56d374SYoshinobu Inoue.\" 2. Redistributions in binary form must reproduce the above copyright
127d56d374SYoshinobu Inoue.\"    notice, this list of conditions and the following disclaimer in the
137d56d374SYoshinobu Inoue.\"    documentation and/or other materials provided with the distribution.
147d56d374SYoshinobu Inoue.\" 3. Neither the name of the project nor the names of its contributors
157d56d374SYoshinobu Inoue.\"    may be used to endorse or promote products derived from this software
167d56d374SYoshinobu Inoue.\"    without specific prior written permission.
177d56d374SYoshinobu Inoue.\"
187d56d374SYoshinobu Inoue.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
197d56d374SYoshinobu Inoue.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
207d56d374SYoshinobu Inoue.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
217d56d374SYoshinobu Inoue.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
227d56d374SYoshinobu Inoue.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
237d56d374SYoshinobu Inoue.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
247d56d374SYoshinobu Inoue.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
257d56d374SYoshinobu Inoue.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
267d56d374SYoshinobu Inoue.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
277d56d374SYoshinobu Inoue.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
287d56d374SYoshinobu Inoue.\" SUCH DAMAGE.
297d56d374SYoshinobu Inoue.\"
307d56d374SYoshinobu Inoue.\" $FreeBSD$
317d56d374SYoshinobu Inoue.\"
32*db82af41SHiroki Sato.Dd May 28, 2011
337d56d374SYoshinobu Inoue.Dt RTSOLD 8
3433841545SHajimu UMEMOTO.Os
357d56d374SYoshinobu Inoue.\"
367d56d374SYoshinobu Inoue.Sh NAME
376658f7a1SRuslan Ermilov.Nm rtsold , rtsol
387d56d374SYoshinobu Inoue.Nd router solicitation daemon
397d56d374SYoshinobu Inoue.\"
407d56d374SYoshinobu Inoue.Sh SYNOPSIS
41e97407b4SRuslan Ermilov.Nm
42fcdaee31SHajimu UMEMOTO.Op Fl dDfFm1
4386b032afSHajimu UMEMOTO.Op Fl O Ar script-name
44*db82af41SHiroki Sato.Op Fl P Ar pidfile
45*db82af41SHiroki Sato.Op Fl R Ar script-name
467d56d374SYoshinobu Inoue.Ar interface ...
47e97407b4SRuslan Ermilov.Nm
48fcdaee31SHajimu UMEMOTO.Op Fl dDfFm1
4986b032afSHajimu UMEMOTO.Op Fl O Ar script-name
50*db82af41SHiroki Sato.Op Fl P Ar pidfile
51*db82af41SHiroki Sato.Op Fl R Ar script-name
52804c83d4SKris Kennaway.Fl a
537d56d374SYoshinobu Inoue.Nm rtsol
54*db82af41SHiroki Sato.Op Fl dD
5586b032afSHajimu UMEMOTO.Op Fl O Ar script-name
56*db82af41SHiroki Sato.Op Fl R Ar script-name
577d56d374SYoshinobu Inoue.Ar interface ...
58804c83d4SKris Kennaway.Nm rtsol
59804c83d4SKris Kennaway.Op Fl dD
6086b032afSHajimu UMEMOTO.Op Fl O Ar script-name
61*db82af41SHiroki Sato.Op Fl R Ar script-name
62804c83d4SKris Kennaway.Fl a
637d56d374SYoshinobu Inoue.\"
647d56d374SYoshinobu Inoue.Sh DESCRIPTION
65804c83d4SKris Kennaway.Nm
669a364ca3SHajimu UMEMOTOis the daemon program to send ICMPv6 Router Solicitation messages
677d56d374SYoshinobu Inoueon the specified interfaces.
687d56d374SYoshinobu InoueIf a node (re)attaches to a link,
697d56d374SYoshinobu Inoue.Nm
707d56d374SYoshinobu Inouesends some Router Solicitations on the link destined to the link-local scope
717d56d374SYoshinobu Inoueall-routers multicast address to discover new routers
727d56d374SYoshinobu Inoueand to get non link-local addresses.
73259df286SKris Kennaway.Pp
74804c83d4SKris Kennaway.Nm
759a364ca3SHajimu UMEMOTOshould be used on IPv6 hosts
769a364ca3SHajimu UMEMOTO.Pq non-router nodes
77804c83d4SKris Kennawayonly.
78804c83d4SKris Kennaway.Pp
79259df286SKris KennawayIf you invoke the program as
80259df286SKris Kennaway.Nm rtsol ,
81259df286SKris Kennawayit will transmit probes from the specified
82259df286SKris Kennaway.Ar interface ,
83259df286SKris Kennawaywithout becoming a daemon.
84259df286SKris KennawayIn other words,
85259df286SKris Kennaway.Nm rtsol
86259df286SKris Kennawaybehaves as
87259df286SKris Kennaway.Do
88259df286SKris Kennaway.Nm
89259df286SKris Kennaway.Fl f1
90259df286SKris Kennaway.Ar interfaces
91259df286SKris Kennaway.Dc .
92259df286SKris Kennaway.Pp
937d56d374SYoshinobu InoueSpecifically,
947d56d374SYoshinobu Inoue.Nm
957d56d374SYoshinobu Inouesends at most 3 Router Solicitations on an interface
967d56d374SYoshinobu Inoueafter one of the following events:
97259df286SKris Kennaway.Pp
987d56d374SYoshinobu Inoue.Bl -bullet -compact
997d56d374SYoshinobu Inoue.It
1007d56d374SYoshinobu InoueJust after invocation of
1017d56d374SYoshinobu Inoue.Nm
1027d56d374SYoshinobu Inouedaemon.
1037d56d374SYoshinobu Inoue.It
1047d56d374SYoshinobu InoueThe interface is up after a temporary interface failure.
105804c83d4SKris Kennaway.Nm
1069a364ca3SHajimu UMEMOTOdetects such failures by periodically probing to see if the status
107259df286SKris Kennawayof the interface is active or not.
108259df286SKris KennawayNote that some network cards and drivers do not allow the extraction
109259df286SKris Kennawayof link state.
1107d56d374SYoshinobu InoueIn such cases,
1117d56d374SYoshinobu Inoue.Nm
1127d56d374SYoshinobu Inouecannot detect the change of the interface status.
1137d56d374SYoshinobu Inoue.It
114259df286SKris KennawayEvery 60 seconds if the
1157d56d374SYoshinobu Inoue.Fl m
116259df286SKris Kennawayoption is specified and the
1177d56d374SYoshinobu Inoue.Nm
1187d56d374SYoshinobu Inouedaemon cannot get the interface status.
11933841545SHajimu UMEMOTOThis feature does not conform to the IPv6 neighbor discovery
1207d56d374SYoshinobu Inouespecification, but is provided for mobile stations.
12133841545SHajimu UMEMOTOThe default interval for router advertisements, which is on the order of 10
1227d56d374SYoshinobu Inoueminutes, is slightly long for mobile stations.
1237d56d374SYoshinobu InoueThis feature is provided
1247d56d374SYoshinobu Inouefor such stations so that they can find new routers as soon as possible
125259df286SKris Kennawaywhen they attach to another link.
1267d56d374SYoshinobu Inoue.El
1277d56d374SYoshinobu Inoue.Lp
1287d56d374SYoshinobu InoueOnce
1297d56d374SYoshinobu Inoue.Nm
13033841545SHajimu UMEMOTOhas sent a Router Solicitation, and has received a valid Router Advertisement,
131259df286SKris Kennawayit refrains from sending additional solicitations on that interface, until
1327d56d374SYoshinobu Inouethe next time one of the above events occurs.
1337d56d374SYoshinobu Inoue.Lp
1347d56d374SYoshinobu InoueWhen sending a Router Solicitation on an interface,
1357d56d374SYoshinobu Inoue.Nm
1367d56d374SYoshinobu Inoueincludes a Source Link-layer address option if the interface
13733841545SHajimu UMEMOTOhas a link-layer address.
13886b032afSHajimu UMEMOTO.Lp
13986b032afSHajimu UMEMOTO.Nm
14086b032afSHajimu UMEMOTOmanages a per-interface parameter to detect if a separate protocol is
14186b032afSHajimu UMEMOTOneeded for configuration parameters other than host's addresses.
14286b032afSHajimu UMEMOTOAt the invocation time, the flag is FALSE, and becomes TRUE when
14386b032afSHajimu UMEMOTOthe daemon receives a router advertisement with the OtherConfig flag
14486b032afSHajimu UMEMOTObeing set.
14586b032afSHajimu UMEMOTOA script file can be specified to deal with the case
14686b032afSHajimu UMEMOTO.Pq see below .
14786b032afSHajimu UMEMOTOWhen
14886b032afSHajimu UMEMOTO.Nm
14986b032afSHajimu UMEMOTOstart resending router solicitation messages by one of the conditions
15086b032afSHajimu UMEMOTOevents,
15186b032afSHajimu UMEMOTOthe daemon resets the parameter because the event may indicate a
15286b032afSHajimu UMEMOTOchange on the attached link.
1537d56d374SYoshinobu Inoue.Pp
1547d56d374SYoshinobu InoueUpon receipt of signal
1557d56d374SYoshinobu Inoue.Dv SIGUSR1 ,
1567d56d374SYoshinobu Inoue.Nm
1577d56d374SYoshinobu Inouewill dump the current internal state into
158259df286SKris Kennaway.Pa /var/run/rtsold.dump .
1597d56d374SYoshinobu Inoue.\"
1609a364ca3SHajimu UMEMOTO.Pp
1619a364ca3SHajimu UMEMOTOThe options are as follows:
1627d56d374SYoshinobu Inoue.Bl -tag -width indent
163804c83d4SKris Kennaway.It Fl a
164804c83d4SKris KennawayAutoprobe outgoing interface.
165804c83d4SKris Kennaway.Nm
16633841545SHajimu UMEMOTOwill try to find a non-loopback, non-point-to-point, IPv6-capable interface.
167804c83d4SKris KennawayIf
168804c83d4SKris Kennaway.Nm
169804c83d4SKris Kennawayfinds multiple interfaces,
170804c83d4SKris Kennaway.Nm
171804c83d4SKris Kennawaywill exit with error.
1727d56d374SYoshinobu Inoue.\"
1737d56d374SYoshinobu Inoue.It Fl d
1747d56d374SYoshinobu InoueEnable debugging.
1757d56d374SYoshinobu Inoue.It Fl D
17633841545SHajimu UMEMOTOEnable more debugging including the printing of internal timer information.
1777d56d374SYoshinobu Inoue.It Fl f
1787d6f91e2SDima DorfmanPrevent
1797d56d374SYoshinobu Inoue.Nm
1807d56d374SYoshinobu Inouefrom becoming a daemon (foreground mode).
18133841545SHajimu UMEMOTOWarning messages are generated to standard error
1827d56d374SYoshinobu Inoueinstead of
1837d56d374SYoshinobu Inoue.Xr syslog 3 .
184fcdaee31SHajimu UMEMOTO.It Fl F
1857d6f91e2SDima DorfmanExplicitly configure the kernel to accept Router Advertisements and
1867d6f91e2SDima Dorfmandisable IPv6 forwarding.
1877d6f91e2SDima DorfmanThese settings are required for proper
188fcdaee31SHajimu UMEMOTO.Nm
1897d6f91e2SDima Dorfmanoperation.
1907d6f91e2SDima DorfmanWithout this option, the current settings will be obeyed;
1917d6f91e2SDima Dorfmanif they are incompatible with proper operation,
1927d6f91e2SDima Dorfmanwarning messages will be generated,
1937d6f91e2SDima Dorfmanbut Router Solicitations will still be sent.
1947d6f91e2SDima DorfmanThe settings may be changed manually with
195eb87e699SHiroki Sato.Xr sysctl 8
196eb87e699SHiroki Satoand
197eb87e699SHiroki Sato.Xr ifconfig 8 .
1987d56d374SYoshinobu Inoue.It Fl m
1997d56d374SYoshinobu InoueEnable mobility support.
2007d56d374SYoshinobu InoueIf this option is specified,
2017d56d374SYoshinobu Inoue.Nm
2027d56d374SYoshinobu Inouesends probing packets to default routers that have advertised Router
2037d56d374SYoshinobu InoueAdvertisements
2047d56d374SYoshinobu Inouewhen the node (re)attaches to an interface.
2057d56d374SYoshinobu InoueMoreover, if the option is specified,
2067d56d374SYoshinobu Inoue.Nm
2077d56d374SYoshinobu Inoueperiodically sends Router Solicitation on an interface that does not support
2087d56d374SYoshinobu Inoue.Dv SIOCGIFMEDIA
2097d56d374SYoshinobu Inoueioctl.
2107d56d374SYoshinobu Inoue.It Fl 1
2117d56d374SYoshinobu InouePerform only one probe.
21233841545SHajimu UMEMOTOTransmit Router Solicitation packets until at least one valid Router
21333841545SHajimu UMEMOTOAdvertisement packet has arrived on each
21433841545SHajimu UMEMOTO.Ar interface ,
21533841545SHajimu UMEMOTOthen exit.
21686b032afSHajimu UMEMOTO.It Fl O Ar script-name
21786b032afSHajimu UMEMOTOSpecifies a supplement script file to handle the Other Configuration
21886b032afSHajimu UMEMOTOflag of the router advertisement.
21986b032afSHajimu UMEMOTOWhen the flag changes from FALSE to TRUE,
22086b032afSHajimu UMEMOTO.Nm
22186b032afSHajimu UMEMOTOwill invoke
22286b032afSHajimu UMEMOTO.Ar script-name
22386b032afSHajimu UMEMOTOwith a single argument of the receiving interface name,
22486b032afSHajimu UMEMOTOexpecting the script will then start a protocol for the other
22586b032afSHajimu UMEMOTOconfiguration.
22686b032afSHajimu UMEMOTO.Ar script-name
22786b032afSHajimu UMEMOTOmust be the absolute path from root to the script file, be a regular
22886b032afSHajimu UMEMOTOfile, and be created by the same owner who runs
22986b032afSHajimu UMEMOTO.Nm .
230*db82af41SHiroki Sato.It Fl P Ar pidfile
231*db82af41SHiroki SatoWrites the process ID of
232*db82af41SHiroki Sato.Nm
233*db82af41SHiroki Satoto
234*db82af41SHiroki Sato.Pa pidfile
235*db82af41SHiroki Satoinstead of the default PID file
236*db82af41SHiroki Sato.Pa /var/run/rtsold.pid .
237*db82af41SHiroki Sato.It Fl R Ar script-name
238*db82af41SHiroki SatoSpecifies a script to run when router advertisment options
239*db82af41SHiroki Sato.Dv RDNSS Pq Recursive DNS Server
240*db82af41SHiroki Satoor
241*db82af41SHiroki Sato.Dv DNSSL Pq DNS Search List
242*db82af41SHiroki Satoare encountered.
243*db82af41SHiroki SatoThe information of DNS servers and DNS search domains will be sent to
244*db82af41SHiroki Satostandard input of this script.
245*db82af41SHiroki SatoThe
246*db82af41SHiroki Sato.Xr resolvconf 8
247*db82af41SHiroki Satoscript is used by default.
2487d56d374SYoshinobu Inoue.El
2497d56d374SYoshinobu Inoue.Sh FILES
2507d56d374SYoshinobu Inoue.Bl -tag -width /var/run/rtsold.dump -compact
2517d56d374SYoshinobu Inoue.It Pa /var/run/rtsold.pid
2527d56d374SYoshinobu Inouethe pid of the currently running
253e97407b4SRuslan Ermilov.Nm .
254259df286SKris Kennaway.It Pa /var/run/rtsold.dump
2557d56d374SYoshinobu Inouedumps internal state on.
2567d56d374SYoshinobu Inoue.El
2577d56d374SYoshinobu Inoue.\"
2580b31f1f7SUlrich Spörlein.Sh EXIT STATUS
2590b31f1f7SUlrich Spörlein.Ex -std
2600b31f1f7SUlrich Spörlein.\"
2617d56d374SYoshinobu Inoue.Sh SEE ALSO
262*db82af41SHiroki Sato.Xr resolvconf 8 ,
2637d56d374SYoshinobu Inoue.Xr rtadvd 8 ,
2647d56d374SYoshinobu Inoue.Xr sysctl 8
2657d56d374SYoshinobu Inoue.\"
2667d56d374SYoshinobu Inoue.Sh HISTORY
2677d56d374SYoshinobu InoueThe
2687d56d374SYoshinobu Inoue.Nm
2699a364ca3SHajimu UMEMOTOcommand is based on the
2707d56d374SYoshinobu Inoue.Nm rtsol
2719a364ca3SHajimu UMEMOTOcommand, which first appeared in WIDE/KAME IPv6 protocol stack kit.
2727d56d374SYoshinobu Inoue.Nm rtsol
2739a364ca3SHajimu UMEMOTOis now integrated into
2749a364ca3SHajimu UMEMOTO.Xr rtsold 8 .
275259df286SKris Kennaway.\"
276259df286SKris Kennaway.Sh BUGS
277259df286SKris KennawayIn some operating systems, when a PCMCIA network card is removed
278259df286SKris Kennawayand reinserted, the corresponding interface index is changed.
279259df286SKris KennawayHowever,
280259df286SKris Kennaway.Nm
28133841545SHajimu UMEMOTOassumes such changes will not occur, and always uses the index that
28207bfccd7SRuslan Ermilovit got at invocation.
28307bfccd7SRuslan ErmilovAs a result,
284259df286SKris Kennaway.Nm
285259df286SKris Kennawaymay not work if you reinsert a network card.
286259df286SKris KennawayIn such a case,
287259df286SKris Kennaway.Nm
288259df286SKris Kennawayshould be killed and restarted.
289804c83d4SKris Kennaway.Pp
29033841545SHajimu UMEMOTOThe IPv6 autoconfiguration specification assumes a single-interface host.
29133841545SHajimu UMEMOTOYou may see kernel error messages if you try to autoconfigure a host with
292804c83d4SKris Kennawaymultiple interfaces.
293804c83d4SKris KennawayAlso, it seems contradictory for
294804c83d4SKris Kennaway.Nm
295804c83d4SKris Kennawayto accept multiple
29633841545SHajimu UMEMOTO.Ar interface
29733841545SHajimu UMEMOTOarguments.
298