How do I set the order of multiple IP addresses all bound to one ethernet interface?
I ran into this same issue today. It appears that Windows uses the lowest numbered IP address on an interface as the primary interface IP in the route table, no matter what ordered they are specified or added. I cannot find a source to confirm this though.
In order to add additional IPs to an interface, and be assured that they are not used as the source IP for outbound connections, you must use the following command:
The key part being
You can confirm this worked correctly with the following command:
Unfortunately, you cannot make this change on an existing IP address, so it must be deleted and re-added.
I'm not sure what you mean by order. If a NIC has been configured with multiple addresses, all the addresses will be valid at the same time. Gateways and dns servers will be ordered though. This article explains how to configure advanced networking in Windows.
|show 2 more comments|