LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] IPv6 loadbalancer and source addr selection

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] IPv6 loadbalancer and source addr selection
From: Ferenc Wagner <wferi@xxxxxxx>
Date: Thu, 09 Jan 2014 12:32:41 +0100
Anders Henke <anders.henke@xxxxxxxx> writes:

> On 08.01.2014, Michael Schwartzkopff wrote:
>
>> I want to set up a IPv6 load balancer in direct routing mode. So I configure 
>> a
>> IPv6 address an my loadbalancer and the same IPv6 addr on the lo interface of
>> the real servers.
>>
>> No to the problem:
>> Since the IPv6 is the last IPv6 address configured on the interface in that
>> subnet the loadbalancer uses this IPv6 addr to communicate with the real
>> server. The real server answers to the IPv6 addr on the lo interface and to
>> communication is possible.
>>
>> So no connection from the loadbalancer to the real server is possible.
>>
>> I found a solution via the ip -6 addlabel (see RFC 6724). No I am wondering 
>> if
>> the is a more simle solution. Any hints? Thanks.
>
> There are multiple ways to achieve this. [...]

Besides the very insightful stuff I elided above, what about adding a
local route for the VIP instead of adding the address?  Of course that
works only if the VIP traffic is routed to the address of your load
balancer (ie. you don't need neighbor discovery), but this way you can
handle full IPv6 subnets as well.
-- 
Regards,
Feri.

_______________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>