Switchport Trunk Native Vlan - Cisco 300 Series Cli Manual

Stackable managed switches
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

Virtual Local Area Network (VLAN) Commands
OL-32830-01 Command Line Interface Reference Guide
vlan-list
remove
Separate nonconsecutive VLAN IDs with a comma and no spaces; use a
hyphen to designate a range of IDs.
Default Configuration
By default, trunk ports belongs to the default VLAN.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
If the interface is a forbidden member of an added VLAN, the interface does not
become a member of this specific VLAN. The system displays an error message
about this issue ("An interface cannot become a a member of a forbidden VLAN.
This message will only be displayed once."), and the command continues to
execute in case there are more VLANs in the vlan-list.
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)#

56.15 switchport trunk 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.
—Specifies a list of VLAN IDs to remove from a port.
interface range gi11-3
switchport mode trunk
switchport trunk allowed vlan add 2-3,100
exit
vlan-id
56
1064

Advertisement

Table of Contents
loading

Table of Contents