change default route IP on windows 2008

March 12, 2012 at 22:46:21
Specs: Windows 2008
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


See More: change default route IP on windows 2008

Report •

#1
March 13, 2012 at 05:46:42
The only way that I think you may be able to achieve this (I say may as I haven't tried it) is to specify the required address as the main one in your IP settings and then add the other two as additional addresses. Multiple addresses on the same NIC are usually used to distinguish incoming traffic, say for different web sites, rather than outgoing.

I'm intrigued to know what difference it makes, for outgoing traffic, which IP address it uses. It's all going through the same interface so won't affect performance in any way.


Report •

#2
March 13, 2012 at 08:00:50
put a higher metric on the ips that you don't want as default route

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •

#3
March 13, 2012 at 09:02:55
@wanderer. I'm not quite with you on that one. As the interface is the same for all 3 Ip addresses, how can you put a different metric on them?

Report •

Related Solutions

#4
March 13, 2012 at 11:30:54
metric is set in tcp/ip advanced properties per ip address. Windows will use the lower metric before higher ones.

This is the same trick you use if you have two nics, one lan and one wan but you can't take the gateway entry off the lan but you still want internet going thru the wan.

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •

#5
March 13, 2012 at 11:41:13
I'm afraid that I'm still not with you. I see a metric for the interface in Advanced IPv4 Properties, but where are the Advanced Properties for multiple IP addresses on the same interface? Am I being stupid here?

I must admit that I've always thought of the metric as being a property of the interface rather than the address.


Report •

#6
March 13, 2012 at 12:17:26
each is added as a gateway which you will note has metric next to it in advanced ip properties/ip config

metric is on a route ie gateway not on the interface itself.

Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's


Report •

#7
March 13, 2012 at 16:16:26
Thanks Wanderer for you advise, I am afraid this won't work. This is a IIS webserver, it has 3 IPs on the same interface, they all use the same gateway. Like you said, "metric is on a route ie gateway not on the interface itself".

The problem I have is as added more IP alias to the same interface for different website, Windows 2008 change the default route IP to the last one I just added. We need to measure traffic each month to charge customer, there is some other traffic shouldn't be count on this IP has added by windows changing the default route IP.

Xiaolu


Report •

#8
March 13, 2012 at 21:46:52
According to this Microsoft article, windows decide the outgoing IP against a set of rule, there is no way you can specified it.

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

The solution may be add another interface and assign the IP to the new interface and assign a small metric to it's route.

Xiaolu


Report •

Ask Question