Command:

switchport mode

Mode:

Switch(config-if)#


Syntax:

switchport mode {access | trunk}

no switchport mode {access | trunk}


Syntax Description:

 

access Set the port to access mode (static-access). The port operates as a nontrunking, single VLAN interface that transmits and receives nonencapsulated frames. An access port can be assigned to only one VLAN.
trunk Set the port to 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.

 

Command Description:

Use the switchport mode interface configuration command to configure the VLAN membership mode of a port. Use the no form of this command to reset the mode to the appropriate default for the device.

Configuration by using the access or trunk keywords takes affect only when the port is changed to the corresponding mode by using the switchport mode command. The static-access and trunk configurations are saved, but only one configuration is active at a time.

The no switchport mode form resets the mode to static access.


Examples:

The following example shows how to configure a port for access mode:

Switch(config-if)#switchport mode access

The following example shows how to configure a port for trunk mode:

Switch(config-if)#switchport mode trunk


Misconceptions:

 

None


Related commands:

 

None

 


� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)