EN
  • English
  • Русский
  • ქართულიsoon
  • Українськаsoon
  • Shqipsoon
  • Azərbaycancasoon
  • Türkçesoon
Get in touch
Crypto exchangersHotels & apartmentsOffice network & Wi-Fi

MikroTik Dual WAN Failover: Backup Internet and LTE

MikroTik dual WAN failover with LTE: routes with link checks, NAT, DNS, Telegram alerts, a permanent name for VPN, a drill and backup on TP-Link ER605.

Читать на русском →

On this page

Without internet an exchange office cannot confirm incoming USDT, and a hotel cannot see bookings and payments. After these steps, when the main link drops, the router switches to the second ISP on its own within 20–30 seconds; when both drop, it switches to LTE. The owner gets a Telegram message, and the cameras and VPN stay reachable by a permanent name instead of an IP address that changes with the ISP.

Plan

Step What we do Time
1 Connect the second link and write down the addresses 30 min
2 Turn off the ISPs' automatic routes 5 min
3 Set up routes with link checks 15 min
4 Configure NAT and DNS for all links 10 min
5 Add LTE as the last resort 20 min
6 Set up failover alerts 15 min
7 Create a permanent name for VPN and cameras 10 min
8 Run a "pull the cable" drill 15 min

Why an Exchange Office and a Hotel Need This

  • A backup link is the technical part of a business continuity plan (business continuity plan, step 3, card 4); crypto exchange regulators increasingly require such a plan (for Georgia, see the section at the end of the article).
  • Two ISPs that come into the building over the same cable often go down together — that is why the third link is LTE, which does not depend on wires.
  • The ISP's router and its "smart" failover usually cannot be configured — your own router does the switching.

What breaks without a link check, and which steps fix it:

  1. The cable to the ISP router is fine, but there is no internet behind it — a plain "backup route" does not see this → a link check to an address on the internet through each link (step 3).
  2. After failover the office address changes — VPN and cameras become unreachable → a permanent name (step 7).
  3. Nobody knows about the failover until the LTE data runs out → an alert (step 6).
  4. The backup was set up a year ago and never tested → a drill (step 8).

How to do it.

  1. The second ISP must be a different company from the first, ideally with a separate cable into the building.
  2. Plug each link's ISP router (ONT) into a separate MikroTik port: ISP1 → ether1, ISP2 → ether2.
  3. Write down for each link:
Link MikroTik port ISP router address (gateway) MikroTik address on that network
ISP1 (main) ether1 e.g. 192.168.1.1 192.168.1.2
ISP2 (backup) ether2 e.g. 192.168.100.1 192.168.100.2
LTE lte1 or ether3 — / LTE router address —
  1. Add ether2 to the WAN list (if you built the network following the article "Network segmentation for an exchange office", ether1 is already there):
/interface list member add list=WAN interface=ether2

Done when: both links are connected and the addresses are written down.

Step 2. Turn Off the ISPs' Automatic Routes

Why: otherwise each link adds its own default route with no link check.

/ip dhcp-client
set [find interface=ether1] add-default-route=no use-peer-dns=no
add interface=ether2 add-default-route=no use-peer-dns=no disabled=no

If the addresses are static, set them: /ip address add address=192.168.100.2/24 interface=ether2.

Check: /ip route print where dst-address=0.0.0.0/0 — empty (internet will be down until step 3).

Done when: there are no automatic default routes.

How it works. For each link, pick a "probe address" on the internet that is always pinged through that link only. The default route points to this address, and the router pings it every 10 seconds: once it stops responding, the route is disabled and the next one by priority takes over.

/ip route
add dst-address=1.1.1.1/32 gateway=192.168.1.1 scope=10 comment="probe ISP1"
add dst-address=9.9.9.9/32 gateway=192.168.100.1 scope=10 comment="probe ISP2"
add dst-address=0.0.0.0/0 gateway=1.1.1.1 target-scope=11 check-gateway=ping distance=1 comment="ISP1 main"
add dst-address=0.0.0.0/0 gateway=9.9.9.9 target-scope=11 check-gateway=ping distance=2 comment="ISP2 backup"
  • distance=1 is the main link, distance=2 is the backup.
  • The probe addresses (1.1.1.1, 9.9.9.9) now always go through their own link only — do not use them as DNS (step 4).
  • Failover happens after two failed checks, i.e. after about 20 seconds.

Check: /ip route print where dst-address=0.0.0.0/0 — the ISP1 main route is active (flag A).

Done when: internet works through ISP1 and the ISP2 route is on standby.

/ip firewall nat
add chain=srcnat out-interface-list=WAN action=masquerade comment="NAT all WAN"
/ip dns
set servers=8.8.8.8,1.0.0.1 allow-remote-requests=yes
  • masquerade on the WAN list works for any active link, including LTE after step 5.
  • For DNS, use addresses that do not match the probe addresses from step 3; otherwise DNS stops working when ISP1 goes down.
  • allow-remote-requests=yes is safe only if port 53 is closed from the outside (the "everything else to the router" rule from the network article, step 5).

