Search the VMware Knowledge Base (KB)
View by Article ID

Verifying ESX host networking configuration on the service console (1003796)

  • 16 Ratings


This article provides steps to verify the networking files on your ESX host.


To verify that the current networking configuration is valid and correct:
Note: ESX 4.0 Update 2 introduces a tool that simplifies the process of creating or restoring networking in the ESX service console. For more information, see Configuring or restoring networking from the ESX service console using console-setup (1022078).
  1. To verify the format and content of /etc/hosts , run the command:

    [root@server root]# cat /etc/hosts

    Here is an example of the hosts file:       localhost.localdomain localhost server

  2. To verify the contents of /etc/sysconfig/network , run the command:

    [root@server root]# cat /etc/sysconfig/network

    Confirm that the proper values for your environment exist for the fully qualified hostname and gateway. Consult your network administrator if you are unsure of the proper values.

    Here is an example of the network file:


  3. To verify that /etc/sysconfig/network-scripts/ifcfg-vswif0 has the correct settings for IP address (IPADDR), subnet mask (NETMASK), and network (NETWORK), run the command:

    [root@server root]# cat /etc/sysconfig/network-scripts/ifcfg-vswif0

    Consult your network administrator if you are unsure of the correct settings.

    Here is an example of the ifcfg-vswif0 file:

    PORTGROUP="Service Console"

  4. To display the routing table, run the command:

    [root@server root]# route –n

    The output looks similar to:

    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface   U     0      0        0 vswif0     U     0      0        0 vswif0         UG    0      0        0 vswif0

    Ensure that the second column of the row flagged with UG matches the gateway address for your environment.

  5. To verify that the DNS information in /etc/resolv.conf is correct for your environment, run the command:

    [root@server root]# cat /etc/resolv.conf

    Here is an example of the resolv.conf file:


    Note: By default, up to three nameservers can be added to resolv.conf. The compile time parameter MAXNS defines how many nameservers can be used.
  6. Verify network connectivity between systems. For more information, see Testing network connectivity with the Ping command (1003486).
Note: Changes to the network and ifcfg-vswif0 files require a restart of the network service. T o restart the network service, run the following command and press Enter:
[root@server root]# service network restart


esx-management reconfigure-networking

See Also

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.


  • 16 Ratings

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)

Please enter the Captcha code before clicking Submit.
  • 16 Ratings