Virtual Local Area Network (VLAN) Commands
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide 1266
67
switchxxxxxx(config)#
interface
gi1
2
switchxxxxxx(config-if)#
switchport mode access
switchxxxxxx(config-if)#
switchport access vlan
2
67.12 switchport trunk allowed vlan
A trunk interface is an untagged member of a single VLAN, and, in addition, it may
be an tagged member of one or more VLANs. Use the switchport trunk allowed
vlan Interface Configuration mode command to add/remove VLAN(s) to/from a
trunk port. Use the no form of the command to return to the default.
Syntax
switchport trunk allowed vlan {all | none | add
vlan-list
| remove
vlan-list
| except
vlan-list
}
no switchport trunk allowed vlan
Parameters
• all—Specifies all VLANs from 1 to 4094. At any time, the port belongs to all
VLANs existing at the time. (range: 1–4094).
• none—Specifies an empty VLAN list The port does not belong to any
VLAN.
• add
vlan-list
—List of VLAN IDs to add to the port. Separate nonconsecutive
VLAN IDs with a comma and no spaces. Use a hyphen to designate a range
of IDs.
• remove
vlan-list
—List of VLAN IDs to remove from a port. Separate
nonconsecutive VLAN IDs with a comma and no spaces. Use a hyphen to
designate a range of IDs.
• except
vlan-list
—List of VLAN IDs including all VLANs from range 1-4094
except VLANs belonging to
vlan-list
.
Default Configuration
By default, trunk ports belongs to all created VLANs.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode