India Technology Center
Thursday, January 29, 2009
  How to change ESX console IP

 

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=4309499

 

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003796

 

 

From the physical or remote console connection

 

Changing the IP for the Service Console must be done from the physical console or through a remote console session. 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.

 

For this example, it is assumed that vswif0 is the Service Console adapter that is the interface to which you are applying the IP address change. Running the following command sets the IP address to the value substituted for a.b.c.d and the subnet mask to the value substituted for w.x.y.z:

 

[root@server root]# esxcfg-vswif -i a.b.c.d -n w.x.y.z vswif0

 

After running this command, edit the /etc/hosts file with an editor (such as nano or vi) 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.

 
Comments:

Post a Comment

Subscribe to Post Comments [Atom]





<< Home
An Interactive Platform for IT Professionals.....

Archives
January 2009 / February 2009 / April 2009 / May 2009 / July 2009 /


Powered by Blogger

Subscribe to
Comments [Atom]