1<section xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 version="5.0"
5 xml:id="sec-ipv6">
6 <title>IPv6 Configuration</title>
7
8 <para>
9 IPv6 is enabled by default. Stateless address autoconfiguration is used to
10 automatically assign IPv6 addresses to all interfaces. You can disable IPv6
11 support globally by setting:
12<programlisting>
13<xref linkend="opt-networking.enableIPv6"/> = false;
14</programlisting>
15 </para>
16
17 <para>
18 You can disable IPv6 on a single interface using a normal sysctl (in this
19 example, we use interface <varname>eth0</varname>):
20<programlisting>
21<xref linkend="opt-boot.kernel.sysctl"/>."net.ipv6.conf.eth0.disable_ipv6" = true;
22</programlisting>
23 </para>
24
25 <para>
26 As with IPv4 networking interfaces are automatically configured via DHCPv6.
27 You can configure an interface manually:
28<programlisting>
29<link linkend="opt-networking.interfaces._name__.ipv6.addresses">networking.interfaces.eth0.ipv6.addresses</link> = [ {
30 address = "fe00:aa:bb:cc::2";
31 prefixLength = 64;
32} ];
33</programlisting>
34 </para>
35
36 <para>
37 For configuring a gateway, optionally with explicitly specified interface:
38<programlisting>
39<xref linkend="opt-networking.defaultGateway6"/> = {
40 address = "fe00::1";
41 interface = "enp0s3";
42}
43</programlisting>
44 </para>
45
46 <para>
47 See <xref linkend='sec-ipv4' /> for similar examples and additional
48 information.
49 </para>
50</section>