<?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; helper</title>
	<atom:link href="http://www.laboit.net/tag/helper/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>
	</channel>
</rss>
