Odd question about load balancing
Hello there, i have a very special case about load balancing...
Here is my setup:
________
+------------+ /
| | |
+-------------+ ADSL ROUTER+-------
__ | | | /
___/ \_ +------+-------+ +------------+ |
_/ \__ | if1 | /
/ \ | | |
| Local network -----+ Linux router | | Internet
\_ __/ | | |
\__ __/ | if2 | \
\___/ +------+-------+ +------------+ |
| | | \
+-------------+ADSL ROUTER +-------
| | |
+------------+ \________My load balancing is working great right now, but I have my dsl routers acting as multiple-users access, and hence doing NAT. Since my Linux is also doing NAT I want to connect the DSL routers acting as single-users and hence avoid doing NAT two times per connection.
What I have to do, is change the public address on my dsl router as a mix of the mask and the actual public address, and assign the public ip to IF1 ( or IF2 in each case)
The problem comes when, my public address is:
IP1: XXX.XXX.XXX.1 IP2: same but ending in .2
MASK 255.255.255.0
To get the new local address for the router, y have to do the following:
(1 AND 0) +1 for router1 and (2 AND 0) +1 for router2.
And I have the next problem:
Both routers will have the same IP ADDRESS, and hence they will both be on
the same network.
When y set up my load balancing a year ago, I red somewhere both connections have to be under different networks, is that right?
Will load balancing know which interface has to use for each connection??
Can I set up my dsl routers the way I want them to work??
Has any body done that???
Thank you!!
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello GoMi,
Quoted 1 line
Hello there, i have a very special case about load balancing...
---snip----
Quoted 3 lines
And I have the next problem:
Both routers will have the same IP ADDRESS, and hence they will both be on
the same network.
I didn't really understand what you were writing about there.... but don't you just want to put your DSL routers into some type of 'bridging' mode, and then configure the IP addresses on your linux router ?
(you may have to run PPPoE or something on the linux interfaces).
Quoted 3 lines
When y set up my load balancing a year ago, I red somewhere both connections have to be under different networks, is that right?
Will load balancing know which interface has to use for each connection??
Unless your ISP(s) is doing incredibly tricky things with routing, you can't have 2 devices on the Internet with the same real IP address.
Quoted 2 lines
Can I set up my dsl routers the way I want them to work?? Has any body done that???
I still don't really understand what's different between your setup and all the other people who have 2 DSL connections to the internet.
Regards,
Signature · 10 lines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: [email protected] SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- Free Embedded Linux Distro at http://www.snapgear.org --- _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I am sorry about my previous email, it was a bit off a mess...
Let me explain my self, I have my dsl routers working doing nat, and I want to set them up as a bridge but doing load balancing.
My public ip addresses are :
XXX.XXX.XXX.1 for dsl 1 and the same ending in .2 for dsl 2
Since I have to put the ip public address on the linux Ethernet cards, and they both have the same netmask address, will loadbalancing work?
I red somewhere they have to be in different subnets in order to work
Am I right? Can I set them as bridge mode?
-----Mensaje original-----
De: Damion de Soto [mailto:[email protected]] Enviado el: lunes, 31 de mayo de 2004 2:34
Para: GoMi
CC: [email protected]
Asunto: Re: [LARTC] Odd question about load balancing
Hello GoMi,
Quoted 1 line
Hello there, i have a very special case about load balancing...
---snip----
Quoted 2 lines
And I have the next problem:
Both routers will have the same IP ADDRESS, and hence they will both be
on
Quoted 1 line
the same network.
I didn't really understand what you were writing about there.... but don't you just
want to put your DSL routers into some type of 'bridging' mode, and then configure
the IP addresses on your linux router ?
(you may have to run PPPoE or something on the linux interfaces).
Quoted 1 line
When y set up my load balancing a year ago, I red somewhere both
connections
Quoted 2 lines
have to be under different networks, is that right?
Will load balancing know which interface has to use for each connection??
Unless your ISP(s) is doing incredibly tricky things with routing, you can't have 2
devices on the Internet with the same real IP address.
Quoted 2 lines
Can I set up my dsl routers the way I want them to work?? Has any body done that???
I still don't really understand what's different between your setup and all the other
people who have 2 DSL connections to the internet.
Regards,
Signature · 13 lines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: [email protected] SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- Free Embedded Linux Distro at http://www.snapgear.org --- _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/