Last active
September 20, 2020 09:13
-
-
Save francisregan/ebc2689badb03de9ef223ff947904103 to your computer and use it in GitHub Desktop.
Disable IPV6 on ubuntu via grub and sysctl.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "--------------Disabling IPv6-------------------------" | |
echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.default.disable_ipv6' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.lo.disable_ipv6 ' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.wlp3s0.disable_ipv6 ' >> /etc/sysctl.conf | |
sed -i -e 's/quiet splash/quiet splash ipv6.disable=1/g' /etc/default/grub | |
update-grub2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment