Today i shall show you how to use Cisco switch in gns3. In node panel of gns3 you could not find any layer2 or layer3 Cisco switch, you cannot use the Cisco 2900
or 3800
series switches in gns3. But there is a way by which you can use your router as switch by using NM-16ESW module in router. In this way you can configure switching protocols like VLAN, STP, VTP ect.
So follow these steps..
- First open the "Symbol Manger" from Edit tab.
- Add a ethernet_switch from available symbol to customize nodes. Type a name for switch and in Type field assign the Cisco router IOS to switch, in my case i select the c3600 series and i use the IOS c3640-jk9o3s-mz.124-16a (33MB).
- Click on apply and then on ok button.
- Now you can find a new switch in nodes types.
- Now drag this switch on stage and click on configuration and add NM-16ESW module from slot tap.
- click on OK you may received a message "You must use 'manual mode' to connect a link with a NM-16ESW module". Therefore use the manual method to configure this.
Now for test i shall configure two vlan on switch. For Vlan configuration you can use the following commands.
vlan database
vlan 10
vlan 20
- Start your switch and try these commands also can see in screen-shot for vlan 10, 20.
1. Switch virtual interface SVI configuration on gns3
2. Inter VLAN on gns3
3. Hot Standby Router Protocol configuration on GNS3
how mine is not working dam it
ReplyDeleteis there any error ??? and which IOS you are using...???
ReplyDeleteIf I add ethernet-switch and set it as ethernet-switch. I have not place to set the IOS as you do on a router.
DeleteIf I add the ethernet-switch symbol and set it to ethernet-switch, there is no place to point the IOS, as there is on a router.
Deletethanks sooooooooooooooooooo much!!!
ReplyDeletethanks alot ...........its working fine....:-)
ReplyDeleteAmazing it solve my problem thank you veeeeeeeeeeeery much.Keep it up
ReplyDeleteThere is something incorrect as when I write that command:
ReplyDeleteswitch#vlan database, I got invalid input detected?!
Any update in that case ??
10x
vlan database is old way of creating vlans. New one is switch(config)#vlan
Deletemake sure you have used NM-16ESW module in that router..
ReplyDeletethis is what i got !!!!
ReplyDelete% Invalid input detected at '^' marker.
add NM-16ESW module in switch in order to execute the "switch#vlan database" command.
ReplyDeletethanks man...i cleared my CCIE rns with this only.....amazing work guys...
ReplyDeleteThanks Dear, it is great!!! i really mean it.
ReplyDeleteGreat.
ReplyDelete:-)
ReplyDeletehi why is the link redirecting me to amazon?
ReplyDeleteI cannot download the ios image
please update the link
Downloading IOS files and refering to them is illegal, but you should be able to find them if you search hard enough(usenet,torrents etc.)
ReplyDeletehi if you wana download IOS files then u can download from gns3.net or search google u ll find more links.
ReplyDeletethank u so much.....m trying to use switch for 2 months but router interfaces came in between of etherswitch router
ReplyDeletejust use the "NM-16ESW module" in any router, then u can run different switch commands in gns3.. try this n reply what hapen...
ReplyDeleteHi, I tried above setup but its not working...... any one pls suggest ...
ReplyDeleteswitch#vlan da
switch#vlan database
switch(vlan)#vlan 100
VLAN 100 added:
Name: VLAN0100
switch(vlan)#vlan 200
VLAN 200 added:
Name: VLAN0200
switch(vlan)#
switch(vlan)#ex
APPLY completed.
Exiting....
switch#
switch#
switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)#int fa 0/0
switch(config-if)#sw
switch(config-if)#swit
switch(config-if)#swit?
% Unrecognized command
switch(config-if)#^Z
switch#
switch#
switch#sh ver
*Mar 1 00:02:26.927: %SYS-5-CONFIG_I: Configured from console by console
switch#sh ver
Cisco IOS Software, 3700 Software (C3725-ADVIPSERVICESK9-M), Version 12.4(23), RELEASE SOFTWARE (fc1)
use the interfaces of fa1/0 ,fa1/1,fa1/2 .....etc
Deleteinstead of interface fa0/0 or fa0/1
Interface fa0/0 and fa0/1 are router interfaces. The Switch interfaces start from fa1/0.
DeleteI hope this will help
its working fine......
ReplyDeletehey i want to add switch catalyst 4507r. how can i do it ... help m plz
ReplyDeleteif ther any one can halp me this is my skype ;hamadabenyettou
ReplyDeletethnx
May I know the IOS version and sw / router module that is being used in order to configure VRRP and HSRP ? So far I am not able to use "standby" command and "vrrp" commands. I used "c3640-jk9o3s-mz.124-16a" IOS and using "NM-16ESW" , "NM-1FE-TX". But still cannot use "standby" and "vrrp"commands. Pls. advise.
ReplyDeleteHi, this is working quite well but we can't access to all vlan acl can we?
ReplyDeleteI tried
SW1(config)#vlan access-map
and
SW1(config)#vlan filter
It didn't work.. any idea how to make those work?
thanks a lot it`s working exactly the same to me
ReplyDeleteyou are wonderful,thanks a million,i thought iwas lost forever.
ReplyDeletehmm....When I do the steps...it shows the ethernet_switch under 'Decorative Nodes' in node panel and it doesn't give me more options like adding Adapters on slots...
ReplyDeletethanks a lot, you`re genius
ReplyDeletethankx for all ur comments.., it really help alot
ReplyDeletewhy cant i see any Vlans (not even the default ones) when i enter show vlans on gns3
ReplyDeleteI have tried mounting the NM-16ESW module to multiple IOS images and router types but for some reason the add on card does not get picked up at all. No VLAN commands or interfaces visible. Other add on cards work and extra ports are picked up automatically. Am I missing something?
ReplyDeleteworking for me... thank you. :)
ReplyDeleteHello Can anybody share the link to download the module NM-16ESW please?
ReplyDeletei am not sure about other routers but 3600 series has NM-16ESW module..
Deletejust add this router in your topology and from slot option select this module.. thanks..
hi, I did everything as described above, well I see all interfaces when show ip int brief. but if I type " show vlan" it doesn´t work for me, it says " Ambiguous command: show vlan " instead ,,, any idea why ? or maybe since it is router IOS it just doesnt support this command,,
ReplyDeletehi, do u manage to create vlan or not????
Deleteyes , I could create them, but once I type "show vlan" that message occured "Ambiguous command: show vlan " , don´t know why though... is there any other command to show list of vlans created on it? thanks
Deletetry following command:
Deleteshow vlan-switch brief
Use sh vlan-switch
Deleteshow vlan does not work, use show vlans switch instead
ReplyDeletehello, thanks I must have been blind yesterday when I missed this:
ReplyDeletehttp://commonerrors.blogspot.sk/2011/06/save-vlan-configuration-database-in.html
show vlan-switch solved my problem...
Hi
ReplyDeletewhen using NM-16ESW module in router and then for example in the IOS type int f1/0 , IOS give the this error :
invalid input detected at ' ' marker.
why this error show me ?
int f1/0 is not valid for your setup. use the "Router#show ip interface brief" command for show all interfaces and then select the one which you wana configure..
Deletethanks
Switch#vlan database
ReplyDeleteSwitch(vlan)#vlan 100
VLAN 100 added:
Name: VLAN0100
Switch(vlan)#vlan 200
VLAN 200 added:
Name: VLAN0200
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface e1/0
Switch(config-if)#sw
Switch(config-if)#switchport mode access
^
% Invalid input detected at '^' marker.
------------------------------------------------
any idea please
Regards.
try switchport mode access on fastethernet instead of ethernet, see what happen????
DeleteWell Thanks I have tried the Fastethernet and still it is the same, but i gave the interface an ip address connected to router and it is pinging, i mean I can ping the router connect to the fastethernet , not as yesterday when I used Ethernet, I couldn't even ping. thanks again,
Deletecan anyone tell me why Switchport mode access is not working on my switch, It is 3600 router simulated as switch and I am using c3640-is-mz124-21.bin
thanks again.
thank you it working good for me..
ReplyDeletehi, what type and number of this IOS switch that you used in this Lab? can you tell so I can search for it myself.
ReplyDeleteNot Working the switchport mode access in c7200 & 3640.
ReplyDeletePlease find the below error that i am getting. Please help
ReplyDeleteC:\unpack>unpack.exe
'unpack.exe' is not recognized as an internal or external command,
operable program or batch file.
now what is this unpack.exe???
DeleteHi Dear,
ReplyDeleteI am Charan, preparing for CCNP SWITCH. I struggled a lot to do Switching Lab practice and this really helped me a lot.
Thank you for the great support and sharing.
I do not use GNS3 for switching, I'm using SunOS SPARC in Simics to create network topology for switching practice, configuration and verification. VLAN, VTP, STP and other switch configuration works fine in SunOS.
ReplyDeleteI was wondering how can I do something like that...now, I got an answer...thx a lot
ReplyDeleteany 1 can give iso image 3600 ?
ReplyDeleteGREAT! THANKS SO MUCH.
ReplyDeletewhere can we get the nm16esw module......i didnt find it in the slot option....how do we get that...IOS image is required
ReplyDeletegood stuff
ReplyDeleteThank you verry much, so helpful !
ReplyDeleteHey thanks. Nice info. But what do I have to do to run vtp commands on this newly created switch. When I tried it in global mode, it asked me to create a file in which it will store the vtp database. I gave it the name : "vtp.dat". But then I couldn't do anything with that file or with any other vtp command. Any ideas?
ReplyDelete