VLAN Tagging is a method of controlling the distribution of information on the network. The ports on devices supporting VLAN Tagging are configured with the Port VLAN ID and Tagging Mode parameters.
The Port VLAN ID is the number of the VLAN to which the port is assigned.
Note:
You need to create a VLAN with the set vlan command before you can assign it to a port. You can also create a VLAN by using the interface vlan command, followed by the number of the VLAN (in other words., enter interface vlan 2 to create VLAN 2).
Untagged frames and frames tagged with VLAN 0 entering the port are assigned the port’s VLAN ID. Tagged frames are unaffected by the port’s VLAN ID.
The Tagging Mode determines the behavior of the port that processes outgoing frames:
If Tagging Mode is set to clear, the port transmits frames that belong to the port’s VLAN table. These frames leave the device untagged.
If Tagging Mode is set to IEEE-802.1Q, all frames keep their tags when they leave the device. Frames that enter the switch without a VLAN tag are tagged with the VLAN ID of the port through which they entered.