2-496
Catalyst 2950 and Catalyst 2955 Switch Command Reference
0L-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
switchport mode
switchport mode
Use the switchport mode interface configuration command to configure the VLAN membership mode
of a port. Use the no form of this command to return to the default setting.
switchport mode {access | dynamic {auto | desirable} | trunk}
no switchport mode
Syntax Description
Defaults The default mode is dynamic desirable.
Command Modes Interface configuration
Command History
Usage Guidelines Configuration by using the access or trunk keywords takes affect only when you configure the port in
the appropriate mode by using the switchport mode command. The static-access and trunk
configurations are saved, but only one configuration is active at a time.
If you enter access mode, the interface changes into permanent nontrunking mode and negotiates to
convert the link into a nontrunk link even if the neighboring interface does not agree to the change.
If you enter dynamic auto mode, the interface converts the link to a trunk link if the neighboring
interface is set to trunk or desirable mode.
If you enter dynamic desirable mode, the interface becomes a trunk interface if the neighboring
interface is set to trunk, desirable, or auto mode.
If you enter trunk mode, the interface changes into 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.
access Set 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 transmits and receives nonencapsulated (nontagged) frames. An access port can
be assigned to only one VLAN.
dynamic auto Set the interface trunking mode dynamic parameter to auto to specify that the
interface convert the link to a trunk link.
dynamic
desirable
Set the interface trunking mode dynamic parameter to desirable to specify that the
interface actively attempt to convert the link to a trunk link.
trunk Set the port to trunk unconditionally. The port is a trunking VLAN Layer 2 interface.
The port transmits 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.0(5.2)WC(1) This command was introduced.
12.1(6)EA2 The dynamic auto and dynamic desirable keywords were added.