LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   disable/enable ipv6 connectivity (http://www.linuxquestions.org/questions/slackware-14/disable-enable-ipv6-connectivity-879420/)

retrodanny 05-07-2011 10:39 PM

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)

allend 05-07-2011 10:53 PM

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.

retrodanny 05-08-2011 02:39 PM

that worked, thank you allend :D

czezz 09-01-2012 11:37 AM

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.

GazL 09-01-2012 11:55 AM

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.

Petri Kaukasoina 09-01-2012 01:36 PM

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


jtsn 09-01-2012 01:55 PM

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.

GazL 09-02-2012 09:34 AM

@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.

BrZ 09-02-2012 08:24 PM

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 =]

wildwizard 09-02-2012 08:54 PM

Perhaps a search?

http://www.linuxquestions.org/questi...e-ipv6-937447/

jtsn 09-04-2012 10:37 AM

Quote:

Originally Posted by GazL (Post 4770589)
@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.


All times are GMT -5. The time now is 06:27 PM.