Example
The following example configures 1/0/8 to discard untagged frames at ingress.
console(config)#interface gigabitethernet 1/0/8
console(config-if-1/0/8)#switchport general
acceptable-frame-type tagged-only
switchport general allowed vlan
Use the switchport general allowed vlan command in Interface
Configuration mode to add VLANs to or remove VLANs from a general port.
Syntax
switchport general allowed vlan add
switchport general allowed vlan remove
vlan-list — List of VLAN IDs to add. Separate nonconsecutive VLAN
•
add
IDs with a comma and no spaces. Use a hyphen to designate a range of
IDs.
vlan-list — List of VLAN IDs to remove. Separate nonconsecutive
•
remove
VLAN IDs with a comma and no spaces. Use a hyphen to designate a range
of IDs.
tagged — Sets the port to transmit tagged packets for the VLANs. If the
•
port is added to a VLAN without specifying tagged or untagged, the
default is untagged.
•
untagged — Sets the port to transmit untagged packets for the VLANs.
Default Configuration
Untagged.
Command Mode
Interface Configuration (gigabitethernet, port-channel, tengigabitethernet)
mode
830
VLAN Commands
vlan-list
[tagged | untagged]
vlan-list
Need help?
Do you have a question about the Networking 7048 and is the answer not in the manual?
Questions and answers