xref: /freebsd/usr.sbin/rtadvd/rtadvd.conf.5 (revision 77f06c476c8cb8700bd1c154a4f4314d51286378)
19cc94db2SHajimu UMEMOTO.\"	$KAME: rtadvd.conf.5,v 1.50 2005/01/14 05:30:59 jinmei Exp $
2b26e03e9SKris Kennaway.\"
39a4365d0SYoshinobu Inoue.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
49a4365d0SYoshinobu Inoue.\" All rights reserved.
59a4365d0SYoshinobu Inoue.\"
69a4365d0SYoshinobu Inoue.\" Redistribution and use in source and binary forms, with or without
79a4365d0SYoshinobu Inoue.\" modification, are permitted provided that the following conditions
89a4365d0SYoshinobu Inoue.\" are met:
99a4365d0SYoshinobu Inoue.\" 1. Redistributions of source code must retain the above copyright
109a4365d0SYoshinobu Inoue.\"    notice, this list of conditions and the following disclaimer.
119a4365d0SYoshinobu Inoue.\" 2. Redistributions in binary form must reproduce the above copyright
129a4365d0SYoshinobu Inoue.\"    notice, this list of conditions and the following disclaimer in the
139a4365d0SYoshinobu Inoue.\"    documentation and/or other materials provided with the distribution.
149a4365d0SYoshinobu Inoue.\" 3. Neither the name of the project nor the names of its contributors
159a4365d0SYoshinobu Inoue.\"    may be used to endorse or promote products derived from this software
169a4365d0SYoshinobu Inoue.\"    without specific prior written permission.
179a4365d0SYoshinobu Inoue.\"
189a4365d0SYoshinobu Inoue.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
199a4365d0SYoshinobu Inoue.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
209a4365d0SYoshinobu Inoue.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
219a4365d0SYoshinobu Inoue.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
229a4365d0SYoshinobu Inoue.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
239a4365d0SYoshinobu Inoue.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
249a4365d0SYoshinobu Inoue.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
259a4365d0SYoshinobu Inoue.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
269a4365d0SYoshinobu Inoue.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
279a4365d0SYoshinobu Inoue.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
289a4365d0SYoshinobu Inoue.\" SUCH DAMAGE.
299a4365d0SYoshinobu Inoue.\"
30db82af41SHiroki Sato.Dd June 4, 2011
319a4365d0SYoshinobu Inoue.Dt RTADVD.CONF 5
32b26e03e9SKris Kennaway.Os
339a4365d0SYoshinobu Inoue.Sh NAME
349a4365d0SYoshinobu Inoue.Nm rtadvd.conf
359a4365d0SYoshinobu Inoue.Nd config file for router advertisement daemon
369a4365d0SYoshinobu Inoue.Sh DESCRIPTION
37a336d37dSJun-ichiro itojun HaginoThis file describes how the router advertisement packets must be constructed
389a4365d0SYoshinobu Inouefor each of the interfaces.
39a336d37dSJun-ichiro itojun Hagino.Pp
40e70bc6a4SHajimu UMEMOTOAs described in
41e70bc6a4SHajimu UMEMOTO.Xr rtadvd 8 ,
42e70bc6a4SHajimu UMEMOTOyou do not have to set this configuration file up at all,
43e70bc6a4SHajimu UMEMOTOunless you need some special configurations.
44a336d37dSJun-ichiro itojun HaginoYou may even omit the file as a whole.
45a336d37dSJun-ichiro itojun HaginoIn such cases, the
46e70bc6a4SHajimu UMEMOTO.Nm rtadvd
47e70bc6a4SHajimu UMEMOTOdaemon will automatically configure itself using default values
48e70bc6a4SHajimu UMEMOTOspecified in the specification.
499a4365d0SYoshinobu Inoue.Pp
50b26e03e9SKris KennawayIt obeys the famous
519a4365d0SYoshinobu Inoue.Xr termcap 5
529a4365d0SYoshinobu Inouefile format.
539a4365d0SYoshinobu InoueEach line in the file describes a network interface.
549a4365d0SYoshinobu InoueFields are separated by a colon
55b26e03e9SKris Kennaway.Pq Sq \&: ,
569a4365d0SYoshinobu Inoueand each field contains one capability description.
57a336d37dSJun-ichiro itojun HaginoLines may be concatenated by the
58b26e03e9SKris Kennaway.Sq \e
59b26e03e9SKris Kennawaycharacter.
60b26e03e9SKris KennawayThe comment marker is the
61a336d37dSJun-ichiro itojun Hagino.Sq \&#
62b26e03e9SKris Kennawaycharacter.
639a4365d0SYoshinobu Inoue.Sh CAPABILITIES
649a4365d0SYoshinobu InoueCapabilities describe the value to be filled into ICMPv6 router
65b26e03e9SKris Kennawayadvertisement messages and to control
669a4365d0SYoshinobu Inoue.Xr rtadvd 8
679a4365d0SYoshinobu Inouebehavior.
68a336d37dSJun-ichiro itojun HaginoTherefore, you are encouraged to read IETF neighbor discovery documents
69b26e03e9SKris Kennawayif you would like to modify the sample configuration file.
709a4365d0SYoshinobu Inoue.Pp
71a336d37dSJun-ichiro itojun HaginoNote that almost all items have default values.
729a4365d0SYoshinobu InoueIf you omit an item, the default value of the item will be used.
739a4365d0SYoshinobu Inoue.Pp
74b26e03e9SKris KennawayThere are two items which control the interval of sending router advertisements.
75e70bc6a4SHajimu UMEMOTOThese items can be omitted, then
76e70bc6a4SHajimu UMEMOTO.Nm rtadvd
77e70bc6a4SHajimu UMEMOTOwill use the default values.
789a4365d0SYoshinobu Inoue.Bl -tag -width indent
799a4365d0SYoshinobu Inoue.It Cm \&maxinterval
809a4365d0SYoshinobu Inoue(num) The maximum time allowed between sending unsolicited
819a4365d0SYoshinobu Inouemulticast router advertisements
82fc35a81bSHajimu UMEMOTO.Pq unit: seconds .
83b26e03e9SKris KennawayThe default value is 600.
84b26e03e9SKris KennawayIts value must be no less than 4 seconds
859a4365d0SYoshinobu Inoueand no greater than 1800 seconds.
869a4365d0SYoshinobu Inoue.It Cm \&mininterval
879a4365d0SYoshinobu Inoue(num) The minimum time allowed between sending unsolicited multicast
889a4365d0SYoshinobu Inouerouter advertisements
89fc35a81bSHajimu UMEMOTO.Pq unit: seconds .
909a4365d0SYoshinobu InoueThe default value is the one third of value of
91a336d37dSJun-ichiro itojun Hagino.Cm maxinterval .
929a4365d0SYoshinobu InoueIts value must be no less than 3 seconds and no greater than .75 *
939a4365d0SYoshinobu Inouethe value of
94a336d37dSJun-ichiro itojun Hagino.Cm maxinterval .
959a4365d0SYoshinobu Inoue.El
969a4365d0SYoshinobu Inoue.Pp
979a4365d0SYoshinobu InoueThe following items are for ICMPv6 router advertisement message
989a4365d0SYoshinobu Inoueheader.
99e70bc6a4SHajimu UMEMOTOThese items can be omitted, then
100e70bc6a4SHajimu UMEMOTO.Nm rtadvd
101e70bc6a4SHajimu UMEMOTOwill use the default values.
1029a4365d0SYoshinobu Inoue.Bl -tag -width indent
1039a4365d0SYoshinobu Inoue.It Cm \&chlim
1049a4365d0SYoshinobu Inoue(num) The value for Cur Hop Limit field.
1059a4365d0SYoshinobu InoueThe default value is 64.
1069a4365d0SYoshinobu Inoue.It Cm \&raflags
107fc35a81bSHajimu UMEMOTO(str or num) A 8-bit flags field in router advertisement message header.
108fc35a81bSHajimu UMEMOTOThis field can be specified either as a case-sensitive string or as an
109fc35a81bSHajimu UMEMOTOinteger.
11093986436SBjoern A. ZeebA string consists of characters each of which corresponds to a
111fc35a81bSHajimu UMEMOTOparticular flag bit(s).
112fc35a81bSHajimu UMEMOTOAn integer should be the logical OR of all enabled bits.
1139a4365d0SYoshinobu InoueBit 7
114fc35a81bSHajimu UMEMOTO.Po
115fc35a81bSHajimu UMEMOTO.Li 'm' or 0x80
116fc35a81bSHajimu UMEMOTO.Pc
1179a4365d0SYoshinobu Inouemeans Managed address configuration flag bit,
1189a4365d0SYoshinobu Inoueand Bit 6
119fc35a81bSHajimu UMEMOTO.Po
120fc35a81bSHajimu UMEMOTO.Li 'o' or 0x40
121fc35a81bSHajimu UMEMOTO.Pc
1229a4365d0SYoshinobu Inouemeans Other stateful configuration flag bit.
12333841545SHajimu UMEMOTOBit 4
124fc35a81bSHajimu UMEMOTO.Po
125fc35a81bSHajimu UMEMOTO.Li 0x10
126fc35a81bSHajimu UMEMOTO.Pc
12733841545SHajimu UMEMOTOand Bit 3
128fc35a81bSHajimu UMEMOTO.Po
129fc35a81bSHajimu UMEMOTO.Li 0x08
130fc35a81bSHajimu UMEMOTO.Pc
13133841545SHajimu UMEMOTOare used to encode router preference.
132fc35a81bSHajimu UMEMOTOBits 01
133fc35a81bSHajimu UMEMOTO.Po
134fc35a81bSHajimu UMEMOTOor 'h'
135fc35a81bSHajimu UMEMOTO.Pc
136fc35a81bSHajimu UMEMOTOmeans high, 00 means medium, and 11
137fc35a81bSHajimu UMEMOTO.Po
138fc35a81bSHajimu UMEMOTOor 'l'
139fc35a81bSHajimu UMEMOTO.Pc
140fc35a81bSHajimu UMEMOTOmeans low.
141c41387f6SSUZUKI ShinsukeBits 10 is reserved, and must not be specified.
142fc35a81bSHajimu UMEMOTOThere is no character to specify the medium preference explicitly.
143fc35a81bSHajimu UMEMOTOThe default value of the entire flag is 0
144fc35a81bSHajimu UMEMOTO.Po
145fc35a81bSHajimu UMEMOTOor a null string,
146fc35a81bSHajimu UMEMOTO.Pc
147c41387f6SSUZUKI Shinsukewhich means no additional
148c41387f6SSUZUKI Shinsukeconfiguration methods, and the medium router preference.
1499a4365d0SYoshinobu Inoue.It Cm \&rltime
1509a4365d0SYoshinobu Inoue(num) Router lifetime field
151fc35a81bSHajimu UMEMOTO.Pq unit: seconds .
152fc35a81bSHajimu UMEMOTOThe value must be either zero or between
153c41387f6SSUZUKI Shinsukethe value of
154c41387f6SSUZUKI Shinsuke.Cm maxinterval
155c41387f6SSUZUKI Shinsukeand 9000.
156a336d37dSJun-ichiro itojun HaginoWhen
157a336d37dSJun-ichiro itojun Hagino.Nm rtadvd
158a336d37dSJun-ichiro itojun Haginoruns on a host, this value must explicitly set 0 on all the
159a336d37dSJun-ichiro itojun Haginoadvertising interfaces as described in
160a336d37dSJun-ichiro itojun Hagino.Xr rtadvd 8 .
1619a4365d0SYoshinobu InoueThe default value is 1800.
1629a4365d0SYoshinobu Inoue.It Cm \&rtime
1639a4365d0SYoshinobu Inoue(num) Reachable time field
164fc35a81bSHajimu UMEMOTO.Pq unit: milliseconds .
1659a4365d0SYoshinobu InoueThe default value is 0, which means unspecified by this router.
1669a4365d0SYoshinobu Inoue.It Cm \&retrans
1679a4365d0SYoshinobu Inoue(num) Retrans Timer field
168fc35a81bSHajimu UMEMOTO.Pq unit: milliseconds .
1699a4365d0SYoshinobu InoueThe default value is 0, which means unspecified by this router.
1709a4365d0SYoshinobu Inoue.El
1719a4365d0SYoshinobu Inoue.Pp
1729a4365d0SYoshinobu InoueThe following items are for ICMPv6 prefix information option,
1739a4365d0SYoshinobu Inouewhich will be attached to router advertisement header.
174e70bc6a4SHajimu UMEMOTOThese items can be omitted, then
175e70bc6a4SHajimu UMEMOTO.Nm rtadvd
176e70bc6a4SHajimu UMEMOTOwill automatically get appropriate prefixes from the kernel's routing table,
177e70bc6a4SHajimu UMEMOTOand advertise the prefixes with the default parameters.
178fc35a81bSHajimu UMEMOTOKeywords other than
179fc35a81bSHajimu UMEMOTO.Cm clockskew
180db82af41SHiroki Satoand
181db82af41SHiroki Sato.Cm noifprefix
182fc35a81bSHajimu UMEMOTOcan be augmented with a number, like
183fc35a81bSHajimu UMEMOTO.Dq Li prefix2 ,
184fc35a81bSHajimu UMEMOTOto specify multiple prefixes.
1859a4365d0SYoshinobu Inoue.Bl -tag -width indent
186db82af41SHiroki Sato.It Cm \&noifprefix
187db82af41SHiroki Sato(bool) Specifies no prefix on the network interfaces will be advertised.
188db82af41SHiroki SatoBy default
189db82af41SHiroki Sato.Nm rtadvd
190db82af41SHiroki Satoautomatically gathers on-link prefixes from all of the network interfaces
191db82af41SHiroki Satoand advertise them.
192db82af41SHiroki SatoThe
193db82af41SHiroki Sato.Cm noifprefix
194db82af41SHiroki Satodisables that behavior.
195db82af41SHiroki SatoIf this is specified and no
196db82af41SHiroki Sato.Cm addr
197db82af41SHiroki Satokeyword is specified, no prefix information option will be included in the
198db82af41SHiroki Satomessage.
19933841545SHajimu UMEMOTO.It Cm \&clockskew
20033841545SHajimu UMEMOTO(num) Time skew to adjust link propagation delays and clock skews
20157bd0fc6SJens Schweikhardtbetween routers on the link
202fc35a81bSHajimu UMEMOTO.Pq unit: seconds .
20333841545SHajimu UMEMOTOThis value is used in consistency check for locally-configured and
20433841545SHajimu UMEMOTOadvertised prefix lifetimes, and has its meaning when the local router
20533841545SHajimu UMEMOTOconfigures a prefix on the link with a lifetime that decrements in
20633841545SHajimu UMEMOTOreal time.
20733841545SHajimu UMEMOTOIf the value is 0, it means the consistency check will be skipped
20833841545SHajimu UMEMOTOfor such prefixes.
20933841545SHajimu UMEMOTOThe default value is 0.
2109a4365d0SYoshinobu Inoue.It Cm \&prefixlen
2119a4365d0SYoshinobu Inoue(num) Prefix length field.
2129a4365d0SYoshinobu InoueThe default value is 64.
2139a4365d0SYoshinobu Inoue.It Cm \&pinfoflags
214fc35a81bSHajimu UMEMOTO(str or num) A 8-bit flags field in prefix information option.
215fc35a81bSHajimu UMEMOTOThis field can be specified either as a case-sensitive string or as an
216fc35a81bSHajimu UMEMOTOinteger.
21702ac77f2SUlrich SpörleinA string consists of characters each of which corresponds to a
218fc35a81bSHajimu UMEMOTOparticular flag bit(s).
219fc35a81bSHajimu UMEMOTOAn integer should be the logical OR of all enabled bits.
2209a4365d0SYoshinobu InoueBit 7
221fc35a81bSHajimu UMEMOTO.Po
222fc35a81bSHajimu UMEMOTO.Li 'l' or 0x80
223fc35a81bSHajimu UMEMOTO.Pc
2249a4365d0SYoshinobu Inouemeans On-link flag bit,
2259a4365d0SYoshinobu Inoueand Bit 6
226fc35a81bSHajimu UMEMOTO.Po
227fc35a81bSHajimu UMEMOTO.Li 'a' or 0x40
228fc35a81bSHajimu UMEMOTO.Pc
2299a4365d0SYoshinobu Inouemeans Autonomous address-configuration flag bit.
230fc35a81bSHajimu UMEMOTOThe default value is "la" or 0xc0, i.e., both bits are set.
2319a4365d0SYoshinobu Inoue.It Cm \&addr
2329a4365d0SYoshinobu Inoue(str) The address filled into Prefix field.
2339a4365d0SYoshinobu InoueSince
2349a4365d0SYoshinobu Inoue.Dq \&:
2359a4365d0SYoshinobu Inoueis used for
2369a4365d0SYoshinobu Inoue.Xr termcap 5
2379a4365d0SYoshinobu Inouefile format as well as IPv6 numeric address, the field MUST be quoted by
2389a4365d0SYoshinobu Inouedoublequote character.
2399a4365d0SYoshinobu Inoue.It Cm \&vltime
2409a4365d0SYoshinobu Inoue(num) Valid lifetime field
241fc35a81bSHajimu UMEMOTO.Pq unit: seconds .
2429a4365d0SYoshinobu InoueThe default value is 2592000 (30 days).
24333841545SHajimu UMEMOTO.It Cm \&vltimedecr
2449cc94db2SHajimu UMEMOTO(bool) This item means the advertised valid lifetime will decrement
24533841545SHajimu UMEMOTOin real time, which is disabled by default.
2469a4365d0SYoshinobu Inoue.It Cm \&pltime
2479a4365d0SYoshinobu Inoue(num) Preferred lifetime field
248fc35a81bSHajimu UMEMOTO.Pq unit: seconds .
2499a4365d0SYoshinobu InoueThe default value is 604800 (7 days).
25033841545SHajimu UMEMOTO.It Cm \&pltimedecr
2519cc94db2SHajimu UMEMOTO(bool) This item means the advertised preferred lifetime will decrement
25233841545SHajimu UMEMOTOin real time, which is disabled by default.
2539a4365d0SYoshinobu Inoue.El
2549a4365d0SYoshinobu Inoue.Pp
255e70bc6a4SHajimu UMEMOTOThe following item is for ICMPv6 MTU option,
2569a4365d0SYoshinobu Inouewhich will be attached to router advertisement header.
257e70bc6a4SHajimu UMEMOTOThis item can be omitted, then
258e70bc6a4SHajimu UMEMOTO.Nm rtadvd
259e70bc6a4SHajimu UMEMOTOwill use the default value.
2609a4365d0SYoshinobu Inoue.Bl -tag -width indent
2619a4365d0SYoshinobu Inoue.It Cm \&mtu
2629a4365d0SYoshinobu Inoue(num or str) MTU (maximum transmission unit) field.
2639a4365d0SYoshinobu InoueIf 0 is specified, it means that the option will not be included.
264b26e03e9SKris KennawayThe default value is 0.
265b26e03e9SKris KennawayIf the special string
2669a4365d0SYoshinobu Inoue.Dq auto
2679a4365d0SYoshinobu Inoueis specified for this item, MTU option will be included and its value
2689a4365d0SYoshinobu Inouewill be set to the interface MTU automatically.
2699a4365d0SYoshinobu Inoue.El
2709a4365d0SYoshinobu Inoue.Pp
2719a4365d0SYoshinobu InoueThe following item controls ICMPv6 source link-layer address option,
2729a4365d0SYoshinobu Inouewhich will be attached to router advertisement header.
273e70bc6a4SHajimu UMEMOTOAs noted above, you can just omit the item, then
274e70bc6a4SHajimu UMEMOTO.Nm rtadvd
275e70bc6a4SHajimu UMEMOTOwill use the default value.
2769a4365d0SYoshinobu Inoue.Bl -tag -width indent
2779a4365d0SYoshinobu Inoue.It Cm \&nolladdr
2789a4365d0SYoshinobu Inoue(bool) By default
279fc35a81bSHajimu UMEMOTO.Po
280fc35a81bSHajimu UMEMOTOif
2819a4365d0SYoshinobu Inoue.Cm \&nolladdr
282fc35a81bSHajimu UMEMOTOis not specified
283fc35a81bSHajimu UMEMOTO.Pc ,
2849a4365d0SYoshinobu Inoue.Xr rtadvd 8
2859a4365d0SYoshinobu Inouewill try to get link-layer address for the interface from the kernel,
2869a4365d0SYoshinobu Inoueand attach that in source link-layer address option.
2879a4365d0SYoshinobu InoueIf this capability exists,
2889a4365d0SYoshinobu Inoue.Xr rtadvd 8
2899a4365d0SYoshinobu Inouewill not attach source link-layer address option to
2909a4365d0SYoshinobu Inouerouter advertisement packets.
2919a4365d0SYoshinobu Inoue.El
2929a4365d0SYoshinobu Inoue.Pp
293fc35a81bSHajimu UMEMOTOThe following item controls ICMPv6 home agent information option,
29433841545SHajimu UMEMOTOwhich was defined with mobile IPv6 support.
29533841545SHajimu UMEMOTOIt will be attached to router advertisement header just like other options do.
29633841545SHajimu UMEMOTO.Bl -tag -width indent
29733841545SHajimu UMEMOTO.It Cm \&hapref
29833841545SHajimu UMEMOTO(num) Specifies home agent preference.
29933841545SHajimu UMEMOTOIf set to non-zero,
30033841545SHajimu UMEMOTO.Cm \&hatime
30133841545SHajimu UMEMOTOmust be present as well.
30233841545SHajimu UMEMOTO.It Cm \&hatime
30333841545SHajimu UMEMOTO(num) Specifies home agent lifetime.
30433841545SHajimu UMEMOTO.El
30533841545SHajimu UMEMOTO.Pp
30633841545SHajimu UMEMOTOWhen mobile IPv6 support is turned on for
30733841545SHajimu UMEMOTO.Xr rtadvd 8 ,
30833841545SHajimu UMEMOTOadvertisement interval option will be attached to router advertisement
30933841545SHajimu UMEMOTOpacket, by configuring
31033841545SHajimu UMEMOTO.Cm \&maxinterval
31133841545SHajimu UMEMOTOexplicitly.
31233841545SHajimu UMEMOTO.Pp
31333841545SHajimu UMEMOTOThe following items are for ICMPv6 route information option,
31433841545SHajimu UMEMOTOwhich will be attached to router advertisement header.
31533841545SHajimu UMEMOTOThese items are optional.
316fc35a81bSHajimu UMEMOTOEach items can be augmented with number, like
317fc35a81bSHajimu UMEMOTO.Dq Li rtplen2 ,
318fc35a81bSHajimu UMEMOTOto specify multiple routes.
31933841545SHajimu UMEMOTO.Bl -tag -width indent
320fc35a81bSHajimu UMEMOTO.It Cm \&rtprefix
32133841545SHajimu UMEMOTO(str) The prefix filled into the Prefix field of route information option.
32233841545SHajimu UMEMOTOSince
32333841545SHajimu UMEMOTO.Dq \&:
32433841545SHajimu UMEMOTOis used for
32533841545SHajimu UMEMOTO.Xr termcap 5
32633841545SHajimu UMEMOTOfile format as well as IPv6 numeric address, the field MUST be quoted by
32733841545SHajimu UMEMOTOdoublequote character.
328fc35a81bSHajimu UMEMOTO.It Cm \&rtplen
329fc35a81bSHajimu UMEMOTO(num) Prefix length field in route information option.
330fc35a81bSHajimu UMEMOTOThe default value is 64.
331fc35a81bSHajimu UMEMOTO.It Cm \&rtflags
332fc35a81bSHajimu UMEMOTO(str or num) A 8-bit flags field in route information option.
333fc35a81bSHajimu UMEMOTOCurrently only the preference values are defined.
334fc35a81bSHajimu UMEMOTOThe notation is same as that of the raflags field.
335fc35a81bSHajimu UMEMOTOBit 4
336fc35a81bSHajimu UMEMOTO.Po
337fc35a81bSHajimu UMEMOTO.Li 0x10
338fc35a81bSHajimu UMEMOTO.Pc
339fc35a81bSHajimu UMEMOTOand
340959d6c24SRuslan ErmilovBit 3
341fc35a81bSHajimu UMEMOTO.Po
342fc35a81bSHajimu UMEMOTO.Li 0x08
343fc35a81bSHajimu UMEMOTO.Pc
344fc35a81bSHajimu UMEMOTOare used to encode the route preference for the route.
345160ad8f1SRuslan ErmilovThe default value is 0x00, i.e., medium preference.
346fc35a81bSHajimu UMEMOTO.It Cm \&rtltime
34733841545SHajimu UMEMOTO(num) route lifetime field in route information option.
348fc35a81bSHajimu UMEMOTO.Pq unit: seconds .
349fc35a81bSHajimu UMEMOTOSince the specification does not define the default value of this
350fc35a81bSHajimu UMEMOTOitem, the value for this item should be specified by hand.
351fc35a81bSHajimu UMEMOTOHowever,
352fc35a81bSHajimu UMEMOTO.Nm rtadvd
353fc35a81bSHajimu UMEMOTOallows this item to be unspecified, and uses the router lifetime
354fc35a81bSHajimu UMEMOTOas the default value in such a case, just for compatibility with an
355fc35a81bSHajimu UMEMOTOold version of the program.
35633841545SHajimu UMEMOTO.El
357fc35a81bSHajimu UMEMOTO.Pp
358fc35a81bSHajimu UMEMOTOIn the above list, each keyword beginning with
359fc35a81bSHajimu UMEMOTO.Dq Li rt
360fc35a81bSHajimu UMEMOTOcould be replaced with the one beginning with
361fc35a81bSHajimu UMEMOTO.Dq Li rtr
362fc35a81bSHajimu UMEMOTOfor backward compatibility reason.
363fc35a81bSHajimu UMEMOTOFor example,
364fc35a81bSHajimu UMEMOTO.Cm rtrplen
365fc35a81bSHajimu UMEMOTOis accepted instead of
366fc35a81bSHajimu UMEMOTO.Cm rtplen .
367fc35a81bSHajimu UMEMOTOHowever, keywords that start with
368fc35a81bSHajimu UMEMOTO.Dq Li rtr
369fc35a81bSHajimu UMEMOTOhave basically been obsoleted, and should not be used any more.
370fc35a81bSHajimu UMEMOTO.Pp
371db82af41SHiroki SatoThe following items are for ICMPv6 Recursive DNS Server Option and
372db82af41SHiroki SatoDNS Search List Option
373db82af41SHiroki Sato.Pq RFC 6106 ,
374db82af41SHiroki Satowhich will be attached to router advertisement header.
375db82af41SHiroki SatoThese items are optional.
376db82af41SHiroki Sato.Bl -tag -width indent
377db82af41SHiroki Sato.It Cm \&rdnss
378db82af41SHiroki Sato(str) The IPv6 address of one or more recursive DNS servers.
379db82af41SHiroki SatoThe argument must be inside double quotes.
380db82af41SHiroki SatoMultiple DNS servers can be specified in a comma-separated string.
381db82af41SHiroki SatoIf different lifetimes are needed for different servers,
382db82af41SHiroki Satoseparate entries can be given by using
383db82af41SHiroki Sato.Cm rdnss ,
384db82af41SHiroki Sato.Cm rdnss0 ,
385db82af41SHiroki Sato.Cm rdnss1 ,
386db82af41SHiroki Sato.Cm rdnss2 ...
387db82af41SHiroki Satooptions with corresponding
388db82af41SHiroki Sato.Cm rdnssltime ,
389db82af41SHiroki Sato.Cm rdnssltime0 ,
390db82af41SHiroki Sato.Cm rdnssltime1 ,
391db82af41SHiroki Sato.Cm rdnssltime2 ...
392db82af41SHiroki Satoentries.
393db82af41SHiroki SatoNote that the maximum number of servers depends on the receiver side.
394db82af41SHiroki SatoSee also
395db82af41SHiroki Sato.Xr resolver 5
396db82af41SHiroki Satomanual page for resolver implementation in
397db82af41SHiroki Sato.Fx .
398db82af41SHiroki Sato.It Cm \&rdnssltime
399db82af41SHiroki SatoThe lifetime of the
400db82af41SHiroki Sato.Cm rdnss
401db82af41SHiroki SatoDNS server entries.
402db82af41SHiroki SatoThe default value is 3/2 of the interval time.
403db82af41SHiroki Sato.It Cm \&dnssl
404db82af41SHiroki Sato(str) One or more domain names in a comma-separated string.
405db82af41SHiroki SatoThese domain names will be used when making DNS queries on a
406db82af41SHiroki Satonon-fully-qualified domain name.
407db82af41SHiroki SatoIf different lifetimes are needed for different domains, separate entries
408db82af41SHiroki Satocan be given by using
409db82af41SHiroki Sato.Cm dnssl ,
410db82af41SHiroki Sato.Cm dnssl0 ,
411db82af41SHiroki Sato.Cm dnssl1 ,
412db82af41SHiroki Sato.Cm dnssl2 ...
413db82af41SHiroki Satooptions with corresponding
414db82af41SHiroki Sato.Cm dnsslltime ,
415db82af41SHiroki Sato.Cm dnsslltime0 ,
416db82af41SHiroki Sato.Cm dnsslltime1 ,
417db82af41SHiroki Sato.Cm dnsslltime2 ...
418db82af41SHiroki Satoentries.
419db82af41SHiroki SatoNote that the maximum number of names depends on the receiver side.
420db82af41SHiroki SatoSee also
421db82af41SHiroki Sato.Xr resolver 5
422db82af41SHiroki Satomanual page for resolver implementation in
423db82af41SHiroki Sato.Fx .
424db82af41SHiroki Sato.It Cm \&dnsslltime
425db82af41SHiroki SatoThe lifetime of the
426db82af41SHiroki Sato.Cm dnssl
427db82af41SHiroki SatoDNS search list entries.
428db82af41SHiroki SatoThe default value is 3/2 of the interval time.
429db82af41SHiroki Sato.El
430db82af41SHiroki Sato.Pp
431*77f06c47SLexi WinterThe following items are for PREF64 discovery
432*77f06c47SLexi Winter.Pq RFC 8781 ,
433*77f06c47SLexi Winterwhich will advertise the network's NAT64 prefix to clients.
434*77f06c47SLexi WinterThese items are optional.
435*77f06c47SLexi Winter.Bl -tag -width indent
436*77f06c47SLexi Winter.It Cm \&pref64
437*77f06c47SLexi Winter(str) The prefix to advertise in the PREF64 option.
438*77f06c47SLexi Winter.It Cm \&pref64len
439*77f06c47SLexi Winter(num) The length of the PREF64 prefix.
440*77f06c47SLexi WinterThis must be 96, 64, 56, 48, 40, or 32.
441*77f06c47SLexi WinterIf not specified, the default is 96.
442*77f06c47SLexi Winter.It Cm \&pref64lifetime
443*77f06c47SLexi Winter(num) The prefix lifetime to advertise in the PREF64 option.
444*77f06c47SLexi WinterThis should be at least as long as the RA lifetime, but cannot be greater
445*77f06c47SLexi Winterthan 65528.
446*77f06c47SLexi WinterIf not specified, the default is the RA lifetime, or 65528, whichever is lower.
447*77f06c47SLexi Winter.El
448*77f06c47SLexi Winter.Pp
4499a4365d0SYoshinobu InoueYou can also refer one line from another by using
4509a4365d0SYoshinobu Inoue.Cm tc
4519a4365d0SYoshinobu Inouecapability.
4529a4365d0SYoshinobu InoueSee
4539a4365d0SYoshinobu Inoue.Xr termcap 5
4549a4365d0SYoshinobu Inouefor details on the capability.
455251c176fSRuslan Ermilov.Sh EXAMPLES
456a336d37dSJun-ichiro itojun HaginoAs presented above, all of the advertised parameters have default values
457a336d37dSJun-ichiro itojun Haginodefined in specifications, and hence you usually do not have to set them
458a336d37dSJun-ichiro itojun Haginoby hand, unless you need special non-default values.
459a336d37dSJun-ichiro itojun HaginoIt can cause interoperability problem if you use an ill-configured
460a336d37dSJun-ichiro itojun Haginoparameter.
461a336d37dSJun-ichiro itojun Hagino.Pp
462a336d37dSJun-ichiro itojun HaginoTo override a configuration parameter, you can specify the parameter alone.
463a336d37dSJun-ichiro itojun HaginoWith the following configuration,
464a336d37dSJun-ichiro itojun Hagino.Xr rtadvd 8
465a336d37dSJun-ichiro itojun Haginooverrides the router lifetime parameter for the
466a336d37dSJun-ichiro itojun Hagino.Li ne0
467a336d37dSJun-ichiro itojun Haginointerface.
46846355096SJoel Dahl.Bd -literal -offset indent
469a336d37dSJun-ichiro itojun Haginone0:\\
470a336d37dSJun-ichiro itojun Hagino	:rltime#0:
471a336d37dSJun-ichiro itojun Hagino.Ed
472a336d37dSJun-ichiro itojun Hagino.Pp
473a336d37dSJun-ichiro itojun HaginoThe following example manually configures prefixes advertised from the
474a336d37dSJun-ichiro itojun Hagino.Li ef0
475a336d37dSJun-ichiro itojun Haginointerface.
476a336d37dSJun-ichiro itojun HaginoThe configuration must be used with the
477a336d37dSJun-ichiro itojun Hagino.Fl s
478a336d37dSJun-ichiro itojun Haginooption to
479a336d37dSJun-ichiro itojun Hagino.Xr rtadvd 8 .
48046355096SJoel Dahl.Bd -literal -offset indent
481a336d37dSJun-ichiro itojun Haginoef0:\\
482db82af41SHiroki Sato	:addr="2001:db8:ffff:1000::":prefixlen#64:
483db82af41SHiroki Sato.Ed
484db82af41SHiroki Sato.Pp
485db82af41SHiroki SatoThe following example configures the
486db82af41SHiroki Sato.Li wlan0
487db82af41SHiroki Satointerface and adds two DNS servers and a DNS domain search options
488db82af41SHiroki Satousing the default option lifetime values.
48946355096SJoel Dahl.Bd -literal -offset indent
490db82af41SHiroki Satowlan0:\\
491db82af41SHiroki Sato	:addr="2001:db8:ffff:1000::":prefixlen#64:\\
492db82af41SHiroki Sato	:rdnss="2001:db8:ffff::10,2001:db8:ffff::2:43":\\
493db82af41SHiroki Sato	:dnssl="example.com":
494a336d37dSJun-ichiro itojun Hagino.Ed
495a336d37dSJun-ichiro itojun Hagino.Pp
496a336d37dSJun-ichiro itojun HaginoThe following example presents the default values in an explicit manner.
497a336d37dSJun-ichiro itojun HaginoThe configuration is provided just for reference purposes;
498a336d37dSJun-ichiro itojun HaginoYOU DO NOT NEED TO HAVE IT AT ALL.
49946355096SJoel Dahl.Bd -literal -offset indent
500a336d37dSJun-ichiro itojun Haginodefault:\\
501a336d37dSJun-ichiro itojun Hagino	:chlim#64:raflags#0:rltime#1800:rtime#0:retrans#0:\\
502fc35a81bSHajimu UMEMOTO	:pinfoflags="la":vltime#2592000:pltime#604800:mtu#0:
503a336d37dSJun-ichiro itojun Haginoef0:\\
504db82af41SHiroki Sato	:addr="2001:db8:ffff:1000::":prefixlen#64:tc=default:
5059a4365d0SYoshinobu Inoue.Ed
5069a4365d0SYoshinobu Inoue.Sh SEE ALSO
507db82af41SHiroki Sato.Xr resolver 5 ,
508914f6e62SJoel Dahl.Xr termcap 5 ,
5099a4365d0SYoshinobu Inoue.Xr rtadvd 8 ,
5109a4365d0SYoshinobu Inoue.Xr rtsol 8
511160ad8f1SRuslan Ermilov.Rs
512160ad8f1SRuslan Ermilov.%A Thomas Narten
513160ad8f1SRuslan Ermilov.%A Erik Nordmark
514160ad8f1SRuslan Ermilov.%A W. A. Simpson
515db82af41SHiroki Sato.%A Hesham Soliman
516160ad8f1SRuslan Ermilov.%T Neighbor Discovery for IP version 6 (IPv6)
517db82af41SHiroki Sato.%R RFC 4861
518db82af41SHiroki Sato.Re
519db82af41SHiroki Sato.Rs
520db82af41SHiroki Sato.%A Thomas Narten
521db82af41SHiroki Sato.%A Erik Nordmark
522db82af41SHiroki Sato.%A W. A. Simpson
523db82af41SHiroki Sato.%T Neighbor Discovery for IP version 6 (IPv6)
524db82af41SHiroki Sato.%R RFC 2461 (obsoleted by RFC 4861)
525160ad8f1SRuslan Ermilov.Re
526160ad8f1SRuslan Ermilov.Rs
527160ad8f1SRuslan Ermilov.%A Richard Draves
528160ad8f1SRuslan Ermilov.%T Default Router Preferences and More-Specific Routes
529160ad8f1SRuslan Ermilov.%R draft-ietf-ipngwg-router-selection-xx.txt
530160ad8f1SRuslan Ermilov.Re
531db82af41SHiroki Sato.Rs
532db82af41SHiroki Sato.%A J. Jeong
533db82af41SHiroki Sato.%A S. Park
534db82af41SHiroki Sato.%A L. Beloeil
535db82af41SHiroki Sato.%A S. Madanapalli
536db82af41SHiroki Sato.%T IPv6 Router Advertisement Options for DNS Configuration
537db82af41SHiroki Sato.%R RFC 6106
538db82af41SHiroki Sato.Re
5399a4365d0SYoshinobu Inoue.Sh HISTORY
5409a4365d0SYoshinobu InoueThe
5419a4365d0SYoshinobu Inoue.Xr rtadvd 8
5429a4365d0SYoshinobu Inoueand the configuration file
5439a4365d0SYoshinobu Inoue.Nm
5449a4365d0SYoshinobu Inouefirst appeared in WIDE Hydrangea IPv6 protocol stack kit.
5459a4365d0SYoshinobu Inoue.\" .Sh BUGS
5469a4365d0SYoshinobu Inoue.\" (to be written)
547