Monday, 3 October 2011

Changing the IP address, default gateway, and hostname of the Service Console in ESX


  1. 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,
    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@server root]# service network restart


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

0 comments:

Post a Comment