方式一
通过进入 ESXi 后台管理的方式修改。可以现场接显示器,或者通过 SSH 连接并用以下方法进入后台:
VMware offers supported, powerful system administration tools. Please
see www.vmware.com/go/sysadmintools for details.
The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
[root@localhost:~] TERM=xterm
[root@localhost:~] dcui
方式二
直接通过 SSH 命令修改
[root@localhost:~] esxcli network ip interface ipv4 get
Name IPv4 Address IPv4 Netmask IPv4 Broadcast Address Type DHCP DNS
---- ------------ ------------- -------------- ------------ --------
vmk0 10.5.10.30 255.255.255.0 10.5.10.255 STATIC false
通过上面的命令获取到管理 IP 的网络接口名称后
esxcli network ip interface ipv4 set -i <interface_name> -I <new_ip_address> -N <subnet_mask> -g <new_gateway_ip_address> -t static
例如
esxcli network ip interface ipv4 set -i vmk0 -I 10.5.10.40 -N 255.255.255.0 -g 10.5.10.254 -t static


评论区