Done when: websites open on the cashier's computer.

Step 5. Add LTE as the Last Resort

How to do it.

  • LTE built into the MikroTik (models with an LTE modem) or a USB modem: insert the SIM, and the lte1 interface appears by itself.
/interface list member add list=WAN interface=lte1
/ip route add dst-address=0.0.0.0/0 gateway=lte1 distance=3 comment="LTE last resort"
  • A separate LTE router plugged into ether3: route gateway=<LTE router address> distance=3 and ether3 in the WAN list.
  • A PIN on the SIM card and a plan with spare data: LTE kicks in when both wired links are down.

Done when: with ISP1 and ISP2 off, internet goes through LTE (you will check this in step 8).

Step 6. Set Up Failover Alerts

How to do it. Netwatch pings each link's probe address and sends a Telegram message (bot as in the article "Where to store USDT", step 8):

/tool netwatch
add host=1.1.1.1 type=icmp interval=30s comment="ISP1" \
    down-script="/tool fetch url=\"https://api.telegram.org/bot<token>/sendMessage?chat_id=<chat_id>&text=ISP1%20DOWN%20-%20backup%20active\" keep-result=no" \
    up-script="/tool fetch url=\"https://api.telegram.org/bot<token>/sendMessage?chat_id=<chat_id>&text=ISP1%20UP\" keep-result=no"
add host=9.9.9.9 type=icmp interval=30s comment="ISP2" \
    down-script="/tool fetch url=\"https://api.telegram.org/bot<token>/sendMessage?chat_id=<chat_id>&text=ISP2%20DOWN\" keep-result=no" \
    up-script="/tool fetch url=\"https://api.telegram.org/bot<token>/sendMessage?chat_id=<chat_id>&text=ISP2%20UP\" keep-result=no"

Keep the message text in plain Latin characters: that is more reliable in a request URL. The message goes out through whichever link is working at that moment.

Done when: turning off ISP1 produces a message within a minute.

Step 7. Create a Permanent Name for VPN and Cameras

Why: after failover the office's external address is different — WireGuard on the owner's phone and camera viewing stop connecting.

/ip cloud set ddns-enabled=yes ddns-update-interval=1m
/ip cloud print

The dns-name of the form xxxx.sn.mynetname.net always points to the router's current external address. Put it in the WireGuard settings instead of the IP (WireGuard on MikroTik, step 1).

If one of the ISPs puts your address behind its own NAT (not a public IP), inbound VPN through that link will not work — you need a public address on at least the main link.

Done when: /ip cloud print shows the name and the current address, and the VPN connects by name.

Step 8. Run a "Pull the Cable" Drill

How to do it — outside business hours, with ping 8.8.8.8 -t running on the cashier's computer:

Action Expected result
Turn off the ISP1 router pings lost for no more than 30 seconds, ISP2 backup is active, "ISP1 down" message
Turn ISP1 back on after a minute ISP1 main is active again, "ISP1 up" message
Turn off ISP1 and ISP2 LTE last resort is active
VPN from the owner's phone during failover reconnects using the name from step 7
The cash desk checks an incoming payment in TronScan while on ISP2 works

Record the result with the date in the drill log of the business continuity plan, step 7.

Done when: every row matches.

Menu paths are for Omada Controller 5.x; in controller 6.x the same section is under Network Config → Network Settings → Internet.

  1. Settings → Wired Networks → Internet — enable the second WAN port (on the ER605 V2 the second WAN is the WAN/LAN1 port) and set up the second ISP's connection.
  2. Settings → Wired Networks → Internet → Load Balancing → enable Link Backup: Primary WAN — the main link, Backup WAN — the backup link; Backup Mode — Always Link Primary (once restored, traffic returns to the main link); mode — Enable backup link when any primary WAN fails.
  3. Online Detection — this is how the gateway decides a link is down: the check interval is set in the Internet settings (the shorter the interval, the faster the failover). The check status of each WAN is on the gateway card: Devices → gateway → Details.
  4. Alerts — in the controller's notification settings (Alerts, email): the WAN disconnected event.
  5. Drill — same as step 8.

For an Exchange Office in Georgia

The National Bank of Georgia (NBG) expects operating VASPs to have an operational risk and business continuity framework by July 1, 2027; the backup link from this article and the drill log (step 8) are its technical part (business continuity plan).

Checklist

