Update: this only works on older Linux kernels (e.g. Fedora 12). For newer kernels, please see Disabling IPv6 on Fedora 17 Linux
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.