Topology: VLAN Trunking GNS3 Lab - 802.1Q - Router On A Stick
Written by LBSources from http://www.gns3-labs.com on June 15th, 2008 | 15 CommentsThis is a lab testing VLAN trunking, subinterfaces, router on a stick and 802.1q (DOT1Q) using 3640 routers as routers using the NM-16ESW module. The PCs are also 3640 routers.
Routers Used: 3640 w/ NM-16ESW modules
IOS: c3640-jk9s-mz.124-16a
Feature of Topology: VLAN testing. Router On A Stick / Subinterfaces. Communicating with VLANs VIA the DOT1Q trunking protocol.
Download: GNS3 VLAN Trunk Lab
Dynamips - Dynagen Version: Dynamips-Dynagen-VLAN Trunk Lab With VPCS Config
Inspired by : 7200emu.hacki.at - vlan trunk lab
Enjoy .. LBS
11,147 views
Tags: 802 DOT1Q, 802.1q, Dynagen, Dynamips, GNS3 Topology, GNS3 VLAN Trunk Lab, Router Subinterfaces, VPCS










June 15th, 2008 at 6:13 pm
Here is the config steps for those interested.. I modified them to the interfaces in this topology
PC1#configure terminal
no ip routing
ip default-gateway 192.168.1.10
interface e0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
end
PC2#configure terminal
no ip routing
ip default-gateway 192.168.2.20
interface e0/0
ip address 192.168.2.1 255.255.255.0
no shutdown
end
PC3#configure terminal
no ip routing
ip default-gateway 192.168.1.10
interface e0/0
ip address 192.168.1.2 255.255.255.0
no shutdown
end
PC4#configure terminal
no ip routing
ip default-gateway 192.168.2.20
interface e0/0
ip address 192.168.2.2 255.255.255.0
no shutdown
end
R1#configure terminal
interface FastEthernet0/0
no shutdown
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.1.10 255.255.255.0
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.2.20 255.255.255.0
end
——SW1——-
SW1#vlan database
vlan 10 name vlan10
vlan 20 name vlan20
exit
configure terminal
interface f0/1
switchport mode access
switchport access vlan 10
no shutdown
exit
interface f0/2
switchport mode access
switchport access vlan 20
no shutdown
exit
interface f0/12
switchport mode trunk
switchport trunk encapsulation dot1q
no shutdown
exit
interface f0/0
switchport mode trunk
switchport trunk encapsulation dot1q
no shutdown
end
——SW2——-
SW2#vlan database
vlan 10 name vlan10
vlan 20 name vlan20
exit
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
interface f0/1
switchport mode access
switchport access vlan 10
no shutdown
exit
interface f0/2
switchport mode access
switchport access vlan 20
no shutdown
exit
interface f0/12
switchport mode trunk
switchport trunk encapsulation dot1q
no shutdown
end
June 20th, 2008 at 10:37 pm
Hello,
How can I create Sw1 and Sw2? Using cisco3600 router? I did it. But, the switchmode port trunk command is not support? vlan also cannot be created!!!
June 20th, 2008 at 10:45 pm
remember that you must load the NM-16ESW port module in the slot.
July 25th, 2008 at 11:40 am
[...] case you have had a look at our Topology: VLAN Trunking GNS3 Lab - 802.1Q - Router On A Stick & need some help with configurations have a look over at [...]
July 29th, 2008 at 2:57 am
[...] References: http://www.gns3-labs.com/2008/06/15/topology-vlan-trunking-gns3-lab-8021q-router-on-a-stick/ [...]
July 29th, 2008 at 6:37 am
[...] You can also find some help in my lab GNS3-Labs:: Topology: VLAN Trunking GNS3 Lab - 802.1Q - Router On A Stick [...]
October 4th, 2008 at 5:52 pm
Great lab - but no step by step testing or explanations for beginners.
October 4th, 2008 at 6:04 pm
Hey Chris.. As I have said elsewhere..
Hey Chris .. These are not my goals. My goals are to compile complete labs I use for my own testing, or that others share, package them nicely and share with you all. You can then do your own testing and break-fix scenarios. I’m far from an instructor or have the knowledge to build test labs for others to solve.
You can learn more about the site here: http://www.gns3-labs.com/about-gns3-labs/
October 4th, 2008 at 8:50 pm
LBSources . . . I hear you and I still appreciate your lab. Dynamips and GNS3 are very good stuff. I’ve been going over your “Router on a Stick” lab and was at least expecting to have been able to ping 1 pc to another in the other vlan (or even in the same vlan) but was not able to. So I have to go over the configs to see if anything is missing. I was still pleasantly surprised to have it displayed and running on my instance of GNS3. The blindhog videos are great as well. I just need to read up on some networking material it seems. Thanks.
October 5th, 2008 at 12:09 pm
Sounds like you already have a scenario in the lab which you must fix. All labs on this site are delivered fully working.. This lab in particular is also the #1 topology of the site and I’m sure that someone else would have reported it non-working it truly was broken
..
October 6th, 2008 at 12:29 am
mmmmmm . . . sounds like reverse psychology to me. You wanted to come up with a broken lab so that people would have to work to fix it in the first place. Very good idea on your part!
November 19th, 2008 at 9:56 am
I has run Vlantrunklab, after finish load the configuration, From any PC, I can’t ping the default gateway and the PC in same VLAN, it’s only ping successfully it’s Ip address.
Please help me.
I use the lastest GNS3.
November 21st, 2008 at 10:48 pm
Nhan .. Thats the idea of labs buddy to sort it all out and get it working
December 10th, 2008 at 3:33 pm
I followed all the step, IOS c3640-jk9s-mz.124-16a, loaded the NM-16ESW port module, I’m using GNS3-0.5, and dynamips-0.2.8-RC2-x86. my operative system is Kubuntu 8.4 with KDE 3, everything works as should, but the trunk isn’t working. Do you have any idea why this happen? Thanks a lot.
December 11th, 2008 at 7:22 am
@rcastro That’s for you to figure out