How to disable ipv6 on ubuntu linux

  1. Edit grub file at /etc/default/grub
  2. 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"
  1. Update GRUB with commond update-grub, after successfully updating the GRUB file, you will see “done” in your output.
  2. Reboot system with commond reboot.

Reference: https://ultahost.com/knowledge-base/enable-disable-ipv6-ubuntu-linux/

Leave a Reply