Administrator Guide

Layer 2 Switching Commands 829
console(config)#interface gigabitethernet 1/0/8
console(config-if-Gi1/0/8)#switchport general ingress-filtering enable
switchport general pvid
Use the switchport general pvid command in Interface Configuration mode
to configure the Port VLAN ID (PVID) when the interface is in general mode.
Use the switchport mode general command to set the VLAN membership
mode of a port to “general.” To configure the default value, use the no form
of this command.
Syntax
switchport general pvid vlan-id
no switchport general pvid
vlan-id — PVID. The VLAN ID may belong to a non-existent VLAN.
Default Configuration
The default value for the vlan-id parameter is 1 when the VLAN is enabled.
Otherwise, the value is 4093.
Command Mode
Interface Configuration (gigabitethernet, port-channel, tengigabitethernet,
fortygigabitethernet) mode
User Guidelines
Setting a new PVID does NOT remove the previously configured PVID VLAN
from the port membership.
Example
The following example shows how to configure the PVID for 1/0/8, when the
interface is in general mode.
console(config)#interface gigabitethernet 1/0/8
console(config-if-Gi1/0/8)#switchport general pvid 234