Cisco Catalyst 3560-X Command Reference Manual page 912

Hide thumbs Also See for Catalyst 3560-X:
Table of Contents

Advertisement

switchport mode
Examples
Related Commands
Catalyst 3750-X and 3560-X Switch Command Reference
2-880
Downloaded from
www.Manualslib.com
This example shows how to configure a port for access mode:
Switch(config)# interface gigabitethernet2/0/1
Switch(config-if)# switchport mode access
This example shows how set the port to dynamic desirable mode:
Switch(config)# interface gigabitethernet2/0/1
Switch(config-if)# switchport mode dynamic desirable
This example shows how to configure a port for trunk mode:
Switch(config)# interface gigabitethernet2/0/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 gigabitethernet2/0/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.
Command
show interfaces
switchport
switchport access
switchport trunk
manuals search engine
Chapter 2 Catalyst 3750-X and 3560-X Cisco IOS Commands
Description
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.
OL-21522-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750-x

Table of Contents