Skip to content
Contents
GuidesOpenWrt

Verify mwan3 failover and per-connection balancing across two WANs

First, ensure each WAN link obtains the correct IP address and can access its own independent probe point.

First, ensure each WAN link obtains the correct IP address and can access its own independent probe point. Describe the desired behavior using interfaces, members, policies, and rules. Primary and backup links are determined by priority; when priorities are equal, connections are allocated based on weight, and existing connections typically continue using the same path.

Conduct primary-standby and load-sharing experiments

Send a steady series of new requests across the failover. Record the last response on the primary WAN, the first response on the backup and what happens to a preexisting connection. Use multiple new connections to test load sharing and compare counters and observed source addresses across both WANs. Test VPN, carrier-shared addressing and specific DNS paths separately.

Verify new connection sharing and disconnection recovery

First, independently verify the availability of the two lines. Then, from the controlled client, initiate numerous new connections. Record the echo exit point and maintain one long-lived connection.

After reaching the recovery threshold, verify that new connections have returned to the preferred path. Log the actual firmware, mwan3 backend, and probe interval. Save the original network and firewall configurations; pause test rules if issues occur.

When under load, multiple connections are distributed according to predefined rules; upon failure, new connections are routed to backup paths. Whether existing connections are retained must be separately recorded. If continuous failure occurs, first verify the target and policy.

Inspect the installed mwan3 build and the two enabled test uplinks. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Inspect the installed mwan3 build and the two enabled test uplinks. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Inspect the installed mwan3 build and the two enabled test uplinks. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Lab record

Earlier GeeksMeta dual-WAN VM test. Six seconds elapsed from the first observed failure to the first backup HTTP response at one-second sampling resolution. A separate established TCP flow timed out at 15 seconds. The result concerns this topology.

Earlier GeeksMeta dual-WAN VM test. Six seconds elapsed from the first observed failure to the first backup HTTP response at one-second sampling resolution. A separate established TCP flow timed out at 15 seconds. The result concerns this topology.

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments