On an Oracle Solaris 11.2 system, iSCSI could connect through an undesired interface on reboot.
Workaround: To identify the undesired interface that is using static-config, type the following command and check the IP address (Local) value:
root@examplehost:~# iscsiadm list target -v
Target: iqn.1986-03.com.sun:02:iscsi-perf Alias: - TPGT: 2 ISID: 4000002a0003 Connections: 1 CID: 0 IP address (Local): 192.168.6.100:40238 IP address (Peer): 192.168.6.101:3260 Discovery Method: Static Login Parameters (Negotiated): Data Sequence In Order: yes Data PDU In Order: yes Default Time To Retain: 20 Default Time To Wait: 2 Error Recovery Level: 0 First Burst Length: 65536 Immediate Data: yes Initial Ready To Transfer (R2T): yes Max Burst Length: 262144 Max Outstanding R2T: 1 Max Receive Data Segment Length: 32768 Max Connections: 32 Header Digest: NONE Data Digest: NONE
Disable the iSCSI target discovery method and then enable it again.
# iscsiadm modify discovery -s disable
# iscsiadm modify discovery -s enable