Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] Multiple Interfaces, LVS-TUN

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


michaeln at u

Apr 22, 2009, 3:32 PM

Post #1 of 2 (680 views)
Permalink
[lvs-users] Multiple Interfaces, LVS-TUN

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.


Michael




_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


jjohndu at gmail

Apr 22, 2009, 5:00 PM

Post #2 of 2 (630 views)
Permalink
Re: [lvs-users] Multiple Interfaces, LVS-TUN [In reply to]

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 - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> 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 - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.