What happens when an untagged port receives tagged frames, whether they are dropped or not !?. Say, A computer is connected to a switch on untagged port (as most would recommend). On it I have used traffic generator like ostinato to simulate tagged traffic, lets assume tagged traffic contains both configured vlans(switchport access vlan 'x') along with other random ones. How would these be handled at switchport which is in mode "access"?
Imagine you have this configuration:
- Port 1 trunk tagged VLAN 10
- Port 2 access untagged VLAN 10
When the switch receives a frame on Port 1 tagged with VLAN 10 and determines that frame should be sent out Port 2, the VLAN tag is popped (removed) during the forwarding process. The device connected to Port 2 is never aware of the VLAN tag.
The reverse happens when Port 2 receives a frame (untagged) bound for a device on Port 1. The switch pushes (adds) the VLAN 10 tag onto the frame as it is forwarded to Port 1.