Re: [LARTC] Load Sharing PPP Connections on an Masqed LAN

Linux Advanced Routing and Traffic Control

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

 



On Tue, 5 Dec 2000, Rogerio Brito wrote:

> On Dec 04 2000, Arthur van Leeuwen wrote:
> > Second: set up /etc/ppp/ip-up.local scripts (not exactly sure what Mandrake 
> >         uses for that, but that's what RedHat uses) to dynamically reroute
> >         to the correct interfaces
> 
> 	Could you provide more information on what is meant by
> 	"dynamically reroute"? By that you mean that ppp shouldn't add
> 	default routes to the gateways?

Oh, no. By that I mean that the ip-up.local script should set the route
itself, depending on whether there are one or two ppp links up already. This
is relatively easy to figure out using 'ip addr' and some awk.

> > Third: make a multipath route over the two ppp links. This will dynamically
> >        balance packets over the two links, based on the destination adresses.
> 
> 	Which way would I do this? Should I delete my default route
> 	and use:
> 
> 	# ip route add default scope global nexthop dev ppp0 nexthop dev eth0

That is correct.

> 	(so that I can use both my ppp connection and my DSL?)
> 
> 	I tried the above and it "partially" works: I have problems
> 	accessing some www sites (Netscape shows me "No route to
> 	host"), while accessing others is fine (I can read slashdot
> 	ok).
> 
> 	It seems that the problem only occurs with TCP based services
> 	(UDP based ones seem to be fine -- ICMP echo also seems fine).
> 
> 	Any suggestion what I should be doing to correct this?

You should add gateways for the different outgoing devices and set up host
routes to those gateways specifying as the preferred source address the
address associated with the interface through which you route to the
gateway. Further, adding rulesets to deal with the case that packets already
have a source address set might greatly improve reliability. There's some
information on how to do that in some previous mails I made to the list.

Doei, Arthur.

-- 
  /\    / |      arthurvl@xxxxxxxxxx      | Work like you don't need the money
 /__\  /  | A friend is someone with whom | Love like you have never been hurt
/    \/__ | you can dare to be yourself   | Dance like there's nobody watching




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