RE: Per-Packet Load Sharing

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux