User Tools

Site Tools


admin:keepalived

This is an old revision of the document!


Keepalived

  • Master IP : 10.179.210.103
  • Slave IP : 10.179.210.140
  • Virtual IP :10.179.210.100

Keepalived configuration on master machine

Configuration file in /etc/keepalived/keepalived.conf

! Configuration File for keepalived

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 {
        10.179.210.100
    }
}

Keepalived configuration on slave machine

vrrp_instance VI_1 {
    state SALVE
    interface eth0
    virtual_router_id 51
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        10.179.210.100
    }
}

https://tecadmin.net/ip-failover-setup-using-keepalived-on-centos-redhat/

admin/keepalived.1689597514.txt.gz · Last modified: 2023/07/17 18:08 by veera