Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
IPv6 address preferred_lft stays always 86400 - why ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
222697
n00b
n00b


Joined: 07 May 2010
Posts: 51

PostPosted: Sun Nov 20, 2016 9:30 pm    Post subject: IPv6 address preferred_lft stays always 86400 - why ? Reply with quote

Hello,

I get IPv6 router advertisements from my telco home router (Telekom Speedport W724V, appears to have Linux 2.6.30 ) to my Gentoo box. I have IPv6 privacy extensions activated. The router advertises a new ::/64 prefix every 24h, while the ::/56 prefix is unchanged until manual router reconnect

Why does the preferred lifetime value of the addresses of the interface connected with the router only decrease for a few seconds, then it jumps back to 86400 ? Did not find really much about that.

Code:

ip -6 addr show dev eno1
3: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 2003:89:af7d:bb08:41fd:f487:a781:3f43/64 scope global temporary dynamic
       valid_lft 196319sec preferred_lft 86362sec
    inet6 2003:89:af7d:bb08:7254:d2ff:7baa:49be/64 scope global mngtmpaddr dynamic
       valid_lft 604762sec preferred_lft 86362sec


It looks that my kernel settings for temporary addresses lifetime values are ignored? Here my /etc/sysctl.d/40-ipv6.conf

Code:

net.ipv6.conf.default.use_tempaddr = 2

net.ipv6.conf.all.use_tempaddr = 2

net.ipv6.conf.eno1.forwarding = 1
net.ipv6.conf.eno1.accept_ra = 2
net.ipv6.conf.eno1.use_tempaddr = 2
# preferred lifetime 50h
net.ipv6.conf.eno1.temp_prefered_lft = 180000
# valid 60h
net.ipv6.conf.eno1.temp_valid_lft = 216000


My Gentoo box has all ebuilds up to date, Kernel 4.1.12.

Best regards
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Nov 26, 2016 7:23 pm    Post subject: Reply with quote

It resets the timeout every time it receives a route advertisement packet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum