Setup VLANS on two switches

Posted on 2012-09-18
Last Modified: 2013-10-06
I have two Cisco SLM224PT switches that I need to setup two VLANS between. Here is my setup.
Switch A is on the bottom floor of a building with network 192.168.1.x connected to G1 port and 192.168.2.x connected to G2 port. The switch is setup with ports 1-12 on VLAN 1 which is 192.168.1.x and ports 13-23 on VLAN 2 two 192.168.2.x. Port 24 is setup for a trunk and tagging is cut on. Port 24 is then connected to the second floor switch B to the G1 port.
Switch B is setup for 1-12 VLAN 1 and port 13-24 VLAN2. Port G1 is tagged and set for trunk.
On switch A all works as it should with both VLANS but on switch B only VLAN 2 works. I know I am missing something just can’t find it. Any suggestions?

Question by:resd
    LVL 3

    Expert Comment

    by:Nathan Kaufman
    interface fe/24 (or whatever interface is setup for trunks on either switch)
    switchport trunk encapsulation dot1q
    switchport mode trunk
    switchport trunk allowed vlan 1-2

    Should be setup on both switches trunking ports.  Not sure if that's done or not for the 2nd switch.  You can do Console> (enable) show trunk to see if both trunks are setup to allow both vlans, I would run that on both switches
    LVL 1

    Author Comment


    The problem is the SLM224 does not have a serial console port and does not support telnet. The only way to configure these are through the GUI.

    While your answer would normally might work, it does not on these switches.

    LVL 6

    Expert Comment

    SO in the gui, Check port 24 on switch A.  Verify it is set to 802.1Q, allowed vlans should be 1,2 and native vlan should be 1.

    DO the same thing on Switch B for port G1.  They should be set identically.
    LVL 1

    Accepted Solution

    Just an update for all who answered.. After all the looking I ran show cdp neighbor command and found the port was different. After inspecting the cables, they were label wrong as to where they were going. Corrected that and the vlans worked. The switch was doing just as I asked I just had the wrong port!! Sometimes the sipmle things just bite you.

    LVL 1

    Author Closing Comment

    Show others how maybe a simple command is very powerfull to show what is connected where. Don't always trust what's labeled.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    As dyndns has reduced the capabilities of the free service, I looked around for other free providers of Dynamic DNS service. After testing several I decided to move my DNS hosting to Hurricane Electric as then domains that require dynamic hostnam…
    Managing 24/7 IT Operations is a hands-on job and indeed a difficult one. Over the years I have found some simple tips and techniques to increase the efficiency of the overall operations. The core concept has always been on continuous improvement; a…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now