{"id":9666,"date":"2022-09-09T10:53:02","date_gmt":"2022-09-09T08:53:02","guid":{"rendered":"https:\/\/knowal.sfida.me\/how-to-configure-a-mikrotik-router-step-by-step\/"},"modified":"2022-09-09T11:26:39","modified_gmt":"2022-09-09T09:26:39","slug":"how-to-configure-a-mikrotik-router-step-by-step","status":"publish","type":"post","link":"https:\/\/know.al\/en\/how-to-configure-a-mikrotik-router-step-by-step\/","title":{"rendered":"How to configure a MikroTik router step by step"},"content":{"rendered":"<h2>How to configure a MikroTik router step by step<\/h2>\n<p>&nbsp;<\/p>\n<p>This post is for those that want to know how to configure a MikroTik router; step by step. It is important to understand what must be done to successfully install a MikroTik router for internet access.<\/p>\n<p>There are seven basic configuration requirements that must be met on a MikroTik router to provide internet access to all connected users. These tasks, some of which are not compulsory, are listed below and will be looked into one after the other.<\/p>\n<ul>\n<li>Assign system identity<\/li>\n<li>Username and password<\/li>\n<li>Assign IP addresses<\/li>\n<li>Default gateway<\/li>\n<li>DHCP<\/li>\n<li>NAT<\/li>\n<\/ul>\n<h2>How to configure a MikroTik router<\/h2>\n<h2>System Identity<\/h2>\n<p>System Identity is to MikroTik what hostname is to Cisco. Configuring system identity is part of the administrative configuration and is not compulsory. This is not part of the requirement to connect a router to the internet but is recommended especially when managing multiple routers. It allows an administrator easily identify a router.<\/p>\n<p>To assign a MikroTik router an identity, simply enter the commands below.<\/p>\n<p><em>\/system identity set name=know.al<\/em><\/p>\n<h2>Username and password<\/h2>\n<p>Though not compulsorily required to connect a router to the internet, it highly recommended for the security of your network and network device. MikroTik routers have default username as admin with no password. Users are advised to change these settings.<br \/>\nTo change username, click on system&gt;&gt;users&gt;&gt;double click on the admin user and change username from admin to something else. See image below.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7220\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/1.png\" alt=\"\" width=\"572\" height=\"434\"><\/p>\n<p>To set system password, click on system&gt;&gt;password&gt;&gt;leave the space for old password blank and enter new password twice.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7218\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/2.png\" alt=\"\" width=\"499\" height=\"360\"><\/p>\n<h2>Assign IP addresses<\/h2>\n<p>At the most basic level, two IPs are required on the router to successfully connect users behind a Mikrotik router to the internet. These are the WAN and LAN IPs. Before the assignment of IPs, the WAN and LAN interfaces must have been chosen. In most cases, the ISP connection goes to ether1 while the LAN connection is plugged to ether2. If the ISP has dhcp enabled, then the ether1 on the Mikrotik can be configured as a dhcp client, otherwise, an IP will be configured manually. See&nbsp;<a href=\"https:\/\/www.timigate.com\/2017\/09\/configuring-dhcp-client-on-mikrotik.html\">here<\/a>&nbsp;for how to configure a Mikrotik router interface as a dhcp client.<\/p>\n<p>To assign an IP address manually, click on IP&gt;&gt;address&gt;&gt;add&gt;&gt;enter address and subnetmask.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7216\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/3.png\" alt=\"\" width=\"593\" height=\"367\"><\/p>\n<h2>Default gateway<\/h2>\n<p>The router must be assigned a default gateway, also known as default route, to get to destinations beyond the &nbsp;ISP\u2019s network. To configure a default route on Mikrotik, click on IP&gt;&gt; route&gt;&gt; enter gateway to destination 0.0.0.0\/0.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7214\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/4.png\" alt=\"\" width=\"552\" height=\"365\"><\/p>\n<h2>Configure dhcp server<\/h2>\n<p>In most cases, a dhcp server will be required to help lease out IP addresses to connected users. Without a dhcp server, assignment of IPs can become a fulltime job, and if not properly done, there will IP conflicts.<\/p>\n<p>Before you configure a dhcp-server make sure that:<\/p>\n<ul>\n<li>The interface where the dhcp server will be configured has to have an available IP Address within the subnet that will be allocated.<\/li>\n<li>In the first step of configuration just like it\u2019s suggested below, select the interface where you have configured the IP Address.<\/li>\n<li>Dhcp Server can\u2019t be configured in an interface that\u2019s part of the <strong>bridge<\/strong>. In this case the configuration of IP Address and Dhcp Server has to be done on the <strong>bridge<\/strong>.<\/li>\n<\/ul>\n<p>To configure a dhcp server on a Mikrotik router, click on IP&gt;&gt;dhcp server&gt;&gt;dhcp setup and follow through.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7212\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/5.png\" alt=\"\" width=\"563\" height=\"328\"><\/p>\n<h2>NAT<\/h2>\n<p>Nat configuration is required for systems on the LAN to have access to the internet. It allows packets source IPs to be masqueraded with the public IP on the Mikrotik router as they exit the router via the WAN interface to the internet. To configure NAT on a Mikrotik simply enter the commands below.<\/p>\n<p><em>\/IP firewall nat&nbsp;<\/em><\/p>\n<p><em>add chain=srcnat in-interface=ether2 out-interface=ether1 action=masquerade<\/em><\/p>\n<p>&nbsp;<\/p>\n<h4>If you would like to learn more and certify your knowledge in MikroTik, don\u2019t hesitate to contact us and participate in our trainings. Thank you!<\/h4>\n","protected":false},"excerpt":{"rendered":"<p>How to configure a MikroTik router step by step &nbsp; This post is for those that want to know how to configure a MikroTik router; step by step. It is important to understand what must be done to successfully install a MikroTik router for internet access. There are seven basic configuration requirements that must be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9687,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","footnotes":""},"categories":[26],"tags":[],"class_list":["post-9666","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","post-wrapper","thrv_wrapper"],"_links":{"self":[{"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/posts\/9666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/comments?post=9666"}],"version-history":[{"count":0,"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/posts\/9666\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/media\/9687"}],"wp:attachment":[{"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/media?parent=9666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/categories?post=9666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/tags?post=9666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}