Centos6.2 disable IPV6

Source: Internet
Author: User
Centos62 disabling IPV6 in Linux IPv6 is now supported by default installation, but for some application servers that are not well supported by IPv6, enabling IPv6 affects the server's network performance. after all, the current network switching device is not IPv6. How to determine whether the system is centos 6.2 to disable IPV6
In Linux, IPv6 is supported by default, but enabling IPv6 will affect the network performance of some application servers that are not well supported by IPv6, after all, the current network switching device is not IPv6. How can I determine if ipv6 is enabled for the system? Run the lsmod | grep ipv6 limit 19392 0 iptable_mangle 3283 1 ipt_MASQUERADE 2400 3 iptable_nat 6124 1 nf_nat 22788 2 ipt_MASQUERADE, limit 9440 4 iptable_nat, limit 1449 1 limit 79643 5 ipt_MASQUERADE, iptable_nat, nf_nat, nf_conntrack_ipv4, xt_stateipt_REJECT 2349 2 iptable_filter 2759 1 ip_tables 17733 3 iptable_mangle, iptable_nat, ip Table_filter ipv6 23488114 second, you can also view the enabled Port netstat-tln tcp 0 0 0.0.0.0: 8100 0.0.0.0: * LISTEN tcp 0 0 0.0.0.0: 3306 0.0.0.0: * LISTEN tcp 0 0 0.0.0.0: 843 0.0.0.0: * LISTEN tcp 0 0 0.0.0.0: 111 0.0.0.0: * LISTEN tcp 0 0 0.0.0.0: 80 0.0.0.0: * LISTEN tcp 0 0 0.0.0.0: 81 0.0.0.0: * LISTEN tcp 0 0 0.0.0.0: 113 0.0.0.0: * LISTEN tcp 0 0 0.0.0.0: 21 0.0.0.0: * LISTEN tcp 0 0 127.0.0.1: 631 0.0.0.0: * LISTEN tcp 0 0 0 12 7.0.0.1: 25 0.0.0.0: * LISTEN tcp 0: 8080: * LISTEN tcp 0 0: 22: * LISTEN tcp 0: 443 ::: * LISTEN udp 0 0 0.0.0.0: 68 0.0.0.0: * udp 0 0 0.0.0.0: 837 0.0.0.0: * udp 0 0 0.0.0.0: 840 0.0.0.0: * udp 0 0 0.0.0.0: 111 0.0.0.0: * udp 0 0 0.0.0.0: 631 0.0.0.0: * How Can I disable it after it is enabled? I am using centos6.2 and cannot find/etc/modprobe. conf file, so I directly vi, and added two lines of alias net-pf-10 offalias ipv6 off and then echo "NETWORKING_IPV6 = NO">/etc/sysconfig/network to restart the system.
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.