Command Line Interface Reference Guide HP BladeSystem PC Blade Switch
28-8 www.hp.com HP PC Blade Switch CLI Reference Guide
VLAN Commands
switchport trunk allowed vlan
The switchport trunk allowed vlan Interface Configuration mode command adds or removes
VLANs to or from a trunk port.
Syntax
switchport trunk allowed vlan {add vlan-list | remove vlan-list}
Parameters
n add vlan-list — List of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a
comma and no spaces. A hyphen designates a range of IDs.
n remove vlan-list — List of VLAN IDs to be removed. Separate nonconsecutive VLAN IDs
with a comma and no spaces. A hyphen designates a range of IDs.
Default Setting
This command has no default configuration.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
Command Usage
.
When MSTP-to-RSTP is enabled (enabled by default) attempting to put any switch port into
trunk or general mode will cause the following error message: Port <Number>, extension
separated-bridge exist. This feature must be disabled before the switch can support these
modes. Please see spanning-tree mst mstp-rstp for more information.
Example
The following
command
adds VLANs 1, 2, 5 to 6 to the allowed list of Ethernet port e42.
Console(config)# interface ethernet e42
Console(config-if)# switchport trunk allowed vlan add 1-2,5-6










