How to disable IPv6 on Linux (Old Version Kernels)

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

Eric is a systems guy. 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 *