How to configure Mikrotik Router ? (Basic configuration)

Share This Post

Mikrotik is one of powerful router mainly used by SOHO offices to ISPs and many system administrators but that doesn’t stop home user or basic user in witnessing the powerful useful features in Router OS. Route OS provides full options to configure every protocols and tools belonging from Layer 1 to Layer 7 of OSI model. As per recent study usage of Mikrotik routers is growing in rapid pace for it provides professional grade features at cheaper price. It might be hassle for configuring Mikrotik Router for lack of proper documentation or guide in official Mikrotik page and many new home users find it difficult to configure Mikrotik router. This is why we are here for right ?

So, enough intro and chit chat. Let’s dig right into the action into configuring basic Mikrotik configuration.

Before configuring the router, you need to do few steps first.
1) Install winbox from here. What the heck is winbox? Well, it is a software that runs on Windows designed to configure and manage Mikrotik Devices.
2) Plug in WAN connection / uplink /internet source at ether 1 then plug in your configuring machine (laptop, desktop ,etc) into any ether ports available on your router.

Different methods of configuring
A) Default Configuration
B) Custom Configuration

A) Default Configuration
This is the configuration that almost all Mikrotik devices comes with as out of the box setup. You can also read Quick Start Guide provided in Mikrotik device box. The default configuration mostly include plugging internet source into ether 1 then BOOM ! It just works right? Great ! Here are some default configuration details.
Default Router IP Address: http://192.168.88.1
Default Router admin login : admin
Default Router admin password: (blank) I mean blank DON’T type blank its just blank .

B) Custom Configuration
This is the most versatile and broad way of configuring Mikrotik device that you can do WHATEVER you what beyond your wildest dreams. Like I said before you can configure from Layer 1 to Layer 7 in Mikrotik device. But we are not going to cover that here. You surely dont’t want this guide to be too long enough to be bored to read right ? All right, lets go to custom configuration which I am going to divide into 4 parts .

  1. Assigning WAN and LAN IP addresses
  2. Gateway configuration
  3. NAT configuration and
  4. DNS configuration

If you want to learn more about these terms in depth you can learn that in our learning platform Smart Academy. It will be launched soon. Keep visiting and get notified when that happens.

Step 1 :Assigning WAN and LAN IP address

Case 1: When you internet source is static IP

  • Download or collect Winbox  from any source.
  • Connect your PC with MikroTik Router by a RJ45 cable.
  • Open winbox software in your operating system and click on Neighbors tab. Connected Ethernet’s MAC will appear in this tab. If you don’t find MAC Address, click on Refresh button. MAC address will appear soon. Click on the appeared MAC address and selected MAC address will be appeared in Connect To input box.
  • MikroTik Router default username is admin and password is blank. So, type admin in the login input box and password field left blank and then click on Connect button. MikroTik graphical user interface (GUI) will appear now.
  • Now click on Remove Configuration button if prompted or from Winbox go to System > Reset Configuration and click No Default Configuration and then click on Reset Configuration button to reset RouterOS. Router will be rebooted and login again and then you will find a zero configuration RouterOS.
  • Go to IP > Addresses menu item. Address List window will appear now. Click on PLUS SIGN (+). New Address window will appear. Put your WAN IP address (In this example: 172.22.3.99/25) which is provided by your ISP in Address input box and then select WAN interface (in this article: ether1) from the Interface drop-down menu and click Apply and then OK button.
  • Click PLUS SIGN (+) again and put LAN Gateway IP address (in this example: 192.168.10.1/24) in Address input box and choose LAN interface (in this article: ether2) from Interface drop-down menu and click Apply and OK button.

Step 2. Gateway configuration

After completing WAN and LAN IP setup, we will now assign MikroTik default gateway which is provided by ISP. The following steps will show how to assign default gateway in MikroTik Router.

  • From Winbox, go to IP > Routes menu item. Route List window will appear now. You can see two dynamic routes are already added in this Route List. Click on PLUS SIGN (+). New Route window will appear. Now put gateway address (in this article: 172.22.3.1) which is provided by your ISP in Gateway input field.
  • Now click Apply and OK button.

MikroTik default gateway configuration has been completed. Now we will create NAT rule so that MikroTik Router can masquerade our LAN user IP to access internet.

Step 3: NAT Configuration

After completing gateway configuration, you have to create a NAT firewall rule to masquerade LAN IPs. Otherwise, LAN user cannot access internet through MikroTik Router. The following steps will show how to create masquerade firewall rule in MikroTik Router.

  • Go to IP > Firewall menu item and click on NAT tab and then click on PLUS SIGN (+) button. New NAT Rule window will appear.
  • From General tab, choose srcnat from Chain drop down menu and put LAN IP Block (in this article: 192.168.10.0/24) in Src. Address input box.
  • From Action tab, choose masquerade from Action drop down menu and then click Apply and OK button.

NAT configuration in MikroTik Router has been completed. if you do not create this NAT rule, your LAN user cannot access internet through MikroTik Router.

Three mandatory steps for configuring a new MikroTik RouterOS to access internet has been completed. LAN users are now able to access internet through Mikrotik Router if they use custom DNS server IP. But we will now configure DNS in MikroTik Router so that it can resolve DNS request as well as it can work as a DNS server.

Step 4: MikroTik DNS Configuration

After completing three mandatory configuration, we need to configure DNS in MikroTik Router so that it can resolve DNS request from the LAN user as well as itself. The following steps will show how to configure DNS in MikroTik RouterOS.

Go to IP > DNS menu item. DNS Settings window will appear. In this window, put DNS server address that you have got from ISP company or you can put Google public DNS IP (8.8.8.8) in Servers input box. You can put secondary DNS server IP by clicking add new value button (drop down button) located after the Servers input box.

Step 5: Checking Internet Connection

That’s it ! If you are successfully performed above steps and is reading here consider yourself successful. As like everything you need to make double sure if it works right ? Fire up command prompt in Windows/ Linux or terminal inside Mikrotik router then type

ping 8.8.8.8 . If you received response which is time in ms and TTL then voila you’ve done basic configuration of Mikrotik router successfully. If not , please go through above steps carefully again and leave a comment below. Thanks that’s it for now. Happy networking folks.

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Policy Routing

Overview Policy routing is the method to steer traffic matching certain criteria to a certain gateway. This can be used to force some customers or

Do You Want To Make Your Dream Network Come True?

drop us a line and keep in touch

X