]> git.proxmox.com Git - mirror_frr.git/blame - doc/user/ipv6.rst
Merge pull request #3516 from qlyoung/doc-ip-nht-resolve-via-default
[mirror_frr.git] / doc / user / ipv6.rst
CommitLineData
11ab5329 1.. _ipv6-support:
42fc5d26
QY
2
3************
4IPv6 Support
5************
6
d1e7591e 7FRR fully supports IPv6 routing. As described so far, FRR supports RIPng,
c1a54c05
QY
8OSPFv3, and BGP-4+. You can give IPv6 addresses to an interface and configure
9static IPv6 routing information. FRR IPv6 also provides automatic address
10configuration via a feature called ``address auto configuration``. To do it,
11the router must send router advertisement messages to the all nodes that exist
12on the network.
42fc5d26 13
dc1046f7 14Previous versions of FRR could be built without IPv6 support. This is
42fc5d26
QY
15no longer possible.
16
17Router Advertisement
18====================
19
4652e58c 20.. index:: no ipv6 nd suppress-ra
29adcd50 21.. clicmd:: no ipv6 nd suppress-ra
c1a54c05 22
d1e7591e 23 Send router advertisement messages.
42fc5d26 24
4652e58c 25.. index:: ipv6 nd suppress-ra
29adcd50 26.. clicmd:: ipv6 nd suppress-ra
c1a54c05 27
d1e7591e 28 Don't send router advertisement messages.
42fc5d26 29
4652e58c 30.. index:: ipv6 nd prefix ipv6prefix [valid-lifetime] [preferred-lifetime] [off-link] [no-autoconfig] [router-address]
29adcd50 31.. clicmd:: ipv6 nd prefix ipv6prefix [valid-lifetime] [preferred-lifetime] [off-link] [no-autoconfig] [router-address]
42fc5d26 32
c1a54c05
QY
33 Configuring the IPv6 prefix to include in router advertisements. Several prefix
34 specific optional parameters and flags may follow:
42fc5d26 35
c1a54c05
QY
36 - ``valid-lifetime``: the length of time in seconds during what the prefix is
37 valid for the purpose of on-link determination. Value ``infinite`` represents
38 infinity (i.e. a value of all one bits (``0xffffffff``)).
39 Range: ``(0-4294967295)`` Default: ``2592000``
42fc5d26 40
c1a54c05
QY
41 - ``preferred-lifetime``: the length of time in seconds during what addresses
42 generated from the prefix remain preferred. Value ``infinite`` represents
43 infinity.
44 Range: ``(0-4294967295)`` Default: ``604800``
42fc5d26 45
c1a54c05
QY
46 - ``off-link``: indicates that advertisement makes no statement about on-link or
47 off-link properties of the prefix.
48 Default: not set, i.e. this prefix can be used for on-link determination.
42fc5d26 49
c1a54c05
QY
50 - ``no-autoconfig``: indicates to hosts on the local link that the specified prefix
51 cannot be used for IPv6 autoconfiguration.
42fc5d26 52
c1a54c05 53 Default: not set, i.e. prefix can be used for autoconfiguration.
42fc5d26 54
c1a54c05
QY
55 - ``router-address``: indicates to hosts on the local link that the specified
56 prefix contains a complete IP address by setting R flag.
57
58 Default: not set, i.e. hosts do not assume a complete IP address is placed.
42fc5d26 59
4652e58c 60.. index::
29adcd50
QY
61 single: no ipv6 nd ra-interval [(1-1800)]
62 single: no ipv6 nd ra-interval [(1-1800)]
29adcd50 63.. clicmd:: [no] ipv6 nd ra-interval [(1-1800)]
42fc5d26 64
c1a54c05
QY
65 The maximum time allowed between sending unsolicited multicast router
66 advertisements from the interface, in seconds.
67 Default: ``600``
42fc5d26 68
c1a54c05 69.. index:: ipv6 nd ra-interval msec (70-1800000)
4652e58c 70.. index::
29adcd50
QY
71 single: no ipv6 nd ra-interval [msec (70-1800000)]
72 single: ipv6 nd ra-interval msec (70-1800000)
29adcd50 73.. clicmd:: [no] ipv6 nd ra-interval [msec (70-1800000)]
c1a54c05
QY
74
75 The maximum time allowed between sending unsolicited multicast router
76 advertisements from the interface, in milliseconds.
77 Default: ``600000``
42fc5d26 78
4652e58c 79.. index::
29adcd50
QY
80 single: ipv6 nd ra-lifetime (0-9000)
81 single: no ipv6 nd ra-lifetime [(0-9000)]
29adcd50 82.. clicmd:: [no] ipv6 nd ra-lifetime [(0-9000)]
c1a54c05
QY
83
84 The value to be placed in the Router Lifetime field of router advertisements
85 sent from the interface, in seconds. Indicates the usefulness of the router
86 as a default router on this interface. Setting the value to zero indicates
87 that the router should not be considered a default router on this interface.
88 Must be either zero or between value specified with ``ipv6 nd ra-interval``
89 (or default) and 9000 seconds.
90 Default: ``1800``
4652e58c
QY
91
92.. index::
29adcd50
QY
93 single: no ipv6 nd reachable-time [(1-3600000)]
94 single: ipv6 nd reachable-time (1-3600000)
29adcd50 95.. clicmd:: [no] ipv6 nd reachable-time [(1-3600000)]
c1a54c05
QY
96
97 The value to be placed in the Reachable Time field in the Router
98 Advertisement messages sent by the router, in milliseconds. The configured
99 time enables the router to detect unavailable neighbors. The value zero
100 means unspecified (by this router).
101 Default: ``0``
4652e58c
QY
102
103.. index::
104 single: ipv6 nd managed-config-flag
105 single: no ipv6 nd managed-config-flag
29adcd50 106.. clicmd:: [no] ipv6 nd managed-config-flag
c1a54c05
QY
107
108 Set/unset flag in IPv6 router advertisements which indicates to hosts that
109 they should use managed (stateful) protocol for addresses autoconfiguration
110 in addition to any addresses autoconfigured using stateless address
111 autoconfiguration.
112 Default: not set
4652e58c
QY
113
114.. index::
115 single: ipv6 nd other-config-flag
116 single: no ipv6 nd other-config-flag
29adcd50 117.. clicmd:: [no] ipv6 nd other-config-flag
c1a54c05
QY
118
119 Set/unset flag in IPv6 router advertisements which indicates to hosts that
120 they should use administered (stateful) protocol to obtain autoconfiguration
121 information other than addresses.
122 Default: not set
4652e58c
QY
123
124.. index::
125 single: ipv6 nd home-agent-config-flag
126 single: no ipv6 nd home-agent-config-flag
29adcd50 127.. clicmd:: [no] ipv6 nd home-agent-config-flag
c1a54c05
QY
128
129 Set/unset flag in IPv6 router advertisements which indicates to hosts that
130 the router acts as a Home Agent and includes a Home Agent Option.
131 Default: not set
4652e58c 132
29adcd50 133.. index:: ipv6 nd home-agent-preference (0-65535)
4652e58c
QY
134
135.. index::
29adcd50
QY
136 single: no ipv6 nd home-agent-preference [(0-65535)]
137 single: ipv6 nd home-agent-preference (0-65535)
29adcd50 138.. clicmd:: [no] ipv6 nd home-agent-preference [(0-65535)]
c1a54c05
QY
139
140 The value to be placed in Home Agent Option, when Home Agent config flag is
141 set, which indicates to hosts Home Agent preference. The default value of 0
142 stands for the lowest preference possible.
143 Default: ``0``
4652e58c
QY
144
145.. index::
29adcd50
QY
146 single: ipv6 nd home-agent-lifetime (0-65520)
147 single: no ipv6 nd home-agent-lifetime (0-65520)
29adcd50 148.. clicmd:: [no] ipv6 nd home-agent-lifetime [(0-65520)]
4652e58c 149
c1a54c05
QY
150 The value to be placed in Home Agent Option, when Home Agent config flag is set,
151 which indicates to hosts Home Agent Lifetime. The default value of 0 means to
152 place the current Router Lifetime value.
153
154 Default: ``0``
4652e58c
QY
155
156.. index::
157 single: ipv6 nd adv-interval-option
158 single: no ipv6 nd adv-interval-option
29adcd50 159.. clicmd:: [no] ipv6 nd adv-interval-option
c1a54c05
QY
160
161 Include an Advertisement Interval option which indicates to hosts the maximum time,
162 in milliseconds, between successive unsolicited Router Advertisements.
163 Default: not set
4652e58c
QY
164
165.. index::
166 single: ipv6 nd router-preference (high|medium|low)
167 single: no ipv6 nd router-preference (high|medium|low)
29adcd50 168.. clicmd:: [no] ipv6 nd router-preference [(high|medium|low)]
c1a54c05
QY
169
170 Set default router preference in IPv6 router advertisements per RFC4191.
171 Default: medium
4652e58c
QY
172
173.. index::
29adcd50
QY
174 single: ipv6 nd mtu (1-65535)
175 single: no ipv6 nd mtu [(1-65535)]
29adcd50 176.. clicmd:: [no] ipv6 nd mtu [(1-65535)]
4652e58c 177
c1a54c05
QY
178 Include an MTU (type 5) option in each RA packet to assist the attached
179 hosts in proper interface configuration. The announced value is not verified
180 to be consistent with router interface MTU.
181
182 Default: don't advertise any MTU option.::
183 interface eth0
184 no ipv6 nd suppress-ra
185 ipv6 nd prefix 2001:0DB8:5009::/64
186
4652e58c 187
c1a54c05 188.. seealso::
4652e58c 189
c1a54c05
QY
190 - :rfc:`2462` (IPv6 Stateless Address Autoconfiguration)
191 - :rfc:`4861` (Neighbor Discovery for IP Version 6 (IPv6))
192 - :rfc:`6275` (Mobility Support in IPv6)
193 - :rfc:`4191` (Default Router Preferences and More-Specific Routes)