http://bugzilla.novell.com/show_bug.cgi?id=494958
http://bugzilla.novell.com/show_bug.cgi?id=494958#c4
Jiri Bohac
Hmm... This can be set per inteface also via PRE_UP_SCRIPT -- see "man 8 ifup".
For virtual interfaces it has to go to sysctl.conf or sysconfig/sysctl as it is using the ..../default/use_temoaddr variable I think. Or does it work properly when the iterface is already up?
net.ipv6.conf.default.use_tempaddr needs to be set before the device is created to have any effect. net.ipv6.conf.IF.use_tempaddr should to be set after the device is created and before the device is brought up. this is a really good idea ... perhaps all the SYSCTL* options could somehow be set without having a list of them in the scripts, so when a new sysctl option is added in the kernel , we won't have to midify the scripts?
or I think better via per interface ifsysctl.$INTERFACE files with content like:
net.ipv6.conf.$IF.autoconf = 0 net.ipv6.conf.$IF.use_tempaddr = 1
This is a really good idea! Perhaps there is a way to have this in the ifcfg- file itself (to keep all the interface settings together) but at the same not requiring the scripts to individually handle the options?
In any case, this is not easy or impossible to make for all the virtual interfaces when it is too late when we do it after the ip link set up.
Couldn't this be handled by udev by calling a script when the interface is registered? It might be hard or impossible to make sure the script finishes before something else brings the device up, though. Kay? One way around this (for this case) could be to disable the IPv6 autoconfiguration completely in the ..../default/... sysctl and only enable it from the udev-called script after setting use_tempaddr.
But this would be a feature request for 11.3 to make this -- a workaround via a PRE_UP_SCRIPT exists.
Right. Still, this does not solve the problem of virtual devices. That would be at least partially fixed by making boot.ipconfig set /proc/sys/net/ipv6/conf/default/use_tempaddr instead of .../all/... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.