]> git.saurik.com Git - apple/network_cmds.git/blame - rtadvd.tproj/rtadvd.conf.5
network_cmds-543.50.4.tar.gz
[apple/network_cmds.git] / rtadvd.tproj / rtadvd.conf.5
CommitLineData
7af5ce03 1.\" $KAME: rtadvd.conf.5,v 1.50 2005/01/14 05:30:59 jinmei Exp $
7ba0088d
A
2.\"
3.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
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.
17.\"
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
28.\" SUCH DAMAGE.
29.\"
7af5ce03 30.Dd February 24, 2012
7ba0088d
A
31.Dt RTADVD.CONF 5
32.Os
33.Sh NAME
34.Nm rtadvd.conf
35.Nd config file for router advertisement daemon
36.Sh DESCRIPTION
37This file describes how the router advertisement packets must be constructed
38for each of the interfaces.
39.Pp
40As described in
41.Xr rtadvd 8 ,
42you do not have to set this configuration file up at all,
43unless you need some special configurations.
44You may even omit the file as a whole.
45In such cases, the
46.Nm rtadvd
47daemon will automatically configure itself using default values
48specified in the specification.
49.Pp
50It obeys the famous
51.Xr termcap 5
52file format.
53Each line in the file describes a network interface.
54Fields are separated by a colon
55.Pq Sq \&: ,
56and each field contains one capability description.
57Lines may be concatenated by the
58.Sq \e
59character.
60The comment marker is the
61.Sq \&#
62character.
63.Sh CAPABILITIES
64Capabilities describe the value to be filled into ICMPv6 router
65advertisement messages and to control
66.Xr rtadvd 8
67behavior.
68Therefore, you are encouraged to read IETF neighbor discovery documents
69if you would like to modify the sample configuration file.
70.Pp
71Note that almost all items have default values.
72If you omit an item, the default value of the item will be used.
73.Pp
74There are two items which control the interval of sending router advertisements.
75These items can be omitted, then
76.Nm rtadvd
77will use the default values.
78.Bl -tag -width indent
79.It Cm \&maxinterval
80(num) The maximum time allowed between sending unsolicited
81multicast router advertisements
7af5ce03 82.Pq unit: seconds .
7ba0088d
A
83The default value is 600.
84Its value must be no less than 4 seconds
85and no greater than 1800 seconds.
86.It Cm \&mininterval
87(num) The minimum time allowed between sending unsolicited multicast
88router advertisements
7af5ce03 89.Pq unit: seconds .
7ba0088d
A
90The default value is the one third of value of
91.Cm maxinterval .
92Its value must be no less than 3 seconds and no greater than .75 *
93the value of
94.Cm maxinterval .
95.El
96.Pp
97The following items are for ICMPv6 router advertisement message
98header.
99These items can be omitted, then
100.Nm rtadvd
101will use the default values.
102.Bl -tag -width indent
103.It Cm \&chlim
104(num) The value for Cur Hop Limit field.
105The default value is 64.
106.It Cm \&raflags
7af5ce03
A
107(str or num) A 8-bit flags field in router advertisement message header.
108This field can be specified either as a case-sensitive string or as an
109integer.
110A string consists of characters each of which corresponds to a
111particular flag bit(s).
112An integer should be the logical OR of all enabled bits.
7ba0088d 113Bit 7
7af5ce03
A
114.Po
115.Li 'm' or 0x80
116.Pc
7ba0088d
A
117means Managed address configuration flag bit,
118and Bit 6
7af5ce03
A
119.Po
120.Li 'o' or 0x40
121.Pc
7ba0088d
A
122means Other stateful configuration flag bit.
123Bit 4
7af5ce03
A
124.Po
125.Li 0x10
126.Pc
7ba0088d 127and Bit 3
7af5ce03
A
128.Po
129.Li 0x08
130.Pc
7ba0088d 131are used to encode router preference.
7af5ce03
A
132Bits 01
133.Po
134or 'h'
135.Pc
136means high, 00 means medium, and 11
137.Po
138or 'l'
139.Pc
140means low.
141Bits 10 is reserved, and must not be specified.
142There is no character to specify the medium preference explicitly.
143The default value of the entire flag is 0
144.Po
145or a null string,
146.Pc
147which means no additional
148configuration methods, and the medium router preference.
7ba0088d
A
149.It Cm \&rltime
150(num) Router lifetime field
7af5ce03
A
151.Pq unit: seconds .
152The value must be either zero or between
153the value of
154.Cm maxinterval
155and 9000.
7ba0088d
A
156When
157.Nm rtadvd
158runs on a host, this value must explicitly set 0 on all the
159advertising interfaces as described in
160.Xr rtadvd 8 .
161The default value is 1800.
162.It Cm \&rtime
163(num) Reachable time field
7af5ce03 164.Pq unit: milliseconds .
7ba0088d
A
165The default value is 0, which means unspecified by this router.
166.It Cm \&retrans
167(num) Retrans Timer field
7af5ce03 168.Pq unit: milliseconds .
7ba0088d
A
169The default value is 0, which means unspecified by this router.
170.El
171.Pp
172The following items are for ICMPv6 prefix information option,
173which will be attached to router advertisement header.
174These items can be omitted, then
175.Nm rtadvd
176will automatically get appropriate prefixes from the kernel's routing table,
177and advertise the prefixes with the default parameters.
7af5ce03
A
178Keywords other than
179.Cm clockskew
180can be augmented with a number, like
181.Dq Li prefix2 ,
182to specify multiple prefixes.
7ba0088d
A
183.Bl -tag -width indent
184.It Cm \&clockskew
185(num) Time skew to adjust link propagation delays and clock skews
7af5ce03
A
186between routers on the link
187.Pq unit: seconds .
7ba0088d
A
188This value is used in consistency check for locally-configured and
189advertised prefix lifetimes, and has its meaning when the local router
190configures a prefix on the link with a lifetime that decrements in
191real time.
192If the value is 0, it means the consistency check will be skipped
193for such prefixes.
194The default value is 0.
7ba0088d
A
195.It Cm \&prefixlen
196(num) Prefix length field.
197The default value is 64.
198.It Cm \&pinfoflags
7af5ce03
A
199(str or num) A 8-bit flags field in prefix information option.
200This field can be specified either as a case-sensitive string or as an
201integer.
202A string consists of characters each of which corresponds to a
203particular flag bit(s).
204An integer should be the logical OR of all enabled bits.
7ba0088d 205Bit 7
7af5ce03
A
206.Po
207.Li 'l' or 0x80
208.Pc
7ba0088d
A
209means On-link flag bit,
210and Bit 6
7af5ce03
A
211.Po
212.Li 'a' or 0x40
213.Pc
7ba0088d 214means Autonomous address-configuration flag bit.
7af5ce03 215The default value is "la" or 0xc0, i.e., both bits are set.
7ba0088d
A
216.It Cm \&addr
217(str) The address filled into Prefix field.
218Since
219.Dq \&:
220is used for
221.Xr termcap 5
222file format as well as IPv6 numeric address, the field MUST be quoted by
223doublequote character.
7ba0088d
A
224.It Cm \&vltime
225(num) Valid lifetime field
7af5ce03 226.Pq unit: seconds .
7ba0088d
A
227The default value is 2592000 (30 days).
228.It Cm \&vltimedecr
7af5ce03 229(bool) This item means the advertised valid lifetime will decrement
7ba0088d
A
230in real time, which is disabled by default.
231.It Cm \&pltime
232(num) Preferred lifetime field
7af5ce03 233.Pq unit: seconds .
7ba0088d
A
234The default value is 604800 (7 days).
235.It Cm \&pltimedecr
7af5ce03 236(bool) This item means the advertised preferred lifetime will decrement
7ba0088d
A
237in real time, which is disabled by default.
238.El
239.Pp
240The following item is for ICMPv6 MTU option,
241which will be attached to router advertisement header.
242This item can be omitted, then
243.Nm rtadvd
244will use the default value.
245.Bl -tag -width indent
246.It Cm \&mtu
247(num or str) MTU (maximum transmission unit) field.
248If 0 is specified, it means that the option will not be included.
249The default value is 0.
250If the special string
251.Dq auto
252is specified for this item, MTU option will be included and its value
253will be set to the interface MTU automatically.
254.El
255.Pp
256The following item controls ICMPv6 source link-layer address option,
257which will be attached to router advertisement header.
258As noted above, you can just omit the item, then
259.Nm rtadvd
260will use the default value.
261.Bl -tag -width indent
262.It Cm \&nolladdr
263(bool) By default
7af5ce03
A
264.Po
265if
7ba0088d 266.Cm \&nolladdr
7af5ce03
A
267is not specified
268.Pc ,
7ba0088d
A
269.Xr rtadvd 8
270will try to get link-layer address for the interface from the kernel,
271and attach that in source link-layer address option.
272If this capability exists,
273.Xr rtadvd 8
274will not attach source link-layer address option to
275router advertisement packets.
276.El
277.Pp
7af5ce03 278The following item controls ICMPv6 home agent information option,
7ba0088d
A
279which was defined with mobile IPv6 support.
280It will be attached to router advertisement header just like other options do.
281.Bl -tag -width indent
282.It Cm \&hapref
283(num) Specifies home agent preference.
284If set to non-zero,
285.Cm \&hatime
286must be present as well.
287.It Cm \&hatime
288(num) Specifies home agent lifetime.
289.El
290.Pp
291When mobile IPv6 support is turned on for
292.Xr rtadvd 8 ,
293advertisement interval option will be attached to router advertisement
294packet, by configuring
295.Cm \&maxinterval
296explicitly.
297.Pp
298The following items are for ICMPv6 route information option,
299which will be attached to router advertisement header.
300These items are optional.
7af5ce03
A
301Each items can be augmented with number, like
302.Dq Li rtplen2 ,
303to specify multiple routes.
7ba0088d 304.Bl -tag -width indent
7af5ce03 305.It Cm \&rtprefix
7ba0088d
A
306(str) The prefix filled into the Prefix field of route information option.
307Since
308.Dq \&:
309is used for
310.Xr termcap 5
311file format as well as IPv6 numeric address, the field MUST be quoted by
312doublequote character.
7af5ce03
A
313.It Cm \&rtplen
314(num) Prefix length field in route information option.
315The default value is 64.
316.It Cm \&rtflags
317(str or num) A 8-bit flags field in route information option.
318Currently only the preference values are defined.
319The notation is same as that of the raflags field.
320Bit 4
321.Po
322.Li 0x10
323.Pc
324and
325Bit 3
326.Po
327.Li 0x08
328.Pc
329are used to encode the route preference for the route.
330The default value is 0x00, i.e., medium preference.
331.It Cm \&rtltime
7ba0088d 332(num) route lifetime field in route information option.
7af5ce03
A
333.Pq unit: seconds .
334Since the specification does not define the default value of this
335item, the value for this item should be specified by hand.
336However,
337.Nm rtadvd
338allows this item to be unspecified, and uses the router lifetime
339as the default value in such a case, just for compatibility with an
340old version of the program.
7ba0088d 341.El
7af5ce03
A
342.Pp
343In the above list, each keyword beginning with
344.Dq Li rt
345could be replaced with the one beginning with
346.Dq Li rtr
347for backward compatibility reason.
348For example,
349.Cm rtrplen
350is accepted instead of
351.Cm rtplen .
352However, keywords that start with
353.Dq Li rtr
354have basically been obsoleted, and should not be used any more.
355.Pp
7ba0088d
A
356You can also refer one line from another by using
357.Cm tc
358capability.
359See
360.Xr termcap 5
361for details on the capability.
fdfd5971
A
362.Pp
363The following items are for the ICMPv6 recursive DNS server (RDNSS) option,
364which will be attached to the router advertisement header.
365.Bl -tag -width indent
366.It Cm \&rdnssaddrs
367(num) Number of recursive DNS server addresses.
368Its default is 0, so it must explicitly be set to positive values
369if you want to specify any DNS server address.
370If its value is 0, no DNS server information is sent.
371If its value is more than 1, you must specify the index of the address
372for the
373.Cm rdnssaddr
374item below.
375Indices vary from 0 to N-1, where N is the
376value of
377.Cm rdnssaddrs .
378Each index shall follow the name of
379.Cm rdnssaddr ,
380e.g.,
381.Dq rdnssaddr0 .
382.It Cm \&rdnssaddr
383(str) The IPv6 address of the recursive DNS server.
384Since
385.Dq \&:
386is used for
387.Xr termcap 5
388file format as well as IPv6 numeric address, the field MUST be quoted by
389doublequote character.
390This field cannot be
391omitted if the value of
392.Cm rdnssaddrs
393is more than 0.
394.It Cm \&rdnsslifetime
395(num) The lifetime field in RDNSS option.
396(unit: seconds).
397The default value is 2 * the value of
398.Cm \&maxinterval ,
399which is also the maximum value that should be set. The minimum value is
400.Cm \&maxinterval .
401If you specify a value outside of this range, a message is logged.
402.El
7af5ce03
A
403.Pp
404The following items are for the ICMPv6 DNS search list (DNSSL) option,
405which will be attached to the router advertisement header.
406.Bl -tag -width indent
407.It Cm \&dnssldomains
408(num) Number of DNS search domains.
409Its default is 0, so it must explicitly be set to positive values
410if you want to specify any DNS search domains.
411If its value is 0, no DNS search domain information is sent.
412If its value is more than 1, you must specify the index of the search domain
413for the
414.Cm dnssldomain
415item below.
416Indices vary from 0 to N-1, where N is the
417value of
418.Cm dnssldomains .
419Each index shall follow the name of
420.Cm dnssldomain ,
421e.g.,
422.Dq dnssldomain0 .
423.It Cm \&dnssldomain
424(str) The DNS search domain.
425This field cannot be
426omitted if the value of
427.Cm dnssldomains
428is more than 0.
429.It Cm \&dnssllifetime
430(num) The lifetime field in the DNSSL option.
431(unit: seconds).
432The default value is 2 * the value of
433.Cm \&maxinterval ,
434which is also the maximum value that should be set. The minimum value is
435.Cm \&maxinterval .
436If you specify a value outside of this range, a message is logged.
437.El
7ba0088d
A
438.Sh EXAMPLES
439As presented above, all of the advertised parameters have default values
440defined in specifications, and hence you usually do not have to set them
441by hand, unless you need special non-default values.
442It can cause interoperability problem if you use an ill-configured
443parameter.
444.Pp
445To override a configuration parameter, you can specify the parameter alone.
446With the following configuration,
447.Xr rtadvd 8
448overrides the router lifetime parameter for the
449.Li ne0
450interface.
451.Bd -literal -offset
452ne0:\\
453 :rltime#0:
454.Ed
455.Pp
456The following example manually configures prefixes advertised from the
457.Li ef0
458interface.
459The configuration must be used with the
460.Fl s
461option to
462.Xr rtadvd 8 .
463.Bd -literal -offset
464ef0:\\
7af5ce03 465 :addr="3ffe:501:ffff:1000::":prefixlen#64:
7ba0088d
A
466.Ed
467.Pp
468The following example presents the default values in an explicit manner.
469The configuration is provided just for reference purposes;
470YOU DO NOT NEED TO HAVE IT AT ALL.
471.Bd -literal -offset
472default:\\
473 :chlim#64:raflags#0:rltime#1800:rtime#0:retrans#0:\\
7af5ce03 474 :pinfoflags="la":vltime#2592000:pltime#604800:mtu#0:
7ba0088d 475ef0:\\
7af5ce03 476 :addr="3ffe:501:ffff:1000::":prefixlen#64:tc=default:
7ba0088d
A
477.Ed
478.Sh SEE ALSO
479.Xr termcap 5 ,
480.Xr rtadvd 8 ,
481.Xr rtsol 8
7af5ce03
A
482.Rs
483.%A Thomas Narten
484.%A Erik Nordmark
485.%A W. A. Simpson
486.%T Neighbor Discovery for IP version 6 (IPv6)
487.%R RFC 2461
488.Re
489.Rs
490.%A Richard Draves
491.%T Default Router Preferences and More-Specific Routes
492.%R draft-ietf-ipngwg-router-selection-xx.txt
493.Re
494.Rs
495.%A J. Jeong
496.%A S. Park
497.%A L. Beloeil
498.%A S. Madanapalli
499.%T IPv6 Router Advertisement Option for DNS Configuration
500.%R RFC 5006
501.Re
7ba0088d
A
502.Sh HISTORY
503The
504.Xr rtadvd 8
505and the configuration file
506.Nm
507first appeared in WIDE Hydrangea IPv6 protocol stack kit.
508.\" .Sh BUGS
509.\" (to be written)