How to turn off ipv6

  
in CentOS5

Let's say how to turn off IPv6 in CentOS 5:

1. Modify the /etc/modprobe.conf file and add: alias net-pf- 10 off alias ipv6 off

2. Modify the /etc/sysconfig/network file, modify ”NETWORKING_IPV6″ a behavior: NETWORKING_IPV6=no

Then restart the Centos system.

There is also an easy way: echo "install ipv6 /bin/true" > /etc/modprobe.d/disable-ipv6

In version 5.4 you need to change to the following command: Echo "options ipv6 disable=1" > /etc/modprobe.d/disable-ipv6

Copyright © Windows knowledge All Rights Reserved