Guy Fawkes Posted May 3, 2024 Posted May 3, 2024 While both internet service providers and IT experts caution users against disabling IPv6 on Linux devices permanently, it’s OK to turn the protocol off temporarily when troubleshooting network issues. In this article, we will teach you how to disable IPv6 on your Linux device. Red Hat-based distributions Here's how to disable IPv6 on Linux if you’re running a Red Hat-based system: Open the terminal window. Change to the root user. Type these commands: sysctl -w net.ipv6.conf.all.disable_ipv6=1 sysctl -w net.ipv6.conf.default.disable_ipv6=1 sysctl -w net.ipv6.conf.tun0.disable_ipv6=1 To re-enable IPv6, type these commands: sysctl -w net.ipv6.conf.all.disable_ipv6=0 sysctl -w net.ipv6.conf.default.disable_ipv6=0 sysctl -w net.ipv6.conf.tun0.disable_ipv6=0 sysctl -p Debian-based distributions Here's how to disable IPv6 on Linux if you’re running a Debian-based machine. Open the terminal window. Type this command: sudo nano /etc/sysctl.conf Add the following at the bottom of the file: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 net.ipv6.conf.tun0.disable_ipv6 = 1 Save and close the file. Reboot your device. To re-enable IPv6, remove the above lines from /etc/sysctl.conf and reboot your device. Quote Donate Vi Veri Veniversum Vivus Vici If you need help installing any software from this site or any other - write to @Guy Fawkes - we will agree for a modest reward!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.