EasyManua.ls Logo

Cisco WS-C3560E-24PD-E User Manual

Cisco WS-C3560E-24PD-E
914 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #658 background imageLoading...
Page #658 background image
2-626
Catalyst 3560 Switch Command Reference
78-16405-05
Chapter 2 Catalyst 3560 Switch 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 reset the mode to the appropriate default for the device.
switchport mode {access | dot1q-tunnel | dynamic {auto | desirable} | private-vlan | trunk}
no switchport mode {access | dot1q-tunnel | dynamic | trunk}
Syntax Description
Defaults The default mode is dynamic auto.
Command Modes Interface configuration
Command History
Usage Guidelines A configuration that uses the access, dot1q-tunnel, 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.
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 sends and receives nonencapsulated (non-tagged) frames.
An access port can be assigned to only one VLAN.
dot1q-tunnel Set the port as an IEEE 802.1Q tunnel port.
dynamic auto Set the interface trunking mode dynamic parameter to auto to specify that the
interface convert the link to a trunk link. This is the default switchport mode.
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.
private-vlan See the switchport mode private-vlan command.
trunk Set 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.1(19)EA1 This command was introduced.
12.2(20)SE The private-vlan keyword was added.
12.2(25)SE The dot1q-tunnel keyword was added.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Cisco WS-C3560E-24PD-E and is the answer not in the manual?

Cisco WS-C3560E-24PD-E Specifications

General IconGeneral
BrandCisco
ModelWS-C3560E-24PD-E
CategorySwitch
LanguageEnglish

Summary

Preface

Audience

Defines the target audience for the Cisco IOS CLI and switch software features.

Purpose

Describes the information about Layer 2 and Layer 3 commands for Catalyst 3560 switches.

Conventions

Explains text and symbol conventions used to convey instructions and information.

Related Publications

Lists related Cisco documents available from Cisco.com.

Obtaining Documentation

Explains how to access Cisco documentation and literature from Cisco.com and other sources.

Cisco Product Security Overview

Provides information on Cisco's Security Vulnerability Policy and how to report security problems.

Obtaining Technical Assistance

Provides information on how to obtain 24-hour technical assistance from Cisco.

CHAPTER 1 Using the Command-Line Interface

CLI Command Modes

Describes the CLI command mode structure and lists the main command modes for the switch.

Commands Changed in Cisco IOS 12.2(20)SE

Lists commands with the same function but different syntax in software releases before Cisco IOS Release 12.2(20)SE.

CHAPTER 2 Catalyst 3560 Switch Cisco IOS Commands

aaa accounting dot1x

Enables AAA accounting and creates method lists for IEEE 802.1x sessions.

auto qos voip

Configures QoS for voice over IP (VoIP) within a QoS domain.

boot system

Specifies the Cisco IOS image to load during the next boot cycle.

channel-group

Assigns an Ethernet port to an EtherChannel group, or enables an EtherChannel mode.

clear ip arp inspection log

Clears the dynamic ARP inspection log buffer.

dot1x

Globally enables IEEE 802.1x. Use the no form to return to the default setting.

ip address

Sets an IP address for the Layer 2 switch or an IP address for each switch virtual interface (SVI) or routed port.

mls qos

Enables quality of service (QoS) for the entire switch.

spanning-tree mode

Enables per-VLAN spanning-tree plus (PVST+), rapid PVST+, or multiple spanning tree (MST).

switchport mode

Configures the VLAN membership mode of a port.

vlan (global configuration)

Adds a VLAN and enters config-vlan mode. Use the no form to delete the VLAN.

vtp (global configuration)

Sets or modifies the VLAN Trunking Protocol (VTP) configuration characteristics.

APPENDIX A Catalyst 3560 Switch Boot Loader Commands

boot

Loads and boots an executable image and enters the command-line interface.

copy

Copies a file from a source to a destination.

delete

Deletes one or more files from the specified file system.

dir

Displays a list of files and directories on the specified file system.

set

Sets or displays environment variables to control the boot loader or other software.

APPENDIX B Catalyst 3560 Switch Debug Commands

debug auto qos

Enables debugging of the automatic quality of service (auto-QoS) feature.

debug cluster

Enables debugging of cluster-specific events.

debug dot1x

Enables debugging of the 802.1x feature.

debug ip dhcp snooping

Enables debugging of DHCP snooping.

debug platform ip multicast

Enables debugging of IP multicast routing.

debug spanning-tree

Enables debugging of spanning-tree activities.

debug sw-vlan

Enables debugging of VLAN manager activities.

APPENDIX C Catalyst 3560 Switch Show Platform Commands

show platform acl

Displays platform-dependent access control list (ACL) manager information.

show platform configuration

Displays platform-dependent configuration-manager related information.

show platform ip multicast

Displays platform-dependent IP multicast tables and other information.

show platform mac-address-table

Displays platform-dependent MAC address table information.

show platform pm

Displays platform-dependent port-manager information.

show platform port-asic

Displays platform-dependent port ASIC register information.

show platform qos

Displays global quality of service (QoS) information.

show platform spanning-tree

Displays spanning-tree state synchronization information.

Related product manuals