Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fedora - Using GNS3 with Fedora

#1
Using GNS3 with Fedora

<div style="margin: 5px 5% 10px 5%;"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/using-gns3-with-fedora.png" width="1024" height="768" title="" alt="" /></div><div><p>GNS3 is <a href="https://gns3.com">an amazing tool</a> that allows IT professionals to, quite simply, create a virtual lab. The software can virtualize or emulate a variety of systems called appliances. These appliances range from Cisco routers and switches to nodes such as Windows Server, CentOS, and Fedora. GNS3 also has the capability to utilize <a href="https://fedoramagazine.org/running-containers-with-podman/">containers</a>. If you’re designing and testing proof-of-concept ideas, recreating environments for troubleshooting, or want to delve into the world of network engineering, GNS3 might be for you.</p>
<p> <span id="more-29209"></span> </p>
<p>As seen on their website, GNS3 is well acquainted in the enterprise world. Companies using it span from tech businesses like Intel, to scientific organizations like NASA. Even renown banks and telecom companies are included in the list. This adds great credibility to the power and reliability this open-source tool provides. </p>
<h2>Installation</h2>
<p>For Fedora users, GNS3 can be easily installed from the official repository. From the command-line type:</p>
<pre class="wp-block-preformatted">sudo dnf install gns3-server gns3-gui</pre>
<p>The reason for the separate packages is because GNS3 can be configured as a dedicated server. This is useful for teams to collaborate while working on a project, or problem. The dedicated servers can be installed on bare-metal or as a virtual machine.</p>
<p>GNS3 requires a computer with virtualization capabilities. This allows the software to utilize the computer’s hardware to increase the performance when running the appliances. To use Spice/VNC as a console install the <em>virt-viewer</em> package.</p>
<p>When the installation is complete, an icon will be placed among the applications for GNS3.</p>
<figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/using-gns3-with-fedora.png" alt="GNS3 application icon" class="wp-image-29210" /></figure>
<h2>Initial setup</h2>
<p>Opening GNS3 for the first time will open the Setup Wizard. The options on the first screen allow users to either setup an isolated VM environment, run the topologies from the local computer, or to use a remote server. The examples in this article are performed on the local machine.</p>
<p>The next screen configures the application to connect to the local machine running GNS3 server. Here we see the path to the application installed locally on the server, host binding address, and port. These settings can be tweaked to match your setup. However, for a quick setup it’s best to accept the defaults.</p>
<p>Once the settings are verified, a confirmation will appear stating the connection to the local server was successful. The last screen in the wizard will provide a summary. Click the <strong>Finish</strong> button to complete the setup.</p>
<figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/using-gns3-with-fedora.gif" alt="GNS3 initial setup" class="wp-image-29211" /></figure>
<h2>Finding appliances in the GNS3 Marketplace</h2>
<p>Before venturing into the GUI, this would be a good time to visit the <a rel="noreferrer noopener" aria-label="GNS3 Marketplace (opens in a new tab)" href="https://www.gns3.com/marketplace" target="_blank">GNS3 Marketplace</a>. The marketplace contains appliances, pre-configured labs, and software for use with GNS3. The options in the Marketplace are vast and beyond the scope of this article. However, let’s download an appliance to see how it works.</p>
<p>First, select the appliance you want (the examples in this article will use OpenWRT). Select the template for that appliance to download. Appliance templates are JSON files with the extension <em>gns3a</em>.</p>
<p>You can also install OS nodes without a template, or create your own. <a rel="noreferrer noopener" aria-label="OSBoxes.org (opens in a new tab)" href="https://www.osboxes.org" target="_blank">OSBoxes.org</a> has a variety of pre-built VMWare images (VMDK) that are compatible with GNS3. For this article we’ll use the Fedora 64-bit VMWare image. You can also find images for many other distributions such as CentOS, Ubuntu, and Kali Linux.</p>
<p>To use Cisco appliances a service agreement or subscription to VIRL is needed to download the IOS images from Cisco. For links and guides to legally download Cisco IOS, check out David Bombal’s site at <a href="https://davidbombal.com/gns3-download-cisco-ios-images-virl-images-best-get/">https://davidbombal.com/gns3-download-cisco-ios-images-virl-images-best-get/</a>.</p>
<p>You may also need to install Dynamips which is not included in the official repos. However, a simple web search will point to the RPM package.</p>
<figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/using-gns3-with-fedora-1.png" alt="GNS3 Marketplace" class="wp-image-29212" /></figure>
<h2>Importing appliances to GNS3</h2>
<p>Now that we have some appliances let’s build a small and simple topology using the templates and images we just downloaded.</p>
<p>After the initial setup the <strong>New appliance template</strong> window will open. From here we can import template files like the <em>gns3a</em> file downloaded from the Marketplace. Other options for adding appliances without a template include IOS devices, VMs, and Docker containers.</p>
<p>To add the OpenWRT router, click <strong>Import an appliance template file</strong>. This will open the <strong>Add appliance</strong> wizard. Review the information on the first screen which shows the category, vendor, architecture, and KVM status for that appliance, and click <strong>Next</strong>. Now select the <strong>Server type</strong> to run the appliance and click <strong>Next</strong>. This is where we can specify whether we want to run it on a remote server, in a GNS3 VM, or on the local machine. After verifying the server requirements click <strong>Next</strong> to continue the installation.</p>
<p>At this point it’s time to install the image file for the OpenWRT appliance. Select the version and click the <strong>Download</strong> button. This will go to the site containing the image file and download it. This article will use OpenWRT 18.06.4 downloaded from the project’s website. If the version of the image is not in the list, click the button to <strong>Create a new version</strong>, and enter the version number (in this case 18.06.4). Select the filename and click <strong>Import</strong> to import the image. GNS3 will then ask if you would like to copy the image and decompress it (if necessary). Accept it and complete the install.</p>
<figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/using-gns3-with-fedora-1.gif" alt="Importing appliances" class="wp-image-29213" /></figure>
<h2>Adding appliances without a template</h2>
<p>To add the Fedora VM downloaded from OSBoxes, click on one of the icons on the left and select <strong>New appliance template</strong> near the bottom. Select <strong>Add a Qemu virtual machine</strong> and click <strong>Next</strong>. Enter a name for the appliance (in this case Fedora 30) then click <strong>Next</strong>. Verify the QEMU binary path and input the amount of RAM to use for the VM, then select the <strong>Console type</strong>. On the next screen select <strong>New image</strong> and browse for the VMDK file. Depending on the file-size it may take a few moments. To copy/import the image select <strong>Yes</strong> and once it’s completed click <strong>Finish</strong>.</p>
<figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/using-gns3-with-fedora-2.gif" alt="Adding appliances without a template" class="wp-image-29214" /></figure>
<h2>Adding and connecting nodes in GNS3</h2>
<p>Now that we have some appliances, let’s build a simple topology with OpenWRT and Fedora in GNS3. The icons on the left represent Routers, Switches, End devices, and Security devices. The second-last shows all appliances, and the bottom option is to <em>Add a link</em> which connects the nodes to each other.</p>
<p>Click on the <strong>Routers</strong> icon and drag the OpenWRT router onto the empty workspace to the right. Click on the <strong>End devices</strong> icon and do the same for the computer node. Depending on how large the file is, it may take a few moments for the PC node to appear in the workspace. To connect the nodes, click <strong>Add a link</strong> then click on a node, select the interface (i.e. Ethernet0), then do the same with the other node (as seen in the demo below).</p>
<p>You can customize the consoles by going to the menu bar and selecting <strong>Edit &gt; Preferences &gt; General</strong>. Select the tab for <strong>Console applications</strong> and click the <strong>Edit</strong> button. From here you can choose your favourite terminal in the drop-down menu and even customize it in the text-box below.</p>
<p>Once everything is in place, start the nodes by clicking the green (play) button at the top. The lights in the Topology Summary section will turn green indicating the nodes are on. To open the consoles for the nodes, click the <strong>Console to all devices</strong> button to the left (it looks like a terminal icon). The Remote Viewer window for Fedora and a terminal window for OpenWRT will open.</p>
<p>Once complete you can turn off the nodes individually by right-clicking on the node and selecting <strong>Stop</strong>, or to stop all nodes click the red <strong>Stop</strong> button in the top bar.</p>
<figure class="wp-block-image"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/08/using-gns3-with-fedora-3.gif" alt="Creating a basic virtual lab in GNS3" class="wp-image-29215" /></figure>
<h2>Conclusion</h2>
<p>GNS3 is a powerful piece of software with features that are beyond the scope of this article. The software is similar to Cisco’s Packet Tracer. However, Packet Tracer is a simulator with limitations to the program’s coding. GNS3 on the other hand virtualizes/emulates the nodes using the hardware’s actual OS. This provides full functionality and a closer experience to the actual hardware.</p>
<p>The <a rel="noreferrer noopener" aria-label="GNS3 documentation (opens in a new tab)" href="https://docs.gns3.com" target="_blank">GNS3 documentation</a> site offers an enormous amount of resources that delve further into the workings of the application. They also offer training courses for those interested in digging deep into the workings of the software.</p>
</div>


https://www.sickgaming.net/blog/2019/08/...th-fedora/
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016