I am doing DR and the ARP problem makes sense. The part I still don't
understand is "I need a public and private VIP." The ISP I am using has
assigned me some IP addresses. I know how to use ifconfig to put
multiple addresses on an interface, that is no big deal, but what I
can't figure out is how to decide what IP address to use for the VIP. I
have looked up VIP and found many explanations, including ones that tie
it to lo, ones that say that it does not need to be tied to an interface
(and I don't know how to do that). Unless it is one of the ones my ISP
lets me use, then no one can get to me from the outside. I need to both
configure the machine and use it from outside the data center. I have
an IP address that I go into with ssh. If that is my RIP, then what
address should my VIP be? Should I request an address from my ISP that
I can use for the VIP and configure it on eth0? Do I get an address
from the ISP and have them configure the router so people can get to it?
-Don
> Hi,
>
> On Tue, 2009-05-19 at 23:27 -0700, Don Steiny wrote:
>
>> I found this recent and comprehensive documentation that is missing one
>> important thing. It tells that we need add a VIP, but to what? I have
>> machines that have 2 ethernet cards. On are on an internal subnet
>> 172.21.4.32 and so on, and the others go though the router to the
>> outside: 66.124.8.1 and so on. When it says "set up a VIP" and that it
>> can be "pinged from the outside" I am totally lost. Do I do an ifconfig
>> on eth0:1 or something like that? What ip address should I use? If I
>> make it part of the internal network, then I can't get to it from the
>> outside, if I make it part of the external, then the machines inside
>> can't see it. HELP!!
>>
>
> Think logically: if you need a VIP that can be reached from 'outside',
> it must be a public address, right? Also you don't mention which method
> of LVS you're going to use.
>
> Anyway, you'll need a public VIP and an internal VIP in the case of NAT:
>
> [client] -> [director] -> [realserver] -> [director] -> [client]
>
> And set the default gateway of your realserver to point to the internal
> VIP on the director to guarantee the packets travels back through the
> director to the client.
>
> If you use DR you'll need only a public VIP:
>
> [client] -> [director] -> [realserver] -> [client]
>
> The default gateway on the realserver can be set to its 'normal' value.
>
> Btw, all this is documented in the (mini-)HOWTO. There are even
> ready-to-run examples of DR/NAT that you can modify. I suggest you
> really read the HOWTO again because if this boggles you, you're in for a
> treat when it comes to the ARP problem ;)
>
> Good luck
>
>
_______________________________________________
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
|