How Do I Permanently Disable Ipv6 in Linux?
Contents

Edit the sysctl configuration file and append with three lines at the end of the file. Run with ” sysctl -p ” command to make the changes effect. Verify the changes, If we get value 1 then IPv6 has been disabled.

How do I permanently disable IPv6?

Open Network and Sharing Center. On the left, select Change adapter settings (Windows 7) or Manage network connections (Vista). Right-click the connection for which you want to disable IPv6, and select Properties. Uncheck Internet Protocol Version 6 (TCP/IPv6) and click OK.

How do I permanently disable IPv6 in Ubuntu?

Disable IPv6 using GRUB

  1. Open the /etc/default/grub, Modify GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT to append ipv6.disable=1: GRUB_CMDLINE_LINUX=”ipv6.disable=1″ GRUB_CMDLINE_LINUX_DEFAULT=”ipv6.disable=1″
  2. Update the grub configuration: update-grub.
  3. Reboot the server: systemctl reboot.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest