6.5.1

Table Of Contents
192.168.1.1/24
vmk1
SP/Controller B
Port 0
10.115.179.2/24
SP/Controller A
Port 0
10.115.179.1/24
vmnic1
vmnic2
192.168.1.2/24
vmk2
IP
Network
N1 N2
Use the following command:
# esxcli network ip route ipv4 add -gateway 192.168.1.253 -network 10.115.179.0/24
Example 2. Using static routes to create multiple paths
In this configuration, you use static routing when using different subnets. You cannot use the port binding
with this configuration.
vmnic1
vmnic2
192.168.1.1/24
vmk1
SP/Controller A
Port 0
0.115.179.1/24
SP/Controller A
Port 0
0.115.155.1/24
192.168.2.1/24
vmk2
IP
Network
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.
vSphere Storage
VMware, Inc. 92