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?
