I want to use nopreempt option with keepalived vrrp setting to run backup node as master when master goes down and again reback into network.
I setup nopreempt option in both servers and set state as backup in both servers but due to high priority nopreempt is not working.
Please guide to resolve it?
Master Machine:
! Configuration File for keepalived
vrrp_instance VI_1 {
state BACKUP
nopreempt
interface eth0
virtual_router_id 1
priority 250
advert_int 1
virtual_ipaddress {
192.168.1.2/24
}
}
Backup Machine :
! Configuration File for keepalived
vrrp_instance VI_1 {
state BACKUP
nopreempt
interface eth0
virtual_router_id 1
priority 200
advert_int 1
virtual_ipaddress {
192.168.1.2/24
}
}
Regards,
Ben
Best Answer
Changed both server state as BACKUP. Primary having higher priority and with nopreempt, both having the same router ID. This works for me.