0%

远程修改-ESXI-8.0-管理ip地址

远程修改 ESXI 8.0 管理ip地址

场景:

适用于不方便在设备边操作而又需要修改管理地址的场景。

适用于不方便外接显示器的场景。

注意:

生产环境一定确定好网络配置信息否则可能会因为网络配置不正确导致无法正常访问。

步骤:

1.开启SSH远程访问

启用安全 Shell(也就是 EXSi 可以被 SSH 访问的功能)

img

2.

  • 使用 SecureCRT SSH2 连接 ESXi 主机,现在使用 dcui 并没有任何反应,在 Session 标签栏右键点击 Disconnect
  • 这里我测试用 Finalshell 也是完全没问题的
The time and date of this login have been sent to the system logs.

WARNING:
All commands run on the ESXi shell are logged and may be included in
support bundles. Do not provide passwords directly on the command line.
Most tools can prompt for secrets or accept them from standard input.

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:~]
[root@localhost:~] dcui

3.连接到SSH

  • 如果是使用 Finalshell 则可省略此步骤
  • Session 标签栏右键点击 Session Option 修改 Terminal 类型为 Xterm 后重新 SSH2 连接

img

4.使用 dcui 工具

  • 再次使用 dcui 工具,这时已经可以进入 EXSi 的系统管理界面。

img

5.登录到控制中心

  • 点击 F2 进行 Customize System 输入用户名、密码进入

img

6.修改管理IP地址

  • 选择 Configure Management Network

img

7.选择 IPv4 Configuration

img

8.配置静态IP地址,然后点击回车

img

9.点击 Esc 选择 Yes 应用配置并且重启管理网络

img

10.此时已近可以用修改后的IP地址登录管理ESXi主机

img