<?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>centos dhcp Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/centos-dhcp/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>
	</channel>
</rss>
