1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Route added to routing table is deleted when pc is off

Discussion in 'Networking' started by seven, Sep 22, 2004.

Thread Status:
Not open for further replies.
Advertisement
  1. seven

    seven Thread Starter

    Joined:
    Jun 14, 2003
    Messages:
    196
    I need to keed a static route added to the routing table on my pc.
    Each time I turn off the PC it is removed.
    How can I get it to stay?

    Thanks
     
  2. bearqst

    bearqst

    Joined:
    May 21, 2004
    Messages:
    163
    Need more info.

    1) System OS

    2) What type of "route" do you mean?

    -host to IP or do you mean a mapped drive to another system on a network ??

    How do you know it's "routed" when the system is on ?
     
  3. seven

    seven Thread Starter

    Joined:
    Jun 14, 2003
    Messages:
    196
    when I type "route ADD [destination] MASK[ IP ] GATEWAY [ IP ]
    I *** this to the routing table as I have a local LAN and a wireless internet.
     
  4. seven

    seven Thread Starter

    Joined:
    Jun 14, 2003
    Messages:
    196
    I route the NIC to the office router and I route the wireless adapter to the internet router.
     
  5. 5mi11er

    5mi11er

    Joined:
    Aug 11, 2004
    Messages:
    521
    Put the route add statements in a batch file (.bat) then have a link to it in the startup folder, or just keep one on the desktop. Startup -> run automatically every time you login, on desktop -> just double click.

    -Scott
     
  6. bearqst

    bearqst

    Joined:
    May 21, 2004
    Messages:
    163
    I'd do as Scott outlined. Add it to your start up folder and it should route everytime at boot.
     
  7. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    Did you read the help for the route command.

    Code:
    C:\>route /?
    
    Manipulates network routing tables.
    
    ROUTE [-f] [-p] [command [destination]
                      [MASK netmask]  [gateway] [METRIC metric]  [IF interface]
    
      -f           Clears the routing tables of all gateway entries.  If this is
                   used in conjunction with one of the commands, the tables are
                   cleared prior to running the command.
      -p           When used with the ADD command, makes a route persistent across
                   boots of the system. By default, routes are not preserved
                   when the system is restarted. Ignored for all other commands,
                   which always affect the appropriate persistent routes. This
                   option is not supported in Windows 95.
     
  8. seven

    seven Thread Starter

    Joined:
    Jun 14, 2003
    Messages:
    196
    Thanks All. That worked LwdSquashman. I did look at help but I guess I did not REALY LOOK.
     
  9. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/276894

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice