Example
The following example assigns the name "protected" to group 1.
console(config-if-1/g1)#switchport protected 1 name
protected
switchport trunk allowed vlan
Use the switchport trunk allowed vlan command in Interface Configuration
mode to add VLANs to or remove VLANs from a trunk port.
Syntax
switchport trunk allowed vlan {add
vlan-list — List of VLAN IDs to add. Separate non-consecutive VLAN
add
•
IDs with a comma and no spaces. Use a hyphen to designate a range of
IDs.
vlan-list — List of VLAN IDs to remove. Separate non-consecutive
•
remove
VLAN IDs with a comma and no spaces. Use a hyphen to designate a range
of IDs.
Default Configuration
This command has no default configuration.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
This command has no user guidelines.
Example
The following example shows how to add VLANs 1, 2, and 5 to 8 to the
allowed list.
console(config-if-1/g8)#switchport trunk allowed vlan
add 1,2,5-8
600
VLAN Commands
vlan-list
|remove
vlan-list
}