Change network priority on Windows 11

Job ID: 37217778

Budget: €18 – €36 EUR

Hi Guys!

The case is: I have an PC with 2 Ethernet Ports. On both of these ports i have plugged in an Modem wich is with the internet connected. So i have 2 NIC'2 with internet Connection.

PC
->Eth1->IP 192.168.1.10->Modem->Internet
->Eth2->IP 192.168.2.10->Modem->Internet

What i want now, is that an Script switches the hole traffic my PC generates from Eth1 to Eth2 without any interruption. I tried with route add and change metric, but windows didnt switching the priority of traffic to the interface i wanted. What i want is just an interruption free switching between these 2 NIC's.

So i think there need be one executable command in powershell to advice windows using just the NIC-2 for all incoming / outgoing traffic, and another command to switch back to NIC-1
Related categories: C Programming C# Programming