L3 switching Simulation
Adding a Layer 3 Switch in GNS3
To add a layer 3 switch in GNS3, you need to perform the following steps:
Step 1
First of all, download the Cisco 3640 series IOS image file.
Step 2
Once you have downloaded the Cisco 3640 series IOS image, open the Preferences window by clicking the Edit and then Preferences in the GNS3 console.
Step 3
In the Preferences window, select IOS routers in the left pane. Here, you will see all the added IOS router templates. To add a new IOS router template, click New as shown in the following figure.

Step 4
On the New IOS router template window, select the New Image radio button.
Step 5
Click Browse and navigate to the location where you have downloaded the 3640 IOS image file, and then select it.
Step 6
In the IOS Image message box, click Yes to decompress the selected image, and then click Next.

Step 7
On the Name and platform page, type a name such as Layer 3 Switch in the Name text box, select the This is an EtherSwitch router check box and then click Next.

Step 8
On the Memory page, accept the default memory size or set the desired value, and click Next.
Step 9
On the Network adapters page, select NM-16ESW from the slot 0 drop-down list and then click Next.

Step 10
On the Idle-PC Finder page, click Finish and close the Preferences window.
Step 11
You will see that a layer 3 switch in GNS3 console has been added. Drag it to the work view area.
Step 12
Right-click layer 3 switch (ESW1) and select Start to start it.

Step 13
Once it is started, select and right-click again it and select Console to open its console.
Step 14
On the ESW1 console, type the following commands to verify that it works as a Layer 3 switch.
ESW1#config t
ESW1(config)#hostname Switch1
Switch1(config)#exit
Switch1#vlan database
Switch1(vlan)#exit
Switch1#show vlan database
Step 15
The following figure shows that the preceding commands are successfully executed on the layer 3 switch that you have added in GNS3.

Last updated