routeros-lte-fallback.ino
Static route configuration with administrative distance to prioritize Ethernet then LTE.
Creates a bridge connecting Ether1 and the LTE1 interface. Two default routes are defined, with the LTE route having a higher distance (lower priority). The firewall blocks invalid connections. Ensure the Quectel modem is recognized as lte1.
routeros-lte-fallback.ino
/interface bridge add name=bridge1
/interface bridge port add bridge=bridge1 interface=ether1
/interface bridge port add bridge=bridge1 interface=lte1
/ip route add dst-address=0.0.0.0/0 gateway=ether1 comment="Primary Ethernet" disabled=no
/ip route add dst-address=0.0.0.0/0 gateway=lte1 comment="Backup LTE" disabled=no distance=10
/ip firewall filter add chain=input action=drop connection-state=invalid