Linux Shutdown Deactivate IPv6 method

Source: Internet
Author: User

Modify the/etc/sysconfig/network corresponding network card, append:

The code is as follows

Networking_ipv6=no

2. Modify the/etc/hosts, the IPv6 of the local host name resolution also commented out:

The code is as follows

#::1 localhost Localhost6 localhost6.localdomain6

3. Create file/etc/modprobe.d/ipv6off.conf (name casually)

Note: There is no/etc/modprobe.conf this file after RHEL6.0.

The code is as follows

Alias net-pf-10 off
Options IPv6 disable=1

4. Reboot the system and confirm:

The code is as follows
[Root@test ~]# Lsmod | Grep-i IPv6
[Root@test ~]# Ifconfig | Grep-i Inet6

If the results of these 2 commands are not displayed, then the IPv6 has been completely banned.

Other:

In a method that does not load the IPv6 module, someone will have a setup method like this:

The code is as follows
Alias net-pf-10 off
Alias IPv6 off
Options IPv6 disable=1

Although the IPv6 did not load after the system was restarted, the second sentence, in some versions of the system, when we restart the network, there will be errors: Fatal:module off is not found.

RedHat 5.x

To disable IPV6 in a virtual machine running RedHat 5.x:

1.Log in as root or superuser. Www.111cn.net

2.If the/etc/sysconfig/network file contains the line Networking_ipv6=yes and change the line to:

Networking_ipv6=no

3.In the file/etc/modprobe.conf, add this line:

Options IPv6 disable=1

4.Save the file and reboot the system.

After your disable IPv6, you are should be able to install and configure VMware Tools successfully.

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.