Changing routes not working in Win7, but do in WinXP


  1. Posts : 75
    Windows 7 Ultimate x64
       #1

    Changing routes not working in Win7, but do in WinXP


    I have a Windows 7 RC 7100 and have a problem with changing routes on it here at work.

    We have 3 gateways

    10.1.1.1 - default gateway via DHCP for internet browsing
    10.1.1.2 - Backup
    10.1.1.3 - highspeed for site-to-site connections
    (not real addresses)

    When I do the command;
    route add 0.0.0.0 mask 0.0.0.0 10.1.1.3
    It says OK

    When I do the command;
    route delete 0.0.0.0 mask 0.0.0.0 10.1.1.1
    It says OK

    However, I can no longer ping the internet.

    If I subsequently do (i.e. revert to the Default Gateway)
    route add 0.0.0.0 mask 0.0.0.0 10.1.1.1
    It works again.

    If I do these exact same commands on Windows XP they work ?!?!?

    Has windows 7 made some more changes to the networking that I do not know ?

      My Computer


  2. Posts : 31,249
    Windows 11 Pro x64 [Latest Release and Release Preview]
       #2

    Not sure if this is relevant - but are you entering the commands into an elevated, (run as administrator), command prompt.
    I know this did solve similar issues in Vista
      My Computers


  3. Posts : 75
    Windows 7 Ultimate x64
    Thread Starter
       #3

    Yes ... ran it as administrator
    Attached Thumbnails Attached Thumbnails Changing routes not working in Win7, but do in WinXP-cmd.jpg  
      My Computer

  4.    #4

    I experience the same problem. Worked fine under XP, what's wrong with 7?!?!?
      My Computer


  5. Posts : 2
    windows 7
       #5

    I think i found an answer to this, anyone still here that cares to know?
      My Computer


  6. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #6

    Yep!
      My Computer


  7. Posts : 2
    windows 7
       #7

    try adding an interface option (from the COMMAND prompt run as administrator) at the end of the "route add" command, for example "IF 1" assuming IF 1 is your primary NIC, and let me know if that works or not.

    it would look something like this:

    route add 10.10.10.0 mask 255.255.255.0 192.168.1.1 IF 1
    (add -p at the end if you want to make it permanent otherwise it will lose the route after the next reboot)
      My Computer


  8. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #8

    So you are saying if you pick the interface this works? In XP you did not have to do that it would pick the correct default interface. That would seem that MS went backwards making it harder in Windows 7. Plus the OP was trying to set the default route 0.0.0.0 does it work with the default route?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:09.
Find Us