2001-01-21 18:01:36 +03:00
|
|
|
.\" $NetBSD: rtadvd.conf.5,v 1.6 2001/01/21 15:01:37 itojun Exp $
|
|
|
|
.\" $KAME: rtadvd.conf.5,v 1.32 2001/01/19 05:32:05 jinmei Exp $
|
2000-05-23 15:37:58 +04:00
|
|
|
.\"
|
1999-07-02 13:28:16 +04:00
|
|
|
.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
|
|
|
.\" All rights reserved.
|
2000-05-23 15:37:58 +04:00
|
|
|
.\"
|
1999-07-02 13:28:16 +04:00
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. Neither the name of the project nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
2000-05-23 15:37:58 +04:00
|
|
|
.\"
|
1999-07-02 13:28:16 +04:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.Dd May 17, 1998
|
|
|
|
.Dt RTADVD.CONF 5
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm rtadvd.conf
|
|
|
|
.Nd config file for router advertisement daemon
|
|
|
|
.Sh DESCRIPTION
|
2001-01-15 09:14:05 +03:00
|
|
|
This file describes how the router advertisement packets must be constructed
|
1999-07-02 13:28:16 +04:00
|
|
|
for each of the interfaces.
|
2001-01-21 18:01:36 +03:00
|
|
|
.Pp
|
2001-01-15 09:14:05 +03:00
|
|
|
As described in
|
|
|
|
.Xr rtadvd 8 ,
|
|
|
|
you do not have to set this configuration file up at all,
|
|
|
|
unless you need some special configurations.
|
2001-01-21 18:01:36 +03:00
|
|
|
You may even omit the file as a whole.
|
2001-01-15 09:14:05 +03:00
|
|
|
In such cases, the
|
|
|
|
.Nm rtadvd
|
|
|
|
daemon will automatically configure itself using default values
|
|
|
|
specified in the specification.
|
1999-07-02 13:28:16 +04:00
|
|
|
.Pp
|
2000-05-23 15:37:58 +04:00
|
|
|
It obeys the famous
|
1999-07-02 13:28:16 +04:00
|
|
|
.Xr termcap 5
|
|
|
|
file format.
|
|
|
|
Each line in the file describes a network interface.
|
|
|
|
Fields are separated by a colon
|
2000-05-23 15:37:58 +04:00
|
|
|
.Pq Sq \&: ,
|
1999-07-02 13:28:16 +04:00
|
|
|
and each field contains one capability description.
|
2001-01-15 09:14:05 +03:00
|
|
|
Lines may be concatenated by the
|
2000-05-23 15:37:58 +04:00
|
|
|
.Sq \e
|
|
|
|
character.
|
|
|
|
The comment marker is the
|
2001-01-15 09:14:05 +03:00
|
|
|
.Sq \&#
|
2000-05-23 15:37:58 +04:00
|
|
|
character.
|
1999-07-02 13:28:16 +04:00
|
|
|
.Pp
|
|
|
|
.Sh CAPABILITIES
|
|
|
|
Capabilities describe the value to be filled into ICMPv6 router
|
2000-05-23 15:37:58 +04:00
|
|
|
advertisement messages and to control
|
1999-07-02 13:28:16 +04:00
|
|
|
.Xr rtadvd 8
|
|
|
|
behavior.
|
|
|
|
Therefore, you are encouraged to read IETF neighbor discovery documents
|
2000-05-23 15:37:58 +04:00
|
|
|
if you would like to modify the sample configuration file.
|
1999-07-02 13:28:16 +04:00
|
|
|
.Pp
|
|
|
|
Note that almost all items have default values.
|
|
|
|
If you omit an item, the default value of the item will be used.
|
|
|
|
.Pp
|
2000-05-23 15:37:58 +04:00
|
|
|
There are two items which control the interval of sending router advertisements.
|
2001-01-15 09:14:05 +03:00
|
|
|
These items can be omitted, then
|
|
|
|
.Nm rtadvd
|
|
|
|
will use the default values.
|
1999-07-02 13:28:16 +04:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Cm \&maxinterval
|
|
|
|
(num) The maximum time allowed between sending unsolicited
|
|
|
|
multicast router advertisements
|
|
|
|
.Pq unit: seconds .
|
2000-05-23 15:37:58 +04:00
|
|
|
The default value is 600.
|
|
|
|
Its value must be no less than 4 seconds
|
1999-07-02 13:28:16 +04:00
|
|
|
and no greater than 1800 seconds.
|
|
|
|
.It Cm \&mininterval
|
|
|
|
(num) The minimum time allowed between sending unsolicited multicast
|
|
|
|
router advertisements
|
|
|
|
.Pq unit: seconds .
|
|
|
|
The default value is the one third of value of
|
2001-01-15 09:14:05 +03:00
|
|
|
.Cm maxinterval .
|
1999-07-02 13:28:16 +04:00
|
|
|
Its value must be no less than 3 seconds and no greater than .75 *
|
|
|
|
the value of
|
2001-01-15 09:14:05 +03:00
|
|
|
.Cm maxinterval .
|
1999-07-02 13:28:16 +04:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The following items are for ICMPv6 router advertisement message
|
2000-05-23 15:37:58 +04:00
|
|
|
header.
|
2001-01-15 09:14:05 +03:00
|
|
|
These items can be omitted, then
|
|
|
|
.Nm rtadvd
|
|
|
|
will use the default values.
|
1999-07-02 13:28:16 +04:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Cm \&chlim
|
|
|
|
(num) The value for Cur Hop Limit field.
|
|
|
|
The default value is 64.
|
|
|
|
.It Cm \&raflags
|
|
|
|
(num) Flags field in router advertisement message header.
|
2000-05-23 15:37:58 +04:00
|
|
|
Bit 7
|
1999-07-02 13:28:16 +04:00
|
|
|
.Po
|
|
|
|
.Li 0x80
|
|
|
|
.Pc
|
|
|
|
means Managed address configuration flag bit,
|
|
|
|
and Bit 6
|
|
|
|
.Po
|
|
|
|
.Li 0x40
|
|
|
|
.Pc
|
|
|
|
means Other stateful configuration flag bit.
|
|
|
|
The default value is 0.
|
|
|
|
.It Cm \&rltime
|
|
|
|
(num) Router lifetime field
|
|
|
|
.Pq unit: seconds .
|
|
|
|
Its value must be no greater than 3600000.
|
2001-01-15 09:14:05 +03:00
|
|
|
When
|
|
|
|
.Nm rtadvd
|
|
|
|
runs on a host, this value must explicitly set 0 on all the
|
|
|
|
advertising interfaces as described in
|
|
|
|
.Xr rtadvd 8 .
|
1999-07-02 13:28:16 +04:00
|
|
|
The default value is 1800.
|
|
|
|
.It Cm \&rtime
|
|
|
|
(num) Reachable time field
|
|
|
|
.Pq unit: milliseconds .
|
|
|
|
The default value is 0, which means unspecified by this router.
|
|
|
|
.It Cm \&retrans
|
|
|
|
(num) Retrans Timer field
|
|
|
|
.Pq unit: milliseconds .
|
|
|
|
The default value is 0, which means unspecified by this router.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The following items are for ICMPv6 prefix information option,
|
|
|
|
which will be attached to router advertisement header.
|
2001-01-15 09:14:05 +03:00
|
|
|
These items can be omitted, then
|
|
|
|
.Nm rtadvd
|
|
|
|
will automatically get appropriate prefixes from the kernel's routing table,
|
|
|
|
and advertise the prefixes with the default parameters.
|
1999-07-02 13:28:16 +04:00
|
|
|
.Bl -tag -width indent
|
2001-01-15 09:14:05 +03:00
|
|
|
.It Cm \&clockskew
|
|
|
|
(num) Time skew to adjust link propagation delays and clock skews
|
|
|
|
betwen routers on the link
|
|
|
|
.Pq unit: seconds .
|
|
|
|
This value is used in consistency check for locally-configured and
|
|
|
|
advertised prefix lifetimes, and has its meaning when the local router
|
|
|
|
configures a prefix on the link with a lifetime that decrements in
|
2001-01-21 18:01:36 +03:00
|
|
|
real time.
|
|
|
|
If the value is 0, it means the consistency check will be skipped
|
|
|
|
for such prefixes.
|
|
|
|
The default value is 0.
|
1999-07-02 13:28:16 +04:00
|
|
|
.It Cm \&addrs
|
|
|
|
(num) Number of prefixes.
|
|
|
|
Its default is 0, so it must explicitly be set to positve values
|
|
|
|
if you want to specify any prefix information option.
|
|
|
|
If its value is 0,
|
|
|
|
.Xr rtadvd 8
|
|
|
|
looks up the system routing table and
|
|
|
|
advertise the prefixes corresponding to interface routes
|
|
|
|
on the interface.
|
|
|
|
If its value is more than 1, you must specify the index of the prefix
|
|
|
|
for each item below.
|
|
|
|
Indices vary from 0 to N-1, where N is the
|
|
|
|
value of
|
2001-01-15 09:14:05 +03:00
|
|
|
.Cm addrs .
|
2000-07-06 16:37:56 +04:00
|
|
|
Each index shall follow the name of each item, e.g.,
|
1999-07-02 13:28:16 +04:00
|
|
|
.Dq prefixlen2 .
|
|
|
|
.It Cm \&prefixlen
|
|
|
|
(num) Prefix length field.
|
|
|
|
The default value is 64.
|
|
|
|
.It Cm \&pinfoflags
|
|
|
|
(num) Flags field in prefix information option.
|
2000-05-23 15:37:58 +04:00
|
|
|
Bit 7
|
1999-07-02 13:28:16 +04:00
|
|
|
.Po
|
|
|
|
.Li 0x80
|
|
|
|
.Pc
|
|
|
|
means On-link flag bit,
|
|
|
|
and Bit 6
|
|
|
|
.Po
|
|
|
|
.Li 0x40
|
|
|
|
.Pc
|
|
|
|
means Autonomous address-configuration flag bit.
|
2000-05-23 15:37:58 +04:00
|
|
|
The default value is 0xc0, i.e., both bits are set.
|
1999-07-02 13:28:16 +04:00
|
|
|
.It Cm \&addr
|
|
|
|
(str) The address filled into Prefix field.
|
|
|
|
Since
|
|
|
|
.Dq \&:
|
|
|
|
is used for
|
|
|
|
.Xr termcap 5
|
|
|
|
file format as well as IPv6 numeric address, the field MUST be quoted by
|
|
|
|
doublequote character.
|
|
|
|
This field cannot be
|
|
|
|
omitted if the value of
|
2001-01-15 09:14:05 +03:00
|
|
|
.Cm addrs
|
1999-07-02 13:28:16 +04:00
|
|
|
is more than 0.
|
|
|
|
.It Cm \&vltime
|
|
|
|
(num) Valid lifetime field
|
|
|
|
.Pq unit: seconds .
|
2001-01-21 18:01:36 +03:00
|
|
|
The default value is 2592000 (30 days).
|
2001-01-15 09:14:05 +03:00
|
|
|
.It Cm \&vltimedecr
|
|
|
|
(bool) This item means the advertised valid lifetime will decrements
|
|
|
|
in real time, which is disabled by default.
|
1999-07-02 13:28:16 +04:00
|
|
|
.It Cm \&pltime
|
|
|
|
(num) Preferred lifetime field
|
|
|
|
.Pq unit: seconds .
|
2001-01-21 18:01:36 +03:00
|
|
|
The default value is 604800 (7 days).
|
2001-01-15 09:14:05 +03:00
|
|
|
.It Cm \&pltimedecr
|
|
|
|
(bool) This item means the advertised preferred lifetime will decrements
|
|
|
|
in real time, which is disabled by default.
|
1999-07-02 13:28:16 +04:00
|
|
|
.El
|
|
|
|
.Pp
|
2001-01-15 09:14:05 +03:00
|
|
|
The following item is for ICMPv6 MTU option,
|
1999-07-02 13:28:16 +04:00
|
|
|
which will be attached to router advertisement header.
|
2001-01-15 09:14:05 +03:00
|
|
|
This item can be omitted, then
|
|
|
|
.Nm rtadvd
|
|
|
|
will use the default value.
|
1999-07-02 13:28:16 +04:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Cm \&mtu
|
|
|
|
(num or str) MTU (maximum transmission unit) field.
|
|
|
|
If 0 is specified, it means that the option will not be included.
|
2000-05-23 15:37:58 +04:00
|
|
|
The default value is 0.
|
|
|
|
If the special string
|
1999-07-02 13:28:16 +04:00
|
|
|
.Dq auto
|
|
|
|
is specified for this item, MTU option will be included and its value
|
|
|
|
will be set to the interface MTU automatically.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The following item controls ICMPv6 source link-layer address option,
|
|
|
|
which will be attached to router advertisement header.
|
2001-01-15 09:14:05 +03:00
|
|
|
As noted above, you can just omit the item, then
|
|
|
|
.Nm rtadvd
|
|
|
|
will use the default value.
|
1999-07-02 13:28:16 +04:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Cm \&nolladdr
|
|
|
|
(bool) By default
|
|
|
|
.Po
|
|
|
|
if
|
|
|
|
.Cm \&nolladdr
|
|
|
|
is not specified
|
|
|
|
.Pc ,
|
|
|
|
.Xr rtadvd 8
|
|
|
|
will try to get link-layer address for the interface from the kernel,
|
|
|
|
and attach that in source link-layer address option.
|
|
|
|
If this capability exists,
|
|
|
|
.Xr rtadvd 8
|
|
|
|
will not attach source link-layer address option to
|
|
|
|
router advertisement packets.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
You can also refer one line from another by using
|
|
|
|
.Cm tc
|
|
|
|
capability.
|
|
|
|
See
|
|
|
|
.Xr termcap 5
|
|
|
|
for details on the capability.
|
2001-01-21 18:01:36 +03:00
|
|
|
.Sh EXAMPLES
|
|
|
|
As presented above, all of the advertised parameters have default values
|
|
|
|
defined in specifications, and hence you usually do not have to set them
|
|
|
|
by hand, unless you need special non-default values.
|
|
|
|
It can cause interoperability problem if you use an ill-configured
|
|
|
|
parameter.
|
|
|
|
.Pp
|
|
|
|
To override a configuration parameter, you can specify the parameter alone.
|
|
|
|
With the following configuration,
|
|
|
|
.Xr rtadvd 8
|
|
|
|
overrides the router lifetime parameter for the
|
|
|
|
.Li ne0
|
|
|
|
interface.
|
|
|
|
.Bd -literal -offset
|
|
|
|
ne0:\\
|
|
|
|
:rltime#0:
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
The following example manually configures prefixes advertised from the
|
|
|
|
.Li ef0
|
|
|
|
interface.
|
|
|
|
The configuration must be used with the
|
|
|
|
.Fl s
|
|
|
|
option to
|
|
|
|
.Xr rtadvd 8 .
|
|
|
|
.Bd -literal -offset
|
|
|
|
ef0:\\
|
|
|
|
:addrs#1:addr="3ffe:501:ffff:1000::":prefixlen#64:
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
The following example presents the default values in an explicit manner.
|
|
|
|
The configuration is provided just for reference purposes;
|
|
|
|
YOU DO NOT NEED TO HAVE IT AT ALL.
|
1999-07-02 13:28:16 +04:00
|
|
|
.Bd -literal -offset
|
2001-01-21 18:01:36 +03:00
|
|
|
default:\\
|
|
|
|
:chlim#64:raflags#0:rltime#1800:rtime#0:retrans#0:\\
|
|
|
|
:pinfoflags#192:vltime#2592000:pltime#604800:mtu#0:
|
|
|
|
ef0:\\
|
|
|
|
:addrs#1:addr="3ffe:501:ffff:1000::":prefixlen#64:tc=default:
|
1999-07-02 13:28:16 +04:00
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr termcap 5 ,
|
1999-07-03 22:12:18 +04:00
|
|
|
.Xr rtadvd 8 ,
|
1999-07-02 13:28:16 +04:00
|
|
|
.Xr rtsol 8
|
|
|
|
.Pp
|
|
|
|
Thomas Narten, Erik Nordmark and W. A. Simpson,
|
|
|
|
.Do
|
|
|
|
Neighbor Discovery for IP version 6 (IPv6)
|
|
|
|
.Dc ,
|
|
|
|
RFC 2461
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Xr rtadvd 8
|
2000-05-23 15:37:58 +04:00
|
|
|
and the configuration file
|
1999-07-02 13:28:16 +04:00
|
|
|
.Nm
|
|
|
|
first appeared in WIDE Hydrangea IPv6 protocol stack kit.
|
|
|
|
.\" .Sh BUGS
|
|
|
|
.\" (to be written)
|