cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
787
Views
0
Helpful
4
Replies

VLAN tagging and tagging question

yosefshai
Level 1
Level 1

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

 

 

2 Accepted Solutions

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

Correct, there will be no tag in that case.

Jon

View solution in original post

Boyan Sotirov
Level 1
Level 1

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.

View solution in original post

4 Replies 4

Jon Marshall
Hall of Fame
Hall of Fame

Correct, there will be no tag in that case.

Jon

Boyan Sotirov
Level 1
Level 1

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.

Joseph W. Doherty
Hall of Fame
Hall of Fame

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.

Joseph,

That's a good point. I forgot about the voice VLANs, they are again in essence... trunk ports. Though specialized one.