Keepalived not working (ver 2.3.1,2.22.7)

I installed keepalived, keepalived-sync, and luci-app-keepalived on my OpenWRT 24.10.4. After configuring luci-app-keepalived in the LuCI web, keepalived still wasn't running. I checked the /etc/init.d/keepalived, and found a configuration file /tmp/keepalived.conf:

! Configuration file for keepalived (autogenerated via init script)
! Written Sun Nov  2 07:38:50 2025

global_defs {
        script_user root
        enable_script_security
        process_names
}

static_ipaddress {
}

static_routes {
}

vrrp_instance vrrp1 {
        state MASTER
        interface br-lan
        virtual_router_id 1
        version 3
        priority 110
        advert_int 1
        garp_master_delay 1
        garp_master_refresh 1
        garp_master_repeat 1
        garp_master_refresh_repeat 1
        accept
        nopreempt
        notify_backup "/bin/busybox env -i ACTION=NOTIFY_BACKUP TYPE=INSTANCE NAME=vrrp1 /sbin/hotplug-call keepalived"
        notify_master "/bin/busybox env -i ACTION=NOTIFY_MASTER TYPE=INSTANCE NAME=vrrp1 /sbin/hotplug-call keepalived"
        notify_fault "/bin/busybox env -i ACTION=NOTIFY_FAULT TYPE=INSTANCE NAME=vrrp1 /sbin/hotplug-call keepalived"
        notify_stop "/bin/busybox env -i ACTION=NOTIFY_STOP TYPE=INSTANCE NAME=vrrp1 /sbin/hotplug-call keepalived"
        virtual_ipaddress {
        }
}

I think there are some issues with this generated configuration file, I noticed that the above configuration differs from what I set in the LuCI web interface. For example, its virtual_ipaddress section is empty, while I actually configured it as 192.168.128.254:

Has anyone encountered this situation before?

What is other device?
Whats kept alive here?

Hi, what you have to do first is configure luci-app-keepalived’s other tabs: IP Addresses (eg. the virtual IPs and their devices), Interfaces (for tracking) and Peers. Then on the Instance tab you populate each instance with the names configured on the previous tabs.

1 Like