Load balancing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux