How to disable IPv6 in Ubuntu

Source: Internet
Author: User
Keywords nbsp disabled Modprobe
Tags aliyun computer etc force how to html http internet

IPV6 is the abbreviation for Internet Kyoto Version 6, where internet Kyoto is translated as "Internet Protocol". Http://www.aliyun.com/zixun/aggregation/9485.html ">ipv6 is an IETF (Internet Engineering Task Force, Internet UB Tasks Force) designed to replace the existing version of the IP Protocol (IPV4) of the next generation of IP protocol. The current version number for the IP protocol is 4 (IPV4), and its next version is IPV6.

Disable IPV6 for Ubuntu

1. Enter Gksudo gedit/etc/modprobe.d/aliases under the terminal
2. Comment out this line of alias Net-pf-10 IPv6
3. Save
4. Enter Gksudo Gedit/etc/modprobe.d/blacklist under the terminal
5. Join this line blacklist IPv6
6. Save files and reboot the computer

For Kubuntu

1. Enter Kdesu kate/etc/modprobe.d/aliases under the terminal
2. Comment out this line of alias Net-pf-10 IPv6
3. Save
4. Enter Kdesu Kate/etc/modprobe.d/blacklist under the terminal
5. Join this line blacklist IPv6
6. Save files and reboot the computer

The computer must be restarted before it takes effect.

After you have done this, open a terminal and enter:

IP A | grep Inet6

If there is no output it means that IPv6 is really closed.

The above method does not apply to after Ubuntu 8.10 version of Ubuntu 8.10 version to prevent IPV6 need to add "disable_ipv6=1" after the boot kernel to do the kernel parameter direct delivery.

For Ubuntu 9.10, you can use the following methods:

1. Gksu Gedit/etc/default/grub

Will

grub_cmdline_linux_default= "Quiet Splash"
Into
grub_cmdline_linux_default= "ipv6.disable=1 Quiet Splash"

2. Sudo update-grub

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.