-69
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter
switchport mode
switchport mode
To configure the VLAN membership mode of a port, use the switchport mode command in interface
configuration mode. To reset the mode to the default, use the no form of this command.
switchport mode {access | trunk}
no switchport mode
Note This command is not available on interfaces with service instances configured.
Syntax Description
Defaults The default mode is access.
Command Modes Interface configuration
Command History
Usage Guidelines A configuration that uses the access or trunk keywords takes effect only when you configure the port in
the appropriate mode by using the switchport mode command. The static-access and trunk
configuration are saved, but only one configuration is active at a time.
When you enter access mode, the interface changes to permanent nontrunking mode and negotiates to
convert the link into a nontrunk link even if the neighboring interface does not agree to the change.
When you enter trunk mode, the interface changes to permanent trunking mode and negotiates to
convert the link into a trunk link even if the interface connecting to it does not agree to the change. If
you do not intend to trunk across those links, use the switchport mode access interface configuration
command to disable trunking.
Access ports and trunk ports are mutually exclusive.
You can verify your settings by entering the show interfaces interface-id switchport privileged EXEC
command and examining information in the Administrative Mode and Operational Mode rows.
access Sets the port to access mode (either static-access or dynamic-access depending
on the setting of the switchport access vlan interface configuration command).
The port is set to access unconditionally and operates as a nontrunking, single
VLAN interface that sends and receives unencapsulated (nontagged) frames.
An access port can be assigned to only one VLAN.
trunk Sets the port to trunk unconditionally. The port is a trunking VLAN Layer 2
interface. The port sends and receives encapsulated (tagged) frames that
identify the VLAN of origination. A trunk is a point-to-point link between two
switches or between a switch and a router.
Release Modification
12.2(52)EY This command was introduced.