944,117 Members | Top Members by Rank

  • Networking Discussion Thread
  • Unsolved
  • Views: 66978
  • Networking RSS
Mar 18th, 2005
0

Windows Route command

Expand Post »
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"

Any idea?

Thanks in advance
Similar Threads
Reputation Points: 14
Solved Threads: 1
Junior Poster in Training
tayloric is offline Offline
63 posts
since Apr 2004
Mar 18th, 2005
0

Re: Windows Route command

Let me be the first to completely misunderstand this problem

Should the subnet mask not be 255.255.255.0 with the Class C address specified.

CAN YOU NOT JUST USE THE TCP IP PROPERTIES OF YOU CONNECTION TO ADD IP AND SUBNET AND THE IP OF YOUR ROUTER TO DEFAULT GATEWAY

APOLOGIES FOR CAPS _ STICKY KEYS THE GIT
Reputation Points: 16
Solved Threads: 17
Practically a Master Poster
MartyMcFly is offline Offline
675 posts
since Feb 2005
Mar 18th, 2005
0

Re: Windows Route command

We have a subnetted network using the 192.168.x.x address space. We have to use the 255.255.0.0 to be able to access all the various subnets.

I can personally use TCP/IP properties, or Route ADD, etc. to setup my connection, however, our end users are not technical enough to be able to do that. We are trying to automate their connection to the VPN server. We have tried using the CMAK to do this with an included file, and also tried a URL, etc. Our problem continues to be the 'default' wording that Microsoft says to use. All of Microsoft's documentation, as well as documentation on other sites says to use the 'defalut' wording and all that does is generate erros.

thanks
Reputation Points: 14
Solved Threads: 1
Junior Poster in Training
tayloric is offline Offline
63 posts
since Apr 2004
Mar 18th, 2005
0

Re: Windows Route command

Quote originally posted by tayloric ...
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.
Reputation Points: 18
Solved Threads: 0
Junior Poster
Libertate is offline Offline
120 posts
since Jan 2005
Mar 19th, 2005
0

Re: Windows Route command

as I said, completely misunderstood, and bad advise at that
Reputation Points: 16
Solved Threads: 17
Practically a Master Poster
MartyMcFly is offline Offline
675 posts
since Feb 2005
Mar 21st, 2005
0

Re: Windows Route command

Our problem is that Microsoft CMAK does not use the standard route command. When we go into the client and manually configure it, it works great. Our users are just that, users. They wouldn't understand route commands, etc. Trying to use the Micorsoft CMAK, and following all of Microsoft's instructions, is where our problem lies. We have tried and tried to get it to work, but can't get it to work fully. Our initial add command of add 192.168.0.0 mask 255.255.0.0 default works great. It's when we try to add any other routes to it that it crashes. Since our network is subnetted into many subnets we have to have multiple lines to get it all working.

Thanks
Reputation Points: 14
Solved Threads: 1
Junior Poster in Training
tayloric is offline Offline
63 posts
since Apr 2004
Mar 21st, 2005
0

Re: Windows Route command

Quote originally posted by tayloric ...
Our problem is that Microsoft CMAK
Dominus tecum.

I am sorry. I am not familiar with the Connection Manager's ROUTE command.
Reputation Points: 18
Solved Threads: 0
Junior Poster
Libertate is offline Offline
120 posts
since Jan 2005
Oct 28th, 2009
0
Re: Windows Route command
no
Reputation Points: 10
Solved Threads: 0
Newbie Poster
biswajit143 is offline Offline
3 posts
since Oct 2009
Oct 28th, 2009
0
Re: Windows Route command
Click to Expand / Collapse  Quote originally posted by tayloric ...
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"

Any idea?

Thanks in advance
no
Reputation Points: 10
Solved Threads: 0
Newbie Poster
biswajit143 is offline Offline
3 posts
since Oct 2009
Oct 28th, 2009
0
Re: Windows Route command
Click to Expand / Collapse  Quote originally posted by tayloric ...
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"

Any idea?

Thanks in advance
no
Reputation Points: 10
Solved Threads: 0
Newbie Poster
biswajit143 is offline Offline
3 posts
since Oct 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Networking Forum Timeline: Stimulus Funding State Internet Mapping, Too
Next Thread in Networking Forum Timeline: Not Connecting





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC