Cisco WS-C3560E-24PD-E Command Reference Manual page 660

Catalyst 3560 series switch
Table of Contents

Advertisement

switchport mode
Examples
This example shows how to configure a port for access mode:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# switchport mode access
This example shows how set the port to dynamic desirable mode:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# switchport mode dynamic desirable
This example shows how to configure a port for trunk mode:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# switchport mode trunk
This example shows how to configure a port as an IEEE 802.1Q tunnel port:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# switchport mode dot1q-tunnel
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.
Related Commands
Command
show interfaces
switchport access
switchport trunk
Catalyst 3560 Switch Command Reference
2-628
Description
switchport
Displays the administrative and operational status of a switching
(nonrouting) port, including port blocking and port protection
settings.
Configures a port as a static-access or dynamic-access port.
Configures the trunk characteristics when an interface is in trunking
mode.
Chapter 2 Catalyst 3560 Switch Cisco IOS Commands
78-16405-05

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents