These settings can be changed using the Virtual Infrastructure Client or from the physical or a remote console connection (ILO, RSA, DRAC, etc)
From the Virtual Infrastructure Client
1.Highlight the ESX Server host and click on the Configuration tab
2.Click on DNS and Routing
3.Click on Properties...
4.To change the hostname, domain, and DNS servers, click on the DNS Configuration tab and enter the appropriate values
5.To change the default gateway, click on the Routing tab and enter the appropriate values
Note: Hostname and domain changes through the Virtual Infrastructure Client do not take place until the ESX host is rebooted.
From the physical or remote console connection
Edit the /etc/hosts file with an editor and modify it so that it reflects the proper IP address and hostname.
To change the default gateway address and the hostname for the Service Console edit the /etc/sysconfig/network file and change the GATEWAY and HOSTNAME parameters to the proper values.
After you edit these files, you must reboot the host or restart the network service using the following command:
--root@server root--# service network restart
Note: This command will break any current network connections to the service console.
You can also dynamically change the hostname using the command:
--root@server root--# hostname newname
Note: This command creates a temporary hostname change. This change is lost when the system is rebooted.
To change the DNS server settings, edit the /etc/resolv.conf file, update the nameserver IPs, and search domain if applicable.
Verifying ESX Server host networking configuration on the service console