Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)?

share|improve this question
up vote 6 down vote accepted

I found a comfortable way of doing this here:

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:

share|improve this answer
I just had to do this twice this week. This is correct. – ewwhite Aug 13 '14 at 14:42
To get this to work I had go into the http://<ip-address>:5480 interface and select Administration → Certificate Regeneration Enabled. I found that setting on this VMware KB page. Rebooting several times may also have helped. – andrew.n Nov 2 '15 at 17:19

I can't recall which specific Linix distro the VCA is built on but I think it's a RHEL variant, so just edit /etc/sysconfig/networking/devices/ifcfg-eth0 as root, it's all very obvious from there. Then just reboot or restart the networking service for the changes to come in.

share|improve this answer
great, the file is /etc/sysconfig/networking/devices - what I do with the 'BROADCASTING' address? what is that? Gateway? – Saariko Dec 21 '12 at 10:17
The broadcasting address is the broadcast address of your network. You can use to calculate it, if you don't know what it is. – Dan Dec 21 '12 at 10:20
Didn't work until I symlinked to /etc/sysconfig/network/ifcfg-eth1 as per… – trinth Dec 4 '13 at 21:04
Do NOT merely edit this file when changing the IP! You will receive errors with the Inventory and STS (secure token service, part of the SSO suite). These components must re-register under the new URL. The much better way is the way the vendor supports, in Jonas' answer below. – Tohuw Oct 31 '14 at 4:22

You can also do this from the GUI on the actual appliance. You use your browser to log into the appliance, then go to the "network" section and you can set it all there.

enter image description here

share|improve this answer
A nice command line interface. Glad to see you've read the question carefully. – Deer Hunter Dec 2 '15 at 7:14
I was offering this as an alternate, in case other users had similar but not identical questions. You can tell that because I started by "you can also..." I'll have to keep in mind that this site is perhaps much more rigid, and not add anything beyond the very specific question. – jlkansascity May 3 at 20:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.