xref: /freebsd/usr.sbin/rtsold/rtsold.8 (revision fcdaee31279ffa6b3505c94450085e1808de3e77)
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.\"
327d56d374SYoshinobu Inoue.Dd May 17, 1998
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
447d56d374SYoshinobu Inoue.Ar interface ...
45e97407b4SRuslan Ermilov.Nm
46fcdaee31SHajimu UMEMOTO.Op Fl dDfFm1
4786b032afSHajimu UMEMOTO.Op Fl O Ar script-name
48804c83d4SKris Kennaway.Fl a
497d56d374SYoshinobu Inoue.Nm rtsol
50fcdaee31SHajimu UMEMOTO.Op Fl dDF
5186b032afSHajimu UMEMOTO.Op Fl O Ar script-name
527d56d374SYoshinobu Inoue.Ar interface ...
53804c83d4SKris Kennaway.Nm rtsol
54804c83d4SKris Kennaway.Op Fl dD
5586b032afSHajimu UMEMOTO.Op Fl O Ar script-name
56804c83d4SKris Kennaway.Fl a
577d56d374SYoshinobu Inoue.\"
587d56d374SYoshinobu Inoue.Sh DESCRIPTION
59804c83d4SKris Kennaway.Nm
609a364ca3SHajimu UMEMOTOis the daemon program to send ICMPv6 Router Solicitation messages
617d56d374SYoshinobu Inoueon the specified interfaces.
627d56d374SYoshinobu InoueIf a node (re)attaches to a link,
637d56d374SYoshinobu Inoue.Nm
647d56d374SYoshinobu Inouesends some Router Solicitations on the link destined to the link-local scope
657d56d374SYoshinobu Inoueall-routers multicast address to discover new routers
667d56d374SYoshinobu Inoueand to get non link-local addresses.
67259df286SKris Kennaway.Pp
68804c83d4SKris Kennaway.Nm
699a364ca3SHajimu UMEMOTOshould be used on IPv6 hosts
709a364ca3SHajimu UMEMOTO.Pq non-router nodes
71804c83d4SKris Kennawayonly.
72804c83d4SKris Kennaway.Pp
73259df286SKris KennawayIf you invoke the program as
74259df286SKris Kennaway.Nm rtsol ,
75259df286SKris Kennawayit will transmit probes from the specified
76259df286SKris Kennaway.Ar interface ,
77259df286SKris Kennawaywithout becoming a daemon.
78259df286SKris KennawayIn other words,
79259df286SKris Kennaway.Nm rtsol
80259df286SKris Kennawaybehaves as
81259df286SKris Kennaway.Do
82259df286SKris Kennaway.Nm
83259df286SKris Kennaway.Fl f1
84259df286SKris Kennaway.Ar interfaces
85259df286SKris Kennaway.Dc .
86259df286SKris Kennaway.Pp
877d56d374SYoshinobu InoueSpecifically,
887d56d374SYoshinobu Inoue.Nm
897d56d374SYoshinobu Inouesends at most 3 Router Solicitations on an interface
907d56d374SYoshinobu Inoueafter one of the following events:
91259df286SKris Kennaway.Pp
927d56d374SYoshinobu Inoue.Bl -bullet -compact
937d56d374SYoshinobu Inoue.It
947d56d374SYoshinobu InoueJust after invocation of
957d56d374SYoshinobu Inoue.Nm
967d56d374SYoshinobu Inouedaemon.
977d56d374SYoshinobu Inoue.It
987d56d374SYoshinobu InoueThe interface is up after a temporary interface failure.
99804c83d4SKris Kennaway.Nm
1009a364ca3SHajimu UMEMOTOdetects such failures by periodically probing to see if the status
101259df286SKris Kennawayof the interface is active or not.
102259df286SKris KennawayNote that some network cards and drivers do not allow the extraction
103259df286SKris Kennawayof link state.
1047d56d374SYoshinobu InoueIn such cases,
1057d56d374SYoshinobu Inoue.Nm
1067d56d374SYoshinobu Inouecannot detect the change of the interface status.
1077d56d374SYoshinobu Inoue.It
108259df286SKris KennawayEvery 60 seconds if the
1097d56d374SYoshinobu Inoue.Fl m
110259df286SKris Kennawayoption is specified and the
1117d56d374SYoshinobu Inoue.Nm
1127d56d374SYoshinobu Inouedaemon cannot get the interface status.
11333841545SHajimu UMEMOTOThis feature does not conform to the IPv6 neighbor discovery
1147d56d374SYoshinobu Inouespecification, but is provided for mobile stations.
11533841545SHajimu UMEMOTOThe default interval for router advertisements, which is on the order of 10
1167d56d374SYoshinobu Inoueminutes, is slightly long for mobile stations.
1177d56d374SYoshinobu InoueThis feature is provided
1187d56d374SYoshinobu Inouefor such stations so that they can find new routers as soon as possible
119259df286SKris Kennawaywhen they attach to another link.
1207d56d374SYoshinobu Inoue.El
1217d56d374SYoshinobu Inoue.Lp
1227d56d374SYoshinobu InoueOnce
1237d56d374SYoshinobu Inoue.Nm
12433841545SHajimu UMEMOTOhas sent a Router Solicitation, and has received a valid Router Advertisement,
125259df286SKris Kennawayit refrains from sending additional solicitations on that interface, until
1267d56d374SYoshinobu Inouethe next time one of the above events occurs.
1277d56d374SYoshinobu Inoue.Lp
1287d56d374SYoshinobu InoueWhen sending a Router Solicitation on an interface,
1297d56d374SYoshinobu Inoue.Nm
1307d56d374SYoshinobu Inoueincludes a Source Link-layer address option if the interface
13133841545SHajimu UMEMOTOhas a link-layer address.
13286b032afSHajimu UMEMOTO.Lp
13386b032afSHajimu UMEMOTO.Nm
13486b032afSHajimu UMEMOTOmanages a per-interface parameter to detect if a separate protocol is
13586b032afSHajimu UMEMOTOneeded for configuration parameters other than host's addresses.
13686b032afSHajimu UMEMOTOAt the invocation time, the flag is FALSE, and becomes TRUE when
13786b032afSHajimu UMEMOTOthe daemon receives a router advertisement with the OtherConfig flag
13886b032afSHajimu UMEMOTObeing set.
13986b032afSHajimu UMEMOTOA script file can be specified to deal with the case
14086b032afSHajimu UMEMOTO.Pq see below .
14186b032afSHajimu UMEMOTOWhen
14286b032afSHajimu UMEMOTO.Nm
14386b032afSHajimu UMEMOTOstart resending router solicitation messages by one of the conditions
14486b032afSHajimu UMEMOTOevents,
14586b032afSHajimu UMEMOTOthe daemon resets the parameter because the event may indicate a
14686b032afSHajimu UMEMOTOchange on the attached link.
1477d56d374SYoshinobu Inoue.Pp
1487d56d374SYoshinobu InoueUpon receipt of signal
1497d56d374SYoshinobu Inoue.Dv SIGUSR1 ,
1507d56d374SYoshinobu Inoue.Nm
1517d56d374SYoshinobu Inouewill dump the current internal state into
152259df286SKris Kennaway.Pa /var/run/rtsold.dump .
1537d56d374SYoshinobu Inoue.\"
1549a364ca3SHajimu UMEMOTO.Pp
1559a364ca3SHajimu UMEMOTOThe options are as follows:
1567d56d374SYoshinobu Inoue.Bl -tag -width indent
157804c83d4SKris Kennaway.It Fl a
158804c83d4SKris KennawayAutoprobe outgoing interface.
159804c83d4SKris Kennaway.Nm
16033841545SHajimu UMEMOTOwill try to find a non-loopback, non-point-to-point, IPv6-capable interface.
161804c83d4SKris KennawayIf
162804c83d4SKris Kennaway.Nm
163804c83d4SKris Kennawayfinds multiple interfaces,
164804c83d4SKris Kennaway.Nm
165804c83d4SKris Kennawaywill exit with error.
1667d56d374SYoshinobu Inoue.\"
1677d56d374SYoshinobu Inoue.It Fl d
1687d56d374SYoshinobu InoueEnable debugging.
1697d56d374SYoshinobu Inoue.It Fl D
17033841545SHajimu UMEMOTOEnable more debugging including the printing of internal timer information.
1717d56d374SYoshinobu Inoue.It Fl f
1729a364ca3SHajimu UMEMOTO.Fl f
1739a364ca3SHajimu UMEMOTOprevents
1747d56d374SYoshinobu Inoue.Nm
1757d56d374SYoshinobu Inouefrom becoming a daemon (foreground mode).
17633841545SHajimu UMEMOTOWarning messages are generated to standard error
1777d56d374SYoshinobu Inoueinstead of
1787d56d374SYoshinobu Inoue.Xr syslog 3 .
179fcdaee31SHajimu UMEMOTO.It Fl F
180fcdaee31SHajimu UMEMOTOConfigure
181fcdaee31SHajimu UMEMOTO.Xr sysctl 8
182fcdaee31SHajimu UMEMOTOvariable related to
183fcdaee31SHajimu UMEMOTO.Nm
184fcdaee31SHajimu UMEMOTOby itself.
185fcdaee31SHajimu UMEMOTOWithout
186fcdaee31SHajimu UMEMOTO.Fl F ,
187fcdaee31SHajimu UMEMOTO.Nm
188fcdaee31SHajimu UMEMOTOwill not alter and obey the current
189fcdaee31SHajimu UMEMOTO.Xr sysctl 8
190fcdaee31SHajimu UMEMOTOsettings.
1917d56d374SYoshinobu Inoue.It Fl m
1927d56d374SYoshinobu InoueEnable mobility support.
1937d56d374SYoshinobu InoueIf this option is specified,
1947d56d374SYoshinobu Inoue.Nm
1957d56d374SYoshinobu Inouesends probing packets to default routers that have advertised Router
1967d56d374SYoshinobu InoueAdvertisements
1977d56d374SYoshinobu Inouewhen the node (re)attaches to an interface.
1987d56d374SYoshinobu InoueMoreover, if the option is specified,
1997d56d374SYoshinobu Inoue.Nm
2007d56d374SYoshinobu Inoueperiodically sends Router Solicitation on an interface that does not support
2017d56d374SYoshinobu Inoue.Dv SIOCGIFMEDIA
2027d56d374SYoshinobu Inoueioctl.
2037d56d374SYoshinobu Inoue.It Fl 1
2047d56d374SYoshinobu InouePerform only one probe.
20533841545SHajimu UMEMOTOTransmit Router Solicitation packets until at least one valid Router
20633841545SHajimu UMEMOTOAdvertisement packet has arrived on each
20733841545SHajimu UMEMOTO.Ar interface ,
20833841545SHajimu UMEMOTOthen exit.
20986b032afSHajimu UMEMOTO.It Fl O Ar script-name
21086b032afSHajimu UMEMOTOSpecifies a supplement script file to handle the Other Configuration
21186b032afSHajimu UMEMOTOflag of the router advertisement.
21286b032afSHajimu UMEMOTOWhen the flag changes from FALSE to TRUE,
21386b032afSHajimu UMEMOTO.Nm
21486b032afSHajimu UMEMOTOwill invoke
21586b032afSHajimu UMEMOTO.Ar script-name
21686b032afSHajimu UMEMOTOwith a single argument of the receiving interface name,
21786b032afSHajimu UMEMOTOexpecting the script will then start a protocol for the other
21886b032afSHajimu UMEMOTOconfiguration.
21986b032afSHajimu UMEMOTO.Ar script-name
22086b032afSHajimu UMEMOTOmust be the absolute path from root to the script file, be a regular
22186b032afSHajimu UMEMOTOfile, and be created by the same owner who runs
22286b032afSHajimu UMEMOTO.Nm .
2237d56d374SYoshinobu Inoue.El
2249a364ca3SHajimu UMEMOTO.Sh RETURN VALUES
2259a364ca3SHajimu UMEMOTOThe
2269a364ca3SHajimu UMEMOTO.Nm
2279a364ca3SHajimu UMEMOTOprogram exits 0 on success, and >0 on failures.
2287d56d374SYoshinobu Inoue.\"
2297d56d374SYoshinobu Inoue.Sh FILES
2307d56d374SYoshinobu Inoue.Bl -tag -width /var/run/rtsold.dump -compact
2317d56d374SYoshinobu Inoue.It Pa /var/run/rtsold.pid
2327d56d374SYoshinobu Inouethe pid of the currently running
233e97407b4SRuslan Ermilov.Nm .
234259df286SKris Kennaway.It Pa /var/run/rtsold.dump
2357d56d374SYoshinobu Inouedumps internal state on.
2367d56d374SYoshinobu Inoue.El
2377d56d374SYoshinobu Inoue.\"
2387d56d374SYoshinobu Inoue.Sh SEE ALSO
2397d56d374SYoshinobu Inoue.Xr rtadvd 8 ,
2407d56d374SYoshinobu Inoue.Xr sysctl 8
2417d56d374SYoshinobu Inoue.\"
2427d56d374SYoshinobu Inoue.Sh HISTORY
2437d56d374SYoshinobu InoueThe
2447d56d374SYoshinobu Inoue.Nm
2459a364ca3SHajimu UMEMOTOcommand is based on the
2467d56d374SYoshinobu Inoue.Nm rtsol
2479a364ca3SHajimu UMEMOTOcommand, which first appeared in WIDE/KAME IPv6 protocol stack kit.
2487d56d374SYoshinobu Inoue.Nm rtsol
2499a364ca3SHajimu UMEMOTOis now integrated into
2509a364ca3SHajimu UMEMOTO.Xr rtsold 8 .
251259df286SKris Kennaway.\"
252259df286SKris Kennaway.Sh BUGS
253259df286SKris KennawayIn some operating systems, when a PCMCIA network card is removed
254259df286SKris Kennawayand reinserted, the corresponding interface index is changed.
255259df286SKris KennawayHowever,
256259df286SKris Kennaway.Nm
25733841545SHajimu UMEMOTOassumes such changes will not occur, and always uses the index that
258259df286SKris Kennawayit got at invocation. As a result,
259259df286SKris Kennaway.Nm
260259df286SKris Kennawaymay not work if you reinsert a network card.
261259df286SKris KennawayIn such a case,
262259df286SKris Kennaway.Nm
263259df286SKris Kennawayshould be killed and restarted.
264804c83d4SKris Kennaway.Pp
26533841545SHajimu UMEMOTOThe IPv6 autoconfiguration specification assumes a single-interface host.
26633841545SHajimu UMEMOTOYou may see kernel error messages if you try to autoconfigure a host with
267804c83d4SKris Kennawaymultiple interfaces.
268804c83d4SKris KennawayAlso, it seems contradictory for
269804c83d4SKris Kennaway.Nm
270804c83d4SKris Kennawayto accept multiple
27133841545SHajimu UMEMOTO.Ar interface
27233841545SHajimu UMEMOTOarguments.
273