Tag Archives: nic

How to add a static route to force specific traffic to go through a specific NIC

route -p add 10.152.212.0 mask 255.255.255.0 10.224.5.1 This will permanently (-p) add a static route so that any request going to an IP in the 10.152.212.0/24 (255.255.255.0) network goes through the network gateway 10.224.5.1 of the other network card In … Continue reading

Posted in Windows | Tagged , | Leave a comment

How to enable/disable a network interface on Windows from command line

Assuming “Ethernet” is the name of the network connection you need to enable or disable: To enable: netsh interface set interface “Ethernet” enable To disable: netsh interface set interface “Ethernet” disable

Posted in Windows | Tagged , , | Leave a comment