Michael Nguyen wrote: > Hey guys, > > So I've been trying to move over our servers to an LVS setup, but I've > come across a question. Using the great docs, I've been able get things > working for one site, but what if I have the following: > > Load Balancer: > (5) Public IPs > (1) Private IP > > Real Servers (10 total): > (5) Public IPs each (1) Private IP each > > Each real server runs the same five websites on the five public IPs. So > for example, all 10 servers run www.sandycat.com on their first public > IP and all 10 servers run www.twentyten.org on their second public IP > etc. Being that there's only one TUN interface, how would I balance all > of these web servers and sites using LVS? > > I hope that's clear. If it's not, let me know and I'll describe in more > concrete terms. > > You can create aliases for the tunnel device just as you can create alias interfaces for an ethernet NIC.
For example, you can do: ifconfig tunl0:0 192.168.1.1 netmask 255.255.255.255 broadcast 192.168.1.1 ifconfig tunl0:1 192.168.1.2 netmask 255.255.255.255 broadcast 192.168.1.2 ..... I have not done this myself but I think this should work for you. John > Michael > > > > > _______________________________________________ > Please read the documentation before posting - it's available at: > http://www.linuxvirtualserver.org/ > > LinuxVirtualServer.org mailing list - [email protected] > Send requests to [email protected] > or go to http://lists.graemef.net/mailman/listinfo/lvs-users > > _______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - [email protected] Send requests to [email protected] or go to http://lists.graemef.net/mailman/listinfo/lvs-users
