Configuring a native VLAN on a trunk port

Do the following to set native VLAN characteristics on a trunk port for classifying the untagged traffic data packets.

Before you begin

Ensure that reserved VLANs are not used.

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
    device(config)# 
  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 native-vlan command to set native VLAN characteristics to access and specify a VLAN.
    device(conf-if-eth-0/1)# switchport trunk native-vlan 300
    

Example

This example removes the configured native VLAN on the Ethernet interface.

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