# SIMPLE CONFIGURATION WITH FLOATING IP # MASTER SERVER yum install keepalived # cat > /etc/keepalived/keepalived.conf # create new global_defs { notification_email { [email protected] } notification_email_from [email protected] smtp_server 127.0.0.1 smtp_connect_timeout 30 router_id LVS_Server } vrrp_instance VI_1 { state MASTER interface eth0 virtual_router_id 51 priority 100 nopreempt advert_int 1 authentication { auth_type PASS auth_pass alexlinux } virtual_ipaddress { # virtual IP address 10.88.1.100 dev eth0 } } systemctl enable keepalived systemctl start keepalived # SLAVE SERVER yum install keepalived # cat > /etc/keepalived/keepalived.conf # create new global_defs { notification_email { [email protected] } notification_email_from [email protected] smtp_server 127.0.0.1 smtp_connect_timeout 30 router_id LVS_Server } vrrp_instance VI_1 { state SLAVE interface eth0 virtual_router_id 51 priority 100 nopreempt advert_int 1 authentication { auth_type PASS auth_pass alexlinux } virtual_ipaddress { # virtual IP address 10.88.1.100 dev eth0 } } systemctl enable keepalived systemctl start keepalived