Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Route add command in Windows 98 5

Status
Not open for further replies.

Tool

MIS
Jul 28, 1999
65
US
Hi,<br>
<br>
Does anyone know how to add a persitent route in Windows 98. I tried using the -p switch but that doen't seem to work.<br>
<br>
Thanks in advance<br>
<br>
Tool
 
Tried right click on My Comp. Map network drive. Its not route add, but it works!<br>
<br>
Does it disconnect during the day or only not reconnect at boot up?
 
It happens when I log on as a remote user through VPN I need to see another network other then the one I'm logging into. The routing table on the server does not update the client to reflect the gateway for the other network. I can add a route on the client to go throuh the gateway, but every time I log off I lose the route entry. <br>
<br>
Any Ideas?<br>
<br>
Tool
 
To make a route permanent, use -p option.<br>
route -p add 10.0.0.1 mask 255.255.255.0 10.0.0.2 metric 1
 
What on earth is that metric 1? <p>John Vogel<br><a href=mailto:john@computerwiz.net>john@computerwiz.net</a><br><a href= Computerwiz Community</a><br>---==============================---<br>
I am currently working on It should be LIVE 1/12/00 or before. I would appreciate suggestions, comments and the like. Please go look and help. Thanks.<br>
---========================
 
&quot;Metric&quot; on route commands is an indicator of how much it will &quot;cost&quot; to use this route to reach a remote host. The IP address resolver on the local machine will work out a route to a remote host using all available routes. It will then total the &quot;metrics&quot; for each route, and use the one which &quot;costs&quot; the least.<br>
<br>
If the lowest cost route is not available, it will use the next available route.<br>
<br>
It's there because you may have situations on servers with complex routes where the server might have more than one route to a remote host.<br>
<br>
Hope this helps.<br>
<br>
Unless I'm totally wrong, in which case somebody please tell me the correct answer :)
 
metric is a setting in a verctor routing protocol which allows the router the routingdecission. you can have one or more metrics.<br>
based on costs, time, hops etc<br>
if you only got one u using RIP and it is the number of hops -- metric.<br>
a hop is in internetterms a router so this decission is based on how much routers are between source and destination.<br>
<br>

 
As simple as creating a batch file to run at startup to create the route!! Win9.x does not support the -P switch.
 
You cannot use the -p option in Windows 98.&nbsp;&nbsp;That option is only available in Windows NT.&nbsp;&nbsp;The only way (according to Microsoft) is to create a batch file and add the route to it.&nbsp;&nbsp;Drop this batch file into the Windows startup folder.<br>
 
can anyone please explain with an example - how route ADD works in Windows NT?I tried all possibilities but got
&quot;The route addition failed : 87&quot; error always.
 
typing route /? at the command prompt will tell you what to type.

You actually use route add -p 192.168.0.1 mask 255.255.255.0 interface_ip_address

or equivalent.
 
I wrote a batch file called route.bat for windows 98 with the following lines:

route add 192.168.0.0 mask 255.255.255.0 192.168.1.1 metric 2
exit

but when I ran the batch file, it continually looped through the route command until I use <ctrl>-C

I then renamed the file to route1.bat & it worked perfectly. (I was recalling the batch file within the batch file itself). I now know not to give a batch file the same name as a dos command.
Anne
 
I wrote a batch file called route.bat for windows 98 with the following lines:

route add 192.168.0.0 mask 255.255.255.0 192.168.1.1 metric 2
exit

but when I ran the batch file, it continually looped through the route command until I used <ctrl>-C

I then renamed the file to route1.bat & it worked perfectly. (I was recalling the batch file within the batch file itself). I now know not to give a batch file the same name as a dos command.
Anne
 
the dos command &quot;route&quot; , what can u tell me about it , I want to know all its possible uses ??
 
I have just installed new DELL GX110 Machines on a LAN but the option in Win 98 to retrieve auto IP Address does not seem to workdoes anybody have any suggestion of how to activate trhis through the registry!
 
Hey

I tried to use the route add command to configure the two interfaces in a PC in my office which has Win NT on it. Once i manually enter the route add commands in the command prompt, i can ping other required computers on the network. But then when i restart and try to do the same, i cannot ping any other computers in the network(other than those connected to the same hub as this PC). I tried writing these commands to autoexec.bat and also called a run command for a .bat file in win.ini. I also made a .bat file and saved it in the startup folder in my NT directory. Even after this, it still didnt work upon restarting. Could anyone please guide me as to what I should do?

Thanks for the same

sh_maestro
 
since you are running NT you can use the route command to enable persitent routes (those that stay after a reboot).

here is an example:

route -p add 192.168.1.0 mask 255.255.255.0 192.168.2.1

Windows 9x does not support the &quot;-p&quot; switch for adding persistent routes, that is why you would need a batch file.
Doug
dxd_2000@yahoo.com

 
I get the command, but why do I keep getting an error

Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1
The route addition failed: 87


Thanks for you help in advance.

BW
 
your mask should be 255.0.0.0
Doug
dxd_2000@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top