Disable IPv6 on Linux

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.

 

Eric Zhiqiang Ma

Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

3 comments:

Leave a Reply

Your email address will not be published. Required fields are marked *