I'm using an embedded device with Linux 4.9 and systemd. I configured systemd-networkd in this way:
[Match] Name=eth0 [Network] DHCP=v4 [DHCPv4] UseHostname=false
How can I setup Link-Local only when my device doesn't receive an IP address?
I know that I can use something like mdns, avahi and so on, but I'm trying to talk about this topic in a general way, to understand the logic and all possible alternatives.
PS: If required, I can replace also systemd-networkd with something else. I'm searching for the best option RFC3927-compliant.