All traffic entering and leaving is untagged. Switch handles VLAN assignment internally.
8. Double Tagging (Q-in-Q) Overview
Q-in-Q (802.1ad) stacks two VLAN tags in one frame (provider tag + customer tag).
Use Case: Enterprises with multiple internal VLANs can traverse a providerβs MPLS network using Q-in-Q encapsulation.
9. Impact on Switch Processing
Switches use the VLAN tag to pick the correct forwarding table.
VLAN tags isolate traffic at Layer 2, preventing inter-VLAN traffic without a Layer 3 device.
10. MTU Considerations
Standard Ethernet frame: 1518 bytes. 802.1Q tag adds 4 bytes (tagged frame = 1522 bytes).
Switches may need "baby giant" or jumbo frame support. MTU issues can cause dropped packets if not configured correctly.
11. Interoperability with Other VLAN Tagging Protocols
Protocol
Type
Vendor
802.1Q
Open Standard
All vendors
ISL
Cisco Proprietary
Cisco only (obsolete)
802.1Q is recommended and supported by all modern devices. ISL is now obsolete.
12. Security Considerations
VLAN Hopping Attack: An attacker tries to inject frames with double tags to jump into other VLANs.
Mitigation:
Set unused ports to access mode and assign to unused VLAN.
Change the native VLAN to an isolated, unused VLAN.
Disable DTP on all user-facing ports (switchport nonegotiate).
13. Troubleshooting VLAN Tagging Issues
Useful Commands:
show interfaces trunk
show vlan
show interface [interface] switchport
Common Problems:
Native VLAN mismatch: Causes security and connectivity issues.
Dropped packets: May result from MTU or allowed VLAN problems.
End device can't communicate: Usually due to untagged/tagged frame misalignment.
π Example Scenario
Switch1 and Switch2 are trunked, allowing VLANs 10 and 20, native VLAN 99.
Host A in VLAN 10 (on Switch1) sends a frame to Host B in VLAN 10 (on Switch2):
β Frame is tagged with VLAN 10 across the trunk.
β Switch2 uses the tag to forward only to VLAN 10 ports.
If an untagged frame arrives, it's assigned to VLAN 99.
π Summary Table
Aspect
802.1Q Tagging Behavior
Tagging Location
After source MAC, before EtherType
VLAN ID
12 bits (4094 VLANs)
Native VLAN
Frames sent untagged for native VLAN
Trunk Port
Carries multiple tagged VLANs, one native
Access Port
Sends/receives only untagged frames
MTU Impact
Frame increases by 4 bytes
Security
Native VLAN config, avoid VLAN hopping
When to Use 802.1Q Tagging
Required for all trunk links between switches, routers (router-on-a-stick), and virtual hosts.
Enables secure, logical traffic segmentation over shared links.