Posted On January 19, 2021

How To Change VMWare ESXi Hypervisor’s IP Address and Host Name

kimconnect 0 comments
blog.KimConnect.com >> Linux , Virtualization >> How To Change VMWare ESXi Hypervisor’s IP Address and Host Name
# List hypervisor's network interfaces
esxcli network ip interface ipv4 get

# Sample output
[root@esx76:~] esxcli network ip interface ipv4 get
Name  IPv4 Address     IPv4 Netmask   IPv4 Broadcast   Address Type  Gateway        DHCP DNS
----  ---------------  -------------  ---------------  ------------  -------------  --------
vmk0  10.10.46.101      255.255.255.0  10.10.46.255     STATIC        10.10.46.1     false

# set new ip
interface=vmk0
ipaddress=10.10.100.11
netmask=255.255.255.0
esxcli network ip interface ipv4 set -i $interface -I $ipaddress -N $netmask -t static

# Error when a non-existence interface were specified
# Error changing IPv4 configuration for the interface vmk1. Error was : Unable to complete Sysinfo operation.  Please see the VMkernel log file for more details.: Sysinfo error: Not foundSee VMkernel log for details.
# Set ESXi host name via CLI
hostname=ESX1
domain=kimconnect.com
fqdn=$hostname.$domain
esxcli system hostname set --host=$hostname
esxcli system hostname set --fqdn=$fqdn

Leave a Reply

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

Related Post

How To Install Remote Desktop on Ubuntu or Centos 7

Ubuntu:sudo apt-get updatesudo apt-get install xrdp xfce4echo xfce4-session >~/.xsessionsudo service xrdp restartCentOS 7:su -vim /etc/yum.repos.d/xrdp.repo-----…

Apache HTTPd

# Install Apacheyum install httpd# Configure Apachevim /etc/httpd/conf/httpd.conf##### Change portNameVirtualHost 127.0.0.1:8080Listen 127.0.0.1:8080######### Set DocumentRootDocumentRoot "/var/www/kimconnect"######…

WordPress Multi-site with Single Sign On (SSO)

Step 1: Login Access the correct environment using wp_admin login with the DevOps standard password:…