Configuring iSCSI port binding with multiple NICs in one vSwitch for VMware ESXi
search cancel

Configuring iSCSI port binding with multiple NICs in one vSwitch for VMware ESXi

book

Article ID: 323116

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides information on setting up the correct NIC teaming policies to allow iSCSI port binding.

Port binding is required for iSCSI vmkernels when they are in the same subnet. For example, you might assign an IP address of 10.16.156.66 to the VMkernel adapter you want to use for iSCSI. The routing table then contains an entry for the 10.16.156.x network for this adapter. If you then set up a second adapter for iSCSI and assign it an IP address of 10.16.156.25, the routing table contains a new entry for the 10.16.156.x network for the second adapter. However, when the TCP/IP stack reads the routing table, it never reaches the second entry, because the first entry satisfies all routes to both adapters. Therefore, no traffic ever goes out on the second iSCSI vmkernel adapter, and all IP storage traffic goes out on the first iSCSI vmkernel adapter.

Note: Since the ESXi host receives a routing table entry automatically for each vmkernel on the host, it is not recommended to override the default gateway on the vmkernel unless layer 3 connectivity is required. 

Symptoms:
Multiple NICs within the same vSwitch disallow port binding due to the default NIC teaming policies.

Environment

VMware vSphere ESXi 6.0
VMware vSphere ESXi 5.0
VMware vSphere ESXi 5.5
VMware vSphere ESXi 6.5
VMware vSphere ESXi 5.1
VMware vSphere ESXi 6.7

Resolution

To set up a teaming policy that is compatible with iSCSI port binding you need 2 or more vmkernel ports in the vSwitch and an equivalent amount of physical adapters to bind them to. Each vmkernel port is bound to a physical adapter and then attached to the software iSCSI adapter.
 
To set up the correct teaming policy to allow iSCSI port binding using the vSphere Web Client:
  1. Under vCenter Home, click Hosts and Clusters.
  2. Click on the host.
  3. Click Manage > Networking > Virtual Switches.
  4. Click the vSwitch that has your iSCSI vmkernel port group.
  5. In the lower pane with the vSwitch diagram, click the portgroup.
  6. Click the pencil icon to open the Edit Settings menu and modify the vmkernel portgroup properties.
  7. Open the Teaming and Failover section.
  8. Under Failover order check the Override check box.
  9. Select all VMnic adapters except the one you want to bind and click the Move Down arrow to move all other NIC adapters to the Unused Adapters list.
     
  10. Repeat steps 5-9 for each iSCSI vmkernel port to ensure each vmkernel port has a unique active adapter.

    For example:
    • 2 vmkernel portgroups: Storage 1 and Storage 2
    • 2 physical adapters: vmnic0 and vmnic1
    • In portgroup Storage 1, vmnic0 is active and vmnic1 is unused
    • In portgroup Storage 2, vmnic1 is active and vmnic0 is unused
       
  11. In the host Manage tab, click Storage
  12. Select your iSCSI Software Adapter vmhba.
  13. In the adapter details pane click the Network Port Binding tab.
  14. Click the + symbol to bring up a list of eligible adapters.
    Note: There should be no adapters in the list at this point.
     
  15. Check the box beside your 2 storage vmkernel ports and click OK.
  16. Click the Rescan Adapter icon to rescan the iSCSI Software Adapter.


Additional Information

To be alerted when this document is updated, click the Subscribe to Article link in the Actions box
 
For more information about NIC teaming, see the Teaming and Failover Policy section in the vSphere Networking guide.
VMware ESXi 5.x および 6.0.x で 1 つの vSwitch の複数の NIC にバインドする iSCSI ポートのバインド構成
Configurando a associação de portas iSCSI com várias NICs em um vSwitch para VMware ESXi 5.x e 6.0.x
Configurar enlace de puertos iSCSI con varias NIC en un vSwitch para VMware ESXi 5.x y 6.0.x
在 VMware ESXi 5.x 和 ESXi 6.0.x 的 vSwitch 中存在多个网卡时配置 iSCSI 端口绑定