Keepalived is a routing software written in C and Keepalived is free software.
Step1. Install packages
yum install -y wget gcc openssl-devel.x86_64 libnl3-devel
Step2. Download software
wget https://www.keepalived.org/software/keepalived-2.0.19.tar.gz
Step3. Untar Packages
tar -xvf keepalived-2.0.19.tar.gz
Step4. Configure tool
cd keepalived-2.0.19/ ./configure make make install
Step5. Check service status
systemctl status keepalive
Step6. Add Server in Loadbalancer
cd /usr/local/etc/keepalived vi keepalived.conf vrrp_instance VI_1 { state MASTER interface eth0 virtual_router_id 51 priority 100 advert_int 1 authentication { auth_type PASS auth_pass 1111 } virtual_ipaddress { 192.168.106.128 192.168.106.129 } }
Step7. Restart service
systemctl status keepalive systemctl start keepalive systemctl enable keepalive