LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-30-2019, 07:16 AM   #1
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 408

Rep: Reputation: 54
How to disable ipv6 on wlan, on current?[SOLVED]


I have this network configuration
Network manager with wireless.
I have a really high cpu use on firefox(sometime the entire system is "freezed" for a 10-11 seconds, and the command "w" report high load over 5.).
I'm tryng to solve this problem, I don't use ipv6, so I want to disable it.
I have edit this file

Code:
/etc/sysctl.d/40-ipv6.conf
Code:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.wlan0.disable_ipv6 = 1
and this other

Code:
/etc/modprobe.d/blacklist.conf

blacklist ipv6
I reboot and ipv6 is active!

Code:
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.43.170  netmask 255.255.255.0  broadcast 192.168.43.255
        inet6 *::*:*:*:*  prefixlen 64  scopeid 0x20<link>
        ether *:*:*:*:*:*  txqueuelen 1000  (Ethernet)
        RX packets 1206  bytes 411902 (402.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1158  bytes 195557 (190.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
why?

Last edited by camerabambai; 07-30-2019 at 08:20 AM.
 
Old 07-30-2019, 07:29 AM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I do not use slackware, so this may be totally wrong...
In your ifcfg config, did you tried setting: IPV6INIT="no"
This is under /etc/sysconfig/network-scripts
 
Old 07-30-2019, 07:35 AM   #3
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 408

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by dc.901 View Post
I do not use slackware, so this may be totally wrong...
In your ifcfg config, did you tried setting: IPV6INIT="no"
This is under /etc/sysconfig/network-scripts
This directory don't exist on Slackware, is a dir of Redhat, Fedora and other rpm based distro.
 
Old 07-30-2019, 07:43 AM   #4
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 408

Original Poster
Rep: Reputation: 54
I see on reboot the file /proc/sys/net/ipv6/conf/all/disable_ipv6 is still on..0
I try to edit the /etc/sysctl.conf
 
Old 07-30-2019, 08:04 AM   #5
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,792

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
Quote:
Originally Posted by camerabambai View Post
Code:
/etc/modprobe.d/blacklist.conf

blacklist ipv6
Code:
alias net-pf-10 off
alias ipv6 off
 
Old 07-30-2019, 08:19 AM   #6
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 408

Original Poster
Rep: Reputation: 54
Solution found..a workaround.
I have to redo sysctl command on start

Code:
vim /etc/rc.d/rc.local

sysctl -w --system
 
Old 07-30-2019, 08:45 AM   #7
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 408

Original Poster
Rep: Reputation: 54
Users with NetworkManager
Network manager enable ipv6 automatically, the solution is simple: edit connections and set ipv6 settings to "ignore".
 
Old 07-30-2019, 02:49 PM   #8
baumei
Member
 
Registered: Feb 2019
Location: USA; North Carolina
Distribution: Slackware 15.0 (replacing 14.2)
Posts: 365

Rep: Reputation: 124Reputation: 124
Where IPv6 makes no sense to have running on the Slackware 14.2 computers which I tend, what I do to disable IPv6 is to put the following in /etc/rc.d/rc.local
Code:
# To entirely disable IPv6 in the kernel:
echo -n 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
Also, I ran the above on at least some instances of version 13.37 (I do not remember about other versions).
 
Old 07-30-2019, 03:19 PM   #9
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
I just disable it on the kernel command line (boot loader config).

ipv6.disable=1

I don't like having interfaces enabled that I'm not paying any attention to.
 
2 members found this post helpful.
Old 07-30-2019, 03:42 PM   #10
baumei
Member
 
Registered: Feb 2019
Location: USA; North Carolina
Distribution: Slackware 15.0 (replacing 14.2)
Posts: 365

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by TheRealGrogan View Post
I just disable it on the kernel command line (boot loader config).

ipv6.disable=1
Thanks! I like your method better than the one I figured out. :-)
 
  


Reply

Tags
ipv6



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
need to have a review on a script for radvd ipv6 , user can get ipv6 dns ??!! dr.x Linux - Networking 1 09-01-2014 04:45 AM
Cannot connect to ipv6 website with ipv6 address superweijiafeng Linux - Networking 3 07-08-2014 03:55 PM
LXer: Another IPv6 Crash Course For Linux: Real IPv6 Addresses, Routing, Name Services LXer Syndicated Linux News 0 04-21-2011 07:40 AM
BIND9 as forwarder, IPv6 queries from IPv6 forwarders Nonoo Linux - Server 1 11-23-2009 01:57 PM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 01:25 PM

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

All times are GMT -5. The time now is 09:59 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
Open Source Consulting | Domain Registration