switchport trunk allowed vlan

Description

Set allowed VLAN characteristics when interface is in trunk mode

Syntax

switchport trunk allowed vlan {all | none | [add | remove | except] vlan_list}

Parameters

Name Description
all All VLANs
none No VLANs
add Add VLANs to the current list
remove Remove VLANs from the current list
except All VLANs except the following
vlan_list VLAN IDs of the allowed VLANs when this port is in trunk mode