Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here are requirements:
1. High Availability
2. Load Balancing

First configuration
1. Two linux servers have been configured with one static IP for each:,
2. Keepalived has been installed and configured with one VRRP instance to provide one virtual IP ( as VIP, as master and as backup).
3. Everything works fine. The VIP is assigned to the master server ( as long as it is up and running. As soon as it goes down, the VIP will be assigned to the backup server (
4. The problem here is all communication goes to the master server.

Second configuration
1. I found active-active configuration for Keepalived which is possible by defining more than one VRRP instance. So that both server have two IPs (real and virtual for server #1 and real and virtual for server #2.
2. Everything works fine. we have two VIPs which are accessible (HA). But all communication coming to each IP still goes to one single machine (either server #1 or #2 depending on the IP). However I found some tricks on the DNS to overcome this limitation. But it's not acceptable in our case.

Is there any way to have one virtual IP which is assigned to both servers? By that I mean both servers are handling some part of workload (like the thing we do in web server load balancing)? By using either keepalived or some other tools?

Thanks in advance.

share|improve this question
up vote 0 down vote accepted

After some investigations, I found CLUSTERIP extension of IPTABES useful for this purpose. Just google it.

For me, at first, it was a bit hard to configure and get the system up. But finally based on a PDF document by Michael Schwartzkopff I managed to do. Unfortunately I forgot the link on the web. However I have the document, just in case. More information might be useful on another question of mine in this regard:

iptable CLUSTERIP doesn't work

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.