On Mon, Jun 23, 2003 at 05:44:20PM +1000, James Bourne wrote:
> I want to setup multiple VIPs using LVS-DR (for SSL virtual hosting).
> I'm stuck on general setup ...
>
> Sample haresources (obviously this only sets up a single interface alias
> and gratuitous arp - do I need two lines here?):
>
> director00.domain.com IPaddr::10.10.2.128
> ldirectord::/path/to/ldirectord.conf
Try something like this, all on one line.
director00.domain.com IPaddr::10.10.2.128 IPaddr::10.10.2.129
ldirectord::/path/to/ldirectord.conf
> Sample from ldirectord.conf (this works fine):
>
> virtual = 10.10.2.128:443
> real = 10.10.2.20:443 gate
> real = 10.10.2.21:443 gate
> service = https
> scheduler = wrr
> protocol = tcp
> checktype = negotiate
> persistent = 60
> netmask = 255.255.255.255
>
> virtual = 10.10.2.129:443
> real = 10.10.2.20:443 gate
> real = 10.10.2.21:443 gate
> service = https
> scheduler = wrr
> protocol = tcp
> checktype = negotiate
> persistent = 60
> netmask = 255.255.255.255
>
> I also assume I need multiple loopback aliases on each real server ...
Yes, though observe that a single loopback alias can cover
multiple addresses by setting the netmask accordingly.
E.g. to cover 10.10.2.128 and 10.10.2.129 use
lo:0 10.10.2.128 netmask 255.255.255.254
Also, note, that if you want to have a lot of VIPs then
then using fwmarks is usually easier than managing lots of aliases.
--
Horms
|