You can override the default gateway of a VMkernel adapter to provide a different gateway for services such as vMotion, Fault Tolerance logging, and Virtual SAN.

Procedure

  1. Open an SSH connection to the host.
  2. Log in as the root user.
  3. Run the ESXCLI command.
    esxcli network ip interface ipv4 set –i vmknic -t static –g gateway -I IP address -N mask

    Where vmknic is the name of the VMkernel adapter, gateway is the IP address of the gateway, IP address is the address of the VMkernel adapter, and mask is the network mask.