logo elektroda
logo elektroda
X
logo elektroda

Mikrotik - Is it possible to turn off wifi during certain hours of the night?

kukiz1986 8676 16
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16710839
    kukiz1986
    Level 27  
    Hello, is there any rule that allows you to disable the wifi card at certain times?
    Alternatively, when there is no such option, the whole mikrotika, say from 1 am to 5 am.
  • ADVERTISEMENT
  • Helpful post
    #2 16710886
    tplewa
    Level 39  
    you can do scripts to turn on / off the wireless interface and run from scheduller ...
  • ADVERTISEMENT
  • Helpful post
    #3 16711514
    m.jastrzebski
    Network and Internet specialist
    kukiz1986 wrote:
    Hello, is there any rule that allows you to disable the wifi card at certain times?
    Alternatively, when there is no such option, the whole mikrotika, say from 1 am to 5 am.

    As CI is written, the script and scheduler. But what the secret includes excluding the commands that you can issue in the moment of your finger. Test in the terminal if it works and how it works and save as a script.

    So 1 script contain:
    / interface disable wlan1

    Second script:
    / interface enable wlan1

    wlan1 is the name of your WiFi interface on mikrotik. It doesn't have to be exactly what your name is.

    The rest is the scheduler when it's going to bang.
  • ADVERTISEMENT
  • #4 16711589
    kukiz1986
    Level 27  
    Scheduler works. Thanks to everyone for your help.
  • #5 16748907
    kukiz1986
    Level 27  
    I think something is wrong. It only works for me once. One day after adding. Nothing turns off for the next one.


    Mikrotik - Is it possible to turn off wifi during certain hours of the night?
  • Helpful post
    #6 16748929
    Loker
    Level 39  
    Interval is set to 0 so it will only run once.
  • ADVERTISEMENT
  • #7 16748947
    kukiz1986
    Level 27  
    Ok, correct. thx
  • #8 16770290
    kukiz1986
    Level 27  
    It still doesn't work for me. I do not know what's going on. Can someone take a look at the settings?

    Mikrotik - Is it possible to turn off wifi during certain hours of the night?
  • #9 16770418
    bogiebog
    Level 43  
    There he writes that intervał is 365 days, it should turn off once a year?
  • #10 16770506
    kukiz1986
    Level 27  
    when I was at 0, I was told it would only be done once. It added more. WHAT should I set? "1"?
  • Helpful post
    #11 16770518
    bogiebog
    Level 43  
    kukiz1986 wrote:
    WHAT should I set? "1"?

    how is it supposed to fuck every 1 day it
    1d 0: 0: 0

    Added after 2 [minutes]:

    kukiz1986 wrote:
    when I was at 0, I was told it would only be done once. It added more.

    And you were told well, but this forum is not just a roller coaster, _Y_ you must think too.

    Added after 1 [minutes]:

    Try to test yourself, on / off where interval = 0d 0: 10: 0
    maybe it's better not to, because you'll end up dying again.
  • Helpful post
    #12 16776186
    tplewa
    Level 39  
    @ kukiz1986

    Mikrotik has a great Wiki https://wiki.mikrotik.com/wiki/Main_Page and a good forum https://forum.mikrotik.com/ - how to deal with this equipment, it's nice to sit there for a while.

    I dealt with CIsco / Juniper equipment for more time in my life ... I bought MT first for my home and now I recommend it wherever inexpensive and good equipment is needed. I practically started with zero knowledge about RouterOS and thanks to both the forum and wiki, the first and not a trivial configuration (in commandline because I hate www or WinBOX) I did in a few days ... so I recommend that you even read the topics from time to time happens in the world of MT - a person involuntarily remembers many things (from the problems of others) :)
  • #13 16776246
    kukiz1986
    Level 27  
    Okay, I put it on 1 and it works :) In general, I know Mikrotik a bit, but this was my first time with the scheduler. Thank you for your help.
  • #14 16776280
    bogiebog
    Level 43  
    kukiz1986 wrote:
    but this was my first time dealing with the scheduler.

    And the big problem would it be to put some effort into solving your problem?
    Review the scheduler documentation, only 3 parameters to cover, which means each, perdyliony examples, for me you can catch a lazy and demanding attitude, "tell me what to do because I can't read what the manufacturer wrote in the documentation"
  • #15 16776290
    kukiz1986
    Level 27  
    bogiebog wrote:
    capisz lazy and demanding attitude


    Serious allegations.

    But that's not about that. The problem was solved thanks to you. Subject exhausted.
  • #16 16776296
    bogiebog
    Level 43  
    kukiz1986 wrote:
    Serious allegations.

    After the Loker gave you the hint, you still haven't read the documentation (and did you read it?), You just typed what came to your mind without thinking and then yelling again on the forum "that it's not working again".

    This is not a "pay and require" forum
    Advice and tips are free but we require own contribution and effort from the author of the topic.

    Claiming or lazy attitudes will be 'blunted' in this forum.
  • #17 16776425
    tplewa
    Level 39  
    kukiz1986 wrote:
    Okay, I put it on 1 and it works :) In general, I know Mikrotik a bit, but this was my first time with the scheduler. Thank you for your help.


    That's why I recommend reading forums, etc. :) You avoid problems with, for example, some errors that sometimes sneak into RouterOS and sometimes you can read about interesting solutions that people do - always some patent may come in handy ...

    Besides, playing with networks is still learning :) when a man does not develop and is not up to date, after a year he is 100 years behind blacks as they say :) Personally, I do not deal with networks anymore (well, now you can only earn money in a corporation, and I avoid it) - but I try not to get out of circulation, because life is different :)

Topic summary

The discussion revolves around configuring a MikroTik router to disable its WiFi interface during specific hours, particularly from 1 AM to 5 AM. Users suggest utilizing scripts and the scheduler feature in RouterOS to automate this process. A sample script to disable the WiFi interface (e.g., wlan1) is provided, along with instructions on setting the scheduler to execute the script at the desired times. Some users encounter issues with the scheduler not functioning as expected, leading to discussions about setting the correct interval parameters. Ultimately, users confirm successful implementation after adjusting the settings.
Summary generated by the language model.
ADVERTISEMENT