Pi is controlling some stuff, normally it is not connected to any network.
Time to time there is need to do some maintenance or take log files, so a laptop is connected by straight patch cord to eth0 of pi.
I've installed ISC DHCP server in order to have "plug and play" - DHCP server from Pi gives IP to PC, no need to do IP settings at PC.
Everything works fine if there is cable at eth0 of Pi during it's boot. If Pi boots without ethernet DHCP server fails starting and of course PC does not get IP
Device runs unattended and without ethernet usually.
From /var/log/syslog I see dhcpd failing due to
"No subnet declaration for eth0 (no IPv4 addresses)"
Of course eth0 does not have ip if cable is unplugged.
How do I get DHCP server working on my device if eth is unplugged during boot ?
Is there another dhcp server available tolerating temporary address missing on interface?
Or is there a way to assign ip to unplugged interface?
Or is there a way to start server automatically after interface up ?