* [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="iso-8859-1", 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:
><i> My problem is whne i dial in with both connections, it only routes the
</I>><i> internet through the last ppp connection i've made (usually
</I>><i> ppp1). This means that although ppp0 and ppp1 are connected to
</I>><i> the internet, my computers on the LAN (ip 192.168.1.x) are only
</I>><i> connecting through one modem.
</I>
You have set the `defaultroute' option to PPP. This is its intended effect.
><i> What I need is to know how to set up routing, or
</I>><i> Loadsharing so that i can utilise both modems over my Masqed network.
</I>
><i> My Desired Set Up:
</I>><i>
</I>><i> Internet Internet
</I>><i> | |
</I>><i> |ppp0 |ppp1
</I>><i> | |
</I>><i> _______________________________________
</I>><i> | Linux Box |
</I>><i> | IP Masquerading |
</I>><i> | routing or lOadsharing |
</I>><i> --------------------------------------------------
</I>><i> |
</I>><i> |eth0
</I>><i> |
</I>><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:
><i> Second: set up /etc/ppp/ip-up.local scripts (not exactly sure what Mandrake
</I>><i> uses for that, but that's what RedHat uses) to dynamically reroute
</I>><i> to the correct interfaces
</I>
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?
><i> Third: make a multipath route over the two ppp links. This will dynamically
</I>><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 "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?
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:
><i> On Dec 04 2000, Arthur van Leeuwen wrote:
</I>><i> > Second: set up /etc/ppp/ip-up.local scripts (not exactly sure what Mandrake
</I>><i> > uses for that, but that's what RedHat uses) to dynamically reroute
</I>><i> > to the correct interfaces
</I>><i>
</I>><i> Could you provide more information on what is meant by
</I>><i> "dynamically reroute"? By that you mean that ppp shouldn't add
</I>><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.
><i> > Third: make a multipath route over the two ppp links. This will dynamically
</I>><i> > balance packets over the two links, based on the destination adresses.
</I>><i>
</I>><i> Which way would I do this? Should I delete my default route
</I>><i> and use:
</I>><i>
</I>><i> # ip route add default scope global nexthop dev ppp0 nexthop dev eth0
</I>
That is correct.
><i> (so that I can use both my ppp connection and my DSL?)
</I>><i>
</I>><i> I tried the above and it "partially" works: I have problems
</I>><i> accessing some www sites (Netscape shows me "No route to
</I>><i> host"), while accessing others is fine (I can read slashdot
</I>><i> ok).
</I>><i>
</I>><i> It seems that the problem only occurs with TCP based services
</I>><i> (UDP based ones seem to be fine -- ICMP echo also seems fine).
</I>><i>
</I>><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