侧边栏壁纸
博主头像
liveJQ博主等级

沒有乐趣,何来开始

  • 累计撰写 195 篇文章
  • 累计创建 70 个标签
  • 累计收到 7 条评论

安全修改 ESXi 管理 IP 的方法

liveJQ
2023-04-13 / 0 评论 / 0 点赞 / 1 阅读 / 814 字

方式一

通过进入 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

相关链接

  1. esxcli network Commands
0

评论区