VMware Cloud Community
hihiy
Contributor
Contributor
Jump to solution

How can I change DHCP to static IP for my ESX Server?

dear all:

because of my mistake, I configured ESX Server to DHCP.

So, how can I change DHCP setting to Static IP for my ESX Server?

Thanks a lot.

hihiy

0 Kudos
1 Solution

Accepted Solutions
Rajeev_S
Expert
Expert
Jump to solution

Hi,

You can assign static IP using the below command

esxcfg-vswif -i

Restart the network service

#service network restart

Try this command to list the IPconfig

#esxcfg-vswif -l

Hope this helps!!

View solution in original post

0 Kudos
4 Replies
Rajeev_S
Expert
Expert
Jump to solution

Hi,

You can assign static IP using the below command

esxcfg-vswif -i

Restart the network service

#service network restart

Try this command to list the IPconfig

#esxcfg-vswif -l

Hope this helps!!

0 Kudos
hihiy
Contributor
Contributor
Jump to solution

that's great. thank you very much

0 Kudos
Rajeev_S
Expert
Expert
Jump to solution

provide points if you find helpful !! Smiley Wink

0 Kudos
hillda01
Enthusiast
Enthusiast
Jump to solution

I think you should also be able to set the address to static via the VI Client.

0 Kudos