<?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 Server Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/dhcp-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 26 Dec 2019 23:36:15 +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 CentOS 7, Ubuntu 18.04 &#038; Debian 9.</title>
		<link>https://www.osradar.com/how-to-configure-dhcp-server-on-centos-7-ubuntu-18-04-debian-9/</link>
					<comments>https://www.osradar.com/how-to-configure-dhcp-server-on-centos-7-ubuntu-18-04-debian-9/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 01 Jan 2020 15:57:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[centos dhcp]]></category>
		<category><![CDATA[configure dhcp]]></category>
		<category><![CDATA[configure dhcp server]]></category>
		<category><![CDATA[debian dhcp]]></category>
		<category><![CDATA[DHCP Server]]></category>
		<category><![CDATA[ubuntu dhcp]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16421</guid>

					<description><![CDATA[<p>Introduction: Dynamic Host Configuration Protocol is a network protocol which is used to Distribute network configuration parameters. It involves the configuration of IP addresses, gateways, and DNS for Network interfaces. It provides the automation of IP assigning. Install &#38; Configure DHCP server on CentOS 7 Run the given command to Install DHCP server and client. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-dhcp-server-on-centos-7-ubuntu-18-04-debian-9/">How To Configure DHCP server on CentOS 7, Ubuntu 18.04 &amp; 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[
<h2><strong>Introduction:</strong></h2>



<p>Dynamic Host Configuration Protocol is a network protocol which is used to Distribute network configuration parameters. It involves the configuration of IP addresses, gateways, and DNS for Network interfaces. It provides the automation of IP assigning.</p>



<h3><strong>Install &amp; Configure DHCP server on CentOS 7</strong></h3>



<p>Run the given command to Install DHCP server and client.</p>



<pre class="wp-block-verse">yum install dhcp</pre>



<p>After the successful installation of packages, copy the sample configuration file to /etc/dhcp/directory</p>



<pre class="wp-block-verse">cp /usr/share/doc/dhcpd.conf.example /etc/dhcp/dhcpd.conf</pre>



<p>When you have finishing copying, edit the <strong>dhcpd.conf</strong> file.</p>



<pre class="wp-block-verse">vi /etc/dhcp/dhcpd.conf</pre>



<p>You can define the subnet, range of IP addresses, domain &amp; domain name servers as below: </p>



<pre class="wp-block-verse">[…]<br> Configuring subnet and iprange<br> subnet <strong>192.168.12.0</strong> netmask <strong>255.255.255.0</strong> {<br>  range <strong>192.168.12.100 192.168.12.200</strong>;<br> Specify DNS server ip and additional DNS server ip<br> option domain-name-servers <strong>8.8.8.8, 8.8.4.4</strong>;<br> Specify Domain Name<br> option domain-name "<strong>osradar.local</strong>";<br> Default Gateway<br> option routers <strong>192.168.12.2</strong>;<br>  option broadcast-address <strong>192.168.12.255</strong>;<br> Specify Default and Max lease time<br> default-lease-time <strong>600</strong>;<br>  max-lease-time <strong>7200</strong>;<br>  }<br> […]</pre>



<p>Note: You can define according to your own requirements.</p>



<p>For assigning fixed IP address to your clients, you will need to enter their MAC id and the IP address in the following syntax.</p>



<pre class="wp-block-verse">[…]<br> host mywindows-client {<br>  hardware ethernet <strong>00:0C:29:05:A7:CB</strong>; <br>  fixed-address <strong>192.168.12.110</strong>; <br> } <br> […]</pre>



<p>Start and Enable dhcpd services</p>



<p>Type the below commands to take the effect of configurations</p>



<pre class="wp-block-verse">systemctl start dhcpd <br>systemctl enable dhcpd</pre>



<p>Note: If you face any issue, you can update the SELinux or disable it permanently.</p>



<pre class="wp-block-verse">/sbin/restorecon -v /etc/dhcp/dhcpd.conf</pre>



<p>Now, proceed towards the configuration of DHCP Client&#8217;s to attain the IP addresses automatically from the DHCP server.</p>



<h3><strong>Install &amp; Configure DHCP Server on Ubuntu 18.04 / Debian 9</strong></h3>



<p>Type the below command to get install DHCP on Ubuntu  system.</p>



<pre class="wp-block-verse">sudo apt-get install isc-dhcp-server</pre>



<p>After installing assign the interfaces that would requests to DHCP . If you have only one interface it will assign that one.</p>



<p>Configure the file<strong> /etc/default/isc-dhcp-server</strong></p>



<pre class="wp-block-verse">sudo nano /etc/default/isc-dhcp-server</pre>



<p>Bold <strong>eth0</strong> in the file.</p>



<p>Now, edit the <strong>dhcpd.conf </strong>file</p>



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



<p>Make the changes as given below</p>



<pre class="wp-block-verse">[…]<br> Configuring subnet and iprange<br> subnet <strong>192.168.12.0 </strong>netmask <strong>255.255.255.0</strong> {<br>  range <strong>192.168.12.100 192.168.12.200</strong>;<br> Specify DNS server ip and additional DNS server ip<br> option domain-name-servers<strong> 8.8.8.8, 8.8.4.4</strong>;<br> Specify Domain Name<br> option domain-name "osradar.local";<br> Default Gateway<br> option routers <strong>192.168.12.2</strong>;<br>  option broadcast-address <strong>192.168.12.255</strong>;<br> Specify Default and Max lease time<br> default-lease-time <strong>600;</strong><br>  max-lease-time <strong>7200</strong>;<br>  }<br> […]</pre>



<p>To configure fixed IP addresses follow the below pattern</p>



<pre class="wp-block-verse">host mywindows-client {<br>  hardware ethernet 00:0C:29:05:A7:CB; <br>  fixed-address 192.168.12.110; <br> } </pre>



<p>After Installing , now start the dhcpd services and do it start automatically on system reboot</p>



<pre class="wp-block-verse">sudo service isc-dhcp-server restart</pre>



<p>So, this is how you can Configure DHCP client server.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-configure-dhcp-server-on-centos-7-ubuntu-18-04-debian-9/">How To Configure DHCP server on CentOS 7, Ubuntu 18.04 &amp; 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/how-to-configure-dhcp-server-on-centos-7-ubuntu-18-04-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>
