Changing the management IP of a VMware ESXi 6.7 host

Problem:

How do I manually change the management IP of a VMware ESXi 6.7 host?

Solution:

Open an SSH session to the existing management IP of the host and run the below (change 10.95.0.42 to your new IP):

esxcli network ip interface ipv4 set -i vmk0 -I 10.95.0.42 -N 255.255.255.0 -t static

 

You can set the default gateway of a VMKernel by running:

esxcfg-route 10.95.0.1

 

Try to then ping Google’s DNS servers using:

vmkping -I vmk0 8.8.8.8

Leave a Reply

Your email address will not be published. Required fields are marked *