1 .\" $FreeBSD: src/usr.sbin/rtadvd/rtadvd.conf.5,v 1.1.2.9 2002/12/29 16:35:43 schweikh Exp $
2 .\" $DragonFly: src/usr.sbin/rtadvd/rtadvd.conf.5,v 1.3 2007/04/09 21:20:37 swildner Exp $
3 .\" $KAME: rtadvd.conf.5,v 1.35 2001/05/25 07:40:22 jinmei Exp $
5 .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
6 .\" All rights reserved.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. Neither the name of the project nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 .Nd config file for router advertisement daemon
39 This file describes how the router advertisement packets must be constructed
40 for each of the interfaces.
44 you do not have to set this configuration file up at all,
45 unless you need some special configurations.
46 You may even omit the file as a whole.
49 daemon will automatically configure itself using default values
50 specified in the specification.
55 Each line in the file describes a network interface.
56 Fields are separated by a colon
58 and each field contains one capability description.
59 Lines may be concatenated by the
62 The comment marker is the
66 Capabilities describe the value to be filled into ICMPv6 router
67 advertisement messages and to control
70 Therefore, you are encouraged to read IETF neighbor discovery documents
71 if you would like to modify the sample configuration file.
73 Note that almost all items have default values.
74 If you omit an item, the default value of the item will be used.
76 There are two items which control the interval of sending router advertisements.
77 These items can be omitted, then
79 will use the default values.
80 .Bl -tag -width indent
82 (num) The maximum time allowed between sending unsolicited
83 multicast router advertisements
85 The default value is 600.
86 Its value must be no less than 4 seconds
87 and no greater than 1800 seconds.
89 (num) The minimum time allowed between sending unsolicited multicast
92 The default value is the one third of value of
94 Its value must be no less than 3 seconds and no greater than .75 *
99 The following items are for ICMPv6 router advertisement message
101 These items can be omitted, then
103 will use the default values.
104 .Bl -tag -width indent
106 (num) The value for Cur Hop Limit field.
107 The default value is 64.
109 (num) Flags field in router advertisement message header.
112 means Managed address configuration flag bit,
115 means Other stateful configuration flag bit.
120 are used to encode router preference.
121 0x01 means high, 0x00 means medium, and 0x11 means low.
122 The default value is 0.
124 (num) Router lifetime field
126 Its value must be no greater than 3600000.
129 runs on a host, this value must explicitly set 0 on all the
130 advertising interfaces as described in
132 The default value is 1800.
134 (num) Reachable time field
135 (unit: milliseconds).
136 The default value is 0, which means unspecified by this router.
138 (num) Retrans Timer field
139 (unit: milliseconds).
140 The default value is 0, which means unspecified by this router.
143 The following items are for ICMPv6 prefix information option,
144 which will be attached to router advertisement header.
145 These items can be omitted, then
147 will automatically get appropriate prefixes from the kernel's routing table,
148 and advertise the prefixes with the default parameters.
149 .Bl -tag -width indent
151 (num) Time skew to adjust link propagation delays and clock skews
152 between routers on the link
154 This value is used in consistency check for locally-configured and
155 advertised prefix lifetimes, and has its meaning when the local router
156 configures a prefix on the link with a lifetime that decrements in
158 If the value is 0, it means the consistency check will be skipped
160 The default value is 0.
162 (num) Number of prefixes.
163 Its default is 0, so it must explicitly be set to positive values
164 if you want to specify any prefix information option.
167 looks up the system routing table and
168 advertise the prefixes corresponding to interface routes
170 If its value is more than 1, you must specify the index of the prefix
172 Indices vary from 0 to N-1, where N is the
175 Each index shall follow the name of each item, e.g.,
178 (num) Prefix length field.
179 The default value is 64.
181 (num) Flags field in prefix information option.
184 means On-link flag bit,
187 means Autonomous address-configuration flag bit.
188 The default value is 0xc0, i.e., both bits are set.
190 (str) The address filled into Prefix field.
195 file format as well as IPv6 numeric address, the field MUST be quoted by
196 doublequote character.
198 omitted if the value of
202 (num) Valid lifetime field
204 The default value is 2592000 (30 days).
206 (bool) This item means the advertised valid lifetime will decrements
207 in real time, which is disabled by default.
209 (num) Preferred lifetime field
211 The default value is 604800 (7 days).
213 (bool) This item means the advertised preferred lifetime will decrements
214 in real time, which is disabled by default.
217 The following item is for ICMPv6 MTU option,
218 which will be attached to router advertisement header.
219 This item can be omitted, then
221 will use the default value.
222 .Bl -tag -width indent
224 (num or str) MTU (maximum transmission unit) field.
225 If 0 is specified, it means that the option will not be included.
226 The default value is 0.
227 If the special string
229 is specified for this item, MTU option will be included and its value
230 will be set to the interface MTU automatically.
233 The following item controls ICMPv6 source link-layer address option,
234 which will be attached to router advertisement header.
235 As noted above, you can just omit the item, then
237 will use the default value.
238 .Bl -tag -width indent
245 will try to get link-layer address for the interface from the kernel,
246 and attach that in source link-layer address option.
247 If this capability exists,
249 will not attach source link-layer address option to
250 router advertisement packets.
253 The following item controls ICMPV6 home agent information option,
254 which was defined with mobile IPv6 support.
255 It will be attached to router advertisement header just like other options do.
256 .Bl -tag -width indent
258 (num) Specifies home agent preference.
261 must be present as well.
263 (num) Specifies home agent lifetime.
266 When mobile IPv6 support is turned on for
268 advertisement interval option will be attached to router advertisement
269 packet, by configuring
273 The following items are for ICMPv6 route information option,
274 which will be attached to router advertisement header.
275 These items are optional.
276 .Bl -tag -width indent
278 (num) Number of routes.
279 Its default is 0, so it must explicitly be set to positive values
280 if you want to specify any route information option.
281 If its value is 0, no route information is sent.
282 If its value is more than 1, you must specify the index of the routes
284 Indices vary from 0 to N-1, where N is the
287 Each index shall follow the name of each item, e.g.,
290 (num) Prefix length field in route information option.
291 The default value is 64.
293 (num) Flags field in route information option.
299 are used to encode router preference for the route.
300 The default value is 0x00, i.e. medium router preference.
302 (str) The prefix filled into the Prefix field of route information option.
307 file format as well as IPv6 numeric address, the field MUST be quoted by
308 doublequote character.
310 omitted if the value of
314 (num) route lifetime field in route information option.
316 The default value is 2592000 (30 days). (not specified in draft-draves-router-selection-01.txt now)
318 You can also refer one line from another by using
323 for details on the capability.
325 As presented above, all of the advertised parameters have default values
326 defined in specifications, and hence you usually do not have to set them
327 by hand, unless you need special non-default values.
328 It can cause interoperability problem if you use an ill-configured
331 To override a configuration parameter, you can specify the parameter alone.
332 With the following configuration,
334 overrides the router lifetime parameter for the
342 The following example manually configures prefixes advertised from the
345 The configuration must be used with the
351 :addrs#1:addr="3ffe:501:ffff:1000::":prefixlen#64:
354 The following example presents the default values in an explicit manner.
355 The configuration is provided just for reference purposes;
356 YOU DO NOT NEED TO HAVE IT AT ALL.
359 :chlim#64:raflags#0:rltime#1800:rtime#0:retrans#0:\\
360 :pinfoflags#192:vltime#2592000:pltime#604800:mtu#0:
362 :addrs#1:addr="3ffe:501:ffff:1000::":prefixlen#64:tc=default:
369 Thomas Narten, Erik Nordmark and W. A. Simpson,
371 Neighbor Discovery for IP version 6 (IPv6)
377 Default Router Preferences and More-Specific Routes
379 draft-ietf-ipngwg-router-selection-01.txt
383 and the configuration file
385 first appeared in WIDE Hydrangea IPv6 protocol stack kit.