{"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><strong>Use these commands and steps in sequence:<\/strong><\/p>\n\n\n\n<p># Make sure you have an IP address.<\/p>\n\n\n\n<p># If not, please assign an IP address (you can use netplan)<\/p>\n\n\n\n<p># see the next section how to assign an IP address.<\/p>\n\n\n\n<p>sudo apt update &amp;&amp; sudo apt upgrade -y<\/p>\n\n\n\n<p>sudo apt install isc-dhcp-server -y<\/p>\n\n\n\n<p><strong># go to this file and mention which network interface will be used by the DHCP server<\/strong><\/p>\n\n\n\n<p>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><strong># Configure your DHCP Server<\/strong><\/p>\n\n\n\n<p>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><strong>#Step 5: Restart and enable service<\/strong><strong><\/strong><\/p>\n\n\n\n<p>sudo systemctl restart isc-dhcp-server<\/p>\n\n\n\n<p>sudo systemctl enable isc-dhcp-server<\/p>\n\n\n\n<p><strong># Check status of the DHCP Server:<\/strong><\/p>\n\n\n\n<p>systemctl status isc-dhcp-server<\/p>\n\n\n\n<p><\/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>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>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><strong>#Run:<\/strong><\/p>\n\n\n\n<p>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_memberships_contains_paid_content":false,"footnotes":""},"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":21831,"url":"http:\/\/bangla.sitestree.com\/?p=21831","url_meta":{"origin":78403,"position":1},"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":2},"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":78382,"url":"http:\/\/bangla.sitestree.com\/?p=78382","url_meta":{"origin":78403,"position":3},"title":"Implement DHCP Server in GNS 3: Experiment with DHCP Protocol with DHCP server and Clients","author":"Sayed","date":"August 23, 2025","format":false,"excerpt":"Experiment with the DHCP Protocol with a DHCP server and Clients Tools Required: GNS 3 VMWare Workstation Pro or Oracle VirtualBox GNS VM Wireshark Steps in GNS 3: Create the LAN segment Configure a DHCP Server From PCs (clients) : request IP address from the DHCP server Check the DHCP\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\/2025\/08\/image-5.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":78641,"url":"http:\/\/bangla.sitestree.com\/?p=78641","url_meta":{"origin":78403,"position":4},"title":"SMTP: Purpose, Installation, Steps, Data Format","author":"Author-Check- Article-or-Video","date":"December 2, 2025","format":false,"excerpt":"Below is a 30\u201340 minute SMTP lesson plan suitable for college-level networking courses . It includes: purpose, tools, installations, commands, protocol operations, Telnet interaction, data formats, and references to typical Wireshark visuals (without reproducing copyrighted images). \ud83d\udcd8 SMTP Lesson Plan (30\u201340 Minutes) Topic: Simple Mail Transfer Protocol (SMTP)Audience: Networking \/\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":78615,"url":"http:\/\/bangla.sitestree.com\/?p=78615","url_meta":{"origin":78403,"position":5},"title":"How to assign a Static IP address to an Ubuntu Box","author":"Sayed","date":"November 26, 2025","format":false,"excerpt":"How to assign a Static IP address to an Ubuntu Box sudo nano \/etc\/netplan\/02-network-manager.yaml The file name can be different sudo nano \/etc\/netplan\/02-network-manager-all.yaml Configure as below: #Run: sudo netplan apply Check if you have an IP ip address show","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\/11\/image-20.png?resize=350%2C200","width":350,"height":200},"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}]}}