Community discussions

MikroTik App
 
rajendrar2
just joined
Topic Author
Posts: 6
Joined: Wed Jun 28, 2023 6:11 am

simple lan side failover

Wed Jan 22, 2025 3:29 pm

i use wireless link as backup to fiber onu link.RF STATION lan side is disabled and only enabled if fiber link to onu is down and disabled again before fiber link is restored.can i replace L1 switch with mikrotik switch with a script in routeros that ether 1 will ping to 192.168.1.1 if ping is successful ether 2 will be disabled if ping fails then only ether 2 will be enabled if ether 1 succeeds to ping 192.168.1.1 then ether 2 disables again
You do not have the required permissions to view the files attached to this post.
 
ConnyMercier
Forum Veteran
Forum Veteran
Posts: 777
Joined: Tue Dec 17, 2019 1:08 pm

Re: simple lan side failover

Wed Jan 22, 2025 4:18 pm

The Netwatch-Tool in RouterOS can be used to monitor an IP-Address

A Basic script could look like this
/tool netwatch
add disabled=no down-script="/interface/ethernet/set ether2 disabled=no" host=192.168.1.1 http-codes="" test-script="" type=icmp up-script="/interface/ethernet/set ether2 disabled=yes"
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12692
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: simple lan side failover

Fri Jan 24, 2025 3:25 pm

Do not duplicate requests.

viewtopic.php?p=1121356#p1121356