diff options
author | Tom Gundersen <teg@jklm.no> | 2014-07-25 11:08:23 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-07-25 11:18:12 +0200 |
commit | ad8bc9ea508740074cead005aa3cfd1ba10a5dac (patch) | |
tree | f65f246e5bc07d5ef88a004b9c4da17b00f9220f /src/run/run.c | |
parent | deffddf1df29a5ed047feff3a0f2b765006fb71b (diff) |
sysctl.d: enable promote_secondaries by default
Without this, secondary addresses would get deleted when the primary one is. This is not
the desired behavior when one would like to transition from one address to another in the
same subnet (such as when a new IP address is given over DHCP).
In networkd, when given a new IP over DHCP we will add it, without explicitly removing the
old one first (and hence never have a window without an IP address configured). Assuming the
addresses are in the same subnet, that means that the old address is the primary and the new
address is the secondary one. Once the old address expires, the kernel will drop it. With the
old behavior this means that both addresses would be lost, which is clearly not what we want.
With the new behavior, only the old address is lost, and the new one is promoted to primary.
Reported by Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'src/run/run.c')
0 files changed, 0 insertions, 0 deletions