IPv6 is enabled by default on most Linux distros. However, IPv4 is still the mostly used network and IPv6 is not used in many environment. This post introduces how to disable IPv6 support on Linux.
The method is simple:
# echo "options ipv6 disable=1" >> /etc/modprobe.d/disable-ipv6.conf
“option ipv6 disable=1” tells Linux not to enable the ipv6 module.