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
-
Tuesday, March 13, 2012 5:36 AMHere is my win2008 server routing table:
C:\Users\xiaoluz>route print===========================================================================Interface List12 ...00 50 56 b5 71 07 ...... Intel(R) PRO/1000 MT Network Connection #21 ........................... Software Loopback Interface 113 ...00 00 00 00 00 00 00 e0 isatap.{10C5015F-3FF7-4A29-9DFA-05C9806F3C90}11 ...02 00 54 55 4e 01 ...... Teredo Tunneling Pseudo-Interface14 ...00 00 00 00 00 00 00 e0 6TO4 Adapter===========================================================================
IPv4 Route Table===========================================================================Active Routes:Network Destination Netmask Gateway Interface Metric0.0.0.0 0.0.0.0 203.23.176.193 203.23.176.206 266127.0.0.0 255.0.0.0 On-link 127.0.0.1 306127.0.0.1 255.255.255.255 On-link 127.0.0.1 306127.255.255.255 255.255.255.255 On-link 127.0.0.1 306203.23.176.192 255.255.255.224 On-link 203.23.176.206 266203.23.176.206 255.255.255.255 On-link 203.23.176.206 266203.23.176.216 255.255.255.255 On-link 203.23.176.206 266203.23.176.221 255.255.255.255 On-link 203.23.176.206 266203.23.176.223 255.255.255.255 On-link 203.23.176.206 266224.0.0.0 240.0.0.0 On-link 127.0.0.1 306224.0.0.0 240.0.0.0 On-link 203.23.176.206 266255.255.255.255 255.255.255.255 On-link 127.0.0.1 306255.255.255.255 255.255.255.255 On-link 203.23.176.206 266===========================================================================Persistent Routes:Network Address Netmask Gateway Address Metric0.0.0.0 0.0.0.0 203.23.176.193 Default0.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 #2Physical Address. . . . . . . . . : 00-50-56-B5-71-07DHCP Enabled. . . . . . . . . . . : NoAutoconfiguration Enabled . . . . : YesIPv4 Address. . . . . . . . . . . : 203.23.176.206(Preferred)Subnet Mask . . . . . . . . . . . : 255.255.255.224IPv4 Address. . . . . . . . . . . : 203.23.176.216(Preferred)Subnet Mask . . . . . . . . . . . : 255.255.255.224IPv4 Address. . . . . . . . . . . : 203.23.176.221(Preferred)Subnet Mask . . . . . . . . . . . : 255.255.255.224Default Gateway . . . . . . . . . : 203.23.176.193DNS Servers . . . . . . . . . . . : 203.23.176.130203.23.176.153NetBIOS 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
All Replies
-
Tuesday, March 13, 2012 7:11 AM
Hi,
You can do this by
route CHANGE <current gw> MASK 255.0.0.0 <newgw>
Thanks,
Girish
-
Wednesday, March 14, 2012 5:22 AMModerator
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/975808Source 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,
AidenAiden Cao
TechNet Community Support
- Marked As Answer by Aiden_CaoMicrosoft Contingent Staff, Moderator Tuesday, March 20, 2012 1:15 AM
-
Thursday, March 15, 2012 4:43 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
- Marked As Answer by Aiden_CaoMicrosoft Contingent Staff, Moderator Tuesday, March 20, 2012 1:16 AM
-
Tuesday, March 20, 2012 4:37 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 6:20 AMModerator
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
-
Wednesday, March 21, 2012 12:19 AM
I am getting this error. :(
Xiaolu
-
Wednesday, March 21, 2012 3:08 AMModerator
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 6:11 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

