xref: /minix3/usr.sbin/rtadvd/rtadvd.8 (revision 8f957290eb976b379733d0b3811fcb43f8fbaf1a)
1*8f957290SDavid van Moolenbroek.\"	$NetBSD: rtadvd.8,v 1.24 2012/12/13 21:49:38 wiz Exp $
2*8f957290SDavid van Moolenbroek.\"	$KAME: rtadvd.8,v 1.24 2002/05/31 16:16:08 jinmei Exp $
3*8f957290SDavid van Moolenbroek.\"
4*8f957290SDavid van Moolenbroek.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
5*8f957290SDavid van Moolenbroek.\" All rights reserved.
6*8f957290SDavid van Moolenbroek.\"
7*8f957290SDavid van Moolenbroek.\" Redistribution and use in source and binary forms, with or without
8*8f957290SDavid van Moolenbroek.\" modification, are permitted provided that the following conditions
9*8f957290SDavid van Moolenbroek.\" are met:
10*8f957290SDavid van Moolenbroek.\" 1. Redistributions of source code must retain the above copyright
11*8f957290SDavid van Moolenbroek.\"    notice, this list of conditions and the following disclaimer.
12*8f957290SDavid van Moolenbroek.\" 2. Redistributions in binary form must reproduce the above copyright
13*8f957290SDavid van Moolenbroek.\"    notice, this list of conditions and the following disclaimer in the
14*8f957290SDavid van Moolenbroek.\"    documentation and/or other materials provided with the distribution.
15*8f957290SDavid van Moolenbroek.\" 3. Neither the name of the project nor the names of its contributors
16*8f957290SDavid van Moolenbroek.\"    may be used to endorse or promote products derived from this software
17*8f957290SDavid van Moolenbroek.\"    without specific prior written permission.
18*8f957290SDavid van Moolenbroek.\"
19*8f957290SDavid van Moolenbroek.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
20*8f957290SDavid van Moolenbroek.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21*8f957290SDavid van Moolenbroek.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22*8f957290SDavid van Moolenbroek.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
23*8f957290SDavid van Moolenbroek.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24*8f957290SDavid van Moolenbroek.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25*8f957290SDavid van Moolenbroek.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26*8f957290SDavid van Moolenbroek.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27*8f957290SDavid van Moolenbroek.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28*8f957290SDavid van Moolenbroek.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29*8f957290SDavid van Moolenbroek.\" SUCH DAMAGE.
30*8f957290SDavid van Moolenbroek.\"
31*8f957290SDavid van Moolenbroek.Dd December 13, 2006
32*8f957290SDavid van Moolenbroek.Dt RTADVD 8
33*8f957290SDavid van Moolenbroek.Os
34*8f957290SDavid van Moolenbroek.Sh NAME
35*8f957290SDavid van Moolenbroek.Nm rtadvd
36*8f957290SDavid van Moolenbroek.Nd router advertisement daemon
37*8f957290SDavid van Moolenbroek.Sh SYNOPSIS
38*8f957290SDavid van Moolenbroek.Nm
39*8f957290SDavid van Moolenbroek.Op Fl DdfRs
40*8f957290SDavid van Moolenbroek.Op Fl c Ar configfile
41*8f957290SDavid van Moolenbroek.Op Fl M Ar ifname
42*8f957290SDavid van Moolenbroek.Ar interface ...
43*8f957290SDavid van Moolenbroek.Sh DESCRIPTION
44*8f957290SDavid van Moolenbroek.Nm
45*8f957290SDavid van Moolenbroeksends router advertisement packets to the specified interfaces.
46*8f957290SDavid van Moolenbroek.Pp
47*8f957290SDavid van MoolenbroekThe program will daemonize itself on invocation.
48*8f957290SDavid van MoolenbroekIt will then send router advertisement packets periodically, as well
49*8f957290SDavid van Moolenbroekas in response to router solicitation messages sent by end hosts.
50*8f957290SDavid van Moolenbroek.Pp
51*8f957290SDavid van MoolenbroekRouter advertisements can be configured on a per-interface basis, as
52*8f957290SDavid van Moolenbroekdescribed in
53*8f957290SDavid van Moolenbroek.Xr rtadvd.conf 5 .
54*8f957290SDavid van Moolenbroek.Pp
55*8f957290SDavid van MoolenbroekIf there is no configuration file entry for an interface,
56*8f957290SDavid van Moolenbroekor if the configuration file does not exist at all,
57*8f957290SDavid van Moolenbroek.Nm
58*8f957290SDavid van Moolenbroeksets all the parameters to their default values.
59*8f957290SDavid van MoolenbroekIn particular,
60*8f957290SDavid van Moolenbroek.Nm
61*8f957290SDavid van Moolenbroekreads all the interface routes from the routing table and advertises
62*8f957290SDavid van Moolenbroekthem as on-link prefixes.
63*8f957290SDavid van Moolenbroek.Pp
64*8f957290SDavid van Moolenbroek.Nm
65*8f957290SDavid van Moolenbroekalso watches the routing table.
66*8f957290SDavid van MoolenbroekIf an interface direct route is
67*8f957290SDavid van Moolenbroekadded on an advertising interface and no static prefixes are
68*8f957290SDavid van Moolenbroekspecified by the configuration file,
69*8f957290SDavid van Moolenbroek.Nm
70*8f957290SDavid van Moolenbroekadds the corresponding prefix to its advertising list.
71*8f957290SDavid van Moolenbroek.Pp
72*8f957290SDavid van MoolenbroekSimilarly, when an interface direct route is deleted,
73*8f957290SDavid van Moolenbroek.Nm
74*8f957290SDavid van Moolenbroekwill start advertising the prefixes with zero valid and preferred
75*8f957290SDavid van Moolenbroeklifetimes to help the receiving hosts switch to a new prefix when
76*8f957290SDavid van Moolenbroekrenumbering.
77*8f957290SDavid van MoolenbroekNote, however, that the zero valid lifetime cannot invalidate the
78*8f957290SDavid van Moolenbroekautoconfigured addresses at a receiving host immediately.
79*8f957290SDavid van MoolenbroekAccording to the specification, the host will retain the address
80*8f957290SDavid van Moolenbroekfor a certain period, which will typically be two hours.
81*8f957290SDavid van MoolenbroekThe zero lifetimes rather intend to make the address deprecated,
82*8f957290SDavid van Moolenbroekindicating that a new non-deprecated address should be used as the
83*8f957290SDavid van Moolenbroeksource address of a new connection.
84*8f957290SDavid van MoolenbroekThis behavior will last for two hours.
85*8f957290SDavid van MoolenbroekThen
86*8f957290SDavid van Moolenbroek.Nm
87*8f957290SDavid van Moolenbroekwill completely remove the prefix from the advertising list,
88*8f957290SDavid van Moolenbroekand succeeding advertisements will not contain the prefix information.
89*8f957290SDavid van Moolenbroek.Pp
90*8f957290SDavid van MoolenbroekMoreover, if the status of an advertising interface changes,
91*8f957290SDavid van Moolenbroek.Nm
92*8f957290SDavid van Moolenbroekwill start or stop sending router advertisements according
93*8f957290SDavid van Moolenbroekto the latest status.
94*8f957290SDavid van Moolenbroek.Pp
95*8f957290SDavid van MoolenbroekThe
96*8f957290SDavid van Moolenbroek.Fl s
97*8f957290SDavid van Moolenbroekoption may be used to disable this behavior;
98*8f957290SDavid van Moolenbroek.Nm
99*8f957290SDavid van Moolenbroekwill not watch the routing table and the whole functionality described
100*8f957290SDavid van Moolenbroekabove will be suppressed.
101*8f957290SDavid van Moolenbroek.Pp
102*8f957290SDavid van MoolenbroekBasically, hosts MUST NOT send Router Advertisement messages at any
103*8f957290SDavid van Moolenbroektime (RFC 2461, Section 6.2.3).
104*8f957290SDavid van MoolenbroekHowever, it would sometimes be useful to allow hosts to advertise some
105*8f957290SDavid van Moolenbroekparameters such as prefix information and link MTU.
106*8f957290SDavid van MoolenbroekThus,
107*8f957290SDavid van Moolenbroek.Nm
108*8f957290SDavid van Moolenbroekcan be invoked if router lifetime is explicitly set to zero on every
109*8f957290SDavid van Moolenbroekadvertising interface.
110*8f957290SDavid van Moolenbroek.Pp
111*8f957290SDavid van MoolenbroekThe command line options are:
112*8f957290SDavid van Moolenbroek.Bl -tag -width indent
113*8f957290SDavid van Moolenbroek.\"
114*8f957290SDavid van Moolenbroek.It Fl c Ar configfile
115*8f957290SDavid van MoolenbroekSpecify an alternate location,
116*8f957290SDavid van Moolenbroek.Ar configfile ,
117*8f957290SDavid van Moolenbroekfor the configuration file.
118*8f957290SDavid van MoolenbroekBy default,
119*8f957290SDavid van Moolenbroek.Pa /etc/rtadvd.conf
120*8f957290SDavid van Moolenbroekis used.
121*8f957290SDavid van Moolenbroek.It Fl D
122*8f957290SDavid van MoolenbroekEven more debugging information than that offered by the
123*8f957290SDavid van Moolenbroek.Fl d
124*8f957290SDavid van Moolenbroekoption is printed.
125*8f957290SDavid van Moolenbroek.It Fl d
126*8f957290SDavid van MoolenbroekPrint debugging information.
127*8f957290SDavid van Moolenbroek.It Fl f
128*8f957290SDavid van MoolenbroekForeground mode (useful when debugging).
129*8f957290SDavid van MoolenbroekLog messages will be dumped to stderr when this option is specified.
130*8f957290SDavid van Moolenbroek.It Fl M Ar ifname
131*8f957290SDavid van MoolenbroekSpecify an interface to join the all-routers site-local multicast group.
132*8f957290SDavid van MoolenbroekBy default,
133*8f957290SDavid van Moolenbroek.Nm
134*8f957290SDavid van Moolenbroektries to join the first advertising interface appearing on the command
135*8f957290SDavid van Moolenbroekline.
136*8f957290SDavid van MoolenbroekThis option has meaning only with the
137*8f957290SDavid van Moolenbroek.Fl R
138*8f957290SDavid van Moolenbroekoption, which enables routing renumbering protocol support.
139*8f957290SDavid van Moolenbroek.\".It Fl m
140*8f957290SDavid van Moolenbroek.\"Enables mobile IPv6 support.
141*8f957290SDavid van Moolenbroek.\"This changes the content of router advertisement option, as well as
142*8f957290SDavid van Moolenbroek.\"permitted configuration directives.
143*8f957290SDavid van Moolenbroek.It Fl R
144*8f957290SDavid van MoolenbroekAccept router renumbering requests.
145*8f957290SDavid van MoolenbroekIf you enable it, an
146*8f957290SDavid van Moolenbroek.Xr ipsec 4
147*8f957290SDavid van Moolenbroeksetup is suggested for security reasons.
148*8f957290SDavid van Moolenbroek.\"On KAME-based systems,
149*8f957290SDavid van Moolenbroek.\".Xr rrenumd 8
150*8f957290SDavid van Moolenbroek.\"generates router renumbering request packets.
151*8f957290SDavid van MoolenbroekThis option is currently disabled, and is ignored by
152*8f957290SDavid van Moolenbroek.Nm
153*8f957290SDavid van Moolenbroekwith a warning message.
154*8f957290SDavid van Moolenbroek.It Fl s
155*8f957290SDavid van MoolenbroekDo not add or delete prefixes dynamically.
156*8f957290SDavid van MoolenbroekOnly statically configured prefixes, if any, will be advertised.
157*8f957290SDavid van Moolenbroek.El
158*8f957290SDavid van Moolenbroek.Pp
159*8f957290SDavid van MoolenbroekUse
160*8f957290SDavid van Moolenbroek.Dv SIGHUP
161*8f957290SDavid van Moolenbroekto reload the configuration file
162*8f957290SDavid van Moolenbroek.Pa /etc/rtadvd.conf .
163*8f957290SDavid van MoolenbroekIf an invalid parameter is found in the configuration file upon the reload, the
164*8f957290SDavid van Moolenbroekentry will be ignored and the old configuration will be used.
165*8f957290SDavid van MoolenbroekWhen parameters in an existing entry are updated,
166*8f957290SDavid van Moolenbroek.Nm
167*8f957290SDavid van Moolenbroekwill send Router Advertisement messages with the old configuration but zero
168*8f957290SDavid van Moolenbroekrouter lifetime to the interface first, and then start to send a new message.
169*8f957290SDavid van Moolenbroek.Pp
170*8f957290SDavid van MoolenbroekUpon receipt of signal
171*8f957290SDavid van Moolenbroek.Dv SIGUSR1 ,
172*8f957290SDavid van Moolenbroek.Nm
173*8f957290SDavid van Moolenbroekwill dump the current internal state into
174*8f957290SDavid van Moolenbroek.Pa /var/run/rtadvd.dump .
175*8f957290SDavid van Moolenbroek.Pp
176*8f957290SDavid van MoolenbroekUse
177*8f957290SDavid van Moolenbroek.Dv SIGTERM
178*8f957290SDavid van Moolenbroekto kill
179*8f957290SDavid van Moolenbroek.Nm
180*8f957290SDavid van Moolenbroekgracefully.
181*8f957290SDavid van MoolenbroekIn this case,
182*8f957290SDavid van Moolenbroek.Nm
183*8f957290SDavid van Moolenbroekwill transmit router advertisement with router lifetime 0
184*8f957290SDavid van Moolenbroekto all the interfaces
185*8f957290SDavid van Moolenbroek.Pq in accordance with RFC 2461 6.2.5 .
186*8f957290SDavid van Moolenbroek.Sh FILES
187*8f957290SDavid van Moolenbroek.Bl -tag -width /var/run/rtadvd.dumpXX -compact
188*8f957290SDavid van Moolenbroek.It Pa /etc/rtadvd.conf
189*8f957290SDavid van MoolenbroekThe default configuration file.
190*8f957290SDavid van Moolenbroek.It Pa /var/run/rtadvd.pid
191*8f957290SDavid van MoolenbroekContains the PID of the currently running
192*8f957290SDavid van Moolenbroek.Nm .
193*8f957290SDavid van Moolenbroek.It Pa /var/run/rtadvd.dump
194*8f957290SDavid van MoolenbroekThe file in which
195*8f957290SDavid van Moolenbroek.Nm
196*8f957290SDavid van Moolenbroekdumps its internal state.
197*8f957290SDavid van Moolenbroek.El
198*8f957290SDavid van Moolenbroek.Sh EXIT STATUS
199*8f957290SDavid van Moolenbroek.Ex -std rtadvd
200*8f957290SDavid van Moolenbroek.Sh SEE ALSO
201*8f957290SDavid van Moolenbroek.Xr rtadvd.conf 5 ,
202*8f957290SDavid van Moolenbroek.Xr rtsol 8
203*8f957290SDavid van Moolenbroek.Sh HISTORY
204*8f957290SDavid van MoolenbroekThe
205*8f957290SDavid van Moolenbroek.Nm
206*8f957290SDavid van Moolenbroekcommand first appeared in the WIDE Hydrangea IPv6 protocol stack kit.
207*8f957290SDavid van Moolenbroek.Sh BUGS
208*8f957290SDavid van MoolenbroekThere used to be some text that recommended users not to let
209*8f957290SDavid van Moolenbroek.Nm
210*8f957290SDavid van Moolenbroekadvertise Router Advertisement messages on an upstream link to avoid
211*8f957290SDavid van Moolenbroekundesirable
212*8f957290SDavid van Moolenbroek.Xr icmp6 4
213*8f957290SDavid van Moolenbroekredirect messages.
214*8f957290SDavid van MoolenbroekHowever, based on later discussion in the IETF IPng working group,
215*8f957290SDavid van Moolenbroekall routers should rather advertise the messages regardless of
216*8f957290SDavid van Moolenbroekthe network topology, in order to ensure reachability.
217