Article

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 Comments

This 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.

Image:

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: , , , , , , ,

15 Responses to “Topology: VLAN Trunking GNS3 Lab - 802.1Q - Router On A Stick”

  1. LBSources

    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

  2. csplau

    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!!!

  3. LBSources

    remember that you must load the NM-16ESW port module in the slot.

  4. GNS3 Tutorials: BlindHog - How to build a switching lab | GNS3 Labs :: Cisco Router Simulator Network Topologies

    [...] 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 [...]

  5. blindhog.net » GNS3 - Switching lab part 2 (router on a stick)

    [...] References: http://www.gns3-labs.com/2008/06/15/topology-vlan-trunking-gns3-lab-8021q-router-on-a-stick/ [...]

  6. GNS3 Tutorials: BlindHog - How to build a switching lab Part 2 | GNS3 Labs :: Cisco Router Simulator Network Topologies

    [...] You can also find some help in my lab GNS3-Labs:: Topology: VLAN Trunking GNS3 Lab - 802.1Q - Router On A Stick [...]

  7. Chris SMith

    Great lab - but no step by step testing or explanations for beginners.

  8. LBSources

    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/

  9. Chris Smith

    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.

  10. LBSources

    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 :) ..

  11. Chris Smith

    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! ;)

  12. Nhan

    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.

  13. LBSources

    Nhan .. Thats the idea of labs buddy to sort it all out and get it working :)

  14. rcastro

    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.

  15. LBSources

    @rcastro That’s for you to figure out :)

Leave a Reply



Subscribe To GNS3-Labs

Subscribe to GNS3 Labs :: Cisco Router Simulator Network Topologies