vlan trunk native tag

Syntax

vlan trunk native <VLAN-ID> tag 

no vlan trunk native <VLAN-ID> tag

Description

Enables tagging on a native VLAN. Only incoming packets that are tagged with the matching VLAN ID are accepted. Incoming packets that are untagged are dropped except for BPDUs. Egress packets are tagged.

The no form of this command removes tagging on a native VLAN.

Command context

config-if

Parameters

<VLAN-ID>

Specifies the number of a VLAN. Range: 1 to 4094.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Enabling tagging on native VLAN 20 on trunk interface 1/1/2:
switch(config)# interface 1/1/2
switch(config-if)# vlan trunk native 20
switch(config-if)# vlan trunk native 20 tag
Removing tagging on native VLAN 20 assigned to trunk interface 1/1/2:
switch(config)# interface 1/1/2
switch(config-if)# no vlan trunk native 20 tag
Enabling tagging on native VLAN 20 assigned to LAG trunk interface 2:
switch(config)# interface lag 2
switch(config-lag-if)# vlan trunk native 20
switch(config-lag-if)# vlan trunk native 20 tag