LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-26-2012, 02:57 PM   #1
omitchell
LQ Newbie
 
Registered: Jan 2012
Distribution: Alpine
Posts: 5

Rep: Reputation: Disabled
Disable IPv6 in Alpine Linux


I am running Alpine Linux version 2.2 and I can't seem to disable IPv6. I tried adding the line "blacklist ipv6" to the "/etc/modprobe.d/blacklist.conf" file but did not work. If someone could post a sure fire way to acheive this I would really appreciate it. Thanks.
 
Old 01-28-2012, 10:51 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Try adding -
Code:
net.ipv6.conf.all.disable_ipv6 = 1
.. to /etc/sysctl.conf

There have been several methods previously but this seems to be the current recommendation.
 
1 members found this post helpful.
Old 01-30-2012, 08:57 AM   #3
omitchell
LQ Newbie
 
Registered: Jan 2012
Distribution: Alpine
Posts: 5

Original Poster
Rep: Reputation: Disabled
sysctl: error: 'net.ipv6.conf.all.disable_ipv6' is an unknown key

This is the error message that I receive when the server boots when I put that line of code into the sysctl.conf file.

I then had to put "ipv6" into the "/etc/modules" files. This removed the error message and now ipv6 is disabled.

Thanks for you assistance KBP!

Last edited by omitchell; 01-30-2012 at 01:10 PM.
 
  


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
Disable IPV6 bjb_nyj101 Linux - Software 2 06-07-2007 09:54 PM
how to disable ipv6 in Redhat Linux AS 4 ? adrianmak Linux - Software 1 08-16-2005 10:51 AM

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

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