Centos6.x completely disables ipv6

Source: Internet
Author: User
Ipv6 is not popular now, and it is almost useless. it should be completely disabled; otherwise, it will affect the actual application. For example, if you do not disable ipv6, you may use ipv6 to enable Google or even the ipv6 version, which is very slow and seriously affects your use. Specific Method: 1. modify/etc/sysconfig/network, append: NETWORKING_IPV6 = no2. modify/etc/hosts, resolve the local host name of ipv6

Ipv6 is not popular now, and it is almost useless. it should be completely disabled; otherwise, it will affect the actual application. For example, if you do not disable ipv6, you may use ipv6 to enable Google or even the ipv6 version, which is very slow and seriously affects your use.

Specific method:

1. modify/etc/sysconfig/network and append:

NETWORKING_IPV6 = no

2. modify/etc/hosts and comment out the local host name resolution in ipv6:

#: 1 localhost localhost6 localhost6.localdomain6

3. add at the end of/etc/modprobe. d/dist. conf

Alias net-pf-10 off
Alias ipv6 off

Then restart the system.

Run lsmod | grep-I ipv6 and ifconfig | grep-I inet6. if nothing exists, it indicates that it is disabled successfully.

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.