diff options
author | Nikolay Amiantov <ab@fmap.me> | 2017-02-03 02:26:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-03 02:26:31 +0300 |
commit | 5247140e57de75dd578fdfdb3f1439e0678076bd (patch) | |
tree | 0f28eb2172d79773ddf164fbcdff43911e4cd0b8 /nixos/doc | |
parent | a5a4b134f31a887a24bf91e642cc9e12c3cf438e (diff) | |
parent | 4feb0a998adc60c1ff8a3e31b7a79455fe27f6d5 (diff) |
Merge pull request #21875 from abbradar/gateway-interface
Allow specifying interface for default gateway
Diffstat (limited to 'nixos/doc')
-rw-r--r-- | nixos/doc/manual/configuration/ipv6-config.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nixos/doc/manual/configuration/ipv6-config.xml b/nixos/doc/manual/configuration/ipv6-config.xml index bf86926f9bf5..6d9e0a164e9e 100644 --- a/nixos/doc/manual/configuration/ipv6-config.xml +++ b/nixos/doc/manual/configuration/ipv6-config.xml @@ -22,5 +22,25 @@ boot.kernel.sysctl."net.ipv6.conf.eth0.disable_ipv6" = true; </programlisting> </para> +<para>As with IPv4 networking interfaces are automatically configured via +DHCPv6. You can configure an interface manually: + +<programlisting> +networking.interfaces.eth0.ip6 = [ { address = "fe00:aa:bb:cc::2"; prefixLength = 64; } ]; +</programlisting> +</para> + +<para>For configuring a gateway, optionally with explicitly specified interface: + +<programlisting> +networking.defaultGateway6 = { + address = "fe00::1"; + interface = "enp0s3"; +} +</programlisting> +</para> + +<para>See <xref linkend='sec-ipv4' /> for similar examples and additional information. +</para> </section> |