LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2013, 06:53 AM   #1
hyperborea
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
ipv6 stop in slackware 14.0


Hello , sorry for my stupid question, but I am so desperate. Please, help me to stop ipv6 on my network interfaces. I successfully stoped ipv6 on slackware 12.1 with this command: "echo blacklist ipv6 >> /etc/modprobe.d/blacklist" and reboot the mashine. I have second server with Slackware 14.0 and this method does not work. I does not found blacklist file and I created him with commands "touch /etc/modprobe.d/blacklist" and "touch /lib/modprobe.d/blacklist". In this two files I added "blacklist ipv6" .

How can I stop ipv6 only on eth1 and ipv6 still work on eth0?


Thanks in advance !
 
Old 11-09-2013, 10:08 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,493

Rep: Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809
There was change between Slackware 12.1 and Slackware 14.0 where files in /etc/modprobe.d/ needed to have a .conf suffix to be acted upon.
The options for handling ipv6 are shown in /usr/src/linux/Documentation/networking/ipv6.txt
Quote:
Options for the ipv6 module are supplied as parameters at load time.

Module options may be given as command line arguments to the insmod
or modprobe command, but are usually specified in either
/etc/modules.d/*.conf configuration files, or in a distro-specific
configuration file.

The available ipv6 module parameters are listed below. If a parameter
is not specified the default value is used.

The parameters are as follows:

disable

Specifies whether to load the IPv6 module, but disable all
its functionality. This might be used when another module
has a dependency on the IPv6 module being loaded, but no
IPv6 addresses or operations are desired.

The possible values and their effects are:

0
IPv6 is enabled.

This is the default value.

1
IPv6 is disabled.

No IPv6 addresses will be added to interfaces, and
it will not be possible to open an IPv6 socket.

A reboot is required to enable IPv6.

autoconf

Specifies whether to enable IPv6 address autoconfiguration
on all interfaces. This might be used when one does not wish
for addresses to be automatically generated from prefixes
received in Router Advertisements.

The possible values and their effects are:

0
IPv6 address autoconfiguration is disabled on all interfaces.

Only the IPv6 loopback address (::1) and link-local addresses
will be added to interfaces.

1
IPv6 address autoconfiguration is enabled on all interfaces.

This is the default value.

disable_ipv6

Specifies whether to disable IPv6 on all interfaces.
This might be used when no IPv6 addresses are desired.

The possible values and their effects are:

0
IPv6 is enabled on all interfaces.

This is the default value.

1
IPv6 is disabled on all interfaces.

No IPv6 addresses will be added to interfaces.
So, as to this
Quote:
How can I stop ipv6 only on eth1 and ipv6 still work on eth0?
I do not think you can do it.
 
Old 11-09-2013, 12:05 PM   #3
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Rep: Reputation: Disabled
why do you want to stop it? you know its not a good idea as ipv4 has reachd end of life.. there are no more ipv4 addresses free by ripe and others.

its recommended to switch/use ipv6 since the last ipv6 day.

so whats the problem with it? thanks.
 
Old 11-09-2013, 01:48 PM   #4
hyperborea
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks

Thanks for respondings
I didn't understant How to stop ipv6 load like modules in Slackware 14.0.

In my country ISP don't offer IPv6.
 
Old 11-09-2013, 05:28 PM   #5
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 174

Rep: Reputation: Disabled
Quote:
Originally Posted by hyperborea View Post
In my country ISP don't offer IPv6.
thats no reason to disable it.
 
Old 11-09-2013, 05:51 PM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,493

Rep: Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809Reputation: 2809
To stop the ipv6 module loading, try changing the blacklist file name to include a .conf suffix.
Code:
mv /etc/modprobe.d/blacklist /etc/modprobe.d/blacklist.conf
This is not the recommended procedure though, as without the kernel module present, there may be problems with other software that expects it.

Rather than using a configuration file in /etc/modprobe.d, you can also use a kernel parameter passed at boot time. You could allow the module to load, but disable the functionality by adding ' disable_ipv6=1' to the append line in lilo.conf, rerunning lilo and then rebooting.
 
1 members found this post helpful.
  


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
IPv6 on Slackware 13.1 Skaperen Slackware 7 04-29-2014 02:01 AM
ipv6 slackware Kowalczyk Slackware 3 10-19-2009 08:18 AM
slackware current ipv6 mattydee Slackware 3 05-24-2009 07:34 PM
IPV6 slackware download iso image manolo Slackware 6 07-12-2007 03:40 PM
did ipv6 stop my network jazzn1doog Linux - Networking 2 10-14-2003 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration