[systemd-devel] networkd -- net.ipv4.ip_dynaddr requirement?

Tom Gundersen teg at jklm.no
Mon Jun 30 09:54:31 PDT 2014


On Mon, Jun 30, 2014 at 6:14 PM, Mantas Mikulėnas <grawity at gmail.com> wrote:
> I noticed commit 68ceb9df6a39a7 says:
>
>     sd-dhcp-client/networkd: set lifetimes for IPv4 addresses
>
>     Note that /proc/sys/net/ipv4/ip_dynaddr needs to be non-zero.
>
> If I understand it correctly, the commit makes it so that IPv4 address
> lifetimes from DHCP show up as "valid_lft X preferred_lft Y" in `ip
> addr`.

Correct.

> If that's the case, why the sysctl requirement, if the same
> information already shows up in `ip -4 addr` when set by
> NetworkManager, even though the sysctl has always been zero on my
> system?
>
> Also: I tried searching ~/src/linux/Documentation for ip_dynaddr, and
> it seems to be talking about IP address rewriting or masquerading,
> *not* lifetimes/expiry? Confused.

Indeed, the commit message seems wrong. Patrik, care to comment? (he
is on holiday, so don't expect an answer for another month or so :) ).

Cheers,

Tom


More information about the systemd-devel mailing list