View and disable IPV6 in CentOS 6.0

Source: Internet
Author: User
Tags centos

Check whether to open an IPV6 account

1. Check whether ipv6 is enabled in the system.

A) view the Eni attributes

Command: ifconfig

Note: "inet6 addr:..." is available :....... The ipv6 feature is enabled.

B) view the information loaded by the kernel module


Command: lsmod | grep ipv6

Disable IPV6 commands

Add file/etc/modprobe. d/ipv6-off.conf content:

The code is as follows: Copy code

Alibaba as net-pf-10 off alias ipv6 off

Edit/etc/sysconfig/network to add the following content:

The code is as follows: Copy code

NETWORKING_IPV6 = no

Edit/etc/sysctl. conf to add the following content:

The code is as follows: Copy code
# Disable IPv6
Net. ipv6.conf. all. disable_ipv6 = 1

Disable ip6tables

The code is as follows: Copy code

Service ip6tables stop
Chkconfig ip6tables off
Reboot

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.