M
M
Michael2014-10-09 06:22:58
linux
Michael, 2014-10-09 06:22:58

Why does Bonding always load only 1 DEBIAN interface?

Hello, the scheme is as follows, there are 4 gigabit interfaces, they are combined into bonding and then bridged into a KVM virtual machine, but when you download something to this machine over the network or jump from there, only 1 out of 4 interfaces is always loaded, why? At the moment, it costs mod 2 xor, if I understand the manual correctly, it should give a free interface for each new connection, but this does not happen.
cat /etc/network/interfaces

auto br0
iface br0 inet static
address 192.168.0.50
gateway 192.168.0.1
netmask 255.255.255.0
broadcast 192.168.0.255
dns-nameservers 8.8.8.8
bridge_ports bond0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
post-up ifup bond0
post-down0 ifup bond0
auto
eth0ace ifdown if bond0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
auto eth2
iface eth2 inet manual
bond-master bond0
auto eth3
iface eth3 inet manual
bond-master bond0
auto bond0
iface bond0 inet manual
bond_mode 2
bond_miimon 100
bond_updelay 5
bond_downdelay 5
bond-slaves none

cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: load balancing (xor)
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 90:e6:ba:69:e3:c9
Slave queue ID: 0
Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: e8:de:27:02:e5:4e
Slave queue ID: 0
Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: e8:de:27:01:e3:92
Slave queue ID: 0
Slave Interface: eth3
MII Status: up
Speed: 1000 Mbps
Duplex: full

ifstat -S

ifstat -S
eth0 eth2 eth1 eth3 bond0 br0 virbr0 vnet0
KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out
475.80 0.00 475.80 0.07 475.86 0.26 39356.65 175.66 40784.12 175.99 1883.59 0.26 0.00 0.983 1745

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Petrikov, 2014-10-09
@RicoX

I advise you to do this:

bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 1
bond-slaves none

Another good option to try:
But 802.3ad is the most critical, both from the server side and from the switch side.

V
Vladimir, 2014-10-09
@rostel

what is configured on the switch is known?
it is desirable to apply a scheme for connecting to the DC network

P
penchekryak, 2014-10-10
@penchekryak

The information provided is not enough to answer the question.
How is the bonding on the other side set up, where do the cables go?
Does the kernel give any messages about the bonding operation?
dmesg | grep bond

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question