I have a project where I would like to connect two project boards together with an Ethernet cable. No router, no hub, just two boards with a patch of cat5 between them. In order to make this work I need to get a Link-local IPv4 address on each (RFC 3927). I believe this is done with avahi, but I'm unsure if avahi is simply name resolution or if it performs the link-local address allocation as well.
Anyway here's what I've tried:
sudo apt-get install avahi-daemon avahi-discover libnss-mdns
# sudo reboot -r now
# systemctl script on reboot to log IP to file with `hostname -I`
What I find is that when I'm hooked up to my router `hostname -I` reports what I'd expect from my DHCP server, but when I hook up board-to-board or board-to-laptop, all I get is an IPv6 address (no IPv4) and moreover the IPv6 address I do get does not reply to pings.
Here's my config:
Odroid-C1+
Armbian_5.25_Odroidc1_Debian_jessie_default_3.10.104.7z
Apt/Got : avahi-daemon, avahi-discover, libnss-mdns
As a final thought, I don't have to use Jessie. Xenial or Desktop would be fine as well. At this point I'm just curious what else is needed to make it work.
Any thoughts?