<?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; Cisco</title>
	<atom:link href="http://www.laboit.net/tag/cisco-systems/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.laboit.net</link>
	<description>A lot of experiences on new technologies.</description>
	<lastBuildDate>Sun, 13 Jun 2010 13:01:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Enable DHCP Relay on a Cisco router</title>
		<link>http://www.laboit.net/2009/05/20/enable-dhcp-relay-on-a-cisco-router/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=enable-dhcp-relay-on-a-cisco-router</link>
		<comments>http://www.laboit.net/2009/05/20/enable-dhcp-relay-on-a-cisco-router/#comments</comments>
		<pubDate>Wed, 20 May 2009 20:33:42 +0000</pubDate>
		<dc:creator>Alexandre VIOT</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://www.laboit.net/?p=248</guid>
		<description><![CDATA[We have seen (here) that a Cisco router can act as a DHCP server on a small network. However, DHCP is a problem when trying to install a DHCP service on a dedicated server which is not on the same subnet as  clients. In this article, we study how to activate the DHCP relay on [...]]]></description>
			<content:encoded><![CDATA[<div id="result_box" style="text-align: justify;" dir="ltr">We have seen (<a href="http://www.laboit.net/2009/04/21/how-to-set-up-a-dhcp-server-on-cisco-routers/">here</a>) that a Cisco router can act as a DHCP server on a small network. However, DHCP is a problem when trying to install a DHCP service on a dedicated server which is not on the same subnet as  clients.</div>
<p style="text-align: justify;">In this article, we study how to activate the <strong>DHCP relay</strong> on the router to forward requests from clients located on a different network.</p>
<p style="text-align: justify;">To better understand the problem, we will quickly  review the functioning of DHCP protocol.</p>
<div id="result_box" style="text-align: justify;" dir="ltr"><span id="more-248"></span></div>
<h2>Understanding the problem.</h2>
<p style="text-align: justify;">Take a basic network composed of a DCHP server and multiple clients.</p>
<p><img class="aligncenter size-full wp-image-183" title="dhcpnetwork" src="http://www.laboit.net/wp-content/uploads/2009/05/dhcpnetwork.png" alt="dhcpnetwork" width="530" height="358" />Obtaining a client IP configuration is done in <strong>4</strong> steps:</p>
<p style="padding-left: 30px; text-align: justify;"><strong>DHCP DISCOVER: </strong>As a first step, the client sending a  configuration request in <strong>broadcast</strong>.</p>
<p style="padding-left: 30px; text-align: justify;"><strong>DHCP Offer: </strong>If a DHCP server is present, then it receives the request and responds to client by offering a free IP configuration.</p>
<p style="padding-left: 30px; text-align: justify;"><strong>DHCP Request: </strong>The client requests to the first DHCP server which responds it to give the proposed configuration ,always <strong>broadcast<br />
</strong></p>
<p style="padding-left: 30px;"><strong>DHCP Ack: </strong>Finally, the server validates the configuration.<strong> </strong></p>
<div id="result_box" style="text-align: left;" dir="ltr">Below is a diagram representing the different stages:</div>
<p><strong><img class="aligncenter size-full wp-image-182" title="dhcp_etape" src="http://www.laboit.net/wp-content/uploads/2009/05/dhcp_etape.jpg" alt="dhcp_etape" width="530" height="410" /><br />
</strong></p>
<div id="result_box" style="text-align: left;" dir="ltr">We must not forget that the client&#8217;s request is sent in <strong>broadcast,</strong> the problem is here.</div>
<p style="text-align: justify;">Indeed, the request of the client cannot cross a router because it is a 3 layer equipment and that it separates the areas of broadcast.</p>
<p style="text-align: justify;">In the diagram below, clients cannot obtain an IP configuration because the DHCP server is placed <strong>behind</strong> the router:</p>
<p><img class="aligncenter size-full wp-image-184" title="dhcprelai" src="http://www.laboit.net/wp-content/uploads/2009/05/dhcprelai.png" alt="dhcprelai" width="546" height="336" /></p>
<p>To resolve this problem, we must activate <strong>DHCP relay</strong> on the router. Therefore, it forwards all client&#8217;s requests from newtwork A to the DHCP server in the network B.</p>
<p>This is also valid for the following protocols:</p>
<blockquote>
<ul>
<li>TFTP</li>
<li>DNS</li>
<li>Time</li>
<li>NetBIOS Name Server</li>
<li>NetBIOS Datagram Service</li>
<li>BOOTP Server</li>
<li>TACACS</li>
</ul>
</blockquote>
<h2>Configuring the router</h2>
<p style="text-align: justify;">The router configuration is very simple by itself</p>
<p>We must specify to the router which IP address transfer requests arriving on the interface.</p>
<p>Handling is therefore in<strong> interface configuration mode.</strong><strong> </strong></p>
<p>In our example, the configuration will be on the F0/0 interface</p>
<pre class="brush: plain;">LaboIT(config)#interface FastEthernet0/0

LaboIT(config-if)#ip helper-address 192.168.2.2</pre>
<p>The last step is to configure the server to offer leases on the DHCP network address A. We see this in future articles. Windows Server 2008 and a Linux server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laboit.net/2009/05/20/enable-dhcp-relay-on-a-cisco-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Activer la fonction DHCP Relais sur un routeur Cisco</title>
		<link>http://www.laboit.net/2009/05/11/activer-la-fonction-dhcp-relais-sur-un-routeur-cisco/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=activer-la-fonction-dhcp-relais-sur-un-routeur-cisco</link>
		<comments>http://www.laboit.net/2009/05/11/activer-la-fonction-dhcp-relais-sur-un-routeur-cisco/#comments</comments>
		<pubDate>Mon, 11 May 2009 17:42:10 +0000</pubDate>
		<dc:creator>Alexandre VIOT</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[address]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://www.laboit.net/?p=181</guid>
		<description><![CDATA[Nous avons vu précédemment (ici)  qu&#8217;un routeur Cisco peut faire office de serveur DHCP sur un réseau de petite taille. Cependant, le protocole DHCP pose un problème lorsque l&#8217;on veut installer un service DHCP sur un serveur distinct qui n&#8217;est pas dans le même sous -réseau que les clients. Dans cet article, nous allons étudier [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Nous avons vu précédemment (<a href="http://www.laboit.net/2009/04/07/mise-en-place-du-service-dhcp-sur-un-routeur-cisco/">ici</a>)  qu&#8217;un routeur Cisco peut faire office de serveur DHCP sur un réseau de petite taille. Cependant, le protocole DHCP pose un problème lorsque l&#8217;on veut installer un service DHCP sur un serveur distinct qui n&#8217;est pas dans le même sous -réseau que les clients.</p>
<p style="text-align: justify;">Dans cet article, nous allons étudier comment transformer le routeur en <strong>relais DHCP</strong> afin de transmettre les requêtes des clients qui se trouvent sur un réseau différent.</p>
<p style="text-align: justify;">Pour mieux comprendre le problème, nous allons revoir rapidement le fonctionnement du protocole DHCP.</p>
<p><span id="more-181"></span></p>
<p style="text-align: justify;">Prenons un réseau basic, composé d&#8217;un serveur DCHP et de plusieurs clients.</p>
<p><img class="aligncenter size-full wp-image-183" title="dhcpnetwork" src="http://www.laboit.net/wp-content/uploads/2009/05/dhcpnetwork.png" alt="dhcpnetwork" width="530" height="358" /></p>
<p>L&#8217;obtention d&#8217;une configuration IP d&#8217;un client se fait en <strong>4</strong> étapes :</p>
<blockquote>
<p style="padding-left: 30px; text-align: justify;"><strong>DHCP DISCOVER: </strong>Dans un premier temps, le client envoi en <strong>broadcast</strong> une demande de configuration.</p>
<p style="padding-left: 30px; text-align: justify;"><strong>DHCP Offer: </strong>Si un serveur DHCP est présent, alors celui-ci reçoit la requête et répond au client en lui proposant une configuration libre.</p>
<p style="padding-left: 30px; text-align: justify;"><strong>DHCP Request: </strong>Le client demande au premier serveur DHCP qui lui a répondu de lui attribuer la configuration proposée, toujours en <strong>broadcast</strong>.<strong><br />
</strong></p>
<p style="padding-left: 30px;"><strong>DHCP Ack: </strong>Enfin, le serveur valide l&#8217;attribution au client<strong>.</strong></p>
</blockquote>
<p>Ci-contre un schéma représentant les différentes étapes:</p>
<p><strong><img class="aligncenter size-full wp-image-182" title="dhcp_etape" src="http://www.laboit.net/wp-content/uploads/2009/05/dhcp_etape.jpg" alt="dhcp_etape" width="530" height="410" /><br />
</strong></p>
<p>Il ne faut pas oublier que la demande du client est envoyée en <strong>broadcast</strong>, le probleme se situe à cet endroit la.</p>
<p style="text-align: justify;">En effet, la demande du client ne pourra pas  traverser un routeur puisque c&#8217;est un équipement de couche 3, et qu&#8217;il sépare les domaines de broadcast.</p>
<p style="text-align: justify;">Dans le schéma ci-dessous, les clients ne pourront pas obtenir une configuration IP car le serveur DHCP est placé <strong>derrière</strong> le routeur:</p>
<p><img class="aligncenter size-full wp-image-184" title="dhcprelai" src="http://www.laboit.net/wp-content/uploads/2009/05/dhcprelai.png" alt="dhcprelai" width="546" height="336" /></p>
<p>La solution à ce problème est de mettre le routeur en mode DHCP Relais afin qu&#8217;il transmette toutes les demandes en broadcast du réseau A vers le serveur DHCP du réseau B.</p>
<p>Cette fonction est également valable pour les protocoles suivants :</p>
<blockquote>
<ul>
<li>TFTP</li>
<li>DNS</li>
<li>Time</li>
<li>NetBIOS Name Server</li>
<li>NetBIOS Datagram Service</li>
<li>BOOTP Server</li>
<li>TACACS</li>
</ul>
</blockquote>
<h2>Configuration du routeur</h2>
<p style="text-align: justify;">La configuration du routeur est très simple par elle même.</p>
<p>Il faut indiquer au routeur vers quelle adresse IP transférer les demandes qui arrivent sur l&#8217;interface.</p>
<p>La manipulation se fait donc en mode de <strong>configuration d&#8217;interface.</strong></p>
<p>Dans notre exemple, la configuration se fera sur l&#8217;interface F0/0</p>
<pre class="brush: plain;">LaboIT(config)#interface FastEthernet0/0

LaboIT(config-if)#ip helper-address 192.168.2.2</pre>
<p>La dernière étape consiste à  bien configurer le serveur pour qu&#8217;il offre des baux DHCP sur l&#8217;adresse réseau A. Nous verrons ceci dans de prochains articles. Aussi bien sous Windows Server 2008 que sous un serveur Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laboit.net/2009/05/11/activer-la-fonction-dhcp-relais-sur-un-routeur-cisco/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<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&amp;utm_medium=rss&amp;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 VIOT</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;">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;">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;">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;">dns-server ip_server_DNS</pre>
<p>The domain name is specified with:</p>
<pre class="brush: plain;">domain-name domain_name</pre>
<p>To configure  time of the lease : <strong> </strong></p>
<pre class="brush: plain;">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;">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&amp;utm_medium=rss&amp;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 VIOT</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;">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;">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;">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;">dns-server ip_du_serveur_DNS</pre>
<p>Le nom de domaine se spécifie avec:</p>
<pre class="brush: plain;">domain-name nom_de_domaine</pre>
<p>On fixe la durée du bail avec:</p>
<pre class="brush: plain;">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;">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>3</slash:comments>
		</item>
	</channel>
</rss>
