LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Disable IPv6 in Alpine Linux (https://www.linuxquestions.org/questions/linux-networking-3/disable-ipv6-in-alpine-linux-925858/)

omitchell 01-26-2012 02:57 PM

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.

kbp 01-28-2012 10:51 PM

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.

omitchell 01-30-2012 08:57 AM

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!


All times are GMT -5. The time now is 11:19 PM.