Connect MikroTik router to a WiFi access point and serve Internet via Ethernet and WiFi

If you have a spare MikroTik router hAP ac you can easily connect it to another WiFi access point using one WiFi interface and serve Internet via Ethernet ports and another WiFi interface creating a network segment with its own DHCP server.

Let’s say you want to connect to your existing WiFi access point via 5GHz interface (wlan2) and serve the Internet via Ethernet ports (ether1..5) and 2GHz interface (wlan1).

Here is the instruction:

  1. Connect it to your PC Ethernet port and reset it to the default factory settings.
    a. Turn off the device power.
    b. Hold the reset button on the side and do not release.
    c. Turn on the power and wait until LED “SFP” starts flashing.
    d. Release the button to wait a bit until its fully rebooted.
  2. Open an Internet browser and navigate to IP address where you should see router’s front page. Don’t forget to disconnect from WiFi and other networks before opening the page.
  3. Immediately set the WiFi password to secure your WiFi connections, administrator password and apply the configuration.

  1. Switch to WebFig in the top right corner and create a new security profile for connecting to your existing WiFi access point (Wireless -> Security Profiles -> Add New). Provide a name, WPA/WPA2 Pre-Shared Keys and click OK.

  1. Open wlan2 interface (Wireless -> WiFi Interfaces -> wlan2) switch it to the station mode and select the security profile you created on the previous step, click Apply. 
  2. Click Scan… button on wlan2 settings page and start scanning. When your existing WiFi access point appears in the list, select it and in the opened dialog click Connect button. Now you should be connected to your existing WiFi but you haven’t configured DHCP client, therefore, you still have no access to the Internet.
  3. Disable wlan2 on bridge ports by navigating to Bridge -> Ports and clicking ‘D’ button corresponding to ‘wlan2’ interface.
  4. Open DHCP client settings and switch interface from ‘ether1’ to ‘wlan2’, then click OK button. After a while, you should see an IP address assigned to ‘wlan2’ interface by the upstream WiFi router. Now if you open MikroTik’s terminal in the browser, providing ‘admin’ as the login and the router password you set previously, you should be able to ping some Internet IP addresses (like for example). 
  5. But you still can’t access the Internet from your computer connected to the router directly. For fixing this problem you should navigate to Interfaces -> Interface List and select WAN. In the opened dialog change ‘ether1’ to ‘wlan2’ and click ‘OK’.

Now all the computers connected to Ethernet ports should have to the Internet as well as the ones connected via 2GHz WiFi.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *