diff options
Diffstat (limited to 'zarb-ml/mageia-discuss/20101026/002684.html')
| -rw-r--r-- | zarb-ml/mageia-discuss/20101026/002684.html | 128 |
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: +><i> On Monday 25 October 2010, you wrote: +</I>><i> > Op maandag 25 oktober 2010 00:56:32 schreef P. Christeas: +</I>><i> > > On Sunday 24 October 2010, Maarten Vanraes wrote: +</I>><i> > > > I would propose the following: +</I>><i> > > > +</I>><i> > > > A.) by default, add for every interface, a little advanced routing +</I>><i> > > > which makes packets return from the same way they came. +</I>><i> > > > This usually is only useful with incoming packets, but can still be +</I>><i> > > > useful if laptops have for example 2 gateways because the wifi is +</I>><i> > > > still on and the cable is too. That would mean that from both +</I>><i> > > > interfaces it'd be possible to use ssh or vnc or whatever. +</I>><i> > > > +</I>><i> > > > B.) if we have multiple gateways (like in that case), have them use +</I>><i> > > > both balancedly. ie: start a small daemon which checks which of the +</I>><i> > > > gateways is up or down; and change the default gateway accordingly, +</I>><i> > > > or even both in some kind of balanced mode. (with advanced routing.) +</I>><i> > > > +</I>><i> > > > This would have the benefit, if you have really clueless users with a +</I>><i> > > > laptop; that everything will still work well. and you're still able +</I>><i> > > > to take over his laptop. +</I>><i> > > +</I>><i> > > Will that do ? : +</I>><i> > > <A HREF="http://git.hellug.gr/?p=xrg/ip-multipath;a=summary">http://git.hellug.gr/?p=xrg/ip-multipath;a=summary</A> +</I>><i> > > +</I>><i> > > (note to myself: I have to build a man^Hgeia rpm..) +</I>><i> > +</I>><i> > This looks like something different than what i intended; isn't this more +</I>><i> > of a configured thing? +</I>><i> > +</I>><i> > I would propose some changes to the networkingscripts. when having +</I>><i> > gateway addresses (through various means) to change the stuff. +</I>><i> +</I>><i> Please excuse me for the lack of documentation. +</I>><i> This script is an addon over the if-up scripts, which adds the support for +</I>><i> multiple gateways to and from the internet. +</I>><i> You only need to place this script in +</I>><i> /etc/sysconfig/network-scripts/ifup.d/ and then some extra variables will +</I>><i> help you configure the interfaces: MULTIPATH_TABLE=10 # needed, just a +</I>><i> unique one per interface +</I>><i> MULTI_GATEWAY_IN=1.2.3.4 # if this is a gateway route, but don't want to +</I>><i> use # the interface by default +</I>><i> MULTI_GATEWAY=1.2.3.4 # default route, along with other interfaces. +</I>><i> +</I>><i> The functionality is provided by kernel itself. By using multiple kernel +</I>><i> routing tables, the first thing you achieve is to have your server listen +</I>><i> on all its internet-routing interfaces, so that you can connect *to* your +</I>><i> server from any of them. This is _extremely_ useful, because it allows you +</I>><i> to ssh to the server from /any/ interface that works, and then fix all the +</I>><i> others. Saves the day. +</I>><i> The second one, a little more tricky, is to have multiple routes to the +</I>><i> internet. With TCP connections, this works /almost/ fine, because it may +</I>><i> assign each connection to a different gateway, thus load-balancing. With +</I>><i> UDP ones, well, this is not really working (AFAIK). However, if you also +</I>><i> give different weights, it may activate the kernel's /slow/ transition +</I>><i> mechanism (5-10 min responses), which will automatically pick the first +</I>><i> working interface as its default gw (even if all interfaces are up and +</I>><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> |
