I'm trying to setup a couple of custom routes on a Windows box but not having much success. I want a to make a windows box use a specific gateway when contacting a specific IP range.
So for example if the destination is ANY IP starting with 216.246.122.* I want it to use the 192.168.1.1 gateway.
Anyone know what the syntax of the route command under Windows is to accomplish this? I can make it work for any one IP in the range (e.g. route add 216.246.122.5 192.168.1.1 metric 1) I specifically want the syntax for the whole range. I have tried .0 .255 (which is broadcast) and even .* but that only works for Delete and Prints, not Adds.
TIA
So for example if the destination is ANY IP starting with 216.246.122.* I want it to use the 192.168.1.1 gateway.
Anyone know what the syntax of the route command under Windows is to accomplish this? I can make it work for any one IP in the range (e.g. route add 216.246.122.5 192.168.1.1 metric 1) I specifically want the syntax for the whole range. I have tried .0 .255 (which is broadcast) and even .* but that only works for Delete and Prints, not Adds.
TIA