Introduction to 802.1Q, Native VLAN, and Allowed VLANs

1. What is 802.1Q?

IEEE 802.1Q is the standard for VLAN tagging in Ethernet networks. It allows multiple VLANs to exist on a single physical network by inserting a VLAN tag in the Ethernet frame header. This tagging enables switches to distinguish between VLANs and forward traffic accordingly.

Key Features of 802.1Q:


2. What is a Native VLAN?

A Native VLAN is the VLAN that carries untagged traffic on a trunk port. Any frame received without a VLAN tag is assumed to belong to the Native VLAN of that trunk.

By default, VLAN 1 is the Native VLAN on most switches, but best practice is to change it to another VLAN for security reasons.

Example Configuration (Changing the Native VLAN):

bashCopyEditinterface GigabitEthernet0/1
  switchport mode trunk
  switchport trunk native vlan 99
  exit

πŸ‘‰ This sets VLAN 99 as the Native VLAN for trunk port GigabitEthernet0/1.


3. What is an Allowed VLAN?

An Allowed VLAN is a VLAN that is explicitly permitted on a trunk link. By default, all VLANs are allowed on a trunk, but administrators can restrict the VLANs allowed on a specific trunk port to enhance security and reduce unnecessary traffic.

Example Configuration (Restricting Allowed VLANs on a Trunk Port):

bashCopyEditinterface GigabitEthernet0/2
  switchport mode trunk
  switchport trunk allowed vlan 10,20,30
  exit

πŸ‘‰ This command allows only VLANs 10, 20, and 30 on trunk port GigabitEthernet0/2.


Summary of Key Concepts

ConceptDescription
802.1QStandard for VLAN tagging on Ethernet frames.
Native VLANThe VLAN for untagged traffic on a trunk port (default is VLAN 1).
Allowed VLANsVLANs that are explicitly permitted on a trunk link.
renjithbs Avatar

Posted by

Leave a comment