<?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>Labo IT &#187; IOS</title>
	<atom:link href="http://www.laboit.net/tag/ios/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.laboit.net</link>
	<description>Blog on new technology</description>
	<lastBuildDate>Tue, 30 Aug 2011 21:02:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>How to set up a DHCP server on Cisco routers</title>
		<link>http://www.laboit.net/2009/04/21/how-to-set-up-a-dhcp-server-on-cisco-routers/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-set-up-a-dhcp-server-on-cisco-routers</link>
		<comments>http://www.laboit.net/2009/04/21/how-to-set-up-a-dhcp-server-on-cisco-routers/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 18:16:15 +0000</pubDate>
		<dc:creator>alexandre</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[IOS]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.laboit.net/?p=67</guid>
		<description><![CDATA[For this first article, we will see how to set up a DHCP service on Cisco routers. DHCP Service (Dynamic Host Configuration Protocol)  allows users to obtain IP configuration automatically. The DHCP  service is often coupled with DNS service on a dedicated server. However, it is possible to activate it on a router for a [...]]]></description>
			<content:encoded><![CDATA[

<p>For this first article, we will see how to set up a DHCP service on Cisco routers.</p>
<p>DHCP Service (Dynamic Host Configuration Protocol)  allows users to obtain IP configuration automatically.</p>
<p>The DHCP  service is often coupled with DNS service on a dedicated server. However, it is possible to activate it on a router for a small network.</p>
<p>An configuration has an IP address, its subnet mask and others options. Forty of them are configurable such as the default gateway, DNS servers, domain name and WINS server.</p>
<p>A client has a configuration during a specified time, we call it: <strong>the</strong> <strong>lease</strong>.</p>
<p><span style="text-decoration: underline;" >Note</span> : DHCP uses broadcast to communicate,  which means that the client&#8217;s request can&#8217;t cross a router (except explicit command).</p>
<p style="padding-left: 30px;" ><span id="more-67" ></span></p>
<p><strong>Configuration</strong></p>
<p>This is the network for the test:</p>
<p style="padding-left: 30px;" >
<p style="padding-left: 30px;" >
<p style="padding-left: 30px; text-align: center;" ><img class="size-full wp-image-38 aligncenter"  style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;"  title="Reseau Labo"  src="http://www.laboit.net/wp-content/uploads/2009/04/schema11.png"  alt="schema11"  width="553"  height="390" /></p>
<p style="padding-left: 30px;" >
<p>Configuring the DHPC service in <strong>4</strong> steps :</p>
<ol style="padding-left: 60px;" >
<li>Creating a DHCP pool.</li>
<li>Indicating a network.</li>
<li>Settings options of pool.</li>
<li>IP Exclusions</li>
</ol>
<p><strong>Step 1 :Creating a DHCP pool<br/>
</strong></p>
<p>The first step is to create a DHPC pool on the router. One pool includes addresses which will be distribute and its options.</p>
<p>To activate a pool on the router, in configuration mode:</p>
<pre class="brush: plain; title: ; notranslate" >ip dhcp pool pool_name</pre>
<p style="text-align: center;" ><img class="size-full wp-image-40 aligncenter"  style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;"  title="pooldhcp"  src="http://www.laboit.net/wp-content/uploads/2009/04/pooldhcp.png"  alt="pooldhcp"  width="507"  height="30" /></p>
<p>Once this done, we are in dhcp configuration mode.</p>
<p>It is possible to create several pool on the same router.</p>
<p><strong>Step 2 : Indicating a network.</strong></p>
<p>In dhcp configuration mode, to specify the network we use the command:</p>
<pre class="brush: plain; title: ; notranslate" >network ip_address mask</pre>
<p style="text-align: center;" ><img class="size-full wp-image-41 aligncenter"  style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;"  title="network"  src="http://www.laboit.net/wp-content/uploads/2009/04/network.png"  alt="network"  width="454"  height="30" /></p>
<p>In this example, the service assigns ip addresses between <span style="color: #888888;" >192.168.20.1</span> and <span style="color: #888888;" >192.168.20.254</span></p>
<p><strong>Step 3 :Settings options of pool.</strong></p>
<p>We will specify <strong>4</strong> options : the default gateway, DNS server, the domain name et the lease.</p>
<p>To specify the default gateway, we use the option:</p>
<pre class="brush: plain; title: ; notranslate" >default-router ip_gateway</pre>
<p><span style="color: #888888;" ><span style="color: #000000;" >To indicate DNS server:</span></span></p>
<pre class="brush: plain; title: ; notranslate" >dns-server ip_server_DNS</pre>
<p>The domain name is specified with:</p>
<pre class="brush: plain; title: ; notranslate" >domain-name domain_name</pre>
<p>To configure  time of the lease : <strong> </strong></p>
<pre class="brush: plain; title: ; notranslate" >lease day hour minute</pre>
<p>The option <strong><em>lease infinite</em></strong> permits to define a infinite lease.</p>
<p style="padding-left: 30px; text-align: center;" ><img class="size-full wp-image-52 aligncenter"  style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;"  title="DHCP Options"  src="http://www.laboit.net/wp-content/uploads/2009/04/dhcpoptions.png"  alt="DHCP Options"  width="490"  height="84" /></p>
<p style="padding-left: 30px;" >
<p><strong>Step 4 : IP Exclusions</strong></p>
<p>Once we have configured one or more pool DHCP on the server, we must define  ip addresses which will not use. To avoid conflicts with statics addresses.</p>
<p>How forbid the server to distribute router&#8217;s ip?</p>
<p>We use this command:</p>
<pre class="brush: plain; title: ; notranslate" >ip dhcp excluded-address ip_forbidden</pre>
<p style="padding-left: 30px; text-align: center;" ><img class="size-full wp-image-58 aligncenter"  style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;"  title="DHCP excluded Address"  src="http://www.laboit.net/wp-content/uploads/2009/04/dhcpexcluded.png"  alt="DHCP excluded Address"  width="493"  height="22" /></p>
<p><strong>3) </strong><strong>DHCP Server Management<br/>
</strong></p>
<p>By default, the service DHCP is activated when we define a pool.</p>
<p>If we want to desactivate, we use the next command : <em><strong>no service dhcp</strong>.</em> To reactivate : <strong><em>service dhcp</em></strong></p>
<p>We can see distributed leases by the server with :<em><strong> show ip dhcp binding</strong></em></p>
<p style="padding-left: 30px; text-align: center;" ><img class="size-full wp-image-60 aligncenter"  style="border: 0pt none; margin-top: 0px; margin-bottom: 0px;"  title="DHCP Binding"  src="http://www.laboit.net/wp-content/uploads/2009/04/dhcpbinding.png"  alt="DHCP Binding"  width="633"  height="95" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.laboit.net/2009/04/21/how-to-set-up-a-dhcp-server-on-cisco-routers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

