
Virtual Local Area Network (VLAN) Commands
78-20269-01 Command Line Interface Reference Guide
415
30
Command Mode
Interface Configuration (Ethernet, port-channel) mode
Example
To add VLANs 2,3 and 100 to trunk ports 1 to 13:
console(config)#
interface range
gi1-13
console(config-if)#
switchport
mode
trunk
console(config-if)#
switchport
trunk
allowed
vlan
add
2-3,100
console(config-if)#
30.14 switchport trunk native vlan
If an untagged packet arrives on a trunk port, it is directed to the port’s native
VLAN. Use the switchport trunk native vlan Interface Configuration (Ethernet,
port-channel) mode command to define the native VLAN for a trunk interface. Use
the no form of this command to restore the default native VLAN.
Syntax
switchport trunk native vlan
vlan-id
no switchport trunk native vlan
Parameters
•
vlan-id—Specifies 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 the VLAN.