iSCSI port binding in ESX/ESXi 4.x and ESXi 5.x does not support routing.
To resolve this issue and still use iSCSI port binding, you must place the iSCSI initiator and the iSCSI target on the same subnet.
Alternatively, this can be resolved by disabling iSCSI port binding.
Disabling iSCSI port binding in ESX/ESXi 4.x
To disable iSCSI port binding in ESX/ESXi 4.x, run this command:
esxcli swiscsi nic remove -n vmk_interface -d vmhbaX
Where X is the vmhba device number.
For example:
esxcli swiscsi nic remove -n vmk2 -d vmhba33
Disabling iSCSI port binding in ESXi 5.x
To disable iSCSI port binding in ESXi 5.x, you can either use the vSphere Client or the ESXi shell.
To disable iSCSI port binding using vSphere Client:
- Click Configuration > Storage Adapters > iSCSI Software Initiator > Properties.
- Select the Network Configuration tab.
- Select the vmk that is iSCSI compliant and then click Remove.
- Click Close.
To disable iSCSI port binding using the vSphere Web Client 5.1 or 5.5
- Log in to vSphere Web Client.
- Click to select the host from the Hosts and Clusters inventory.
- Click the Manage tab, then click Storage.
- Click Storage Adapters and click the software iSCSI adapter in the list
- Under Adapter Details, click the Network Port Binding tab.
- Click a VMkernel adapter to remove with the iSCSI adapter and click OK.
To disable iSCSI port binding using the using the ESXi Shell, run this command:
esxcli iscsi networkportal remove -n vmk_interface -A vmhba_device
Where:
vmk_interface is the vmk interface to be removed.
vmhba_device is the VMHBA device name.
For example:
esxcli iscsi networkportal remove -n vmk2 -A vmhba33