switchport mode trunk-no-default-native

Configures a port to trunk mode without the native vlan.

Syntax

switchport mode trunk-no-default-native

Modes

Interface configuration mode

Usage Guidelines

By assigning this mode, you can configure an untagged logical interface on the specified port. The device discards any ingress tagged or untagged packet until a switchport classification or native VLAN classification is configured.

To disable this functionality, issue the no switchport command, or enter a different switchport mode by using the switchport mode access command or the switchport mode trunk command.

Before you change the switch port mode from switchport mode access with an explicit switchport access vlan to switchport mode trunk-no-default-native, you must enter the no switchport command on the interface level, and then enter the switchport command to set the interface as a switchport. Now you can configure the switchport mode trunk-no-default-native command.

Port mode change is not allowed when port security is enabled on the interface.

This is the fundamental difference between this command and the switch mode trunk command, which implicitly creates VLAN 1 on the port.

The global command dot1q tag native-vlan does not affect the ingress or egress tagging behavior of the native VLAN configured in this mode.

The following native VLAN commands that are supported in regular trunk mode are NOT supported in this mode:

Examples

The following example configures a trunk port without a default native VLAN, then explicitly configures the native VLAN.

device# configure terminal
device(config)# interface ethernet 0/1
device(config-if-eth-0/1)# switchport mode trunk-no-default-native
device(config-if-eth-0/1)# switchport trunk tagged