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 05-07-2011, 09:39 PM   #1
retrodanny
Member
 
Registered: Jun 2009
Location: México
Distribution: Slackware
Posts: 38

Rep: Reputation: 2
Question disable/enable ipv6 connectivity


Hello everyone,

I just finished setting up my slack machine as a home server (printers & files) and I noticed that I have an IPv6 address (from ifconfig)... I didn't know I did.
I used to work in tech support and when a windows or OSx machine didn't connect properly on a LAN, disabling IPV6 was a common troubleshooting step.

Anyway, my questions is: Is there a way to easily turn inet6 connectivity off/on in Slackware? (I want to keep the ability to get an IPv6, we will all use those in the future)
 
Old 05-07-2011, 09:53 PM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,459

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
From this http://www.linuxquestions.org/questi...1/#post4207411

i.e. 'echo "blacklist ipv6" > /etc/modprobe.d/ipv6.conf' and IPv6 will be disabled on next boot.

Just remove the file to reenable IPV6.
 
Old 05-08-2011, 01:39 PM   #3
retrodanny
Member
 
Registered: Jun 2009
Location: México
Distribution: Slackware
Posts: 38

Original Poster
Rep: Reputation: 2
that worked, thank you allend
 
Old 09-01-2012, 10:37 AM   #4
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 584

Rep: Reputation: 30
That does not work anymore in Slackware 14 RC4.
Code:
"blacklist ipv6" > /etc/modprobe.d/ipv6.conf'
Does any one know what is the proper way to disable ipv6 now ?
Since /etc/modprobe.d seems to be deprecated I dont know anymore how to control what modules are loaded what not.
The path /lib/modprode.d contains some files but there is nothing about ipv6 and others that I dont need.
 
Old 09-01-2012, 10:55 AM   #5
GazL
Senior Member
 
Registered: May 2008
Posts: 3,425

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
Yes, I discovered that too the other day. This is what I do now
Code:
gazl@ws1:~$ cat /etc/modprobe.d/ipv6.conf 
# Disable IPV6 (Not supported by ISP)
options ipv6 disable=1
I couldn't figure out what was loading the module and ignoring the 'blacklist', but the above seems to work.

Last edited by GazL; 09-01-2012 at 10:57 AM.
 
Old 09-01-2012, 12:36 PM   #6
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 242

Rep: Reputation: 86
I think that with "options ipv6 disable=1" it still loads the ipv6 module, but ipv6 is "administratively disabled" (check messages). I use this:
Code:
alias net-pf-10 off
alias ipv6 off
 
Old 09-01-2012, 12:55 PM   #7
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 806

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
IPv6 support is mandantory now: see RFC 6540. Disabling IPv6 serves no purpose. By disabling it, you deliberately break your network configuration.

The "IPv6 address" you see is just a link-local one. It's harmless.
 
Old 09-02-2012, 08:34 AM   #8
GazL
Senior Member
 
Registered: May 2008
Posts: 3,425

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
@petri, Yes, what I do still results in the ipv6 module being loaded, but presumably it is being loaded because something is dependent upon it. Using disable=1, or if that is too extreme disable_ipv6=1 seems cleaner to me than using the 'alias off' definitions.

@jstn, that RFC is really just the iETF saying "We'd *really* like everyone to get off their arses and start transitioning to ipv6, NOW! Please.", but until my upstream ISP transitions it makes absolutely no sense for me to enable ipv6 locally, and in-fact when I've tried leaving it enabled in the past it has caused my browsing to slowdown (presumably while the ipv6 resolver tries and fails to do a lookup before falling back to ipv4). When my ISP supports ipv6, I'll enable ipv6, until then, it is staying disabled.
 
Old 09-02-2012, 07:24 PM   #9
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 495

Rep: Reputation: 81
I had problems blacklisting the modules, so I added this to "/etc/sysctl.conf":

Quote:
# Disable ipv6
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
net.ipv6.conf.all.autoconf=0
net.ipv6.conf.all.accept_ra=0
net.ipv6.conf.all.accept_redirects=0
net.ipv6.conf.all.dad_transmits=0
net.ipv6.conf.all.forwarding=0
net.ipv6.conf.all.router_solicitations=0
No more ipv6 =]
 
Old 09-02-2012, 07:54 PM   #10
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 226Reputation: 226Reputation: 226
Perhaps a search?

http://www.linuxquestions.org/questi...e-ipv6-937447/
 
Old 09-04-2012, 09:37 AM   #11
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 806

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
Quote:
Originally Posted by GazL View Post
@jstn, that RFC is really just the iETF saying "We'd *really* like everyone to get off their arses and start transitioning to ipv6, NOW! Please.",
It states the minimum requirements for a node speaking the Internet Protocol, regardless of upstream connectivity. So if something breaks and your system is ignoring RFC 6540, you are on your own now.

Quote:
but until my upstream ISP transitions it makes absolutely no sense for me to enable ipv6 locally, and in-fact when I've tried leaving it enabled in the past it has caused my browsing to slowdown
Slowdowns are just a sign of a broken network configuration and it is only more broken by disabling IPv6. So just cure the cause and you're fine.
 
  


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
Can't disable IPv6 bhamid Linux - Networking 10 04-30-2013 02:13 AM
Best Way to disable IPV6 idlehands Linux - General 6 12-04-2012 09:58 AM
6to4 ipv6 connectivity issues rbees Linux - Networking 6 01-15-2011 09:49 PM
Disable IPV6 bjb_nyj101 Linux - Software 2 06-07-2007 09:54 PM
Enable FTP Connectivity on Linux rajnair0278 Linux - Networking 5 04-05-2006 09:11 AM


All times are GMT -5. The time now is 06:56 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