ContentsPrint

Changing the IP address and default gateway of the host

About this task

When you change the default gateway and IP address from the vSphere, the change might be unsuccessful.

You cannot remotely change the IP address of the Appliance Virtualization Platform host to a different network. You can change the IP address remotely only within the same network.

To change the Appliance Virtualization Platform host to a different network, perform Step 2 or Step 3.

Before you begin

Connect the computer to the services port.

Procedure

  1. Using an SSH client, log in to the Appliance Virtualization Platform host.
  2. Connect the Solution Deployment Manager client to services port on the Appliance Virtualization Platform host, and do the following:
    1. To change the IP address, at the command prompt of the host, type the following:
      esxcli network ip interface ipv4 set -i vmk0 -I <old IP address of the host> -N <new IP address of the host> -t static

      For example:

      esxcli network ip interface ipv4 set -i vmk0 -I 135.27.162.121 -N 255.255.25 5.0 -t static
    2. To change the default gateway, type esxcfg-route <new gateway IP address>.

      For example:

      esxcfg-route 135.27.162.1
  3. Enable SSH on the Appliance Virtualization Platform host and run the ./serverInitialNetworkConfig command.

    For more information, see Configuring servers preinstalled with Appliance Virtualization Platform.