bond0 works only in round-robin. BUG?

For now I've set active-passive but my VMs lost their network connexion for 1-2 minutes randomly I don't understand why.

same here. Link Aggregation 802.3ag doesnt work (netowork wasnt found) other modes are very unstable. Same switch, same server with VM ESXi4 works perfect.

Regards Valle.
 
And it works with standard debian lenny (please can you test that)?

Yes, the server was a netinstall debian lenny and it was working like a charm.
I've used the bare-metal CD installer when I've moved to OpenVZ.

valshare: thanks so I'm not alone! Also tried ESXi but too resources intensive.

On the server's screen I've a lot (lot) of this message:
bond0: received packet with own address as source address

Here is the ifconfig output:
serveur-2:~# ifconfig
bond0 Link encap:Ethernet HWaddr 00:14:22:72:82:66
inet6 addr: fe80::214:22ff:fe72:8266/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:40341353 errors:0 dropped:0 overruns:0 frame:0
TX packets:30183995 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:38492572288 (35.8 GiB) TX bytes:3188175104 (2.9 GiB)

eth0 Link encap:Ethernet HWaddr 00:14:22:72:82:66
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:40299098 errors:0 dropped:0 overruns:0 frame:0
TX packets:30183995 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38487083377 (35.8 GiB) TX bytes:3188175104 (2.9 GiB)

eth1 Link encap:Ethernet HWaddr 00:14:22:72:82:66
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:42255 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5488911 (5.2 MiB) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3968 errors:0 dropped:0 overruns:0 frame:0
TX packets:3968 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:989152 (965.9 KiB) TX bytes:989152 (965.9 KiB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 addr: fe80::1/128 Scope:Link
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

veth101.0 Link encap:Ethernet HWaddr 00:18:51:a7:6e:62
inet6 addr: fe80::218:51ff:fea7:6e62/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:340532 errors:0 dropped:0 overruns:0 frame:0
TX packets:458352 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:185046876 (176.4 MiB) TX bytes:54180563 (51.6 MiB)

veth102.0 Link encap:Ethernet HWaddr 00:18:51:91:50:e2
inet6 addr: fe80::218:51ff:fe91:50e2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:135625 errors:0 dropped:0 overruns:0 frame:0
TX packets:213570 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:89263271 (85.1 MiB) TX bytes:31202240 (29.7 MiB)

veth103.0 Link encap:Ethernet HWaddr 00:18:51:1d:00:72
inet6 addr: fe80::218:51ff:fe1d:72/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29018378 errors:0 dropped:0 overruns:0 frame:0
TX packets:39730853 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1543720455 (1.4 GiB) TX bytes:37858663748 (35.2 GiB)

vmbr0 Link encap:Ethernet HWaddr 00:14:22:72:82:66
inet addr:10.10.10.29 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::214:22ff:fe72:8266/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:271430 errors:0 dropped:0 overruns:0 frame:0
TX packets:657912 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:37129024 (35.4 MiB) TX bytes:952661287 (908.5 MiB)
 
Last edited:
Hello Dietmar,

today i have tested again with Link Aggregation 802.3ad.

I have working it now with the parameter bridge_stp on. But now i have the problem, if a change anything over the web interface, that i can´t connect to my server. Is there a way, that i can setup the bridge_stp on as a default parameter and that is not changed if i change anything over the web interface?!

Regards, Valle
 
Last edited:
I have working it now with the parameter bridge_stp on. But now i have the problem, if a change anything over the web interface, that i can´t connect to my server. Is there a way, that i can setup the bridge_stp on as a default parameter and that is not changed if i change anything over the web interface?!

Does the web interface really change that? If so, its a bug.
 
i have checked it today .... sorry, bridge_stp off will set only, if i create a news bridge. The "Patch" shows me
@@ -35,6 +33,12 @@
bridge_stp off

but this isn´t vmbr0, right?!

In the "interfaces.new" are all ok.

Code:
 auto bond0
-iface bond0 inet static
-	address  192.168.1.3
-	netmask  255.255.255.0
-	slaves eth0 eth1 eth2 eth3
+iface bond0 inet manual
+	slaves none
 	bond_miimon 100
-	bond_mode 802.3ad
+	bond_mode balance-rr
 
 auto vmbr0
 iface vmbr0 inet static
-	address  192.168.1.3
+	address  192.168.1.5
 	netmask  255.255.255.0
 	gateway  192.168.1.1
 	bridge_ports bond0
@@ -35,6 +33,12 @@
 	bridge_stp off
 	bridge_fd 0
 
+auto vmbr2
+iface vmbr2 inet manual
+	bridge_ports none
+	bridge_stp off
+	bridge_fd 0
 
Sorry, I don't get the question?

we set "bridge_stp off" by default. But you can change that manually by editing /etc/network/interfaces[.new] afterwards.
 
Hi,

Hope I didn't hi-jack this old thread.

I was jsut glad to see I'm not alone on this one. I've been struggling to configure load balancing, and I also got those bond0: received packet with own address as source address. I've tried setting the bond_mode to balance-rr, balance-alb, balance-tlb, balance-xor but they only result in unstable connections. I also tried setting bridge_stp to on but that didn't do anything. The switch is a D-Link DGS-3024 which seems to handle load balancing with the servers running Windows, so it sounds reasonable that it's either a Debian issue or maybe Linux kernel issue.
Any sight of a solution?