HP 3PAR Ubuntu Operating System Implementation Guide
Issue
How to set up two Ethernet interfaces for iSCSI.
Workaround
Choose either option 1 or option 2.
Option 1—Use Bonding
Example of bonding two Ethernet interfaces:
/etc/network/interfaces
Modified to ipv4, two iSCSI initiator ports with static IP address on two subnets:
# bnx2 - iSCSI
auto eth1
iface eth1 inet static
address 10.101.1.79
netmask 255.255.255.0
network 10.101.1.0
# bnx2 - iSCSI
auto eth3
iface eth3 inet static
address 10.101.2.79
netmask 255.255.255.0
network 10.101.2.0
/etc/network/interfaces
Bonding(require ifenslave-2.6)example:
auto eth4
iface eth4 inet manual
bond-master bond0
auto eth5
iface eth5 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
address 10.101.3.79
netmask 255.255.255.0
network 10.101.3.0
bond-mode 802.3ad
bond-miimon 100
bond-slaves none
Option 2—Use Two Subnets
Example of an iSCSI two-subnet configuration:
• 2 initiator ports (10.101.1.24, 10.101.2.24)
• 4 target ports (10.101.1.240, 10.101.1.241, 10.101.2.242, 10.101.2.243)
• 2 sub nets (10.101.1.0, 10.101.2.0)
• gateway (10.101.1.1, 10.101.2.1)
• mtu (1500, 9000)
37