dsr load-balancing

make a file in sysctl.d, we don’t want the vip to arp

net.ipv4.conf.eth0.arp_ignore=1
net.ipv4.conf.eth1.arp_ignore=1
net.ipv4.conf.all.arp_ignore=1
net.ipv4.conf.default.arp_ignore=1
net.ipv4.conf.lo.arp_ignore=1
net.ipv4.conf.eth0.arp_announce=2
net.ipv4.conf.eth1.arp_announce=2
net.ipv4.conf.all.arp_announce=2
net.ipv4.conf.default.arp_announce=2
net.ipv4.conf.lo.arp_announce=2

set them
sysctl -p /etc/sysctl.d/loadbalancer-dsr.conf

example loopback int

DEVICE=lo:ro
ONBOOT=yes
BOOTPROTO=static
IPADDR=$vip_ip
NETMASK=255.255.255.255