[CentOS] Disable IPV6

Wed Nov 29 15:22:22 UTC 2006
Aleksandar Milivojevic <alex at milivojevic.org>

Quoting Tom Brown <tom at ng23.net>:

> Hi
>
> On a CentOS 4.x box how does one disable IPV6?
>
> Is adding "alias net-pf-10 off" to the end of modprobe.conf and a
> reboot still the 'standard' way of doing this ?

Yes, it is the only way of doing it.  That alias will simply disable  
automatic loading of ipv6 kernel module.  You can still load it  
manually (using modprobe).

In 2.4 kernels ipv6 kernel module was not automatically loaded.  If  
you wanted ipv6 module to automatically be loaded in 2.4 kernels, you  
had to use "alias net-pf-10 ipv6".  In 2.6 kernels, default was  
changed to autoload the ipv6 module if userland application needs  
IPv6.  Nowdays, almost all network daemons are IPv6 enabled.   
Triggering the load of ipv6 kernel module as system services are  
started (unless you disabled autoloading of ipv6).