CLI Guide
Layer 2 Switching Commands 888
User Guidelines
Ingress filtering, when enabled, discards received frames that are not tagged
with a VLAN for which the port is a member. If ingress filtering is disabled,
tagged frames from all VLANs are processed by the switch.
Example
The following example shows how to enables port ingress filtering on Gigabit
Ethernet interface 1/0/8.
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 Ethernet and port-channel mode
User Guidelines
Setting a new PVID does NOT remove the previously configured PVID VLAN
from the port membership.