Disable IPv6 in Ubuntu

Source: Internet
Author: User

Ubuntu is a Linux operating system mainly based on desktop applications. Its goal is to provide general users with an up-to-date and stable operating system mainly built from free software. Ubuntu has a huge community power, allowing users to easily get help from the community.

IPv6 is short for "Internet Protocol Version 6". It is the next-generation IP Protocol designed by IETF to replace the current Version of ipprotocol-IPv4. IPv6 is constantly developing and improving, and will replace the widely used IPv4 in the near future. However, because the main network is still using the IPv4 protocol, enabling IPv6 sometimes affects the network performance of the server. After all, the current network device is not IPv6. Next we will teach you how to disable IPv6 in Ubuntu.

Sudo gedit/etc/modprobe. d/aliases

Then modify this line:

Alias net-pf-10 ipv6 is:

Alias net-pf-10 off # ipv6

Comment out all IPV6-related lines in the hosts file.

Sudo gedit/etc/hosts

This will disable IPV6 network interfaces.

Create a new/etc/modprobe. d/bad_list file with the following content:

Alias net-pf-10 off

Then restart the instance to disable IPv6 in Ubuntu.

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.