{"id":209,"date":"2023-12-22T05:31:35","date_gmt":"2023-12-22T05:31:35","guid":{"rendered":"https:\/\/bkdmr.tech\/?p=209"},"modified":"2023-12-22T05:52:28","modified_gmt":"2023-12-22T05:52:28","slug":"dynamic-host-configuration-protocol-dhcp","status":"publish","type":"post","link":"https:\/\/bkdmr.com\/?p=209","title":{"rendered":"Dynamic Host Configuration Protocol &#8211; DHCP"},"content":{"rendered":"\n<p>As you might be aware, for a device to join the network, it must have an assigned IP address. While we can manually assign addresses, managing hundreds of devices becomes challenging, that&#8217;s where DHCP comes in. DHCP enables clients to ask the server for network details like IP address, subnet mask, and gateway. This way, devices can connect to the network without the network administrator needing to assign IP addresses manually.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"486\" data-id=\"214\" src=\"https:\/\/bkdmr.tech\/wp-content\/uploads\/2023\/12\/Part2-Interface-Config-1024x486.png\" alt=\"\" class=\"wp-image-214\" srcset=\"https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part2-Interface-Config-1024x486.png 1024w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part2-Interface-Config-300x142.png 300w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part2-Interface-Config-768x364.png 768w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part2-Interface-Config.png 1037w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/figure>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"576\" data-id=\"216\" src=\"https:\/\/bkdmr.tech\/wp-content\/uploads\/2023\/12\/Part3-Interface-Config-1024x576.png\" alt=\"\" class=\"wp-image-216\" srcset=\"https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part3-Interface-Config-1024x576.png 1024w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part3-Interface-Config-300x169.png 300w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part3-Interface-Config-768x432.png 768w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part3-Interface-Config.png 1166w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>I chose to make a router the DHCP server because it&#8217;s the method taught in CCNA and it&#8217;s easier to set up in EVE-NG. I proceeded to configure all the interfaces on both the DHCP server and the router.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"979\" height=\"502\" data-id=\"217\" src=\"https:\/\/bkdmr.tech\/wp-content\/uploads\/2023\/12\/Part4-DHCP-Config.png\" alt=\"\" class=\"wp-image-217\" srcset=\"https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part4-DHCP-Config.png 979w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part4-DHCP-Config-300x154.png 300w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part4-DHCP-Config-768x394.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>Next, I configured DHCP on the server. I named the DHCP pool &#8216;Office-Network&#8217; and decided to go with the private network 192.168.10.0 to keep it nice and simple.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-7 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"775\" height=\"406\" data-id=\"219\" src=\"https:\/\/bkdmr.tech\/wp-content\/uploads\/2023\/12\/Part5-Router-IP-Helper.png\" alt=\"\" class=\"wp-image-219\" srcset=\"https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part5-Router-IP-Helper.png 775w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part5-Router-IP-Helper-300x157.png 300w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Part5-Router-IP-Helper-768x402.png 768w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>Because the DHCP server is in a different network, it&#8217;s crucial to configure the ip helper-address on the gateway router. This enables the gateway router to forward DHCP requests to the DHCP server.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-9 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"933\" height=\"459\" data-id=\"221\" src=\"https:\/\/bkdmr.tech\/wp-content\/uploads\/2023\/12\/DHCP-IP-Route-1.png\" alt=\"\" class=\"wp-image-221\" srcset=\"https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/DHCP-IP-Route-1.png 933w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/DHCP-IP-Route-1-300x148.png 300w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/DHCP-IP-Route-1-768x378.png 768w\" sizes=\"(max-width: 933px) 100vw, 933px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>With the DHCP server in a different network, it can&#8217;t directly respond to the client&#8217;s IP request for the 192.168.10.0 network. To fix this, I took the step to set up a basic static route.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-11 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"974\" height=\"522\" data-id=\"222\" src=\"https:\/\/bkdmr.tech\/wp-content\/uploads\/2023\/12\/DHCP-Successful.png\" alt=\"\" class=\"wp-image-222\" srcset=\"https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/DHCP-Successful.png 974w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/DHCP-Successful-300x161.png 300w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/DHCP-Successful-768x412.png 768w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/figure>\n<\/figure>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-13 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"763\" height=\"418\" data-id=\"223\" src=\"https:\/\/bkdmr.tech\/wp-content\/uploads\/2023\/12\/Ping-Successful.png\" alt=\"\" class=\"wp-image-223\" srcset=\"https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Ping-Successful.png 763w, https:\/\/bkdmr.com\/wp-content\/uploads\/2023\/12\/Ping-Successful-300x164.png 300w\" sizes=\"(max-width: 763px) 100vw, 763px\" \/><\/figure>\n<\/figure>\n\n\n\n<p>To finish up, I made sure the virtual PCs were set to request DHCP and then I pinged the gateway to confirm that everything was running smoothly.<\/p>\n\n\n\n<p>In summary, DHCP simplifies network management by automatically assigning IP addresses. Using a router as the DHCP server along with the IP helper-address and a static route, I was able to use DHCP to assign IP addresses across different networks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you might be aware, for a device to join the network, it must have an assigned IP address. While we can manually assign addresses, managing hundreds of devices becomes challenging, that&#8217;s where DHCP comes in. DHCP enables clients to ask the server for network details like IP address, subnet mask, and gateway. This way, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":210,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/bkdmr.com\/index.php?rest_route=\/wp\/v2\/posts\/209"}],"collection":[{"href":"https:\/\/bkdmr.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bkdmr.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bkdmr.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bkdmr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=209"}],"version-history":[{"count":6,"href":"https:\/\/bkdmr.com\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":226,"href":"https:\/\/bkdmr.com\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions\/226"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bkdmr.com\/index.php?rest_route=\/wp\/v2\/media\/210"}],"wp:attachment":[{"href":"https:\/\/bkdmr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bkdmr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bkdmr.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}