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.