I have configured keepalived on two RHEL 7 servers as below
Primary server
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.1.1.181
}
}
Secondary server
vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 51
priority 99
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
10.1.1.181
}
}
After I restart keepalived service and execute ip addr show eth0, VIP is active on both the servers. I am able to ping primary from secondary and secondary from primary.
Kindly advise.