IPV6 is enabled when the system is installed, but it is not necessary to use IPV6 when it is actually used, so it needs to be disabled. Here's how I deal with it.
At first I also stepped on a lot of pits, on the internet to read a lot of sharing methods are not, verify whether the IPV6 enabled can use:
Ifconfig |grep Inet6
Or
Lsmod |grep IPv6
1), Close ip6tables
# chkconfig Ip6tables off
2), disable IPv6 network (/etc/sysconfig/network)
# Vim/etc/sysconfig/networknetworking_ipv6=no
3), disable NIC IPV6 settings
# Vim/etc/sysconfig/network-scripts/ifcfg-eth0ipv6init=noipv6_autoconf=no
4), modify the/etc/hosts, disable the IPv6 setting, and parse the IPv6 comment:
# vim/etc/hosts#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Many on the network are introduced the above 4 methods, and then restart the system, or can not disable the IPv6, and then toss, using the following methods of experience is possible.
A,/etc/modprobe/dist.conf file append the following configuration
# vim/etc/modprobe/dist.confalias net-pf-10 Offalias IPv6 off
Then reboot the system and it will be ready. The method of checking is to perform
Ifconfig |grep Inet6
Or
Lsmod |grep IPv6
If no data is returned, the description is disabled.
In addition, there is a way to share on the /boot/grub/grub.conf file on the kernel beginning quiet end after adding disable.ipv6=1, This method is used in Ifconfig | grep INET6 Verification, there is no IPv6, but the use of lsmod |grep IPv6 authentication, still exists.
This article is from the "Balich" blog, make sure to keep this source http://balich.blog.51cto.com/6641781/1759892
CentOS 6.7 How to disable IPV6 network