How to administer backup WAN modem?
Posted: Sat Feb 08, 2025 7:13 am
I'm setting up an hAP ax2 with dual WAN failover. A Netgear LM1200 modem is on ether2, configured with a DHCP client. The DHCP client script updates the gateway for a route:
I can access the admin service for the LM1200 at its gateway IP address; however, I need to set up a static IP address, 10.1.10.106, since the gateway address is variable. But adding the route:
and the static IP:
isn't working. What am I missing?
Code: Select all
:if ($bound=1) do={
/ip route set [find where comment="dhcp2"] gateway=$"gateway-address" disabled=no
/ip route set [find where comment="LM1200"] gateway=$"gateway-address" disabled=no
} else={
/ip route set [find where comment="dhcp2"] disabled=yes
/ip route set [find where comment="LM1200"] disabled=yes
}
Code: Select all
# DST-ADDRESS GATEWAY DISTANCE
;;; LM1200
4 As 10.1.10.106/32 x.y.z.1 1
Code: Select all
# ADDRESS MAC-ADDRESS INTERFACE
23 C 10.1.10.106 6E:CD:D6:53:30:8E ether2
isn't working. What am I missing?