Automated WAN Failover using 2 DHCP WAN connections
Posted: Thu Oct 20, 2022 5:07 am
Hi all,
I've recently set up a HAP AC3 and have 2 WAN ports configured, the first is a DHCP handoff from an ISP, the second is a DHCP handoff on an LTE SIM card (in an external LTE router in bridge-mode - not built-in to the Mikrotik).
I've done a lot of research and attempted multiple solutions but can't find anything consistent regarding setting up automated failover that is reliable when using 2x DHCP WAN connections. Majority of what I can find uses Recursive Routing when both WANs have a static address.
Of all of the solutions I've tried:
My desired configuration is:
Has anyone here successfully achieved this configuration before?
I have previously done this on Edgerouters with very very very little difficulty, in fact it's extremely simple to configure and works flawlessly. Due to stock issues with Ubiquiti gear at the moment we're likely going to have to use Mikrotik for a while for new installations, so I'm hoping someone is able to point me in the right direction.
Apologies if I've posted this in the wrong thread, or haven't provided enough information. I'm not looking for someone to do all the work for me, I'd be very appreciative if anyone can point me in the right direction for guides or forum posts where this has been achieved in the past, as ideally I'd like to understand how it works and not just copy someone else's work.
Thanks in advance for any help you can provide.
I've recently set up a HAP AC3 and have 2 WAN ports configured, the first is a DHCP handoff from an ISP, the second is a DHCP handoff on an LTE SIM card (in an external LTE router in bridge-mode - not built-in to the Mikrotik).
I've done a lot of research and attempted multiple solutions but can't find anything consistent regarding setting up automated failover that is reliable when using 2x DHCP WAN connections. Majority of what I can find uses Recursive Routing when both WANs have a static address.
Of all of the solutions I've tried:
- Netwatch configured to ping public DNS such as 8.8.8.8
Route distances set where the LTE distance is higher than the ISP connection
Attempted to use a script on the DHCP clients that pulls the gateway address and sets the distances, etc.
My desired configuration is:
- ISP route is primary
ISP route goes down, LTE route takes over
ISP route becomes live again, ISP route takes over
Has anyone here successfully achieved this configuration before?
I have previously done this on Edgerouters with very very very little difficulty, in fact it's extremely simple to configure and works flawlessly. Due to stock issues with Ubiquiti gear at the moment we're likely going to have to use Mikrotik for a while for new installations, so I'm hoping someone is able to point me in the right direction.
Apologies if I've posted this in the wrong thread, or haven't provided enough information. I'm not looking for someone to do all the work for me, I'd be very appreciative if anyone can point me in the right direction for guides or forum posts where this has been achieved in the past, as ideally I'd like to understand how it works and not just copy someone else's work.
Thanks in advance for any help you can provide.