<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DHCP Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/dhcp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 26 Jul 2021 16:27:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to configure DHCP Server on RockyLinux 8 / AlmaLinux OS 8 / CentOS 8?</title>
		<link>https://www.osradar.com/configure-dhcp-server-rockylinux-almalinux-centos-8/</link>
					<comments>https://www.osradar.com/configure-dhcp-server-rockylinux-almalinux-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 31 Jul 2021 00:26:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[almalinux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[Rocky Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31413</guid>

					<description><![CDATA[<p>Hello friends. A DHCP server can solve a lot of problems in an internal network, that’s why it’s good to know how to configure it on a server. That’s why today I will show you how to configure a DHCP server on Rocky Linux 8 / AlmaLinux OS 8 / CentOS 8. What is DHCP? [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/configure-dhcp-server-rockylinux-almalinux-centos-8/">How to configure DHCP Server on RockyLinux 8 / AlmaLinux OS 8 / CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello friends. A DHCP server can solve a lot of problems in an internal network, that’s why it’s good to know how to configure it on a server. That’s why today I will show you <strong>how to configure a DHCP server on Rocky Linux 8 / AlmaLinux OS 8 / CentOS 8.</strong></p>



<h2 class="code-line"><a id="What_is_DHCP_2"></a>What is DHCP?</h2>



<p class="has-line-data"><a href="https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol" target="_blank" rel="noreferrer noopener">DHCP </a>(Dynamic Host Configuration Protocol) is a client-server network protocol that automatically assigns IP addresses within a set range. The DHCP server assigns IP addresses as they become free or unused by other members of the network. To achieve its goal a DHCP server can assign IP addresses as follows: Manual or static assignment: assigns an IP address to a specific machine. Automatic assignment: assigns an IP address to a client machine the first time it makes the request to the DHCP server and until the client releases it. And the third way to assign an IP address by a DHCP server is dynamic assignment.</p>



<p class="has-line-data">So, let’s start.</p>



<h2 class="code-line"><a id="Configuring_DHCP_on_Rocky_Linux_8__AlmaLinux_OS_8__CentOS_8_8"></a>Configuring DHCP Server on Rocky Linux 8 / AlmaLinux OS 8 / CentOS 8</h2>



<p class="has-line-data">Before we start we need to make sure that the server is fully up to date. So, connect to it and update it.</p>



<pre class="wp-block-preformatted">sudo dnf update</pre>



<h3 class="code-line"><a id="Set_a_static_IP_address_on_Rocky_Linux_8__AlmaLinux_OS_8__CentOS_8_14"></a>Set a static IP address on Rocky Linux 8 / AlmaLinux OS 8 / CentOS 8</h3>



<p class="has-line-data">The DHCP server must have a static IP address. This is important for the host to be able to do the process well. So, this is our first step.</p>



<p class="has-line-data">If you need to know <a href="https://www.osradar.com/how-to-set-a-static-ip-address-on-centos-8-rhel-8-oracle-linux-8/">How to set a static IP address on Rocky Linux 8 / AlmaLinux OS 8 / CentOS 8</a> then you can do it through the post we have prepared for you.</p>



<p class="has-line-data">After that, you can continue</p>



<h3 class="code-line"><a id="Configuring_the_DHCP_server_22"></a>Configuring the DHCP server</h3>



<p class="has-line-data">The package that gives us the ability to deploy the server is <code>dhcp-server</code> So we have to install it</p>



<pre class="wp-block-preformatted">sudo dnf install dhcp-server</pre>



<p class="has-line-data">The package is fairly lightweight so the installation can be done quickly.</p>



<p class="has-line-data">Now we have to edit the server configuration file. The file in question is <code>/etc/dhcp/dhcpd.conf</code> but before editing it create a backup</p>



<pre class="wp-block-preformatted">sudo cp /etc/dhcp/dhcpd.conf /etc/dhcpp/dhcpd.confl.bak</pre>



<p class="has-line-data">Now proceed to edit it with your favorite text editor. I use <code>nano</code> but you can use <code>vi</code> or <code>vim</code>.</p>



<pre class="wp-block-preformatted">sudo nano /etc/dhcp/dhcpd.conf</pre>



<p class="has-line-data">Now add the following</p>



<pre class="wp-block-preformatted">default-lease-time 900;
max-lease-time 10800;
ddns-update-style none;
authoritative;
subnet 192.168.20.0 netmask 255.255.255.0 {
  range 192.168.20.10 192.168.20.200;
  option routers 192.168.20.1;
  option subnet-mask 255.255.255.0;
  option domain-name-servers 192.168.20.1;

}</pre>



<p class="has-line-data">Remember that all these values have to be modified. In this case, I will use some example values.</p>



<p class="has-line-data">Thanks to the <code>default-lease-time</code> option we will be able to define how long the DHCP server will reserve an address. While the <code>max-lease-time</code> option will define the maximum. In this case, I have set 900 seconds or 15 minutes for <code>default-lease-time</code> and 10800 minutes or 3 hours for <code>max-lease-time</code>.</p>



<p class="has-line-data">Now comes the vital part of the subnet configuration.</p>



<p class="has-line-data">In this case, the subnet to configure is <code>192.168.20.0</code> and the mask is <code>255.255.255.0</code>. With the <code>range</code> option you define the range of IP addresses to assign. And with the <code>option router</code> option you can define the default gateway. The subnet mask assignment to each host is defined by the <code>option subnet-mask</code> option. Finally, <code>option domain-name-servers</code> defines the DNS servers to assign to each host.</p>



<p class="has-line-data">Finally, when you are done editing the file, save your changes and close the editor.</p>



<p class="has-line-data">Now enable and start the <code>option domain-name-servers</code> service.</p>



<pre class="wp-block-preformatted">sudo systemctl start dhcpd
sudo systemctl enable dhcpd</pre>



<p class="has-line-data">You can check the status of the service,</p>



<pre class="wp-block-preformatted">sudo systemctl status dhcpd</pre>



<p class="has-line-data">In order for the dhcp service to work properly, you need to open UDP port 67 on your firewall.</p>



<p class="has-line-data">Now you just need to configure the network on your client computers for this configuration.</p>



<h2 class="code-line"><a id="Conclusion_65"></a>Conclusion</h2>



<p class="has-line-data">A DHCP server is a simple thing to do, however, it is good to have knowledge about your network to do it correctly.</p>



<p class="has-line-data">So, enjoy it!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/configure-dhcp-server-rockylinux-almalinux-centos-8/">How to configure DHCP Server on RockyLinux 8 / AlmaLinux OS 8 / CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/configure-dhcp-server-rockylinux-almalinux-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Set up a DHCP server on Debian 10/ Debian 9?</title>
		<link>https://www.osradar.com/set-up-dhcp-server-debian-9/</link>
					<comments>https://www.osradar.com/set-up-dhcp-server-debian-9/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 23 Dec 2019 23:33:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9261</guid>

					<description><![CDATA[<p>One of the main tasks of any sysadmin is to perform network services. Some of these services range from the most complex to the simplest. However, the DHCP protocol is a basic service in a network but it is one of the most important. Therefore, today I will show you to set up a DHCP [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-up-dhcp-server-debian-9/">Set up a DHCP server on Debian 10/ Debian 9?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>One of the main tasks of any sysadmin is to perform network services. Some of these services range from the most complex to the simplest. However, the DHCP protocol is a basic service in a network but it is one of the most important. Therefore, today I will show you to set up a DHCP server on Debian 10 / Debian 9.</p>
<p>DHCP (Dynamic Host Configuration Protocol) is a client-server network protocol that automatically assigns IP addresses within a set range. The DHCP server assigns IP addresses as they become free or unused by other members of the network.</p>
<p>To achieve its goal a DHCP server can assign IP addresses as follows:</p>
<ul>
<li><strong>Manual or static assignment</strong>: assigns an IP address to a specific machine.</li>
<li><strong>Automatic assignment</strong>: assigns an IP address to a client machine the first time it makes the request to the DHCP server and until the client releases it.</li>
<li>And the third way to assign an IP address by a DHCP server is <strong>dynamic assignment</strong>.</li>
</ul>
<p>So, let&#8217;s start.</p>
<h2>0. What I will do</h2>
<p>First of all, I&#8217;ll explain to you what I&#8217;m going to do in this post.</p>
<p>Obviously, the first step is to install the DHCP network service. Then, I will teach you how to work with the systemd service.</p>
<p>At the end of this, we will define a range of IP addresses to be assigned automatically and finally, I will teach you how to configure the DHCP service to assign static addresses to the network nodes.</p>
<p>So this is the menu.</p>
<h2>1. Install DHCP package</h2>
<p>Installing DHCP is something anyone can do because it is a service that is in the official repositories of most Linux distributions. In this case, the tutorial is developed on both <a href="https://www.osradar.com/tag/debian/" target="_blank" rel="noopener noreferrer">Debian</a> 10/ and Debian 9, so a command is enough to install it:</p>
<pre class="">:~$ su
:~# apt install isc-dhcp-server</pre>
<p><figure id="attachment_9294" aria-describedby="caption-attachment-9294" style="width: 1004px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9294" src="https://www.osradar.com/wp-content/uploads/2019/01/1-111.png" alt="1.- Install dhcp package" width="1004" height="344" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-111.png 1004w, https://www.osradar.com/wp-content/uploads/2019/01/1-111-300x103.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-111-768x263.png 768w" sizes="(max-width: 1004px) 100vw, 1004px" /><figcaption id="caption-attachment-9294" class="wp-caption-text">1.- Install DHCP package</figcaption></figure></p>
<p>Next, it is a good idea to enable DHCP to start at the system booting. To do that type:</p>
<pre class="">:~# systemctl enable isc-dhcp-server</pre>
<p>So, let&#8217;s configure DHCP.</p>
<h2>2. Configure the DHCP server</h2>
<p>It&#8217;s really easy to set up at least a basic DHCP server. All its configuration is in the file <code>/etc/dhcp/dhcpd.conf</code>. So, you have to edit it. But first, back up the file.</p>
<pre class="">:~# cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.bak
:~# nano /etc/dhcp/dhcp.conf</pre>
<p>When you open the file for the first time, you will see that it has loaded by default some species of configuration templates that you can modify to your liking.</p>
<p>For example, suppose the IP address of this computer is <code>192.168.250.1</code> and you need to assign IP addresses from <code>192.168.250.101</code> to <code>192.168.250.254</code>, then the configuration would look like this.</p>
<pre class="">subnet 192.168.0.0 netmask 255.255.0.0 { 
        range 192.168.250.101 192.168.250.254; 
        option subnet-mask 255.255.0.0; 
        option broadcast-address 192.168.255.255; 
}</pre>
<p><figure id="attachment_9295" aria-describedby="caption-attachment-9295" style="width: 524px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9295" src="https://www.osradar.com/wp-content/uploads/2019/01/2-12.png" alt="2.- Some configuration" width="524" height="134" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-12.png 524w, https://www.osradar.com/wp-content/uploads/2019/01/2-12-300x77.png 300w" sizes="(max-width: 524px) 100vw, 524px" /><figcaption id="caption-attachment-9295" class="wp-caption-text">2.- Some configuration</figcaption></figure></p>
<p>I remind you that these data are fictitious and only show an example of the configuration. You must replace them with the appropriate ones.</p>
<p>Before restarting the service, open this file <code>/etc/default/isc-dhcp-server</code> and add your network interface on <em>INTERFACESV4</em> section.</p>
<pre class="">:~# nano /etc/default/isc-dhcp-server</pre>
<p><figure id="attachment_9296" aria-describedby="caption-attachment-9296" style="width: 681px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9296" src="https://www.osradar.com/wp-content/uploads/2019/01/3-12.png" alt="3.- Adding your network interface" width="681" height="107" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-12.png 681w, https://www.osradar.com/wp-content/uploads/2019/01/3-12-300x47.png 300w" sizes="(max-width: 681px) 100vw, 681px" /><figcaption id="caption-attachment-9296" class="wp-caption-text">3.- Adding your network interface</figcaption></figure></p>
<p><em><strong>NOTE: If you don&#8217;t know what your network interface is, you can do it by running the <code>ip</code> or <code>ifconfig</code> command.</strong></em></p>
<p><figure id="attachment_9297" aria-describedby="caption-attachment-9297" style="width: 966px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9297" src="https://www.osradar.com/wp-content/uploads/2019/01/4-13.png" alt="4.- Using the IP command" width="966" height="308" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-13.png 966w, https://www.osradar.com/wp-content/uploads/2019/01/4-13-300x96.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-13-768x245.png 768w" sizes="(max-width: 966px) 100vw, 966px" /><figcaption id="caption-attachment-9297" class="wp-caption-text">4.- Using the IP command</figcaption></figure></p>
<p>So, you can restart the service.</p>
<pre class="">:~# systemctl restart isc-dhcp-server</pre>
<h3>Assigning a static IP</h3>
<p>It is possible to assign a static address to one or more hosts within the network. To do this, create a file in <code>/etc/dhcpd/hosts</code> and place the following.</p>
<pre class="">:~# nano /etc/dhcp/hosts</pre>
<pre class="code">host nombre_host {
hardware ethernet [MAC];
fixed-addres [IP];
}</pre>
<p>I mean, it has to stay that way:</p>
<pre class="">host angelosradar {
        hardware ethernet E1:3E:49:1C:BF:34;
        fixed-address 192.168.250.55;
}</pre>
<p><figure id="attachment_9311" aria-describedby="caption-attachment-9311" style="width: 461px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9311" src="https://www.osradar.com/wp-content/uploads/2019/01/5-13.png" alt="5.- Setting a static IP" width="461" height="213" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-13.png 461w, https://www.osradar.com/wp-content/uploads/2019/01/5-13-300x139.png 300w" sizes="(max-width: 461px) 100vw, 461px" /><figcaption id="caption-attachment-9311" class="wp-caption-text">5.- Setting a static IP</figcaption></figure></p>
<p>And that&#8217;s it.</p>
<p><em><strong>NOTE: Only one DHCP server must exist in each network segment. If you have a router or ADSL modem, it is most likely that they have the DHCP service. In order for these steps to work for you, you must disconnect from them. Or disable the DHCP service on them.</strong></em></p>
<h2>Conclusion</h2>
<p>A DHCP server is a simple thing to do, however, it is good to have knowledge about your network to do it correctly.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/set-up-dhcp-server-debian-9/">Set up a DHCP server on Debian 10/ Debian 9?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/set-up-dhcp-server-debian-9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install and configure DHCP in Windows Server 2019 Step By Step</title>
		<link>https://www.osradar.com/dynamic-host-configuration-protocol-dhcp-is-a-network-protocol-used-in-internet-protocol-ip-networks-the-server-that-supports-the-protocol-is-called-a-dhcp-server/</link>
					<comments>https://www.osradar.com/dynamic-host-configuration-protocol-dhcp-is-a-network-protocol-used-in-internet-protocol-ip-networks-the-server-that-supports-the-protocol-is-called-a-dhcp-server/#respond</comments>
		
		<dc:creator><![CDATA[Jamel Bouzidi]]></dc:creator>
		<pubDate>Thu, 08 Aug 2019 11:41:51 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Address IP]]></category>
		<category><![CDATA[DHCP]]></category>
		<category><![CDATA[DHCP Scope]]></category>
		<category><![CDATA[DHCP Server]]></category>
		<category><![CDATA[Windows server 2019]]></category>
		<guid isPermaLink="false">http://www.googez.com/?p=617</guid>

					<description><![CDATA[<p> As its name indicates, DHCP is a service that provides TCP/IP settings, such as IP address, subnet mask, default gateway, and DNS server to the clients, automatically.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/dynamic-host-configuration-protocol-dhcp-is-a-network-protocol-used-in-internet-protocol-ip-networks-the-server-that-supports-the-protocol-is-called-a-dhcp-server/">Install and configure DHCP in Windows Server 2019 Step By Step</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Dynamic Host Configuration Protocol (DHCP) is a network protocol used in Internet Protocol (IP) networks. The server that supports the protocol is called a DHCP server. As its name indicates, DHCP is a service that provides TCP/IP settings, such as IP address, subnet mask, default gateway, and DNS server to the clients, automatically.<br>For this tutorial, I will be using my domain controller named as WS2K19-DC01 that is configured with 172.18.72.5/24 IP address and hosts the Active Directory Domain Service role for the mylab.local domain. We have one more Windows 10 virtual machine to test the DHCP server functionality.  </p>



<h4><strong>Things to check before you start</strong></h4>



<ul><li>  Assign Static IP address to the server </li><li>  Administrative privilege   </li></ul>



<h3><strong>Step 1: Install the DHCP Server Role in Windows Server 2019</strong></h3>



<p>Note: Remember already I have logged on as a domain administrator on WS2K19-DC01 machine. So we have sufficient permission to install DHCP server role and to authorize the DHCP server in Active Directory environment.</p>



<p>1. First of all open Server Manager Console, as we are going to install the DHCP server role. </p>



<p> 2. On Server Manager dashboard, Click on Manage and select Add Roles and Features. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/2_Click_on_manage-1024x603.png" alt="" class="wp-image-618" /></figure>



<p>3. On before you begin, Click on Next button on the next screen. </p>



<p>4.  On the Select installation type console, make sure you select Role-based or feature-based installation and click Next button. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/4_select_installation_type-1024x603.png" alt="" class="wp-image-619" /></figure>



<p>5.  On the Select destination server screen, select our local server WS2K19-DC01 and click on Next. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/5_select_destination_server-1024x603.png" alt="" class="wp-image-620" /></figure>



<p>6. On the Select server roles console, select the DHCP Server role for installation. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/6_Select_dhcp_server_role-1024x603.png" alt="" class="wp-image-621" /></figure>



<p>7. As soon as you choose DHCP, a new window appears. Click Add Features to add required features to manager DHCP server properly. Click on Next. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/7_add_required_features-1024x603.png" alt="" class="wp-image-622" /></figure>



<p>8. On the select features console, just click next because we do not require any extra features at the moment. </p>



<p>9. On the DHCP Server console, you can read brief information about DHCP server. When you ready, click next to continue. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/9_overview_of_dhcp_server-1024x603.png" alt="" class="wp-image-623" /></figure>



<p>10. On the &#8220;Confirm installation&#8221; selections console, Click on Install to start the installation process. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/10_click_on_install-1024x603.png" alt="" class="wp-image-624" /></figure>



<p>11. This will take some time to complete.<br>12. Once installation completes, click on “Complete DHCP configuration” link to start the “DHCP post-install wizard”. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/12_dhcp_post_install_configuration-1024x603.png" alt="" class="wp-image-625" /></figure>



<p>In case, if you close the console still you can start the “DHCP post-install wizard” by clicking on yellow exclamation mark on the flag in server manager dashboard. </p>



<h3><strong>Step 2: DHCP Post Install Configuration</strong></h3>



<p>1. On description console, you can read what DHCP post-install configuration wizard is going to do. This will create two security groups for DHCP administration:    DHCP Administrators    DHCP Users If the server where you are installing DHCP server role is a domain controller or member server, then this wizard is also going to register DHCP service in Active Directory as well. That is known as a DHCP authorization in Active Directory. Click on Next to continue. </p>



<p>2. On Authorization console, here we need to specify the user credential to register DHCP service in Active Directory. Since we have login as a Domain Administrator and the user has the privilege to do that, I am going with default selection “MYLAB\administrator”. Click on commit to proceed. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/15_dhcp_authorization-1024x603.png" alt="" class="wp-image-626" /></figure>



<p>3. Once the security group creation and DHCP authorization complete successfully. Click on Close button to close the DHCP post-install configuration wizard. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/16_DHCP_authorization_complete-1024x603.png" alt="" class="wp-image-627" /></figure>



<p> That’s it, we have successfully completed the installation of DHCP server role on Windows Server 2019 machine. The next task is to create DHCP scopes.  </p>



<h4><strong>What is DHCP Scope?</strong></h4>



<p> A scope is a range of IP addresses on a particular subnet that a DHCP server has selected for allocation to clients when they make a DHCP request. <br>You can use DHCP management console or PowerShell to create DHCP scope. In this tutorial we will create IPv4 DHCP scope using DHCP management console. You can also refer my video on YouTube to Install and Configure DHCP on Server 2019. </p>



<h3> <strong>Step 3:</strong> <strong>Create IPv4 DHCP Scope</strong></h3>



<p>1. On Server Manager console, Click on Tools and select DHCP to open DHCP management tool. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/1_open_dhcp_management_console-1024x603.png" alt="" class="wp-image-631" /></figure>



<p>2. On the DHCP console, expand your server name. In my case it is ws2k19-dc01.mylab.local. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/2_expand_server_name-1024x603.png" alt="" class="wp-image-632" /></figure>



<p>3. Select IPv4. On right pane you can see brief overview about DHCP scope and how to create it. </p>



<p>4. Right click on IPv4 and select “New Scope” option. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/4_select_new_scope-1024x603.png" alt="" class="wp-image-633" /></figure>



<p>5. The New Scope wizard starts. Click on Next. </p>



<p>6. On the Scope Name screen, type any name of your choice to scope name. Add a description for scope, so you can identify the scope information. Then click Next button. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/6_add_scope_name-1024x603.png" alt="" class="wp-image-634" /></figure>



<p>7. On the IP Address Range screen, provide an IP address range (Start IP address and End IP address). For this demo I am using 172.18.72.100 to 172.18.72.254 with subnet mask 255.255.255.0.  Once you did with all, click next to proceed. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/7_specify_scope_range-1024x603.png" alt="" class="wp-image-635" /></figure>



<p>8. On the &#8220;Add Exclusions&#8221; and Delay screen, leave it empty. Click on Next. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/8_add_exclusion_range-1024x603.png" alt="" class="wp-image-636" /></figure>



<p>9. On the Lease Duration screen, I will change the default lease duration and set new lease duration to 8 hours. You can adjust it as per your requirement. Click on Next to continue. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/9_specify_lease_duration-1024x603.png" alt="" class="wp-image-637" /></figure>



<p>10. On Configure DHCP Option, we can configure additional DHCP options such as Gateways IP address, DNS server address etc. Select “Yes, I want to configure these options now” and click on Next to continue. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/10_configure_scope_option-1024x603.png" alt="" class="wp-image-638" /></figure>



<p>11. On Router (Default Gateway) page, add your gateways IP address and click Next. (Don’t forget to click on add button after specifying gateways address) </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/11_add_gateway_ip-1024x603.png" alt="" class="wp-image-639" /></figure>



<p>12. We have installed the DHCP server role on our Domain Controller, so the wizard will automatically detect the DNS server’s address. If you wish to add another DNS server address you can but for this demo will use our local DNS address only. Click Next. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/12_add_dns_server_ip_address-1024x603.png" alt="" class="wp-image-640" /></figure>



<p>13. If you have any WINS server on your network, you can specify the address here. I am going to click on next button as we don’t have any WINS server. </p>



<p>14. On the &#8220;Activate Scope&#8221; screen, select “Yes, I want to activate this scope now”. Your DHCP server is not able assign IP address to client request,  Until you activate the scope. Click Next. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/14_activate_scope-1024x603.png" alt="" class="wp-image-641" /></figure>



<p>15. On the next screen, click Finish to create a DHCP scope and close the wizard. </p>



<p>16. On the DHCP Console, Now you can see your newly created scope ready to distribute IP addresses to client computers. </p>



<figure class="wp-block-image"><img src="http://www.googez.com/wp-content/uploads/2019/08/16_scope_information-1024x603.png" alt="" class="wp-image-642" /></figure>



<p>After this we can safely say that our DHCP server is configured and ready to allocate TCP/IP settings to the DHCP clients. </p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/dynamic-host-configuration-protocol-dhcp-is-a-network-protocol-used-in-internet-protocol-ip-networks-the-server-that-supports-the-protocol-is-called-a-dhcp-server/">Install and configure DHCP in Windows Server 2019 Step By Step</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/dynamic-host-configuration-protocol-dhcp-is-a-network-protocol-used-in-internet-protocol-ip-networks-the-server-that-supports-the-protocol-is-called-a-dhcp-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
