Static Route via Windows

So lately I’ve been working on the Isilon quite a bit and we have a couple PAC servers that travel through the Netscalers here in our environment.
These netscalers are used as the Server’s default gateway for routing traffic. However using them as a source to route all data isn’t a great thing to do from a performance perspective, So some static routes are created to help make it’s backend NAS connections a bit faster.

First execute “Route Print” and note the Interface number, in this case 12,11,13,14,1

C:>route print

Interface List
12…02 00 4c 4f 4f 50 ……Npcap Loopback Adapter
11…ec b1 d7 3d 7d 8e ……Intel(R) Ethernet Connection I217-LM
13…00 50 56 c0 00 01 ……VMware Virtual Ethernet Adapter for VMnet1
14…00 50 56 c0 00 08 ……VMware Virtual Ethernet Adapter for VMnet8
1………………………Software Loopback Interface 1

We would like to target 11 in this case.
Also note we need the word “MASK” in the middle or the command will not be parsed correctly
Giving -p for a persistent change, All connections to 10.246.x.240 will not route through 10.246.x.1

route -p add 10.246.x.240 MASK 10.246.x.1 METRIC 1 IF 11
route -p add 10.246.x.241 MASK 10.246.x.1 METRIC 1 IF 11
route -p add 10.246.x.242 MASK 10.246.x.1 METRIC 1 IF 11
route -p add 10.246.x.243 MASK 10.246.x.1 METRIC 1 IF 11

Leave a comment

Your email address will not be published. Required fields are marked *