LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-11-2014, 07:37 AM   #1
Gary Baker
Member
 
Registered: Mar 2007
Location: Whitsett,NC
Distribution: Slackware 14.1 and MINT 17.1
Posts: 105

Rep: Reputation: 3
How do I disable ipv6 in Slackware 14.1?


Hello all:

I know this can be done in various ways by editing lilo or grub files but I just want to edit a configuration file or setting. Is anybody's memory better than mine?
 
Old 05-11-2014, 07:51 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,109

Rep: Reputation: Disabled
Well, according to a quick search on the Internet it seems that you could include this option in your command line:
Code:
ipv6.disable=1
to completely disable ipv6, or
Code:
ipv6.disable_ipv6=1
to avoid assigning IPv6 addresses to any of your network devices.

To know more, see these documents in your Slackware:
/usr/src/linux/Documentation/kernel-parameters.txt
/usr/src/linux/Documentation/networking/ipv6.txt

PS blacklisting ipv6 work as well, because the IPV6 driver is configured as a module in Slackware kernels.

Last edited by Didier Spaier; 05-11-2014 at 09:50 AM. Reason: PS added.
 
Old 05-11-2014, 08:02 AM   #3
Speek
Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Slackware
Posts: 124

Rep: Reputation: 41
Or blacklist the ipv6 kernel module:
Code:
echo "blacklist ipv6" > /etc/modprobe.d/blacklist-ipv6.conf
 
1 members found this post helpful.
Old 05-11-2014, 09:42 AM   #4
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD
Posts: 2,380
Blog Entries: 6

Rep: Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730Reputation: 1730
Do it via the kernel command line and append the option, e.g.

edit /etc/lilo.conf

Code:
image = /boot/vmlinuz
  root = /dev/sda1
  label = Linux
  read-only
  append="ipv6.disable=1"
(and don't forget to run lilo)
 
1 members found this post helpful.
Old 05-11-2014, 10:59 AM   #5
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,413

Rep: Reputation: 2030Reputation: 2030Reputation: 2030Reputation: 2030Reputation: 2030Reputation: 2030Reputation: 2030Reputation: 2030Reputation: 2030Reputation: 2030Reputation: 2030
I'd rather add it to the initial append line at the top of lilo.conf, not to a kernel stanza. Here's what mine looks like:

Code:
append="nomodeset quiet ipv6.disable=1 root=/dev/md3 vt.default_utf8=1"
boot = /dev/md1
Cheers,

Niki
 
1 members found this post helpful.
Old 05-13-2014, 04:53 PM   #6
Gary Baker
Member
 
Registered: Mar 2007
Location: Whitsett,NC
Distribution: Slackware 14.1 and MINT 17.1
Posts: 105

Original Poster
Rep: Reputation: 3
Thank you all for an accurate and through answer to my question. You all deserve the credit.
 
Old 05-13-2014, 10:11 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,358

Rep: Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981Reputation: 2981
May have to disable it too in some browsers.
 
Old 05-17-2014, 10:08 PM   #8
staus
Member
 
Registered: Apr 2004
Posts: 105

Rep: Reputation: 6
The only way I could ever kill IPV6 was to add aliases.conf to the /etc/modprobe.d subdirectory.

Place this in aliases.conf:
alias net-pf-10 off# IPv6

None of the other blacklist methods worked.
Thanks to someone on this forum.
 
3 members found this post helpful.
  


Reply

Tags
ipv6


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 03:13 AM
How to disable ipv6? ms-trex Slackware 7 12-13-2012 05:20 PM
Best Way to disable IPV6 idlehands Linux - General 6 12-04-2012 10:58 AM
Disable IPV6 bjb_nyj101 Linux - Software 2 06-07-2007 10:54 PM
Disable ipv6 in ubuntu? ksgill Linux - Newbie 7 03-25-2006 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration