Skip to content
Contents
GuidesOpenWrt

How STP delays affect keepalived and VRRP failover on OpenWrt

After the link indicator lights up, the STP port may still not be forwarding. The VRRP master-standby switch time must be recorded separately from the actual client reachability time.

Applies to · OpenWrt · keepalived · VRRP · STP

What to check

Synchronize STP from blocking to forwarding, track interface state transitions, and monitor VRRP master takeover moments.

Connect over Ethernet and run the following commands in an SSH session on the router.

logread -e keepalived
bridge -d link show

How to interpret the result

Record the moments when the device becomes MASTER, the bridge port enters forwarding state, and the client successfully accesses for the first time. If the virtual IP migrates before the port is unblocked, investigate the trace conditions and latency. Once the port is forwarding, check the neighbor cache and the virtual IP's ownership.

Verify and recover

During a planned failover, verify that only one router owns the virtual IP and time a real client connection. Restore the saved priorities and delays after the test.

Related guide · Identify a new device from OpenWrt lease and access logs

Explore hardware

Comments