# What to check How to confirm ☐
1.1 The second link is from a different ISP The contracts are with different companies; both ISPs have confirmed which cable and which entry point they use into the building ☐
1.2 Link addresses are written down The step 1 table is filled in: port, gateway and MikroTik address for ISP1, ISP2 and LTE ☐
1.3 Both ports are in the WAN list /interface list member print where list=WAN — ether1 and ether2 (after step 5, LTE too) ☐
2.1 Automatic routes are off /ip dhcp-client print detail — ether1 and ether2 have add-default-route=no ☐
2.2 ISP DNS servers are not picked up Same place — use-peer-dns=no ☐
3.1 Each probe address goes through its own link /ip route print where comment~"probe" — 1.1.1.1/32 via the ISP1 gateway, 9.9.9.9/32 via the ISP2 gateway ☐
3.2 The main link is active /ip route print where dst-address=0.0.0.0/0 — flag A on ISP1 main, not on ISP2 backup ☐
3.3 Both routes have link checks /ip route print detail where dst-address=0.0.0.0/0 — ISP1 main and ISP2 backup have check-gateway=ping ☐
4.1 NAT works for any link /ip firewall nat print — masquerade with out-interface-list=WAN ☐
4.2 DNS does not match the probe addresses /ip dns print — servers does not contain 1.1.1.1 or 9.9.9.9 ☐
4.3 The router's DNS is closed from the outside From mobile internet, nmap -Pn -sU -p 53 <external address> — the port is not open on each ISP's address ☐
5.1 LTE is third in priority /ip route print where comment="LTE last resort" — distance=3; lte1 (or ether3) is in the WAN list ☐
5.2 The LTE SIM is protected and has enough data The SIM requires a PIN; the plan's data covers at least a day of office work ☐
6.1 Netwatch monitors both links /tool netwatch print — entries ISP1 and ISP2 with status up ☐
6.2 The alert arrives Turn off ISP1 — a message reaches the owner's Telegram within a minute; turn it back on — a second message ☐
7.1 The permanent name works /ip cloud print — ddns-enabled: yes, dns-name is present, public-address equals the current external address ☐
7.2 VPN uses the name, not the IP In WireGuard on the owner's phone, Endpoint is …sn.mynetname.net, not digits ☐
8.1 Failover takes no more than 30 seconds ping 8.8.8.8 -t from the cashier's computer, turn off ISP1 — no replies for no more than 30 seconds ☐
8.2 The main link comes back by itself Turn ISP1 back on — after a minute ISP1 main has flag A again ☐
8.3 LTE takes over when both are down Turn off ISP1 and ISP2 — LTE last resort is active, the cash desk opens TronScan ☐
8.4 The drill is recorded The business continuity plan's drill log has the date and the result for each row of step 8 ☐

Questions

Yes (load balancing), but for an exchange office or a hotel "main + backup" is simpler and more reliable: load balancing breaks sessions with banks and exchanges, which do not like the address changing mid-session.

Should I put the ISP router into bridge mode?

Not necessary: double NAT does not get in the way of failover. Bridge mode is needed if you want a public address directly on the MikroTik — arrange it with the ISP.

Is one ISP plus LTE enough, without a second cable?

Yes: then step 3 has a single route with a link check, and LTE from step 5 becomes the backup. Keep in mind that LTE data is limited by your plan, and inbound VPN to the office over LTE usually does not work — mobile carriers most often put your address behind their own NAT.

Can failover be faster than 20 seconds?

Not with check-gateway: the router checks the gateway every 10 seconds and marks it unreachable after two failures in a row. You can go faster with Netwatch on a short interval and a script that disables the route itself, but for a cash desk and bookings a 20–30 second gap is usually not critical.

What happens to the bank, the exchange and calls at the moment of failover?

Connections opened through the failed link drop: the office's external address changes. The bank or exchange website may ask you to log in again, and an internet call will cut off; new connections go through the backup right away.

On the router: /ip route print where dst-address=0.0.0.0/0 — the active route has flag A. The comments from steps 3 and 5 show which link it is: ISP1 main, ISP2 backup or LTE last resort.

ISP1 is back, but traffic is still going through the backup. Why?

The ISP1 main route returns only when its probe address responds again. Run /ping 1.1.1.1: if there is no reply and the ISP confirms the link is up, that address does not answer pings through ISP1 — pick a different probe address and change it in steps 3 and 6.

The backup did not work during a power outage. Why?

The router, the ISP routers and the LTE modem do not work without power — they need a UPS, just like the cash desk switch. If the ISP's equipment outside the office has no power, the wired link goes down anyway — only LTE remains. Test it with a drill outside business hours: cut power to the office and see whether the cash desk still works.

Does the second WAN port open access to the router from the outside?

If the input rules follow the network article (step 5) — no: the last rule drops everything not allowed, on any interface. The risk appears if the drop rule is tied to ether1 only, or if ether2 ended up in the LAN list by mistake; scan each ISP's external address with nmap from mobile internet — Winbox, SSH and the web interface must not be visible.

Does this work on RouterOS 6?

Recursive routes with check-gateway exist in RouterOS 6 too, but the commands in this article are written for RouterOS 7, and some of them may not work on 6.x. New features and most fixes ship for 7 — plan the upgrade (MikroTik vulnerability 2026).


Note: Your ISP gateway addresses may differ.

Sources

  1. MikroTik — Recursive routing / check-gateway (Routing → IP routing)
  2. MikroTik — Netwatch
  3. AXIOM 11 — VASP licence in Georgia (2026): business continuity framework by 01.07.2027
  4. Omada — How to Configure Link Backup on Omada Gateway via Omada Controller
  5. Omada — How to Configure Online Detection for WAN Link Testing
↑