Disabling IPv6 on Ubuntu 18.04, 19.04

Last Updated on

IPv6 adds another layer of complexity when configuring a machine for a simple task.  Namely, infrastructure services such as DNS, DHCP and even xRDP can be much easier to troubleshoot without IPv6 complicating issues.  Also, it is my personal preference to typically disable IPv6 – I have no current use for it.

1
2
3
sudo sed -i -e 's/GRUB_CMDLINE_LINUX_DEFAULT="maybe-ubiquity"/GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 maybe-ubiquity"/' /etc/default/grub
sudo sed -i -e 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="ipv6.disable=1"/' /etc/default/grub
sudo update-grub

…and reboot.

Lima

About the author

Lima is the visual nautical indicator for "stop instantly."

Leave a Reply