All of lore.kernel.org
 help / color / mirror / Atom feed
* Load balancing.
@ 2005-04-03 19:17 szpak
  2005-04-03 20:49 ` Pablo Neira
  2005-04-04  3:23 ` Grant Taylor
  0 siblings, 2 replies; 19+ messages in thread
From: szpak @ 2005-04-03 19:17 UTC (permalink / raw)
  To: netfilter

Hello.

I need help with I think something very easy to do with Iptables.

I need to have load balancing via nat for two or more ISP as in chart:

                           ------ ISP1
                          |          128.0.0.0/30        
<MY NET>---->[Linux NAT]-------- ISP2
192.168.0.0/24     |      80.0.0.0/30
                           ------ ISP3
                                   85.0.0.0/30

I have some users on my side and I want them to simply load balance trafic
from them via those three ISP's.  How to do that, is there a way to have three default static routes?

Thank You for any help it will be very usefull.

Xperience



^ permalink raw reply	[flat|nested] 19+ messages in thread
* Load balancing
@ 2005-04-04  9:46 Visham Ramsurrun
  0 siblings, 0 replies; 19+ messages in thread
From: Visham Ramsurrun @ 2005-04-04  9:46 UTC (permalink / raw)
  To: netfilter

Hi to all,

I have this rule:

iptables -t nat -A PREROUTING -i eth0 -o eth1 -d 192.0.34.72 -j dnat
--to-destination 192.168.1.3-192.168.1.4

It is supposed to be load balancing by taking the traffic from the
host (192.168.1.2)on which this rule is used and balancing between the
PCs with the ip addrs specified by the ip addr range
192.168.1.3-192.168.1.4.

What I would like to know what will happen if I apply this rule on the
PCs doing the load balancing (192.168.1.3-192.168.1.4). The two PCs
are connected back to back with a cross-over cable. The interfaces
used for this connection are both eth1.

                                                                      
 __________
 <MY NET>---->    -------- PC2 (192.168.1.3)------->|                 |
 192.168.1.2/24    |                                            | ROUTER   |
                           -------- PC1 (192.168.1.4)------->|__________|

If I apply the above rule on PC (192.168.1.3 instead of MY NET, will
it still load balance the traffic on the two PCs.

Regards,
Visham


^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <41BDA86F.8070108@rocsys.com>]
* LOAD BALANCING
@ 2003-07-12 19:05 Javier Govea
  0 siblings, 0 replies; 19+ messages in thread
From: Javier Govea @ 2003-07-12 19:05 UTC (permalink / raw)
  To: netfilter

Hi everybody,

I'm trying load balance the traffic on four ppp interfaces using iproute-2.4.7-9 but i'm
always getting a "dead pervasive" error message on my third interface (see below.) I'm
running redhat 9 with kernel 2.4.20-8. 

I read some messages posted on this mailing list and they said the problem can be fixed by
getting the iproute source code, compiling it, and installing it. But i already did that
and i'm still getting the same problem. Any suggestions or ideas????

Here is what i'm typing:

ip route add default equalize \
   nexthop via nexthop xxx.xxx.xxx.xxx dev ppp0 weigth 1 \
   nexthop via nexthop xxx.xxx.xxx.xxx dev ppp1 weight 1 \
   nexthop via nexthop xxx.xxx.xxx.xxx dev ppp2 weight 1 \
   nexthop via nexthop xxx.xxx.xxx.xxx dev ppp3 weight 1

Here is what i'm getting:

default equalize
     nexthop via xxx.xxx.xxx.xxx dev ppp0 weight 1
     nexthop via xxx.xxx.xxx.xxx dev ppp1 weight 1
     nexthop via xxx.xxx.xxx.xxx dev ppp2 weight 1 dead pervasive
     nexthop via xxx.xxx.xxx.xxx dev ppp3 weight 1

Thanx to all
X


^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Load Balancing
@ 2003-04-03  7:40 Allan de Borde
  0 siblings, 0 replies; 19+ messages in thread
From: Allan de Borde @ 2003-04-03  7:40 UTC (permalink / raw)
  To: mgm; +Cc: netfilter

Thanks,

I didn't have the Kernel Development installed so installed it and then I could compile the latest iproute.
With this version of iproute the ip route list command has lost the dead onlink pervasive message
and it all looks ok. I will have to test further but it's looking good.

Cheers,
Allan 

>>> "Matthew G. Marsh" <mgm@paktronix.com> 04/02/03 05:43pm >>>
On Wed, 2 Apr 2003, Allan de Borde wrote:

