Virtual Local Area Network (VLAN) Commands
OL-32830-01 Command Line Interface Reference Guide
•
tagged—Specifies that the port transmits tagged packets for the VLANs.
This is the default value.
•
untagged—Specifies that the port transmits untagged packets for the
VLANs.
•
vlan-list
remove
nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen to
designate a range of IDs.
Default Configuration
The port is not member in any VLAN.
Packets are transmitted untagged.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
You can change the egress rule (for example, from tagged to untagged) without
first removing the VLAN from the list.
If the interface is a forbidden member of an added VLAN, the interface does not
become a member of this specific VLAN. There will be an error message in this
case ("An interface cannot become a a member of a forbidden VLAN. This
message will only be displayed once.") and the command continues to execute if
there are more VLANs in the vlan-list.
Example
The example adds gi 1 1 to VLAN 2 and 3. Packets are tagged on the egress:
switchxxxxxx(config)#
switchxxxxxx(config-if)#
56.17 switchport general pvid
Use the switchport general pvid Interface Configuration mode command to
configure the Port VLAN ID (PVID) of an interface when it is in general mode. Use
the no form of this command to restore the default configuration.
—Specifies the list of VLAN IDs to remove. Separate
interface gi11
switchport general allowed vlan add 2-3 tagged
56
1066