Enabling VLAN tagging for native traffic

Do the following to enable tagging for native traffic on a specific interface.

Before you begin

Ensure that reserved VLANs are not used.

The following table describes the acceptable frame types, as well as system behavior, for tagged native VLAN, untagged native VLAN, and no native VLAN.

Table 1. Acceptable frame types and system behavior for native VLANs
Tagged native VLAN Untagged native VLAN No native VLAN
Configuration switchport trunk tag native-vlan (Default) and Globally: vlan dot1q tag native no switchport trunk tag native-vlan or Global config: no vlan dot1q tag native switchport mode trunk-no-default-native
Acceptable frame type VLAN-tagged only All (tagged and untagged) VLAN-tagged only
Receive untagged Drop Forward/flood in native VLAN Drop
Receive tagged on native VLAN Forward/flood in native VLAN Forward/flood in native VLAN Drop
Transmit on native VLAN Tagged with native VLAN Untagged packet Will not forward on native VLAN

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal 
  2. Enter the interface ethernet command to configure the interface mode.
    device(config)# interface ethernet 0/1
    
  3. Enter the switchport command to set the interface as switchport.
    device(conf-if-eth-0/1)# switchport
    
  4. Enter the switchport trunk tag native-vlan command to enable tagging for native traffic data VLAN characteristics on a specific interface.
    device(conf-if-eth-0/1)# switchport trunk tag native-vlan 
    

Example

This example enables tagging for native traffic data on a specific Ethernet interface.

device# configure terminal
device(config)# interface ethernet 0/1
device(conf-if-eth-0/1)# switchport trunk tag native-vlan 

Example

This example disables the native VLAN tagging on a port-channel.

device# configure terminal
device(config)# interface port-channel 35
device(config-Port-channel-35)# no switchport trunk tag native