VMware Cloud Community
rajOnVMware
Contributor
Contributor
Jump to solution

Not able to change IP address of ESX server

Hi

I Installed ESX3.5 on IBM x3250 Machine. At the time of installation I gave following details

IP 164.99.90.235

NetMask 255.255.254.0

GW : 164.99.91.254

Now My machine location is sifted to some other network:

Now I want to change IP as

IP 164.99.87.31

NetMask 255.255.254.0

GW : 164.99.87.254

I ran this coomand from console :

esxcfg-vswif -a vswif0 -p Service\ Console -i 164.99.87.31 -n 255.255.254.0 -b 164.99.87.254

but it say

"error trying to perform operation vswif with that name already exists"

I tried more command available from google search but it didn't help me.

Please help me

Thanks

RAJ

Reply
0 Kudos
1 Solution

Accepted Solutions
Yattong
Expert
Expert
Jump to solution

Hey,

esxcfg-vswif -i ipaddress -n netmask -b broadcast address vswif0

has always worked for me.

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

~y

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points ~y

View solution in original post

Reply
0 Kudos
4 Replies
Dave_Mishchenko
Immortal
Immortal
Jump to solution

Your discussion has been moved to the VI: ESX 3.5 forum.

Dave Mishchenko

VMware Communities User Moderator

Reply
0 Kudos
Yattong
Expert
Expert
Jump to solution

Hey,

esxcfg-vswif -i ipaddress -n netmask -b broadcast address vswif0

has always worked for me.

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

~y

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points ~y
Reply
0 Kudos
rajOnVMware
Contributor
Contributor
Jump to solution

Hi

ur solution worked n I m able to change IP address and Netmask. But default gatway is not changed. Actually this my scenireo is following:

At time of ESX installation network was :

IP 164.99.90.235

netmask 255.255.254.0

Def_Gtway 164.99.91.254

And I m able to launch VMclient from my desktop which has IP 164.99.134.119(Different Netwrk)

Now I moved my ESX to this network and chnaged IP and DNS and GW by command given by U only.

IP 164.99.86.210

netmask 255.255.254.0

Def_Gtway 164.99.87.254

But now,I m not able to launch VMclient from my desktop which has IP 164.99.134.119(Different Netwrk) even not pining to ESX.After debugging i found that default gw is not hanged.

And 1 more interesting is that if change GATWAY = 164.99.45.254 in /et c/syscnfg/network then it reflect properly in route -n.

but if changing GATWAY = 164.99.87.254(which i wants) it is not reflecting in route -n.

I tried everything, tried esxcfg-route 164.99.87.254 but it says :

Error: Cannot set gateway or routes until kernel TCP stack has at least 1 IP address

i reboot after changing /et c/syscnfg/network file.

and it also ping 164.99.87.254 if i will type ping 164.99.87.254 -b

and one more thing I have 3 guest OS with IP 164.99.86.211/212/213

with static gw 164.99.87.254 and they all are works fine.I am able to ping to all guest OS from my destop.but thing is that I m not able to launch the VMInfrastructure client.

Please helps Me

Please help me How can i change the Dgateway:

Reply
0 Kudos
VENKAT20
Contributor
Contributor
Jump to solution

U can sue the site for the IP-Address Details Knowing very fast i was used the site IP-Details for the Ip-Details

Reply
0 Kudos