VMWare: Enable Management network: Error – Setting ip/ipv6 configuration failed
Getting a rather cryptic ESXi error message when trying to set a new IPv4 IP:
Enable Management Network: Error
Setting ip/ipv6 configuration failed:
For example, when trying to set 10.3.0.12, this is what is seen:
It doesn't really, really say what the real reason behind the error is. Taking a dive into the network configuration of the ESXi host, reveals the reason why:
[root@mdsesxi-p04:~] esxcli network ip interface ipv4 get
Name IPv4 Address IPv4 Netmask IPv4 Broadcast Address Type Gateway DHCP DNS
—- ———— ————- ————– ———— ——– ——–
vmk0 10.3.0.11 255.255.255.0 10.3.0.255 STATIC 10.3.0.1 false
vmk1 10.3.0.12 255.255.255.0 10.3.0.255 STATIC 10.3.0.1 false
vmk2 10.0.0.11 255.255.255.0 10.0.0.255 STATIC 0.0.0.0 false
[root@mdsesxi-p04:~]
In the UI there's no indication that that IP 10.3.0.12 is already taken by a vmkernel interface vmk1. Instead, setting it to 10.3.0.13, which is free:
[root@mdsesxi-p04:~] esxcli network ip interface ipv4 get
Name IPv4 Address IPv4 Netmask IPv4 Broadcast Address Type Gateway DHCP DNS
—- ———— ————- ————– ———— ——– ——–
vmk0 10.3.0.13 255.255.255.0 10.3.0.255 STATIC 10.3.0.1 false
vmk1 10.3.0.12 255.255.255.0 10.3.0.255 STATIC 10.3.0.1 false
vmk2 10.0.0.11 255.255.255.0 10.0.0.255 STATIC 0.0.0.0 false
[root@mdsesxi-p04:~]
Works perfectly well! With the new IP, the host can now be added to vSphere Client / Server. (VCSA). Additional sample handy ESXi commands:
esxcli network nic list
esxcli network ip netstack list
esxcli network vswitch standard portgroup list
esxcli network nic list
esxcli network vswitch standard list
esxcli network ip dns search list
esxcli network ip interface ipv4 get
esxcli network vswitch standard portgroup list
esxcli network ip interface list
esxcli network ip interface ipv4 get
See the full command list here:
https://developer.vmware.com/docs/11743/esxi-7-0-esxcli-command-reference
HTH,