6.5

Table Of Contents
Prerequisites
n
Verify that you are familiar with iSCSI authentication. See “Enabling iSCSI Authentication,” on
page 94.
n
Verify that you are familiar with CHAP. See “Seing iSCSI CHAP,” on page 72.
n
Verify that you are familiar with iSCSI parameters. See “Listing and Seing iSCSI Parameters,” on
page 90.
Procedure
1 Determine the iSCSI adapter type and retrieve the iSCSI adapter ID.
esxcli <conn_options> iscsi adapter list
2 Congure the hardware initiator (HBA) by running esxcli iscsi networkportal ipconfig with one or
more of the following options.
Option Description
-A|--adapter=<str>
iSCSI adapter name (required)
-1|--dns1=<str>
iSCSI network portal primary DNS address
-2|--dns2=<str>
iSCSI network portal secondary DNS address
-g|--gateway=<str>
iSCSI network portal gateway address
-i|--ip=<str>
iSCSI network portal IP address (required)
-n|--nic=<str>
iSCSI network portal (vmknic)
-s|--subnet=<str>
iSCSI network portal subnet mask (required)
3 (Optional) Set the iSCSI name and alias.
esxcli <conn_options> iscsi adapter set --adapter <adapter_name> --name=<name>
esxcli <conn_options> iscsi adapter set --adapter <adapter_name> --alias=<alias>
4 Add a dynamic discovery address or a static discovery address.
n
With dynamic discovery, all storage targets associated with a host name or IP address are
discovered. You can run the following command.
esxcli <conn_options> iscsi adapter discovery sendtarget add --address=<ip/dns[:port]> --
adapter=<adapter_name>
n
With static discovery, you must specify the host name or IP address and the iSCSI name of the
storage target. You can run the following command.
esxcli <conn_options> iscsi adapter discovery statictarget add --address=<ip/dns[:port]>
--adapter=<adapter_name> --name=<target_name>
Chapter 5 Managing iSCSI Storage
VMware, Inc. 83