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)
How to change IP adress of ESX Server console
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”

How to change ESX server Ip adress on the console

How to change ESX server Ip adress on the console

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)

How to change IP adress on the ESX Server console

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.

Change DNS and Routing ESX Server through VI GUI
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.

Change ESX server DNS and Routing through VI client GUI
05.) To change the default gateway, click the Routing tab and enter the appropriate values.

Change ESX server DNS and Routing through VI client GUI

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

Change ESX server DNS and Routing through VI client GUI

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

Change ESX server DNS and Routing through VI client GUI

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.

Get some Top Free Whitepapers which you can download for free:

Top 5 VM performance problemsTop 5 VM Performance Problems.

In the Whitepaper you’ll first read the explanations where are the usual location of performance issues, and see that the resolution is not always evident in Virtual Infrastructure in general.

There are some caveats to know to find the problem first and then resolve.

Download for Free

 

Continuing to reap the rewards of virtualization - Free e-Book to DownloadContinuing to Reap the Rewards of Virtualization -

Balance and Efficiency. This illustrated e-book tells you more about interesting scenarios for sizing servers. With a clear examples. Also by using the monitoring solution bundled with Veeam One can show you exactly what’s going on in a real time or in what-if scenario.

If your RAM utilization is 4%, you have plenty of room to grow, but if you have no intention of growing that is a lot of expensive RAM going to waste. Bear in mind that more is not always better and the optimal strategy is to instead right-size your virtual environment. Download for Free

 

Analytics Required to Successfully Manage Performance and Capacity in Cloud Environments Analytics Required to Successful Manage Performance and Capacity in Cloud Environments- Managing Virtual Infrastructure instead of just physical servers one by one is challenging. One must make some decisions on where to best place the workloads or how much physical server and storage capacity to provision for new VMs…

What’s the best sizing for new VMs so they’re not oversubscribed with memory, disk or CPU…? Identify the “sleeping VMs” which do nothing, orphaned VMDKs, Snapshots, logfiles…

Download for Free.

You can find more Free Whitepapers to download on my Free Resources page.

Enjoy… -:)
.

Vladan SEGET

Vladan is an Independent consultant, vExpert, VCP and owner of this website. This website ESX Virtualization started as a bookmarking site, but very fast found itself many readers and supporters. Feel free to network via Twitter @vladan

Website - Twitter - Facebook - More Posts

5 Comments

  1. Carlos René dos Santos Bascuñán

    Work sweet!! Thanks for your tip!

  2. Carlos

    This is what I call 1-2-3 instructions. Works perfectly!!! Thanks

  3. satish

    hi , it is very useful information, thanks for writng this content…..

  4. Ionut

    Thank you for the tutorial. I changed the Service consoles and in the end crashed..

  5. Reni David

    Many thanks. It was really nice and very usefull one.