Skip to content

Instantly share code, notes, and snippets.

@francisregan
Last active September 20, 2020 09:13
Show Gist options
  • Save francisregan/ebc2689badb03de9ef223ff947904103 to your computer and use it in GitHub Desktop.
Save francisregan/ebc2689badb03de9ef223ff947904103 to your computer and use it in GitHub Desktop.
Disable IPV6 on ubuntu via grub and sysctl.conf
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