summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20101026/002684.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-discuss/20101026/002684.html')
-rw-r--r--zarb-ml/mageia-discuss/20101026/002684.html128
1 files changed, 128 insertions, 0 deletions
diff --git a/zarb-ml/mageia-discuss/20101026/002684.html b/zarb-ml/mageia-discuss/20101026/002684.html
new file mode 100644
index 000000000..bf08b7f4c
--- /dev/null
+++ b/zarb-ml/mageia-discuss/20101026/002684.html
@@ -0,0 +1,128 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-discuss] network balancing by default
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20network%20balancing%20by%20default&In-Reply-To=%3C201010261952.32361.maarten.vanraes%40gmail.com%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="002659.html">
+ <LINK REL="Next" HREF="002661.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-discuss] network balancing by default</H1>
+ <B>Maarten Vanraes</B>
+ <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20network%20balancing%20by%20default&In-Reply-To=%3C201010261952.32361.maarten.vanraes%40gmail.com%3E"
+ TITLE="[Mageia-discuss] network balancing by default">maarten.vanraes at gmail.com
+ </A><BR>
+ <I>Tue Oct 26 19:52:32 CEST 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="002659.html">[Mageia-discuss] network balancing by default
+</A></li>
+ <LI>Next message: <A HREF="002661.html">[Mageia-discuss] Suggestions
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#2684">[ date ]</a>
+ <a href="thread.html#2684">[ thread ]</a>
+ <a href="subject.html#2684">[ subject ]</a>
+ <a href="author.html#2684">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Op dinsdag 26 oktober 2010 01:54:00 schreef P. Christeas:
+&gt;<i> On Monday 25 October 2010, you wrote:
+</I>&gt;<i> &gt; Op maandag 25 oktober 2010 00:56:32 schreef P. Christeas:
+</I>&gt;<i> &gt; &gt; On Sunday 24 October 2010, Maarten Vanraes wrote:
+</I>&gt;<i> &gt; &gt; &gt; I would propose the following:
+</I>&gt;<i> &gt; &gt; &gt;
+</I>&gt;<i> &gt; &gt; &gt; A.) by default, add for every interface, a little advanced routing
+</I>&gt;<i> &gt; &gt; &gt; which makes packets return from the same way they came.
+</I>&gt;<i> &gt; &gt; &gt; This usually is only useful with incoming packets, but can still be
+</I>&gt;<i> &gt; &gt; &gt; useful if laptops have for example 2 gateways because the wifi is
+</I>&gt;<i> &gt; &gt; &gt; still on and the cable is too. That would mean that from both
+</I>&gt;<i> &gt; &gt; &gt; interfaces it'd be possible to use ssh or vnc or whatever.
+</I>&gt;<i> &gt; &gt; &gt;
+</I>&gt;<i> &gt; &gt; &gt; B.) if we have multiple gateways (like in that case), have them use
+</I>&gt;<i> &gt; &gt; &gt; both balancedly. ie: start a small daemon which checks which of the
+</I>&gt;<i> &gt; &gt; &gt; gateways is up or down; and change the default gateway accordingly,
+</I>&gt;<i> &gt; &gt; &gt; or even both in some kind of balanced mode. (with advanced routing.)
+</I>&gt;<i> &gt; &gt; &gt;
+</I>&gt;<i> &gt; &gt; &gt; This would have the benefit, if you have really clueless users with a
+</I>&gt;<i> &gt; &gt; &gt; laptop; that everything will still work well. and you're still able
+</I>&gt;<i> &gt; &gt; &gt; to take over his laptop.
+</I>&gt;<i> &gt; &gt;
+</I>&gt;<i> &gt; &gt; Will that do ? :
+</I>&gt;<i> &gt; &gt; <A HREF="http://git.hellug.gr/?p=xrg/ip-multipath;a=summary">http://git.hellug.gr/?p=xrg/ip-multipath;a=summary</A>
+</I>&gt;<i> &gt; &gt;
+</I>&gt;<i> &gt; &gt; (note to myself: I have to build a man^Hgeia rpm..)
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; This looks like something different than what i intended; isn't this more
+</I>&gt;<i> &gt; of a configured thing?
+</I>&gt;<i> &gt;
+</I>&gt;<i> &gt; I would propose some changes to the networkingscripts. when having
+</I>&gt;<i> &gt; gateway addresses (through various means) to change the stuff.
+</I>&gt;<i>
+</I>&gt;<i> Please excuse me for the lack of documentation.
+</I>&gt;<i> This script is an addon over the if-up scripts, which adds the support for
+</I>&gt;<i> multiple gateways to and from the internet.
+</I>&gt;<i> You only need to place this script in
+</I>&gt;<i> /etc/sysconfig/network-scripts/ifup.d/ and then some extra variables will
+</I>&gt;<i> help you configure the interfaces: MULTIPATH_TABLE=10 # needed, just a
+</I>&gt;<i> unique one per interface
+</I>&gt;<i> MULTI_GATEWAY_IN=1.2.3.4 # if this is a gateway route, but don't want to
+</I>&gt;<i> use # the interface by default
+</I>&gt;<i> MULTI_GATEWAY=1.2.3.4 # default route, along with other interfaces.
+</I>&gt;<i>
+</I>&gt;<i> The functionality is provided by kernel itself. By using multiple kernel
+</I>&gt;<i> routing tables, the first thing you achieve is to have your server listen
+</I>&gt;<i> on all its internet-routing interfaces, so that you can connect *to* your
+</I>&gt;<i> server from any of them. This is _extremely_ useful, because it allows you
+</I>&gt;<i> to ssh to the server from /any/ interface that works, and then fix all the
+</I>&gt;<i> others. Saves the day.
+</I>&gt;<i> The second one, a little more tricky, is to have multiple routes to the
+</I>&gt;<i> internet. With TCP connections, this works /almost/ fine, because it may
+</I>&gt;<i> assign each connection to a different gateway, thus load-balancing. With
+</I>&gt;<i> UDP ones, well, this is not really working (AFAIK). However, if you also
+</I>&gt;<i> give different weights, it may activate the kernel's /slow/ transition
+</I>&gt;<i> mechanism (5-10 min responses), which will automatically pick the first
+</I>&gt;<i> working interface as its default gw (even if all interfaces are up and
+</I>&gt;<i> some of them respond with ICMP unreachable, it will work).
+</I>
+
+Ah, then i guess we are on the same page after all. the first part neatly
+conforms to my point A.
+
+now the thing is, you can indeed configure that; but perhaps it would be better
+to let it autoconfigure; depending on the IP address at the time, when the
+gateways are being added as default routes. thus not needing any extra
+configuration.
+
+i was under the impression that routes are being cached; so that even UDP will
+not have any problem here.
+
+I have not heard about /slow/ transition mechanism though; i don't know what
+you mean by this.
+</PRE>
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="002659.html">[Mageia-discuss] network balancing by default
+</A></li>
+ <LI>Next message: <A HREF="002661.html">[Mageia-discuss] Suggestions
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#2684">[ date ]</a>
+ <a href="thread.html#2684">[ thread ]</a>
+ <a href="subject.html#2684">[ subject ]</a>
+ <a href="author.html#2684">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss
+mailing list</a><br>
+</body></html>