Get My Podcast On iTunes!
Badges

vexpert_logo_100x57

gestaltitbadge

follow-me-twitter

Subscribe to me on FriendFeed

Comments / DISQUS
Feedjit.com

Use the VI Client to change DNS, gateway, and hostname

if you just need to change an ESX server’s DNS servers, default gateway, or hostname you can use the VI client to make the changes. This might be a rare scenario, but it happens every once in a while.


These instructions were copied from VMware KB article 4309499. Click on the screen shot image to the right for a larger version.

ESX DNS and Routing screenshotFrom the Virtual Infrastructure Client

  1. Highlight the ESX Server host and click on the Configuration tab
  2. Click on DNS and Routing
  3. Click on Properties…
  4. To change the hostname, domain, and DNS servers, click on the DNS Configuration tab and enter the appropriate values
  5. To change the default gateway, click on the Routing tab and enter the appropriate values

Note: Hostname and domain changes through the Virtual Infrastructure Client do not take place until the ESX host is rebooted.If you also need to change the ESX ip address (for the Service Console) you will need to use the esxcfg-vswif console command. Assuming you already changed the DNS and Routing configuration with the VI Client as described above, before you reboot the host access the ESX console and enter the following:

[root@server root]# esxcfg-vswif -i a.b.c.d -n w.x.y.z vswif0

The above command assumes that vswif0 is your service console, a.b.c.d is your new ip address, and w.x.y.z is your new subnet mask.

Finally, reboot the ESX host.

The linked KB article also contains the additional commands and instructions for modifying all these settings from the ESX console.

Related Posts

Leave a Reply

blog comments powered by Disqus
Support VM /ETC
Support VMETC.com

Support VMETC.com

Free Business and Tech Magazines and eBooks
@rbrambley tweets
VMTN Roundtable Podcasts
Subscribe



Add to Google Reader or Homepage
Subscribe in NewsGator Online
Add to netvibes
Add to Plusmo