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?