[lvs-users] LVS balancing real server with 2 ip address

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] LVS balancing real server with 2 ip address
From: "Roberto Galluzzi" <Roberto.Galluzzi@xxxxxxxxxxxx>
Date: Tue, 27 Sep 2011 08:47:54 +0200

I need balancing a single real server running 2 Squid instances on different ip 
address (but same interface). This is the the environment:


Kernel = 2.6.16
IPVS = 1.2.1
IPVSADM = 1.24

IP  =


eth0 =
eth0:vip =

net.ipv4.ip_forward = 0

ipvsadm -A -t -s lblc
ipvsadm -a -t -r -g
ipvsadm -a -t -r -g

------------------REAL SERVER------------------

Kernel = 2.6.32

Squid1 http_port =
Squid2 http_port =

eth0 =
eth0:ist2 =
lo:vip = (netmask

net.ipv4.conf.lo.arp_ignore = 1
net.ipv4.conf.lo.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2


In this mode It doesn't work. I noticed that nestat on real server shows this:         LISTEN         LISTEN

Whena I stopped a Squid instance and set the only one without specifying ip 

"http_port 8080" instead of "http_port"

It works and netstat show this:          LISTEN

My question is: in LVS can I have services on the same server listening on 
different ip address but same port? How can I implement this?

Thank you very much

Please read the documentation before posting - it's available at: mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to

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