Skip to content

Instantly share code, notes, and snippets.

@aknik
Forked from francisregan/disable-ipv6.sh
Created June 6, 2017 10:58
Show Gist options
  • Save aknik/f2495e87ed51c548a1aeb62ce0ef9d15 to your computer and use it in GitHub Desktop.
Save aknik/f2495e87ed51c548a1aeb62ce0ef9d15 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