How to change IP address of your ESX Server
There is a time when you need to change the IP adress your ESX host. You can’t do it in the VI client Graphical User Interface. The only thing you can do is to go to the ESX server console.
1.) First of all , you must have physical access to the console.
2.) Put your ESX host in Maintenance Mode and disconect it from Virtual Center.
3.) Now you can connect to the console of your ESX host.
4.) Remove the old IP adress (by deleting the vswif interface) “esxcfg-vswif -d vswif0″ (vsfif0 is your interface to remove. Otherwise use the number you need)

5.) Create a new vswif interface with the New IP adress “esxcfg-vswif -a vswif0 -p “Service Console” -i 192.168.0.100 -n 255.255.255.0 -b 192.168.0.255″ (vsfif0 is your interface you work with. Otherwise use the number you need). If you need, replace Service Console with the name of your Service Console portgroup (this one is the default value)
-i is the new IP adresse
-n is your new subnet
-b is your broadcast
6.) Update the default gateway. Open nano “nano /etc/sysconfig/network file”


Press “CTRL+O” and “ENTER” then “CTRL+Q” to quit
7.) Then you need to restart the interfac. Do a “esxcfg-vswif -s vswif0″ (this will disable the vswif0 interface) and “esxcfg-vswif -e vswif0″ (this will enable the vswif0 interface)

8.) You should now update update DNS and your HOSTS files. Also what I would do is a “ipconfig /flushdns” and “ipconfig /registerdns” on your Virtual Center server. Only after you should reconect your ESX server host in the Virtual Center.
You can change the DNS information, hostname from the VI client GUI:
01.) Open the VI client and highlight the ESX Server host and click on the Configuration tab.
02.) Click DNS and Routing.

03.) Click Properties.
04.) If you want to change the hostname, domain, and DNS servers, click the DNS Configuration tab and enter the appropriate values.

05.) To change the default gateway, click the Routing tab and enter the appropriate values.

06.) Then you can restart the ESX server from the GUI interface of your VI client for the changes to take an effect

So after the reboot you get this : (I just changed my DNS info from “vladanseget.com” to “vladan.fr” … as an example

Related Posts :
I was checking my stats for the last 3 months and I was just wondering which posts are most popu ...
Changing the root password on ESX server What to do if you forgot (or misstype) your administra ...
Configure Service Console via CLI. To manage VMware ESX server you must have an access via a sp ...
Free Standalone HyperVisor called Microsoft Hyper-V Server 2008 was released this thursday. It ...
Great Freeware tool which is part of my Top 10 Freeware tools I use and recommend was just updat ...
Other posts from Server Virtualization
- Disable web access on VMware vCenter
- VMware ESX - Configuration of Service console via CLI
- Basic VMware ESX CLI networking commands
- How to change the default location of updates in vCenter
- Did you know that ESX 3.5 general support will end in less than 90 days?
- Starwind iSCSI HA Connection to ESX Server
- See a list of Storage Array Type Plugins on ESX Server
- New whitepaper released on PVSCSI
- Enable Jumbo Frames in ESXi 4
- How-to troubleshoot iSCSI connection to your SAN
- Starwind with ISCSI SAN Software can do High Availability for you...
- Overview Video from the new vSphere Pro video training from Train Signal
- New upgrade webpage for ESXi 4 pushes us to the right direction?
- You know how to collect diag information when your ESXi does PSOD?
- Use PVSCSI or not for lower intensive workloads
- Hardening guides for vSphere 4
- NTLDR missing - silly but can happend
- How To Shrink VMware Virtual Disk Files and disable shrinking
- vSphere Quick Start guide bonus download..
- ESXi - the past, the present and the future
- Farm commander - management tool for VI and TS or Citrix Farms
- How to collect log information from vCenter Server 4
- How to know where is my VM if vCenter is down?
- New patches for ESX 4 and ESXi 4
- Use VMware Converter to import 3rd party VMs, for example Virtual Iron's VMs
- Windows XP installation as a VM - trouble to see the disk or not?
- Vmware HCL for ESXi 4
- Time keeping for Windows VM's best practices
- Virtu-Al releasing 3rd update of PowerPack
- Not even tried Appspeed and new version is already available!


















