1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Restoring a routing table

Discussion in 'Networking (Hardware & Software)' started by contoso, 2006/04/02.

  1. 2006/04/02
    contoso

    contoso Inactive Thread Starter

    Joined:
    2006/04/02
    Messages:
    2
    Likes Received:
    0
    I need to write a batch file to recreate a routing table on a windows 2003 server. The computer I'm doing this on is at my college so I can't test what I have come up with so here is what I got.
    route add -p 10.1.0.0 mask 255.255.0.0 10.1.1.4 metric 10 if 10.1.1.4
    route add -p 10.1.1.4 mask 255.255.255.255 127.0.0.1 metric 10 if 127.0.0.1 1
     
  2. 2006/04/02
    jdc071391

    jdc071391 Inactive

    Joined:
    2006/03/31
    Messages:
    86
    Likes Received:
    0
    what is your question?

    JC
     

  3. to hide this advert.

  4. 2006/04/03
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    I'd add a route delete set of statements to the beginning to make sure that you were starting with a clean sheet.
     
  5. 2006/04/03
    contoso

    contoso Inactive Thread Starter

    Joined:
    2006/04/02
    Messages:
    2
    Likes Received:
    0
    Is route delete * the proper syntax to delete all the entries in the routing table.
     
  6. 2006/04/04
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    I don't know. Try it and see! If you've not set any static routes, all your dynamically created routes will be recreated on reboot.
     

Share This Page

  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.