Agenda: gns3-install-linux.htm

File gns3-install-linux.htm, 6.7 KB (added by admin, 5 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5  <meta http-equiv="Content-Style-Type" content="text/css" />
6  <meta name="generator" content="pandoc" />
7  <title>Install GNS3 for Linux (Ubuntu)</title>
8  <style type="text/css">code{white-space: pre;}</style>
9  <link rel="stylesheet" href="/css/labs.css" type="text/css" />
10</head>
11<body>
12<div id="header">
13<h1 class="title">Install GNS3 for Linux (Ubuntu)</h1>
14</div>
15<div id="TOC">
16<ul>
17<li><a href="#objective"><span class="toc-section-number">1</span> Objective</a></li>
18<li><a href="#installing-gns3"><span class="toc-section-number">2</span> Installing GNS3</a><ul>
19<li><a href="#first-time-you-run-gns3"><span class="toc-section-number">2.1</span> First time you run GNS3</a></li>
20</ul></li>
21<li><a href="#set-up-folders-and-files-to-run-gns3"><span class="toc-section-number">3</span> Set up folders and files to run GNS3</a></li>
22<li><a href="#run-gns3-locally-on-your-machine"><span class="toc-section-number">4</span> Run GNS3 locally on your machine</a></li>
23<li><a href="#run-gns3-locally-and-view-a-dynamips-configuration-running-remotely."><span class="toc-section-number">5</span> Run GNS3 locally and view a dynamips configuration running remotely.</a></li>
24</ul>
25</div>
26<h1 id="objective"><a href="#objective"><span class="header-section-number">1</span> Objective</a></h1>
27<p>You are going to install the GNS3 network simulator that will run on your local machine, but which we will configure to talk to a running dynamips instance on your workshop server. In this manner you will have a graphical interface available to view the real-time status of your virtual network and to manipulate routers and switches.</p>
28<p>http://www.gns3.net/download/</p>
29<h1 id="installing-gns3"><a href="#installing-gns3"><span class="header-section-number">2</span> Installing GNS3</a></h1>
30<p>You can always find the GNS3 Linux installation program at:</p>
31<pre><code>http://www.gns3.net/download/</code></pre>
32<p>However it's easily simpler to install GNS3 using your Linux versions package system. To install GNS3 on Ubuntu open a terminal window and do:</p>
33<pre><code>sudo apt-get update
34sudo apt-get install dynamips gns3</code></pre>
35<p>Once this completes GNS3 is installed. You can always start GNS3 by going to a terminal window and typing &quot;gns3&quot; from the command line. Depending on your flavor of linux you can then make it a permanent item on a task bar once it's started.</p>
36<h2 id="first-time-you-run-gns3"><a href="#first-time-you-run-gns3"><span class="header-section-number">2.1</span> First time you run GNS3</a></h2>
37<p>You can open a terminal window and type &quot;gns3&quot; to run GNS3 directly. If prompted to update or configure just skip these steps. Don't update GNS3 if prompted.</p>
38<p>We suggest you close GNS3 now as you will be starting it again shortly.</p>
39<h1 id="set-up-folders-and-files-to-run-gns3"><a href="#set-up-folders-and-files-to-run-gns3"><span class="header-section-number">3</span> Set up folders and files to run GNS3</a></h1>
40<ul>
41<li>On your Desktop create a folder called GNS3</li>
42<li>Inside this folder create two folders:</li>
43<li>NMM</li>
44<li>CND</li>
45</ul>
46<p>Now go to the Git repositories web interface on nocws.nsrc.org to log in and download two routers.net files. Go to:</p>
47<pre><code>http://wsnoc.nsrc.org:8000</code></pre>
48<p>Username and password are:</p>
49<pre><code>Username: trainers
50password: &lt;CLASS_PASSWORD&gt;</code></pre>
51<p>Now download the following routers.net file to the GNS3/NMM directory on your desktop:</p>
52<pre><code>http://wsnoc.nsrc.org:8000/nsrc/workshop-kit/blob/master/conf/dynagen/nmm/routers.net</code></pre>
53<p>You may find that you have to manually copy and paste the contents of the file in to a file on your local machine.</p>
54<p>Next download the following routers.net file to the GNS3/CND directory on your desktop</p>
55<pre><code>http://wsnoc.nsrc.org:8000/nsrc/workshop-kit/blob/master/conf/dynagen/cnd/routers.net</code></pre>
56<p>You may find that you have to manually copy and paste the contents of the file in to a file on your local machine.</p>
57<p>Next edit the file:</p>
58<pre><code>GNS3/NMM/routers.net</code></pre>
59<p>and comment out the line that reads:</p>
60<pre><code>workingdir = /home/nsrc/dynamips/nmm/work</code></pre>
61<p>and change the line:</p>
62<pre><code>[s1.ws.nsrc.org]</code></pre>
63<p>to be:</p>
64<pre><code>[localhost]</code></pre>
65<p>and change the line that reads:</p>
66<pre><code>image = /home/nsrc/binary-images/...</code></pre>
67<p>to read:</p>
68<pre><code>image = ...</code></pre>
69<p>Now you are ready to run GNS3 on your machine.</p>
70<h1 id="run-gns3-locally-on-your-machine"><a href="#run-gns3-locally-on-your-machine"><span class="header-section-number">4</span> Run GNS3 locally on your machine</a></h1>
71<p>Open a terminal and run GNS3:</p>
72<pre><code>gns3</code></pre>
73<p>From within GNS3 select Open a Project and find the GNS3/NMM/routers.net file and open this.</p>
74<p>You should see GNS3 start and it will present you with a few routers and a simple network topology. You can right click on the routers to view more information, open consoles, etc..</p>
75<h1 id="run-gns3-locally-and-view-a-dynamips-configuration-running-remotely."><a href="#run-gns3-locally-and-view-a-dynamips-configuration-running-remotely."><span class="header-section-number">5</span> Run GNS3 locally and view a dynamips configuration running remotely.</a></h1>
76<p>For this exercise only one person can do this at a time in your group.</p>
77<p>First, on your workshop server be sure of the following:</p>
78<ul>
79<li>dynamips is running</li>
80<li>dynagen is <em>not</em> running</li>
81</ul>
82<p>Open a terminal and run GNS3:</p>
83<pre><code>gns3</code></pre>
84<p>From within GNS3 select Open a Project and find the GNS3/CND/routers.net file and open this.</p>
85<p>This may take a minute to complete loading but you now you will see the complete set of network devices for the Campus Network Design workshop up and running in your local GNS3 instance. The actual work, however, is being done on the remote s1.ws.nsrc.org workshop server!</p>
86<p>You'll notice that the devices map is a big blob of items. If you'd like to see a nicely formatted version of this (one that we have updated and saved out) first stop GNS3, then download the file:</p>
87<pre><code>http://wsnoc.nsrc.org:8000/nsrc/workshop-kit/blob/master/conf/dynagen/cnd/routers-gns3.net</code></pre>
88<p>to your GNS3/CND directory.</p>
89<p>Open a terminal and run GNS3:</p>
90<pre><code>gns3</code></pre>
91<p>From within GNS3 select Open a Project and find the GNS3/CND/routers-gns3.net file and open this.</p>
92<p>You can play with the devices the same as in the previous section.</p>
93</body>
94</html>