6.5.1

Table Of Contents
For example, the VMkernel adapters vmk0 and vmk1 can be configured on a host.
n
vmk0 is used for management traffic on the 10.162.10.0/24 subnet, with default gateway 10.162.10.1
n
vmk1 is used for vMotion traffic on the 172.16.1.0/24 subnet
If you set 172.16.1.1 as the default gateway for vmk1, vMotion uses vmk1 as its egress interface with the
gateway 172.16.1.1. The 172.16.1.1 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.
Configure the VMkernel Adapter Gateway by Using
ESXCLI
You can override the default gateway of a VMkernel adapter to provide a different gateway for services
such as vMotion, Fault Tolerance logging, and vSAN.
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.
View TCP/IP Stack Configuration on a Host
You can view the DNS and routing configuration of a TCP/IP stack on a host. You can also view the IPv4
and IPv6 routing tables, the congestion control algorithm, and the maximum number of allowed
connections.
Procedure
1 In the vSphere Web Client, navigate to the host.
2 On the Configure tab, expand Networking and select TCP/IP configuration.
3 Select a stack from the TCP/IP Stacks table.
If no custom TCP/IP stacks are configured on the host, you view the default, vMotion, and
Provisioning TCP/IP stacks on the host.
vSphere Networking
VMware, Inc. 70