Mikrotik Configuration Tutorial – Hello guys, long time no see. Today I will share a complete tutorial on how to connecting your MikroTik Router to the Internet. If you always read every article published on this Blog, you must have read this too.
Well, if that article discusses about SMEs Internet Network Business and how to start the business. In this article we will discuss how to set the MikroTik to be used of that kind of business purpose. For those of you who don’t want to bother learning and want immediately start your business, you can hire a Freelance Technician. Click here for a cheap and guaranteed MikroTik Router settings services. We can do the job onsite or remotely, just as you wish. Ok, lets just start the tutorial. But before we start, we need to prepare the things that are needed first :
- Computer or Laptop, make sure there is an Ethernet adapter attached on your computer/laptop.
- MikroTik Router, free to use any type and version of MikroTik Router.
- UTP cable, minimum Cat5
- Internet connection, it’s recommended to use cable media instead of WiFi.
There are three methods that can be used to connect your MikroTik to the Internet. The three methods are Static IP, dynamic IP, and PPPoE Client (Dial-Out). On this Tutorial, we will start from the Static IP first. For you guys who prefer to watch videos, this tutorial is also published along with video tutorial on each page. Scroll down to see the video directly.
I. MikroTik Configuration Tutorial – Static IP Configuration
To connect MikroTik to the Internet with Static IP, we must first know the IP (Internet Protocol) of our internet source (I assume we are using a modem as an internet gateway). Let’s assume that the modem’s IP is 192.168.100.1, now lets prepare all the required devices :
- Download the Winbox program here, and save the Winbox file on your laptop/computer.
- Prepare a pair of ready to use UTP cables.
- Turn on your Modem and MikroTik Router, connect Ether LAN in Modem to Ether 1 in MikroTik using UTP Cable.
- Connect LAN on your Laptop/Computer with Ether 2 in MikroTik using UTP Cable.
Run Winbox on your computer/laptop, use the version that compatible with your MikroTik Router OS version. If you get an error login then use the other version. Then fill in the MikroTik Router Address in the Connect To column, click on the “…” or Neighbors tab to see the MAC Address (Image 1). The default access of MikroTik Router is as follows;
Password: leave it blank
If the MikroTik Router that you use for training has been set before, it’s better to reset it first. On the initial login to Winbox after resetting, the default-configuration screen will appear. Click Remove configuration and wait for the Router to reboot, then re login back into Winbox.
Change Interface Name (Ether)
After successfully loggin into Winbox, click on the Interface tab in the menu on the left. then rename Ether1 and Ether2 to Ether1-Internet and Ether2-LAN. It used to give identities to all network devices so it will be easier to identify and find solutions to any issues later on (Image 2).
At this point, we can assume that Ether1-Internet is an Ether that will be connected to Modem (Internet Gateway). While Ether2-LAN is Ether which will connect to the local network and provide internet access to computers on the local network. Then the next step is to configure the IPs on each Ether.
IPs Configuration on Each Ether on Mikrotik
Now move to the IP Tab, then select the Addresses menu, a small box will appear with the Address List label. Click the “Add” sign on the top left, then fill in the form provided with IP and Ether as follows;
Like what mentioned before. We’ve assumed our modem/gateway uses IP 192.168.100.1 then Mikrotik Router must use IP between 192.168.100.2 up to 192.168.100.253 to be able to connect with the modem/gateway.
/24 at the end of IP is a Subnetting, functions to determine the class on the network where the IPs can communicate with each other. For more details, you can learn here.
The chosen interface is Ether1-Internet, so that IP 192.168.100.2 will assigned on an Ether which is directly connected to the modem (gateway).Reffer to Image 3
Repeat the IPs Configuration steps as above, but this time do it for the Ether2-LAN Interface. For Address you can put any IPs as you wish as long as not conflict with other IPs. For this article let’s just use 192.168.1.1/24. This means that all computers on the local network will be connect to the internet via MikroTik Router with Gateway 192.168.1.1. And the / 24 subnetting mean the gateway of 192.168.1.1 can distribute the internet to other 253 devices in the local network.
Routing and DNS
Now all Ethers has already been given identity and IP, next step is to set a route list so that IP 192.168.100.2 will send a request to the gateway 192.168.100.1 for every internet traffics How? Back to the IP tab, select the Routes menu, the Route List screen will appear. Click the “Add” sign and then enter the modem IP (192.168.100.1) in the Gateway column.
Description of Image 4
Etc. Address: The address/destination IP when there is an internet request, 0.0.0.0/0 means all addresses/IPs (access to anywhere or to any site).
Gateway: Modem’s IP (internet gateway)
Check Gateway: The method for monitoring gateway status wether is live or not (reachable / unreachable) MikroTik will do a constant ping to the gateway every time there is activity.
Distance: Gateway Priority, 1 means the main gateway. This feature works if there is more than one gateway (modem) in a local network. The smaller the number filled, the more priority.
DNS – Next step is DNS configuration. Still on the IP tab, select the DNS menu and fill in the DNS IP in the Servers column. Click the small black arrow to add and subtract columns. Don’t forget to put a check-list the Allow Remote Request column. This function is to make sure all computers those are connected to MikroTik don’t need to fill DNS manually. Simply use the gateway address as DNS server on all local computers, system will automatically assign DNS on each computer connected to the router. The following are public DNS servers that are commonly used:
- Cloudflare : 18.104.22.168 & 22.214.171.124
- Google : 126.96.36.199 & 188.8.131.52
The last step is the NAT (Network Address Translation) configuration so that Ether2-LAN can share internet access to other devices on the local network. Still on the IP tab, enter the Firewall menu and click the NAT tab at the top of the Firewall screen, then click the “Add” sign. Select srcnat in the Chain column on the General tab. Move to the Action tab, select Masquerade in the Action column, then hit ‘OK’ Button.
At this stage, Mikrotik Configuration Tutorial – Statis IP Configuration is completed and your router can be used to distribute the internet to all local networks. Like i said at the beginning, below I attached a video tutorial for you guys who are too lazy to read hahahah.
Video is on editting proccess and will upload soon