Routing traffic to a specific NIC in Windows

Posted by Stoicpoet on Server Fault See other posts from Server Fault or by Stoicpoet
Published on 2013-11-02T15:42:13Z Indexed on 2013/11/02 15:53 UTC
Read the original article Hit count: 211

Filed under:
|
|
|

I added a 10GB NIC to a SQL server which is connected over to a backend storage using ISCSI. I would like to force traffic going to a certain IP address/host to use the 10gb NIC, while all other traffic should continue to use the 1GB NIC.

The 10gb nic is configured using a private network. So far I have added a entry in the host file to the host I want to go over the private network and when I ping the host, it does return the private IP, but I'm still finding traffic going to the 1gb pipe.

How can I force all traffic to this host to use the 10gb interface? Would the best approach be a static route?

160.205.2.3 is the IP to the 1gb host, I actually want to the traffic to route over an interface assigned 172.31.3.2, which is also defined as Interface 22.

That said, would this work?

route add 160.205.2.3 mask 255.255.255.255 172.31.3.2 if 22

© Server Fault or respective owner

Related posts about Windows

Related posts about networking