LinuxMoz

Linux Stuff && Coffee

Ubuntu Disable IPv6

| Comments

With IPv6 enabled some users experience slow Internet, normally due to browsers trying IPv6 first if that fails then reverting back to the IPv4 stack. If you have a half configured IPv6 setup then you may experience other networking issues, this guide show you how to disable IPv6 on Ubuntu 10.04 / 11.04 and all other current versions see below.

Ubuntu Disable IPv6 via Grub

The following command disables IPv6 using Grub at boot time, and I have found it the most affective.

Open: /etc/default/grub

1
sudo vi /etc/default/grub

Find the line:

1
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Replace it with the following line to disable IPv6 on Ubuntu:

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

Save the text file (see our vi commands page for more vi help) and update grub with:

1
sudo update-grub

You are good to go… Reboot and you will have disabled IPv6 on Ubuntu.

Comments