9–Configuring iSCSI Protocol
iSCSI Offload in Linux Server
130
83840-546-00 N
To get detailed information about VLAN interface, issue the following
command:
#
cat /proc/net/vlan/ethx.<vlanid>
Preserve the VLAN configuration across reboots by adding it to configuration files.
Configure the VLAN interface configuration in
/etc/sysconfig/network-scripts
. The configuration file name has a
specific format that includes the physical interface, a character, and the VLAN ID.
For example, if the VLAN ID is 100 and the physical interface is eth0, the
configuration file name should be
ifcfg-eth0.100
. The following are example
settings in the configuration file:
"DEVICE=ethX.100
"BOOTPROTO=static
"ONBOOT=yes
"IPADDR=<>
"NETMASK=<>
"USERCTL=no
"NETWORK=<>
"VLAN=yes
Restart the networking service for the changes to take effect, as follows:
"Service network restart"
Making Connections to iSCSI Targets
Refer to open-iscsi documentation for a comprehensive list of
iscsiadm
commands. The following show a sample list of commands to discover targets
and to create iSCSI connections to a target.
Add Static Entry
iscsiadm -m node -p <ipaddr[:port]> -T
iqn.2007-05.com.qlogic:target1 -o new -I <iface_file_name>
iSCSI Target Discovery Using 'SendTargets'
iscsiadm -m discovery --type sendtargets -p <ipaddr[:port]> -I
<iface_file_name>
Login to Target Using 'iscsiadm' Command
iscsiadm --mode node --targetname <iqn.targetname> --portal
<ipaddr[:port]> --login