<?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; network</title>
	<atom:link href="http://www.laboit.net/tag/network/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>
		<item>
		<title>Activer le service DHCP sur un routeur Cisco</title>
		<link>http://www.laboit.net/2009/04/07/mise-en-place-du-service-dhcp-sur-un-routeur-cisco/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mise-en-place-du-service-dhcp-sur-un-routeur-cisco</link>
		<comments>http://www.laboit.net/2009/04/07/mise-en-place-du-service-dhcp-sur-un-routeur-cisco/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 21:07:27 +0000</pubDate>
		<dc:creator>alexandre</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[serveur]]></category>

		<guid isPermaLink="false">http://www.laboit.net/?p=24</guid>
		<description><![CDATA[Pour ce premier article, nous allons étudier la mise en place du service DHCP sur un routeur Cisco Systems. Le protocole DHCP (Dynamic Host Configuration Protocol) permet aux utilisateurs d&#8217;obtenir une configuration IP  automatiquement. Le service DHCP est souvent couplé au service DNS sur un serveur distinct. Cependant, il est possible de l&#8217;activer sur un [...]]]></description>
			<content:encoded><![CDATA[

<p>Pour ce premier article, nous allons étudier la mise en place du service DHCP sur un routeur Cisco Systems.</p>
<p>Le protocole DHCP (Dynamic Host Configuration Protocol) permet aux utilisateurs d&#8217;obtenir une configuration IP  automatiquement.</p>
<p>Le service DHCP est souvent couplé au service DNS sur un serveur distinct. Cependant, il est possible de l&#8217;activer sur un routeur pour un réseau de petite taille.</p>
<p>Une configuration possède une adresse ip, son masque de sous-réseau  et différentes options. Une quarantaine d&#8217;entre elles sont configurables tel que la passerelle par défaut, les serveurs DNS,  le nom de domaine, le serveur WINS.</p>
<p>La configuration est attribuée pour une durée déterminée, on appelle ce temps: <strong>le</strong> <strong>bail</strong>.</p>
<p><span style="text-decoration: underline;" >Note</span> : le protocole DHCP se diffuse par broadcast,  ce qui signifie que la demande du client ne peut pas traverser un routeur (sauf commande explicite).<span id="more-24" ></span></p>
<p><strong> </strong><strong>Configuration</strong></p>
<p>Voici le réseau de 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>La configuration du service DHCP se fait en <strong>4</strong> étapes :</p>
<ol style="padding-left: 60px;" >
<li>Création d&#8217;un pool DHCP.</li>
<li>Indication du réseau à écouter.</li>
<li>Définition des options du pool.</li>
<li>Exclusion d&#8217;adresses IP</li>
</ol>
<p><strong>Étape 1 : Création du pool DHCP</strong></p>
<p>La première étape consiste  à créer un pool DHCP sur le routeur. Un pool regroupe les adresses qui seront distribuées ainsi que ses options.</p>
<p>La commande est la suivante, en mode de configuration globale du routeur :</p>
<pre class="brush: plain; title: ; notranslate" >ip dhcp pool nom_du_pool</pre>
<p><em><span style="color: #888888;" ><br/>
</span></em></p>
<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>On rentre alors en mode de configuration DHCP.</p>
<p>Il est notamment possible de créer plusieurs pools sur un même routeur.</p>
<p><strong>Étape 2 : Indication du réseau à écouter</strong></p>
<p><strong> </strong>Dans le mode de configuration DHCP, on spécifie  le réseau à écouter avec la commande :</p>
<pre class="brush: plain; title: ; notranslate" >network adresse_ip masque</pre>
<p><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" /><em> </em>Dans notre exemple, le service attribuera des adresses ip de <span style="color: #888888;" >192.168.20.1</span> à <span style="color: #888888;" >192.168.20.254</span></p>
<p><strong>Étape 3 : Définition des options du pool</strong></p>
<p><strong> </strong>Nous allons spécifier <strong>4</strong> options : la passerelle par défaut, le serveur DNS, le nom de domaine et le bail.</p>
<p>Pour spécifier la passerelle par défaut, on utilise l&#8217;option</p>
<pre class="brush: plain; title: ; notranslate" >default-router ip_du_router</pre>
<p><span style="color: #888888;" ><span style="color: #000000;" >Pour indiquer le serveur DNS primaire :</span></span></p>
<pre class="brush: plain; title: ; notranslate" >dns-server ip_du_serveur_DNS</pre>
<p>Le nom de domaine se spécifie avec:</p>
<pre class="brush: plain; title: ; notranslate" >domain-name nom_de_domaine</pre>
<p>On fixe la durée du bail avec:</p>
<pre class="brush: plain; title: ; notranslate" >lease jour heure minute</pre>
<p style="padding-left: 30px;" >
<p>La commande <strong><em>lease infinite</em></strong> permet de définir un bail infini.</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>Étape 4 : Exclusion d&#8217;adresses IP</strong></p>
<p><strong> </strong>Une fois qu&#8217;on a fini de configurer le ou les pools DHCP  il faut définir quelles adresses ne seront pas distribuées par le serveur, pour éviter les conflits.</p>
<p>On va  interdire au serveur de distribuer l&#8217;adresse ip du routeur.</p>
<p>On utilise pour cela la commande en mode de configuration globale.:</p>
<pre class="brush: plain; title: ; notranslate" >ip dhcp excluded-address ip_interdite</pre>
<p style="padding-left: 30px;" ><strong><em> </em></strong></p>
<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>Gestion du serveur DHCP</strong></p>
<p>Par défaut, le service DHCP est activé lorsqu&#8217;on définit un pool.</p>
<p>Si l&#8217;on souhaite le désactiver, on utilise la commande suivante : <em><strong>no service dhcp</strong>.</em> Pour le réactiver : <strong><em>service dhcp</em></strong></p>
<p>On peut voir les baux distribués par le serveur avec : <em><strong>show ip dhcp binding</strong>, </em>en mode privilégié.</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/07/mise-en-place-du-service-dhcp-sur-un-routeur-cisco/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

