We are trying to use the route command, within a VPN connection, to change the local clients route. Microsoft says to use the command as:
192.168.0.0 mask 255.255.0.0 default METRIC default IF default
with the first default being the gateway to use
the second default being the default metric for that gateway
and the third default being the interface that the gateway you are using is on.
The problem is that whether I type this in manually, or use the client to try to do it, it continually comes back with the message
"bad gateway address default"
First, those IPs are class B, second the last item is Interface (IF) and has nothing to do with the gateway. Third the reason you are getting the bad gateway address default, is because there is no gateway IP called "
default".
The IF is a number 1, 2, 3, 4, etc. and it is the number of the Network Interface Card (NIC). It just allows you to pick the NIC where the traffic is heading.
The command should be
ROUTE ADD <destination ip> MASK <ip mask> <gateway>
Don't worry about METRIC or IF. Metric should not matter, unless you have multiple routes to the same destination and a decision has to be made which one costs less... which is where the metering i.e. metrics come in.. IF will default to the best one, almost always the first one. If you only have one NIC, well, then it really doesnt matter, now does it?!
So your route command should look like:
ROUTE -p ADD 192.168.0.0 MASK 255.255.0.0 <gateway IP>
The error comes from you keep putting the word
default in the place of the gateway IP. I could of course give you a headache, because if you had a machine named "default" and it was in your HOSTS file, the poor protocol would try to find it, and direct the traffic toward it.
One final tip - add the
-p, thereby "storing" it for next reboot (p for persistent - get it?!

) . Otherwise you will have to keep typing it in.