You are not logged in.

#1 2016-05-09 12:07:59

ua4000
Member
Registered: 2015-10-14
Posts: 402

[SOLVED] configure IPv6 privacy extensions with systemd-networkd

The wiki systemd-networkd states "If you are using IPv6 you might also want to set the IPv6PrivacyExtensions option as settings placed in /etc/sysctl.d/40-ipv6.conf are not honored."

So the question is, where can I configure the IPv6 privacy extensions with systemd-networkd if IPv6PrivacyExtensions=true is used ?

In other words, where can I put and change, e.g.

# sysctl.d/40-ipv6.conf
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.all.temp_prefered_lft = 86400
net.ipv6.conf.all.temp_valid_lft = 129600

Or are they hardcoded in systemd-networkd ?


Thanks very much!

Last edited by ua4000 (2016-05-09 18:15:49)

Offline

#2 2016-05-09 12:47:19

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] configure IPv6 privacy extensions with systemd-networkd

Maybe see 'man systemd.network'.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2016-05-09 16:09:28

branch
Member
Registered: 2014-03-16
Posts: 209

Re: [SOLVED] configure IPv6 privacy extensions with systemd-networkd

IPv6PrivacyExtensions controls net.ipv6.conf.${interface}.use_tempaddr, but controls for temp_prefered_lft and temp_valid_lft are not provided by networkd. So leave the last two settings in sysctl.d and verify that networkd does not alter them when in brings up the interface.

Offline

#4 2016-05-09 18:15:14

ua4000
Member
Registered: 2015-10-14
Posts: 402

Re: [SOLVED] configure IPv6 privacy extensions with systemd-networkd

Thanks for the clarification branch!

So sysctl.d settings are honored except for use_tempaddr, which is controlled by the IPv6PrivacyExtensions option in the .network file from systemd-networkd.

@R00KIE: neither is explained in the man or in the wiki sad

Have a nice day!

Offline

Board footer

Powered by FluxBB