32
Virtual Local Area Network (VLAN) Commands
message will only be displayed once.") and the command continues to execute if
there are more VLANs in the VLAN list. See the example in
switchport access
vlan.
Example
Sets port 1 to general mode and adds VLAN 2 and 3 to it. Packets are tagged on
the egress.
switchxxxxxx(config)# interface 151
switchxxxxxx(config-if)# switchport mode general
switchxxxxxx(config-if)# switchport general allowed vlan add 2-3 tagged
32.16 switchport general pvid
The port VLAN ID (PVID) is the VLAN to which incoming untagged and
priority-tagged frames are classified on a general port. Use the switchport
general pvid Interface Configuration (Ethernet, Port-channel) 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.
Syntax
vlan-id
switchport general pvid
no switchport general pvid
Parameters
vlan-id
pvid
—Specifies the Port VLAN ID (PVID).
Default Configuration
The default VLAN is the PVID.
Command Mode
Interface Configuration (Ethernet, Port-channel) mode
504
78-21075-01 Command Line Interface Reference Guide