VLAN Commands
switchport trunk native vlan
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
521
41
Example
The following example adds VLANs 2, 3, and 100 to trunk ports 1 to 13:
switchxxxxxx(config)#
interface range gi1-13
switchxxxxxx(config-if)#
switchport mode trunk
switchxxxxxx(config-if)#
switchport trunk allowed vlan add 2-3,100
switchport trunk native vlan
If an untagged packet arrives on a trunk port, it is directed to the port’s native
VLAN. To define the native VLAN for a trunk port, use the switchport trunk native
vlan Interface Configuration mode command.
To revert to its default setting, use the no form of this command.
Syntax
switchport trunk native vlan
vlan-id
no switchport trunk native vlan
Parameters
•
vlan-id
—The native VLAN ID.
Default Configuration
The default VLAN is the native VLAN.
Command Mode
Interface Configuration (Ethernet, port channel) mode
User Guidelines
The command adds the port as a member of the VLAN. If the port is already a
member of the VLAN (not a native), it must first be removed from that VLAN.
Example
The following example defines VLAN 2 as the native VLAN for gi11.
switchxxxxxx(config)#
interface gi11