mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #18446 from siddharthist/docs/ipv6-per-interface
nixos manual: disable ipv6 per interface
This commit is contained in:
commit
be33fc8973
1 changed files with 8 additions and 1 deletions
|
@ -12,8 +12,15 @@ can disable IPv6 support globally by setting:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
networking.enableIPv6 = false;
|
networking.enableIPv6 = false;
|
||||||
</programlisting>
|
</programlisting></para>
|
||||||
|
|
||||||
|
<para>You can disable IPv6 on a single interface using a normal sysctl (in this
|
||||||
|
example, we use interface <varname>eth0</varname>):
|
||||||
|
|
||||||
|
<programlisting>
|
||||||
|
boot.kernel.sysctl."net.ipv6.conf.eth0.disable_ipv6" = true;
|
||||||
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue