使用多个IP设置默认Windows服务器接口IP

我有一个带有3个IP地址的Windows Server 2012 R2 VM:4.70,4.17和4.18 4.70是在属性表中input的第一个IP地址,4,17和4.18是在高级对话框中input的。

正如你可以在路由打印中看到的那样,windows将绑定4.17作为默认IP,并且我想强制Windows使用4.70作为默认值。 4.17 / 4.18在IIS中使用,还有一些非平凡的防火墙问题需要解决。 与此同时,我需要盒子上剩余的stream量来自4.70。

IPCONFIG / ALL:

Ethernet adapter Ethernet0: Description . . . . . . . . . . . : Intel(R) 82574L Gigabit Network Connection Physical Address. . . . . . . . . : 00-50-56-9B-33-55 DHCP Enabled. . . . . . . . . . . : No IPv4 Address. . . . . . . . . . . : 192.168.4.17(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.254.0 IPv4 Address. . . . . . . . . . . : 192.168.4.18(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.254.0 IPv4 Address. . . . . . . . . . . : 192.168.4.70(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.254.0 Default Gateway . . . . . . . . . : 192.168.4.1 

路线打印:

 IPv4 Route Table =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.4.1 192.168.4.17 266 

你看过这个链接吗? http://securahosting.com/technical-insight/windows-server/set-primary-ip-address-windows-server-2012#.VOe_0EfF98E

这个: http : //www.confusedamused.com/notebook/source-ip-address-preference-with-multiple-ips-on-a-nic/

很快,在netsh地址设置中,对所有非主要IP使用SkipAsSource = true标志