How to change vCenter server appliance IP from command line

vmware-vcentervmware-vsphere

I have installed a vCenter 5.1 appliance (VCSA) on physical server on a particular network, and assigned it an internal IP. This server (Dell R620) then went to a remote hosting location, where it is connected to a network with has a totally different IP and subnet.

So what I need to do now is change the vCenter server's IP to one I can remotely connect to.

I can only Launch the Console of the appliance from within the Host machine itself.

enter image description here

How do I change the appliance IP using command line (logged in as root)?

Best Answer

I found a comfortable way of doing this here:

Allocate a static IP address to the VMware vCenter Server Appliance (VCSA) | Ivo Beerens' Blog

It also allows you to change hostname, DNS, default gateway and proxy.

To sum it up:

  • Open a console session of the VCSA
  • Login as: root
  • Default password is: vmware
  • Execute the following command: /opt/vmware/share/vami/vami_config_net
  • After executing the command, a menu is displayed. Within the menu It is possible to change the IP address, hostname, DNS, Default gateway and proxy server.

After allocating a static IP Address to the VCSA, the post configuration can be done by using the following URL:

https://static-ip-address:5480