i am using bond mode balance-alb. and here is my "/etc/network/interfaces"
file
##############################
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 10.X.X.221
        netmask 255.255.255.0


auto bond0

iface bond0 inet static
address 10.5.X.200
netmask 255.255.255.0
newtork 10.5.x.0
gateway 10.5.x.9
slaves eth2 eth3
#bond-mode active-backup
bond-mode balance-alb
bond-miimon 100
bond-downdelay 200



same setting is on other end.

and the problem is only active link is transmitting and on the other node
active link is receiving. no load balancing is performent i am using "scp"
to transfer 1 5 gb file from two ssh session at the same time but both
sessions are only using one network card. which is active in
/proc/net/bonding/bond0 . here is the output.

Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)

Bonding Mode: adaptive load balancing
Primary Slave: None
Currently Active Slave: eth2
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 200

Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: ea:d9:55:a2:8e:00

Slave Interface: eth3
MII Status: up
Link Failure Count: 0
Permanent HW addr: a6:41:24:50:71:e8
root@node1:/data/export/images/106#




 bwm-ng v0.6 (probing every 0.500s), press 'h' for help
  input: /proc/net/dev type: rate
  -         iface                   Rx                   Tx
Total

==============================================================================
               lo:           0.00 KB/s            0.00 KB/s            0.00
KB/s
             eth0:           0.88 KB/s            1.96 KB/s            2.84
KB/s
             eth2:         107.52 KB/s         4633.14 KB/s         4740.66
KB/s
             eth3:           0.89 KB/s            0.00 KB/s            0.89
KB/s
            bond0:         108.40 KB/s         4633.14 KB/s         4741.54
KB/s

------------------------------------------------------------------------------
            total:         217.69 KB/s         9268.24 KB/s         9485.93
KB/s




note : as you can see in /proc/net/bonding/bond0 file the active link is
eth2 and the bwm-ng showing transmission is also on eth2. even i use two
session i thought it could work like round robin as in "mode 0" but both
sessions are transmitting data from eth2.

what i want to achive is per packet load balancing. if i send two packets
it moves out from both link eth2 and eth3. so i can combine 4x1 LAN card
and achieve 4 GB of transmit rate and redundancy.
i know 4 GB network output achievement depends upon the hardware quality. i
will check on that too. but at least bwm-ng could show me packet activity
on all the links not only active link.

any help would be highly appreciated.

Thanks .

Myk

Reply via email to