1

I need the following action in my Raspberry Pi 3. When the pi boot, it will try to use static IP (which already configured) on an Ethernet interface. If it fails, then it will get an IP from the DHCP server. I came across with the dhcpcd fallback profile however it seems it does the opposite of my requirement. Is it possible to configure fallback profile to first try to static IP and if it fails, try DHCP server?

Or if there is any other methods, I can take a look.

Aurora0001
  • 6,357
  • 3
  • 25
  • 39
Black Glix
  • 155
  • 1
  • 6

1 Answers1

2

There is no way to do what you want. Either you set static ip addresses. Then you are responsible that there are no duplicate ip addresses on your network which will confuse communication. That's by definition. Or you let it do appropriate software like a dhcp server or avahi / bonjour / zeroconf. Of course you can mix it up but with static ip addresses you are always responsible that it isn't double and not given by software. So I suggest let only software do its work and everything is good.

Ingo
  • 42,961
  • 20
  • 87
  • 207