Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Verifying virtual machine TCP/IP settings

Purpose

This article provides steps to verify TCP/IP settings and to verify that the NIC is communicating with the host.
 
After you complete the steps in this article, see Troubleshooting virtual machine default gateway connection issues (1007910) to confirm the LAN connection.

Resolution

Verifying TCP/IP configuration
When TCP/IP protocol is used, incorrect TCP/IP settings (such as an incorrect IP address or an incorrect subnet mask) can cause communication problems. For example, a virtual machine may not be able to ping its own IP address.
 
If you are having communication problems, verify your TCP/IP settings.
 
To verify TCP/IP settings: 
  1. To determine basic TCP/IP settings for Windows, run the command:

    ipconfig

    To determine basic TCP/IP settings for Linux, run the command:

    ifconfig

    The output looks similar to:

    Ethernet adapter Local Area Connection 1: 
    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 10.10.10.30
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 10.10.10.1

    Note: If the ipconfig or the ifconfig command does not produce any output, ensure that the NIC is enabled.


  2. From the output of the ipconfig or the ifconfig command, verify that the IP address and subnet mask are correct.

    Note:
    If you are unsure of the correct values, contact your network administrator.
  3. If DHCP is configured, confirm that DHCP is assigning the IP address correctly by renewing the IP address. F rom the command prompt in Windows or from a Linux terminal, run the command: 

    ipconfig /renew
Pinging the virtual machine IP address
If you can successfully ping the loopback address, try to ping your own IP address. From a command prompt,  run the command:

ping <IP address>, where <IP address> is your computer's IP address

For example:

ping 10.10.10.30

The output of the ping looks similar to:

Pinging 10.10.10.30 with 32 bytes of data:
Reply from 10.10.10.30: bytes=32 time=2ms TTL=128
Reply from 10.10.10.30: bytes=32 time<1ms TTL=128
Reply from 10.10.10.30: bytes=32 time<1ms TTL=128
Reply from 10.10.10.30: bytes=32 time<1ms TTL=128
 
Note: If you receive an error message when you try to ping your own IP address, there may be a communication problem between the host and your NIC. For more information, see Verifying virtual network adapter is present and connected to the virtual machine (1003786).

Additional Information

For related troubleshooting information, see Troubleshooting virtual machine TCP/IP connection issues (1007842).

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback


Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
Actions