When a Pi does not have a static ip address, when it connects to wifi, it will automatically determine the default gateway ip address. When you set a static ip address in dchpcd.conf, you also need to set a static default gateway for the profile. In the project I'm working the Pi's will have several known mobile hotspot SSID's and passwords. When it is in range of these networks it should automatically connect. I want the Pi to use whatever default gateway the hotspot has automatically, but have a consistent static ip regardless of which network it is connected to. Is this possible?
The goal is that I want to be able to ssh into a headless Pi, regardless of which network it happens to be connected to as long as I'm on the same network.