How can I connect to iSCSI target from Linux console?

First you need to discover targets under portal IP address:

iscsiadm --mode discovery --type sendtargets --portal 192.168.1.10 # Replace 192.168.1.10 with Your portal IP address
Login, must use a node record id found by the discovery:

iscsiadm --mode node --targetname iqn.2001-05.com.doe:test --portal 192.168.1.1:3260 --login 
Logout:
iscsiadm --mode node --targetname iqn.2001-05.com.doe:test --portal 192.168.1.1:3260 --logout 
List node records:
iscsiadm --mode node 
Display all data for a given node record:
iscsiadm --mode node --targetname iqn.2001-05.com.doe:test --portal 192.168.1.1:3260


Article ID: 962
Last updated: 29 Jun, 2010
Revision: 1
Troubleshooting -> Software -> iSCSI problems -> How can I connect to iSCSI target from Linux console?
https://kb.open-e.com/how-can-i-connect-to-iscsi-target-from-linux-console_962.html