{"id":9667,"date":"2022-09-09T10:53:02","date_gmt":"2022-09-09T08:53:02","guid":{"rendered":"https:\/\/knowal.sfida.me\/dhcp-server-configuration-in-mikrotik-router\/"},"modified":"2022-09-09T11:25:34","modified_gmt":"2022-09-09T09:25:34","slug":"dhcp-server-configuration-in-mikrotik-router","status":"publish","type":"post","link":"https:\/\/know.al\/en\/dhcp-server-configuration-in-mikrotik-router\/","title":{"rendered":"DHCP Server Configuration in MikroTik Router"},"content":{"rendered":"<p><strong>&nbsp;Dynamic Host Configuration Protocol<\/strong>&nbsp;(DHCP) is a client\/server protocol where a DHCP server automatically provides an Internet Protocol (IP) address and other related information such as subnet mask, default gateway and DNS to DHCP clients. DHCP server and client use UDP port 67 and 68 for communication. In a network, a DHCP client (IP devices such as Desktop, Laptop, Smartphone etc.) requests for an IP lease to DHCP servers and a DHCP server responses allocating IP address and other related IP information for a certain period. So, a DHCP server reduces huge network administration tasks of a system administrator. Every MikroTik Router has a built-in DHCP service. So, system admin can easily turn MikroTik Router into a DHCP server and can easily reduce his network administration task.<\/p>\n<h4><strong>MikroTik DHCP Server configuration<\/strong><\/h4>\n<p>Generally, every MikroTik router has a built-in DHCP service. So, if you have a MikroTik router and you want to enable a DHCP server in your network with MikroTik router to reduce your administrator task, keep reading the rest of this article where I will show you how to configure a DHCP server in your MikroTik router.<\/p>\n<p>Before going to start configuring a DHCP server in MikroTik router, I will show you a basic network diagram where a MikroTik router is working as a DHCP server as well as it is working as a network gateway. I hope, your network is almost same like the below network diagram and you want to enable a DHCP server in your MikroTik router.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7266\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/DHCP-Server-1.png\" alt=\"\" width=\"1056\" height=\"816\"><\/p>\n<h6 style=\"text-align: center;\">DHCP Enabled Network Diagram with MikroTik Router<\/h6>\n<p>In the above network diagram, the first interface (ether1 port) of <strong>MikroTik<\/strong> router is connected to an ISP for accessing internet and this interface is known as WAN port. All the LAN users are connected to second interface (ether2 port) of <strong>MikroTik<\/strong> router through a network switch. We will now enable DHCP server in this second interface so that all the LAN users will get network information (IP, Subnet mask, Gateway and DNS) dynamically from this DHCP server to access internet. But before enabling DHCP server in <strong>MikroTik<\/strong> router, you have to complete <strong>MikroTik<\/strong> router basic configuration that you find in our link here: <strong><a href=\"https:\/\/know.al\/en\/how-to-configure-a-mikrotik-router-step-by-step\/\">How To Configure A MikroTik Router Step By Step<\/a><\/strong>. Basic configuration includes WAN and LAN IP assigning, Gateway IP assigning, DNS configuration and NAT rule creation.<\/p>\n<p>Now complete the basic configuration of your <strong>MikroTik<\/strong> router and then follow my below steps to enable DHCP server in your <strong>MikroTik<\/strong> router.<\/p>\n<ol>\n<li>Go to&nbsp;<em>IP &gt; DHCP Server <\/em>menu from your winbox. DHCP Server window will appear.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7248\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/1-1.png\" alt=\"\" width=\"1279\" height=\"791\"><\/p>\n<ol start=\"2\">\n<li>In <em>DHCP Server<\/em>&nbsp;window, click on&nbsp;<em>DHCP Setup<\/em>&nbsp;button and choose the interface (in this article: ether2) in which you want to setup DHCP server from&nbsp;<em>DHCP Server Interface<\/em>&nbsp;drop-down menu and then click on&nbsp;<em>Next<\/em><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7250\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/2-1.png\" alt=\"\" width=\"835\" height=\"350\"><\/p>\n<ol start=\"3\">\n<li>Now put your LAN network block in&nbsp;<em>DHCP Address Space <\/em>input box and click&nbsp;<em>Next<\/em> DHCP client\/LAN user will get IP from this network.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7252\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/3-1.png\" alt=\"\" width=\"281\" height=\"139\"><\/p>\n<ol start=\"4\">\n<li>Choose gateway address for the given network in&nbsp;<em>Gateway for DHCP Network <\/em>input box and then click&nbsp;<em>Next<\/em><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7254\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/4-1.png\" alt=\"\" width=\"277\" height=\"140\"><\/p>\n<ol start=\"5\">\n<li>Provide IP range from which your DHCP client\/LAN user will get IP in&nbsp;<em>Address to Give Out <\/em>input box and click&nbsp;<em>Next<\/em><\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7256\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/5-1.png\" alt=\"\" width=\"275\" height=\"139\"><\/p>\n<ol start=\"6\">\n<li>Provide preferred DNS server IP and click&nbsp;<em>Next<\/em><\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7258\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/6.png\" alt=\"\" width=\"279\" height=\"144\"><\/p>\n<ol start=\"7\">\n<li>Now provide IP lease time and click&nbsp;<em>Next<\/em> Default lease time is 3 days.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7260\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/7.png\" alt=\"\" width=\"279\" height=\"142\"><\/p>\n<ol start=\"8\">\n<li>DHCP setup is complete now and a successful message will be shown.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7262\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/8.png\" alt=\"\" width=\"840\" height=\"358\"><\/p>\n<ol start=\"9\">\n<li>Now connect any IP device (Desktop, Laptop, Smartphone etc.) to your network. Automatically an IP will be allocated for that device from your <strong>MikroTik<\/strong> DHCP server. Click Leases tab and observe IP lease status of that DHCP client.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-7264\" src=\"https:\/\/know.al\/wp-content\/uploads\/2020\/08\/9.png\" alt=\"\" width=\"820\" height=\"360\"><\/p>\n<p>If you follow the above steps carefully, your <strong>MikroTik<\/strong> router will turn into a DHCP server and your LAN users will now be able to obtain IP information from your MikroTik DHCP server.<\/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>&nbsp;Dynamic Host Configuration Protocol&nbsp;(DHCP) is a client\/server protocol where a DHCP server automatically provides an Internet Protocol (IP) address and other related information such as subnet mask, default gateway and DNS to DHCP clients. DHCP server and client use UDP port 67 and 68 for communication. In a network, a DHCP client (IP devices such [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9684,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","footnotes":""},"categories":[26],"tags":[],"class_list":["post-9667","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\/9667","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=9667"}],"version-history":[{"count":0,"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/posts\/9667\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/media\/9684"}],"wp:attachment":[{"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/media?parent=9667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/categories?post=9667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/know.al\/en\/wp-json\/wp\/v2\/tags?post=9667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}