Solved

vmware esx 3.5 Need to change host ip from 192.168.0.90 to 192.168.1.90

Posted on 2008-10-30
4
2,076 Views
Last Modified: 2012-05-05
I am moving a test vmware esx server from one subnet to another.  The host as one NIC with an IP address of 192.168.0.190.  I am moving the host to a differetn network and the new ip address for the host esx server will become 192.168.1.190.  There are 6 VMs on the machine and they have been reset to DHCP unitl the host gets onto the new subnet.

I am hoping for  away to change this through the VI client.

Thanks.
0
Comment
Question by:martinmcginley
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:davebartlett123
ID: 22842573
Hi there

Point Infrastructure Client to 192.168.0.190 and select the host with IP 192.168.0.190. Click on configuration.  Under Hardware, click Networking and select Properties on the right. Select Management Network and click edit. Under the general tab, you can change your address to 192.168.1.190.

Don't forget to update your default gateway.  Also DNS plays a major role in VMotion etc so ensure that is up to date with new A record info.

If you need console commands to achieve this, let me know and I'll paste them into this thread.
0
 

Author Comment

by:martinmcginley
ID: 22843184
when i click on Network and select properties I dont get "Management Network" - I Have 2 tabs: port and network adapters:  Under ports is vswitch - vmnetwork-service console.  am i in the right place ?
0
 

Author Comment

by:martinmcginley
ID: 22844930
can you give me the console command please
0
 
LVL 1

Accepted Solution

by:
davebartlett123 earned 500 total points
ID: 22848566
Service-console is correct in VI client.  You can set the IP address through here.  If required, use the following console commands:

esxcfg-vswif -d vswif0
(deletes existing virtual switch - ignore nothing to flush statement)

esxcfg-vswif -a vswif0 -p Service\ Console -i 192.168.1.190 -n 255.255.255.0 -b 192.168.1.255
(recreates vswitch0 , assigns the service console, gives it the IP address, netmask and broadcast)

You now need to change your default gateway, you can do this by editing the network file located at /etc/sysconfig/network. To do this at the console prompt, follow the steps below.

cd /etc/sysconfig
vi network
Then while in vi, go to the location of the default gateway using the arrow keys.
Hit "i" which will perform an insert and change the default gateway to your liking.
Hit the escape key twice to exit insert mode.
type ":wq!" to write (i.e save) and quit.

Restart the ESX host and point VI Client to new 192.168.190 address.

Hope this helps.

Dave

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question