KeepAlive

Da wiki.gienne.cloud.

KeepAlive 1:

! Configuration File for keepalived

global_defs {
   notification_email {
   gozzi@gazzi.net
   }
   notification_email_from lb1@mydomain.com
   smtp_server localhost
   smtp_connect_timeout 30
}

vrrp_instance VI_1 {
    state MASTER
    interface eth1
    virtual_router_id 51
    priority 101
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        192.168.10.72
    }
}

KeepAlive 2:

! Configuration File for keepalived

global_defs {
   notification_email {
   gozzi@gazzi.net
  }
  notification_email_from lb1@mydomain.com
  smtp_server localhost
  smtp_connect_timeout 30
} 
vrrp_instance VI_1 {
    state BACKUP
   interface eth1
   virtual_router_id 51
   priority 100
   advert_int 1
   authentication {
       auth_type PASS
       auth_pass 1111
   }
   virtual_ipaddress {
       192.168.10.72
   }
}


Verifica IP:
ip addr show eth1