Administrator Guide

Layer 2 Switching Commands 826
User Guidelines
This configuration only applies to ports configured in general mode. It is
possible to configure the general mode VLAN membership of a port while the
port is in access or trunk mode. Doing so does not change the VLAN
membership of the port until it is configured to be in general mode.
Example
The following example forbids adding VLAN numbers 234 through 256 to
port 1/0/8.
console(config)#interface gigabitethernet 1/0/8
console(config-if-Gi1/0/8)#switchport general forbidden vlan add 234-256
switchport general acceptable-frame-type
tagged-only
Use the switchport general acceptable-frame-type tagged-only command in
Interface Configuration mode to discard untagged frames at ingress. To
enable untagged frames at ingress, use the no form of this command.
Syntax
switchport general acceptable-frame-type tagged-only
no switchport general acceptable-frame-type tagged-only
Default Configuration
All frame types are accepted at ingress.
Command Mode
Interface Configuration (Ethernet and port channel) mode
User Guidelines
It is possible to configure the general mode acceptable frame types of a port
while the port is in access or trunk mode. Doing so does not change the
configuration of the port until it is configured to be in general mode.