View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-06-2010, 08:17 AM   #1
LQ Newbie
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
Can't disable IPv6

I followed the instructions in the Ubuntu help and support after reading that it might solve my slow internet (I've tried using OpenDNS servers) but when type in gksudo gedit /etc/modprobe.d/aliases and type in the password, a blank document comes up in gedit, and there is no file in the modprobe.d folder called alias.

Old 03-06-2010, 08:33 AM   #2
Senior Member
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,961

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
When you make posts like this, would you please post the link to the procedure you used.

Just a guess, the aliases file doesn't exist, you can create one. Store the info requested, and restart TCP/IP.

You can try this, I found it with a google search.

Debian / Ubuntu Linux

If you are using Debian/Ubuntu linux (thanks to beranger), open file /etc/modprobe.d/aliases
# vi /etc/modprobe.d/aliases
Find the line:
alias net-pf-10 ipv6

Replace with:
alias net-pf-10 off
alias ipv6 off
As above, create the aliases file.

Last edited by camorri; 03-06-2010 at 08:37 AM.
Old 03-06-2010, 09:58 AM   #3
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,057

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
I am guessing that you have 'buntu 9.10
If so then this link is relevant, because ipv6 cannot now be disabled by blacklisting modules.
Old 03-06-2010, 11:43 AM   #4
Senior Member
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Have you try to add in blacklist:
install        ipv6           /bin/true
It works for OpenSuse, Fedora 12.
Old 03-06-2010, 01:17 PM   #5
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Note that files in /etc/modprobe.d should end in .conf. I'm not sure it's happened yet, but at some point, files there not ending in .conf will be ignored.

As said, you can create the file aliases. The name (other than the .conf) doesn't really matter, although I believe they are read in alphabetically order. Someone correct me if I'm wrong. You could also put it in /etc/modprobe.d/modprobe.conf or /etc/modprobe.d/blacklist.conf.

Adding the line install ipv6 /bin/true to a file in /etc/modprobe.d/ also works. The problem with a simple blacklist is that if another program later tries to load the module or an alias is called, it will still load. (Hence turning off the net-pf-10 alias.) /bin/true as the name suggests always returns a value of true, so the module is sent off into the ether but doesn't throw an error to whatever was trying to load the module.
Old 03-07-2010, 09:53 PM   #6
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
I do the modprobe blacklisting, but I'm on 8.10. I'm pretty sure this was built into the kernel in later releases (at least in Ubuntu 9.04), in which case this approach wouldn't work any more.

Try doing a:
sysctl -w net.ipv6.conf.all.disable_ipv6=1
Or add this to your kernel line:

Did this go back to being a module in Ubuntu 9.10?

Last edited by win32sux; 03-07-2010 at 09:55 PM.
Old 04-05-2013, 05:15 AM   #7
LQ Newbie
Registered: Apr 2013
Posts: 7

Rep: Reputation: Disabled
unable to disable IPV6 on linux

1. I had already made following entries in ifcfg-eth0 :
2. Following entries were made in /etc/modprob.conf” :
alias net-pf-10 off
alias ipv6 off
3. These entries in /etc/sysconfig/network :
4. This line is added to /etc/modprobe.d/blaclist :
blacklist ipv6
5. Also I did one more in /etc/sysctl.conf :
6. `net.ipv6.conf.all.autoconf = 0`
7. `net.ipv6.conf.accept_ra = 0`

Still I am unable to disable IPV6 on linux, any thought please
Old 04-26-2013, 06:45 PM   #8
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,329

Rep: Reputation: Disabled
posting in the correct section for your distro will help to get an answer

I highly dought that you are running the long dead Ubuntu 8.10
Old 04-30-2013, 12:54 AM   #9
LQ Newbie
Registered: Apr 2013
Posts: 7

Rep: Reputation: Disabled
This thread is about disable IPV6 and i have the same issue hence posted it here. Do let me know if i have to put on some other section ?>

I am running linux 5.8.
Old 04-30-2013, 01:19 AM   #10
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,329

Rep: Reputation: Disabled
linux 5.8 what

RHEL 5.8 ( the current is 5.9 in the old 5 series )
CentOS 5.8 -- it is unsupported ( only 5.9 in the old 5 series is supported)

the ubuntu instructions are very different than the old rhel5 instructions

is this a terminal ONLY install ?
-- the most common for rhel
or a desktop install ?
if desktop then What desktop ?

also be aware that the old 5 rhel/cent OS might not support new hardware .

for RHEL/CentOS
or in "network "

Seeing as this is a network issue this forum

the instructions depend on if you are using a GUI or a terminal server install

for a home install using Gnome2
there are two programs in the old 5 series
"Network" and "NetworkManager"
"NetworkManager" was a bit experimental back then .
"NetworkManager" added wireless support

if #1 and #3 in the post above
1. I had already made following entries in ifcfg-eth0 :
3. These entries in /etc/sysconfig/network :
did not turn it off

then you will need to use the gui ( assuming that Gnome2 is used -- it is default)
click on the "network" icon -- should be in the bottom right tool bar
or in the top tool bar - System / preferences / Network

and from that gui tool turn it off in dhcp for "eth-0" for the cable connection
there should be a ipv6 tab next to the ipv4 tab

Last edited by John VV; 04-30-2013 at 01:31 AM.
Old 04-30-2013, 02:13 AM   #11
LQ Newbie
Registered: Apr 2013
Posts: 7

Rep: Reputation: Disabled
This is Oracle Linux 5.8 Virtual Machine installed on VM Box which is on window base machine.

I am using Oracle Linux 5.8 x64 as a guest OS on virtual machine under Oracle VirtualBox


I have window I7
I have installed Virtual Box Manager on this.
I have installed Oracle Linux Virtual Machine. (Oracle Linux 5.8)

I have already done the step going to System / preferences / Network -> ipv6 tab next to the ipv4 tab. No changes in the result.

Last edited by IgnitedMind; 05-02-2013 at 05:30 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 9.10 Disable IPv6? linuxnoby Ubuntu 10 01-19-2010 10:47 AM
How would i disable ipv6 for eth0 ? cola Linux - Networking 1 11-27-2009 04:58 AM
[SOLVED] how can i disable the ipv6 address only? v_fone Linux - Networking 11 08-01-2009 04:54 AM
How to disable ipv6 on NetBSD? Lord Estraven *BSD 3 11-22-2008 03:42 AM
Disable IPV6 bjb_nyj101 Linux - Software 2 06-07-2007 09:54 PM

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration