{"id":78403,"date":"2025-08-27T03:39:55","date_gmt":"2025-08-27T03:39:55","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=78403"},"modified":"2025-08-27T03:39:56","modified_gmt":"2025-08-27T03:39:56","slug":"how-to-install-a-dhcp-server-in-ubuntu","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=78403","title":{"rendered":"How to install a DHCP Server in Ubuntu:"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><a>How to install a DHCP Server in Ubuntu:<\/a><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Use these commands and steps in sequence:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># Make sure you have an IP address.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># If not, please assign an IP address (you can use netplan)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># see the next section how to assign an IP address.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt update &amp;&amp; sudo apt upgrade -y<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo apt install isc-dhcp-server -y<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong># go to this file and mention which network interface will be used by the DHCP server<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo nano \/etc\/default\/isc-dhcp-server<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"343\" height=\"100\" src=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-15.png?resize=343%2C100\" alt=\"\" class=\"wp-image-78404\" srcset=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-15.png?w=343 343w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-15.png?resize=300%2C87 300w\" sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong># Configure your DHCP Server<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo nano \/etc\/dhcp\/dhcpd.conf<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"339\" height=\"112\" src=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-16.png?resize=339%2C112\" alt=\"\" class=\"wp-image-78405\" srcset=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-16.png?w=339 339w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-16.png?resize=300%2C99 300w\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"625\" height=\"172\" src=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-17.png?resize=625%2C172\" alt=\"\" class=\"wp-image-78406\" srcset=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-17.png?w=625 625w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-17.png?resize=300%2C83 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>#Step 5: Restart and enable service<\/strong><strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo systemctl restart isc-dhcp-server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo systemctl enable isc-dhcp-server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong># Check status of the DHCP Server:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">systemctl status isc-dhcp-server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>How to assign a Static IP address to an Ubuntu Box<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">sudo nano \/etc\/netplan\/02-network-manager.yaml<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"35\" src=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-18.png?resize=600%2C35\" alt=\"\" class=\"wp-image-78407\" srcset=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-18.png?w=600 600w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-18.png?resize=300%2C18 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The file name can be different<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"501\" height=\"138\" src=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-19.png?resize=501%2C138\" alt=\"\" class=\"wp-image-78408\" srcset=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-19.png?w=501 501w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-19.png?resize=300%2C83 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>#Run:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">sudo netplan apply<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to install a DHCP Server in Ubuntu: Use these commands and steps in sequence: # Make sure you have an IP address. # If not, please assign an IP address (you can use netplan) # see the next section how to assign an IP address. sudo apt update &amp;&amp; sudo apt upgrade -y sudo &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=78403\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1978],"tags":[],"class_list":["post-78403","post","type-post","status-publish","format-standard","hentry","category-computer-networks","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":78410,"url":"http:\/\/bangla.sitestree.com\/?p=78410","url_meta":{"origin":78403,"position":0},"title":"How to configure a DHCP Client in Ubuntu","author":"Sayed","date":"August 27, 2025","format":false,"excerpt":"How to configure a DHCP Client in Ubuntu #Step 1: Install it sudo apt update sudo apt install isc-dhcp-client #Step 2: Check that your Ubuntu is configured as a DHCP client # Step 3: Run it on your interface sudo dhclient -v enp0s3","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-20.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":78728,"url":"http:\/\/bangla.sitestree.com\/?p=78728","url_meta":{"origin":78403,"position":1},"title":"How to Install DHCP role","author":"Sayed","date":"June 28, 2026","format":false,"excerpt":"Ref: AI Tools, ChatGPT : As is To install the DHCP Server role on Windows Server 2019, use Windows PowerShell as Administrator on the server VM, not the client VM. 1. Open PowerShell as Administrator On the Windows Server VM: Start Menu \u2192 Windows PowerShell \u2192 Right-click \u2192 Run as\u2026","rel":"","context":"In &quot;Power Shell&quot;","block_context":{"text":"Power Shell","link":"http:\/\/bangla.sitestree.com\/?cat=1981"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78732,"url":"http:\/\/bangla.sitestree.com\/?p=78732","url_meta":{"origin":78403,"position":2},"title":"Understanding Host-Only Networking in Oracle VirtualBox: Concepts, Tools, IP Addressing, DHCP, and Practical Options","author":"Sayed","date":"June 28, 2026","format":false,"excerpt":"Ref: Oracle VirtualBox User Guide: VirtualBox supports configurable virtual network cards per VM, host-only networking connects VMs with each other and the host while keeping them away from the outside network, and VirtualBox includes a DHCP server for host-only\/internal networks. (VirtualBox) (VirtualBox) Introduction Oracle VirtualBox provides several networking modes for\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":21831,"url":"http:\/\/bangla.sitestree.com\/?p=21831","url_meta":{"origin":78403,"position":3},"title":"Some Ubuntu Linux Commands used in AWS platform #Unix\/Linux #RHCSA","author":"Author-Check- Article-or-Video","date":"March 7, 2021","format":false,"excerpt":"Some Ubuntu Linux Commands used in AWS platform Some might be run by the parent commands This is kinda cleaned up from .bash_history (removed repeating and sensitive commands), still not perfectly cleaned up - so you will see lots of ls, cd, dir or similar \u00a0 sudo apt-get update sudo\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78519,"url":"http:\/\/bangla.sitestree.com\/?p=78519","url_meta":{"origin":78403,"position":4},"title":"Step by step DNS Server installation in ubuntu in a fresh VM","author":"Author-Check- Article-or-Video","date":"September 28, 2025","format":false,"excerpt":"\"Nice \u2014 below is a complete, step-by-step, blog-ready guide to install and configure a simple authoritative + optional recursive BIND9 DNS server on a fresh Ubuntu VM. It\u2019s copyright-free and ready to paste into your notes or blog. Notes before you begin\u2022 This guide assumes Ubuntu 22.04 \/ 24.04 (netplan-based).\u2022\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78723,"url":"http:\/\/bangla.sitestree.com\/?p=78723","url_meta":{"origin":78403,"position":5},"title":"How to? Disable VirtualBox DHCP for host-only network","author":"Sayed","date":"June 28, 2026","format":false,"excerpt":"Ref: AI Tools, ChatGPT, Similar \u201cDisable VirtualBox DHCP for host-only network\u201d means: Turn off the built-in DHCP server inside VirtualBox, so your Windows Server DHCP service becomes the only DHCP server giving IP addresses to the client VM. Why this matters In your DHCP lab, students are installing and configuring\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2026\/06\/image-7.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2026\/06\/image-7.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2026\/06\/image-7.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2026\/06\/image-7.png?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78403"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78403\/revisions"}],"predecessor-version":[{"id":78409,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78403\/revisions\/78409"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78403"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}