Related Articles
- How to Setup Bind Chroot DNS Server on CentOS 7.0 VPS
- How to Running Varnish 3.0 in Front of Nginx, PHP5.4 (PHP-FPM)
- How to Configure Static IP Address on RHEL 7.0/CentOS 7.0
- How to Install ifconfig and netstat on RHEL 7.0/CentOS 7.0
- How to Upgrade Zimbra Collaboration Suite 8.0.7 to 8.5.0 on CentOS 6.5 x86_64
By default, IPv6 has been set to enabled on linux CentOS 5.8 minimum installation. If you plan to disable this feature, you can follow these steps to completely disable it. This can avoid accidentally loaded IPv6 module. This steps may working on other CentOS version.
1. Create disable-ipv6.conf on /etc/modprobe.d/ and add the following line :
[root@centos58 ~]# vi /etc/modprobe.d/disable-ipv6.conf
Add the following line :
install ipv6 /bin/true
Whenever the system needs to load the ipv6 kernel module, it is forced to execute the command true instead of actually loading the module.
2. Edit /etc/sysconfig/network and modify as below :
Set NETWORKING_IPV6 value to “no” :
NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=localhost.localdomain3. Do not forget to disable and stop the IPv6 firewall if exist :
Disable auto start at boot :
[root@centos58 ~]# /sbin/chkconfig ip6tables offStop ip6tables service if running :
[root@centos58 ~]# service ip6tables stop4. Add “net.ipv6.conf.all.disable_ipv6 = 1″ into /etc/sysctl.conf
[root@centos58 ~]# echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.confor
[root@centos58 ~]# vi /etc/sysctl.confAdd the following line at the bottom of sysctl.conf file :
.. ... net.ipv4.tcp_syncookies = 1 ...5. Reboot the server is required to complete the steps above.
Sign up for the WP Engine affiliate program and receive a minimum of $150 per referral! As always if you need any help you can reach us on twitter @ehowstuff or drop us a comment below. Jumping through archives page to read more articles..


