Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 527-0883
Reference
Text Part Number: OL-9645-10
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS” WITH
ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR
LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF
DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING,
WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO
OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at
www.cisco.com/go/trademarks. Third party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership
relationship between Cisco and any other company. (1005R)
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the
document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
This guide is for the networking professional using the Cisco IOS command-line interface (CLI) to
manage the Catalyst
should have experience working with the Cisco IOS commands and the switch software features. Before
using this guide, you should have experience working with the concepts and terminology of Ethernet and
local area networking.
3750 Metro switch, hereafter referred to as the switch. Before using this guide, you
Purpose
The Catalyst 3750 Metro switch is supported by a set of enterprise-class features, including Layer 2+
features such as access control lists (ACLs) and quality of service (QoS) and Layer 3 features such as IP
unicast routing, IP multicast routing, and fallback bridging. It also includes features for the service
provider, including multiprotocol label switching (MPLS), Ethernet over MPLS (EoMPLS), hierarchical
QoS, and 802.1Q tunneling.
This guide provides the information you need about the commands that have been created or changed
for use with the Catalyst
commands, see the Cisco IOS documentation set available from the Cisco.com home page by selecting
Service and Support > Technical Documents. On the Cisco Product Documentation home page, select
Release 12.2 from the Cisco IOS Software drop-down list.
This guide does not provide procedures for configuring your switch. For detailed configuration
procedures, see the software configuration guide for this release.
This guide does not describe system messages that you might encounter. For more information, see the
system message guide for this release.
For documentation updates, see the release notes for this release.
Conventions
This publication uses these conventions to convey instructions and information:
Command descriptions use these conventions:
•Commands and keywords are in boldface text.
3750 Metro switches. For information about the standard Cisco IOS Release 12.2
OL-9645-10
•Arguments for which you supply values are in italic.
Catalyst 3750 Metro Switch Command Reference
xix
Preface
•Square brackets ([ ]) means optional elements.
•Braces ({ }) group required choices, and vertical bars ( | ) separate the alternative elements.
•Braces and vertical bars within square brackets ([{ | }]) mean a required choice within an optional
element.
Interactive examples use these conventions:
•Terminal sessions and system displays are in screen font.
•Information you enter is in boldface screen font.
•Nonprinting characters, such as passwords or tabs, are in angle brackets (< >).
Notes, cautions, and warnings use these conventions and symbols:
NoteMeans reader take note. Notes contain helpful suggestions or references to materials not contained in
this manual.
CautionMeans reader be careful. In this situation, you might do something that could result in equipment
damage or loss of data.
Filtering show Command Output
The show commands have optional output modifiers to filter the command output.
•| begin—Display begins with the line that matches the expression.
•| exclude—Display excludes with the line that matches the expression.
•| include—Display includes with the line that matches the expression.
•expression—Expression in the output to use as a reference point.
Expressions are case sensitive. If you enter | exclude output, the lines that contain output are not
displayed, but the lines that contain Output are displayed.
xx
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Preface
Related Publications
These documents provide complete information about the switch and are available from this Cisco.com
site:
Subscribe to the What’s New in Cisco Product Documentation as a Really Simple Syndication (RSS) feed
and set content to be delivered directly to your desktop using a reader application. The RSS feeds are a free
service and Cisco currently supports RSS version 2.0.
technical documentation, at:
New in Cisco Product Documentation, which also lists all new and
OL-9645-10
Catalyst 3750 Metro Switch Command Reference
xxi
Preface
xxii
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Using the Command-Line Interface
The Catalyst 3750 Metro switch is supported by Cisco IOS software. This chapter describes how to use
the switch command-line interface (CLI) to configure software features.
For a complete description of the commands that support these features, see Chapter 2, “Catalyst 3750
Metro Switch Cisco IOS Commands.” For information on the boot loader commands, see Appendix A,
“Catalyst 3750 Metro Switch Boot Loader Commands.” For information on the debug commands, see
Appendix B, “Catalyst 3750 Metro Switch Debug Commands.” For information on the show platform
commands, see Appendix C, “Catalyst 3750 Metro Switch Show Platform Commands.” For more
information on Cisco IOS Release 12.2, see the Cisco IOS Release 12.2 Command Summary.
For task-oriented configuration steps, see the software configuration guide for this release.
CLI Command Modes
This section describes the CLI command mode structure. Command modes support specific Cisco IOS
commands. For example, the interface interface-id command only works when entered in global
configuration mode.
These are the main command modes for the switch:
•User EXEC
CHAP T E R
1
OL-9645-10
•Privileged EXEC
•Global configuration
•Interface configuration
•VLAN configuration
•Line configuration
Table 1-1 lists the main command modes, how to access each mode, the prompt you see in that mode,
and how to exit that mode. The prompts listed use the default name Switch.
Catalyst 3750 Metro Switch Command Reference
1-1
Chapter 1 Using the Command-Line Interface
CLI Command Modes
Ta b l e 1-1Command Modes Summary
Command ModeAccess MethodPrompt Exit or Access Next Mode
User EXECThis is the first level of access.
(For the switch) Change terminal
settings, perform basic tasks, and
list system information.
Privileged EXECFrom user EXEC mode, enter the
enable command.
Global
configuration
Interface
configuration
From privileged EXEC mode,
enter the configure command.
From global configuration mode,
specify an interface by entering
the interface command followed
by an interface identification.
VLAN
configuration
In global configuration mode,
enter the vlan vlan-id command.
Switch>
Switch#
Switch(config)#
Switch(config-if)#
Switch(config-vlan)#
Enter the logout command.
To enter privileged EXEC mode, enter
the enable command.
To exit to user EXEC mode, enter the
disable command.
To enter global configuration mode,
enter the configure command.
To exit to privileged EXEC mode,
enter the exit or end command, or
press Ctrl-Z.
To enter interface configuration mode,
enter the interface configuration
command.
To exit to privileged EXEC mode,
enter the end command, or press
Ctrl-Z.
To exit to global configuration mode,
enter the exit command.
To exit to global configuration mode,
enter the exit command.
Line configurationFrom global configuration mode,
specify a line by entering the line
command.
User EXEC Mode
After you access the device, you are automatically in user EXEC command mode. The EXEC commands
available at the user level are a subset of those available at the privileged level. In general, use the user
EXEC commands to temporarily change terminal settings, perform basic tests, and list system
information.
The supported commands can vary depending on the version of software in use. To view a
comprehensive list of commands, enter a question mark (?) at the prompt.
Switch> ?
Switch(config-line)#
To return to privileged EXEC mode,
enter the end command, or press
Ctrl-Z.
To exit to global configuration mode,
enter the exit command.
To return to privileged EXEC mode,
enter the end command, or press
Ctrl-Z.
1-2
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Chapter 1 Using the Command-Line Interface
Privileged EXEC Mode
Because many of the privileged commands configure operating parameters, privileged access should be
password-protected to prevent unauthorized use. The privileged command set includes those commands
contained in user EXEC mode, as well as the configure privileged EXEC command through which you
access the remaining command modes.
If your system administrator has set a password, you are prompted to enter it before being granted access
to privileged EXEC mode. The password does not appear on the screen and is case sensitive.
The privileged EXEC mode prompt is the device name followed by the pound sign (#).
Switch#
Enter the enable command to access privileged EXEC mode:
Switch> enable
Switch#
The supported commands can vary depending on the version of software in use. To view a
comprehensive list of commands, enter a question mark (?) at the prompt.
Switch# ?
CLI Command Modes
To return to user EXEC mode, enter the disable privileged EXEC command.
Global Configuration Mode
Global configuration commands apply to features that affect the device as a whole. Use the configure
privileged EXEC command to enter global configuration mode. The default is to enter commands from
the management console.
When you enter the configure command, a message prompts you for the source of the configuration
commands:
Switch# configure
Configuring from terminal, memory, or network [terminal]?
You can specify either the terminal or NVRAM as the source of configuration commands.
This example shows you how to access global configuration mode:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
The supported commands can vary depending on the version of software in use. To view a
comprehensive list of commands, enter a question mark (?) at the prompt.
Switch(config)# ?
To exit global configuration command mode and to return to privileged EXEC mode, enter the end or
exit command, or press Ctrl-Z.
OL-9645-10
Catalyst 3750 Metro Switch Command Reference
1-3
CLI Command Modes
Interface Configuration Mode
Interface configuration commands modify the operation of the interface. Interface configuration
commands always follow a global configuration command, which defines the interface type.
Use the interface interface-id command to access interface configuration mode. The new prompt means
interface configuration mode.
Switch(config-if)#
The supported commands can vary depending on the version of software in use. To view a
comprehensive list of commands, enter a question mark (?) at the prompt.
Switch(config-if)# ?
To exit interface configuration mode and to return to global configuration mode, enter the exit command.
To exit interface configuration mode and to return to privileged EXEC mode, enter the end command,
or press Ctrl-Z.
VLAN Configuration Mode
Chapter 1 Using the Command-Line Interface
Use this mode to configure normal-range VLANs (VLAN IDs 1 to 1005) or, when VTP mode is
transparent, to configure extended-range VLANs (VLAN IDs 1006 to 4094). When VTP mode is
transparent, the VLAN and VTP configuration is saved in the running configuration file, and you can
save it to the switch startup configuration file by using the copy running-config startup-config
privileged EXEC command. The configurations of VLAN IDs 1 to 1005 are saved in the VLAN database
if VTP is in transparent or server mode. The extended-range VLAN configurations are not saved in the
VLAN database.
Enter the vlan vlan-id global configuration command to access config-vlan mode:
Switch(config)# vlan 2000
Switch(config-vlan)#
The supported keywords can vary but are similar to the commands available in VLAN configuration
mode. To view a comprehensive list of commands, enter a question mark (?) at the prompt.
Switch(config-vlan)# ?
For extended-range VLANs, all characteristics except the maximum transmission unit (MTU) size must
remain at the default setting.
To return to global configuration mode, enter exit; to return to privileged EXEC mode, enter end. All
the commands except shutdown take effect when you exit config-vlan mode.
Line Configuration Mode
1-4
Line configuration commands modify the operation of a terminal line. Line configuration commands
always follow a line command, which defines a line number. Use these commands to change terminal
parameter settings line-by-line or for a range of lines.
Use the line vty line_number [ending_line_number] command to enter line configuration mode. The
new prompt means line configuration mode. The following example shows how to enter line
configuration mode for virtual terminal line
Switch(config)# line vty 0 7
Catalyst 3750 Metro Switch Command Reference
7:
OL-9645-10
Chapter 1 Using the Command-Line Interface
The supported commands can vary depending on the version of software in use. To view a
comprehensive list of commands, enter a question mark (?) at the prompt.
Switch(config-line)# ?
To exit line configuration mode and to return to global configuration mode, use the exit command. To
exit line configuration mode and to return to privileged EXEC mode, enter the end command, or press
Ctrl-Z.
Commands Changed in Cisco IOS 12.2(25)EY
Table 1-2 lists describes the commands that have the same function but different syntax than they did in
software releases before Cisco IOS Release 12.2(25)EY.
Ta b l e 1-2Commands Changed
Commands Changed in Cisco IOS 12.2(25)EY
Releases earlier than
Cisco IOS
Release 12.2(25)EY
debug autoqosdebug auto qosEnables debugging of the auto-QoS1 feature.
xconnect {destination
vc-id}
1. auto-QoS = automatic quality of service
Cisco IOS
Release 12.2(25)EY or
later
xconnect {destination
vc-id encapsulation
mpls}
Description
Routes a Layer 2 packets over a specified
point-to-point virtual connection.
OL-9645-10
Catalyst 3750 Metro Switch Command Reference
1-5
Commands Changed in Cisco IOS 12.2(25)EY
Chapter 1 Using the Command-Line Interface
1-6
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
CHAP T E R
2
Catalyst 3750 Metro Switch Cisco IOS Commands
aaa accounting dot1x
Use the aaa accounting dot1x global configuration command to enable authentication, authorization,
and accounting (AAA) accounting and to create method lists defining specific accounting methods on a
per-line or per-interface basis for 802.1x sessions. Use the no form of this command to disable 802.1x
accounting.
Syntax DescriptionnameName of a server group. This is optional when you enter it after the
broadcast group and group keywords.
defaultUse the accounting methods that follow as the default list for accounting
services.
start-stopSend a start accounting notice at the beginning of a process and a stop
accounting notice at the end of a process. The start accounting record is sent
in the background. The requested-user process begins regardless of whether
or not the start accounting notice was received by the accounting server.
broadcastEnable accounting records to be sent to multiple AAA servers and send
accounting records to the first server in each group. If the first server is
unavailable, the switch uses the list of backup servers to identify the first
server.
groupSpecify the server group to be used for accounting services. These are valid
server group names:
OL-9645-10
•name—Name of a server group.
•radius—List of all RADIUS hosts.
•tacacs+—List of all TACACS+ hosts.
The group keyword is optional when you enter it after the broadcast group
and group keywords. You can enter more than optional group keyword.
radius(Optional) Enable RADIUS authorization.
tacacs+(Optional) Enable TACACS+ accounting.
Catalyst 3750 Metro Switch Command Reference
2-1
aaa accounting dot1x
DefaultsAAA accounting is disabled.
Command ModesGlobal configuration
Chapter 2 Catalyst 3750 Metro Switch Cisco IOS Commands
Command History
ReleaseModification
12.2(25)EYThis command was introduced.
Usage GuidelinesThis command requires access to a RADIUS server.
NoteWe recommend that you enter the dot1x reauthentication interface configuration command before
configuring 802.1x RADIUS accounting on an interface.
ExamplesThis example shows how to configure 802.1x accounting:
Switch(config)# aaa accounting dot1x default start-stop group radius
Switch(config)#
NoteThe RADIUS authentication server must be properly configured to accept and log update or watchdog
packets from the AAA client.
Related Commands
CommandDescription
aaa accounting dot1xSpecifies one or more AAA methods for use on interfaces running 802.1x.
dot1x reauthenticationEnables or disables periodic reauthentication.
dot1x test
Sets the number of seconds between re-authentication attempts.
eapol-capable
reauth-period
2-2
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Loading...
+ 955 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.