I'm looking for a convenient and easy way to switch between network configurations under Linux. I would prefer something that would work on Raspberry PI OS, but I'm open to other distributions.
I would like to create several network profiles similar to the following:
Profile 1: One adapter active, get address via DHCP, use default route.
Profile 2: One adapter active, fixed IP address, running dhcpd to hand out address.
Profile 3: One ethernet adapter (DHCP, default route), one WiFi adapter running hostapd, dhcpd. Route WiFi client up to default route, possibly with NAT.
Profile 4: Bridge two ethernet adapters.
These are just some examples. My options seem to be: 1) Make multiple copies of all network configuration files and copy them in/out as needed and restart the network. 2) Disable all system control of the network and have scripts that manually configure links and start daemons.
Neither of these seem all that elegant. I'm hoping for something better.