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

Fixing an Issue On Windows Server 2019 Hyper-V with Uneven Distribution of Available CPU Cores

Issue: When guest-VMs are being migrated between Hyper-V Hosts within a cluster, CPU core scheduling…

Network Zones

Corporate Head-Quarter:DMZ: Extranet: VendorsWeb: Front-end Sites (a) Web (b) Application (c) DataPublic: Public, satellite VPN…

ESX & Enterasys LAG Configurations

Requirements for ESX and LACP compatibility of Enterasys core switches:1. static LAG2. vlan egress port…