{"id":78730,"date":"2026-06-28T14:12:35","date_gmt":"2026-06-28T14:12:35","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=78730"},"modified":"2026-06-28T14:12:35","modified_gmt":"2026-06-28T14:12:35","slug":"why-a-dhcp-server-join-the-active-directory","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=78730","title":{"rendered":"Why a DHCP server join the Active Directory"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Authorizing a DHCP server in Active Directory means:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u201cThis DHCP server is approved by the domain to give IP addresses to clients.\u201d<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">In a Windows AD domain, a domain-joined DHCP server must be authorized before it can start leasing IP addresses. Microsoft\u2019s <code>Add-DhcpServerInDC<\/code> cmdlet adds the DHCP server to the list of authorized DHCP servers in Active Directory. (<a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/dhcpserver\/add-dhcpserverindc?view=windowsserver2025-ps\">Microsoft Learn<\/a>)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What do we achieve?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You achieve <strong>control and safety<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Without authorization, any domain-joined Windows Server with DHCP installed could accidentally or wrongly start giving IP addresses to computers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With authorization, Active Directory keeps a list of approved DHCP servers. Only approved DHCP servers should lease IP addresses in the domain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why is this helpful in real life?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Imagine a college or company network.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The real DHCP server should give clients correct settings like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>IP address:      192.168.10.50\nSubnet mask:     255.255.255.0\nDefault gateway: 192.168.10.1\nDNS server:      192.168.10.10\nDNS domain:      college.local\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">But if someone accidentally enables another DHCP server, clients may receive wrong settings like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>IP address:      192.168.99.50\nDefault gateway: wrong router\nDNS server:      wrong DNS server\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then users may lose access to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Internet\nshared drives\nprinters\ndomain login\ninternal websites\nActive Directory services\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Microsoft describes DHCP authorization as a Windows Server DHCP feature that helps prevent unauthorized DHCP servers from providing IP addresses to clients. (<a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/networking\/technologies\/dhcp\/dhcp-top\">Microsoft Learn<\/a>)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-life example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A technician installs DHCP on a test server inside a company domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Without authorization control:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Test DHCP server starts giving addresses\nSome client computers get wrong IP settings\nUsers cannot access network resources\nHelp desk receives many tickets\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">With AD authorization:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Test DHCP server is not authorized\nIt should not lease addresses in the domain\nProduction DHCP server remains the trusted source\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Simple explanation<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">DHCP authorization protects an Active Directory network from rogue or accidental DHCP servers. It ensures that only approved DHCP servers can lease IP addresses to clients.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Lab explanation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">this step teaches  a real enterprise practice:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Add-DhcpServerInDC -DnsName \"DC01.powershell.local\" -IPAddress \"192.168.55.10\"\nGet-DhcpServerInDC\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This proves that the DHCP server is trusted by Active Directory before students test DHCP leases.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ref: AI Tools, ChatGPT<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 list of authorized DHCP servers &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=78730\">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-78730","post","type-post","status-publish","format-standard","hentry","category-power-shell","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":78726,"url":"http:\/\/bangla.sitestree.com\/?p=78726","url_meta":{"origin":78730,"position":0},"title":"Power Shell: DHCP Server and Client","author":"Sayed","date":"June 28, 2026","format":false,"excerpt":"Authorize DHCP server in Active Directory if domain joined. The lab includes this wording: Authorize the DHCP server so it can lease addresses in an AD domain environment.If your lab is not domain joined, document that authorization was not applicable and continue only if instructed. The commands included are: #\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":78728,"url":"http:\/\/bangla.sitestree.com\/?p=78728","url_meta":{"origin":78730,"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":78723,"url":"http:\/\/bangla.sitestree.com\/?p=78723","url_meta":{"origin":78730,"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":78403,"url":"http:\/\/bangla.sitestree.com\/?p=78403","url_meta":{"origin":78730,"position":3},"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":[]},{"id":78382,"url":"http:\/\/bangla.sitestree.com\/?p=78382","url_meta":{"origin":78730,"position":4},"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":68592,"url":"http:\/\/bangla.sitestree.com\/?p=68592","url_meta":{"origin":78730,"position":5},"title":"DHCP: How to configure a DHCP server in Linux #74","author":"Author-Check- Article-or-Video","date":"August 5, 2021","format":false,"excerpt":"DHCP: How to configure a DHCP server in Linux Configure a DHCP Server From: http:\/\/sitestree.com\/?p=5039 Categories:74Tags: Post Data:2011-01-12 23:11:49 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali: http:\/\/Bangla.SaLearningSchool.com http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) Shop Online: https:\/\/www.ShopForSoul.com\/ Medium: https:\/\/medium.com\/@SayedAhmedCanada","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":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78730","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=78730"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78730\/revisions"}],"predecessor-version":[{"id":78731,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78730\/revisions\/78731"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78730"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}