0

I am trying to implement IP Load Balancing using LVS Direct routing method. Now Ideally there is a virtual IP assigned to the Load Balancer server, but I have only 3 IP addresses.

I am using 10.209.104.6 for Load balancer node 10.209.104.5 and 10.209.104.7 for two real servers.

1 Answers1

1

I don't see any benefit from saving one private IPv4 address (unless you ran out of private IPs like using very tight subnet which is difficult to modify), but it seems to be possible using 3 IPs for one load balancer and 2 real servers.

As stated in the documentation, you need to assign VIP to load balancer in addition to real servers (real servers should not respond to ARP requests). The remaining two IPs are assigned to the two real servers.

The client traffic destined to VIP is directed from router/gateway to load balancer (respond to ARP) and then directed to real servers are configured.

You should consider using another load balancer to eliminate single point of failure.

Khaled
  • 36,533
  • 8
  • 72
  • 99
  • thank you. Yes, I have gone through the documentation, they have used one VIP address. But I was qurious about, if we could, that is why I asked the question. – IAmSurajBobade Feb 14 '17 at 08:57