about summary refs log tree commit diff
path: root/nixos/doc
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2017-02-03 02:26:31 +0300
committerGitHub <noreply@github.com>2017-02-03 02:26:31 +0300
commit5247140e57de75dd578fdfdb3f1439e0678076bd (patch)
tree0f28eb2172d79773ddf164fbcdff43911e4cd0b8 /nixos/doc
parenta5a4b134f31a887a24bf91e642cc9e12c3cf438e (diff)
parent4feb0a998adc60c1ff8a3e31b7a79455fe27f6d5 (diff)
downloadnixlib-5247140e57de75dd578fdfdb3f1439e0678076bd.tar
nixlib-5247140e57de75dd578fdfdb3f1439e0678076bd.tar.gz
nixlib-5247140e57de75dd578fdfdb3f1439e0678076bd.tar.bz2
nixlib-5247140e57de75dd578fdfdb3f1439e0678076bd.tar.lz
nixlib-5247140e57de75dd578fdfdb3f1439e0678076bd.tar.xz
nixlib-5247140e57de75dd578fdfdb3f1439e0678076bd.tar.zst
nixlib-5247140e57de75dd578fdfdb3f1439e0678076bd.zip
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.xml20
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>