Messages in this thread | | | Date | Tue, 27 Aug 2002 21:27:38 +0200 | From | Willy Tarreau <> | Subject | Re: your mail |
| |
On Tue, Aug 27, 2002 at 08:22:03PM +0200, Steffen Persvold wrote:
> I have an idea that this happens because the packets are comming out of > order into the receiving node (i.e the bonding device is alternating > between each interface when sending, and when the receiving node gets the > packets it is possible that the first interface get packets number 0, 2, > 4 and 6 in one interrupt and queues it to the network stack before packet > 1, 3, 5 is handled on the other interface).
You pointed your finger on this exact common problem. You can use the XOR bonding mode (modprobe bonding mode=2), which uses a hash of mac addresses to select the outgoing interface. This is interesting if you have lots of L2 hosts on the same network switch.
Or if you have a few hosts on the same switch, you'd better use the "nexthop" parameter of "ip route". IIRC, it should be something like : ip route add <destination> nexthop dev eth0 nexthop dev eth1 but read the help, I'm not certain.
Cheers, Willy
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |