Hi! 1. Any particular reason why you need to use NAT for load-balancing on the same network segment? why not try DR instead? 2. If you really need NAT, you could create a "servers network" (it doesn't matter if they are on the same network segment, you just need them to be on different networks, ej. 192.168.1.0/24).
On Fri, Nov 28, 2008 at 2:16 PM, luca boncompagni <[EMAIL PROTECTED]> wrote: > Hi all, > > I need to balance a cluster of servers inside the same subnet as below: > > _______________________________________________________________ > | | | | > C=10.3.136.23 VS=10.3.136.24 R1=10.3.136.25 R2=10.3.136.26 > _____________ _____________ _____________ _____________ > | | | | | | | | > | client | | director | | realserver1 | | realserver2 | > |_____________| |_____________| |_____________| |_____________| > > The director is a debian/testing with > - kernel 2.6.26-1-686 > - ipvsadm v1.24 2005/12/10 (compiled with popt and IPVS v1.2.0) > > I use: > > ipvsadm -A -t 10.3.136.24:80 -s rr > ipvsadm -a -t 10.3.136.24:80 -r 10.3.136.25:80 -m > ipvsadm -a -t 10.3.136.24:80 -r 10.3.136.26:80 -m > > and i try with: > > iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 10.3.136.24 > > but SNAT is not working. > > How can I do? > > Thanks, > Luca > > _______________________________________________ > LinuxVirtualServer.org mailing list - [email protected] > Send requests to [EMAIL PROTECTED] > or go to http://lists.graemef.net/mailman/listinfo/lvs-users > _______________________________________________ LinuxVirtualServer.org mailing list - [email protected] Send requests to [EMAIL PROTECTED] or go to http://lists.graemef.net/mailman/listinfo/lvs-users
