LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-15-2011, 06:23 AM   #1
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 184

Rep: Reputation: 35
What is the "proper" way to completely disable IPv6?


Hey guys. Is simply adding "alias net-pf-10 off" to modprobe.conf enough to keep IPv6 completely dead? Should I comment out the IPv6 loopback address in /etc/hosts or anything like that?
 
Old 03-15-2011, 06:29 AM   #2
Crashbox
Member
 
Registered: Jun 2004
Location: USA
Distribution: Slackware
Posts: 136

Rep: Reputation: 21
Support for IPv6 can be disabled in the kernel, assuming you build your own. That would be the most basic level and none of the configurations in user-space would matter. But it is also the most inconvenient, since it would require a kernel rebuild to re-enable support.
 
Old 03-15-2011, 06:35 AM   #3
narz
Member
 
Registered: May 2007
Location: US
Distribution: slackware
Posts: 184

Original Poster
Rep: Reputation: 35
I already build my own kernels but I still want IPv6 around for when I need it, I just want to keep it in total hiberation at the moment.
 
Old 03-15-2011, 06:43 AM   #4
Andersen
Member
 
Registered: Dec 2008
Distribution: Slackware
Posts: 78

Rep: Reputation: 33
You can add blacklist ipv6 to your blacklist.conf ( /etc/modprobe.d/blacklist.conf)

Quote:
#
# Listing a module here prevents the hotplug scripts from loading it.
# Usually that'd be so that some other driver will bind it instead,
# no matter which driver happens to get probed first. Sometimes user
# mode tools can also control driver binding.
blacklist ipv6
That will do the trick.

Last edited by Andersen; 03-15-2011 at 06:44 AM.
 
1 members found this post helpful.
Old 03-15-2011, 08:44 AM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 115Reputation: 115
I think what he wants is a "do not do any configuration of IPv6 from user space" solution. In other words, what configuration will be sure the init scripts do no ifconfig settings to configure IPv6, do neighbor discovery and router discovery, etc. Unfortunately, I think some of IPv6 is in the kernel and activates by default, such as link local address binding when an interface is brought up (though I have found one can go remove the link local address afterwards).

IPv6 doesn't exactly work the same way as IPv4.
 
Old 03-15-2011, 09:08 AM   #6
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 490

Rep: Reputation: 207Reputation: 207Reputation: 207
I'm not sure how to do this in Slackware but on my NetBSD gateway I run named as a caching nameserver and add the "-4" flag for IPv4 traffic only.

named=YES "-4"

I'm sure there must be something similar in Slackware.
 
Old 03-15-2011, 09:34 AM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 115Reputation: 115
If you want named to only use IPv4 addresses (so, not any IPv6 addresses), then the "-4" option sounds right (I use that on ssh at times). That is not the same as disabling IPv6 on the interfaces or in the whole network stack. I suspect, eventually, IPv6 will be considered as "hard core" as IPv4, and it can't be easily removed. Maybe we're there, now. I have it on, am using it internally, and it's fine for me. If you need to turn it off due to an issue it seems to be causing, hopefully you are raising that issue, too. If it's just to do things like test program behavior under an IPv4-only condition, you'd probably need to reconfigure not just the kernel, but development libraries, too. Hopefully, in the near future there will be no need for testing in such a legacy environment.
 
Old 03-15-2011, 07:49 PM   #8
timetraveler
Member
 
Registered: Apr 2010
Posts: 243
Blog Entries: 2

Rep: Reputation: 31
There's a file called /etc/lilo.conf and you can boot to different kernels. Why not have a kernel with and a kernel without ipv6?
 
Old 03-16-2011, 10:49 PM   #9
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 49
http://www.linuxquestions.org/questi...irefox-853021/

I did so on two SW 13.1 boxes, a 32 and a 64 bit box.

My reason was the Firefox web browsing being terribly balky and slow.

I created the ipv6.conf with the blacklist ipv6 in it. Firefox web browsing on both boxes works fine now.

--
Alan.
 
  


Reply


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
how to disable "last login log" & disable "last login message" when start login. hocheetiong Linux - Newbie 4 02-08-2011 05:35 AM
[SOLVED] Disable syslog message "modprobe: WARNING: Not loading blacklisted module ipv6" DrStrangepork Linux - Newbie 7 09-17-2009 09:03 AM
How do I disable "shutdown" and "restart" options in KDE logout screen for all users? maxgsp Linux - Distributions 1 12-12-2008 03:18 PM
"Reboot and Select proper boot device" error sycamorex Linux - Hardware 2 05-09-2007 04:40 PM


All times are GMT -5. The time now is 02:06 AM.

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