Hi Emilio,
It is the easiest way to let LVS be the gateway, but it is not necessary.
Me and a colleague are currently working on a setup that uses policy
routing on the main router and having the lvs router separate. Like this:
client
|
lvs --- router
|
realserver
It works, but you will have to be able to send the return traffic from
the realserver to LVS when you use LVS with destination translation.
Otherwise it doesn't get untranslated and the client will not understand
the reply from the realserver.
This is what you have in your first setup where client and realserver
are in the same subnet.
The realserver will send the reply straight to the client. If you are
using NAT and the reply from the realserver does not go through LVS:
this will not work.
The second setup may not work because again the return traffic from the
real does not get untranslated by the LVS router.
I hope this helps you.
With kind regards,
Tom van Leeuwen
On 06/02/2011 07:21 PM, Emilio Campos wrote:
> Hi Tom, thanks about your reply, and thanks about your help, is useful for me.
> I cant add some keepalive configuration or ipvsadmin because I tried
> a lot of, with nothing clearly, but I can explain a general example
> about my architecture
>
> client (192.168.1.0/24) ----- lvs (192.168.1.100/24) ------
> real-server (192.168.1.0/24)
>
> all members in the same network
>
> I am reading and understanding the lvs functionalytie, and reading
> about LVS-NAT on the same networking.
>
> ON other case this could be my architecture:
>
> client (0.0.0.0/0) ----- lvs (192.168.1.100/24) ------ real-server
> (192.168.1.0/24)
>
> never my load balancer (lvs) will work like a gateway, because this
> service is now working with other product. I readed a lot of examples
> with lvs like a gateway, is this the only way that lvs works?
>
> Thanks
>
> 2011/6/2 Tom van Leeuwen<tom.van.leeuwen@xxxxxxxxxxxxx>:
>> Hi Emilio,
>>
>> I would like to help you, but you are not giving a lot of information.
>> I always supply a quick ascii drawing of my setup, maybe something like:
>>
>> client-host (10.0.0.10/24) ---- (10.0.0.1/24) lvs-server
>> (192.168.0.1/24) ---- (192.168.0.10/24) real-server
>> If you state the output of 'ipvsadm -ln' we know what your lvs is doing.
>>
>> Including your keepalived config might also help a bit.
>>
>> When you have given your setup, say what you expect and what you
>> experience. That's more practical to troubleshoot for me at least.
>>
>> With kind regards,
>> Tom van Leeuwen
>> ------------------------------------------------------------------------
>> This e-mail is intended exclusively for the addressee(s), and may not be
>> passed on to, or made available for use by any person other than the
>> addressee(s). SaaSplaza rules out any and every liability resulting from
>> any electronic transmission.
>> ------------------------------------------------------------------------
>>
>> signature_card
>>
>> On 06/02/2011 09:56 AM, Emilio Campos wrote:
>>> Hi to everybody, I am new user with LVS, I just readed the entire
>>> documentation of lvs on the official web, and I configured some
>>> examples, but didnt work, I am trying configure LVS-NAT with ipvsadm
>>> and keepalived, but this don't work for me, I can connect on virtual
>>> port from server where lvs is running , but I can't connect to virtual
>>> port from client node, and I configured port forwarding on /proc
>>>
>>> Would you send me reference to some web, mails, etc for read and
>>> configure examples, I am sure that some is bad on my configuration.
>>> I am working with kernel 2.6.32
>>>
>>> Any information for understand the LVS philosophy will be welcomed
>>>
>>> Thanks!
>>>
>> _______________________________________________
>> Please read the documentation before posting - it's available at:
>> http://www.linuxvirtualserver.org/
>>
>> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
>> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
>> 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@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|