CentOS 6.7 How to disable IPV6 network

Source: Internet
Author: User



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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.