1 .\" $KAME: rtadvd.conf.5,v 1.50 2005/01/14 05:30:59 jinmei Exp $
3 .\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the project nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 .Nd config file for router advertisement daemon
37 This file describes how the router advertisement packets must be constructed
38 for each of the interfaces.
42 you do not have to set this configuration file up at all,
43 unless you need some special configurations.
44 You may even omit the file as a whole.
47 daemon will automatically configure itself using default values
48 specified in the specification.
53 Each line in the file describes a network interface.
54 Fields are separated by a colon
56 and each field contains one capability description.
57 Lines may be concatenated by the
60 The comment marker is the
64 Capabilities describe the value to be filled into ICMPv6 router
65 advertisement messages and to control
68 Therefore, you are encouraged to read IETF neighbor discovery documents
69 if you would like to modify the sample configuration file.
71 Note that almost all items have default values.
72 If you omit an item, the default value of the item will be used.
74 There are two items which control the interval of sending router advertisements.
75 These items can be omitted, then
77 will use the default values.
78 .Bl -tag -width indent
80 (num) The maximum time allowed between sending unsolicited
81 multicast router advertisements
83 The default value is 600.
84 Its value must be no less than 4 seconds
85 and no greater than 1800 seconds.
87 (num) The minimum time allowed between sending unsolicited multicast
90 The default value is the one third of value of
92 Its value must be no less than 3 seconds and no greater than .75 *
97 The following items are for ICMPv6 router advertisement message
99 These items can be omitted, then
101 will use the default values.
102 .Bl -tag -width indent
104 (num) The value for Cur Hop Limit field.
105 The default value is 64.
107 (str or num) A 8-bit flags field in router advertisement message header.
108 This field can be specified either as a case-sensitive string or as an
110 A string consists of characters each of which corresponds to a
111 particular flag bit(s).
112 An integer should be the logical OR of all enabled bits.
117 means Managed address configuration flag bit,
122 means Other stateful configuration flag bit.
131 are used to encode router preference.
136 means high, 00 means medium, and 11
141 Bits 10 is reserved, and must not be specified.
142 There is no character to specify the medium preference explicitly.
143 The default value of the entire flag is 0
147 which means no additional
148 configuration methods, and the medium router preference.
150 (num) Router lifetime field
152 The value must be either zero or between
158 runs on a host, this value must explicitly set 0 on all the
159 advertising interfaces as described in
161 The default value is 1800.
163 (num) Reachable time field
164 .Pq unit: milliseconds .
165 The default value is 0, which means unspecified by this router.
167 (num) Retrans Timer field
168 .Pq unit: milliseconds .
169 The default value is 0, which means unspecified by this router.
172 The following items are for ICMPv6 prefix information option,
173 which will be attached to router advertisement header.
174 These items can be omitted, then
176 will automatically get appropriate prefixes from the kernel's routing table,
177 and advertise the prefixes with the default parameters.
182 can be augmented with a number, like
184 to specify multiple prefixes.
185 .Bl -tag -width indent
187 (bool) Specifies no prefix on the network interfaces will be advertised.
190 automatically gathers on-link prefixes from all of the network interfaces
194 disables that behavior.
195 If this is specified and no
197 keyword is specified, no prefix information option will be included in the
200 (num) Time skew to adjust link propagation delays and clock skews
201 between routers on the link
203 This value is used in consistency check for locally-configured and
204 advertised prefix lifetimes, and has its meaning when the local router
205 configures a prefix on the link with a lifetime that decrements in
207 If the value is 0, it means the consistency check will be skipped
209 The default value is 0.
211 (num) Prefix length field.
212 The default value is 64.
214 (str or num) A 8-bit flags field in prefix information option.
215 This field can be specified either as a case-sensitive string or as an
217 A string consists of characters each of which corresponds to a
218 particular flag bit(s).
219 An integer should be the logical OR of all enabled bits.
224 means On-link flag bit,
229 means Autonomous address-configuration flag bit.
230 The default value is "la" or 0xc0, i.e., both bits are set.
232 (str) The address filled into Prefix field.
237 file format as well as IPv6 numeric address, the field MUST be quoted by
238 doublequote character.
240 (num) Valid lifetime field
242 The default value is 2592000 (30 days).
244 (bool) This item means the advertised valid lifetime will decrement
245 in real time, which is disabled by default.
247 (num) Preferred lifetime field
249 The default value is 604800 (7 days).
251 (bool) This item means the advertised preferred lifetime will decrement
252 in real time, which is disabled by default.
255 The following item is for ICMPv6 MTU option,
256 which will be attached to router advertisement header.
257 This item can be omitted, then
259 will use the default value.
260 .Bl -tag -width indent
262 (num or str) MTU (maximum transmission unit) field.
263 If 0 is specified, it means that the option will not be included.
264 The default value is 0.
265 If the special string
267 is specified for this item, MTU option will be included and its value
268 will be set to the interface MTU automatically.
271 The following item controls ICMPv6 source link-layer address option,
272 which will be attached to router advertisement header.
273 As noted above, you can just omit the item, then
275 will use the default value.
276 .Bl -tag -width indent
285 will try to get link-layer address for the interface from the kernel,
286 and attach that in source link-layer address option.
287 If this capability exists,
289 will not attach source link-layer address option to
290 router advertisement packets.
293 The following item controls ICMPv6 home agent information option,
294 which was defined with mobile IPv6 support.
295 It will be attached to router advertisement header just like other options do.
296 .Bl -tag -width indent
298 (num) Specifies home agent preference.
301 must be present as well.
303 (num) Specifies home agent lifetime.
306 When mobile IPv6 support is turned on for
308 advertisement interval option will be attached to router advertisement
309 packet, by configuring
313 The following items are for ICMPv6 route information option,
314 which will be attached to router advertisement header.
315 These items are optional.
316 Each items can be augmented with number, like
318 to specify multiple routes.
319 .Bl -tag -width indent
321 (str) The prefix filled into the Prefix field of route information option.
326 file format as well as IPv6 numeric address, the field MUST be quoted by
327 doublequote character.
329 (num) Prefix length field in route information option.
330 The default value is 64.
332 (str or num) A 8-bit flags field in route information option.
333 Currently only the preference values are defined.
334 The notation is same as that of the raflags field.
344 are used to encode the route preference for the route.
345 The default value is 0x00, i.e., medium preference.
347 (num) route lifetime field in route information option.
349 Since the specification does not define the default value of this
350 item, the value for this item should be specified by hand.
353 allows this item to be unspecified, and uses the router lifetime
354 as the default value in such a case, just for compatibility with an
355 old version of the program.
358 In the above list, each keyword beginning with
360 could be replaced with the one beginning with
362 for backward compatibility reason.
365 is accepted instead of
367 However, keywords that start with
369 have basically been obsoleted, and should not be used any more.
371 The following items are for ICMPv6 Recursive DNS Server Option and
372 DNS Search List Option
374 which will be attached to router advertisement header.
375 These items are optional.
376 .Bl -tag -width indent
378 (str) The IPv6 address of one or more recursive DNS servers.
379 The argument must be inside double quotes.
380 Multiple DNS servers can be specified in a comma-separated string.
381 If different lifetimes are needed for different servers,
382 separate entries can be given by using
387 options with corresponding
393 Note that the maximum number of servers depends on the receiver side.
396 manual page for resolver implementation in
402 The default value is 3/2 of the interval time.
404 (str) One or more domain names in a comma-separated string.
405 These domain names will be used when making DNS queries on a
406 non-fully-qualified domain name.
407 If different lifetimes are needed for different domains, separate entries
408 can be given by using
413 options with corresponding
419 Note that the maximum number of names depends on the receiver side.
422 manual page for resolver implementation in
427 DNS search list entries.
428 The default value is 3/2 of the interval time.
431 The following items are for PREF64 discovery
433 which will advertise the network's NAT64 prefix to clients.
434 These items are optional.
435 .Bl -tag -width indent
437 (str) The prefix to advertise in the PREF64 option.
439 (num) The length of the PREF64 prefix.
440 This must be 96, 64, 56, 48, 40, or 32.
441 If not specified, the default is 96.
442 .It Cm \&pref64lifetime
443 (num) The prefix lifetime to advertise in the PREF64 option.
444 This should be at least as long as the RA lifetime, but cannot be greater
446 If not specified, the default is the RA lifetime, or 65528, whichever is lower.
449 You can also refer one line from another by using
454 for details on the capability.
456 As presented above, all of the advertised parameters have default values
457 defined in specifications, and hence you usually do not have to set them
458 by hand, unless you need special non-default values.
459 It can cause interoperability problem if you use an ill-configured
462 To override a configuration parameter, you can specify the parameter alone.
463 With the following configuration,
465 overrides the router lifetime parameter for the
468 .Bd -literal -offset indent
473 The following example manually configures prefixes advertised from the
476 The configuration must be used with the
480 .Bd -literal -offset indent
482 :addr="2001:db8:ffff:1000::":prefixlen#64:
485 The following example configures the
487 interface and adds two DNS servers and a DNS domain search options
488 using the default option lifetime values.
489 .Bd -literal -offset indent
491 :addr="2001:db8:ffff:1000::":prefixlen#64:\\
492 :rdnss="2001:db8:ffff::10,2001:db8:ffff::2:43":\\
493 :dnssl="example.com":
496 The following example presents the default values in an explicit manner.
497 The configuration is provided just for reference purposes;
498 YOU DO NOT NEED TO HAVE IT AT ALL.
499 .Bd -literal -offset indent
501 :chlim#64:raflags#0:rltime#1800:rtime#0:retrans#0:\\
502 :pinfoflags="la":vltime#2592000:pltime#604800:mtu#0:
504 :addr="2001:db8:ffff:1000::":prefixlen#64:tc=default:
516 .%T Neighbor Discovery for IP version 6 (IPv6)
523 .%T Neighbor Discovery for IP version 6 (IPv6)
524 .%R RFC 2461 (obsoleted by RFC 4861)
528 .%T Default Router Preferences and More-Specific Routes
529 .%R draft-ietf-ipngwg-router-selection-xx.txt
536 .%T IPv6 Router Advertisement Options for DNS Configuration
542 and the configuration file
544 first appeared in WIDE Hydrangea IPv6 protocol stack kit.