![Cisco Small Business 300 1.1 Series Administration Manual Download Page 416](http://html.mh-extra.com/html/cisco/small-business-300-1-1-series/small-business-300-1-1-series_administration-manual_2609294416.webp)
Virtual Local Area Network (VLAN) Commands
78-20269-01 Command Line Interface Reference Guide
417
30
VLANs to/from a general port and configure whether packets on the egress are
tagged or untagged. Use the no form of this command to reset to the default.
Syntax
switchport general allowed vlan {[add
vlan-list
[
tagged
|
untagged
]] | [
remove
vlan-list
]}
Parameters
•
add
vlan-list
— Specifies the list of VLAN IDs to add. Separate
nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen to
designate a range of IDs.
•
tagged — Specifies that the port transmits tagged packets for the VLANs.
This is the default value
•
untagged — Specifies that the port transmits untagged packets for the
VLANs.
•
remove
vlan-list
— Specifies the list of VLAN IDs to remove. Separate
nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen to
designate a range of IDs.
Default Configuration
The port is not member in any VLAN.
Packets are transmitted untagged.
Command Mode
Interface Configuration (Ethernet, Port-channel) mode
User Guidelines
You can change the egress rule (for example, from tagged to untagged) without
first removing the VLAN from the list.
Example
Sets port 1 to general mode and adds VLAN 2 and 3 to it. Packets are tagged on
the egress.
console(config)#
interface
gi1
console(config-if)#
switchport
mode
general