Резервирование интернет-каналов при использовании ESP8266 shield и Ethernet shield

I’d suggest using two Ethernet shields. One conneted to LAN and the other connected to a Wifi router. The you only need to include the lib for the Ethernet W5500 shield and “switch” between the two shields via chip select pin (CS).