From 2ab60209307294db1dba48be8896b226adc50cf6 Mon Sep 17 00:00:00 2001 From: Langston Barrett Date: Thu, 8 Sep 2016 18:12:05 +0000 Subject: [PATCH] nixos manual: disable ipv6 per interface from a discussion on #13293 --- nixos/doc/manual/configuration/ipv6-config.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/doc/manual/configuration/ipv6-config.xml b/nixos/doc/manual/configuration/ipv6-config.xml index 592bf20e545d..bf86926f9bf5 100644 --- a/nixos/doc/manual/configuration/ipv6-config.xml +++ b/nixos/doc/manual/configuration/ipv6-config.xml @@ -12,8 +12,15 @@ can disable IPv6 support globally by setting: networking.enableIPv6 = false; - + +You can disable IPv6 on a single interface using a normal sysctl (in this +example, we use interface eth0): + + +boot.kernel.sysctl."net.ipv6.conf.eth0.disable_ipv6" = true; + +