How to disable ipv6 in Ubuntu 9.04 ?

Asked by Gonzo

Please, help needed!

Network became slow due to the unsupported ipv6 protocol in my country (Ukraine).
In the past I used to fix it in /etc/modprobe.d/aliases, but now it is built in the kernel. I don't like the idea to recompile it.

So I JUST NEED TO DISABLE IT.

I've found different ways:

1) Add to the /etc/modprobe.d/blacklist.conf the following:

blacklist net-pf-10
blacklist ipv6

2) Put "1" into /proc/sys/net/ipv6/conf/all/disable_ipv6

So I tried them both and nothing works actually

To check if it is disabled you can in the console:

ip a | grep inet6

If it is disabled there will be no output.

I've also came across some bug reports concerning this issue (inability to switch off ipv6).
I urgently need help since it is unsupported in my country and networking is slower than it was under 8.10 (or in Windoze).

NONE OF THE POSSIBLE METHODS REALLY WORKS.

Thank you in advance!

Alexander.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Gonzo
Solved:
Last query:
Last reply:
Revision history for this message
Andre Mangan (kyphi) said :
#1

Hello Alexander,

Open Firefox. Press Ctrl+t. Into the address bar type "about:config" (without the quotes). There will be a warning message, click on "I'll promise to be careful".

Into the filter bar type "ip" (without the quotes).

Locate the entry "Network.dns.disable ipv6 and double click on it to change the value from "false" to "true".

Exit and restart Firefox.

Revision history for this message
Pierre (pierre-quindot) said :
#2

Good morning,

It's a great solution for Firefox. But it's not perfect...

Have you an other solution for to do it?

I would like to use Opera browser everytime but with this browser, it's not possible to disable Ipv6.

I 'm searching a solution since 2 weeks but I don't find it.

Have you a solution for the moment?

Thank you for your help.

Pierre.

Revision history for this message
Gonzo (alex-satellite) said :
#3

Sorry to all of you. Actually there is no problem at all. I just removed network-manager, configured network by hand, commented out the ipv6 strings in 'interfaces' and everything is fine now if not even faster than under my Win box :)
This protocol is unsupported in my country but it doesn't really slow the connection as it appears. I guess it may be slower with network-manager as it always caused troubles to me. Btw, as it turned out my director is very good in Linux and he is always using the latest kernel with IPV6 being compiled into it, so he said it doesn't matter if it's compiled or not and CAN NOT slow down internet connection.
So to all of you out there: DON'T COMPLAIN about this protocol being compiled into the kernel, the system just needs a few tweaks.

You may now close this thread.

Revision history for this message
tq (tqbw) said :
#4

Hi Gonzo.

Can you be more specific about what you did? I am having no luck turning ipv6 off and I need to to get some legacy messaging software working.

Thanks.

Revision history for this message
Gonzo (alex-satellite) said :
#5

Nothing in particular. It just doesn't matter really if it's compiled or not. I just do not use Network Manager as I find it buggy in connection with my modem and network. Maybe that is the case.

Anyway, there is a way out for all of you who suffer network slowdown:

1) Install 2.6.29.4 kernel from here: http://kernel.ubuntu.com/~kernel-ppa/mainline/
3) Add ''ipv6.disable=1" (without the quotes) to your /boot/grub/menu.lst

Now it's disabled completely.