In the event that you have been given a static IP from your Internet provider, you can refer to this guide for assistance on configuring your static IP address on your MikroTik hAP ac2 device running RouterOS. To accomplish this, there are two parts:

  1. The static IP needs to be set on the WAN/Internet interface of the MikroTik

  2. A default route needs to be added to the device. This way, any networks that the router doesn't know how to get to, it will pass that traffic onto the next router (the ISP).

Adding static IP address to WAN interface

  1. To add your static IP address to an interface, navigate to IP > Addresses on the left-hand side.

  2. Click on Add New

  3. 2

  4. Ensure that the Enabled box is checked.

  5. In the address box enter your static IP address along with the subnet mask. Note that this has to be in CIDR notation. In the screenshot below our static IP address is 172.16.1.200 and our network block is /20. This equivalent to a subnet mask of 255.255.240.0. Your Internet service provider will provide you with this information.

  6. For the interface select ether1. This is the Internet/WAN-side interface for the MikroTik hAP ac2.

  7. 3

  8. Click Apply and then click OK. The Network option should be automatically populated for you.

  9. 4

Creating a default route

  1. To create a default route for traffic, navigate to IP > Routes

  2. For the Dst. Address enter in the following: 0.0.0.0/0

  3. The gateway IP address will be given to your by your Internet service provider. In this example, our gateway address is 172.16.1.1. Only enter in the gateway IP address here. The subnet mask/IP block is not necessary. After hitting Apply > OK, the reachable via a certain interface should auto populate.

  4. 5

  5. After adding the default route, if you go back to the routes page you'll see something similar to the screenshot below.

  6. 6

Final steps

There's a couple more steps that we need to take to finish the setup. We need to disable the DHCP client mechanism so that the router does not try to obtain an IP via DHCP on the WAN interface, and we also need to ensure that the DNS servers are set within the DHCP server.

Disabling DHCP Client

  1. Navigate to IP > DHCP Client

  2. Next to the ether1 interface, click on the icon to disable it.

  3. 7

Setting DNS

  1. Navigate to IP > DHCP Server

  2. Select the Networks tab

  3. Double-click on the network address so that you're able to make modifications

  4. Set the DNS server to 8.8.8.8

  5. Click on the downward facing arrow next to DNS Servers to add a secondary server

  6. Input 8.8.4.4

  7. Click on Apply > OK

  8. 8