Virtual Local Area Network (VLAN) Commands
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide 1268
67
User Guidelines
A value of the interface PVID is set to this VLAN ID.When the interface belongs to
the Native VLAN it is set as VLAN untagged egress interface.
The configuration is applied only when the port mode is trunk.
Examples
The following example defines VLAN 2 as native VLAN for port
gi1
1
:
switchxxxxxx(config)#
interface
gi1
1
switchxxxxxx(config-if)#
switchport trunk native vlan
2
switchxxxxxx(config-if)# exit
67.14 switchport general allowed vlan
General ports can receive tagged or untagged packets. Use the switchport
general allowed vlan Interface Configuration mode command to add/remove
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]
switchport general allowed vlan
remove
vlan-list
no switchport general allowed vlan
Parameters
• add
vlan-list
—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.
(range: 1–4094)
• remove
vlan-list
—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.
• tagged—Specify that packets are transmitted tagged for the configured
VLANs
• untagged—Specify that packets are transmitted untagged for the
configured VLANs (this is the default)