VLAN Commands 457
User Guidelines
• You can use this command to change the egress rule (e.g. from tagged to untagged), without first
removing the VLAN from the list.
Example
The following example shows how to add VLANs 2, 5, and 6 to the allowed list.
switchport general pvid
The switchport general pvid Interface Configuration mode command configures the PVID when the
interface is in general mode. Use the no form of this command to configure the default value.
Syntax
•
switchport general pvid
vlan-id
• no switchport general pvid
•
vlan-id
— PVID (Port VLAN ID). The vlan-id may belong to a non-existent VLAN.
Default Configuration
VLAN ID=1
Command Mode
Interface Configuration (Ethernet, port-channel) mode.
User Guidelines
• This command has the following consequences: incoming untagged frames are assigned to this VLAN
and outgoing traffic in this VLAN on this port is sent untagged (despite the normal situation where
traffic sent from a trunk-mode port is all tagged).
Example
The following example shows how to configure the PVID for g8, when the interface is in general mode.
Console (config)# interface ethernet g8
Console (config-if)# switchport general allowed vlan add 2,5,6
tagged
Console (config)# interface ethernet g8
Console (config-if)# switchport general pvid 234
5400_CLI.book Page 457 Wednesday, December 17, 2008 4:33 PM