Disable WiFi when LAN connexion is lost

Hi all,

In order to prevent black hole I would like do disable WiFi when the LAN connexion is lost.
For example Ubiquity can monitor connexion and disable WiFi consequently.
Do you have any solution for that with mikrotik ?

Thanks.

Jeremy

Yes, there are different options how you can achieve it.

One of them to configure netwatch, and monitor default gateway IP address (the same IP address as your LAN/Ethernet interface has).

/tool netwatch
add down-script=“/interface wireless disable wlan1” host=159.148.147.196
up-script=“/interface wireless enable wlan1”

host is your default gateway.

Thanks for your help

If you use CAPsMAN this happens automatically when connection to CAPsMAN is broken.

JF.