On Wed, Mar 15, 2017 at 04:24:02PM +0100, Viktor S. Wold Eide wrote:
> As written, a different DHCP client could have been an option, but no luck
> so far in this direction.
AFAIK dhcpcd support in NetworkManager hasn't received updates since
long time and I don't know if it is still working well, but you should
be able to turn it on. You said that dhcpcd supported the fallback to
link-local addresses, but I don't see code in NM to do that. Maybe
this logic was done entirely in the client, but I wonder if this works
when dhcpcd is controlled by NM.
> Alternatively, it might be possible to hook into
> the system, for example via a script in /etc/NetworkManager/dispatcher.d
> that can check for DHCP failure / success. However, I was wondering if I
> had missed something or whether there is some recommended configuration to
> achieve the desired behavior.
We have an open bugzilla [1] about supporting multiple IP methods
(DHCP, link-local, static) at the same type for a connection. Probably
that enhancement would solve your case, but at the moment I don't
think anybody is working on it.