Smartport Commands
853 OL-32830-01 Command Line Interface Reference Guide
44
Syntax
smartport switchport trunk allowed vlan {add [
vlan-list |
all] | remove [
vlan-list | all
]}
Parameters
• add
vlan-list
—Specifies a list of VLAN IDs to add to interface. Separate
nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen to
designate a range of IDs.
• add all—Add all VLANs to interface.
• remove
vlan-list
—Specifies a list of VLAN IDs to remove. Separate
nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen to
designate a range of IDs.
• remove all—Remove all VLANs from interface.
Default Configuration
None
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
This command is an extension of the switchport access vlan (Non-ISCLI)
command. Unlike the switchport access vlan (Non-ISCLI) command, the
vlan-list
parameter of this command may include the voice VLAN (when it is the default
VLAN). If the default VLAN is the voice VLAN, the following occurs:
• add all —Adds the interface to the default VLAN as an egress tagged port.
• remove all
—Removes the interface from the default VLAN.
Example
To add port 1 to VLANs 1-5:
switchxxxxxx(config)#
interface
gi11
switchxxxxxx(config-if)#
smartport switchport trunk allowed vlan
add
1-5