Skip to contentSkip to conversation

Per-Packet Load Sharing

LARTC Tom Williams 3 participants 3 messages Mar 24, 2004 – Apr 20, 2004

lore
Share & tools
lore
#0 lore raw

Hi All,

Have a quick question, I have been looking / trying for some time now to figure out away to do Per-Packet Load sharing. What I have is two 10Mbps Connection between two buildings, I want to configure the router on each side to load share on a per-packet basis. Currently I can do this with some Cisco routers, and simply enable load share per packet on the interfaces. Is there a way to do this with Linux somehow? I have tried all kinds of patches, etc that I have found but with no success.

I may also want to use this across other types of interfaces like multiple ppp links (no multilink, just two ppp links) so I guess I need it to be based on the routing, not on a bonded interface, like it does with TEQL, etc.

Thanks in advance.

--

Tom Williams

#1 lore raw

If they're both linux, would this work:

Host0: Bridge interface #1 with interface #2. This assumes they're on the same subnet
Host1: Bridge interface #1 with interface #2. This assumes they're on the same subnet

On each machine add the following:

iptables -t mangle -m nth --every 2 --packet 0 -m mark ${MY_FIRST_ROUTE} iptables -t mangle -m nth --every 2 --packet 1 -m mark ${MY_SECOND_ROUTE}

Add ip rule's and ip route's to facilitate the forwarding of the packets through the lines.
Since the route to whatever you are travelling to is the same on both physical interfaces, you'll need to specify the dev ${my_if1} or ${my-if2} in order to properly route through the correct device.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Tom Williams
Quoted 7 lines · Daniel Chemko

If they're both linux, would this work:

Host0: Bridge interface #1 with interface #2. This assumes they're on the same subnet
Host1: Bridge interface #1 with interface #2. This assumes they're on the same subnet

Quoted 7 lines

On each machine add the following:

iptables -t mangle -m nth --every 2 --packet 0 -m mark ${MY_FIRST_ROUTE} iptables -t mangle -m nth --every 2 --packet 1 -m mark ${MY_SECOND_ROUTE}

Hi, do u know how to implement per-connection load-sharing over bridge into linux?

thanks...

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/