All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Load Sharing PPP Connections on an Masqed LAN
@ 2000-12-04  3:33 Hexxor
  2000-12-04  3:48 ` Lisle
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Hexxor @ 2000-12-04  3:33 UTC (permalink / raw)
  To: lartc

<PRE>I believe there's an option in the kernel for that, and quite possibly a
howto as well. www.linux.org, check the docs section there

hth, at least a bit


-Hexxor
<A HREF="http://nanook.ath.cx/">http://nanook.ath.cx/</A>
<A HREF="http://rains.net/~hexxor/">http://rains.net/~hexxor/</A>

&quot;Do not take for granted, the powers out there.&quot;

GMUd-s:--a--C++UL++++P++++L++++E----W++N+o+K-O-
w---M-V-PS+++PEY+PGPt---5--X-R!tvb+DID+Geh--ry+ 




</PRE>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LARTC] Load Sharing PPP Connections on an Masqed LAN
  2000-12-04  3:33 [LARTC] Load Sharing PPP Connections on an Masqed LAN Hexxor
@ 2000-12-04  3:48 ` Lisle
  2000-12-04  8:05 ` Arthur
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Lisle @ 2000-12-04  3:48 UTC (permalink / raw)
  To: lartc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=&quot;iso-8859-1&quot;, Size: 1798 bytes --]

Hi, can anyone help me with this problem i've got!

I have a problem with routing on my Mandrake 7.2 Linux Box i was wondering if you could help me with.  I live 

in Australia and as broadband access isn't very available at the moment, i have 2 modems to dialup to my isp 

(dynamic ips assigned) to increase my bandwidth at an affordable level.  What currently happens is i have a 

LAN which accesses the internet through my Box that has IP Masquerading set up on it.  My problem is whne i 

dial in with both connections, it only routes the internet through the last ppp connection i've made (usually 

ppp1). This means that although ppp0 and ppp1 are connected to the internet, my computers on the LAN (ip 

192.168.1.x) are only connecting through one modem.  What I need is to know how to set up routing, or 

Loadsharing so that i can utilise both modems over my Masqed network.

What happens when i type route -n in the command line:

Destination Gateway  Genmask  Flags Metric Ref Use Iface
198.142.149.254 0.0.0.0  255.255.255.255 UH 0 0 0 ppp0
198.142.150.254 0.0.0.0  255.255.255.255 UH 0 0 0 ppp1
192.168.0.0 0.0.0.0  255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0  255.0.0.0 U 0 0 0 lol
0.0.0.0  198.142.150.254 0.0.0.0  UG 0 0 0 ppp1


My Desired Set Up:

Internet  Internet
   |              | 
   |              |
   |ppp0       |ppp1 
   |              | 
 ____________________________
|<i>    Linux Box                              |
</I>|<i> IP Masquerading                       |
</I>|<i> routing or lOadsharing                |
</I>--------------------------------------------------
      |
      |
      |eth0
      |
 The Rest of My Lan


Any assistance with my problem would be greatly appreciated.

Cheers
-Lisle Wilson

[-- Attachment #2: Type: text/html, Size: 5723 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LARTC] Load Sharing PPP Connections on an Masqed LAN
  2000-12-04  3:33 [LARTC] Load Sharing PPP Connections on an Masqed LAN Hexxor
  2000-12-04  3:48 ` Lisle
@ 2000-12-04  8:05 ` Arthur
  2000-12-05  5:12 ` Rogerio
  2000-12-05 15:37 ` Arthur
  3 siblings, 0 replies; 5+ messages in thread
From: Arthur @ 2000-12-04  8:05 UTC (permalink / raw)
  To: lartc

<PRE>On Mon, 4 Dec 2000, Lisle Wilson wrote:

&gt;<i> My problem is whne i dial in with both connections, it only routes the 
</I>&gt;<i> internet through the last ppp connection i've made (usually 
</I>&gt;<i> ppp1). This means that although ppp0 and ppp1 are connected to 
</I>&gt;<i> the internet, my computers on the LAN (ip 192.168.1.x) are only 
</I>&gt;<i> connecting through one modem.  
</I>
You have set the `defaultroute' option to PPP. This is its intended effect.

&gt;<i> What I need is to know how to set up routing, or 
</I>&gt;<i> Loadsharing so that i can utilise both modems over my Masqed network.
</I>
&gt;<i> My Desired Set Up:
</I>&gt;<i> 
</I>&gt;<i> Internet  Internet
</I>&gt;<i>    |              | 
</I>&gt;<i>    |ppp0       |ppp1 
</I>&gt;<i>    |              | 
</I>&gt;<i>  _______________________________________
</I>&gt;<i> |    Linux Box                          |
</I>&gt;<i> | IP Masquerading                       |
</I>&gt;<i> | routing or lOadsharing                |
</I>&gt;<i> --------------------------------------------------
</I>&gt;<i>       |
</I>&gt;<i>       |eth0
</I>&gt;<i>       |
</I>&gt;<i>  The Rest of My Lan
</I>
Ooooooh, an ASCII-gram.

First: read up on the 'ip' tool that comes with iproute2.
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
Third: make a multipath route over the two ppp links. This will dynamically
       balance packets over the two links, based on the destination adresses.

Hope this helps.

Doei, Arthur.

-- 
  /\    / |      <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A>      | 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



</PRE>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LARTC] Load Sharing PPP Connections on an Masqed LAN
  2000-12-04  3:33 [LARTC] Load Sharing PPP Connections on an Masqed LAN Hexxor
  2000-12-04  3:48 ` Lisle
  2000-12-04  8:05 ` Arthur
@ 2000-12-05  5:12 ` Rogerio
  2000-12-05 15:37 ` Arthur
  3 siblings, 0 replies; 5+ messages in thread
From: Rogerio @ 2000-12-05  5:12 UTC (permalink / raw)
  To: lartc

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

&gt;<i> Third: make a multipath route over the two ppp links. This will dynamically
</I>&gt;<i>        balance packets over the two links, based on the destination adresses.
</I>
	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

	(so that I can use both my ppp connection and my DSL?)

	I tried the above and it &quot;partially&quot; works: I have problems
	accessing some www sites (Netscape shows me &quot;No route to
	host&quot;), 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?


	Thank you very much for any comments, Roger...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  Rogerio Brito - <A HREF="mailto:rbrito@iname.com">rbrito@iname.com</A> - <A HREF="http://www.ime.usp.br/~rbrito/">http://www.ime.usp.br/~rbrito/</A>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

</PRE>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LARTC] Load Sharing PPP Connections on an Masqed LAN
  2000-12-04  3:33 [LARTC] Load Sharing PPP Connections on an Masqed LAN Hexxor
                   ` (2 preceding siblings ...)
  2000-12-05  5:12 ` Rogerio
@ 2000-12-05 15:37 ` Arthur
  3 siblings, 0 replies; 5+ messages in thread
From: Arthur @ 2000-12-05 15:37 UTC (permalink / raw)
  To: lartc

<PRE>On Tue, 5 Dec 2000, Rogerio Brito wrote:

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

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

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

-- 
  /\    / |      <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A>      | 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



</PRE>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-12-05 15:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-04  3:33 [LARTC] Load Sharing PPP Connections on an Masqed LAN Hexxor
2000-12-04  3:48 ` Lisle
2000-12-04  8:05 ` Arthur
2000-12-05  5:12 ` Rogerio
2000-12-05 15:37 ` Arthur

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.