I connect a headless RPi to a laptop.
ip=169.254.0.55 at the end of
cmdline.txt has this major advantage:
- since this address is in APIPA "Automatic Private Internet Protocol Addressing" IP range, it is automatically available from a PC Windows laptop, without having to do anything here like this in the Windows IPv4 configuration. This is very useful when you often connect different devices with ethernet and you don't want to modify this manually Windows IPv4 configuration.
But if no ethernet cable is connected, I see this message during boot:
Waiting up to 110 more seconds for network...
Waiting up to 100 more seconds for network...
A common solution to the latter, as described in Pi3 - Waiting up to 110 more seconds for network is "don't use ip=... in cmdline.txt, use /etc/network/interfaces instead".
But then we lose the main advantage described above, we do have to modify the Windows IPv4 settings to make it work, or alternatively use a DHCP server (which I don't want).
Question: how to keep ip=... in cmdline.txt and avoid the 120 seconds waiting time if no ethernet cable is connected?