Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How do I set the order of multiple IP addresses all bound to one ethernet interface?

share|improve this question
add comment

2 Answers

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:

netsh interface ipv4 add address "Interface Name Here or Index #" address=x.x.x.x mask=y.y.y.y skipassource=true

The key part being skipassource=true.

You can confirm this worked correctly with the following command:

netsh int ipv4 show ipaddresses level=verbose

Unfortunately, you cannot make this change on an existing IP address, so it must be deleted and re-added.

share|improve this answer
add comment

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.

share|improve this answer
    
Thanks, Since assigning some additional ips to the adapter, all requests seem to be coming from one of the secondary ips not the original "primary ip" –  keyoke Apr 2 '11 at 11:36
    
Similar question on Microsoft technet site: link. Maybe that will give you a hint. –  Nils Magne Lunde Apr 2 '11 at 13:31
    
thanks I will try the following hotfix support.microsoft.com/kb/2386184 Im running SP 1 so I suppose it wasnt included... –  keyoke Apr 2 '11 at 14:27
1  
actually i think was included in SP1, I think its just a matter of running following command to add the additional IP's - "Netsh int ipv4 add address <Interface Name> <ip address> skipassource=true" –  keyoke Apr 2 '11 at 14:30
    
hmm unfortunately there is no way to set this option on an existing IP you have to del and then add again. this is not possible for me. –  keyoke Apr 2 '11 at 15:19
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.