28-10
www.hp.com
HP PC Blade Switch CLI Reference Guide
VLAN Commands
switchport general allowed vlan
The
switchport general allowed vlan
Interface Configuration mode command adds or removes
VLANs from a general port.
Syntax
switchport general allowed vlan add vlan-list
[
tagged
|
untagged
]
switchport general allowed vlan remove
vlan-lis
t
Parameters
■
add
vlan-list
— Specifies the list of VLAN IDs to be added. Separate nonconsecutive VLAN
IDs with a comma and no spaces. A hyphen designates a range of IDs.
■
remove
vlan-list
— Specifies the list of VLAN IDs to be removed. Separate nonconsecutive
VLAN IDs with a comma and no spaces. A hyphen designates a range of IDs.
■
tagged
— Indicates that the port transmits tagged packets for the VLANs.
■
untagged
— Indicates that the port transmits untagged packets for the VLANs.
Default Setting
If the port is added to a VLAN without specifying tagged or untagged, the default setting is
tagged.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
Command Usage
This command enables changing the egress rule (e.g., from tagged to untagged) without first
removing the VLAN from the list.
Example
The following commands add VLANs 2, 5, and 6 to the allowed list of Ethernet port 1/e16 .
Console(config)#
interface ethernet
1/e16
Console(config-if)#
switchport general allowed vlan add
2,5-6
tagged
Summary of Contents for Bc1500 - BladeSystem - Blade PC
Page 44: ...2 24 www hp com HP PC Blade Switch CLI Reference Guide 802 1x Commands ...
Page 90: ...5 22 www hp com HP PC Blade Switch CLI Reference Guide Address Table Commands ...
Page 140: ...8 24 www hp com HP PC Blade Switch CLI Reference Guide Ethernet Configuration Commands ...
Page 150: ...9 10 www hp com HP PC Blade Switch CLI Reference Guide GVRP Commands ...
Page 160: ...10 10 www hp com HP PC Blade Switch CLI Reference Guide IGMP Snooping Commands ...
Page 176: ...11 16 www hp com HP PC Blade Switch CLI Reference Guide IP Addressing Commands ...
Page 192: ...13 10 www hp com HP PC Blade Switch CLI Reference Guide Line Commands ...
Page 200: ...14 8 www hp com HP PC Blade Switch CLI Reference Guide Management ACL Commands ...
Page 206: ...15 6 www hp com HP PC Blade Switch CLI Reference Guide PHY Diagnostics Commands ...
Page 214: ...17 4 www hp com HP PC Blade Switch CLI Reference Guide Port Monitor Commands ...
Page 270: ...20 18 www hp com HP PC Blade Switch CLI Reference Guide RMON Commands ...
Page 360: ...24 16 www hp com HP PC Blade Switch CLI Reference Guide Syslog Commands ...