# Configuration File for Keepalived # Global Configuration global_defs { notification_email { harald.dunkel@xxxxxxxxx } notification_email_from keepalived@xxxxxxxxx smtp_server mailhost smtp_connect_timeout 30 router_id LVS_MASTER # string identifying the machine } # describe virtual service ip vrrp_instance VI_1 { # initial state state MASTER interface eth0 # arbitary unique number 0..255 # used to differentiate multiple instances of vrrpd virtual_router_id 1 # for electing MASTER, highest priority wins. # to be MASTER, make 50 more than other machines. priority 100 authentication { auth_type PASS auth_pass dwoeiodmewfivlqoijwmcldm93492oeiwwnn } virtual_ipaddress { 172.19.96.33/23 } } # describe virtual telnet server virtual_server fwmark 6 { delay_loop 15 lb_algo rr lb_kind DR protocol TCP # persistence_timeout 5 real_server 172.19.96.19 23 { TCP_CHECK { connect_timeout 5 } } real_server 172.19.96.21 23 { TCP_CHECK { connect_timeout 5 } } }