To disable support for (ipv6
) addressing on interfaces by default add the following line to
/etc/sysctl.d/ipv6.conf
(or another file in /etc/sysctl.d
):
net.ipv6.conf.default.disable_ipv6 = 1
This disables IPv6 on network interfaces by default as other services and system
functionality require the IPv6 stack loaded to work.