]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
networkd: auto promote links if "promote_secondaries" is unset (#7167)
authorMichael Vogt <michael.vogt@gmail.com>
Fri, 24 Nov 2017 20:03:05 +0000 (21:03 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 24 Nov 2017 20:03:05 +0000 (21:03 +0100)
commit64b21ece8c65c93741935749ba01f5877ba50cd6
treefba88f8283eba57868b36ea3669d78db7124b3ad
parentd381c8a6bf850f4d349de515e56b561d41bdd528
networkd: auto promote links if "promote_secondaries" is unset (#7167)

The DHCP code in systemd-networkd relies on the
`net.ipv4.conf.{default,all,<if>}.promote_secondaries` sysctl to be set
(the kernels default is that it is unset). If this sysctl is not set
DHCP will work most of the time, however when the IP address changes
between leases then the system will loose its IP.

Because some distributions decided to not ship these defaults (Debian
is an example and via downstream Ubuntu) networkd by default will now
enable this sysctl opton automatically.
src/network/networkd-dhcp4.c
src/network/networkd-link.c
src/network/networkd-link.h