[systemd-devel] "sysctl.conf" applied too late
Bill Nottingham
notting at redhat.com
Wed Feb 8 08:34:20 PST 2012
Reindl Harald (h.reindl at thelounge.net) said:
> not network manager
> classical configuration
>
> net.ipv6.conf.all.disable_ipv6 = 1
Your configuration is wrong, I believe. The rule at udev time is:
SUBSYSTEM=="net", KERNEL!="lo", RUN+="/lib/systemd/systemd-sysctl \
--prefix=/proc/sys/net/ipv4/conf/$name \
--prefix=/proc/sys/net/ipv4/neigh/$name \
--prefix=/proc/sys/net/ipv6/conf/$name \
--prefix=/proc/sys/net/ipv6/neigh/$name"
What's happening is you're setting 'all' on startup, which disables
it for all interfaces at that time. But each interface later on creation
gets the value from 'default', not all.
You want:
net.ipv6.conf.default.disable_ipv6 = 1
instead of/in addition to what you have.
Bill
More information about the systemd-devel
mailing list