xref: /freebsd/usr.sbin/rtadvd/rtadvd.conf.5 (revision a336d37d0f7d5d95145d1594a7dd6732519cdae8)
1a336d37dSJun-ichiro itojun Hagino.\"	$FreeBSD$
2a336d37dSJun-ichiro itojun Hagino.\"	$KAME: rtadvd.conf.5,v 1.32 2001/01/19 05:32:05 jinmei Exp $
3b26e03e9SKris Kennaway.\"
49a4365d0SYoshinobu Inoue.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
59a4365d0SYoshinobu Inoue.\" All rights reserved.
69a4365d0SYoshinobu Inoue.\"
79a4365d0SYoshinobu Inoue.\" Redistribution and use in source and binary forms, with or without
89a4365d0SYoshinobu Inoue.\" modification, are permitted provided that the following conditions
99a4365d0SYoshinobu Inoue.\" are met:
109a4365d0SYoshinobu Inoue.\" 1. Redistributions of source code must retain the above copyright
119a4365d0SYoshinobu Inoue.\"    notice, this list of conditions and the following disclaimer.
129a4365d0SYoshinobu Inoue.\" 2. Redistributions in binary form must reproduce the above copyright
139a4365d0SYoshinobu Inoue.\"    notice, this list of conditions and the following disclaimer in the
149a4365d0SYoshinobu Inoue.\"    documentation and/or other materials provided with the distribution.
159a4365d0SYoshinobu Inoue.\" 3. Neither the name of the project nor the names of its contributors
169a4365d0SYoshinobu Inoue.\"    may be used to endorse or promote products derived from this software
179a4365d0SYoshinobu Inoue.\"    without specific prior written permission.
189a4365d0SYoshinobu Inoue.\"
199a4365d0SYoshinobu Inoue.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
209a4365d0SYoshinobu Inoue.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
219a4365d0SYoshinobu Inoue.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
229a4365d0SYoshinobu Inoue.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
239a4365d0SYoshinobu Inoue.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
249a4365d0SYoshinobu Inoue.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
259a4365d0SYoshinobu Inoue.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
269a4365d0SYoshinobu Inoue.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
279a4365d0SYoshinobu Inoue.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
289a4365d0SYoshinobu Inoue.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
299a4365d0SYoshinobu Inoue.\" SUCH DAMAGE.
309a4365d0SYoshinobu Inoue.\"
319a4365d0SYoshinobu Inoue.Dd May 17, 1998
329a4365d0SYoshinobu Inoue.Dt RTADVD.CONF 5
33b26e03e9SKris Kennaway.Os
349a4365d0SYoshinobu Inoue.Sh NAME
359a4365d0SYoshinobu Inoue.Nm rtadvd.conf
369a4365d0SYoshinobu Inoue.Nd config file for router advertisement daemon
379a4365d0SYoshinobu Inoue.Sh DESCRIPTION
38a336d37dSJun-ichiro itojun HaginoThis file describes how the router advertisement packets must be constructed
399a4365d0SYoshinobu Inouefor each of the interfaces.
40a336d37dSJun-ichiro itojun Hagino.Pp
41e70bc6a4SHajimu UMEMOTOAs described in
42e70bc6a4SHajimu UMEMOTO.Xr rtadvd 8 ,
43e70bc6a4SHajimu UMEMOTOyou do not have to set this configuration file up at all,
44e70bc6a4SHajimu UMEMOTOunless you need some special configurations.
45a336d37dSJun-ichiro itojun HaginoYou may even omit the file as a whole.
46a336d37dSJun-ichiro itojun HaginoIn such cases, the
47e70bc6a4SHajimu UMEMOTO.Nm rtadvd
48e70bc6a4SHajimu UMEMOTOdaemon will automatically configure itself using default values
49e70bc6a4SHajimu UMEMOTOspecified in the specification.
509a4365d0SYoshinobu Inoue.Pp
51b26e03e9SKris KennawayIt obeys the famous
529a4365d0SYoshinobu Inoue.Xr termcap 5
539a4365d0SYoshinobu Inouefile format.
549a4365d0SYoshinobu InoueEach line in the file describes a network interface.
559a4365d0SYoshinobu InoueFields are separated by a colon
56b26e03e9SKris Kennaway.Pq Sq \&: ,
579a4365d0SYoshinobu Inoueand each field contains one capability description.
58a336d37dSJun-ichiro itojun HaginoLines may be concatenated by the
59b26e03e9SKris Kennaway.Sq \e
60b26e03e9SKris Kennawaycharacter.
61b26e03e9SKris KennawayThe comment marker is the
62a336d37dSJun-ichiro itojun Hagino.Sq \&#
63b26e03e9SKris Kennawaycharacter.
649a4365d0SYoshinobu Inoue.Pp
659a4365d0SYoshinobu Inoue.Sh CAPABILITIES
669a4365d0SYoshinobu InoueCapabilities describe the value to be filled into ICMPv6 router
67b26e03e9SKris Kennawayadvertisement messages and to control
689a4365d0SYoshinobu Inoue.Xr rtadvd 8
699a4365d0SYoshinobu Inouebehavior.
70a336d37dSJun-ichiro itojun HaginoTherefore, you are encouraged to read IETF neighbor discovery documents
71b26e03e9SKris Kennawayif you would like to modify the sample configuration file.
729a4365d0SYoshinobu Inoue.Pp
73a336d37dSJun-ichiro itojun HaginoNote that almost all items have default values.
749a4365d0SYoshinobu InoueIf you omit an item, the default value of the item will be used.
759a4365d0SYoshinobu Inoue.Pp
76b26e03e9SKris KennawayThere are two items which control the interval of sending router advertisements.
77e70bc6a4SHajimu UMEMOTOThese items can be omitted, then
78e70bc6a4SHajimu UMEMOTO.Nm rtadvd
79e70bc6a4SHajimu UMEMOTOwill use the default values.
809a4365d0SYoshinobu Inoue.Bl -tag -width indent
819a4365d0SYoshinobu Inoue.It Cm \&maxinterval
829a4365d0SYoshinobu Inoue(num) The maximum time allowed between sending unsolicited
839a4365d0SYoshinobu Inouemulticast router advertisements
849a4365d0SYoshinobu Inoue.Pq unit: seconds .
85b26e03e9SKris KennawayThe default value is 600.
86b26e03e9SKris KennawayIts value must be no less than 4 seconds
879a4365d0SYoshinobu Inoueand no greater than 1800 seconds.
889a4365d0SYoshinobu Inoue.It Cm \&mininterval
899a4365d0SYoshinobu Inoue(num) The minimum time allowed between sending unsolicited multicast
909a4365d0SYoshinobu Inouerouter advertisements
919a4365d0SYoshinobu Inoue.Pq unit: seconds .
929a4365d0SYoshinobu InoueThe default value is the one third of value of
93a336d37dSJun-ichiro itojun Hagino.Cm maxinterval .
949a4365d0SYoshinobu InoueIts value must be no less than 3 seconds and no greater than .75 *
959a4365d0SYoshinobu Inouethe value of
96a336d37dSJun-ichiro itojun Hagino.Cm maxinterval .
979a4365d0SYoshinobu Inoue.El
989a4365d0SYoshinobu Inoue.Pp
999a4365d0SYoshinobu InoueThe following items are for ICMPv6 router advertisement message
1009a4365d0SYoshinobu Inoueheader.
101e70bc6a4SHajimu UMEMOTOThese items can be omitted, then
102e70bc6a4SHajimu UMEMOTO.Nm rtadvd
103e70bc6a4SHajimu UMEMOTOwill use the default values.
1049a4365d0SYoshinobu Inoue.Bl -tag -width indent
1059a4365d0SYoshinobu Inoue.It Cm \&chlim
1069a4365d0SYoshinobu Inoue(num) The value for Cur Hop Limit field.
1079a4365d0SYoshinobu InoueThe default value is 64.
1089a4365d0SYoshinobu Inoue.It Cm \&raflags
1099a4365d0SYoshinobu Inoue(num) Flags field in router advertisement message header.
1109a4365d0SYoshinobu InoueBit 7
1119a4365d0SYoshinobu Inoue.Po
1129a4365d0SYoshinobu Inoue.Li 0x80
1139a4365d0SYoshinobu Inoue.Pc
1149a4365d0SYoshinobu Inouemeans Managed address configuration flag bit,
1159a4365d0SYoshinobu Inoueand Bit 6
1169a4365d0SYoshinobu Inoue.Po
1179a4365d0SYoshinobu Inoue.Li 0x40
1189a4365d0SYoshinobu Inoue.Pc
1199a4365d0SYoshinobu Inouemeans Other stateful configuration flag bit.
1209a4365d0SYoshinobu InoueThe default value is 0.
1219a4365d0SYoshinobu Inoue.It Cm \&rltime
1229a4365d0SYoshinobu Inoue(num) Router lifetime field
1239a4365d0SYoshinobu Inoue.Pq unit: seconds .
1249a4365d0SYoshinobu InoueIts value must be no greater than 3600000.
125a336d37dSJun-ichiro itojun HaginoWhen
126a336d37dSJun-ichiro itojun Hagino.Nm rtadvd
127a336d37dSJun-ichiro itojun Haginoruns on a host, this value must explicitly set 0 on all the
128a336d37dSJun-ichiro itojun Haginoadvertising interfaces as described in
129a336d37dSJun-ichiro itojun Hagino.Xr rtadvd 8 .
1309a4365d0SYoshinobu InoueThe default value is 1800.
1319a4365d0SYoshinobu Inoue.It Cm \&rtime
1329a4365d0SYoshinobu Inoue(num) Reachable time field
1339a4365d0SYoshinobu Inoue.Pq unit: milliseconds .
1349a4365d0SYoshinobu InoueThe default value is 0, which means unspecified by this router.
1359a4365d0SYoshinobu Inoue.It Cm \&retrans
1369a4365d0SYoshinobu Inoue(num) Retrans Timer field
1379a4365d0SYoshinobu Inoue.Pq unit: milliseconds .
1389a4365d0SYoshinobu InoueThe default value is 0, which means unspecified by this router.
1399a4365d0SYoshinobu Inoue.El
1409a4365d0SYoshinobu Inoue.Pp
1419a4365d0SYoshinobu InoueThe following items are for ICMPv6 prefix information option,
1429a4365d0SYoshinobu Inouewhich will be attached to router advertisement header.
143e70bc6a4SHajimu UMEMOTOThese items can be omitted, then
144e70bc6a4SHajimu UMEMOTO.Nm rtadvd
145e70bc6a4SHajimu UMEMOTOwill automatically get appropriate prefixes from the kernel's routing table,
146e70bc6a4SHajimu UMEMOTOand advertise the prefixes with the default parameters.
1479a4365d0SYoshinobu Inoue.Bl -tag -width indent
1489a4365d0SYoshinobu Inoue.It Cm \&addrs
1499a4365d0SYoshinobu Inoue(num) Number of prefixes.
1509a4365d0SYoshinobu InoueIts default is 0, so it must explicitly be set to positve values
1519a4365d0SYoshinobu Inoueif you want to specify any prefix information option.
1529a4365d0SYoshinobu InoueIf its value is 0,
1539a4365d0SYoshinobu Inoue.Xr rtadvd 8
1549a4365d0SYoshinobu Inouelooks up the system routing table and
1559a4365d0SYoshinobu Inoueadvertise the prefixes corresponding to interface routes
1569a4365d0SYoshinobu Inoueon the interface.
1579a4365d0SYoshinobu InoueIf its value is more than 1, you must specify the index of the prefix
1589a4365d0SYoshinobu Inouefor each item below.
1599a4365d0SYoshinobu InoueIndices vary from 0 to N-1, where N is the
1609a4365d0SYoshinobu Inouevalue of
161a336d37dSJun-ichiro itojun Hagino.Cm addrs .
162b26e03e9SKris KennawayEach index shall follow the name of each item, e.g.,
1639a4365d0SYoshinobu Inoue.Dq prefixlen2 .
1649a4365d0SYoshinobu Inoue.It Cm \&prefixlen
1659a4365d0SYoshinobu Inoue(num) Prefix length field.
1669a4365d0SYoshinobu InoueThe default value is 64.
1679a4365d0SYoshinobu Inoue.It Cm \&pinfoflags
1689a4365d0SYoshinobu Inoue(num) Flags field in prefix information option.
1699a4365d0SYoshinobu InoueBit 7
1709a4365d0SYoshinobu Inoue.Po
1719a4365d0SYoshinobu Inoue.Li 0x80
1729a4365d0SYoshinobu Inoue.Pc
1739a4365d0SYoshinobu Inouemeans On-link flag bit,
1749a4365d0SYoshinobu Inoueand Bit 6
1759a4365d0SYoshinobu Inoue.Po
1769a4365d0SYoshinobu Inoue.Li 0x40
1779a4365d0SYoshinobu Inoue.Pc
1789a4365d0SYoshinobu Inouemeans Autonomous address-configuration flag bit.
179b26e03e9SKris KennawayThe default value is 0xc0, i.e., both bits are set.
1809a4365d0SYoshinobu Inoue.It Cm \&addr
1819a4365d0SYoshinobu Inoue(str) The address filled into Prefix field.
1829a4365d0SYoshinobu InoueSince
1839a4365d0SYoshinobu Inoue.Dq \&:
1849a4365d0SYoshinobu Inoueis used for
1859a4365d0SYoshinobu Inoue.Xr termcap 5
1869a4365d0SYoshinobu Inouefile format as well as IPv6 numeric address, the field MUST be quoted by
1879a4365d0SYoshinobu Inouedoublequote character.
1889a4365d0SYoshinobu InoueThis field cannot be
1899a4365d0SYoshinobu Inoueomitted if the value of
190a336d37dSJun-ichiro itojun Hagino.Cm addrs
1919a4365d0SYoshinobu Inoueis more than 0.
1929a4365d0SYoshinobu Inoue.It Cm \&vltime
1939a4365d0SYoshinobu Inoue(num) Valid lifetime field
1949a4365d0SYoshinobu Inoue.Pq unit: seconds .
1959a4365d0SYoshinobu InoueThe default value is 2592000 (30 days).
1969a4365d0SYoshinobu Inoue.It Cm \&pltime
1979a4365d0SYoshinobu Inoue(num) Preferred lifetime field
1989a4365d0SYoshinobu Inoue.Pq unit: seconds .
1999a4365d0SYoshinobu InoueThe default value is 604800 (7 days).
2009a4365d0SYoshinobu Inoue.El
2019a4365d0SYoshinobu Inoue.Pp
202e70bc6a4SHajimu UMEMOTOThe following item is for ICMPv6 MTU option,
2039a4365d0SYoshinobu Inouewhich will be attached to router advertisement header.
204e70bc6a4SHajimu UMEMOTOThis item can be omitted, then
205e70bc6a4SHajimu UMEMOTO.Nm rtadvd
206e70bc6a4SHajimu UMEMOTOwill use the default value.
2079a4365d0SYoshinobu Inoue.Bl -tag -width indent
2089a4365d0SYoshinobu Inoue.It Cm \&mtu
2099a4365d0SYoshinobu Inoue(num or str) MTU (maximum transmission unit) field.
2109a4365d0SYoshinobu InoueIf 0 is specified, it means that the option will not be included.
211b26e03e9SKris KennawayThe default value is 0.
212b26e03e9SKris KennawayIf the special string
2139a4365d0SYoshinobu Inoue.Dq auto
2149a4365d0SYoshinobu Inoueis specified for this item, MTU option will be included and its value
2159a4365d0SYoshinobu Inouewill be set to the interface MTU automatically.
2169a4365d0SYoshinobu Inoue.El
2179a4365d0SYoshinobu Inoue.Pp
2189a4365d0SYoshinobu InoueThe following item controls ICMPv6 source link-layer address option,
2199a4365d0SYoshinobu Inouewhich will be attached to router advertisement header.
220e70bc6a4SHajimu UMEMOTOAs noted above, you can just omit the item, then
221e70bc6a4SHajimu UMEMOTO.Nm rtadvd
222e70bc6a4SHajimu UMEMOTOwill use the default value.
2239a4365d0SYoshinobu Inoue.Bl -tag -width indent
2249a4365d0SYoshinobu Inoue.It Cm \&nolladdr
2259a4365d0SYoshinobu Inoue(bool) By default
2269a4365d0SYoshinobu Inoue.Po
2279a4365d0SYoshinobu Inoueif
2289a4365d0SYoshinobu Inoue.Cm \&nolladdr
2299a4365d0SYoshinobu Inoueis not specified
2309a4365d0SYoshinobu Inoue.Pc ,
2319a4365d0SYoshinobu Inoue.Xr rtadvd 8
2329a4365d0SYoshinobu Inouewill try to get link-layer address for the interface from the kernel,
2339a4365d0SYoshinobu Inoueand attach that in source link-layer address option.
2349a4365d0SYoshinobu InoueIf this capability exists,
2359a4365d0SYoshinobu Inoue.Xr rtadvd 8
2369a4365d0SYoshinobu Inouewill not attach source link-layer address option to
2379a4365d0SYoshinobu Inouerouter advertisement packets.
2389a4365d0SYoshinobu Inoue.El
2399a4365d0SYoshinobu Inoue.Pp
2409a4365d0SYoshinobu InoueYou can also refer one line from another by using
2419a4365d0SYoshinobu Inoue.Cm tc
2429a4365d0SYoshinobu Inouecapability.
2439a4365d0SYoshinobu InoueSee
2449a4365d0SYoshinobu Inoue.Xr termcap 5
2459a4365d0SYoshinobu Inouefor details on the capability.
246251c176fSRuslan Ermilov.Sh EXAMPLES
247a336d37dSJun-ichiro itojun HaginoAs presented above, all of the advertised parameters have default values
248a336d37dSJun-ichiro itojun Haginodefined in specifications, and hence you usually do not have to set them
249a336d37dSJun-ichiro itojun Haginoby hand, unless you need special non-default values.
250a336d37dSJun-ichiro itojun HaginoIt can cause interoperability problem if you use an ill-configured
251a336d37dSJun-ichiro itojun Haginoparameter.
252a336d37dSJun-ichiro itojun Hagino.Pp
253a336d37dSJun-ichiro itojun HaginoTo override a configuration parameter, you can specify the parameter alone.
254a336d37dSJun-ichiro itojun HaginoWith the following configuration,
255a336d37dSJun-ichiro itojun Hagino.Xr rtadvd 8
256a336d37dSJun-ichiro itojun Haginooverrides the router lifetime parameter for the
257a336d37dSJun-ichiro itojun Hagino.Li ne0
258a336d37dSJun-ichiro itojun Haginointerface.
2599a4365d0SYoshinobu Inoue.Bd -literal -offset
260a336d37dSJun-ichiro itojun Haginone0:\\
261a336d37dSJun-ichiro itojun Hagino	:rltime#0:
262a336d37dSJun-ichiro itojun Hagino.Ed
263a336d37dSJun-ichiro itojun Hagino.Pp
264a336d37dSJun-ichiro itojun HaginoThe following example manually configures prefixes advertised from the
265a336d37dSJun-ichiro itojun Hagino.Li ef0
266a336d37dSJun-ichiro itojun Haginointerface.
267a336d37dSJun-ichiro itojun HaginoThe configuration must be used with the
268a336d37dSJun-ichiro itojun Hagino.Fl s
269a336d37dSJun-ichiro itojun Haginooption to
270a336d37dSJun-ichiro itojun Hagino.Xr rtadvd 8 .
271a336d37dSJun-ichiro itojun Hagino.Bd -literal -offset
272a336d37dSJun-ichiro itojun Haginoef0:\\
273a336d37dSJun-ichiro itojun Hagino	:addrs#1:addr="3ffe:501:ffff:1000::":prefixlen#64:
274a336d37dSJun-ichiro itojun Hagino.Ed
275a336d37dSJun-ichiro itojun Hagino.Pp
276a336d37dSJun-ichiro itojun HaginoThe following example presents the default values in an explicit manner.
277a336d37dSJun-ichiro itojun HaginoThe configuration is provided just for reference purposes;
278a336d37dSJun-ichiro itojun HaginoYOU DO NOT NEED TO HAVE IT AT ALL.
279a336d37dSJun-ichiro itojun Hagino.Bd -literal -offset
280a336d37dSJun-ichiro itojun Haginodefault:\\
281a336d37dSJun-ichiro itojun Hagino	:chlim#64:raflags#0:rltime#1800:rtime#0:retrans#0:\\
282a336d37dSJun-ichiro itojun Hagino	:pinfoflags#192:vltime#2592000:pltime#604800:mtu#0:
283a336d37dSJun-ichiro itojun Haginoef0:\\
284a336d37dSJun-ichiro itojun Hagino	:addrs#1:addr="3ffe:501:ffff:1000::":prefixlen#64:tc=default:
2859a4365d0SYoshinobu Inoue.Ed
2869a4365d0SYoshinobu Inoue.Sh SEE ALSO
2879a4365d0SYoshinobu Inoue.Xr termcap 5 ,
2889a4365d0SYoshinobu Inoue.Xr rtadvd 8 ,
2899a4365d0SYoshinobu Inoue.Xr rtsol 8
2909a4365d0SYoshinobu Inoue.Pp
2919a4365d0SYoshinobu InoueThomas Narten, Erik Nordmark and W. A. Simpson,
2929a4365d0SYoshinobu Inoue.Do
2939a4365d0SYoshinobu InoueNeighbor Discovery for IP version 6 (IPv6)
2949a4365d0SYoshinobu Inoue.Dc ,
2959a4365d0SYoshinobu InoueRFC 2461
2969a4365d0SYoshinobu Inoue.Sh HISTORY
2979a4365d0SYoshinobu InoueThe
2989a4365d0SYoshinobu Inoue.Xr rtadvd 8
2999a4365d0SYoshinobu Inoueand the configuration file
3009a4365d0SYoshinobu Inoue.Nm
3019a4365d0SYoshinobu Inouefirst appeared in WIDE Hydrangea IPv6 protocol stack kit.
3029a4365d0SYoshinobu Inoue.\" .Sh BUGS
3039a4365d0SYoshinobu Inoue.\" (to be written)
304