How to disable IPv6 in Debian (and derivatives)

    • Edit /etc/sysctl.conf and add the following lines at the bottom:
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    net.ipv6.conf.lo.disable_ipv6 = 1
    •  Reconfigure kernel runtime paramaters using the command sysctl -p
    • Verify it worked
      • cat /proc/sys/net/ipv6/conf/all/disable_ipv6 (should return a value of "1")
      • ifconfig -a (the IPv6 addresses should be gone)

    No questions yet.