Switchport Trunk Allowed Vlan - Cisco Sx350 Cli Manual

Hide thumbs Also See for Sx350:
Table of Contents

Advertisement

Virtual Local Area Network (VLAN) Commands
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
switchxxxxxx(config)#
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#

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
}
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.
vlan-list
add
—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
nonconsecutive VLAN IDs with a comma and no spaces. Use a hyphen to
designate a range of IDs.
except
vlan-list
except VLANs belonging to
Default Configuration
By default, trunk ports belongs to all created VLANs.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
interface gi12
switchport mode access
switchport access vlan
—List of VLAN IDs to remove from a port. Separate
—List of VLAN IDs including all VLANs from range 1-4094
vlan-list
.
2
vlan-list
vlan-list
| remove
67
| except
1266

Advertisement

Table of Contents
loading

Table of Contents