67
1267
User Guidelines
Use the switchport trunk allowed vlan command to specify which VLANs the port
belongs to when its mode is configured as trunk.
Non-existed VLANs can be configured. When a non-existed VLAN is created the
port will add to it automatically.
Forbidden VLANs can be configured.
Example
To add VLANs 2,3 and 100 to trunk ports 1 to 13
switchxxxxxx(config)#
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
67.13 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 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 {
no switchport trunk native vlan
Parameters
•
vlan-id
—Specifies the native VLAN ID.
•
none—Specifies the access port cannot belong to any VLAN.
Default Configuration
The default native VLAN is the Default VLAN.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
Virtual Local Area Network (VLAN) Commands
interface range gi11-3
switchport mode trunk
switchport trunk allowed vlan add 2-3,100
exit
vlan-id
| none}
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide