Article ID: 981953 - View products that this article applies to.
You have a computer that is running Windows Server 2008 or Windows Server 2008 R2. When a server that has multiple IP addresses tries to ping itself by using its NetBIOS name, an incorrect IP address is returned.
When you perform a ping that uses a name instead of an IP address, the name has to be resolved to an IP address. If the name is that of the server, the IP address is returned as an address from the network adapter that is at the top or bottom of the network bindings order. This usually will be the last network adapter that was installed, and this may not be the interface that you expect to be used. Therefore, the ping command returns an incorrect IP address.
Note When there are multiple addresses on a network adapter, IPv6 addresses are preferred.
To work around this issue, you can change the adapter that the IP address is selected from by moving the preferred adapter to the top or bottom of the binding order. For a hidden adapter that does not appear in the list, you can create a Hosts file that uses the server name and the intended IP address. An example of a hidden adapter is the Microsoft Failover Cluster Virtual Adapter.
How to change the binding orderTo change the binding order, follow these steps:
How to change the Hosts fileFor a hidden adapter, you cannot change the binding order by using the steps in the "How to change the binding order" section. For hidden adapters, you must add an entry to the Hosts file that uses the intended host name and IP address.
To change the Hosts file, follow these steps:
ping -4 <host name>If you want to use IPv4 addresses over a network, you can force Windows to use IPv4 addresses instead of IPv6 addresses. However, we do not recommend that you do this. We strongly recommend that you update the network to use IPv6 addresses. For more information about how to disable IPv6, click the following article number to view the article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/929852/ )How to disable certain Internet Protocol version 6 (IPv6) components in Windows Vista, Windows 7 and Windows Server 2008
For more information about the IPADDR_ANY parameter, click the following article number to view the article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/175396/ )Windows Socket Connection from a Multi-Homed Computer
For more information about the getaddrinfo function, visit the following MSDN Web site:
The getaddrinfo functionFor more information about IP address selection, visit the following TechNet blogs:
Source IP address selection on a multi-homed Windows-based computer
DNS Round Robin and Destination IP address selection
What is a Microsoft Failover Cluster Virtual Adapter?
Article ID: 981953 - Last Review: May 17, 2010 - Revision: 2.0