> I am trying to test the load balancing on a test machine with 2 external
> 2Mb Internet links and it doesn't appear to be working. I am using
> RedHat 8.0 and get this message when doing ip route list:
>
> default equalize
>         nexthop via xxx.xxx.xxx.xxx  dev eth1 weight 1 dead onlink pervasive
>         nexthop via xxx.xxx.xxx.xxx  dev eth0 weight 1 onlink
>
> I have read a similar problem from this list and it appears that the
> RedHat RPM of iproute2 (iproute-2.4.7-5) is broken and this was resolved
> by installing a newer version of iproute.
>
> As I am very new to some aspects of Linux could someone inform me of how
> to compile and install iproute as it asks for you to change the
> KERNEL_INCLUDE directory in the Makefile and I have no idea where the
> Kernel include directory is. I can't get it to make.

KERNEL_INCLUDE=/usr/src/linux

Even RH symlinks /usr/src/linux to the appropriate version of kernel
installed. Make sure that you have installed the kernel development RPM as
that has the actual include files. Not installed by default unless you
installed the Developer workstation.

> I have downloaded and installed iproute-2.4.7-7.rpm but this also has the same problems.
>
> Cheers
> Allan
>
>
>
>
>
>

--------------------------------------------------
Matthew G. Marsh,  President
Paktronix Systems LLC
1506 North 59th Street
Omaha  NE  68104
Phone: (402) 553-2288
Email: mgm@paktronix.com 
WWW:  http://www.paktronix.com 
--------------------------------------------------








^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Load Balancing
@ 2003-04-02 15:24 Carlos Ble
  0 siblings, 0 replies; 19+ messages in thread
From: Carlos Ble @ 2003-04-02 15:24 UTC (permalink / raw)
  To: netfilter

>I am trying to test the load balancing on a test machine with 2 external 2Mb 
>Internet links and it doesn't appear to be working. I am using RedHat 8.0 
>and get this message when doing ip route list:
>
>default equalize
>       nexthop via xxx.xxx.xxx.xxx  dev eth1 weight 1 dead onlink pervasive
>       nexthop via xxx.xxx.xxx.xxx  dev eth0 weight 1 onlink
>
>I have read a similar problem from this list and it appears that the RedHat 
>RPM of iproute2 (iproute-2.4.7-5) is broken and this was resolved by 
>installing a newer version of iproute.
>
>As I am very new to some aspects of Linux could someone inform me of how to 
>compile and install iproute as it asks for you to change the KERNEL_INCLUDE 
>directory in the Makefile and I have no idea where the Kernel include 
>directory is. I can't get it to make.

>I have downloaded and installed iproute-2.4.7-7.rpm but this also has the 
>same problems.

>Cheers
>Allan

When you install the kernel source, the kernel_include directory uses to be 
placed in /usr/src/linux-2.4.20/include or something like that.
Are you sure you are typing the commands properly ?.
Here you are an example:
ip route add table balancing eql nexthop via <eth2-ip> dev eth2 nexthop via
 <eth3-ip> dev eth3

Good luck!

                                       




