{"id":78728,"date":"2026-06-28T13:42:13","date_gmt":"2026-06-28T13:42:13","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=78728"},"modified":"2026-06-28T13:42:14","modified_gmt":"2026-06-28T13:42:14","slug":"how-to-install-dhcp-role","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=78728","title":{"rendered":"How to Install DHCP role"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Ref: AI Tools, ChatGPT : As is<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install the <strong>DHCP Server role<\/strong> on Windows Server 2019, use <strong>Windows PowerShell as Administrator<\/strong> on the <strong>server VM<\/strong>, not the client VM.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Open PowerShell as Administrator<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On the Windows Server VM:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Start Menu \u2192 Windows PowerShell \u2192 Right-click \u2192 Run as administrator\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. Check whether DHCP is already installed<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-WindowsFeature DHCP\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If it is not installed, you may see:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Display Name                                            Install State\n------------                                            -------------\n&#91; ] DHCP Server                                         Available\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3. Install DHCP Server role<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Install-WindowsFeature DHCP -IncludeManagementTools\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>-IncludeManagementTools<\/code> installs the DHCP management tools also.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. Verify installation<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-WindowsFeature DHCP\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Expected result:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;X] DHCP Server                                         Installed\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Also check the DHCP service:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Service DHCPServer\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">5. Start or restart the DHCP service<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Start-Service DHCPServer\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Restart-Service DHCPServer\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Verify again:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Service DHCPServer\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Expected status:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Status   Name         DisplayName\n------   ----         -----------\nRunning  DHCPServer   DHCP Server\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">6. If the DHCP server is domain-joined, authorize it in AD<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use the server\u2019s static IP address:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ServerIP = \"192.168.XX.10\"\n$ServerFQDN = \"$env:COMPUTERNAME.powershell.local\"\n\nAdd-DhcpServerInDC -DnsName $ServerFQDN -IPAddress $ServerIP\nGet-DhcpServerInDC\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>XX<\/code> with the student\u2019s network number.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Simple version<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Install-WindowsFeature DHCP -IncludeManagementTools\nGet-WindowsFeature DHCP\nGet-Service DHCPServer\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This installs and verifies the DHCP Server role.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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: 2. Check whether DHCP is already installed If it is not installed, you may see: &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=78728\">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":[1981],"tags":[],"class_list":["post-78728","post","type-post","status-publish","format-standard","hentry","category-power-shell","item-wrap"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":78721,"url":"http:\/\/bangla.sitestree.com\/?p=78721","url_meta":{"origin":78728,"position":0},"title":"DHCP: Powershell Commands","author":"Sayed","date":"June 27, 2026","format":false,"excerpt":"Commands that work in Windows PowerShell 5.1 These DHCP\/networking commands are intended for Windows Server PowerShell: Install-WindowsFeature DHCPInstall-WindowsFeature DHCP -IncludeManagementToolsImport-Module DHCPServerAdd-DhcpServerv4ScopeSet-DhcpServerv4OptionValueGet-DhcpServerv4ScopeGet-DhcpServerv4LeaseGet-DhcpServerInDCAdd-DhcpServerInDCRestart-Service DHCPServerGet-Service DHCPServer Related: Get-NetAdapterGet-NetIPAddressNew-NetIPAddressSet-DnsClientServerAddressGet-DnsClientServerAddressipconfig \/all","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":78728,"position":1},"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":78723,"url":"http:\/\/bangla.sitestree.com\/?p=78723","url_meta":{"origin":78728,"position":2},"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":[]},{"id":78382,"url":"http:\/\/bangla.sitestree.com\/?p=78382","url_meta":{"origin":78728,"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":78730,"url":"http:\/\/bangla.sitestree.com\/?p=78730","url_meta":{"origin":78728,"position":4},"title":"Why a DHCP server join the Active Directory","author":"Sayed","date":"June 28, 2026","format":false,"excerpt":"Authorizing a DHCP server in Active Directory means: \u201cThis DHCP server is approved by the domain to give IP addresses to clients.\u201d In a Windows AD domain, a domain-joined DHCP server must be authorized before it can start leasing IP addresses. Microsoft\u2019s Add-DhcpServerInDC cmdlet adds the DHCP server to the\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":78403,"url":"http:\/\/bangla.sitestree.com\/?p=78403","url_meta":{"origin":78728,"position":5},"title":"How to install a DHCP Server in Ubuntu:","author":"Sayed","date":"August 27, 2025","format":false,"excerpt":"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 &&\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-15.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78728","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=78728"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78728\/revisions"}],"predecessor-version":[{"id":78729,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78728\/revisions\/78729"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78728"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}