blob: a78a92fe94016ae4b0d051f5cbe8236d7ba39b7e [file] [log] [blame]
paul76b89b42004-11-06 17:13:09 +00001@node IPv6 Support
paul718e3742002-12-13 20:15:29 +00002@chapter IPv6 Support
3
paul7190f4e2003-08-12 12:40:20 +00004Quagga fully supports IPv6 routing. As described so far, Quagga supports
paul718e3742002-12-13 20:15:29 +00005RIPng, OSPFv3 and BGP-4+. You can give IPv6 addresses to an interface
hasso3e31cde2004-05-18 11:58:59 +00006and configure static IPv6 routing information. Quagga IPv6 also provides
paul718e3742002-12-13 20:15:29 +00007automatic address configuration via a feature called @code{address
8auto configuration}. To do it, the router must send router advertisement
9messages to the all nodes that exist on the network.
10
11@menu
12* Router Advertisement::
13@end menu
14
paul76b89b42004-11-06 17:13:09 +000015@node Router Advertisement
paul718e3742002-12-13 20:15:29 +000016@section Router Advertisement
17
gdta2c0a572004-11-05 12:59:21 +000018@deffn {Interface Command} {no ipv6 nd suppress-ra} {}
hasso3e31cde2004-05-18 11:58:59 +000019Send router advertisment messages.
paul718e3742002-12-13 20:15:29 +000020@end deffn
21
gdta2c0a572004-11-05 12:59:21 +000022@deffn {Interface Command} {ipv6 nd suppress-ra} {}
hasso3e31cde2004-05-18 11:58:59 +000023Don't send router advertisment messages.
24@end deffn
25
vincent29c4c9b2005-03-25 13:05:47 +000026@deffn {Interface Command} {ipv6 nd prefix @var{ipv6prefix} [@var{valid-lifetime}] [@var{preferred-lifetime}] [off-link] [no-autoconfig] [router-address]} {}
hasso3e31cde2004-05-18 11:58:59 +000027Configuring the IPv6 prefix to include in router advertisements. Several prefix
28specific optional parameters and flags may follow:
29@itemize @bullet
30@item
31@var{valid-lifetime} - the length of time in seconds during what the prefix is
32valid for the purpose of on-link determination. Value @var{infinite} represents
33infinity (i.e. a value of all one bits (@code{0xffffffff})).
34
35Range: @code{<0-4294967295>} Default: @code{2592000}
36
37@item
38@var{preferred-lifetime} - the length of time in seconds during what addresses
39generated from the prefix remain preferred. Value @var{infinite} represents
40infinity.
41
42Range: @code{<0-4294967295>} Default: @code{604800}
43
44@item
45@var{off-link} - indicates that advertisement makes no statement about on-link or
46off-link properties of the prefix.
47
48Default: not set, i.e. this prefix can be used for on-link determination.
49
50@item
51@var{no-autoconfig} - indicates to hosts on the local link that the specified prefix
52cannot be used for IPv6 autoconfiguration.
53
54Default: not set, i.e. prefix can be used for autoconfiguration.
vincent29c4c9b2005-03-25 13:05:47 +000055
56@item
57@var{router-address} - indicates to hosts on the local link that the specified
58prefix
59contains a complete IP address by setting R flag.
60
61Default: not set, i.e. hosts do not assume a complete IP address is placed.
hasso3e31cde2004-05-18 11:58:59 +000062@end itemize
63@end deffn
64
65@deffn {Interface Command} {ipv6 nd ra-interval SECONDS} {}
66@deffnx {Interface Command} {no ipv6 nd ra-interval} {}
67The maximum time allowed between sending unsolicited multicast router
68advertisements from the interface, in seconds. Must be no less than 3 seconds.
69
70Default: @code{600}
71@end deffn
72
vincent29c4c9b2005-03-25 13:05:47 +000073@deffn {Interface Command} {ipv6 nd ra-interval msec MILLISECONDS} {}
74@deffnx {Interface Command} {no ipv6 nd ra-interval msec} {}
75The maximum time allowed between sending unsolicited multicast router
76advertisements from the interface, in milliseconds. Must be no less than 30 milliseconds.
77
78Default: @code{600000}
79@end deffn
hasso3e31cde2004-05-18 11:58:59 +000080@deffn {Interface Command} {ipv6 nd ra-lifetime SECONDS} {}
81@deffnx {Interface Command} {no ipv6 nd ra-lifetime} {}
82The value to be placed in the Router Lifetime field of router advertisements
83sent from the interface, in seconds. Indicates the usefulness of the router
84as a default router on this interface. Setting the value to zero indicates
85that the router should not be considered a default router on this interface.
86Must be either zero or between value specified with @var{ipv6 nd ra-interval}
87(or default) and 9000 seconds.
88
89Default: @code{1800}
90@end deffn
91
92@deffn {Interface Command} {ipv6 nd reachable-time MILLISECONDS} {}
93@deffnx {Interface Command} {no ipv6 nd reachable-time} {}
94The value to be placed in the Reachable Time field in the Router Advertisement
95messages sent by the router, in milliseconds. The configured time enables the
96router to detect unavailable neighbors. The value zero means unspecified (by
97this router). Must be no greater than @code{3,600,000} milliseconds (1 hour).
98
99Default: @code{0}
100@end deffn
101
102@deffn {Interface Command} {ipv6 nd managed-config-flag} {}
103@deffnx {Interface Command} {no ipv6 nd managed-config-flag} {}
104Set/unset flag in IPv6 router advertisements which indicates to hosts that they
105should use managed (stateful) protocol for addresses autoconfiguration in
106addition to any addresses autoconfigured using stateless address
107autoconfiguration.
108
109Default: not set
110@end deffn
111
112@deffn {Interface Command} {ipv6 nd other-config-flag} {}
113@deffnx {Interface Command} {no ipv6 nd other-config-flag} {}
114Set/unset flag in IPv6 router advertisements which indicates to hosts that
115they should use administered (stateful) protocol to obtain autoconfiguration
116information other than addresses.
117
118Default: not set
paul718e3742002-12-13 20:15:29 +0000119@end deffn
120
vincent29c4c9b2005-03-25 13:05:47 +0000121@deffn {Interface Command} {ipv6 nd home-agent-config-flag} {}
122@deffnx {Interface Command} {no ipv6 nd home-agent-config-flag} {}
123Set/unset flag in IPv6 router advertisements which indicates to hosts that
124the router acts as a Home Agent and includes a Home Agent Option.
125
126Default: not set
127@end deffn
128
129@deffn {Interface Command} {ipv6 nd home-agent-preference} {}
130@deffnx {Interface Command} {no ipv6 nd home-agent-preference} {}
131The value to be placed in Home Agent Option, when Home Agent config flag is set,
132which indicates to hosts Home Agent preference.
133
134Default: 0
135@end deffn
136
137@deffn {Interface Command} {ipv6 nd home-agent-lifetime} {}
138@deffnx {Interface Command} {no ipv6 nd home-agent-lifetime} {}
139The value to be placed in Home Agent Option, when Home Agent config flag is set,
140which indicates to hosts Home Agent Lifetime. A value of 0 means to place Router Lifetime value.
141
142Default: 0
143@end deffn
144
145@deffn {Interface Command} {ipv6 nd adv-interval-option} {}
146@deffnx {Interface Command} {no ipv6 nd adv-interval-option} {}
147Include an Advertisement Interval option which indicates to hosts the maximum time,
148in milliseconds, between successive unsolicited Router Advertisements.
149
150Default: not set
151@end deffn
152
Chris Caputob60668d2009-05-03 04:40:57 +0000153@deffn {Interface Command} {ipv6 nd router-preference (high|medium|low)} {}
154@deffnx {Interface Command} {no ipv6 nd router-preference} {}
155Set default router preference in IPv6 router advertisements per RFC4191.
156
157Default: medium
158@end deffn
159
paul718e3742002-12-13 20:15:29 +0000160@example
161@group
162interface eth0
gdta2c0a572004-11-05 12:59:21 +0000163 no ipv6 nd suppress-ra
hasso3e31cde2004-05-18 11:58:59 +0000164 ipv6 nd prefix 2001:0DB8:5009::/64
paul718e3742002-12-13 20:15:29 +0000165@end group
166@end example
hasso3e31cde2004-05-18 11:58:59 +0000167
168For more information see @cite{RFC2462 (IPv6 Stateless Address Autoconfiguration)}
vincent29c4c9b2005-03-25 13:05:47 +0000169, @cite{RFC2461 (Neighbor Discovery for IP Version 6 (IPv6))}
Chris Caputob60668d2009-05-03 04:40:57 +0000170, @cite{RFC3775 (Mobility Support in IPv6 (Mobile IPv6))}
171and @cite{RFC4191 (Default Router Preferences and More-Specific Routes)}.