This page details how to install GNS3 to run the labs downloaded from netquirks.
The example uses GNS3 version 2.0.0 and the screenshots are from a Macbook Pro, however installations on other systems will be analogous.
The labs available from netquirks run IOS and on the local machines server. However, these instruction detail how to install the both the local and GNS3 VM servers for the following reasons:
- Through the GNS3 VM you can can run more modern systems (like IOS XRv or ASA) as well non-Cisco appliances
- The GNS3 VM gives better performance than running routers on the local machine
- There will be labs available on netquirks in the near future that need the GNS3 VM…
VirtualBox is used to run the GNS3 VM.
VirtualBox is free but doesn’t support nested virtualizaiton, meaning GNS3 systems like Qemu will experience degraded performance. This doesn’t affect the labs available on netquirks but VMWare Workstation and Fusion do supported nested virtualisation if you’re interested. WMWare installation instructions are here on the GNS3 site.
For full and comprehensive documentation around installation and setup see the GNS3 site: https://docs.gns3.com/.
These instructions are divided into six stages…
- Stage One – Downloads
- Stage Two – Import GNS3 VM into Virtual Box
- Stage Three – Source the Images
- Stage Four – Configure GNS3
- Stage Five – Configuring the IOS Routers
- Stage Six – Downloading and Importing the Labs
Stage One – Downloads
- Download and install GNS3. Downloads and guides can be found here (you will need to create a free GNS3 account).
- Download and install VirtualBox from here.
- Download the GNS3.VM.VirtualBox.2.0.0.zip file from GNS3 here.
Stage Two – Import GNS3 VM into VirtualBox
- Unzip GNS3.VM.VirtualBox.2.0.0.zip
- Open VirtualBox and select New.
- In the that pops up, enter the following and click Continue:
- Name: GNS3 VM
- Type: Other
- Version: Other/Unknown (64-bit)
- On the next screen, select the amount of memory appropriate for this VM given the system you are working on, then click Continue.
- Virtual Box will ask for the appliance to import. Browse to the GNS3 folder within the newly unzipped folders and select GNS3 VM.ovf. Then select Continue.
- Set the appliance settings as needed, here I have just left all of the defaults in place. Then select Import. Virtual Box will begin the import process.
- Once the import is done, go to the Virtual Box Preferences and select the Network menu. Once there select the Host-only Networks tab:
- Select the plus symbol on the right-hand-side and enter an IP and subnet mask for this adapter. In this instance my system automaitcally assigned 192.168.56.1 so I left it as it. Once done Click OK.
- Now right click on the GNS VM and select Settings….
- Go to the Network menu and set Adapter 1 to be Attached to a Host Only Adapter. Select vboxnet0 from the dropdown and click OK.
Stage Three – Source the Images
Images are not included in the lab downloads. The images used are as follows:
- Image for Cisco 3725: c3725-advipservicesk9-mz.124-17.image
- Image for Cisco 7200: c7200-spservicesk9-mz.150-1.M.image
Store these in the IOS directory for GNS3.
Stage Four – Configure GNS3
- Open GNS3
- The Setup Wizard should begin automatically or you can select it from the Help menu as follows:
- Whilst the labs downloaded from netquirks run on the local machine, it is worth configuring GNS3 to run using the GMS3 VM. As such, on the next menu, select the Run Modern IOS option and click Next.
- You will first be prompted for the local server configuration. Select 127.0.0.1 from the drop down. Click Next.
- You should then see a screen stating the local server is validated. Click Next.
- If you get a warning stating that VirtualBox doesn’t support Nested virtualisation just click OK.
- Next the GNS3 VM will be configured. Select the VirtualBox radio button. Under VM Name use the dropdown to select the name of GNS3 VM that configured in VirtualBox (it should automatically be detected – make sure the VM is running at this point). Assign appropriate vCPU cores and RAM, then click Next.
- Finally you will see a summary page showing the last setup of the VM. Click Finish.
Stage Five – Configuring the IOS Routers
- After finishing the above section a New Appliance Template window will appear. Select the Add an IOS router using a real IOS Image Option. If coming from the main GNS3 screen, go to the Preferences menu, select the Dynamips > IOS routers menu, followed by the New button.
- On the window that pops up, select the radio button called Run the IOS on my local computer. Select Next.
- Select the New Image radio button.
- Browse to and select the image you wish to use. Select Next.
- Give the router a name. Select Next.
- Select the RAM as follows and click Next…
- 128MB for the 3725 image
- 512 for the 7200 image
- Select a sufficient number of Fast Ethernet adapters. Select Next.
- If applicable, select a sufficient number of WIC modules. Once done select Next.
- Select Idle-PC finder and let GNS3 find the correct value.
- Select Finish and then OK to go back to the main topology window of GNS3.
Stage Six – Downloading and Importing the Labs
- On the Lab page, download the lab that you want to run.
- Extract the .zip and make sure the extension is .gns3project
- Open GNS3 and select File > Import Portable Project
- Browse to the .gns3project file and select it. The project will import itself and the topology will appear.
- Press Play and the lab will start
- To access a device, double-click on it and a console will open.