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*bfa812f5SFranco Fitchner.Dd August 14, 2021 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 42489e04d0SHiroki Sato.Op Fl dDfFmu1 4360e7f669SBjoern A. Zeeb.Op Fl M Ar script-name 4486b032afSHajimu UMEMOTO.Op Fl O Ar script-name 45489e04d0SHiroki Sato.Op Fl p Ar pidfile 46db82af41SHiroki Sato.Op Fl R Ar script-name 477d56d374SYoshinobu Inoue.Ar interface ... 48e97407b4SRuslan Ermilov.Nm 49489e04d0SHiroki Sato.Op Fl dDfFmu1 5060e7f669SBjoern A. Zeeb.Op Fl M Ar script-name 5186b032afSHajimu UMEMOTO.Op Fl O Ar script-name 52489e04d0SHiroki Sato.Op Fl p Ar pidfile 53db82af41SHiroki Sato.Op Fl R Ar script-name 54804c83d4SKris Kennaway.Fl a 557d56d374SYoshinobu Inoue.Nm rtsol 56489e04d0SHiroki Sato.Op Fl dDu 5760e7f669SBjoern A. Zeeb.Op Fl M Ar script-name 5886b032afSHajimu UMEMOTO.Op Fl O Ar script-name 59db82af41SHiroki Sato.Op Fl R Ar script-name 607d56d374SYoshinobu Inoue.Ar interface ... 61804c83d4SKris Kennaway.Nm rtsol 62489e04d0SHiroki Sato.Op Fl dDu 6360e7f669SBjoern A. Zeeb.Op Fl M Ar script-name 6486b032afSHajimu UMEMOTO.Op Fl O Ar script-name 65db82af41SHiroki Sato.Op Fl R Ar script-name 66804c83d4SKris Kennaway.Fl a 677d56d374SYoshinobu Inoue.\" 687d56d374SYoshinobu Inoue.Sh DESCRIPTION 69804c83d4SKris Kennaway.Nm 709a364ca3SHajimu UMEMOTOis the daemon program to send ICMPv6 Router Solicitation messages 717d56d374SYoshinobu Inoueon the specified interfaces. 727d56d374SYoshinobu InoueIf a node (re)attaches to a link, 737d56d374SYoshinobu Inoue.Nm 747d56d374SYoshinobu Inouesends some Router Solicitations on the link destined to the link-local scope 757d56d374SYoshinobu Inoueall-routers multicast address to discover new routers 767d56d374SYoshinobu Inoueand to get non link-local addresses. 77259df286SKris Kennaway.Pp 78804c83d4SKris Kennaway.Nm 799a364ca3SHajimu UMEMOTOshould be used on IPv6 hosts 809a364ca3SHajimu UMEMOTO.Pq non-router nodes 81804c83d4SKris Kennawayonly. 82804c83d4SKris Kennaway.Pp 83259df286SKris KennawayIf you invoke the program as 84259df286SKris Kennaway.Nm rtsol , 85259df286SKris Kennawayit will transmit probes from the specified 86259df286SKris Kennaway.Ar interface , 87259df286SKris Kennawaywithout becoming a daemon. 88259df286SKris KennawayIn other words, 89259df286SKris Kennaway.Nm rtsol 90259df286SKris Kennawaybehaves as 91259df286SKris Kennaway.Do 92259df286SKris Kennaway.Nm 93259df286SKris Kennaway.Fl f1 94259df286SKris Kennaway.Ar interfaces 95259df286SKris Kennaway.Dc . 96259df286SKris Kennaway.Pp 977d56d374SYoshinobu InoueSpecifically, 987d56d374SYoshinobu Inoue.Nm 997d56d374SYoshinobu Inouesends at most 3 Router Solicitations on an interface 1007d56d374SYoshinobu Inoueafter one of the following events: 101259df286SKris Kennaway.Pp 1027d56d374SYoshinobu Inoue.Bl -bullet -compact 1037d56d374SYoshinobu Inoue.It 1047d56d374SYoshinobu InoueJust after invocation of 1057d56d374SYoshinobu Inoue.Nm 1067d56d374SYoshinobu Inouedaemon. 1077d56d374SYoshinobu Inoue.It 1087d56d374SYoshinobu InoueThe interface is up after a temporary interface failure. 109804c83d4SKris Kennaway.Nm 1109a364ca3SHajimu UMEMOTOdetects such failures by periodically probing to see if the status 111259df286SKris Kennawayof the interface is active or not. 112259df286SKris KennawayNote that some network cards and drivers do not allow the extraction 113259df286SKris Kennawayof link state. 1147d56d374SYoshinobu InoueIn such cases, 1157d56d374SYoshinobu Inoue.Nm 1167d56d374SYoshinobu Inouecannot detect the change of the interface status. 1177d56d374SYoshinobu Inoue.It 118259df286SKris KennawayEvery 60 seconds if the 1197d56d374SYoshinobu Inoue.Fl m 120259df286SKris Kennawayoption is specified and the 1217d56d374SYoshinobu Inoue.Nm 1227d56d374SYoshinobu Inouedaemon cannot get the interface status. 12333841545SHajimu UMEMOTOThis feature does not conform to the IPv6 neighbor discovery 1247d56d374SYoshinobu Inouespecification, but is provided for mobile stations. 12533841545SHajimu UMEMOTOThe default interval for router advertisements, which is on the order of 10 1267d56d374SYoshinobu Inoueminutes, is slightly long for mobile stations. 1277d56d374SYoshinobu InoueThis feature is provided 1287d56d374SYoshinobu Inouefor such stations so that they can find new routers as soon as possible 129259df286SKris Kennawaywhen they attach to another link. 1307d56d374SYoshinobu Inoue.El 1317d56d374SYoshinobu Inoue.Lp 1327d56d374SYoshinobu InoueOnce 1337d56d374SYoshinobu Inoue.Nm 13433841545SHajimu UMEMOTOhas sent a Router Solicitation, and has received a valid Router Advertisement, 135259df286SKris Kennawayit refrains from sending additional solicitations on that interface, until 1367d56d374SYoshinobu Inouethe next time one of the above events occurs. 1377d56d374SYoshinobu Inoue.Lp 1387d56d374SYoshinobu InoueWhen sending a Router Solicitation on an interface, 1397d56d374SYoshinobu Inoue.Nm 1407d56d374SYoshinobu Inoueincludes a Source Link-layer address option if the interface 14133841545SHajimu UMEMOTOhas a link-layer address. 14286b032afSHajimu UMEMOTO.Lp 14386b032afSHajimu UMEMOTO.Nm 14486b032afSHajimu UMEMOTOmanages a per-interface parameter to detect if a separate protocol is 14586b032afSHajimu UMEMOTOneeded for configuration parameters other than host's addresses. 14686b032afSHajimu UMEMOTOAt the invocation time, the flag is FALSE, and becomes TRUE when 14786b032afSHajimu UMEMOTOthe daemon receives a router advertisement with the OtherConfig flag 14886b032afSHajimu UMEMOTObeing set. 14986b032afSHajimu UMEMOTOA script file can be specified to deal with the case 15086b032afSHajimu UMEMOTO.Pq see below . 15186b032afSHajimu UMEMOTOWhen 15286b032afSHajimu UMEMOTO.Nm 15386b032afSHajimu UMEMOTOstart resending router solicitation messages by one of the conditions 15486b032afSHajimu UMEMOTOevents, 15586b032afSHajimu UMEMOTOthe daemon resets the parameter because the event may indicate a 15686b032afSHajimu UMEMOTOchange on the attached link. 1577d56d374SYoshinobu Inoue.Pp 1587d56d374SYoshinobu InoueUpon receipt of signal 1597d56d374SYoshinobu Inoue.Dv SIGUSR1 , 1607d56d374SYoshinobu Inoue.Nm 1617d56d374SYoshinobu Inouewill dump the current internal state into 162259df286SKris Kennaway.Pa /var/run/rtsold.dump . 1637d56d374SYoshinobu Inoue.\" 1649a364ca3SHajimu UMEMOTO.Pp 1659a364ca3SHajimu UMEMOTOThe options are as follows: 1667d56d374SYoshinobu Inoue.Bl -tag -width indent 167804c83d4SKris Kennaway.It Fl a 168dd336899SMark JohnstonAutoprobe outgoing interfaces. 169804c83d4SKris Kennaway.Nm 170*bfa812f5SFranco Fitchnerwill try to find any non-loopback, IPv6-capable interfaces 171dcc8e548SMark Johnstonand send router solicitation messages on all of them. 1727d56d374SYoshinobu Inoue.It Fl d 1737d56d374SYoshinobu InoueEnable debugging. 1747d56d374SYoshinobu Inoue.It Fl D 17533841545SHajimu UMEMOTOEnable more debugging including the printing of internal timer information. 1767d56d374SYoshinobu Inoue.It Fl f 1777d6f91e2SDima DorfmanPrevent 1787d56d374SYoshinobu Inoue.Nm 1797d56d374SYoshinobu Inouefrom becoming a daemon (foreground mode). 18033841545SHajimu UMEMOTOWarning messages are generated to standard error 1817d56d374SYoshinobu Inoueinstead of 1827d56d374SYoshinobu Inoue.Xr syslog 3 . 183fcdaee31SHajimu UMEMOTO.It Fl F 1847d6f91e2SDima DorfmanExplicitly configure the kernel to accept Router Advertisements and 1857d6f91e2SDima Dorfmandisable IPv6 forwarding. 1867d6f91e2SDima DorfmanThese settings are required for proper 187fcdaee31SHajimu UMEMOTO.Nm 1887d6f91e2SDima Dorfmanoperation. 1897d6f91e2SDima DorfmanWithout this option, the current settings will be obeyed; 1907d6f91e2SDima Dorfmanif they are incompatible with proper operation, 1917d6f91e2SDima Dorfmanwarning messages will be generated, 1927d6f91e2SDima Dorfmanbut Router Solicitations will still be sent. 1937d6f91e2SDima DorfmanThe settings may be changed manually with 194eb87e699SHiroki Sato.Xr sysctl 8 195eb87e699SHiroki Satoand 196eb87e699SHiroki Sato.Xr ifconfig 8 . 1977d56d374SYoshinobu Inoue.It Fl m 1987d56d374SYoshinobu InoueEnable mobility support. 1997d56d374SYoshinobu InoueIf this option is specified, 2007d56d374SYoshinobu Inoue.Nm 2017d56d374SYoshinobu Inouesends probing packets to default routers that have advertised Router 2027d56d374SYoshinobu InoueAdvertisements 2037d56d374SYoshinobu Inouewhen the node (re)attaches to an interface. 2047d56d374SYoshinobu InoueMoreover, if the option is specified, 2057d56d374SYoshinobu Inoue.Nm 2067d56d374SYoshinobu Inoueperiodically sends Router Solicitation on an interface that does not support 2077d56d374SYoshinobu Inoue.Dv SIOCGIFMEDIA 2087d56d374SYoshinobu Inoueioctl. 2097d56d374SYoshinobu Inoue.It Fl 1 2107d56d374SYoshinobu InouePerform only one probe. 21133841545SHajimu UMEMOTOTransmit Router Solicitation packets until at least one valid Router 21233841545SHajimu UMEMOTOAdvertisement packet has arrived on each 21333841545SHajimu UMEMOTO.Ar interface , 21433841545SHajimu UMEMOTOthen exit. 21560e7f669SBjoern A. Zeeb.It Fl M Ar script-name 21660e7f669SBjoern A. ZeebSpecifies a supplement script file to handle the Managed Configuration 21760e7f669SBjoern A. Zeebflag of the router advertisement. 21860e7f669SBjoern A. ZeebWhen the flag changes from FALSE to TRUE, 21960e7f669SBjoern A. Zeeb.Nm 22060e7f669SBjoern A. Zeebwill invoke 22160e7f669SBjoern A. Zeeb.Ar script-name 22260e7f669SBjoern A. Zeebwith a single argument of the receiving interface name, 22360e7f669SBjoern A. Zeebexpecting the script will then start a protocol for the managed 22460e7f669SBjoern A. Zeebconfiguration. 22560e7f669SBjoern A. Zeeb.Ar script-name 22660e7f669SBjoern A. Zeebmust be the absolute path from root to the script file, be a regular 22760e7f669SBjoern A. Zeebfile, and be created by the same owner who runs 22860e7f669SBjoern A. Zeeb.Nm . 22986b032afSHajimu UMEMOTO.It Fl O Ar script-name 23086b032afSHajimu UMEMOTOSpecifies a supplement script file to handle the Other Configuration 23186b032afSHajimu UMEMOTOflag of the router advertisement. 23286b032afSHajimu UMEMOTOWhen the flag changes from FALSE to TRUE, 23386b032afSHajimu UMEMOTO.Nm 23486b032afSHajimu UMEMOTOwill invoke 23586b032afSHajimu UMEMOTO.Ar script-name 23686b032afSHajimu UMEMOTOwith a single argument of the receiving interface name, 23786b032afSHajimu UMEMOTOexpecting the script will then start a protocol for the other 23886b032afSHajimu UMEMOTOconfiguration. 23960e7f669SBjoern A. ZeebThe script will not be run if the Managed Configuration flag in the 24060e7f669SBjoern A. Zeebrouter advertisement is also TRUE. 24186b032afSHajimu UMEMOTO.Ar script-name 24286b032afSHajimu UMEMOTOmust be the absolute path from root to the script file, be a regular 24386b032afSHajimu UMEMOTOfile, and be created by the same owner who runs 24486b032afSHajimu UMEMOTO.Nm . 245489e04d0SHiroki Sato.It Fl p Ar pidfile 246db82af41SHiroki SatoWrites the process ID of 247db82af41SHiroki Sato.Nm 248db82af41SHiroki Satoto 249db82af41SHiroki Sato.Pa pidfile 250db82af41SHiroki Satoinstead of the default PID file 251db82af41SHiroki Sato.Pa /var/run/rtsold.pid . 252db82af41SHiroki Sato.It Fl R Ar script-name 2533df5ecacSUlrich SpörleinSpecifies a script to run when router advertisement options 254db82af41SHiroki Sato.Dv RDNSS Pq Recursive DNS Server 255db82af41SHiroki Satoor 256db82af41SHiroki Sato.Dv DNSSL Pq DNS Search List 257db82af41SHiroki Satoare encountered. 258db82af41SHiroki SatoThe information of DNS servers and DNS search domains will be sent to 259db82af41SHiroki Satostandard input of this script. 260db82af41SHiroki SatoThe 261db82af41SHiroki Sato.Xr resolvconf 8 262db82af41SHiroki Satoscript is used by default. 263489e04d0SHiroki Sato.It Fl u 264af193023SMark JohnstonSpecifies whether to add the source address of Router Advertisement 265af193023SMark Johnstonmessages to the interface name in the parameters of the RDNSS and DNSSL 266af193023SMark Johnstonscripts. 267489e04d0SHiroki Sato.Pp 268489e04d0SHiroki SatoIf 269489e04d0SHiroki Sato.Fl u 270af193023SMark Johnstonis specified, the interface name in the script parameters will be 271489e04d0SHiroki Sato.Ql ifname:slaac:[RA-source-address] . 272489e04d0SHiroki Sato.Pp 273af193023SMark JohnstonOtherwise it will be 274489e04d0SHiroki Sato.Ql ifname:slaac . 2757d56d374SYoshinobu Inoue.El 2767d56d374SYoshinobu Inoue.Sh FILES 2777d56d374SYoshinobu Inoue.Bl -tag -width /var/run/rtsold.dump -compact 2787d56d374SYoshinobu Inoue.It Pa /var/run/rtsold.pid 279dd336899SMark JohnstonThe PID of the currently running 280e97407b4SRuslan Ermilov.Nm . 281259df286SKris Kennaway.It Pa /var/run/rtsold.dump 282dd336899SMark JohnstonInternal state dump file. 2837d56d374SYoshinobu Inoue.El 2847d56d374SYoshinobu Inoue.\" 2850b31f1f7SUlrich Spörlein.Sh EXIT STATUS 2860b31f1f7SUlrich Spörlein.Ex -std 2870b31f1f7SUlrich Spörlein.\" 2887d56d374SYoshinobu Inoue.Sh SEE ALSO 289db82af41SHiroki Sato.Xr resolvconf 8 , 2907d56d374SYoshinobu Inoue.Xr rtadvd 8 , 2917d56d374SYoshinobu Inoue.Xr sysctl 8 2927d56d374SYoshinobu Inoue.\" 2937d56d374SYoshinobu Inoue.Sh HISTORY 2947d56d374SYoshinobu InoueThe 2957d56d374SYoshinobu Inoue.Nm 2969a364ca3SHajimu UMEMOTOcommand is based on the 2977d56d374SYoshinobu Inoue.Nm rtsol 2989a364ca3SHajimu UMEMOTOcommand, which first appeared in WIDE/KAME IPv6 protocol stack kit. 2997d56d374SYoshinobu Inoue.Nm rtsol 3009a364ca3SHajimu UMEMOTOis now integrated into 3019a364ca3SHajimu UMEMOTO.Xr rtsold 8 . 302259df286SKris Kennaway.\" 303259df286SKris Kennaway.Sh BUGS 304259df286SKris KennawayIn some operating systems, when a PCMCIA network card is removed 305259df286SKris Kennawayand reinserted, the corresponding interface index is changed. 306259df286SKris KennawayHowever, 307259df286SKris Kennaway.Nm 30833841545SHajimu UMEMOTOassumes such changes will not occur, and always uses the index that 30907bfccd7SRuslan Ermilovit got at invocation. 31007bfccd7SRuslan ErmilovAs a result, 311259df286SKris Kennaway.Nm 312259df286SKris Kennawaymay not work if you reinsert a network card. 313259df286SKris KennawayIn such a case, 314259df286SKris Kennaway.Nm 315259df286SKris Kennawayshould be killed and restarted. 316804c83d4SKris Kennaway.Pp 31733841545SHajimu UMEMOTOThe IPv6 autoconfiguration specification assumes a single-interface host. 31833841545SHajimu UMEMOTOYou may see kernel error messages if you try to autoconfigure a host with 319804c83d4SKris Kennawaymultiple interfaces. 320804c83d4SKris KennawayAlso, it seems contradictory for 321804c83d4SKris Kennaway.Nm 322804c83d4SKris Kennawayto accept multiple 32333841545SHajimu UMEMOTO.Ar interface 32433841545SHajimu UMEMOTOarguments. 325