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.
- Open an SSH connection to the host.
- Log in as the root user.
- 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.