LVS

From Glee
Jump to: navigation, search

LVS-DR

  • Create IP address aliases for the virtual IP addresses on the realservers' loopback, with individual netmask (/32for IPv4, /128 for IPv6). Example /etc/sysconfig/network-scripts/ifcfg-lo:0 for IPv4 :
DEVICE="lo:0"
IPADDR="203.0.113.243"
PREFIX="32"

And example appended content to /etc/sysconfig/network-scripts/ifcfg-lo for IPv6 :

IPV6INIT=yes
IPV6ADDR_SECONDARIES="2001:db8:20:b::a1/128 2001:db8:20:b::a2/128"
  • Make sure the realservers won't answer ARP requests for the virtual IP addresses :
net.ipv4.conf.all.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
  • Disable reverse path filter on the realservers' private network interface where the LVS director will be forwarding traffic :
net.ipv4.conf.eth1.rp_filter = 0