10–iSCSI Protocol
iSCSI Offload in Linux Server
211
83840-546-00 D
Ifconfig eth.<VLANID> <static ip> up
— Assigns and IP address
to the VLAN interface.
Use the following command to get detailed information about VLAN interface:
# 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, then 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. This is a sample list of commands to discovery 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