[Bug 731730] New: IPv6 ramdomly generated addresses have temp_prefered_lft (lifetime) of 1 day, however they change each hour
From the RFC which defines these randomly generated addresses I learned that
https://bugzilla.novell.com/show_bug.cgi?id=731730 https://bugzilla.novell.com/show_bug.cgi?id=731730#c0 Summary: IPv6 ramdomly generated addresses have temp_prefered_lft (lifetime) of 1 day, however they change each hour Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: f.de.kruijf@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 The following is the setting for temp_prefered_lft: # more /proc/sys/net/ipv6/conf/eth0/temp_prefered_lft 86400 which is one day. The following are the relevant log entries in /var/log/messages Nov 21 12:17:13 os121 avahi-daemon[644]: Registering new address record for 2001:980:7480:1:2834:5dd4:c612:87a on eth0.*. The above lien is the first randomly generated IPv6 address Nov 21 12:17:13 os121 avahi-daemon[644]: Registering new address record for 2001:980:7480:1:a00:27ff:fe62:3c29 on eth0.*. The above line is the IPv6 address derived from the MAC address Nov 21 13:17:10 os121 avahi-daemon[644]: Registering new address record for 2001:980:7480:1:e56e:a40:f5b3:f179 on eth0.*. Nov 21 13:17:13 os121 avahi-daemon[644]: Withdrawing address record for 2001:980:7480:1:2834:5dd4:c612:87a on eth0. The above two lines, one hour later, show the new randomly generated IPv6 address and the removal of the fist randomly generated one. the real lifetime should at least be half the value of temp_prefered_lft. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c1
--- Comment #1 from Freek de Kruijf
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c2
Jan Engelhardt
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c3
Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c4
--- Comment #4 from Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c5
--- Comment #5 from Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c6
--- Comment #6 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c7
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c8
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c9
Marius Tomaschewski
I changed the value of temp_prefered_lft to two days.
# cat /proc/sys/net/ipv6/conf/eth0/temp_prefered_lft 17280 ..
Ahm... 17280 is something like 4 hours and 48 min, not two days. IMO definitively INVALID, resolving as such. Fix the lifetimes in the router RA. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c10
--- Comment #10 from Freek de Kruijf
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c11
--- Comment #11 from Marius Tomaschewski
This is quite unsatisfactory in the sense that the documentation suggests that setting these parameters has an effect. Apparently it is the router that determines what these lifetime values will be. In my case I have no control over these parameters, they are fixed in the router and not changeable. High priority, valid lifetime initially 7200 later RAs have lower values, and preferred lifetime 3600.
Well, the prefix lifetimes in the router RA specify the upper limit for these settings -- when the prefix is not valid any more, you can not continue to use any address in it :-). You can override the prefix lifetimes and tell the kernel it should use even _lower_ settings than the lifetime of the prefix for the temp addresses. For example when the router RA defines (defaults values): AdvValidLifetime 2592000; // 4w2d AdvPreferredLifetime 604800; // 1w for the prefix and you set: sysctl -w net.ipv6.conf.all.temp_prefered_lft=3600 (1 hour instead of a default of 1 day [86400]) sysctl -w net.ipv6.conf.all.temp_valid_lft=10800 (3 hours instead of a 7 days default [604800]) then you'll get the following life times: - for the temporary IPv6 addresses: lower lifetimes as specified in temp_*_lft settings - for the modified EUI-64 (MAC based) address: lifetimes from the prefix
Apparently I forgot a 0 behind 17280 to have two days.
For me this is only fixed when the documentation contains a warning that these values have no effect when the router provides these values with a higher or equal priority. I will document this in the wiki.
Documenting it in wiki would be cool! The documentation of the settings is quite sparing... /usr/src/linux/Documentation/networking/ip-sysctl.txt temp_valid_lft - INTEGER valid lifetime (in seconds) for temporary addresses. Default: 604800 (7 days) temp_prefered_lft - INTEGER Preferred lifetime (in seconds) for temporary addresses. Default: 86400 (1 day) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c12
Adam Spiers
https://bugzilla.novell.com/show_bug.cgi?id=731730
https://bugzilla.novell.com/show_bug.cgi?id=731730#c13
--- Comment #13 from Adam Spiers
Please could some kind person provide a link to the wiki page where this is now documented? Thanks!
Never mind, I guess it must be this one: http://en.opensuse.org/SDB:Native_IPv6 I improved the text a bit and linked back to this bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com