Category: Network Labs & GNS3

Building network labs with GNS3, VIRL and virtual appliances: setup guides, images and lab topologies.

  • VirtualBox and GNS3

    VirtualBox

    VitualBox is a cross-platform virtualization application very similar to VMware that runs on Windows, Mac, Linux or Solaris operating systems. VirtualBox provides a generic virtualization environment for x86 systems meaning it may run operating systems of any kind. Also, VirtualBox is usually faster and easier to use than Qemu, especially on Windows and Mac OS X. We recommend to read the manual for a complete understanding of VirtualBox and its features.

    Creating Virtual Machines

    First, make sure your have installed VirtualBox version >= 4.1, if not you can download it from the official website.

    Then you can either create a new Virtual Machine using the Oracle VM VirtualBox Manager or download one of our appliance. The Linux Microcore 4.7.1 appliance has been imported for the following example.

    gns3-virtualbox-emulation-02

    Now you could create or import other Virtual Machines so you can get more than one VirtualBox guest in GNS3 but here we will create 2 linked clones instead. The concept of linked clone is quite simple, the new cloned VMs will be working with “linked” virtual hard disk and all new changes will be saved in a newly created disk, thus saving your disk space while all changes made in the clone VM will not affect the base VM.

    To create a linked clone, right-click on your base VM, here Linux Microcore 4.7.1, and select the “Clone…” entry. Choose a name, reinitialize the MAC address of all network cards and finally the clone type. Repeat the process to create one more clone.

    gns3-virtualbox-emulation-03gns3-virtualbox-emulation-04

    After completing the last configuration, you should see your 2 clones, named HostA and HostB in this example. You are ready to link your Virtual Machines in GNS3.

    gns3-virtualbox-emulation-05

    Using VirtualBox VMs in GNS3

    Check that VirtualBox is functional in GNS3. Go to Preferences -> VirtualBox, check the path to vboxwrapper and click on the providedTest Settings button. You should see a message if everything goes well. You only need to do this the first time you setup VirtualBox support in GNS3.

    gns3-virtualbox-emulation-01

    Go to the VirtualBox Guest tab to add the VirtualBox VMs in GNS3. Choose an identifier name, a VM from the VM list (you may have to refresh the list using the provided button) and other options:

    • Number of NICs is the number of network interface cards you will see inside your VM (e.g. ifconfig on Linux).
    • Reserve first NIC for VirtualBox NAT to host OS is to you have your first network interface card (e.g. eth0 on Linux) configured with network address translation (NAT), allowing your VM to access your host network and Internet (if your host can access it of course).
    • Enable console support to activate a serial console access to your VM. Please note that serial console support must also be configured on the operating system running in your VirtualBox guest for this feature to work. Here is a howto for Debian/Ubuntu Linux.
    • Enable console server (for remote access) is to remotely access to your VM serial console. GNS3 creates a mini Telnet server that act as a proxy between the serial console and Telnet clients. This feature requires the Enable console support to be enabled.
    • Start in headless mode (without GUI) will hide the VirtualBox graphical interface when the VM is started. This option is mostly useful if you have configured the previously described console support.

    gns3-virtualbox-emulation-06

     

    At this point, you should have added and configured your Virtual Machines in GNS3 Preferences. You can now add your VMs on the workspace, link them, start everything and console to all.

    gns3-virtualbox-emulation-07

    Once booted, configure valid IP addresses on both guest OS and ping between them. Here are the configuration used in this example:

    HostA

    tc@Linux:~$ sudo su
    tc@Linux:~# ifconfig eth0 10.1.1.1 netmask 255.0.0.0
    tc@Linux:~# ping 10.2.2.2

    HostB

    tc@Linux:~$ sudo su
    tc@Linux:~# ifconfig eth0 10.2.2.2 netmask 255.0.0.0
    tc@Linux:~# ping 10.1.1.1

    gns3-virtualbox-emulation-09gns3-virtualbox-emulation-10

    Congratulations, you made your fist VirtualBox lab using GNS3!

    Remote VirtualBox server

    This is a more advanced topic that shows you how you can use a remote VirtualBox server. To do so, you first have to start vboxwrapper.exe or vboxwrapper.py (requires Python) on your server (VirtualBox must be installed too). By default vboxwrapper will listen for connections on port 11525, this can be changed using command line options (use vboxwrapper –help to display them all).

    $ python vboxwrapper.py
    VirtualBox Wrapper (version 0.8.4-RC4)
    Copyright (c) 2007-2012
    Jeremy Grossmann and Alexey Eromenko "Technologov"
    
    Using VirtualBox 4.2.14 r86644
    VBoxWrapper TCP control server started (port 11525).
    Listening on all network interfaces

    On your client, go to GNS3 Preferences, select Show VBoxWrapper Advanced Options, then disable the Enable VBox Manager one. Add an external VBoxwrapper which is the server IP address and port, 192.168.1.69:11525 in this example. Finally, hit the Test Settings button.

    gns3-virtualbox-emulation-11

    You should then see a similar message in vboxwrapper on your server if the connection has been successful.

    Connection from ('192.168.1.69', 54906)
    [Errno 54] Connection reset by peer

    Finally, as showed earlier in this tutorial, add your VirtualBox guests and start using them as you would normally do. Remember that your VMs will run on a remote server and there will be no VirtualBox GUI on your client. This means you should have a way to access them and the easiest is either to configure console support or have a remote desktop (RDP) connection to your server.

     

     

  • Cisco IOS image for GNS3

    Download Cisco IOS image for GNS3

    Hi dear all, that’s really a great to share my hard work  with you , After a lots of  hit in Google  I finally found trick to search Cisco IOS in free of course. So without talking much here are the link where you can free download Cisco ios image and you can upload or use this ios to the router and as well as in GNS3.
    Small Collection of IOS Images.

    ftp://ftp.unikon-ua.net/pub/Cisco/IOS/
    {Updated}Big Collection of IOS Images (Almost All Cisco IOS Images)
    ftp://62.117.115.92/upload/ios/
    Another Big Collection

    ftp://86.110.172.101/Soft/IOS/

     


    (NEW)Cisco IOS Images Big Collection v3. **Direct HTTP Link**
    http://www.jonsfiles.com/IOS%20Images%20for%20GNS3/Cisco_IOS_Collection/IOS/

    http://www.intranet.betomt.com.br/repositorio/IOS/CISCO/ASA Binary files for GNS3
    http://www.4shared.com/dir/5716575/72cbe353/IOS.html
    New Big IOS Collection

    ftp://79.120.76.25/torrent/downloaded/ios/

  • Connecting GNS3 to Real Networks

    One of the interesting things about GNS3 is that you can connect your topology to the real world. For some of your CCNA and CCNP studies you may need to run an actual Web browser or Cisco’s Security Device Manager (SDM) among others. Just connect your topology to your real PC. You could even connect to virtual machines running on your computer inside VMware or Virtual PC. I’ve even set up two copies of Windows XP Professional running inside VMware virtual machines. Then, I ran Cisco soft IP Phones that could talk to each other. You could connect your virtual network to a real network as well. Connecting a virtual topology running within GNS3 to real devices is very exciting, but again, your throughput is going to be limited compared to using real equipment for the entire topology. It only makes sense to use GNS3 in a lab environment and for learning purposes.

    Drag a Cloud into your workspace. Right-click the Cloud and chooseConfigure. Click on C1 under Clouds, but choose the NIO Ethernet tab.Administrator rights are required (root account under Linux).

    For Windows users, click on the box directly beneath Generic Ethernet NIO, and choose the network adapter you wish to use. For Linux users, click on the drop-down box to choose your network adapter (either your real adapter or a loopback adapter). Click the Add button and OK. You will need to configure the IP settings for your computer’s adapter, and then use theAdd a link toolbar button to create your connection.

     

    You may use your regular network adapter, but I usually create an MS Loopback adapter to connect to. In Windows, use the Add Hardwarewizard in Control Panel. Choose “Yes, I have already connected the hardware.” On the next screen, choose Add a new hardware device at the end of the list and click Next. Choose to “Install the hardware manually…”and click Next. Choose Network Adapters in the list and click Next. ChooseMicrosoft as the manufacturer and then Microsoft Loopback Adapter as the network adapter. Finish the wizard. Then right-click My Network Places and choose Properties. You may wish to rename the new Local Area Connectionas MS Loopback Adapter. Also, assign the proper IP settings to the adapter in order to connect to your topology. Linux has a built-in loopback adapter already installed.

    Now start your router and assign an IP address to the interface that is connected to the Cloud. You should be able to ping from the router to your PC (loopback interface) and the other way around. Don’t forget to deactivate any firewall that could block pings on your computer.

     

    Also configure:

    Configure DNS:

    R1(config)##ip doamin-lookup 

    R1(config)##ip name-server 8.8.8.8

     

    Configure NAT:

    R1(config)#access-list 1 permit 192.168.138.0 0.0.0.255

    R1(config)#ip nat inside source list 1 interface fa0/0 overload

    R1(config)#int fa0/0
    R1(config-if)#ip nat outside
    R1(config-if)#int fa0/1
    R1(config-if)#ip nat inside

     

    gns3 to internet steps

  • GNS3(Graphical Network Simulator)

    GNS3 (Cisco Hardware Emulator): http://www.gns3.net

    How To Install GNS3 1.0 on Windows 8.1

    GNS3 1.0 was released to the world on October 21st, 2014. I have been using previous versions of GNS3 for some time now to simulate networks and to practice for my Cisco certifications. For those of you who aren’t familiar with GNS3, it is an application that allows you to build networks for free. The caveat there is you need to supply the images for your equipment. GNS3 supports Cisco, Juniper, HP, Arista, Citrix, and Brocade (as specified on their site, gns3.com. You build out a virtual lab which means there is no need to purchase physical hardware.

    Before getting started, you’ll need to sign up on GNS3‘s website. Once you have an account. You can download GNS3. Click on the Windows download button to begin.

    Download GNS3 for Windows

    Once you open the installation file, click through the standard setup screen and agreement until you get to the Choose Components section.


    How to Install GNS3

    GNS3 Components

    Select all the components you will need – almost everything. SolarWinds is a new application packaged with GNS3. If you already have some of the components installed, such as Wireshark, you can uncheck it.

    Location of Installation

    After completing installation, Start GNS3.

    Upon opening GNS3, you will be prompted to save your new project locally or in the cloud. For the purposes of setting up GNS3 I will skip this.

    Store GNS3 project files locally or in the cloud

    Click on Edit and then Preferences.

    Editing preferences of GNS3

    Expand Dynamips and select IOS routers.

    Add new IOS images

    This is where you must supply your IOS image. I cannot supply these images for you. Click on New to add your image.

    Add new IOS image in GNS3

    Enter the name of the Image and its platform.

    Add a name and platform

    Set the amount of RAM to be allocated to IOS.

    Allocated ram

    Select the default adapters you want installed for each new instance of this device.

    The default adapters for the template

    After you finish, the router will be displayed with its settings.

    List of images

    Click on the General tab to view your settings. Make any changes as you see fit.

    GNS3 General Preferences

    The Console applications tab is where you can configure what application is to be used to console into your devices within GNS3.

    Putty for console

    The Packet capture tab displays your settings for capturing traffic on links between your devices within GNS3. Notice the capture analyzer command using SolarWindows Response Time Viewer.

    Wireshark for packet capture

    Click OK to close the Preferences window.

    The big window in the middle of GNS3 is your topology view. This is wear you drag and drop devices from the left menu item.

    GNS3 Main Window

    To add a device, click on one of the symbols on the left and drag and drop the IOS image you’ve uploaded to GNS3.

    Click and drag

    The Topology Summary window will display a list of all your devices. A red orb signifies a device that is off. A green orb means the device is on.

    Right click on your device and click on Start to turn on your device. Right click again and select Console to bring up Putty to manage your device.

    Device Menu

    Happy labbing! Let me know if you have any questions in the comment section below!