Users Guide

7–Linux 驱动程序软件
Linux iSCSI 卸载
57 BC0054508-05 M
其中的 iface 文件包含以下信息:
iface.net_ifacename = ethX
iface.iscsi_ifacename = <name of the iface file>
iface.transport_name = tcp
iSCSI 卸载的 VLAN 配置 (Linux)
网络上的 iSCSI 流量可以隔离在 VLAN 中,以与其他流量隔离开来。在这种情况
下,必须让适配器上的 iSCSI 接口成为 VLAN 的成员。
要配置 iSCSI VLAN,在 iSCSI iface 文件中添加 VLAN ID。在以下示例中,
VLAN ID 设置为 100
#Begin Record 6.2.0-873.2.el6
Iface.iscsi_ifacefile name = <>
Iface.ipaddress = 0.0.0.0
Iface.hwaddress = <>
Iface.trasport_name = bnx2i
Iface.vlan_id = 100
Iface.vlan_priority = 0
Iface.iface_num = 100
Iface.mtu = 0
Iface.port = 0
#END Record
连接到 iSCSI 目标
请参阅 Open-iSCSI 说明文件获取 iscsiadm 命令的全面列表。以下是命令的示
例列表,用以发现目标并创建与目标的 iSCSI 连接。
添加静态条目
iscsiadm -m node -p <ipaddr[:port]> -T
iqn.2007-05.com.qlogic:target1 -o new -I <iface_file_name>
使用 sendtargets 发现 iSCSI 目标
iscsiadm -m discovery --type sendtargets -p <ipaddr[:port]> -I
<iface_file_name>
尽管没有严格要求,Marvell 建议在 iface.iface_num 字段上配置相同的
VLAN ID,以便识别 iface 文件。