Disable IPv6 in centos6

Source: Internet
Author: User

First, enter IP-6 ADDR show and lsmod | grep IPv6 on the terminal to check whether the IPv6 module is installed orNetstat-nuptlCheck whether there is an IPv6 address. If yes, it indicates that the IPv6 protocol is not disabled. follow these steps:

VI/etc/modprobe. d/disable-ipv6.conf (name casually)(The/etc/modprobe. conf file is missing after rhel6.0)
Input: Install IPv6/bin/true


[Root @ manager ~] # Cd/etc/modprobe. d/
[Root @ manager modprobe. d] # Cat versions 6.conf
Install IPv6/bin/true

 

Ii. VI/etc/sysconfig/Network

Add the following sentence at the end: ipv6init = No

[Root @ manager ~] # Cat/etc/sysconfig/Network
Networking = Yes
Ipv6init = No

 

3. Disable Ipv6 iptables
Chkconfig ip6tables off

4. Restart.

Finally, enter the first two commands on the terminal to verify whether the IPv6 protocol is successfully disabled. At this time, there should be no content.

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.