Disabling IPv6 under a 2.6 kernel

Posted by chris on Mon 26 Jun 2006 at 08:37

Tags: ,

Sometimes you might have a host which you wish to disable IPv6 upon, this can be useful if you're having DNS timeouts when software attempts to resolve hostnames, and for other reasons.

To disable IPv6 it should be as simple as adding the lines

alias net-pf-10 off
alias ipv6 off

to /etc/modprobe.d/00local (creating the file if it exists).

It is important that this comes in a file earlier in an alphanumeric sort than aliases since that contains aliases that turn this on.

Once you've made this change/addition you will need to restart the box afterwards - since the modules won't unload.

Note: Rumours reach me (thanks Steve) on the following about KDE. Since I don't run KDE I can't confirm this part (it looks like it controls apps in KDE - but if the protocol is not loaded at the kernel level then I can't see why it should be necessary - but just in case ...).

According to this link there is another step: http://ubuntuforums.org/archive/index.php/t-77686.html

"Google finally revealed that you must add 
    KDE_NO_IPV6=true 
    to /etc/environment."

Share/Save/Bookmark


Posted by Anonymous (212.6.xx.xx) on Mon 26 Jun 2006 at 09:36
echo "install ipv6 /bin/true" > /etc/modprobe.conf

[ Parent | Reply to this comment ]

Posted by chris (217.8.xx.xx) on Mon 26 Jun 2006 at 15:31
[ Send Message ]
Good link :)

[ Parent | Reply to this comment ]

Posted by Anonymous (89.120.xx.xx) on Sat 7 Oct 2006 at 20:02
It didn't work for me. But it did work with:

blacklist ipv6

in the same file (to prevent changes at upgrades).

[ Parent | Reply to this comment ]

Posted by Anonymous (77.5.xx.xx) on Thu 29 Mar 2007 at 19:30
Currently 00local will only be read first by chance because modprobe is sourcing /etc/modprobe.d in filesystem and not in alphabetical order (see Debian bug #397765).

[ Parent | Reply to this comment ]

Posted by Anonymous (71.118.xx.xx) on Fri 26 Oct 2007 at 21:21
Editing /etc/modprobe.d/aliases making the change:

s/alias net-pf-10 ipv6/alias net-pf-10 off

is equally effective. If not more so.

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search