- Edit grub file at
/etc/default/grub
- Within the GRUB configuration file, locate the line containing “GRUB_CMDLINE_LINUX_DEFAULT” and add “ipv6.disable=1” using the following syntax:
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
- Update GRUB with commond
update-grub
, after successfully updating the GRUB file, you will see “done” in your output. - Reboot system with commond
reboot
.
Reference: https://ultahost.com/knowledge-base/enable-disable-ipv6-ubuntu-linux/