I found a really quick fix today for disabling ipv6 completely on Ubuntu 7.10 (not yet tested on previous versions). This might be of interest to some of you that have had networking problems, as I’ve heard disabling ipv6 at least within the browser has been a help here. This tutorial will disable ipv6 completely on the machine. At this point activating or disabling ipv6 probably wont make much of a difference as very few people actually implement or use ipv6. Unless you know you have a reason to need (or not need) this, you can probably safely leave it where it is.

Disabling ipv6 on Ubuntu 7.10

We’ll simply need to change a line in one of the configuration files that loads the ipv6 module to the kernel. As of yet I have not figured out a way to update this change outside of restarting the machine. If anyone has any suggestions on removing ipv6 “live” I would appreciate it.

Change the line is /etc/modprobe.d/aliases from:

alias net-pf-10 ipv6

to

alias net-pf-10 off

Again, at this point you’ll need to restart your machine for the change to take place. If anyone knows of a way to avoid the reboot I would appreciate it.

If this site has been useful, please consider participating in the Fundraiser.

Other Points of Interest

  • No Related Post

Comments

14 Responses to “How To Disable ipv6 on Ubuntu 7.10 “Gutsy Gibbon””

  1. pasquale on November 18th, 2007 2:09 pm

    i have these:
    #alias net-pf-10 ipv6
    alias net-pf-10 ipv6 off
    alias net-pf-10 off
    alias ipv6 off

  2. Rui Miguel Silva Seabra on November 18th, 2007 2:42 pm

    /etc/inet.d/networking stop
    modprobe -r ipv6
    do changes
    depmod -a
    /etc/inet.d/networking start

    should probably do the trick (yup, untested, do all as root).

  3. pvandewyngaerde on November 18th, 2007 3:32 pm

    without reboot would this work ?? i dont know
    /etc/init.d/networking restart

  4. Shane on November 18th, 2007 4:13 pm

    Is it my imagination or did you remove the vmware server 2.0 beta post?

    Did you not like the new approach they took that much? :)

  5. voidmage on November 18th, 2007 4:20 pm

    What about?

    rmmod ipv6

  6. Jeff Schroeder on November 18th, 2007 4:21 pm

    # On lines that start ‘alias net-pf-10′, find ‘ipv6′ and change it to ‘off’. (for those who don’t know)
    sudo sed -i ‘/net-pf-10/s/ipv6/off/’ /etc/modprobe.d/aliases

    Since the ipv6 module is going to complain about being “in use” if you try to force unload it, you have to stop your networking, unload ALL related networking modules, and finally ipv6.

    Then you can modprobe them all again (sans ipv6) but it is much easier to just bounce the box.

  7. Keith on November 18th, 2007 5:05 pm

    I used to disable IPv6 on Fedora the same way. However, on Ubuntu, I just add the following line to /etc/modprobe.d/blacklist:

    blacklist ipv6

    I thought this was the “right” way to do it (not sure where I got that idea), but I doubt there really is any such thing…

  8. PriceChild on November 18th, 2007 6:06 pm

    Maybe it would be worth mentioning why this “workaround” has any effect at all on some systems… and what the real solution should be.

  9. Divan Santana on November 19th, 2007 12:23 am

    I’ve tried all of the above and it is still there. Blacklisted it removed/changed in /etc/modprobe.d/aliases and rmmod -f ipv6 etc. It depends on:

    ipv6 317192 17 nf_conntrack_h323

    Seems it won’t go away. Hopefully vmware 2 will still work.

    I’m using 64bit Kubuntu.

  10. name on December 8th, 2007 6:51 am

    only this one worked on Ubuntu 7.10 aka Gutsy add the following line to /etc/modprobe.d/blacklist :

    blacklist ipv6

  11. cirion on January 21st, 2008 8:54 pm

    I also needed to do the blacklist in order for it to work. I’m on 64 bit Ubuntu Gutsy. It looks like the original steps (modifying /etc/modprobe.d/aliases) disabled ipv6 on my wired connection (eth0), but not on my wireless (wlan0). Blacklisting disables both, and now I can connect fine.

  12. klavergne on January 24th, 2008 1:24 pm

    For me disabling IPv6 on Gutsy disables all networking. I still have a v4 address, but can’t connect to anything except localhost.

  13. Chris English on February 3rd, 2008 3:34 pm

    I’m having the same problem with IPV6 in use,

    Jeff Schroeder, could you give us a step by step guide for us newbie linux users, thx
    (ie ” you have to stop your networking, unload ALL related networking modules, and finally ipv6.

    Then you can modprobe them all again (sans ipv6) but it is much easier to just bounce the box.”)

  14. shane on February 7th, 2008 11:59 pm

    Hi,

    I found the solution for those who tried all the alias stuff and none of it worked.

    Goto the menu System->Administration->network

    Once the network tool loads, goto the Hosts tab.

    CHANGE ALL the ip6 text to ip4

    Close and then ping something on the network, it may take some seconds to readjust itself.

    Thanks.

Leave a Comment




    Subscribe to the RSS feed!


    subscribe to the ubuntu tutorials RSS feed

    Ubuntu Tutorials Fundraiser


    Please Donate to
    Server Improvement

    Target amount: USD1,000.00
    Total Donations: USD255.00
    Amount Needed: USD745.00

    Thank you for your support!

    Click to Donate

    Polls



  • Blogroll

  • Ads by Google