Results 1 to 6 of 6

Thread: route add doesn't stick (Win2003)

  1. #1
    Senior Member
    Join Date
    Sep 2005
    Posts
    587
    Thanks
    7
    Thanked
    7 times in 7 posts

    route add doesn't stick (Win2003)

    Since I have 2 routers on my switch, I want one of my computers to use router 10.0.1.1 and the others to use 10.0.1.2.

    10.0.1.2 is the default, but to make the one go to 10.0.1.1, i use this command on it:
    Code:
    'Use route add to get this computer to use a different router than the default gateway set up by the scope:
    
    'route add <ip address you want to route to> mask <subnet mask of the ip you want to route to> <ip of router you want to use>
    
    route add 0.0.0.0 mask 0.0.0.0 10.0.1.1 -p
    However, sometimes it goes back to using 10.0.1.2 for seemingly no reason. I keep having to do the following to get it back:
    Code:
    ipconfig /release
    ipconfig /renew
    Do you know why it doesn't stick? It will stick for a while, then go back radomly.
    Thanks

  2. #2
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: route add doesn't stick (Win2003)

    i *think* it might be to do with how you've got the -p.

    should be at the front of the command route -p add ..............
    throw new ArgumentException (String, String, Exception)

  3. #3
    TiG
    TiG is offline
    Walk a mile in other peoples shoes...
    Join Date
    Jul 2003
    Location
    Questioning it all
    Posts
    6,213
    Thanks
    43
    Thanked
    47 times in 42 posts

    Re: route add doesn't stick (Win2003)

    I'm thinking same as TA, my -p goes there....

    route add -p 0.0.0.0 mask 0.0.0.0 10.0.1.1
    -- Hexus Meets Rock! --

  4. #4
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H

    Re: route add doesn't stick (Win2003)

    Quote Originally Posted by latrosicarius View Post
    Since I have 2 routers on my switch, I want one of my computers to use router 10.0.1.1 and the others to use 10.0.1.2.

    10.0.1.2 is the default, but to make the one go to 10.0.1.1, i use this command on it:
    Code:
    'Use route add to get this computer to use a different router than the default gateway set up by the scope:
    
    'route add <ip address you want to route to> mask <subnet mask of the ip you want to route to> <ip of router you want to use>
    
    route add 0.0.0.0 mask 0.0.0.0 10.0.1.1 -p
    However, sometimes it goes back to using 10.0.1.2 for seemingly no reason. I keep having to do the following to get it back:
    Code:
    ipconfig /release
    ipconfig /renew
    Do you know why it doesn't stick? It will stick for a while, then go back radomly.
    Thanks
    I agree with TheAnimus and TiG that the -p needs to be at the front but I'd also ask why you just can't change the default gateway on the machine to 10.0.1.1?

  5. #5
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: route add doesn't stick (Win2003)

    Quote Originally Posted by malfunction View Post
    I agree with TheAnimus and TiG that the -p needs to be at the front but I'd also ask why you just can't change the default gateway on the machine to 10.0.1.1?
    Damn good point, whilst i'm not an IT adminstrator, i can't stand overtly complex route tables, make finding problems needlessly hard.

    Keep it simple stupid!
    throw new ArgumentException (String, String, Exception)

  6. #6
    Senior Member
    Join Date
    Sep 2005
    Posts
    587
    Thanks
    7
    Thanked
    7 times in 7 posts

    Re: route add doesn't stick (Win2003)

    Thanks a lot guys! I will try this. As for the reason why I didn't just set it up to use the intended router in the first place: I tried doing that in the DNS/DHCP role setup thingy but it didn't work

    so at least this route add thing works

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hauppauge WinTV NOVA-T USB Stick - Remote Control
    By dankellys in forum Retail Therapy and Bargains
    Replies: 0
    Last Post: 18-12-2007, 10:35 AM
  2. USB memory stick recommendation...
    By retroborg in forum PC Hardware and Components
    Replies: 17
    Last Post: 12-09-2007, 12:54 PM
  3. PAYPAL, Add a Bank Account...
    By retroborg in forum General Discussion
    Replies: 0
    Last Post: 12-01-2006, 11:39 AM
  4. Replies: 14
    Last Post: 11-05-2004, 01:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •