{"id":1664,"date":"2019-10-16T11:05:16","date_gmt":"2019-10-16T07:35:16","guid":{"rendered":"https:\/\/airoserver.com\/?p=1664"},"modified":"2022-04-04T09:10:47","modified_gmt":"2022-04-04T04:40:47","slug":"what-is-dhcp-server","status":"publish","type":"post","link":"https:\/\/airoserver.com\/fa\/dedicated\/what-is-dhcp-server\/","title":{"rendered":"What is DHCP Server?"},"content":{"rendered":"<p>In our earlier posts, we have discussed <a href=\"https:\/\/airoserver.com\/fa\/blog\/what-is-ip\/\">IP<\/a> completely. We said that every device that wants to join a network, gets an IP. But how do these devices know which IP they should get? This is when DHCP can help us.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>IP Assignment<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>There are two ways of assigning IPs to devices:<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li><strong>Statically:<\/strong> you have to go over all the IPs that are used in the network to make sure which one is not taken and then assign a non-taken IP to the device. You should also be careful to choose an IP that has the correct <a href=\"https:\/\/airoserver.com\/fa\/dedicated\/what-is-subnet-mask\/\" target=\"_blank\" rel=\"noreferrer noopener\">Net ID<\/a> in order to be visible in that network.<\/li>\r\n<li><strong>Dynamically:<\/strong> This way means that when a device connects to a network, an IP will be assigned to it automatically. But what does this automatic assignment?<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>DHCP<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>A DHCP server is a network server that automatically assigns IP addresses, default gateways and other network parameters to client devices. It is based on the Dynamic Host Configuration Protocol (DHCP)\u00a0to respond to broadcast queries by clients.<\/p>\r\n\r\n\r\n\r\n<p>So, DHCP can simplify the IP assignment and management in a network. Imagine you have 30 different client devices in a place and you want all of them to be in the same network. To do this, you have to assign IPs with the same Network ID to all of them. Obviously it takes a lot of time to do this manually that is why instead of going over every device and assign an IP to them one by one, you can have a DHCP to do this for you.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>How does it work?<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>The stages of IP assignment by DHCP are called DORA: Discovery, Offer, Request, and Acknowledgment.<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li><strong>Discovery:<\/strong> The client sends a broadcast request to find a DHCP server.<\/li>\r\n<li><strong>Offer:<\/strong> After the DHCP Server receives the discover message it suggests the IP addressing offering to the client by unicast.<\/li>\r\n<li><strong>Request:<\/strong> Now after the client receives the offer it sends\u00a0a request message to the server officially this time by unicast.<\/li>\r\n<li><strong>Acknowledgment:<\/strong> Server sends\u00a0an ACKNOWLEDGE\u00a0message confirming the DHCP lease to the client. Now the client is allowed to use new IP settings.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-1667\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/10\/images_text_DHCP2.jpg\" alt=\"How does DHCP work?\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>The security risk of using DHCP<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>Using a DHCP server is not all good and it has its cons too.<\/p>\r\n\r\n\r\n\r\n<p>The DHCP protocol requires no\u00a0authentication\u00a0so any client can join a network quickly. Because of this, it opens up a number of security risks, including unauthorized servers handing out bad information to clients, unauthorized clients being given IP addresses and etc.<\/p>\r\n\r\n\r\n\r\n<p>Since the client has no way of validating the authenticity of a DHCP server, it can cause denial-of-service attacks or <a href=\"https:\/\/en.wikipedia.org\/wiki\/Man-in-the-middle_attack\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"man-in-the-middle (opens in a new tab)\">man-in-the-middle<\/a> attacks where a fake server intercepts data that can be used for malicious purposes. Conversely, because the DHCP server has no way of authenticating a client, it will hand out IP address information to any device that makes a request.\u00a0 A threat actor could configure a client to continually change its credentials and quickly exhaust all available IP addresses in the scope, preventing company endpoints from accessing the network.<\/p>\r\n\r\n\r\n\r\n<p>We hope you enjoyed this post. If you did, you can visit our <a href=\"https:\/\/airoserver.com\/fa\/blog\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"blog (opens in a new tab)\">blog<\/a> for more.<\/p>","protected":false},"excerpt":{"rendered":"<p>In our earlier posts, we have discussed IP completely. We said that every device that wants to join a network, gets an IP. But how do these devices know which IP they should get? This is when DHCP can help us. IP Assignment There are two ways of assigning IPs to devices: Statically: you have [&hellip;]<\/p>","protected":false},"author":5,"featured_media":33961,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[179,176,182,178],"tags":[85,184],"class_list":["post-1664","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-airoserver","category-dedicated","category-shared-hosting","category-airo-vps","tag-airoserver","tag-network"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is DHCP Server?<\/title>\n<meta name=\"description\" content=\"The DHCP server assigns IP addresses automatically. So, instead of going over every device and assign an IP to them one by one, DHCP does it for us.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/airoserver.com\/fa\/dedicated\/what-is-dhcp-server\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is DHCP Server?\" \/>\n<meta property=\"og:description\" content=\"The DHCP server assigns IP addresses automatically. So, instead of going over every device and assign an IP to them one by one, DHCP does it for us.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/airoserver.com\/fa\/dedicated\/what-is-dhcp-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Airoserver | Cloud Hosting Solutions\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-16T07:35:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-04T04:40:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/10\/DHCP.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"370\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"SEO Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a\" \/>\n\t<meta name=\"twitter:data1\" content=\"SEO Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/\"},\"author\":{\"name\":\"SEO Team\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\"},\"headline\":\"What is DHCP Server?\",\"datePublished\":\"2019-10-16T07:35:16+00:00\",\"dateModified\":\"2022-04-04T04:40:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/\"},\"wordCount\":528,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"keywords\":[\"airoserver\",\"Network\"],\"articleSection\":[\"AiroServer\",\"Dedicated\",\"Shared Hosting\",\"VPS\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/\",\"url\":\"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/\",\"name\":\"What is DHCP Server?\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/#website\"},\"datePublished\":\"2019-10-16T07:35:16+00:00\",\"dateModified\":\"2022-04-04T04:40:47+00:00\",\"description\":\"The DHCP server assigns IP addresses automatically. So, instead of going over every device and assign an IP to them one by one, DHCP does it for us.\",\"breadcrumb\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/airoserver.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is DHCP Server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/airoserver.com\/#website\",\"url\":\"https:\/\/airoserver.com\/\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"description\":\"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver\",\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/airoserver.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/airoserver.com\/#organization\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"url\":\"https:\/\/airoserver.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"contentUrl\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"width\":925,\"height\":880,\"caption\":\"Airoserver | Cloud Hosting Solutions\"},\"image\":{\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\",\"name\":\"SEO Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"caption\":\"SEO Team\"},\"url\":\"https:\/\/airoserver.com\/fa\/author\/seoteam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is DHCP Server?","description":"The DHCP server assigns IP addresses automatically. So, instead of going over every device and assign an IP to them one by one, DHCP does it for us.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/airoserver.com\/fa\/dedicated\/what-is-dhcp-server\/","og_locale":"fa_IR","og_type":"article","og_title":"What is DHCP Server?","og_description":"The DHCP server assigns IP addresses automatically. So, instead of going over every device and assign an IP to them one by one, DHCP does it for us.","og_url":"https:\/\/airoserver.com\/fa\/dedicated\/what-is-dhcp-server\/","og_site_name":"Airoserver | Cloud Hosting Solutions","article_published_time":"2019-10-16T07:35:16+00:00","article_modified_time":"2022-04-04T04:40:47+00:00","og_image":[{"width":700,"height":370,"url":"https:\/\/airoserver.com\/wp-content\/uploads\/2019\/10\/DHCP.jpg","type":"image\/jpeg"}],"author":"SEO Team","twitter_card":"summary_large_image","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a":"SEO Team","\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646":"3 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/#article","isPartOf":{"@id":"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/"},"author":{"name":"SEO Team","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897"},"headline":"What is DHCP Server?","datePublished":"2019-10-16T07:35:16+00:00","dateModified":"2022-04-04T04:40:47+00:00","mainEntityOfPage":{"@id":"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/"},"wordCount":528,"commentCount":0,"publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"keywords":["airoserver","Network"],"articleSection":["AiroServer","Dedicated","Shared Hosting","VPS"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/","url":"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/","name":"What is DHCP Server?","isPartOf":{"@id":"https:\/\/airoserver.com\/#website"},"datePublished":"2019-10-16T07:35:16+00:00","dateModified":"2022-04-04T04:40:47+00:00","description":"The DHCP server assigns IP addresses automatically. So, instead of going over every device and assign an IP to them one by one, DHCP does it for us.","breadcrumb":{"@id":"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/airoserver.com\/dedicated\/what-is-dhcp-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/airoserver.com\/"},{"@type":"ListItem","position":2,"name":"What is DHCP Server?"}]},{"@type":"WebSite","@id":"https:\/\/airoserver.com\/#website","url":"https:\/\/airoserver.com\/","name":"Airoserver | Cloud Hosting Solutions","description":"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver","publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/airoserver.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/airoserver.com\/#organization","name":"Airoserver | Cloud Hosting Solutions","url":"https:\/\/airoserver.com\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/","url":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","contentUrl":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","width":925,"height":880,"caption":"Airoserver | Cloud Hosting Solutions"},"image":{"@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897","name":"SEO Team","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/airoserver.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","caption":"SEO Team"},"url":"https:\/\/airoserver.com\/fa\/author\/seoteam\/"}]}},"_links":{"self":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts\/1664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/comments?post=1664"}],"version-history":[{"count":0,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts\/1664\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/media\/33961"}],"wp:attachment":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/media?parent=1664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/categories?post=1664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/tags?post=1664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}