and your scenario was tested with TCP connections? with udp "connections" (e.g. video streaming over UDP)?
how does it handle making sure all packets belonging to the same "virtual stream" are sent via the same route? --guy On Sun, 21 Aug 2005, Erez D wrote: > i'm trying to describe shortly how to do that, > if one have any problems, i will be happy to help > maybe i'll write a more detailed howto later > > first use usual table: > [EMAIL PROTECTED]> ip rule add prio 10 lookup table main > now add src route to all isps: > [EMAIL PROTECTED]> ip rule add prio 21 from isp1_local_ip lookup table 51 > [EMAIL PROTECTED]> ip rule add prio 22 from isp2_local_ip lookup table 52 > and so on if you have more isps. > now add the default: > [EMAIL PROTECTED]> ip rule add prio 30 lookup table 60 > > set the routing tables for the isps: > [EMAIL PROTECTED]> ip route add table 51 isp1addr dev isp1dev src > isp1_local_ip > [EMAIL PROTECTED]> ip route add table 51 default via isp1addr dev isp1dev src > isp1_local_ip > same for the rest of the isps: > [EMAIL PROTECTED]> ip route add table 52 isp2addr dev isp2dev src > isp2_local_ip > [EMAIL PROTECTED]> ip route add table 52 default via isp2addr dev isp2dev src > isp2_local_ip > > now add the load balancing: > [EMAIL PROTECTED]> ip route add table 60 default nexthop via isp1addr dev > isp1dev weight 1 nexthop via isp2addr dev isp2dev weight 1 > > it's important that you do not have a default route at table main. > > that's all > > erez. > > > > > > > On 8/17/05, Erez D <[EMAIL PROTECTED]> wrote: > > > > i'll try the LARTC (linux advanced router ..) mailing list > > > > thanks anyway > > > > erez. > > > > On 8/17/05, Noam Meltzer <[EMAIL PROTECTED]>wrote: > > > > > > I'm sorry, > > > out of ideas. > > > > > > Noam > > > > > > On 8/17/05, Erez D <[EMAIL PROTECTED]> wrote: > > > > of cource i did 'ip route del default' before ;-) > > > > (otherwise i would get an error, anyway) > > > > > > > > no, everything else works, all the other static routes work to both > > > ppp0 > > > > and eth3, > > > > and if i swap the order of the command line, then ppp0 works as > > > default but > > > > not eth3, so it seems the problem is not specific to a certain > > > interface. > > > > > > > > i looked again using 'ip rule show, ip route show, ip route show table > > > > local, ip route show table default, ip link show, ip addr show' and > > > didn't > > > > see anything out of the ordinary. > > > > > > > > i also rechecked thefirewall (iptables) rules, including postrouting. > > > > > > > > it seems like a bug in 'ip route' > > > > > > > > i just wander which patch fixes it > > > > > > > > 10x > > > > erez. > > > > > > > > On 8/17/05, Noam Meltzer <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > > > > > > one other thought: > > > > > the ppp0 is a tunnel - it is carried upon another, real, interface. > > > > > is it possible that after you have changed the default route you > > > > > caused the ppp0 to stop working? > > > > > > > > > > Noam > > > > > > > > > > On 8/17/05, Erez D < [EMAIL PROTECTED]> wrote: > > > > > > hi > > > > > > > > > > > > the command line i have used originated from > > > > > > http://lartc.org/howto/lartc.rpdb.multiple-links.html > > > > > > > > > > > > about: > > > > > > http://www.ssi.bg/~ja/#routes<http://www.ssi.bg/%7Eja/#routes> > > > > > > are you aware of a specific bug/patch relevant the command i > > > issued, > > > > > > or is it just a pointer to the patches available in general. > > > > > > > > > > > > 10x > > > > > > > > > > >> erez. > > > > > > > > > > > > On 8/17/05, Noam Meltzer <[EMAIL PROTECTED]> wrote: > > > > > > > Hi Erez, > > > > > > > What you are requesting to do is not trivial, though not too > > > > complicated. > > > > > > > Basically I would suggest you'll read the following documents > > > (the > > > > > > > first has a link for the second, but it was worth mentioning > > > here > > > > > > > too): > > > > > > > http://lartc.org/howto/lartc.rpdb.multiple-links.html > > > > > > > http://www.ssi.bg/~ja/#routes <http://www.ssi.bg/%7Eja/#routes> > > > > > > > > > > > > > > The first one is one the sections of "Linux Advanced Routing & > > > Traffic > > > > > > > Control HOWTO" > > > > > > > The second is a page with some kernel patches that can help you > > > > > > > achieve your goal. (It also points for what he calls nano's > > > howto, > > > > > > > which explains how to use these patches) > > > > > > > > > > > > > > goodluck, > > > > > > > Noam > > > > > > > > > > > > > > On 8/16/05, Erez D <[EMAIL PROTECTED]> wrote: > > > > > > > > hi > > > > > > > > > > > > > > > > i have 2 internet connetions: via eth3 and ppp0 > > > > > > > > > > > > > > > > i wanted to do load balancing so i did: > > > > > > > > ip route add default nexthop via <ip1> dev eth3 weight1 > > > nexthop via > > > > >> <ip2> dev ppp0 weight 1 > > > > > > > > > > > > > > > > i test by pinging the internet > > > > > > > > > > > > > > > > i get funny results: > > > > > > > > if the route was selected via ppp0 then it works > > > > > > > > if the route was selected via eth3,then nothing is sent out > > > > (tcpdump > > > > > > shows nothing) > > > > > > > > ( i know which route was selected by doing 'ip route show > > > cache') > > > > > > > > > > > > > > > > if i swap the order of the interfaces in the above line, then > > > ppp0 > > > > does > > > > > > not work and eth3 does > > > > > > > > so it seems that routes through the first interface specified > > > does > > > > not > > > > > > work > > > > > > > > > > > > > > > > however, if i only specify one of the interfaces (does not > > > matter > > > > > > which) then it works ok for it. > > > > > > > > > > > > > > > > any idea ? > > > > > > > > > > > > > > > > btw: my box is configured to do nat via ppp0, but not via eth3 > > > (it > > > > is > > > > > > done further on the way at the isp) > > > > > > > > > > > > > > > > 10x, > > > > > > > > erez. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- guy "For world domination - press 1, or dial 0, and please hold, for the creator." -- nob o. dy ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
