LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] LVS-DR vs. LVS-NAT

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] LVS-DR vs. LVS-NAT
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Wed, 06 Feb 2008 10:27:30 +0000
On Wed, 2008-02-06 at 11:19 +0100, Andreas Altenburg wrote:
> Yes, i understand. But another question: I have problems configuring  
> the realserver with one internal (real) IP and the VIP on the lo  
> interface (with the director as the gateway of the lo):

OK, step-by-step:

> ifconfig eth1 192.168.0.2 netmask 255.255.255.0 broadcast  
> 192.168.0.255 up

Fine.

> route add -net 192.168.0.0 netmask 255.255.255.0 dev eth1

Fine.

> ifconfig lo:0 <VIP> netmask 255.255.255.255 broadcast <VIP> up

Fine.

> route add -host <VIP> dev lo:0

You don't need this. If the VIP is already local, no route needs
configuring.

However, I don't see any errors, so I don't understand the problem.

> Where is my mistake? I do not want the real server to have a public IP  
> in the same subnet as the VIP on eth0. My VIP is a public IP. Hope,  
> you will understand my problem ;-)

I'm not sure I do, no.

For -DR, the realserver _needs_ to have the VIP on a loopback (or other)
alias or it won't be able to create response packets.

Graeme



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