How to add a static/permanent route?

Posted on 2005-04-06
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
    LVL 12

    Accepted Solution

    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

    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

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

    Author Comment

    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,

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    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…
    In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now