VMWare - Change IP address of network adapter

I just changed the host address (and gateway) of my esx server from 192.168.0.190 to 192.168.1.190.  I can access my esx server with the new subnet, and I can also access my VI client too.  However I now see that the network adapter is still showing the old subnet.

How do I change that so it shows the right subnet (192.168.1.nnn--  and range it currently shows:  
vmnic0  100ful negotiable vSwitch0 192.168.0.64-192.168.0.127

thanks
martinmcginleyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

65tdRetiredCommented:
0
martinmcginleyAuthor Commented:
Thanks.  I have already changed the host IP.  I dont see anythig in the post that specificlly addresses the question I asked which is to change the Network adapter.
0
65tdRetiredCommented:
Is the nic used for both service console and VM network or two nics?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

martinmcginleyAuthor Commented:
yes it is.
0
65tdRetiredCommented:
It is recommended that the service console have it's own nic and vsw and VM network another as well one available as a vmotion network (vmkernal).
Once the switch port is updated the address range should update as well.
0
martinmcginleyAuthor Commented:
how do I change it? My original Q was:
How do I change the  (192.168.1.nnn--  and range it currently shows:  
vmnic0  100ful negotiable vSwitch0 192.168.0.64-192.168.0.127
0
Antonio VargasMicrosoft Senior Cloud ConsultantCommented:
Have you also changed the default gateway in the /etc/sysconfig/network ???
how did you changed the ip address?
try the esxcfg-nics -l in the esx box and see whats the output..
0
martinmcginleyAuthor Commented:
I used the following to change the gateway:
.....
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.

When I type out the esxcfg-nics I get output for vmnic1 and vmnic2 but there is no IP info in the output, just speed
0
Antonio VargasMicrosoft Senior Cloud ConsultantCommented:
do a esxcfg-route -l to see the vmkernel routes. see in what subnet they are. do you have VM's on that box? in what subnet?
0
martinmcginleyAuthor Commented:
esxcfg-route -l produces
network=default, mask=0.0.0.0 gway=LocalSubnet

I do have VMs on the box in the 192.168.1.nnn
0
Antonio VargasMicrosoft Senior Cloud ConsultantCommented:
and those VM's can ping external physicall boxes? besides the esx boxes...
0
martinmcginleyAuthor Commented:
yes.  I am in a 192.168.0.nnn LAN.  I have added a second ip to my workstation so it is in both ethe 192.168.0 and 192.168.1 network.  From my worksation i can ping the esx server 192.168.1.190 and from the esx server I can ping the workstation.
0
Antonio VargasMicrosoft Senior Cloud ConsultantCommented:
The network adapter shows the networks that he can see trought the phisycall switch. Basiclly what i'm trying to understand is not related with your workstation (i presume that is phisic), is related to the virtual machines that you have on that esx. What is the subnet of the machines? and can they ping one pshical machine (esx boxes for this does not count).
0
martinmcginleyAuthor Commented:
a vm on the esx server can ping a physical machine not on the esx server.  the vm has the following ip info:  192.168.1.191, 255.255.255.0, 192.168.1.1
0
Antonio VargasMicrosoft Senior Cloud ConsultantCommented:
if you have machines on the 192.168.1.x subnet it should update the info and show that subnet. if you still have also machines on the 192.168.0.x subnet it will also show that one. it can show several subnets. was the info updated already?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
martinmcginleyAuthor Commented:
I found it simpler to reinstall the vmserver.  I am not sure what happened with the host's ip address.  The solution seemed simple enough i just got strange results when I did them.  Thanks for all your help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.