If you want to configure more than one Linux host Ethernet port for iSCSI, methods are
available to improve routing and maintain optimal redundancy in cases of dynamic discovery.
You can use one of the following two methods:
- Configure different subnet IP addresses for the host ports and the system ports. Each
target IP of a system node is accessible only from one host IP of the corresponding subnet. As a
result, pairs of host and system ports are in separate subnets.
- In the /etc/iscsi/ifaces subdirectory, create a separate
iface configuration file for each network object that you want to bind a session to.
Each iface config file must have a unique name that is less than or equal to 64 characters in
length.
The following iface example
shows a simple case with two network devices (eth0 and eth1):
- Edit the /etc/iscsi/ifaces/eth0 file
to specify the iface.net_ifacename:
iface.net_ifacename = eth0
- Similarly, edit the /etc/iscsi/ifaces/eth1 file:
iface.net_ifacename = eth1