How to change the Service console IP in VMware ESX 4 Server?

Changing the IP for the Service Console must be done from the physical console or through a remote console session (ILO or DRAC). If you make changes through a network connection such as SSH, network connectivity to the Service Console disconnects because the Service Console's network interface changes.

  1. Run the following command to set the IP address:
    root@frank root# esxcfg-vswif -i 192.xxx-xx-xx -n 255.255.255.0 vswif0
    (Note
    : In this example, v swif0 is the Service Console adapter that is the interface to which you are applying the IP address change.)
  2. Open the /etc/hosts file with a text editor and modify it so that it reflects the correct IP address and hostname.
  3. 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.
  4. For the changes to take place, reboot the host or restart the network service with the command:
    root@frank root# service network restart

Note: This command breaks any current network connections to the Service Console.


0 comments:

Post a Comment