Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

The subject is quite self explanatory, I have a load balancer running LVS ldirectord, and the follwoing configuration:

# ipvsadm -Ln 

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP rr
  ->              Masq    1024   0          2
  ->              Masq    1024   0          1

I declare which the Virtual IP is, but where do I specifiy the director IP, which is needed to communicate with the real servers?

Can anyone please point me to a comprehensive and up-to-date configuration, all I can find on google is ancient kernel 2.4 configuration instructions.

Thanks in advance

share|improve this question

1 Answer 1

Not quite sure what you mean, but you have configured LVS for NAT mode (2 arm) with the external VIP as So would would configure eth0 as And you would configure eth1 as something in the real server subnet i.e. Then you would configure the real servers to use as their default gateway.

share|improve this answer
and is there a way to do this without setting the default gateway of the real servers to the DIP? –  Konstantin Boyanov Feb 17 '13 at 14:19

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.