Last active
January 20, 2021 19:38
-
-
Save colhountech/9ce93c63ed412131a919985c7e2d6d61 to your computer and use it in GitHub Desktop.
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
# /etc/sysctl.conf: | |
net.ipv6.conf.all.disable_ipv6 = 1 | |
net.ipv6.conf.default.disable_ipv6 = 1 | |
# reboot | |
sudo reboot | |
# sudo vi /etc/default/grub | |
# add | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet ipv6.disable=1" | |
# update grub | |
sudo update-grub | |
sudo reboot | |
# search for boot command line to confirm | |
grep Command /var/log/kern.log | |
# test if disabled | |
test -f /proc/net/if_inet6 && echo "ipv6 enabled" || echo "no ipv6" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment