01-05-2015 03:27 AM - edited 03-07-2019 10:05 PM
Hello,
I have a question about VLAN tagging on a Cisco switch.
I've learned that switches tag frames with VLAN IDs once the frame enters a Trunk port (not when it enters a VLAN port).
Now, if two computers from the same VALN and on the SAME switch talk to each other then logically there should not be any VLAN assignment on the frames (as if they were connected to a hub).
Is that correct please?
TIA
Solved! Go to Solution.
01-05-2015 03:38 AM
01-05-2015 04:47 AM
In generall you're correct.
VLAN tags are used only on trunk ports. That's the idea. Simple access VLAN ports, do not and should not tag Ethernet frames.
Regarding your suggestion - it's not exactly "as a hub", it's still a switch, that means the switch will keep a MAC table for each separate VLAN. Looking at it locally - it's like you divide the switch on Layer 2 on small "switches". And the switching is done within each VLAN locally.
01-05-2015 03:38 AM
Correct, there will be no tag in that case.
Jon
01-05-2015 04:47 AM
In generall you're correct.
VLAN tags are used only on trunk ports. That's the idea. Simple access VLAN ports, do not and should not tag Ethernet frames.
Regarding your suggestion - it's not exactly "as a hub", it's still a switch, that means the switch will keep a MAC table for each separate VLAN. Looking at it locally - it's like you divide the switch on Layer 2 on small "switches". And the switching is done within each VLAN locally.
01-05-2015 05:25 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
Just to muddy the waters, since VLAN edge/access ports don't normally tag frames with VLAN IDs, referencing your question about two computers "talking" to each other, it doesn't matter whether the two ports or on the same switch or even different switches; or in the same VLAN or not.
Also understand trunk ports normally tag frames, and edge/access ports don't, but an exception for the former is the "native" VLAN frames aren't tagged, and an exception for the latter, a Voice VLAN will tag frames.
01-05-2015 05:56 AM
Joseph,
That's a good point. I forgot about the voice VLANs, they are again in essence... trunk ports. Though specialized one.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide