6.5

Table Of Contents
Procedure
1 Enable authentication.
esxcli <conn_options> iscsi adapter auth chap set --direction=uni --chap_username=<name> --
chap_password=<pw> --level=[prohibited, discouraged, preferred, required] --secret=<string>
--adapter=<adapter_name>
The specied chap_username and secret must be supported on the storage side.
2 List possible VMkernel NICs to bind.
esxcli <conn_options> iscsi logicalnetworkportal list
3 Enable mutual authentication.
esxcli <conn_options> iscsi adapter auth chap set --direction=mutual --
mchap_username=<m_name> --mchap_password=<m_pwd> --level=[prohibited, required] --
secret=<string> --adapter=<adapter_name>
The specied mchap_username and secret must be supported on the storage side.
4 After setup is complete, perform rediscovery and rescan all storage devices.
The following example performs the rediscovery and rescan operations.
esxcli <conn_options> iscsi adapter discovery rediscover
esxcli <conn_options> storage core adapter rescan --adapter=vmhba36
Enable iSCSI Authentication with vicfg-iscsi
You can use the vicfg-iscsi -A -c options to enable iSCSI authentication. Mutual authentication is
supported for software iSCSI and dependent hardware iSCSI, but not for independent hardware iSCSI.
For information on iSCSI CHAP, see “Seing iSCSI CHAP,” on page 72.
Prerequisites
n
Verify that CHAP authentication is already set up when you start seing up mutual CHAP.
n
Verify that CHAP and mutual CHAP use dierent user names and passwords. The second user name
and password are supported for mutual authentication on the storage side.
n
Verify that CHAP and mutual CHAP use compatible CHAP levels.
Procedure
1 Enable authentication on the ESXi host.
vicfg-iscsi <conn_options> -A -c <level> -m <auth_method> -u <auth_u_name> -w <chap_password>
[-i <stor_ip_addr|stor_hostname> [:<portnum>] [-n <iscsi_name]] <adapter_name>
The specied user name and password must be supported on the storage side.
2 Enable mutual authentication on the ESXi host.
vicfg-iscsi <conn_options> -A -c <level> -m <auth_method> -b -u <ma_username>
-w <ma_password> [-i <stor_ip_addr|stor_hostname> [:<portnum>]
[-n <iscsi_name]] <adapter_name>
3 After setup is complete, perform rediscovery and rescan all storage devices.
vSphere Command-Line Interface Concepts and Examples
96 VMware, Inc.