What's new

Help with basic ROUTE Command usage under windows

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

xred

New Around Here
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
 
Need a subnet mask:
route add 216.246.122.0 mask 255.255.255.0 192.168.1.1 metric 1
 
Similar threads
Thread starter Title Forum Replies Date
J trace route shows private IP range after router Other LAN and WAN 3

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top