DragonFly users List (threaded) for 2005-05
Re: networking question...
:say there exist two servers, server0 and server1, both running
:each server has two ethernet ports, em0 and em1...
:em0 on each server is connected to the net at 10mbps, and say their
:public ip's are 22.214.171.124/24 and 126.96.36.199/24 respectively...
:the servers are connected together on their em1's at 1000mbps, and say
:their ip's are 192.168.0.0/24 and 192.168.1.0/24 respectively...
:em0(188.8.131.52/24) em0 (184.108.40.206/24)
:say server0 is very busy and its 10mbps connection to the internet is
:congested, while server1 doesn't use much bandwidth to the internet...
:is it possible to somehow route some of server1's public ip's through
:server1 to em1 on server0, so that server0 can make use of server1's
:bandwidth? if so, how would this be done? if not, any other
:suggestions? i hope it is clear what i am trying to say, networking is
:not my area of expertise (i'm sure that is clear) :)
You can route outgoing bandwidth, but not incoming bandwidth.
There are two ways to do this.
First, when operating on connections initiated from the outside into
one of the two servers, you can try routing the originating IP to
your other server and see if the ISP on the other server accepts the
packet or filters it out. The ISP may filter it out for not having
the correct source IP address (and in fact, this is likely).
Second, when initiating connections from within your network, since
your internal addresses are NAT'd, you can route said connections based
on the target address to your other server. Assuming that both servers
default out to their respective internet connections and both servers
are running NAT. This should work regardless.
Doing actual load balancing is another problem entirely.