none
how can I change the default route IP (NOT the interface) to one of the other IP that is bind to the same interface in win2008 Server

    Question

  • Here is my win2008 server routing table:

    C:\Users\xiaoluz>route print
    ===========================================================================
    Interface List
     12 ...00 50 56 b5 71 07 ...... Intel(R) PRO/1000 MT Network Connection #2
      1 ........................... Software Loopback Interface 1
     13 ...00 00 00 00 00 00 00 e0  isatap.{10C5015F-3FF7-4A29-9DFA-05C9806F3C90}
     11 ...02 00 54 55 4e 01 ...... Teredo Tunneling Pseudo-Interface
     14 ...00 00 00 00 00 00 00 e0  6TO4 Adapter
    ===========================================================================

    IPv4 Route Table
    ===========================================================================
    Active Routes:
    Network Destination        Netmask          Gateway       Interface  Metric
              0.0.0.0          0.0.0.0   203.23.176.193   203.23.176.206    266
            127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
            127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
      127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
       203.23.176.192  255.255.255.224         On-link    203.23.176.206    266
       203.23.176.206  255.255.255.255         On-link    203.23.176.206    266
       203.23.176.216  255.255.255.255         On-link    203.23.176.206    266
       203.23.176.221  255.255.255.255         On-link    203.23.176.206    266
       203.23.176.223  255.255.255.255         On-link    203.23.176.206    266
            224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
            224.0.0.0        240.0.0.0         On-link    203.23.176.206    266
      255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      255.255.255.255  255.255.255.255         On-link    203.23.176.206    266
    ===========================================================================
    Persistent Routes:
      Network Address          Netmask  Gateway Address  Metric
              0.0.0.0          0.0.0.0   203.23.176.193  Default
              0.0.0.0          0.0.0.0       10.10.19.1  Default
    ===========================================================================

    The server only have one NIC which has 3 static IPs:

    Ethernet adapter Local Area Connection 2:

       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection #
    2
       Physical Address. . . . . . . . . : 00-50-56-B5-71-07
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       IPv4 Address. . . . . . . . . . . : 203.23.176.206(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.224
       IPv4 Address. . . . . . . . . . . : 203.23.176.216(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.224
       IPv4 Address. . . . . . . . . . . : 203.23.176.221(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.224
       Default Gateway . . . . . . . . . : 203.23.176.193
       DNS Servers . . . . . . . . . . . : 203.23.176.130
                                           203.23.176.153
       NetBIOS over Tcpip. . . . . . . . : Enabled

    Currently all the traffic goes through IP 203.23.176.206 , but I want to change it so that the traffic goes through IP 203.23.176.221 instead?

    Can you please help?

    Thanks

    Xiaolu
    Tuesday, March 13, 2012 5:36 AM

Answers

  • Hi Xiaolu,

    We cannot easily change the route interface IP order. Not like XP have primary IP address, for server 2008 please apply the following hotfix and only leave 203.23.176.221 in the IPv4 properties. After that, running the below netsh command to add the additional IP addresses with the parameter:

    Netsh int ipv4 add address <interface name> <ip address> <subnet mask> skipassource=ture

    So the added addresses are not used for outgoing packets. For more detailed information, please refer to the following article:

    All IP addresses are registered on the DNS servers when the IP addresses are assigned to one network adapter on a computer that is running Windows Server 2008 SP2 or Windows Vista SP2
    http://support.microsoft.com/kb/975808

    Source IP address selection on a Multi-Homed Windows Computer
    http://blogs.technet.com/b/networking/archive/2009/04/24/source-ip-address-selection-on-a-multi-homed-windows-computer.aspx


    Best Regards,
    Aiden


    Aiden Cao

    TechNet Community Support

    Wednesday, March 14, 2012 5:22 AM
  • Hi Aiden,

    Thanks for your reply, they are very helpful links. However, I can't apply these patches because my env setup. This is a hosting servers thus need to advertise those multiple IPs and for SSL binding. Because windows change default route IP as I added more, it affects how we calculate the download usage for the clients. One of the client has a database syn process to a external server and it changes as well. 

    My work around is to change the syn process outgoing IP by binding MSSQL server to a dedicated IP.

    Regards

    Xiaolu 

    Thursday, March 15, 2012 4:43 AM

All replies

  • Hi,

    You can do this by

    route CHANGE <current gw> MASK 255.0.0.0 <newgw>

    Thanks,

    Girish

    Tuesday, March 13, 2012 7:11 AM
  • Hi Xiaolu,

    We cannot easily change the route interface IP order. Not like XP have primary IP address, for server 2008 please apply the following hotfix and only leave 203.23.176.221 in the IPv4 properties. After that, running the below netsh command to add the additional IP addresses with the parameter:

    Netsh int ipv4 add address <interface name> <ip address> <subnet mask> skipassource=ture

    So the added addresses are not used for outgoing packets. For more detailed information, please refer to the following article:

    All IP addresses are registered on the DNS servers when the IP addresses are assigned to one network adapter on a computer that is running Windows Server 2008 SP2 or Windows Vista SP2
    http://support.microsoft.com/kb/975808

    Source IP address selection on a Multi-Homed Windows Computer
    http://blogs.technet.com/b/networking/archive/2009/04/24/source-ip-address-selection-on-a-multi-homed-windows-computer.aspx


    Best Regards,
    Aiden


    Aiden Cao

    TechNet Community Support

    Wednesday, March 14, 2012 5:22 AM
  • Hi Aiden,

    Thanks for your reply, they are very helpful links. However, I can't apply these patches because my env setup. This is a hosting servers thus need to advertise those multiple IPs and for SSL binding. Because windows change default route IP as I added more, it affects how we calculate the download usage for the clients. One of the client has a database syn process to a external server and it changes as well. 

    My work around is to change the syn process outgoing IP by binding MSSQL server to a dedicated IP.

    Regards

    Xiaolu 

    Thursday, March 15, 2012 4:43 AM
  • Hi Aiden,

    I was about to download and test the hotfix for win2008sp2, but in this link, it only has hotfix for Vista :( . 

    http://support.microsoft.com/kb/975808

    Can you please let me know where can I download it for Win2008sp2.

    Thanks

    Xiaolu

    Tuesday, March 20, 2012 4:37 AM
  • Hi Xiaolu,

    Thanks for your feedback. I have tested, even though the hotfix product only showing for Vista, it also applied for Windows 2008 sp2. Please download the hotfix try to apply on Windows 2008 sp2. If you have any update or concern, feel free to let us know.


    Best Regards,
    Aiden


    Aiden Cao

    TechNet Community Support

    Tuesday, March 20, 2012 6:20 AM
  • I am getting this error. :(

    Xiaolu

    Wednesday, March 21, 2012 12:19 AM
  • Hi,

    It’s odd. I have tested in Windows Server 2008 Enterprise SP2 64 bit. Is you platform is x86? As this hotfix might need additional testing, it might have some potential issue for Windows Server 2008, so Microsoft has deactivated the download page for 2008 SP2. Given this situation, you may need other workaround for this issue. For additional support on this issue, I would suggest that you contact Microsoft Customer Support service. They are the best resource for this kind of issues. Your understanding is highly appreciated.

    http://support.microsoft.com/common/international.aspx?RDPATH=dm;en-us;select&target=assistance


    Best Regards,
    Aiden


    Aiden Cao

    TechNet Community Support

    Wednesday, March 21, 2012 3:08 AM
  • Oops, it is x86. I didn't think it is tho.  So this patch doesn't apply to x86 platform. I have to find alternative solution then.

    Thanks very much for your help. 

    Xiaolu

    Wednesday, March 21, 2012 6:11 AM