ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How to change IP address of your ESX Server

By Vladan SEGET | Last Updated: March 28, 2015

Shares

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.

Shares
5/5 - (1 vote)

| Filed Under: Server Virtualization Tagged With: Change IP adress ESX, Console ESX IP Change Adress, ESX change IP adress, vswif, vswif0

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Carlos René dos Santos Bascuñán says

    June 4, 2010 at 12:42 am

    Work sweet!! Thanks for your tip!

  2. Carlos says

    July 21, 2010 at 7:35 pm

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

  3. satish says

    September 4, 2010 at 4:07 pm

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

  4. Ionut says

    September 5, 2010 at 7:51 am

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

  5. Reni David says

    October 12, 2010 at 7:32 pm

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

  6. nehad says

    October 6, 2015 at 3:45 pm

    hi … ich hab ein frage für ihnen.
    ich hab esxi version 4.. habe ich schon installiert mit static ip address gegeben,, wie kan ich die static ip löchen und nur bei dhcp automatic ip address nehmenvon mein router ..
    vielen dank

  7. Jeevan Bisht says

    December 7, 2015 at 9:27 am

    Perfect explaination….Thnaks!!

    Most of the websites make confusion……

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware
  • XCP-NG FREE Hypervisor and XO Lite to deploy XOA

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in