The esxcli iscsi adapter auth commands enable iSCSI authentication. Mutual authentication is supported for software iSCSI and dependent hardware iSCSI, but not for independent hardware iSCSI (see Setting iSCSI CHAP).
■ per-adapter CHAP: esxcli iscsi adapter auth chap set
■ per-discovery CHAP: esxcli iscsi adapter discovery sendtarget auth chap set
■ per-target CHAP: esxcli iscsi adapter target portal auth chap set
2 (Optional) Set the authentication information for mutual CHAP by running esxcli iscsi adapter auth chap set again with the -d option set to mutual option and a different authentication user name and secret.
■ prohibited – The host does not use CHAP authentication. If authentication is enabled, specify chapProhibited to disable it.
■ required – The host requires successful CHAP authentication. The connection fails if CHAP negotiation fails. You can set this value for mutual CHAP only if CHAP is set to chapRequired.For direction, specify mutual.
The vicfg-iscsi -A -c options enable iSCSI authentication. Mutual authentication is supported for software iSCSI and dependent hardware iSCSI, but not for independent hardware iSCSI. See Setting iSCSI CHAP.[-i <stor_ip_addr|stor_hostname> [:<portnum>] [-n <iscsi_name]] <adapter_name>-w <ma_password> [-i <stor_ip_addr|stor_hostname> [:<portnum>]