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 Windows</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 Windows</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 Windows installation program at:</p> |
---|
31 | <pre><code>http://www.gns3.net/download/</code></pre> |
---|
32 | <p>We provide a local copy to make copying of the installer faster. You should download the file GNS3-0.8.3.1-all-in-one.exe by going to:</p> |
---|
33 | <pre><code>http://wsnoc.nsrc.org/downloads/</code></pre> |
---|
34 | <p>Once the file is download run it to install the various GNS components:</p> |
---|
35 | <ul> |
---|
36 | <li>Dynamips</li> |
---|
37 | <li>Qemu/Pemu</li> |
---|
38 | <li>Putty</li> |
---|
39 | <li>VPCS (Virtual PC Simulator)</li> |
---|
40 | <li>WinPCAP</li> |
---|
41 | <li>Wireshark</li> |
---|
42 | </ul> |
---|
43 | <p>The installer includes both 32-bit and 64-bit versions.</p> |
---|
44 | <p>When you run the GNS3 installer you can select defaults for all of the installation screens. The installer runs several separate installers and may take a few minutes to complete.</p> |
---|
45 | <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> |
---|
46 | <p>You can click on OK from the initial GNS3 startup dialogue that tells you to configure various items. In addion do not say "Yes" to updating the GNS3 version to 0.8.6x as there seems to be a problem with this version and our configuration.</p> |
---|
47 | <p>We suggest you close GNS3 now as you will be starting it again shortly.</p> |
---|
48 | <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> |
---|
49 | <ul> |
---|
50 | <li>On your Desktop create a folder called GNS3</li> |
---|
51 | <li>Inside this folder create two folders:</li> |
---|
52 | <li>NMM</li> |
---|
53 | <li>CND</li> |
---|
54 | </ul> |
---|
55 | <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> |
---|
56 | <pre><code>http://wsnoc.nsrc.org:8000</code></pre> |
---|
57 | <p>Username and password are:</p> |
---|
58 | <pre><code>Username: trainers |
---|
59 | password: <CLASS_PASSWORD></code></pre> |
---|
60 | <p>Now download the following routers.net file to the GNS3/NMM directory on your desktop:</p> |
---|
61 | <pre><code>http://wsnoc.nsrc.org:8000/nsrc/workshop-kit/blob/master/conf/dynagen/nmm/routers.net</code></pre> |
---|
62 | <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> |
---|
63 | <p>Next download the following routers.net file to the GNS3/CND directory on your desktop</p> |
---|
64 | <pre><code>http://wsnoc.nsrc.org:8000/nsrc/workshop-kit/blob/master/conf/dynagen/cnd/routers.net</code></pre> |
---|
65 | <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> |
---|
66 | <p>Next edit the file:</p> |
---|
67 | <pre><code>GNS3/NMM/routers.net</code></pre> |
---|
68 | <p>and comment out the line that reads:</p> |
---|
69 | <pre><code>workingdir = /home/nsrc/dynamips/nmm/work</code></pre> |
---|
70 | <p>and change the line:</p> |
---|
71 | <pre><code>[s1.ws.nsrc.org]</code></pre> |
---|
72 | <p>to be:</p> |
---|
73 | <pre><code>[localhost]</code></pre> |
---|
74 | <p>and change the line that reads:</p> |
---|
75 | <pre><code>image = /home/nsrc/binary-images/...</code></pre> |
---|
76 | <p>to read:</p> |
---|
77 | <pre><code>image = ...</code></pre> |
---|
78 | <p>Now you are ready to run GNS3 on your machine.</p> |
---|
79 | <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> |
---|
80 | <p>Open the GNS3/NMM folder on your desktop and double-click on the routers.net file.</p> |
---|
81 | <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> |
---|
82 | <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> |
---|
83 | <p>For this exercise only one person can do this at a time in your group.</p> |
---|
84 | <p>First, on your workshop server be sure of the following:</p> |
---|
85 | <ul> |
---|
86 | <li>dynamips is running</li> |
---|
87 | <li>dynagen is <em>not</em> running</li> |
---|
88 | </ul> |
---|
89 | <p>Now go to the GNS3/CND folder on your desktop and double-click on the routers.net file. You may need to close your prior GNS3 session first before doing this.</p> |
---|
90 | <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> |
---|
91 | <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> |
---|
92 | <pre><code>http://wsnoc.nsrc.org:8000/nsrc/workshop-kit/blob/master/conf/dynagen/cnd/routers-gns3.net</code></pre> |
---|
93 | <p>to your GNS3/CND directory.</p> |
---|
94 | <p>And, then, double click on this file to see how things look.</p> |
---|
95 | <p>You can play with the devices the same as in the previous section.</p> |
---|
96 | </body> |
---|
97 | </html> |
---|