So, my situation is as follows; Due to CoViD restrictions I can't physically access a remote (debian 11) production server, but I'm forced to add/activate two physical network ports (NICs) on that server and bridge them with the ones I'm using to connect with this server. The only way for me to access the server is through ssh (key only access), and all works fine with that. (It is a redundant connection though (two separate NICs), so that's good.)
Now I intend to try out changes in the /etc/network/interfaces file and do systemctl restart networking in order to activate the 2 extra NICs and have them bridged. My experience with this method, however, is that it may very well lock me out of that server and that it will have no network connectivity whatsoever after the change.
I assume people have done this trick before; Something polls/pings connectivity, and if it doesn't get a response (if ping fails), the currently functional /etc/network/interfaces file is restored and a reboot or network restart then brings the server back online.
I can create something off the cuff using cron too that doesn't even have to ping, but just restores the file no matter what, but I'm asking here to find the most fail-safe option to accomplish this that currently exists out there, one that I can install remotely without having to take anything down on that server for long periods of time, since I can't test it or do try-outs with it. (Normally beforehand I would, but I don't have a comparable machine with 4 NICs that I could test this with..) If I do mess this up and this server loses connectivity, an entire rack could suffer long downtimes, since nobody enters this server-room for weeks with the current issues regarding SARS-CoV2.
Thanks for any advice/ideas in advance!