LinuxTech

How to disable ipv6-the easiest way in ubuntu/debian system

IPv6 is taken into account to be an alternative choice to IPv4, and it’s used to resolve the issue that the prevailing IPv4 handle area is about to be exhausted. Nonetheless, since there are already a lot of hosts and units linked to the Web utilizing IPv4, it’s virtually unimaginable to change all of them to IPv6 in a single day. Many IPv4 to IPv6 conversion mechanisms have been proposed to advertise the adoption of IPv6, and plenty of purposes are additionally being rewritten, as we advocate, to extend assist for IPv6. One factor is definite, that’s, IPv4 and IPv6 will inevitably coexist within the foreseeable future.

Ideally, the method of transitioning to IPv6 shouldn’t be seen by the tip customers, however the IPv4/IPv6 blended atmosphere typically makes you encounter numerous issues arising from inadvertent collisions between IPv4 and IPv6. For instance, you’ll encounter utility timeout points, comparable to apt-get or ssh makes an attempt to attach by way of IPv6 failed, DNS server by chance emptied IPv6 AAAA information, or your IPv6-enabled system isn’t appropriate along with your Web service supplier The legacy IPv4 community, and so forth. and so forth.

In fact this doesn’t imply that you must blindly disable IPv6 in your Linux machine. In view of the promised advantages of IPv6, as a member of society, we are going to ultimately have to completely embrace it, however as a part of the troubleshooting course of for finish customers, if IPv6 is certainly the wrongdoer, then you’ll be able to attempt to shut it down.

IPv6 and IPv4 are each community protocols. In Linux programs, when IPv6 and IPv4 exist on the similar time, connection timeouts might happen. Disabling the ipv6 module can improve the pace of DNS decision.

Disable IPv6 operate on all interfaces:

echo "1" > /proc/sys/net/ipv6/conf/all/disable_ipv6

To disable the IPv6 operate of the required interface, it is advisable substitute eth0 with the community interface you wish to disable:

echo "1" > /proc/sys/net/ipv6/conf/eth0/disable_ipv6
Show More

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button