-71
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter
switchport trunk
switchport trunk
To set the trunk characteristics when the interface is in trunking mode, use the switchport trunk
command in interface configuration mode. To reset a trunking characteristic to the default, use the no
form of this command.
switchport trunk {allowed vlan vlan-list | native vlan vlan-id}
no switchport trunk {allowed vlan | native vlan}
Note This command is not available on interfaces with service instances configured.
Syntax Description
The vlan-list format is all | none | [add | remove | except] vlan-atom [,vlan-atom...] where:
• all specifies all VLANs from 1 to 4094. This keyword is not allowed on commands that do not
permit all VLANs in the list to be set at the same time.
• none means an empty list. This keyword is not allowed on commands that require certain VLANs
to be set or at least one VLAN to be set.
• add adds the defined list of VLANs to those currently set instead of replacing the list. Valid IDs are
from 1 to 4094. You can add extended-range VLANs (VLAN IDs greater than 1005) to the allowed
VLAN list.
Separate nonconsecutive VLAN IDs with a comma; use a hyphen to designate a range of IDs.
• remove removes the defined list of VLANs from those currently set instead of replacing the list.
Valid IDs are from 1 to 4094; extended-range VLAN IDs are valid.
Separate nonconsecutive VLAN IDs with a comma; use a hyphen to designate a range of IDs.
• except lists the VLANs that should be calculated by inverting the defined list of VLANs. (VLANs
are added except the ones specified.) Valid IDs are from 1 to 1005. Separate nonconsecutive VLAN
IDs with a comma; use a hyphen to designate a range of IDs.
• vlan-atom is either a single VLAN number from 1 to 4094 or a continuous range of VLANs
described by two VLAN numbers, the lesser one first, separated by a hyphen.
Defaults VLAN 1 is the default native VLAN ID on the port.
The default for all VLAN lists is to include all VLANs.
Command Modes Interface configuration
allowed vlan vlan-list Sets the list of allowed VLANs that can receive and send traffic on this
interface in tagged format when in trunking mode. See the following vlan-list
format. The none keyword is not valid. The default is all.
native vlan vlan-id Sets the native VLAN for sending and receiving untagged traffic when the
interface is in 802.1Q trunking mode. The range is 1 to 4094.