<?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>Mad Router &#187; Emulation</title>
	<atom:link href="http://www.madrouter.com/category/emulation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madrouter.com</link>
	<description>CCNA, CCNP, CCVP, Security Technologies</description>
	<lastBuildDate>Thu, 18 Aug 2011 13:42:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Dynamips/Dynagen : installation sous Mac OS X Leopard</title>
		<link>http://www.madrouter.com/dynamipsdynagen-installation-sous-mac-os-x-leopard/</link>
		<comments>http://www.madrouter.com/dynamipsdynagen-installation-sous-mac-os-x-leopard/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 23:06:09 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Emulation]]></category>

		<guid isPermaLink="false">http://www.madrouter.com/dynamipsdynagen-installation-sous-mac-os-x-leopard/</guid>
		<description><![CDATA[Installation pas plus difficile que sous XP ou sous Linux. Suivez les étapes suivantes : 1ère étape : Récupérez le .dmg contenant dynagen et dynamips pour Leopard. Monter le et copier le contenu dans votre dossier /Applications 2ème étape : Faites un lien symbolique du binaire de dynamips sudo ln -s /Applications/Dynagen/dynamips /usr/sbin/dynamips 3ème étape [...]]]></description>
			<content:encoded><![CDATA[<p>Installation pas plus difficile que sous XP ou sous Linux.</p>
<p>Suivez les étapes suivantes :</p>
<p><span id="more-38"></span></p>
<p>1ère étape :</p>
<p>Récupérez le .dmg contenant dynagen et dynamips pour Leopard. Monter le et copier le contenu dans votre dossier /Applications</p>
<p>2ème étape :</p>
<p>Faites un lien symbolique du binaire de dynamips</p>
<pre class="cisco">
sudo ln -s /Applications/Dynagen/dynamips /usr/sbin/dynamips</pre>
<p>3ème étape :</p>
<p>Faites un lien symbolique du binaire de dynagen</p>
<pre class="cisco">
sudo ln -s /Applications/Dynagen/Dynagen.app/Contents/Resources/dynagen
/usr/sbin/dynagen</pre>
<p>4ème étape :</p>
<p>Lancez le serveur depuis votre terminal</p>
<pre class="cisco">
Last login: Thu Apr 10 00:57:57 on ttys000
madrouter:~ alex$sudo dynamips -H 7200</pre>
<p>5ème étape :</p>
<p>Lancez votre topologie en ciblant le fichier .net avec dynagen depuis un autre terminal</p>
<pre class="cisco">
Last login: Thu Apr 10 00:57:57 on ttys000
madrouter:~ alex$sudo dynagen /Users/alex/IOS/test.net</pre>
<p>( Attention : avec cette méthode vous devrez à coup sûr killer dynamips qui se transformera en zombie lorsque vous fermerez votre shell )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/dynamipsdynagen-installation-sous-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamips 0.2.8-RC2 release</title>
		<link>http://www.madrouter.com/dynamips-028-rc2-release/</link>
		<comments>http://www.madrouter.com/dynamips-028-rc2-release/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 15:21:17 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Emulation]]></category>

		<guid isPermaLink="false">http://www.madrouter.com/index.php/dynamips-028-rc2-release/</guid>
		<description><![CDATA[A new version of dynamips is release. You can view here the changelog Here is the procedure to upgrade from the last version. For Linux platforms : Download the new binary for Linux x86 Past it into your dynamips folder and upgrade your symlink alex@pentragam$ln -s /opt/dynamips/dynamips-0.2.8-RC2-x86.bin /usr/sbin/dynamips For Windows platforms : Downlad the new [...]]]></description>
			<content:encoded><![CDATA[<p> A new version of dynamips is release.</p>
<p>You can view here the <a href="http://www.ipflow.utc.fr/blog/?p=52" target="_blank">changelog</a></p>
<p>Here is the procedure to upgrade from the last version.</p>
<p><span id="more-23"></span></p>
<p>For Linux platforms  :</p>
<p><a href="http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin">Download the new binary for Linux x86</a></p>
<p>Past it into your dynamips folder and upgrade your symlink</p>
<pre class="cisco">alex@pentragam$ln -s /opt/dynamips/dynamips-0.2.8-RC2-x86.bin /usr/sbin/dynamips</pre>
<p>For Windows platforms :</p>
<p><a href="http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-cygwin.zip" target="_blank">Downlad the new binary for Windows XP</a></p>
<p>Extract the dynamips-wxp.exe from the archive and past it into your installation folder</p>
<p>( <em>ex : X:\Program Files\Dynamips</em> )</p>
<p>In the same folder, open the dynamips-start.cmd file and replace</p>
<pre class="cisco">set dynamips=%CD%dynamips.exe</pre>
<p>by</p>
<pre class="cisco">set dynamips=%CD%dynamips-wxp.exe</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/dynamips-028-rc2-release/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PEMU &#8211; Pix EMUlation and Dynamips &#8211; windows</title>
		<link>http://www.madrouter.com/pemu-pix-emulation-and-dynamips/</link>
		<comments>http://www.madrouter.com/pemu-pix-emulation-and-dynamips/#comments</comments>
		<pubDate>Sat, 10 Nov 2007 16:48:24 +0000</pubDate>
		<dc:creator>Florent</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Emulation]]></category>

		<guid isPermaLink="false">http://www.madrouter.com/index.php/pemu-pix-emulation-and-dynamips/</guid>
		<description><![CDATA[We have ever seen in a previous article how dynamips can BE AWESOME. Dynamips helps us to emulate the hardware part of a router, but what about PIX ??! So we can use PEMU !! You will be able to find in this article the way to use PEMU, and more important, the way to [...]]]></description>
			<content:encoded><![CDATA[<p>We have ever seen in a <a href="http://www.madrouter.com/index.php/dynamips-and-dynagen-with-windows-xp/">previous</a> article how dynamips can BE AWESOME. Dynamips helps us to emulate the hardware part of a router, but what about PIX ??!<br />
So we can use PEMU !!</p>
<p>You will be able to find in this article the way to use PEMU, and more important, the way to couple PEMU with dynamips in order to emulate an entire network.<br />
<span id="more-22"></span></p>
<p>This article will deal with PEMU under windows, we will see in another article how to do the same thing for linux users.</p>
<p>To start we have to <a href="http://www.pemu.net.cn/?p=51" target="_blank" title="PEMU">download</a> PEMU (you have to create an account [free] in order to get the file).<br />
Once we have it we untar the file and we get a folder which includes these files:</p>
<p><img src="http://www.madrouter.com/files.PNG" alt="Pemu" title="Pemu" align="middle" height="114" width="106" /></p>
<p>Place your PIX ios image in this folder, here I will use a pix722 image.<br />
Edit the pemu.ini file and adapt it to the name of your image. You also can put the activation key of your PIX. If you don&#8217;t put this key, you will only have access to the default settings of your image.</p>
<pre class="cisco">
serial=0x30392303
image=<strong>pix722</strong>
key=0x00000000,0x00000000,0x00000000,0x00000000
bios1=mybios_d8000
bios2=bios.bin
bios_checksum=1</pre>
<p>Now open a console and navigate to the pemu folder</p>
<pre class="cisco">
X:\\Documents and Settings\\bdg&gt;cd Desktop/newversion_pemu</pre>
<p>In this example we want to create an emulation with 2 interfaces connected to 2 routers we will launch with dynamips.</p>
<p>In the PEMU folder <strong>create an empty file named FLASH</strong> otherwise pemu will try to write in this file, and an error will occur because this file does not exist.<br />
Then we will be able to launch pemu:</p>
<pre class="cisco">
X:\\Documents and Settings\\bdg\\Desktop\\newversion_pemu&gt;pemu.exe -net nic,
macaddr=AA:AA:AA:00:00:01 -net udp,sport=1000,dport=1001,daddr=127.0.0.1
 -net nic,macaddr=AA:AA:AA:00:00:02 -net udp,sport=2000,dport=2001,
daddr=127.0.0.1 -serial telnet::666,server FLASH</pre>
<p>Here we have launched our pix image with 2 interfaces on the UDP ports 1000,1001 and 2000,2001 (1000 for the source port and 1001 the destination port, same thing for 2000 and 2001).</p>
<p>To connect to the PIX, open another console an telnet localhost on the 666 TCP port.</p>
<pre class="cisco">
X:\\&gt;telnet 127.0.0.1 666</pre>
<p>and you get something like that:</p>
<p><img src="http://www.madrouter.com/pix.PNG" alt="pix" title="pix" align="middle" /></p>
<p>You can now configure your pix <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
A little problem occurs, when you type a command, an extra line is generated. This little bug can be fixed by configuring the telnet application you are using.<br />
For the AZERTY users, type ctrl+$<br />
For the QWERTY users, type ctrl+]</p>
<pre class="cisco">
Welcome to Microsoft Telnet Client
Escape Character is 'CTRL+$'   

Microsoft Telnet&gt; <strong>unset crlf</strong>
Line feed mode - Causes return key to send CR
Microsoft Telnet&gt;[enter]</pre>
<p>Type enter to go back to the pix.</p>
<p>Now all is good.</p>
<p>We are now going to see how to couple this PIX with the routers we will emulate with dynamips.</p>
<p>This will be very simple, we will bind an interface of a router to the interface:<br />
NIO_udp:1001:127.0.0.1:1000<br />
NIO_udp:2001:127.0.0.1:2000</p>
<p>That&#8217;s all folks !</p>
<p>Here is an example of a dynamips configuration file.</p>
<pre class="cisco">
ghostios = true
sparsemem = true[localhost]   

[[2620]]
       image = \\Program Files\\Dynamips\\imagesc2600-adventerprisek9-mz.123-14.T7.bin
       idlepc = 0x802420dc
       ram = 128   

[[ROUTER R1]]
       model = 2620
       f0/0 = NIO_udp:1001:127.0.0.1:1000   

[[ROUTER R2]]
       model = 2620
       f0/0 = NIO_udp:2001:127.0.0.1:2000</pre>
<p>When you configure your pix, ethernet 0 will be for the first udp port specified on the pix launched, so here it&#8217;s 1001, 1000, ethernet 1 the second one, etc..</p>
<p>TIPS:<br />
If you unzip the PIX image you will save more speed when you will launch pemu, but don&#8217;t forget to change the name in the pemu.ini file.</p>
<p>You can create a .bat file in your pemu folder in order to lauch pemu quicker, the file will look like this:</p>
<pre class="cisco">
pemu.exe -net nic,macaddr=AA:AA:AA:00:00:01 -net udp,sport=1000,dport=1001,
daddr=127.0.0.1 -netnic,macaddr=AA:AA:AA:00:00:02 -net udp,sport=2000,dport=2001,
daddr=127.0.0.1 -serial telnet::666,server FLASH</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/pemu-pix-emulation-and-dynamips/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>TAP Interface has a limitation ?</title>
		<link>http://www.madrouter.com/tap-interface-has-a-limitation/</link>
		<comments>http://www.madrouter.com/tap-interface-has-a-limitation/#comments</comments>
		<pubDate>Thu, 18 Oct 2007 20:36:47 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Emulation]]></category>

		<guid isPermaLink="false">http://www.madrouter.com/index.php/tap-interface-has-a-limitation/</guid>
		<description><![CDATA[For 2 days, i&#8217;ve been working on a topology about inter-vlan routing, all in an emulated environment, Dyna(mips/gen) + two tap interfaces as my nodes. tap0 in VLAN 2, tap1 in VLAN 3 , VLANs on the same switch ( 3660 + NM-16ESW as my switch), dot1q link between switch and router&#8230; bla bla bla [...]]]></description>
			<content:encoded><![CDATA[<p>For 2 days, i&#8217;ve been working on a topology about inter-vlan routing, all in an emulated environment, Dyna(mips/gen) + two tap interfaces as my nodes.</p>
<p>tap0 in VLAN 2, tap1 in VLAN 3 , VLANs on the same switch ( 3660 + NM-16ESW as my switch), dot1q link between switch and router&#8230; bla bla bla</p>
<p>Well, it didn&#8217;t work, can&#8217;t ping each tap from another,  so what&#8217;s going on ? I checked my configuration twice&#8230; then three times, then four&#8230;. then search for some tutorials about inter-vlan routing&#8230; ( oh my god :s ) but always the same problem&#8230;</p>
<p>So i&#8217;ve just check those two tap interfaces on the same switch trying to ping each from other!</p>
<p>debug ip packet , debug ip icmp&#8230; always nothing&#8230;</p>
<p>Why not try arping? let&#8217;s go, debup arp&#8230;. always no response&#8230;!</p>
<p>Well I finally capture the traffic&#8230; and what did i see ?</p>
<p>From both sides of the switch&#8230; no trace of any ARP response&#8230; the tap interface didn&#8217;t want to tell what was its MAC address to fill the CAM table <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>If any has an answer about this&#8230; I&#8217;m ready to hear it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/tap-interface-has-a-limitation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamips and Dynagen with Windows XP</title>
		<link>http://www.madrouter.com/dynamips-and-dynagen-with-windows-xp/</link>
		<comments>http://www.madrouter.com/dynamips-and-dynagen-with-windows-xp/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 08:59:36 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Emulation]]></category>

		<guid isPermaLink="false">http://www.madrouter.com/index.php/dynamips-and-dynagen-with-windows-xp/</guid>
		<description><![CDATA[I know this blog do not deal with Microsoft products, but some of you want probably know how to install Dynamips and Dynagen under Windows XP. The best way is to&#8230; 1st : install winpcap first which will be needed for dynamips. 2nd : Go to the Dynagen official website : http://dynagen.org/ Click on the [...]]]></description>
			<content:encoded><![CDATA[<p>I know this blog do not deal with Microsoft products, but some of you want probably know how to install Dynamips and Dynagen under Windows XP.</p>
<p>The best way is to&#8230;</p>
<p><span id="more-13"></span></p>
<p>1st :  install <a href="http://www.winpcap.org/install/default.htm">winpcap</a> first which will be needed for dynamips.</p>
<p>2nd : Go to the Dynagen official website : <a href="http://dynagen.org/" target="_blank">http://dynagen.org/</a></p>
<p>Click on the &#8220;<strong>Download</strong>&#8221; heading. You will be redirect to the sourceforge website and Choose the <strong>&#8220;Windows Installer Package&#8221;</strong></p>
<p style="text-align: center"><img src="../../wp-content/upload/dynagen.png" height="177" width="476" /></p>
<p>Download it and install it like a normal Windows program.</p>
<p>At the end of the installation, you will have two shorcuts on your Desktop , named &#8220;<strong>Dynamips Server</strong>&#8221; and &#8220;<strong>Network device list</strong>&#8221;</p>
<p style="text-align: center"><img src="../../wp-content/upload/shortcuts.png" /></p>
<p>I let you know what for is the first one, the second one is to learn your network ID devices , to map them to Dynamips emulated router.</p>
<p>Verify if dynamips and dynagen are functioning properly by launching &#8220;<strong>Dynamips Server</strong>&#8221; and by creating an empty <strong>test.net</strong> file and double-clicking it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/dynamips-and-dynagen-with-windows-xp/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Optimisez les performances de Dynamips</title>
		<link>http://www.madrouter.com/optimisez-les-performances-de-dynamips/</link>
		<comments>http://www.madrouter.com/optimisez-les-performances-de-dynamips/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 11:29:11 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Emulation]]></category>

		<guid isPermaLink="false">http://madrouter.o00o.org/?p=12</guid>
		<description><![CDATA[Par défaut, Dynamips va prendre toutes vos ressources CPU lorsqu&#8217;il émule un ou plusieurs routeurs, un peu gênant quand vous faites plusieurs choses à côté et encore plus quand vous émulez 8 routeurs Comment faire pour ajuster les besoins de dynamips autant en CPU qu&#8217;en RAM ? A travers 3 paramètres à placer dans votre [...]]]></description>
			<content:encoded><![CDATA[<p>Par défaut, Dynamips va prendre toutes vos ressources CPU lorsqu&#8217;il émule un ou plusieurs routeurs, un peu gênant quand vous faites plusieurs choses à côté et encore plus quand vous émulez 8 routeurs <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Comment faire pour ajuster les besoins de dynamips autant en CPU qu&#8217;en RAM ? <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-12"></span>A travers 3 paramètres à placer dans votre fichier de topologie, nous allons pouvoir executer dynamips tout en gardant des performances plus qu&#8217;acceptable.</p>
<p>1. Ghostios</p>
<p>On crée un fichier de topologie permettant de nous entrainer sur un lab avec 3 routeurs. Chaque routeur chargeant un IOS de compressé de 30 Mo, une fois le routeur allumé, il va décompresser l&#8217;image et la charger en RAM, on a alors dans ce cas 80 Mo occupé en RAM.</p>
<p>Chaque routeur faisant pareil, on va avoir dans ces 3&#215;80 Mo en RAM, soit 180 Mo en moins ^^</p>
<p>La petite astuce consiste à utiliser le paramètre :</p>
<pre class="cisco">
ghostios = true</pre>
<p>En utilisant ce paramètres , vos 3 routeurs vont se partager la même image IOS , faisant ainsi une économie dans l&#8217;utilisation de votre RAM</p>
<p>Ce paramètre est à placer en haut de votre fichier de topologie sur vous souhaitez que les divers séries de routeur que vous émuler en profite, sinon à placer dans la série de routeurs que vous souhaitez.</p>
<p>Tous les routeurs de votre fichier de topologie en profiteront</p>
<pre class="cisco">
ghostios = true

[localhost]

...</pre>
<p>tout les routeurs de la série émuler par l&#8217;ID 3660 en profiterons</p>
<pre class="cisco">
[[3660]]
ghostios = true</pre>
<p>2. Sparsemem</p>
<p>Lorque vous définissez votre type de router à émuler, vous lui donner une certaine quantité de ram à travers l&#8217;intermédiaire du paramètre :</p>
<pre class="cisco">
ram = 128</pre>
<p>Vous allumez alors votre routeur, et la Linux va directement attribué 128 Mo de RAM à dynamips pour l&#8217;émulation de votre routeur.</p>
<p>Le paramètre sparsmem va nous permettre d&#8217;allouer dynamiquement la RAM au routeur en fonction de ses besoins et non pas de lui donner directement 128 Mo alors qu&#8217;il n&#8217;en a pas forcément le besoin.</p>
<p>Ce paramètre est à utiliser comme le précèdent.</p>
<pre class="cisco">
sparsmem = true</pre>
<p>3. Idle Pc</p>
<p>Comme nous l&#8217;avons vu avec la RAM, Dynamips va agir pareil au niveau de votre CPU, une fois connecté à l&#8217;un de vos routeurs émulé, il va prendre 100 % de votre processeur.</p>
<p>Une façon de contrer ce petit souci est d&#8217;attribuer ce qu&#8217;on appelle des valeurs idlepc à votre instance de router.  Cela va permettre de déterminer quand votre routeur n&#8217;a pas besoin de ressources CPU, c&#8217;est à dire quand il est inactif.</p>
<p>Pour cela connecter vous à votre routeur par la commande</p>
<pre class="cisco">
=&gt;telnet R1</pre>
<p>depuis votre interface dynagen.  Attendez que le routeur ait démarrer, retournez dans la console dynagen et taper la commande suivante :</p>
<pre class="cisco">
=&gt;idlepc get R1</pre>
<p>Attendez quelques secondes et vous voyez apparaîtres alors une liste de valeurs hexadécimales du type 0x9a3b9984</p>
<p>avec devant certaines une étoile [ * ] , dynagen vous demande alors qu&#8217;elle est la valeur à appliquer , taper alors le chiffre de celle qui possède une étoile devant et appuyez sur [entrer].</p>
<p>Soit vous avez un ptit &#8220;widget&#8221; qui vous montre votre charge CPU et dans ce cas vous l&#8217;avez vu tomber considérablement ou alors dans un autre cas , le ventilo de votre pc ( si c&#8217;est un pc portable ) crache beaucoup moins <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>cette manipulation est à répéter pour tous vos routeurs <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ensuite sauvegarder cette valeur dans votre fichier de configuration grâce à :</p>
<pre class="cisco">
=&gt;idlepc save R1</pre>
<p>Vous voilà parti pour faire des toplogies d&#8217;un nombre supérieur au premier nombre premier différent de l&#8217;unité <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/optimisez-les-performances-de-dynamips/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamips et Dynagen sous Linux</title>
		<link>http://www.madrouter.com/dynamips-et-dynagen-sous-linux/</link>
		<comments>http://www.madrouter.com/dynamips-et-dynagen-sous-linux/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 15:49:49 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Emulation]]></category>

		<guid isPermaLink="false">http://madrouter.o00o.org/?p=11</guid>
		<description><![CDATA[Si toi aussi tu es pauvre, tu dépenses tout tes sous dans ta scolarité à Supinfo , tu n&#8217;as pas les moyens de te payer un Lab CCNA, voir CCNP, et tu as envie de manger du router jusqu&#8217;à penser en binaire, alors cette article est fait pour toi. Installons ensemble sous linux, Dynamips et [...]]]></description>
			<content:encoded><![CDATA[<p>Si toi aussi tu es pauvre, tu dépenses tout tes sous dans ta scolarité à Supinfo , tu n&#8217;as pas les moyens de te payer un Lab CCNA, voir CCNP, et tu as envie de manger du router jusqu&#8217;à penser en binaire, alors cette article est fait pour toi.</p>
<p>Installons ensemble sous linux, Dynamips et Dynagen, 2 merveilleux outils symbiotes!</p>
<p><span id="more-11"></span></p>
<p>Dynamips, c&#8217;est ?</p>
<p>Dynamips est un émulateur de routeur Cisco, écrit pas Christophe Fillot. Dynamips est capable d&#8217;émuler des plateformes des séries 1700, 2600, 3600, 3700 et 7200 <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Dynagen est quand à lui un outil écrit par Greg Anuzelli qui va nous permettre de gérer plusieurs instances dynamips grâce à une interface en ligne de commande.</p>
<p>Toi aussi, tu peux te la jouer über-leet h4x0r da worldz de backbone d&#8217;ISP.</p>
<p>Tout d&#8217;abord, téléchargeons les binaires.</p>
<p>Dynamips est téléchargeable sur le blog de dynamips, téléchargez la derniere version pour Linux x86 : dynamips-0.2.8-RC1-x86.bin :<a href="http://www.ipflow.utc.fr/blog/" target="_blank"> http://www.ipflow.utc.fr/blog/</a></p>
<p>Dynagen est quand à lui téléchargeable sur : <a href="http://sourceforge.net/project/showfiles.php?group_id=160317" target="_blank">http://sourceforge.net/project/showfiles.php?group_id=160317</a></p>
<p>télécharge aussi la derniere version dynagen-0.10.1.tar.gz</p>
<p>Maintenant ouvre ta übergeek console qui rulz tout et passe en root.</p>
<pre class="cisco">
alex@pentagram$sudo -i
password:
root@pentagram#</pre>
<p>crée le dossier opt si il n&#8217;est pas déja présent</p>
<pre class="cisco">
root@pentagram#mkdir /opt</pre>
<p>rentre dedans <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<pre class="cisco">
root@pentagram#cd /opt</pre>
<p>et crée les 4 dossiers qui vont servir à contenir les binaires de dynamips, de dynagen, tes images IOS ainsi que les fichier .net</p>
<pre class="cisco">
root@pentagram#mdkir /opt/dynagen
root@pentagram#mkdir /opt/dynamips
root@pentagram#mkdir /opt/images
root@pentagram#mkdir /opt/labs</pre>
<p>ensuite copie le binaire de dynamips dans /opt/dynamips</p>
<pre class="cisco">
root@pentagram#cp /home/alex/Desktop/dynamips-0.2.8-RC1-x86.bin /opt/dynamips</pre>
<p>et fait un zouli lien symbolique</p>
<pre class="cisco">
root@pentagram#ln -s /opt/dynamips/dynamips-0.2.8-RC1-x86.bin /usr/sbin/dynamips</pre>
<p>Cela nous permettra de lancer dynamips depuis n&#8217;importe où dans notre arborescence. ( Bon je sais tu le sais déjà mais si t&#8217;es pas très à l&#8217;aise avec Linux, ça peut toujours aider )</p>
<p>vérifie aussi qu&#8217;il y ait les permissions d&#8217;executions, si ce n&#8217;est pas le cas.</p>
<pre class="cisco">
root@pentagram#chmod +x dynamips-0.2.8-RC1-x86.bin</pre>
<p>résoudra le problème <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Rend toi donc dans le dossier /opt/dynagen et décompresse l&#8217;archive ici</p>
<pre class="cisco">
root@pentagram#cd /opt/dynagen
root@pentagram#cp /home/alex/Desktop/dynagen-0.10.1.tar.gz .
root@pentagram#tar xzvf dynagen</pre>
<p>( ne pas oublier le dernier point, séparé par un espace de gz )<br />
ensuite ajoute les permissions d&#8217;execution à dynagen</p>
<pre class="cisco">
root@pentagram#chmod +x /opt/dynagen/dynagen-0.10.1/dynagen</pre>
<p>un petit</p>
<pre class="cisco">
root@pentagram#ls -l</pre>
<p>pour vérifier :p voilà c bien <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  On y arrive t&#8217;inquiète pas</p>
<p>Crée un lien symbolique</p>
<pre class="cisco">
root@pentagram#ln -s /opt/dynagen/dynagen-0.10.1/dynagen /usr/sbin/dynagen</pre>
<p>Bien on va tester tout ça maintenant, sort du compte root</p>
<pre class="cisco">
root@pentagram#exit</pre>
<p>et lance dynamips</p>
<pre class="cisco">
alex@pentagram$sudo dynamips -H 7200</pre>
<p>-H pour spécifier le port d&#8217;écoute de dynamips, et oui dynamips est un server et dynagen un client <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Bon là faut être attentif, on va créer un fichier de  topologie, un fichier qui va indiquer à dynagen et à dynamips comment gérer nos diverses instances de routeurs <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>rendons nous dans le dossier /opt/labs, cela peut peut-être nécessiter un petit sudo avant</p>
<pre class="cisco">
alex@pentagram$sudo cd /opt/labs</pre>
<p>on va la jouer pas trop hardcore pour la première fois</p>
<pre class="cisco">
alex@pentagram$sudo touch toi_bdg.net
alex@pentagram$sudo gedit toi_bdg.net</pre>
<p>à partir de ce moment, une fenêtre graphique s&#8217;ouvre un peu comme notepad mais sous linux, si t&#8217;es à l&#8217;aise avec vim, no soucy</p>
<p>créons notre petit fichier de topo <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="cisco">
[localhost]

	[[3660]]
		image = /opt/images/{le_nom_de_ton_ios}
		ram = 128
		sparsemem = true
		ghostios = true

	[[ROUTER R1]]
		model = 3660
		F0/0  = R2 F0/0		

	[[ROUTER R2]]
		model = 3660</pre>
<p>Pour le moment, l&#8217;explication des fichiers de topologie n&#8217;est pas à l&#8217;ordre du jour, un autre topic sera consacré à ça</p>
<p>Sache juste que le router R1 est connecté au router R2 par l&#8217;intermédiaire de leurs interfaces FastEthernet0/0</p>
<p>Une fois fait, enregistre et sort <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>J&#8217;espère que tu as gardé ton dynamips ouvert ^^</p>
<p>maintenant avec la commande suivante charge ton fichier de config</p>
<pre class="cisco">
alex@pentagram$sudo dynagen /opt/labs/toi_bdg.net</pre>
<p>on arrive sur une sorte de console spéciale dynagen</p>
<pre class="cisco">
=&gt;</pre>
<p>Fait un &#8220;list&#8221; pour voir actuellement toutes tes instances de routers émulées.</p>
<pre class="cisco">
=&gt;list</pre>
<p>et un telnet {nom_du_routah} pour te connecter dessus</p>
<pre class="cisco">
=&gt;telnet R1</pre>
<p>Voilà, have fun <img src='http://www.madrouter.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.madrouter.com/dynamips-et-dynagen-sous-linux/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

