Skip to main content

Set default Windows Server interface IP with multiple IPs [Resolved]

I've got a Windows Server 2012R2 VM with 3 IP addresses: 4.70, 4.17 and 4.18

4.70 is the 1st IP address entered on the Properties Sheet, 4.17 and 4.18 are entered in the advanced dialog.

As you can see in the route print, windows is binding 4.17 as the default IP, and I want to force windows to use 4.70 as the default. 4.17/4.18 are used in IIS, and there's some non-trivial firewall issues that need to get worked out. In the mean time, I need the rest of the traffic on the box to originate from 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

Route Print:

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

Question Credit: StormRider01
Question Reference
Asked July 11, 2018
Posted Under: Network
10 views
1 Answers

have you seen this link? http://securahosting.com/technical-insight/windows-server/set-primary-ip-address-windows-server-2012#.VOe_0EfF98E

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

shortly, in netsh address setup use SkipAsSource=true flag for all non-primary IPs


credit: aaaaaa
Answered July 11, 2018
Your Answer
D:\Adnan\Candoerz\CandoProject\vQA