6.0

Table Of Contents
vSphere Command-Line Interface Concepts and Examples
76 VMware, Inc.
6 (Optional)SettheauthenticationinformationformutualCHAPbyrunningvicfg-iscsi -Aagainwith
the-boptionandadifferentauthenticationusernameandpassword.
For<level>,specifychapProhibitedorchapRequired.
chapProhibitedThehostdoesnotuseCHAPauthentication.Ifauthenticationisenabled,specify
chapProhibitedtodisableit.
chapRequiredThehostrequiressuccessfulCHAPauthentication.TheconnectionfailsifCHAP
negotiationfails.YoucansetthisvalueformutualCHAPonlyifCHAPissettochapRequired.
For<auth_method>,CHAPistheonlyvalidvalue.
7 (Optional)SetiSCSIparametersbyrunningvicfg-iscsi -W.
8Aftersetupiscomplete,runvicfg-rescantorescanallstoragedevices.
Setting Up Independent Hardware iSCSI with vicfg-iscsi
WithindependenthardwarebasediSCSIstorage,youuseaspecializedthirdpartyadaptercapableof
accessingiSCSIstorageoverTCP/IP.ThisiSCSIinitiatorhandlesalliSCSIandnetworkprocessingand
managementforyourESXisystem.
YoumustinstallandconfiguretheindependenthardwareiSCSIadapterforyourhostbeforeyoucan
access
theiSCSIstoragedevice.Forinstallationinformation,seevendordocumentation.
HardwareiSCSIsetuprequiresanumberofhighleveltasks.Foreachtask,seethediscussionofthe
correspondingcommandlineoptioninthischapter,themanpage(Linux),orthereferenceinformation.
Specifyoneoftheoptionslistedin“Connection
OptionsforvCLIHostManagementCommands”onpage 18
inplaceof<conn_options>.
1 DeterminetheHBAtypeandretrievetheHBAID.
vicf-iscsi <conn_options> --adapter --list
2Configurethehardwareinitiator(HBA)byrunningvicfg-iscsi -Nwithoneormoreofthefollowing
options.
--listListnetworkproperties.
--ip <ip_addr>SetHBAIPv4address.
--subnetmask <subnet_mask>SetHBAnetworkmask.
--gateway <default_gateway>SetHBAgateway.
--set ARP=true|falseEnableordisableARPredirect.
YoucanalsosettheHBAIPv4addressandnetworkmaskandgatewayinonecommand.
vicfg-iscsi <conn_options> --ip <ip_addr> --subnetmask <subnet_mask> --gateway
<default_gateway>
3 (Optional)SettheiSCSInameandalias.
vicfg-iscsi <conn_options> -I -n <iscsi_name> <adapter_name>
vicfg-iscsi <conn_options> --iscsiname --name <iscsi_name> <adapter_name>
vicfg-iscsi <conn_options> -I -a <alias_name> <adapter_name>
Option Result
-iand‐n CommandappliestopertargetCHAPforstatictargets.
Only‐i Commandappliestothediscoveryaddress.
Neither-inor‐n CommandappliestoperadapterCHAP.
IMPORTANTYouareresponsibleformakingsurethatCHAPissetbeforeyousetmutualCHAP,andfor
usingcompatiblelevelsforCHAPandmutualCHAP.