1 .\" $NetBSD: rtadvd.conf.5,v 1.18 2012/12/11 16:37:23 roy Exp $
2 .\" $KAME: rtadvd.conf.5,v 1.50 2005/01/14 05:30:59 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 config file for router advertisement daemon
38 This file describes how the router advertisement packets must be constructed
39 for each of the interfaces.
43 you do not have to set this configuration file up at all,
44 unless you need some special configurations.
45 You may even omit the file as a whole.
48 daemon will automatically configure itself using default values
49 specified in the specification.
54 Each line in the file describes a network interface.
55 Fields are separated by a colon
57 and each field contains one capability description.
58 Lines may be concatenated by the
61 The comment marker is the
65 Capabilities describe the value to be filled into ICMPv6 router
66 advertisement messages and to control
69 Therefore, you are encouraged to read IETF neighbor discovery documents
70 if you would like to modify the sample configuration file.
72 Note that almost all items have default values.
73 If you omit an item, the default value of the item will be used.
75 There are two items which control the interval of sending router advertisements.
76 These items can be omitted, then
78 will use the default values.
79 .Bl -tag -width indent
81 (num) The maximum time allowed between sending unsolicited
82 multicast router advertisements
84 The default value is 600.
85 Its value must be no less than 4 seconds
86 and no greater than 1800 seconds.
88 (num) The minimum time allowed between sending unsolicited multicast
91 The default value is the one third of value of
93 Its value must be no less than 3 seconds and no greater than .75 *
98 The following items are for ICMPv6 router advertisement message
100 These items can be omitted, then
102 will use the default values.
103 .Bl -tag -width indent
105 (num) The value for Cur Hop Limit field.
106 The default value is 64.
108 (str or num) A 8-bit flags field in router advertisement message header.
109 This field can be specified either as a case-sensitive string or as an
111 A sting consists of characters each of which corresponds to a
112 particular flag bit(s).
113 An integer should be the logical OR of all enabled bits.
118 means Managed address configuration flag bit,
123 means Other stateful configuration flag bit.
132 are used to encode router preference.
137 means high, 00 means medium, and 11
142 Bits 10 is reserved, and must not be specified.
143 There is no character to specify the medium preference explicitly.
144 The default value of the entire flag is 0
148 which means no additional
149 configuration methods, and the medium router preference.
151 (num) Router lifetime field
153 The value must be either zero or between
159 runs on a host, this value must explicitly set 0 on all the
160 advertising interfaces as described in
162 The default value is 1800.
164 (num) Reachable time field
165 .Pq unit: milliseconds .
166 The default value is 0, which means unspecified by this router.
168 (num) Retrans Timer field
169 .Pq unit: milliseconds .
170 The default value is 0, which means unspecified by this router.
173 The following items are for ICMPv6 prefix information option,
174 which will be attached to router advertisement header.
175 These items can be omitted, then
177 will automatically get appropriate prefixes from the kernel's routing table,
178 and advertise the prefixes with the default parameters, unless the
185 can be augmented with a number, like
187 to specify multiple prefixes.
188 .Bl -tag -width indent
190 (bool) Specified whether
192 should gather prefix information from the interface if no
201 will send RA packets with no prefix information.
203 (num) Time skew to adjust link propagation delays and clock skews
204 between routers on the link
206 This value is used in consistency check for locally-configured and
207 advertised prefix lifetimes, and has its meaning when the local router
208 configures a prefix on the link with a lifetime that decrements in
210 If the value is 0, it means the consistency check will be skipped
212 The default value is 0.
214 (num) Prefix length field.
215 The default value is 64.
217 (str or num) A 8-bit flags field in prefix information option.
218 This field can be specified either as a case-sensitive string or as an
220 A sting consists of characters each of which corresponds to a
221 particular flag bit(s).
222 An integer should be the logical OR of all enabled bits.
227 means On-link flag bit,
232 means Autonomous address-configuration flag bit.
233 The default value is "la" or 0xc0, i.e., both bits are set.
235 (str) The address filled into Prefix field.
240 file format as well as IPv6 numeric address, the field MUST be quoted by
241 doublequote character.
243 (num) Valid lifetime field
245 The default value is 2592000 (30 days).
247 (bool) This item means the advertised valid lifetime will decrement
248 in real time, which is disabled by default.
250 (num) Preferred lifetime field
252 The default value is 604800 (7 days).
254 (bool) This item means the advertised preferred lifetime will decrement
255 in real time, which is disabled by default.
258 The following item is for ICMPv6 MTU option,
259 which will be attached to router advertisement header.
260 This item can be omitted, then
262 will use the default value.
263 .Bl -tag -width indent
265 (num or str) MTU (maximum transmission unit) field.
266 If 0 is specified, it means that the option will not be included.
267 The default value is 0.
268 If the special string
270 is specified for this item, MTU option will be included and its value
271 will be set to the interface MTU automatically.
274 The following item controls ICMPv6 source link-layer address option,
275 which will be attached to router advertisement header.
276 As noted above, you can just omit the item, then
278 will use the default value.
279 .Bl -tag -width indent
288 will try to get link-layer address for the interface from the kernel,
289 and attach that in source link-layer address option.
290 If this capability exists,
292 will not attach source link-layer address option to
293 router advertisement packets.
296 The following items are for ICMPv6 route information option,
297 which will be attached to router advertisement header.
298 These items are optional.
299 Each items can be augmented with number, like
301 to specify multiple routes.
302 .Bl -tag -width indent
304 (str) The prefix filled into the Prefix field of route information option.
309 file format as well as IPv6 numeric address, the field MUST be quoted by
310 doublequote character.
312 (num) Prefix length field in route information option.
313 The default value is 64.
315 (str or num) A 8-bit flags field in route information option.
316 Currently only the preference values are defined.
317 The notation is same as that of the raflags field.
326 are used to encode the route preference for the route.
327 The default value is 0x00, i.e. medium preference.
329 (num) route lifetime field in route information option.
331 Since the specification does not define the default value of this
332 item, the value for this item should be specified by hand.
335 allows this item to be unspecified, and uses the router lifetime
336 as the default value in such a case, just for compatibility with an
337 old version of the program.
340 In the above list, each keyword beginning with
342 could be replaced with the one beginning with
344 for backward compatibility reason.
347 is accepted instead of
349 However, keywords that start with
351 have basically been obsoleted, and should not be used any more.
353 The following items are for ICMPv6 Recursive DNS Server Option and
354 DNS Search List Option
356 which will be attached to router advertisement header.
357 These items are optional.
358 .Bl -tag -width indent
360 (str) The IPv6 address of one or more recursive DNS servers.
361 The argument must be inside double quotes.
362 Multiple DNS servers can be specified in a comma-separated string.
363 If different lifetimes are needed for different servers,
364 separate entries can be given by using
369 options with corresponding
375 Note that the maximum number of servers depends on the receiver side.
378 manual page for the resolver implementation.
383 The default value is 3/2 of the interval time.
385 (str) One or more domain names in a comma-separated string.
386 These domain names will be used when making DNS queries on a
387 non-fully-qualified domain name.
388 If different lifetimes are needed for different domains, separate entries
389 can be given by using
394 options with corresponding
400 Note that the maximum number of names depends on the receiver side.
403 manual page for the resolver implementation.
407 DNS search list entries.
408 The default value is 3/2 of the interval time.
411 You can also refer one line from another by using
416 for details on the capability.
418 As presented above, all of the advertised parameters have default values
419 defined in specifications, and hence you usually do not have to set them
420 by hand, unless you need special non-default values.
421 It can cause interoperability problem if you use an ill-configured
424 To override a configuration parameter, you can specify the parameter alone.
425 With the following configuration,
427 overrides the router lifetime parameter for the
435 The following example manually configures prefixes advertised from the
438 The configuration must be used with the
444 :addr="2001:db8:ffff:1000::":prefixlen#64:
447 The following example configures the
449 interface and adds two DNS servers and a DNS domain search options
450 using the default option lifetime values.
453 :addr="2001:db8:ffff:1000::":prefixlen#64:\\
454 :rdnss="2001:db8:ffff::10,2001:db8:ffff::2:43":\\
455 :dnssl="example.com":
458 The following example presents the default values in an explicit manner.
459 The configuration is provided just for reference purposes;
460 YOU DO NOT NEED TO HAVE IT AT ALL.
463 :chlim#64:raflags#0:rltime#1800:rtime#0:retrans#0:\\
464 :pinfoflags="la":vltime#2592000:pltime#604800:mtu#0:
466 :addr="2001:db8:ffff:1000::":prefixlen#64:tc=default:
473 Thomas Narten, Erik Nordmark and W. A. Simpson,
475 Neighbor Discovery for IP version 6 (IPv6)
481 Default Router Preferences and More-Specific Routes
485 J. Jeong, S. Park, L. Beloeil, S. Madanapalli
487 IPv6 Router Advertisement Options for DNS Configuration
493 and the configuration file
495 first appeared in WIDE Hydrangea IPv6 protocol stack kit.