Disable IPv6 in Ubuntu 8.04

Some may find that out-of-the-box, Hardy Heron’s network performance is painfully slow. By default, IPv6 is enabled, and chances are good that your nearest router can’t speak the language nor interpret DNS requests efficiently.

To disable IPv6, open a shell and append the following to /etc/modprobe.d/blacklist:

[code]
# disable ipv6
blacklist ipv6
[/code]

Reboot.

To verify that IPv6 is disabled, run

[code]
lsmod | grep ipv6
[/code]

or

[code]
ip a | grep inet6
[/code]

The commands shouldn’t return any information. Firefox browsing speeds should be much improved.

 

About Benjamin Perove

Ben has been associated with a broad spectrum of technologies starting from an early age, and he's contributed to the success of many businesses and enterprises since 2001. Most of his time is spent building cool stuff. When he's not working, he enjoys reading, playing acoustic guitar, and being with friends. He currently resides in Chiang Mai, Thailand.

11 Comments so far

  1. Corey @ September 26th, 2008

    It works!

  2. […] Fuente original: Benperove.com […]

  3. Graham S. @ October 16th, 2008

    A lot easier than I thought it would be, thanks!

  4. […] DNS serverio AAAA užklausų išsprendimas tikrai nėra daug lėtesnis už A tipo, kaip kad sklando visokie gandai […]

  5. […] DNS serverio AAAA užklausų išsprendimas tikrai nėra daug lėtesnis už A tipo, kaip kad sklando visokie gandai […]

  6. MIke S @ August 12th, 2009

    Which blacklist file, I have the following:
    blacklist-aht_pci.conf
    blacklist.conf
    blacklist-firewire.conf
    blacklist-framebuffer.conf
    blacklist-oss.conf
    blacklist-watchdog.conf

    Thanks,
    Mike

  7. dogafin @ September 15th, 2009

    i couldnt edit blacklist file, and cant run nautilus, any way to change permission on the file?

  8. Ben @ September 15th, 2009

    Mike S,

    In newer versions of Ubuntu, the file you need to modify is blacklist.conf.

    Dogafin,

    Give this a shot:

    sudo gedit /etc/modprobe.d/blacklist

    Enter your super user password and you should see the file open. If you don’t know the password, type:

    sudo passwd root

    Enter the new password twice, then try to open the blacklist file.

  9. Max Wyatt @ March 9th, 2010

    Using /etc/modprobe.d/blacklist.conf to disable ipv6 doesn’t work on 9.10. Furthermore, IPv6 doesn’t seem to be loaded as a module at all. I an only assume it’s built into the Kernel. I use Linux so I can control my environment rather than having it handed to me, I don’t like this at all.

  10. Ben @ March 9th, 2010

    Hey Max, last I checked the title said 8.04, not 9.10. Sorry I haven’t updated lately.

    To disable in 9.10, modify /etc/modprobe.d/aliases:

    [code]
    alias net-pf-10 off ipv6
    [/code]

    Save, reboot.

    Thx for the comment.

Leave a reply

Add this site to your Firefox Search Bar

Twitter Activity

Recent Entries

Topics

Archives

Got WordPress Security?

You will definitely wish you had downloaded my top 5 recommendations when you're cleaning out malicious Javascript from deep within you WordPress site. Enter your email and get the PDF right now, before it's too late.