To enable dot1q (IEEE 802.1Q) tagging for all native VLANs on all trunked ports on the switch, use the vlan dot1Q tag native command. To disable dot1q (IEEE 802.1Q) tagging for all native VLANs on all trunked ports on the switch, use the no form of this command.
vlan dot1Q tag native
no vlan dot1Q tag native
This command has no arguments or keywords.
Disabled
Global configuration mode
Release |
Modification |
---|---|
4.0(0)N1(1a) |
This command was introduced. |
Typically, you configure 802.1Q trunks with a native VLAN ID, which strips tagging from all packets on that VLAN.
To maintain the tagging on the native VLAN and drop untagged traffic, use the vlan dot1q tag native command. The switch will tag the traffic received on the native VLAN and admit only 802.1Q-tagged frames, dropping any untagged traffic, including untagged traffic in the native VLAN.
Control traffic continues to be accepted as untagged on the native VLAN on a trunked port, even when the vlan dot1q tag native command is enabled.
Note The vlan dot1q tag native command is enabled on global basis
This example shows how to enable 802.1Q tagging on the switch:
switch(config)# vlan dot1q tag native
switch(config)#
This example shows how to disable 802.1Q tagging on the switch:
switch(config)# no vlan dot1q tag native
Turning off vlan dot1q tag native may impact the functioning of existing dot1q tunnel ports
switch(config)#
Command |
Description |
---|---|
show vlan dot1q tag native |
Displays the status of tagging on the native VLAN. |