How to pre-configure a static IP address if DHCP fails

How can I make sure that if my device does not get an IP address through the DHCP server, I always have a known, static IP address?

Hi Daniel

There are two solutions, which are discussed here.

Best regards, Jaski