I'm brand new to Raspberry Pi 3 but not new to linux or software development and I am gaining a firm grasp on dev ops and networking concepts.
I'd like to setup a fail-safe to maintain an internet connection to my Raspberry Pis and I figured the best way to do this is to only enable wifi and auto-connect to a specific access-point if the ethernet goes down or is unplugged for some reason. And to also detect when ethernet is back online and automatically disable the wifi again.
From what I can tell so far this is feasible by modifying the /etc/network/interfaces file.
I'm currently running the Raspbian OS on the device. The network topology is a Modem with a Router and wifi access point on-board. One cable from the Modem Router connected to an 8-port unmanaged switch. And 3 Raspberry Pis connected to the switch.
Is this possible? Or is this even the best approach given the goal? I'm very curious to get all of your feedback.
I don't suspect the internet will go down for any reason, but I'm using this setup to learn about networking, dev ops, and Raspberry Pi.
Thanks for all your help in advance!