LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   13.1: sysctl does works at boot time (https://www.linuxquestions.org/questions/slackware-14/13-1-sysctl-does-works-at-boot-time-889140/)

FeyFre 06-30-2011 03:15 AM

13.1: sysctl does works at boot time
 
My aim is to disable ipv6.
So I have:
In /etc/rc.d/rc.S there is(from box)
Code:

# Configure runtime kernel parameters:
if [ -x /sbin/sysctl -a -r /etc/sysctl.conf ]; then
  /sbin/sysctl -e -p /etc/sysctl.conf
fi

my /etc/sysctl.conf
Code:

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1

After bootup and login ifconfig shows my interfaces have linklocal address(fe80:*/64). It is impossible because of /etc/sysctl.conf.
Checking manually /proc/sys/net/ipv6/conf/{default|all}/disable_ipv6 - 0 instead of expected 1.
I rerun /sbin/sysctl -e -p /etc/sysctl.conf manually - all ok.

Why sysctl does not works?! Usually it prints configs it applies, but not during boot seq?

Lexus45 06-30-2011 03:27 AM

Have a try http://blog.zantsev.com/page/2
Write please, if it helped or not.

FeyFre 06-30-2011 06:08 AM

Lexus45, I know it will help, but this is not I want. I want ipv6 be enabled, but disabled by default(I will enable it later)


All times are GMT -5. The time now is 12:19 AM.