PDA

View Full Version : How to disable IPv6 in Fedora 14?


peterparks
7th November 2010, 09:35 PM
I've just done a fresh install of Fedora 14. All networking seems really slow in KDE. I've read on some other sites that this could be caused by IPv6 - how can I disable this for Fedora 14?

Of course, it might not be IPv6, but I didn't have this problem with Fedora 11, and Vista is fine. Pretty sure it's a networking issue rather than Internet because it takes ages for me to log into my router.

Can I just use the same instructions as posted here:

http://forums.opensuse.org/english/get-help-here/network-internet/434756-slow-internet-network-general-11-2-a-2.html

Thanks,
Peter

marko
7th November 2010, 09:44 PM
I've just done a fresh install of Fedora 14. All networking seems really slow in KDE. I've read on some other sites that this could be caused by IPv6 - how can I disable this for Fedora 14?

Of course, it might not be IPv6, but I didn't have this problem with Fedora 11, and Vista is fine. Pretty sure it's a networking issue rather than Internet because it takes ages for me to log into my router.

Can I just use the same instructions as posted here:

http://forums.opensuse.org/english/get-help-here/network-internet/434756-slow-internet-network-general-11-2-a-2.html

Thanks,
Peter

You can fire up the system-config-network util and uncheck the
"Enable ipv6 configuration for this interface" checkbox and save/exit.

see:
http://fedorasolved.org/Members/MrHappy/system-config-network

But if by slow networking you especially mean Firefox, see the forum by searching "about:config" and "network.dns.disableIPv6". Firefox constantly tries to use ipv6 DNS because under Fedora it thinks the existence of that Ipv6 interface (which Fedora puts in by default) really means ipv6 works. But 99% of users don't have ipv6 support actually working. So there's an annoying ipv6 dns -> fail -> ipv4 address obtain loop going on each time. Tell Firefox to quit that via using the about:config page to set the network.dns.disableIPv6 to 'true'

assen
7th November 2010, 09:44 PM

Hi,

Try "rmmod ipv6"; you might have to stop the firewall first. If this helps, blacklist the module. There used to be an entry in /etc/sysconfig/network to toggle IPv6, but might have been moved somewhere else.

WWell,

marko
7th November 2010, 10:08 PM
Another way,
put in your /etc/sysctl.conf file:

net.ipv6.conf.all.disable_ipv6=1

That would only take affect after next boot, you can start now without reboot by also doing:

sysctl -w net.ipv6.conf.all.disable_ipv6=1

peterparks
7th November 2010, 10:11 PM
Another way,
put in your /etc/sysctl.conf file:

net.ipv6.conf.all.disable_ipv6 = 1

hmm, doesn't seem to have worked. lsmod still gives me:

ipv6 229420 34 ip6t_REJECT,nf_conntrack_ipv6

i can't run rmmod because the module is in use - even if I stop iptables.

i've disable the setting in firefox, but system-config-network says that my wireless card doesn't have ipv6 anyway.

maybe my problem is just due to my own net connection or flash - youtube keeps dropping out.

i'll see how it is tomorrow unless anyone's got any other suggestions. it does seem faster now than it was a few hours ago (except youtube).

thanks for your suggestions so far

marko
7th November 2010, 10:14 PM
hmm, doesn't seem to have worked. lsmod still gives me:

ipv6 229420 34 ip6t_REJECT,nf_conntrack_ipv6

i can't run rmmod because the module is in use - even if I stop iptables.

i've disable the setting in firefox, but system-config-network says that my wireless card doesn't have ipv6 anyway.

maybe my problem is just due to my own net connection or flash - youtube keeps dropping out.

i'll see how it is tomorrow unless anyone's got any other suggestions. it does seem faster now than it was a few hours ago (except youtube).

thanks for your suggestions so far


Yes, see my statement that sysctl via the file only takes affect at boot time, to do that now, use the -w option. Also I don't think kicking ipv6 out of the kernel would flush out those modules... maybe after a reboot...
Probably the best way is a combination of system-config-network (turn off ipv6 on the interface) and blacklisting the ipv6

tazmad78
28th May 2011, 09:14 PM
Hi there,

Was just wondering if you ever did manage to get this working i.e disable IPv6 on FC 14 - I seem to be having the same problems with doing this as you had, I have:

"NETWORKING_IPV6=no" in /etc/sysconfig/network

"net.ipv6.conf.all.disable_ipv6 = 1" in /etc/sysctl.conf

"blacklist ipv6" in /etc/modprobe.d/blacklist.conf

I've also removed the ip6tables rpms and i am still seeing:

[root@box1 ~]# lsmod | grep ipv6
ipv6 286354 62

Running out of ideas here...

Thanks

marko
28th May 2011, 09:41 PM
Hi there,

Was just wondering if you ever did manage to get this working i.e disable IPv6 on FC 14 - I seem to be having the same problems with doing this as you had, I have:

"NETWORKING_IPV6=no" in /etc/sysconfig/network

"net.ipv6.conf.all.disable_ipv6 = 1" in /etc/sysctl.conf

"blacklist ipv6" in /etc/modprobe.d/blacklist.conf

I've also removed the ip6tables rpms and i am still seeing:

[root@box1 ~]# lsmod | grep ipv6
ipv6 286354 62

Running out of ideas here...

Thanks

Try having your change in /etc/modprobe.d/blacklist.conf look like this:

blacklist ipv6
install ipv6 /bin/true


Just having a module blacklisted can be circumvented, the "install" line prevents the ipv6 being installed no matter what. Basically /bin/true is a command line function which does nothing but return a success code (there's also a partner function called /bin/false which does the opposite). The above code lies to the install function that ipv6 was installed when it really isn't.

REF:
http://www.g-loaded.eu/2008/05/12/how-to-disable-ipv6-in-fedora-and-centos/

Note that REF is a bit old but it should be generally correct for Fedora

tazmad78
28th May 2011, 10:01 PM
Try having your change in /etc/modprobe.d/blacklist.conf look like this:


Just having a module blacklisted can be circumvented, the "install" line prevents the ipv6 being installed no matter what. Basically /bin/true is a command line function which does nothing but return a success code (there's also a partner function called /bin/false which does the opposite). The above code lies to the install function that ipv6 was installed when it really isn't.

REF:
http://www.g-loaded.eu/2008/05/12/how-to-disable-ipv6-in-fedora-and-centos/

Note that REF is a bit old but it should be generally correct for Fedora

Hi Marko,

Many thanks for that - it seems to have done the trick!

COKEDUDE
18th June 2011, 03:30 AM
You can fire up the system-config-network util and uncheck the
"Enable ipv6 configuration for this interface" checkbox and save/exit.

see:
http://fedorasolved.org/Members/MrHappy/system-config-network

But if by slow networking you especially mean Firefox, see the forum by searching "about:config" and "network.dns.disableIPv6". Firefox constantly tries to use ipv6 DNS because under Fedora it thinks the existence of that Ipv6 interface (which Fedora puts in by default) really means ipv6 works. But 99% of users don't have ipv6 support actually working. So there's an annoying ipv6 dns -> fail -> ipv4 address obtain loop going on each time. Tell Firefox to quit that via using the about:config page to set the network.dns.disableIPv6 to 'true'

Thx for the firefox tip. That helped me.