R's Workshop

Disable IPv6 on Ubuntu Linux

Check IPv6 status

ip -6 addr show

Temporarily Disable IPv6

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1

Permanently Disable IPv6

Edit /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=1"

Update grub, then reboot

sudo update-grub
reboot

GitHub Markdown Langauge Highlight Support

Linux