How to add a static/permanent route?

Posted on 2005-04-06
Medium Priority
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 (a host) to (my router)

Question by:shanepresley
  • 2
LVL 12

Accepted Solution

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
          <router> would be in your case
              -P   makes is persistent across reboots          

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

LVL 12

Assisted Solution

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:

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
LVL 12

Expert Comment

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

Author Comment

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 /24 for file system backups.  There is a router on the network (  In order to get to our new backup server ( I need to go to that router.  So the statement

route -p add mask

is what I was looking for.  Thanks again,

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