?
Solved

How to add a static/permanent route?

Posted on 2005-04-06
4
Medium Priority
?
7,839 Views
Last Modified: 2012-06-27
How do I add a route to Windows 2000 that will persist across reboots?

It is a single host route.  I want to route 192.168.10.1 (a host) to 192.168.40.253 (my router)

THanks
0
Comment
Question by:shanepresley
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
Carlo-Giuliani earned 1000 total points
ID: 13718015
To make it persist you have to use

           >ROUTE ADD <subnet> MASK <nemask> <router>  -P

where <subnet> is the IP subnet you want to route  (usually ends in 0)
          <netmask> is the subnet mask (typically something like 255.255.255.0)
          <router> would be 192.168.50.253 in your case
              -P   makes is persistent across reboots          

What is not clear in your question is the subnet and mask needed.  Is 192.168.10.1 the address of the machine you want to set the route on?  Is the the machine you are trying to route to?  

0
 
LVL 12

Assisted Solution

by:fruhj
fruhj earned 1000 total points
ID: 13718158
Not sure 100% what you're asking for, but here goes...

theres a dos/command prompt command called ROUTE

open a dos prompt,

then enter route by itself to see the instructions

for your need the command would be:

ROUTE -p ADD (fill in the details)

most likey form the info you've provided it would be:
ROUTE -p ADD 192.168.10.1 MASK 255.255.255.255 192.168.40.253

You should understand that the ROUTE command is a networking command - it tells the PC how to find different networks, it won't redirect requests for a single IP to another IP.

On your windows 2000 Machine, you'll likely have an IP assigned by your router - and along with that will be a default gateway (which will likely be the routers internal LAN IP address)

The only reason you'd need a route statement on your client PC was if you had another subnet that the router itself didn't know about, and in that case it would probably be better to add the route to the router.

- Jack
0
 
LVL 12

Expert Comment

by:fruhj
ID: 13718169
Sorry Carlo - there were no replies to his question when I started typing - I guess I took too long! Not trying to steal your points!
- Jack
0
 
LVL 1

Author Comment

by:shanepresley
ID: 13718459
Thanks guys, that answers it.

You were both correct.  I have a PC that has two network cards.  One is connected to the public network, and one is connected to 192.168.40.0 /24 for file system backups.  There is a router on the 192.168.40.0 network (192.168.40.253).  In order to get to our new backup server (192.168.10.1) I need to go to that router.  So the statement

route -p add 192.168.10.1 mask 255.255.255.255 192.168.40.253

is what I was looking for.  Thanks again,
Shane
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
If anyone asked you to network diagram of the internet, it was drawn in the form of a fluffy cloud which further became known as cloud computing. Popularly cloud computing is defined as workloads that run over the internet in a commercial provider’s…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question