1. Home
  2. Knowledge Base
  3. Supported Hardware
  4. MikroTik
  5. Configuration for Mikrotik Routerboard (RouterOS)

Configuration for Mikrotik Routerboard (RouterOS)

RouterOS7 and above is currently not supported by the configuration script.

Prerequisite: You should already have downloaded the Mikrotik Winbox utility to the computer that you will be configuring the device from. The device should be connected to the Internet and to your computer.

Before configuring your device, please be sure that you have added the Gateway to the Smart WiFi Platform and associated it with a Hotspot.

NOTE: When configuring a MikroTik using an iOS device, connect the MikroTik to the router that your device is connected to and configure it through your LAN. There have been issues with attempting to configure a MikroTik patched directly to iOS devices.

The following setup was done using a Mikrotik RB951Ui-2HnD:

  1. Using the Winbox utility, connect to the device

  2. As a best practice, you should reset the router with NO CONFIGURATION. Of course, if you have the router already setup to perform other actions do not do this step and instead use the script to configure as per your requirements.

  3. Reconnect to the Routerboard using the Winbox utility (see step 1).
  4. Open a New Terminal window

  5. In the Smart WiFi Dashboard, find the gateway and click the edit icon. On the Edit Gateway page, click the ‘View’ button and the specific script for this device will open in a new browser window.

  6. Select ALL of the text in the browser window and copy to your clipboard.

  7. Paste the script into the terminal window on Winbox.

  8. You should be returned to the terminal prompt. You may have to press enter to run the final line of the script. If everything has run successfully the terminal should look like the example below.

    NOTE: If the terminal session ends early and “kicks you out” before the full script is completed, simply log back into the device and re-paste the entire script again and the process should finish. This happens sometimes because the Ethernet port that you’re using to configure the device may be reset during the configuration process. You may need to press enter a few times to get to the test portion of the script where you should see finished finished as demonstrated above.

  9. Reboot your MikroTik device to complete the setup
  10. After your Mikrotik Routerboard completes its power cycle, the device should now display the Splash Page you assigned to the Hotspot in the Smart WiFi Dashboard when you associate to the WiFi.

    As a final step, BE SURE TO PASSWORD PROTECT your Router:


Disclaimer on hardware configuration guides in the KB:

This equipment has been integrated and tested in our labs with the Marketing4WiFi using the firmware versions below.

MikroTik Version 6.45

LIMITED HARDWARE SUPPORT: Hardware manufacturers frequently make changes to firmware, controllers and GUI’s. The information below may be out of date or images may be different and is to be used as a general reference guide. We do offer additional limited support to help with trouble-shooting and we highly recommend that you have a hardware support agreement and/or access to a hardware support engineering representative from the manufacturer.


Troubleshooting Tips

If you do not get to the Finished Finished step of running the script the common cause is the MikroTik is not able to connect to the internet. Make sure the MikroTik is patched into your router using the correct ports.

Updated on February 12, 2024

Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!