The new IPv6, or Internet Protocol version 6 brings forth a number of fixes to Linux's IPv4 protocol, including an updated architectural structure, additional addresses per person, smaller routing tables, and mobile IP.
Despite this new protocol's growing popularity, some users may decide that they want to disable IPv6 in order to address troubleshooting issues. While this is not recommended, if you are keen on doing so, there are methods that are much more safe and effective for your computer. Here's how to disable IPv6 on Ubuntu.
How To Disable IPv6
Before performing any operation, we recommend educating yourself as much as possible regarding IPv6 and your internet connections.
Please note that disabling IPv6 (which is now a mandatory part of Windows Vista, as well as some later Windows operating systems) may cause some applications to function improperly. Also note that, unlike other protocols, you cannot disable IPv6 by disabling the protocol on each of your network interfaces.
To disable IPv6 support under Ubuntu, open your terminal and edit the /etc/sysctl.conf file by typing: