This article provides steps to change the Service Console IP address, gateway address, and hostname on an ESX 3.x host.
- Run the following command to set the IP address:
[root@server root]# esxcfg-vswif -i <a.b.c.d> -n <w.x.y.z> vswif0, where <a.b.c.d> is the IP address and <w.x.y.z> is the subnet mask
Note: In this example, vswif0 is the Service Console adapter that is the interface to which you are applying the IP address change.
- Open the /etc/hosts file with a text editor and modify it so that it reflects the correct IP address and hostname.
- To change the default gateway address and the hostname, edit the /etc/sysconfig/network file and change the GATEWAY and HOSTNAME parameters to the proper values.
- For the changes to take place, reboot the host or restart the network service with the command: [root@server root]# service network restart Note: This command breaks any current network connections to the Service Console.
Changing the hostname without rebooting
-
Highlight the ESX host and click the Configuration tab.
-
Click DNS and Routing.
-
Click Properties.
-
To change the hostname, domain, and DNS servers, click the DNS Configuration tab and enter the appropriate values.
Note: Disable VMware High Availability if you do not want virtual machines to failover during the hostname IP change.
-
To change the default gateway, click the Routing tab and enter the appropriate value.
-
Update the etc/opt/vmware/vpxa/vpxa.cfg file to reflect the new settings.
-
Reboot the ESX host for the changes to take place.
VMware KB Article: 4309499
Pingback: Pv4