1.\" $KAME: rtsold.8,v 1.16 2000/10/15 13:19:05 itojun Exp $ 2.\" 3.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 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. 17.\" 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 28.\" SUCH DAMAGE. 29.\" 30.\" $FreeBSD$ 31.\" 32.Dd May 17, 1998 33.Dt RTSOLD 8 34.Os 35.\" 36.Sh NAME 37.Nm rtsold , rtsol 38.Nd router solicitation daemon 39.\" 40.Sh SYNOPSIS 41.Nm 42.Op Fl dDfm1 43.Ar interface ... 44.Nm 45.Op Fl dDfm1 46.Fl a 47.Nm rtsol 48.Op Fl dD 49.Ar interface ... 50.Nm rtsol 51.Op Fl dD 52.Fl a 53.\" 54.Sh DESCRIPTION 55The 56.Nm 57utility is the daemon program to send ICMPv6 Router Solicitation messages 58on the specified interfaces. 59If a node (re)attaches to a link, 60.Nm 61sends some Router Solicitations on the link destined to the link-local scope 62all-routers multicast address to discover new routers 63and to get non link-local addresses. 64.Pp 65The 66.Nm 67utility should be used on IPv6 hosts 68(non-router nodes) 69only. 70.Pp 71If you invoke the program as 72.Nm rtsol , 73it will transmit probes from the specified 74.Ar interface , 75without becoming a daemon. 76In other words, 77.Nm rtsol 78behaves as 79.Do 80.Nm 81.Fl f1 82.Ar interfaces 83.Dc . 84.Pp 85Specifically, 86.Nm 87sends at most 3 Router Solicitations on an interface 88after one of the following events: 89.Pp 90.Bl -bullet -compact 91.It 92Just after invocation of 93.Nm 94daemon. 95.It 96The interface is up after a temporary interface failure. 97The 98.Nm 99utility detects such failures by periodically probing to see if the status 100of the interface is active or not. 101Note that some network cards and drivers do not allow the extraction 102of link state. 103In such cases, 104.Nm 105cannot detect the change of the interface status. 106.It 107Every 60 seconds if the 108.Fl m 109option is specified and the 110.Nm 111daemon cannot get the interface status. 112This feature does not conform to the IPv6 neighbor discovery 113specification, but is provided for mobile stations. 114The default interval for router advertisements, which is on the order of 10 115minutes, is slightly long for mobile stations. 116This feature is provided 117for such stations so that they can find new routers as soon as possible 118when they attach to another link. 119.El 120.Lp 121Once 122.Nm 123has sent a Router Solicitation, and has received a valid Router Advertisement, 124it refrains from sending additional solicitations on that interface, until 125the next time one of the above events occurs. 126.Lp 127When sending a Router Solicitation on an interface, 128.Nm 129includes a Source Link-layer address option if the interface 130has a link-layer address. 131.Pp 132Upon receipt of signal 133.Dv SIGUSR1 , 134.Nm 135will dump the current internal state into 136.Pa /var/run/rtsold.dump . 137.\" 138.Sh OPTIONS 139.Bl -tag -width indent 140.It Fl a 141Autoprobe outgoing interface. 142The 143.Nm 144utility 145will try to find a non-loopback, non-point-to-point, IPv6-capable interface. 146If 147.Nm 148finds multiple interfaces, 149.Nm 150will exit with error. 151.\" 152.It Fl d 153Enable debugging. 154.It Fl D 155Enable more debugging including the printing of internal timer information. 156.It Fl f 157Prevent 158.Nm 159from becoming a daemon (foreground mode). 160Warning messages are generated to standard error 161instead of 162.Xr syslog 3 . 163.It Fl m 164Enable mobility support. 165If this option is specified, 166.Nm 167sends probing packets to default routers that have advertised Router 168Advertisements 169when the node (re)attaches to an interface. 170Moreover, if the option is specified, 171.Nm 172periodically sends Router Solicitation on an interface that does not support 173.Dv SIOCGIFMEDIA 174ioctl. 175.It Fl 1 176Perform only one probe. 177Transmit Router Solicitation packets until at least one valid Router 178Advertisement packet has arrived on each 179.Ar interface , 180then exit. 181.El 182.Sh DIAGNOSTICS 183.Ex -std rtsold rtsol 184.\" 185.Sh FILES 186.Bl -tag -width /var/run/rtsold.dump -compact 187.It Pa /var/run/rtsold.pid 188the pid of the currently running 189.Nm . 190.It Pa /var/run/rtsold.dump 191dumps internal state on. 192.El 193.\" 194.Sh SEE ALSO 195.Xr rtadvd 8 , 196.Xr sysctl 8 197.\" 198.Sh HISTORY 199The 200.Nm 201utility is based on the 202.Nm rtsol 203utility, which first appeared in WIDE/KAME IPv6 protocol stack kit. 204The 205.Nm rtsol 206utility is now integrated into 207.Xr rtsold 8 . 208.\" 209.Sh BUGS 210In some operating systems, when a PCMCIA network card is removed 211and reinserted, the corresponding interface index is changed. 212However, 213.Nm 214assumes such changes will not occur, and always uses the index that 215it got at invocation. As a result, 216.Nm 217may not work if you reinsert a network card. 218In such a case, 219.Nm 220should be killed and restarted. 221.Pp 222The IPv6 autoconfiguration specification assumes a single-interface host. 223You may see kernel error messages if you try to autoconfigure a host with 224multiple interfaces. 225Also, it seems contradictory for 226.Nm 227to accept multiple 228.Ar interface 229arguments. 230