LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: About LVS/DR

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: About LVS/DR
From: Matthew Crocker <matthew@xxxxxxxxxxx>
Date: Tue, 8 Jul 2003 09:15:31 -0400

On Monday, July 7, 2003, at 11:22 PM, Kai wrote:

Hi list.
 I am a newbie.I want to ask a question: under LVS/DR
mode,does it necessary that every real server must have a
global NIC ? I want to setup a network use  LVS/DR and
public it,but I have only one IP.Does it possible ?
 Thanks.


Yes, you can setup your cluster using LVS-DR and assign the RIP (Real IP) on each server from the private address space (192.168.1.x). With LVS-DR the VIP (Virtual IP) must be assigned to each cluster machine as well. The VIP needs to be a real Internet routable IP.

So,  setup you LVS cluster as follows

LVS Director #1  RIP = 192.168.1.1
LVS Director #1  VIP = 1.2.3.4

LVS Director #2 RIP = 192.168.1.2
LVD Director #2 VIP = 1.2.3.4

Use keepalived to manage the director active/passive state using VRRP and to monitor the real servers

Real Server #1 (RS1)  RIP = 192.168.1.11
RS1 VIP = 1.2.3.4

RS2 RIP = 192.168.1.12
RS2 VIP = 1.2.3.4

RS3 RIP = 192.168.1.13
RS3 VIP = 1.2.3.4

Remember, disable ARP on all real servers for the VIP address when using LVS-DR. The only machine that should respond to ARP requests on the VIP is the active LVS Director machine.


---
Kai

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users


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