Yamaban wrote:
On Mon, 20 Apr 2015 09:27, Per Jessen <per@...> wrote:
James Knott wrote:
On 04/19/2015 12:51 PM, Per Jessen wrote:
The funny thing is - I only had to do that sysctl update on my ancient 10.3 system. On my 13.1 and 13.2 systems, the interface picks the default from /proc/sys/net/ipv6/conf/default/use_tempaddr (I suspect) when the interface is created.
As I mentioned, it worked for me with earlier versions and by changing the value, I could have either or both privacy and SLAAC addresses.
Right.
So, it wasn't when the interface was created. In fact the interface would be created long before I was in a position to change that value.
What I can't figure is - when are the default values used? At startup, net.ipv6.conf.default.use_tempaddr is set to '2'. By kernel default, the interface-specific setting is '0'. So which value will be given when a new interface is created (by loading the module) - 0 or 2?
Let me try to recap -
On/after startup, your net.ipv6.conf.default.use_tempaddr is '2', as is mine. Your device-specific net.ipv6.conf.ethX.use_tempaddr is '0', whereas mine is '2'. Your ethX only has the link-local and the SLAAC address, no random, whereas my ethX has all three. (this is all on 13.1). When you use sysctl to apply a '2' to net.ipv6.conf.ethX.use_tempaddr, your ethX gets a random/temp address too.
I can't help thinking that something changes your net.ipv6.conf.ethX.use_tempaddr after startup - NetworkManager?
Have a look at other "possible" locations of systcl-config files (man 5 sysctl.conf ; man 8 sysctl) and grep them for "tempaddr"
Yeah, I did - find /etc /usr/lib -type f -print0 | xargs -0 grep tempaddr On my 13.2 system, I only get /usr/lib/sysctl.d/50-default.conf.
Then the question arises: what setting is used in what order:
net.ipv6.conf.all.use_tempaddr net.ipv6.conf.default.use_tempaddr net.ipv6.conf.ethX.use_tempaddr
All three will be salt in your soup.
For me the trouble stoped when I set ALL tree in /etc/sysctl.conf, YMMV.
I don't touch either one, no trouble. -- Per Jessen, Zürich (14.6°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org