6.7

Table Of Contents
Paths Description
Path 1 vmk1 and Port0 of Controller A
Path 2 vmk1 and Port0 of Controlled B
Path 3 vmk2 and Port1 of Controller A
Path 4 vmk2 and Port2 of Controller B
Routing with Software iSCSI
You can use the esxcli command to add static routes for your iSCSI traffic. After you configure static
routes, initiator and target ports in different subnets can communicate with each other.
Example 1. Using static routes with port binding
In this example, you keep all bound vmkernel ports in one subnet (N1) and configure all target portals in
another subnet (N2). You can then add a static route for the target subnet (N2).
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
vSphere Storage
VMware, Inc. 91