^ permalink raw reply	[flat|nested] 19+ messages in thread
* Load Balancing
@ 2003-04-02 11:16 Allan de Borde
  2003-04-02 16:43 ` Matthew G. Marsh
  0 siblings, 1 reply; 19+ messages in thread
From: Allan de Borde @ 2003-04-02 11:16 UTC (permalink / raw)
  To: netfilter

I am trying to test the load balancing on a test machine with 2 external 2Mb Internet links and it doesn't appear to be working. I am using RedHat 8.0 and get this message when doing ip route list:

default equalize
        nexthop via xxx.xxx.xxx.xxx  dev eth1 weight 1 dead onlink pervasive
        nexthop via xxx.xxx.xxx.xxx  dev eth0 weight 1 onlink

I have read a similar problem from this list and it appears that the RedHat RPM of iproute2 (iproute-2.4.7-5) is broken and this was resolved by installing a newer version of iproute.

As I am very new to some aspects of Linux could someone inform me of how to compile and install iproute as it asks for you to change the KERNEL_INCLUDE directory in the Makefile and I have no idea where the Kernel include directory is. I can't get it to make.

I have downloaded and installed iproute-2.4.7-7.rpm but this also has the same problems.

Cheers
Allan







^ permalink raw reply	[flat|nested] 19+ messages in thread
* Load Balancing
@ 2003-04-02 10:59 Allan de Borde
  0 siblings, 0 replies; 19+ messages in thread
From: Allan de Borde @ 2003-04-02 10:59 UTC (permalink / raw)
  To: netfilter

I am trying to test the load balancing on a test machine with 2 external 2Mb Internet links and it doesn't appear to be working. I am using RedHat 8.0 and get this message when doing ip route list:

default equalize
        nexthop via xxx.xxx.xxx.xxx  dev eth1 weight 1 dead onlink pervasive
        nexthop via xxx.xxx.xxx.xxx  dev eth0 weight 1 onlink

I have read a similar problem from this list and it appears that the RedHat RPM of iproute2 (iproute-2.4.7-5) is broken and this was resolved by installing a newer version of iproute.

As I am very new to some aspects of Linux could someone inform me of how to compile and install iproute as it asks for you to change the KERNEL_INCLUDE directory in the Makefile and I have no idea where the Kernel include directory is. I can't get it to make.

I have downloaded and installed iproute-2.4.7-7.rpm but this also has the same problems.

Cheers
Allan







^ permalink raw reply	[flat|nested] 19+ messages in thread
* Load balancing
@ 2003-03-17 21:29 Walsh, Ed
  2003-03-17 21:44 ` Nathan
  2003-03-18  7:48 ` Jamie Harris
  0 siblings, 2 replies; 19+ messages in thread
From: Walsh, Ed @ 2003-03-17 21:29 UTC (permalink / raw)
  To: linux-admin

Hi all,

Does anyone know of a very good way to do website load balancing? I don't
want to use apache mods to do this. I thought of Beowulf Clustering but I'm
not exactly sure if this will work since it's last updated info is 1998
(anything recent?).

I'm running a farm of RedHat Linux 7.1 and 7.3. Any advice is much
appreciated.

Thanks, 

Ed Walsh
Senior System Engineer
Wrenchead.com
email: ewalsh@wrenchead.com


^ permalink raw reply	[flat|nested] 19+ messages in thread
* load balancing
@ 2003-02-03 13:49 Sander Sneekes
  2003-02-03 14:35 ` Sander Sneekes
  0 siblings, 1 reply; 19+ messages in thread
From: Sander Sneekes @ 2003-02-03 13:49 UTC (permalink / raw)
  To: Netfilter Mailing List

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

Hi all,

I need to load balance between 2 webserver 
what is the most fastest way of doing this?
With iptables? if yes wich line's do i need to use
i have a RH 7.2 with iptables running already doing
al network traffic

cheers
Sander

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

^ permalink raw reply	[flat|nested] 19+ messages in thread
* WOOHOO!!!!!! IDEDMA Timeouts!!
@ 2001-01-04 10:43 Andre Hedrick
  2001-01-04 11:31 ` Load balancing John Brosnan
  0 siblings, 1 reply; 19+ messages in thread
From: Andre Hedrick @ 2001-01-04 10:43 UTC (permalink / raw)
  To: linux-kernel


I have a 95% solution that prevents that hang.
It invokes some other minor kernel bugs because of the hack, but it
recovers ad keeps on trucking.

I now have to fine tune the NASTY-ARSE-HACK and test for
possible corruption, but it looks like none to be found do date.

Cheers,

Andre Hedrick
CTO Timpanogas Research Group
EVP Linux Development, TRG
Linux ATA Development

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2005-04-04  9:46 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-03 19:17 Load balancing szpak
2005-04-03 20:49 ` Pablo Neira
2005-04-04  3:23 ` Grant Taylor
  -- strict thread matches above, loose matches on Subject: below --
2005-04-04  9:46 Visham Ramsurrun
     [not found] <41BDA86F.8070108@rocsys.com>
2004-12-13 14:19 ` Load Balancing Trent Lloyd
2003-07-12 19:05 LOAD BALANCING Javier Govea
2003-04-03  7:40 Load Balancing Allan de Borde
2003-04-02 15:24 Carlos Ble
2003-04-02 11:16 Allan de Borde
2003-04-02 16:43 ` Matthew G. Marsh
2003-04-02 10:59 Allan de Borde
2003-03-17 21:29 Load balancing Walsh, Ed
2003-03-17 21:44 ` Nathan
2003-03-18  7:48 ` Jamie Harris
2003-02-03 13:49 load balancing Sander Sneekes
2003-02-03 14:35 ` Sander Sneekes
2003-02-03 16:30   ` Daniel F. Chief Security Engineer -
2003-02-04 15:35     ` Sander Sneekes
2001-01-04 10:43 WOOHOO!!!!!! IDEDMA Timeouts!! Andre Hedrick
2001-01-04 11:31 ` Load balancing John Brosnan

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.