1 .\" $NetBSD: rtadvd.8,v 1.20 2005/10/31 15:28:53 wiz Exp $
2 .\" $KAME: rtadvd.8,v 1.24 2002/05/31 16:16:08 jinmei Exp $
4 .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. Neither the name of the project nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 .Nd router advertisement daemon
40 .Op Fl c Ar configfile
44 sends router advertisement packets to the specified interfaces.
46 The program will daemonize itself on invocation.
47 It will then send router advertisement packets periodically, as well
48 as in response to router solicitation messages sent by end hosts.
50 Router advertisements can be configured on a per-interface basis, as
54 If there is no configuration file entry for an interface,
55 or if the configuration file does not exist at all,
57 sets all the parameters to their default values.
60 reads all the interface routes from the routing table and advertises
61 them as on-link prefixes.
64 also watches the routing table.
65 If an interface direct route is
66 added on an advertising interface and no static prefixes are
67 specified by the configuration file,
69 adds the corresponding prefix to its advertising list.
71 Similarly, when an interface direct route is deleted,
73 will start advertising the prefixes with zero valid and preferred
74 lifetimes to help the receiving hosts switch to a new prefix when
76 Note, however, that the zero valid lifetime cannot invalidate the
77 autoconfigured addresses at a receiving host immediately.
78 According to the specification, the host will retain the address
79 for a certain period, which will typically be two hours.
80 The zero lifetimes rather intend to make the address deprecated,
81 indicating that a new non-deprecated address should be used as the
82 source address of a new connection.
83 This behavior will last for two hours.
86 will completely remove the prefix from the advertising list,
87 and succeeding advertisements will not contain the prefix information.
89 Moreover, if the status of an advertising interface changes,
91 will start or stop sending router advertisements according
96 option may be used to disable this behavior;
98 will not watch the routing table and the whole functionality described
99 above will be suppressed.
101 Basically, hosts MUST NOT send Router Advertisement messages at any
102 time (RFC 2461, Section 6.2.3).
103 However, it would sometimes be useful to allow hosts to advertise some
104 parameters such as prefix information and link MTU.
107 can be invoked if router lifetime is explicitly set to zero on every
108 advertising interface.
110 The command line options are:
111 .Bl -tag -width indent
113 .It Fl c Ar configfile
114 Specify an alternate location,
116 for the configuration file.
121 Even more debugging information than that offered by the
125 Print debugging information.
127 Foreground mode (useful when debugging).
128 Log messages will be dumped to stderr when this option is specified.
130 Specify an interface to join the all-routers site-local multicast group.
133 tries to join the first advertising interface appearing on the command
135 This option has meaning only with the
137 option, which enables routing renumbering protocol support.
139 .\"Enables mobile IPv6 support.
140 .\"This changes the content of router advertisement option, as well as
141 .\"permitted configuration directives.
143 Accept router renumbering requests.
146 setup is suggested for security reasons.
147 .\"On KAME-based systems,
149 .\"generates router renumbering request packets.
150 This option is currently disabled, and is ignored by
152 with a warning message.
154 Do not add or delete prefixes dynamically.
155 Only statically configured prefixes, if any, will be advertised.
158 Upon receipt of signal
161 will dump the current internal state into
162 .Pa /var/run/rtadvd.dump .
171 will transmit router advertisement with router lifetime 0
172 to all the interfaces
173 .Pq in accordance with RFC 2461 6.2.5 .
177 .Bl -tag -width /var/run/rtadvd.dumpXX -compact
178 .It Pa /etc/rtadvd.conf
179 The default configuration file.
180 .It Pa /var/run/rtadvd.pid
181 Contains the PID of the currently running
183 .It Pa /var/run/rtadvd.dump
186 dumps its internal state.
194 command first appeared in the WIDE Hydrangea IPv6 protocol stack kit.
196 There used to be some text that recommended users not to let
198 advertise Router Advertisement messages on an upstream link to avoid
202 However, based on later discussion in the IETF IPng working group,
203 all routers should rather advertise the messages regardless of
204 the network topology, in order to ensure reachability.