Community discussions

MikroTik App
 
jguasco
just joined
Topic Author
Posts: 2
Joined: Tue Feb 17, 2015 4:20 pm

Disable WiFi when LAN connexion is lost

Tue Feb 17, 2015 4:33 pm

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
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6703
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Disable WiFi when LAN connexion is lost

Tue Feb 17, 2015 5:20 pm

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.
 
jguasco
just joined
Topic Author
Posts: 2
Joined: Tue Feb 17, 2015 4:20 pm

Re: Disable WiFi when LAN connexion is lost

Tue Feb 17, 2015 6:26 pm

Thanks for your help
 
JanezFord
Member Candidate
Member Candidate
Posts: 271
Joined: Wed May 23, 2012 10:58 am

Re: Disable WiFi when LAN connexion is lost

Tue Feb 17, 2015 10:39 pm

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

JF.