PCC Load Balancing for 2-4 ISPs + Failover
Combine several ISPs: connections are spread per customer IP, and when one ISP goes down its traffic moves to another.
PCC assigns every new connection to one ISP by hashing its addresses, so a customer stays on the same ISP (safe for games, internet banking and logins). Each ISP gets its own routing table with the other ISPs as backups, so when check-gateway sees an ISP down, its connections take the next path. On v7 the tables must first be created in /routing table; on v6 a routing-mark on the route is enough.
- Remove the old default route first (DHCP client: add-default-route=no, or the manual route) so it does not clash with the routes above.
- If there is already a general masquerade rule (without out-interface), untick NAT above so it is not doubled.
- Hotspot: the login page can fail if connections to the router are balanced too. Keep the hotspot pool in Customer networks; traffic to the router itself is already excluded (dst-address-type=!local).
- check-gateway=ping only notices a dead gateway, not a modem that is up while its internet is down. If that happens often, use the Recursive Failover generator for the main routes.
How to use: Copy the script, open Winbox → New Terminal, paste. Or Download .rsc, upload it in Files, then run /import file-name=lb-pcc.rsc.
RouterOS v6 / v7 · added 11 November 2026
readyRouterOS v6 / v7
Terminal <lb-pcc>
More in Routing & Failover