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

If you found this website useful and want to comeback for more, consider subscribing for FREE via RSS. If you don’t know what is RSS, don’t worry, I wrote a little guide what is RSS and how it saves your daily time.
2 Comments
Leave a Reply
Other posts from Server Virtualization
- Create your own Provider Virtual Data Center
- Measure some perf benchs with VMark
- VMware partners with Symantec on ApplicationHA
- Andre Leibovici's Linked cloning storage calculator
- SIOC yes, but not in the SMB kit...
- Best practices KB on how-to install ESX 4.1 and vCenter
- Hyper-V and new linux integration tools
- How to Fix “Transaction log for database ‘VIM_VCDB’ is full” errors
- How to change from ACPI Multiprocessor HAL back to ACPI Uniprocessor HAL in Windows 2003
- AD Integration for ESXi 4.1
- vCenter converter with Hyper-V import
- Serial Port handling in ESXi 4.1
- Four memory optimization techniques available in vSphere 4.1
- Activating remote access via SSH in ESXi4.1
- vSphere Compatibility Matrixes
- 150 new features or enhancements in vSphere 4.1
- Personalized install of VMware tools
- VMware tools download from VMware Website
- How to change virtual SCSI controler
- Microsoft's patch for .NET breaks VI client connection






















Work sweet!! Thanks for your tip!
This is what I call 1-2-3 instructions. Works perfectly!!! Thanks