You might need to override the default gateway for a VMkernel adapter to provide a different gateway for vSphere vMotion.

Each TCP/IP stack on a host can have only one default gateway. This default gateway is part of the routing table and all services that operate on the TCP/IP stack use it.

For example, the VMkernel adapters vmk0 and vmk1 can be configured on a host.
  • vmk0 is used for management traffic on the subnet, with default gateway
  • vmk1 is used for vMotion traffic on the subnet

If you set as the default gateway for vmk1, vMotion uses vmk1 as its egress interface with the gateway The gateway is a part of the vmk1 configuration and is not in the routing table. Only the services that specify vmk1 as an egress interface use this gateway. This provides additional Layer 3 connectivity options for services that need multiple gateways.

You can use the vSphere Web Client or an ESXCLI command to configure the default gateway of a VMkernel adapter.

See Create a VMkernel Adapter on a vSphere Standard Switch, Create a VMkernel Adapter on a Host Associated with a vSphere Distributed Switch, and Configure the VMkernel Adapter Gateway by Using esxcli Commands.