GNS3 Importer une image Cisco et créer un switch

how to add a cisco switch?

I. Presentation

In the first introductory article to GNS3, we saw that GNS3 is a tool that allows us to model infrastructures by integrating, among other things, network equipment. In this second article, we will see how to add a Cisco switch to GNS3. Cisco has developed a virtual version of its IOS operating system for switches called IOSv available in two versions:

  • IOSvL2 : Supports most features found in CISCO Tier 2 and Tier 3 switches
  • IOSv : support most features present in CISCO routers

You can find the first article by following the link below:

II. Import a Cisco IOSvL2 Image into GNS3

First, we need to install the CISCO IOSvL2 image and we need to get the appliance from the website. In GNS3 this is called GNS3, but in fact it is more of a tool that offers us an IOS import wizard. Indeed, the IOSv is available for purchase on the CISCO website. On the GNS3 website, we have access to a “marketplace”, from the home page, we will click on the “ Marketplace ».

GNS3 - Importer image Cisco - Etape 1

After clicking on ” Appliances ‘, we will download theappliance Cisco IOSvL2. This is a file in the format ” gns3a ».

GNS3 - Importer image Cisco - Etape 2

Once the file has been downloaded, we will import it into GNS3. Open the app. We will pull down the menu “ File » where we will select « Import appliance ».

GNS3 - Importer image Cisco - Etape 3

We will select the file that we downloaded from the GNS3 website, namely “cisco-iosvl2.gns3a“.

GNS3 - Importer image Cisco - Etape 4

The IOSvL2 import wizard launches…

In the first step, we are asked to select where we want to install it. As we specified in the first article, CISCO switches and routers are not based on x64 or x32 processor architectures. We must therefore emulate the system to operate the IOS operating system for switches from CISCO.

We will use theQEMU emulator present in GNS3 appliance running in VMware Workstation, it is this only choice which is proposed to us. We can click on the button Next ».

GNS3 - Importer image Cisco - Etape 5

We will select the QEMU binaries that we will use, its binaries are present in the virtual machine. We will use the default version, which is also the latest most recent version present in the GNS3 VM virtual machine.

GNS3 - Importer image Cisco - Etape 6

We have a list of version of IOSvL2 that we can install, in this example we will use the version IOSvL2 version 15.2(4.0.55)E, so we will select the IOS of this version. Thus, we will obtain access to the buttons “ Import » et « Download ».

GNS3 - Importer image Cisco - Etape 7

We will click on the button “ Import ”, then we will select the file of our CISCO imagethen in the dialog we will select our file “ vios_l2-adventerprisek9-m.vmdk.SSA.152-4.0.55.E ».

GNS3 - Importer image Cisco - Etape 8

We will then unfold the node of the version we have just installed, we select the file name of our IOSv, then we click on the “Next“.

GNS3 - Importer image Cisco - Etape 9

A confirmation request message is displayed on the screen, click on ” Yes to confirm installation.

GNS3 - Importer image Cisco - Etape 10

We will have the instructions for using our Switch. We will click on the button “ Finish ».

GNS3 - Create a Cisco switch - Step 1

Once the operation is completed, we have a dialog box, confirming the installation of our Switch with a simple click on “OK“.

GNS3 - Create a Cisco switch - Step 2

III. Create your first two Cisco Switches in GNS3

It is time to test in order to verify the proper functioning of our CISCO image. For this, we will create a new project in which we will add two Cisco switches.

To create a new project, we will click on the drop-down menu “ File » then on « New Blank Project ».

GNS3 - Create a Cisco switch - Step 3

In GNS3, a lab is called a “project”, we need to give it a name and a location where the different files used for the models will be installed. Once this information has been entered, we will click on the ” OK “. Here is an example :

GNS3 - Create a Cisco switch - Step 4

In GNS3, within the switch category, we can view our CISCO switch.

GNS3 - Create a Cisco switch - Step 5

We will slide the switch identified with the name Cisco IOSvL2 15.2(4.0.55)E on the workspace, on the right. Thanks to this action, we create a switch.

GNS3 - Create a Cisco switch - Step 6

We repeat this operation so that we have two switches on the workspace then we will click on the green triangle to start both devices.

GNS3 - Create a Cisco switch - Step 7

We will link the two devices using the “ link » accessible in the side menu.

GNS3 - Create a Cisco switch - Step 8

To link, with the tool « link », we will click on the first switch. There we will have the list of ports. We will select the port Gi0/0.

GNS3 - Create a Cisco switch - Step 9

We will then click on le second switchwe will also select the same port. We have just created a link between the two switches.

GNS3 - Create a Cisco switch - Step 10

By double-clicking on the switches, we have access to the terminal for configuration. We will assign an IP address to VLAN 1 on each of the devices and we will ping between the two switches.

On the premier switchwe assign the IP address “192.168.0.1/24” :

Switch>enable
Switch#configure terminal
Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.0.1 255.255.255.0
Switch(config-if)#no shutdown

In pictures:

GNS3 - Create a Cisco switch - Step 11

On the second switchwe assign the IP address “192.168.0.2/24” :

Switch>enable
Switch#configure terminal
Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.0.1 255.255.255.0
Switch(config-if)#no shutdown

In pictures:

GNS3 - Create a Cisco switch - Step 12

All that remains is to test a ping in both directions: you will see that your switches are able to communicate!

IV. Conclusion

Congratulation ! You have just imported a CISCO image into GNS3, created your first switches and made them communicate together!

Administration Réseau,Cisco,gns3,Réseau,

#add #cisco #switch

Leave a Comment

Your email address will not be published. Required fields are marked *