6.7

Table Of Contents
You configure vmk1 and vmk2 in separate subnets, 192.168.1.0 and 192.168.2.0. Your target portals are
also in separate subnets, 10.115.155.0 and 10.155.179.0.
You can add the static route for 10.115.155.0 from vmk1. Make sure that the gateway is reachable from
vmk1.
# esxcli network ip route ipv4 add -gateway 192.168.1.253 -network 10.115.155.0/24
You then add static route for 10.115.179.0 from vmk2. Make sure that the gateway is reachable from
vmk2.
# esxcli network ip route ipv4 add -gateway 192.168.2.253 -network 10.115.179.0/24
When connecting with Port 0 of Controller A, vmk1 is used.
When connecting with Port 0 of Controller B, vmk2 is used.
Example 3. Routing with a separate gateway per vmkernel port
Starting with vSphere 6.5, you can configure a separate gateway per VMkernel port. If you use DHCP to
obtain IP configuration for a VMkernel port, gateway information can also be obtained using DHCP.
To see gateway information per VMkernel port, use the following command:
# esxcli network ip interface ipv4 address list
Name IPv4 Address IPv4 Netmask IPv4 Broadcast Address Type Gateway DHCP DNS
---- -------------- ------------- -------------- ------------ -------------- --------
vmk0 10.115.155.122 255.255.252.0 10.115.155.255 DHCP 10.115.155.253 true
vmk1 10.115.179.209 255.255.252.0 10.115.179.255 DHCP 10.115.179.253 true
vmk2 10.115.179.146 255.255.252.0 10.115.179.255 DHCP 10.115.179.253 true
With separate gateways per VMkernel port, you use port binding to reach targets in different subnets.
Configure Port Binding for iSCSI or iSER
The port binding creates connections for the traffic between certain types of iSCSI and iSER adapters and
the physical network adapters.
The following types of adapters require the port binding:
n
Software iSCSI adapter
n
Dependent hardware iSCSI adapter
n
VMware iSCSI over RDMA (iSER) adapter
The following tasks discuss the network configuration with a vSphere Standard switch.
You can also use the VMware vSphere
®
Distributed Switch™ and VMware NSX
®
Virtual Switch™ in the
port biding configuration. For information about NSX virtual switches, see the VMware NSX
documentation.
Note iSER does not support NIC teaming. When configuring port binding for iSER, use only one RDMA
adapter per vSwitch.
vSphere Storage
VMware, Inc. 92