Isns discovery using iscsiadm – Dell Emulex Family of Adapters User Manual
Page 855

Emulex Drivers Version 10.2 for Linux User Manual
P010081-01A Rev. A
3. Configuration
iSCSI Driver Configuration
855
In this command, <ip:port> is the IP address and port number and <iface> is the
name of the iface created in step 1.
6. Add the iSCSI driver MAC address:
iscsiadm -m iface -I <ifacename> --op=update -n iface.hwaddress
-v <iSCSI MAC Address>
In this command, <ifacename> is the name of the iface created in step 1.
7. Set the initiator’s IP address:
iscsiadm -m iface -I <ifacename> -o update -n iface.ipaddress -v
<IP>
In this command, <ifacename> is the name of the iface created in step 1 and <IP> is
the IP address.
8. Log into the target:
iscsiadm -m node -T <targetname> -p <ip:port> -I <iface> -l
In this command, <targetname> is the target name you want to log into; <ip:port>
is the IP address and port number; and <iface> is the name of the iface created in
step 1.
9. Verify that the disk shows:
fdisk -l
10. Log out:
iscsiadm -m node -T <targetname> -p <ip:port> -I <iface> -u
In this command, <targetname> is the target name; <ip:port> is the IP address and
port number; and <iface> is the name of the iface created in step 1.
Example
iscsiadm -m iface -o new -I iface0
iscsiadm -m iface -I iface0 --op=update -n iface.hwaddress -v 00:0F:1F:62:2B:BF
iscsiadm -m iface -I iface0 --op=update -n iface.transport_name -v be2iscsi
service open-iscsi restart
iscsiadm -m discovery -t st -p 20.0.0.107:3260 -I iface0 -P 1
iscsiadm -m iface -I iface0 --op=update -n iface.hwaddress -v 00:0F:1F:92:6B:BF
iscsiadm -m iface -I iface0 -o update -n iface.ipaddress -v 20.0.0.107
iscsiadm -m node -T iqn.tgt0 -p 20.0.0.107:3260 -I iface0 -l fdisk -l
iscsiadm -m node -T iqn.tgt0 -p 20.0.0.107:3260 -I iface0 –u
iSNS Discovery Using iscsiadm
iSNS discovery uses a standard NIC interface. The default interface is the
TCP_interface.
localhost:~ # iscsiadm -m iface
default tcp,<empty>,<empty>,<empty>,<empty>
iser iser,<empty>,<empty>,<empty>,<empty>