Catalyst4500 Series SwitchCiscoIOS
Command Reference
Release 12.2(18)EW
Corporate Headquarters
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 526-4100
Customer Order Number: DOC-7816201=
Text Part Number: 78-16201-01
Page 2
THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL
STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT
WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS.
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT
SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE
OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
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 ORIMPLIED, INCLUDING, WITHOUT
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.
Catalyst4500 Series SwitchCiscoIOS Command Reference
Audiencexv
Organizationxv
Related Documentationxv
Conventionsxvi
Obtaining Documentationxvii
Documentation Feedbackxviii
Obtaining Technical Assistancexviii
Obtaining Additional Publications and Informationxix
CONTENTS
C H A P T E R
C H A P T E R
1Command-Line Interface1-1
Getting Help1-1
How to Find Command Options1-2
Understanding Command Modes1-4
Using the No and Default Forms of Commands1-6
Using the CLI String Search1-6
Saving Configuration Changes1-11
Show Platform Commands1-11
2Cisco IOS Commands for the Catalyst 4500 Series Switches2-1
#macro keywords2-2
aaa accounting dot1x d efault start-stop group radius2-3
aaa accounting system default start-stop group radius2-4
access-group mode2-5
action2-6
apply2-7
arp access-list2-8
attach module2-9
auto qos voip2-10
auto-sync2-13
channel-group2-14
channel-protocol2-16
78-16201-01
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
iii
Page 4
Contents
class-map2-18
clear counters2-20
clear hw-module slot password2-22
clear interface gigabitethernet2-23
clear interface vlan2-24
clear ip access-template2-25
clear ip arp inspection log2-26
clear ip arp inspection statistics2-27
clear ip dhcp snooping database2-28
clear ip dhcp snooping database statistics2-29
clear ip igmp group2-30
clear ip igmp snooping membership2-32
clear ip mfib counters2-33
clear ip mfib fastdrop2-34
clear lacp counters2-35
clear mac-address-table dynamic2-36
clear pagp2-37
clear port-security2-38
clear qos2-39
clear vlan counters2-40
clear vmps statistics2-41
debug adjacency2-42
debug backup2-43
debug condition interface2-44
debug condition standby2-45
debug condition vlan2-47
debug dot1x2-48
debug etherchnl2-49
debug interface2-51
debug ipc2-52
debug ip dhcp snooping event2-53
debug ip dhcp snooping packet2-54
debug ip verify source packet2-55
debug lacp2-56
debug monitor2-57
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
v
Page 6
Contents
hw-module power2-103
instance2-104
interface port-channel2-107
interface range2-108
interface vlan2-110
ip arp inspection filter vlan2-111
ip arp inspection limit (interface)2-113
ip arp inspection log-buffer2-115
ip arp inspection trust2-117
ip arp inspection validate2-118
ip arp inspection vlan2-120
ip arp inspection vlan logging2-121
ip cef load-sharing algorithm2-123
ip dhcp snooping2-124
ip dhcp snooping binding2-125
ip dhcp snooping database2-126
ip dhcp snooping information option2-128
ip dhcp snooping limit rate2-129
ip dhcp snooping trust2-130
ip dhcp snooping vlan2-131
ip igmp filter2-133
ip igmp max-groups2-134
ip igmp profile2-135
ip igmp query-interval2-136
ip igmp snooping2-137
ip igmp snooping report-suppression2-139
ip igmp snooping vlan2-141
ip igmp snooping vlan explicit-tracking2-142
ip igmp snooping vlan immediate-leave2-143
ip igmp snooping vlan mrouter2-144
ip igmp snooping vlan static2-146
ip local-proxy-arp2-147
ip mfib fastdrop2-148
ip route-cache flow2-149
ip source binding2-151
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
vi
78-16201-01
Page 7
ip sticky-arp2-152
ip verify header vlan all2-154
ip verify source vlan dhcp-snooping2-155
l2protocol-tunnel2-157
l2protocol-tunnel cos2-158
l2protocol-tunnel drop-threshold2-159
l2protocol-tunnel shutdown-threshold2-160
lacp port-priority2-161
lacp system-priority2-162
mac access-list extended2-163
mac-address-table aging-time2-166
mac-address-table dynamic group protocols2-167
mac-address-table static2-170
Contents
macro apply cisco-desktop2-172
macro apply cisco-phone2-174
macro apply cisco-router2-176
macro apply cisco-switch2-178
main-cpu2-180
match2-181
monitor session2-182
mtu2-186
name2-187
pagp learn-method2-188
pagp port-priority2-189
permit2-190
policy-map2-192
port-channel load-balance2-194
power dc input2-196
power inline2-197
power inline consumption2-199
power redundancy-mode2-200
power supplies required2-202
private-vlan2-203
private-vlan mapping2-205
private-vlan synchronize2-207
78-16201-01
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
vii
Page 8
Contents
qos (global configuration mode)2-208
qos (interface configuration mode)2-209
qos account layer2 encapsulation2-210
qos aggregate-policer2-212
qos cos2-215
qos dbl2-216
qos dscp2-218
qos map cos2-219
qos map dscp2-220
qos map dscp policed2-222
qos rewrite ip dscp2-223
qos trust2-224
qos vlan-based2-226
redundancy2-227
redundancy force-switchover2-228
redundancy reload2-229
remote login module2-230
remote-span2-231
renew ip dhcp snooping database2-232
reset2-233
revision2-234
service-policy2-235
session module2-236
shape2-237
show access-group mode interface2-239
show arp access-list2-240
show auto qos2-241
show bootflash:2-243
show bootvar2-245
show class-map2-246
show diagnostic result module2-247
show diagnostic result module test 22-251
show diagnostic result module test 32-253
show dot1x2-255
show environment2-258
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
viii
78-16201-01
Page 9
show errdisable detect2-261
show errdisable recovery2-262
show etherchannel2-263
show flowcontrol2-267
show idprom2-269
show interfaces2-274
show interfaces capabilities2-276
show interfaces counters2-279
show interfaces description2-281
show interfaces link2-282
show interfaces mtu2-283
show interfaces private-vlan mapping2-284
show interfaces status2-285
Contents
show interfaces switchport2-286
show interfaces transceiver2-288
show interfaces trunk2-293
show ip arp inspection2-295
show ip arp inspection log2-298
show ip cef vlan2-299
show ip dhcp snooping2-300
show ip dhcp snooping binding2-301
show ip dhcp snooping database2-304
show ip igmp interface2-306
show ip igmp profile2-307
show ip igmp snooping2-308
show ip igmp snooping membership2-312
show ip igmp snooping mrouter2-314
show ip igmp snooping vlan2-315
show ip mfib2-316
show ip mfib fastdrop2-318
show ip mroute2-319
show ip source binding2-324
show ip verify source2-325
show ipc2-327
show l2protocol-tunnel2-329
78-16201-01
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
ix
Page 10
Contents
show lacp2-332
show mac access-group interface2-335
show mac-address-table address2-336
show mac-address-table aging-time2-338
show mac-address-table count2-339
show mac-address-table dynamic2-340
show mac-address-table interface2-342
show mac-address-table multicast2-344
show mac-address-table protocol2-346
show mac-address-table static2-348
show mac-address-table vlan2-350
show module2-352
show monitor2-354
show pagp2-356
show policy-map2-358
show policy-map interface2-359
show port-security2-361
show power2-363
show qos2-367
show qos aggregate policer2-368
show qos dbl2-369
show qos interface2-370
show qos maps2-371
show redundancy2-373
show running-config2-376
show slavebootflash:2-378
show slaveslot0:2-380
show slot0:2-382
show spanning-tree2-384
show spanning-tree mst2-389
show storm-control2-391
show system mtu2-393
show tech-support2-394
show udld2-396
show vlan2-397
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
x
78-16201-01
Page 11
show vlan access-map2-400
show vlan counters2-401
show vlan dot1q tag native2-402
show vlan internal usage2-403
show vlan mtu2-404
show vlan private-vlan2-405
show vlan remote-span2-407
show vmps2-408
show vtp2-409
snmp ifindex clear2-413
snmp ifindex persist2-414
snmp-server enable traps2-415
snmp-server ifindex persist2-417
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
xiii
Page 14
Contents
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
xiv
78-16201-01
Page 15
Audience
Preface
This preface describes the audience, organization, and conventions of this publication, and provides
information on how to obtain related documentation.
This publication is for experienced network administrators who are responsible for configuring and
maintaining Catalyst4500 series switches.
Organization
This publication is organized as follows:
ChapterTitleDescription
Chapter 1Command-Line Interface Describes the Catalyst4500 series switch
Chapter 2Cisco IOS Commands for
the Catalyst 4500 Series
Switches
Appendix AAcronymsDefines the acronyms used in this
Appendix BAcknowledgments for
Open-Source Software
Related Documentation
The Catalyst4500 series Cisco IOS documentation set includes these publications:
• Catalyst4500 Series Switch InstallationGuide
• Catalyst 4500 Series Switch Supervisor Engine III Installation Note
CLI.
Lists all Catalyst4500 series CiscoIOS
commands alphabetically and provides
detailed information on each command.
publication.
Provides the acknowledgments for
Open-Source Software.
• Catalyst 4500 Series Switch Supervisor Engine IV Installation Note
• Catalyst4500 Series Switch Cisco IOS Software Configuration Guide
78-16201-01
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
xv
Page 16
Conventions
Conventions
• Catalyst4500 Series Switch Cisco IOS System Message Guide
• Release Notes for Catalyst 4500 Series Switch Software Release 12.1(13)EW
Other documents in the Cisco IOS documentation set include:
boldface fontBoldface text indicates commands and keywords that you
enter literally as shown.
italic fontItalic text indicates arguments for which you supply values.
[x]Square brackets enclose an optional element (keyword or
argument).
|A vertical line indicates a choice within an optional or
required set of keywords or arguments.
[x | y]Square brackets enclosing keywords or arguments separated
by a vertical line indicate an optional choice.
{x | y}Braces enclosing keywords or arguments separated by a
vertical line indicate a required choice.
[x {y | z }]Braces and a vertical line within square brackets indicate a
required choice within an optional element.
stringA nonquoted set of characters. Do not use quotation marks
around the string or the string will include the quotation
marks.
screen fontTerminal sessions and information the system displays are in
screen font.
boldface screen
font
italic screen fontArguments for which you supply values are in italic screen
^The symbol ^ represents the key labeled Control—for
<>Nonprinting characters, such as passwords, are in angle
Information you must enter is in boldface screen font.
font.
example, the key combination ^D in a screen display means
hold down the Control key while you press the D key.
brackets.
Preface
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
xvi
78-16201-01
Page 17
Preface
Obtaining Documentation
ConventionDescription
[]Default responses to system prompts are in square brackets.
!, #An exclamation point (!) or a pound sign (#) at the beginning
of a line of code indicates a comment line.
Notes use this convention:
NoteMeans reader take note. Notes contain helpful suggestions or references to material not covered in the
publication.
Cautions use this convention:
Caution Means reader be careful. In this situation, you might do something that could result in equipment
damage or loss of data.
Obtaining Documentation
Cisco documentation and additional literature are available on Cisco.com. Cisco also provides several
ways to obtain technical assistance and other technical resources. These sections explain how to obtain
technical information from Cisco Systems.
Cisco.com
You can access the most current Cisco documentation on the World Wide Web at this URL:
http://www.cisco.com/univercd/home/home.htm
You can access the Cisco website at this URL:
http://www.cisco.com
International Cisco websites can be accessed from this URL:
• Nonregistered Cisco.com users can order documentation through a local account representative by
calling Cisco Systems Corporate Headquarters (California, USA) at 408526-7208 or, elsewhere in
North America, by calling 800553-NETS (6387).
78-16201-01
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
xvii
Page 18
Documentation Feedback
Documentation Feedback
You can submit e-mail comments about technical documentation to bug-doc@cisco.com.
You can submit comments by using the response card (if present) behind the front cover of your
document or by writing to the following address:
Cisco Systems
Attn: Customer Document Ordering
170 West Tasman Drive
San Jose, CA 95134-9883
We appreciate your comments.
Obtaining Technical Assistance
For all customers, partners, resellers, and distributors who hold valid Cisco service contracts, the Cisco
Technical Assistance Center (TAC) provides 24-hour-a-day, award-winning technical support services,
online and over the phone. Cisco.com features the Cisco TAC website as an online starting point for
technical assistance. If you do not hold a valid Cisco service contract, please contact your reseller.
Preface
Cisco TAC Website
The Cisco TAC website provides online documents and tools for troubleshooting and resolving technical
issues with Cisco products and technologies. The Cisco TAC website is available 24 hours a day, 365
days a year. The Cisco TAC website is located at this URL:
http://www.cisco.com/tac
Accessing all the tools on the Cisco TAC website requires a Cisco.com user ID and password. If you
have a valid service contract but do not have a login ID or password, register at this URL:
http://tools.cisco.com/RPF/register/register.do
Opening a TAC Case
Using the online TAC Case Open Tool is the fastest way to open P3 and P4 cases. (P3 and P4 cases are
those in which your network is minimally impaired or for which you require product information.) After
you describe your situation, the TAC Case Open Tool automatically recommends resources for an
immediate solution. If your issue is not resolved using the recommended resources, your case will be
assigned to a Cisco TAC engineer. The online TAC Case Open Tool is located at this URL:
http://www.cisco.com/tac/caseopen
For P1 or P2 cases (P1 and P2 cases are those in which your production network is down or severely
degraded) or if you do not have Internet access, contact Cisco TAC by telephone. Cisco TAC engineers
are assigned immediately to P1 and P2 cases to help keep your business operations running smoothly.
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
xviii
78-16201-01
Page 19
Preface
To open a case by telephone, use one of the following numbers:
Asia-Pacific: +61 2 8446 7411 (Australia: 1 800 805 227)
EMEA: +32 2 704 55 55
USA: 1 800 553-2447
For a complete listing of Cisco TAC contacts, go to this URL:
To ensure that all cases are reported in a standard format, Cisco has established case priority definitions.
Priority 1 (P1)—Your network is “down” or there is a critical impact to your business operations. You
and Cisco will commit all necessary resources around the clock to resolve the situation.
Priority 2 (P2)—Operation of an existing network is severely degraded, or significant aspects of your
business operation are negatively affected by inadequate performance of Cisco products. You and Cisco
will commit full-time resources during normal business hours to resolve the situation.
Priority 3 (P3)—Operational performance of your network is impaired, but most business operations
remain functional. You and Cisco will commit resources during normal business hours to restore service
to satisfactory levels.
Obtaining Additional Publications and Information
Priority 4 (P4)—You require information or assistance with Cisco product capabilities, installation, or
configuration. There is little or no effect on your business operations.
Obtaining Additional Publications and Information
Information about Cisco products, technologies, and network solutions is available from various online
and printed sources.
• Cisco Marketplace provides a variety of Cisco books, reference guides, and logo merchandise. Go
to this URL to visit the company store:
http://www.cisco.com/go/marketplace/
• The Cisco Product Catalog describes the networking products offered by CiscoSystems, as well as
ordering and customer support services. Access the Cisco Product Catalog at this URL:
http://cisco.com/univercd/cc/td/doc/pcat/
• Cisco Press publishes a wide range of general networking, training and certification titles. Both new
and experienced users will benefit from these publications. For current Cisco Press titles and other
information, go to Cisco Press online at this URL:
http://www.ciscopress.com
• Packet magazine is the Cisco quarterly publication that provides the latest networking trends,
technology breakthroughs, and Cisco products and solutions to help industry professionals get the
most from their networking investment. Included are networking deployment and troubleshooting
tips, configuration examples, customer case studies, tutorials and training, certification information,
and links to numerous in-depth online resources. You can access Packet magazine at this URL:
http://www.cisco.com/packet
78-16201-01
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
xix
Page 20
Obtaining Additional Publications and Information
• iQ Magazine is the Cisco bimonthly publication that delivers the latest information about Internet
business strategies for executives. You can access iQ Magazine at this URL:
http://www.cisco.com/go/iqmagazine
• Internet Protocol Journal is a quarterly journal published by Cisco Systems for engineering
professionals involved in designing, developing, and operating public and private internets and
intranets. You can access the Internet Protocol Journal at this URL:
http://www.cisco.com/ipj
• Training—Cisco offers world-class networking training. Current offerings in network training are
listed at this URL:
http://www.cisco.com/en/US/learning/index.html
Preface
Catalyst4500 Series Switch Cisco IOS Command Reference—Release 12.2(18)EW
xx
78-16201-01
Page 21
C H A P T E R
1
Command-Line Interface
This chapter provides information for understanding and using the CiscoIOS command-line interface
(CLI) on the Catalyst4500 series switch. This chapter includes the following sections:
• Getting Help, page 1-1
• How to Find Command Options, page 1-2
• Understanding Command Modes, page 1-4
• Using the No and Default Forms of Commands, page 1-6
• Using the CLI String Search, page 1-6
• Saving Configuration Changes, page 1-11
For an overview of the Catalyst4500 series switch Cisco IOS configuration, refer to the Catalyst4500
Series Switch CiscoIOS Software Configuration Guide .
Getting Help
To display a list of commands that you can use within a command mode, enter a question mark (?) at the
system prompt. You also can display keywords and arguments for each command with this
context-sensitive help feature.
Table1-1 lists commands you can enter to get help that is specific to a command mode, a command, a
keyword, or an argument.
Table1-1Getting Help
CommandPurpose
abbreviated-command-entry?Displays a list of commands that begin with a
particular character string. (Do not leave a space
between the command and question mark.)
abbreviated-command-entry<Tab>Completes a partial command name.
? Lists all commands for the command mode.
command? Lists all keywords for the command. Leave a space
between the command and the question mark.
commandkeyword ?Lists all arguments for the keyword. Leave a space
between the keyword and the question mark.
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-1
Page 22
How to Find Command Options
How to Find Command Options
This section provides an example of how to display syntax for a command. The syntax can consist of
optional or required keywords. To display keywords for a command, enter a question mark (?) at the
command prompt or after entering part of a command followed by a space. The Catalyst4500 series
switch software displays a list of available keywords along with a brief description of the keywords. For
example, if you are in global configuration mode and want to see all the keywords for the arap
command, you enter arap ?.
Table1-2 shows examples of how you can use the question mark (?) to assist you in entering commands
and also guides you through entering the following commands:
• interface gigabitethernet 1/1
• channel-group 1 mode auto
Table1-2How to Find Command Options
CommandPurpose
Switch> enable
Password: <password>
Switch#
Enter the enable command and
password to access privileged EXEC
commands.
Chapter1 Command-Line Interface
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
You are in privileged EXEC mode
when the prompt changes to Switch# .
Enter global configuration mode.
You are in global configuration mode
when the prompt changes to
Switch(config)#.
Enter interface configuration mode by
specifying the Gigabit Ethernet
interface that you want to configure
using the interface gigabitethernet
global configuration command.
Enter a ? to display what you must
enter next on the command line. In
this example, you must enter an
interface number from 1to 9 in the
format module-number /port-number.
You are in interface configuration
mode when the prompt changes to
Switch(config-if)#.
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-2
78-16201-01
Page 23
Chapter1 Command-Line Interface
Table1-2How to Find Command Options (continued)
CommandPurpose
Switch(config-if)# ?
Interface configuration commands:
access-expression Build a bridge boolean access expression
apollo Apollo interface subcommands
appletalk Appletalk interface subcommands
arp Set arp type (arpa, probe, snap) or timeout
backup Modify backup parameters
bandwidth Set bandwidth informational parameter
bgp-policy Apply policy propogated by bgp community string
bridge-group Transparent bridging interface parameters
carrier-delay Specify delay for interface transitions
cdp CDP interface subcommands
channel-group Etherchannel/port bundling configuration
clns CLNS interface subcommands
cmns OSI CMNS
custom-queue-list Assign a custom queue list to an interface
decnet Interface DECnet config commands
default Set a command to its defaults
delay Specify interface throughput delay
description Interface specific description
dlsw DLSw interface subcommands
dspu Down Stream PU
exit Exit from interface configuration mode
fair-queue Enable Fair Queuing on an Interface
flowcontrol Configure flow operation.
fras DLC Switch Interface Command
help Description of the interactive help system
hold-queue Set hold queue depth
ip Interface Internet Protocol config commands
ipx Novell/IPX interface subcommands
isis IS-IS commands
iso-igrp ISO-IGRP interface subcommands
Enter a ? to display a list of all the
interface configuration commands
available for the Gigabit Ethernet
interface.
Enter the command that you want to
configure for the controller. In this
example, the channel-group
command is used.
Enter a ? to display what you must
enter next on the command line. In
this example, you must enter the
group keyword.
Because a <cr> is not displayed, it
indicates that you must enter more
information to complete the
command.
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-3
Page 24
Understanding Command Modes
Table1-2How to Find Command Options (continued)
CommandPurpose
Switch(config-if)# channel-group ?
<1-256> Channel group number
Switch(config-if)#channel-group
Switch(config-if)# channel-group 1 ?
mode Etherchannel Mode of the interface
Switch(config-if)#
Switch(config-if)# channel-group 1 mode ?
auto Enable PAgP only if a PAgP device is detected
desirable Enable PAgP unconditionally
on Enable Etherchannel only
Switch(config-if)#
Switch(config-if)# channel-group 1 mode auto ?
<cr>
Switch(config-if)#
Switch(config-if)# channel-group 1 mode auto
Switch(config-if)#
After you enter the group keyword,
enter a ? to display what you must
enter next on the command line. In
this example, you must enter a channel
group number from 1to 256.
Because a <cr> is not displayed, it
indicates that you must enter more
information to complete the
command.
After you enter the channel group
number, enter a ? to display what you
must enter next on the command line.
In this example, you must enter the
mode keyword.
Because a <cr> is not displayed, it
indicates that you must enter more
information to complete the
command.
After you enter the mode keyword,
enter a ? to display what you must
enter next on the command line. In
this example, you must enter the auto, desirable, or on keyword.
Because a <cr> is not displayed, it
indicates that you must enter more
information to complete the
command.
In this example, the auto keyword is
entered. After you enter the auto
keyword, enter a ? to display what you
must enter next on the command line.
Because a <cr> is displayed, it
indicates that you can press Return to
complete the command. If additional
keywords are listed, you can enter
more keywords or press Return to
complete the command.
In this example, press Return to
complete the command.
Chapter1 Command-Line Interface
Understanding Command Modes
The CiscoIOS user interface on the Catalyst4500 series switch has many different modes. The
commands that are available to you depend on which mode you are currently in. You can obtain a list of
commands available for each command mode by entering a question mark (?) at the system prompt.
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-4
78-16201-01
Page 25
Chapter1 Command-Line Interface
When you start a session on the Catalyst4500 series switch, you begin in user mode, often called EXEC
mode. Only a limited subset of the commands are available in EXEC mode. In order to have access to
all commands, you must enter privileged EXEC mode. Normally, you must enter a password to enter
privileged EXEC mode. From privileged EXEC mode, you can enter any EXEC command or enter global
configuration mode. Most EXEC commands are one-time commands, such as show commands, which
show the current status of a given item, and clear commands, which clear counters or interfaces. The
EXEC commands are not saved across reboots of the Catalyst4500 series switch.
The configuration modes provide a way for you to make changes to the running configuration. When you
save changes to the configuration, the changes remain intact when the Catalyst 4500 series switch
reboots. From global configuration mode, you can enter interface configuration mode, subinterface
configuration mode, and other protocol-specific modes.
ROM-monitor mode is a separate mode used when the Catalyst4500 series switch cannot boot properly.
If your Catalyst4500 series switch or access server does not find a valid system image when it is booting,
or if its configuration file is corrupted at startup, the system might enter ROM-monitor mode.
Table1-3 provides a summary of the main command modes.
Table1-3Summary of Main Command Modes
Command
ModeAccess MethodPromptExit Method
User EXECLog in.Switch>Use the logout command.
Privileged
EXEC
Global
configuration
Interface
configuration
From user EXEC mode,
enter the enable EXEC
command.
From privileged EXEC
mode, enter the
configure terminal
privileged EXEC
command.
From global
configuration mode,
enter by specifying an
interface with an
interface command.
Switch#To exit to user EXEC mode, enter the disable
command.
To enter global configuration mode, enter the
configure terminal privileged EXEC command.
Switch(config)#To exit to privileged EXEC mode, enter the exit or
end command or press Ctrl-Z.
To enter interface configuration mode, enter an
interface configuration command.
Switch(config-if)#To exit to global configuration mode, enter the exit
command.
To exit to privileged EXEC mode, enter the exit
command or press Ctrl-Z.
To enter subinterface configuration mode, specify a
subinterface with the interface command.
Understanding Command Modes
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-5
Page 26
Using the No and Default Forms of Commands
Table1-3Summary of Main Command Modes (continued)
Command
ModeAccess MethodPromptExit Method
Subinterface
configuration
ROM monitorFrom privileged EXEC
From interface
configuration mode,
specify a subinterface
with an interface
command.
mode, enter the reload
EXEC command. Press
the Break key during the
first 60 seconds while the
system is booting.
For more information on command modes, refer to the “Using the Command Line Interface” chapter of
the Configuration Fundamentals Configuration Guide .
Switch(config-subif)#To exit to global configuration mode, enter the exit
command.
To enter privileged EXEC mode, enter the end
command or press Ctrl-Z.
Rommon>To exit ROM-monitor mode, you must reload the
image by entering the boot command. If you use
the boot command without specifying a file or any
other boot instructions, the system boots from the
default Flash image (the first image in onboard
Flash memory). Otherwise, you can instruct the
system to boot from a specific Flash image (using
the boot system flashfilename command).
Chapter1 Command-Line Interface
Using the No and Default Forms of Commands
Almost every configuration command has a no form. In general, enter the no form to disable a function.
Use the command without the keyword no to reenable a disabled function or to enable a function that is
disabled by default. For example, IP routing is enabled by default. To disable IP routing, specify the
noiprouting command and specify ip routing to reenable it. This publication provides the complete
syntax for the configuration commands and describes what the no form of a command does.
Some configuration commands have a default form. The default form of a command returns the
command setting to its default settings. Most commands are disabled by default, so the default form is
the same as the no form. However, some commands are enabled by default, with variables set to certain
default values. In these cases, the default form of the command enables the command and returns its
variables to their default values.
Using the CLI String Search
The pattern in the command output is referred to as a string. The CLI string search feature allows you to
search or filter any show or more command output and allows you to search and filter at --More-prompts. This feature is useful when you need to sort though large amounts of output, or if you want to
exclude output that you do not need to see.
With the search function, you can begin unfiltered output at the first line that contains a regular
expression you specify. You can then specify a maximum of one filter per command or start a new search
from the --More-- prompt.
A regular expression is a pattern (a phrase, number, or more complex pattern) software uses to match
against show or more command output. Regular expressions are case sensitive and allow for complex
matching requirements. Examples of simple regular expressions are Serial, misses, and 138. Examples
of complex regular expressions are 00210..., (is), and [Oo]utput.
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-6
78-16201-01
Page 27
Chapter1 Command-Line Interface
You can perform three types of filtering:
• Use the begin keyword to begin output with the line that contains a specified regular expression.
• Use the include keyword to include output lines that contain a specified regular expression.
• Use the exclude keyword to exclude output lines that contain a specified regular expression.
You can then search this filtered output at the --More-- prompts.
NoteThe CLI string search function does not allow you to search or filter backward through previous output;
filtering cannot be specified using HTTP access to the CLI.
Regular Expressions
A regular expression can be a single character that matches the same single character in the command
output or multiple characters that match the same multiple characters in the command output. This
section describes how to create both single-character patterns and multiple-character patterns and how
to create more complex regular expressions using multipliers, alternation, anchoring, and parentheses.
Using the CLI String Search
Single-Character Patterns
The simplest regular expression is a single character that matches the same single character in the
command output. You can use any letter (A-Z, a-z) or digit (0-9) as a single-character pattern. You can
also use other keyboard characters (such as ! or ~) as single-character patterns, but certain keyboard
characters have special meaning when used in regular expressions. Table1-4 lists the keyboard
characters that have special meaning.
Table1-4Characters with Special Meaning
Character Special Meaning
.Matches any single character, including white space.
*Matches 0 or more sequences of the pattern.
+Matches 1 or more sequences of the pattern.
?Matches 0 or 1 occurrences of the pattern.
^Matches the beginning of the string.
$Matches the end of the string.
_ (underscore)Matches a comma (,), left brace ({), right brace (}), left parenthesis (( ),
To enter these special characters as single-character patterns, remove the special meaning by preceding
each character with a backslash (\). These examples are single-character patterns matching a dollar sign,
an underscore, and a plus sign, respectively.
right parenthesis ()), the beginning of the string, the end of the string, or a
space.
\$ \_ \+
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-7
Page 28
Using the CLI String Search
You can specify a range of single-character patterns to match against command output. For example, you
can create a regular expression that matches a string containing one of the following letters: a, e, i, o, or
u. One and only one of these characters must exist in the string for pattern matching to succeed. To
specify a range of single-character patterns, enclose the single-character patterns in square brackets
([]).For example,
[aeiou]
matches any one of the five vowels of the lowercase alphabet, while
[abcdABCD]
matches any one of the first four letters of the lower- or uppercase alphabet.
You can simplify ranges by entering only the end points of the range separated by a dash (-). Simplify
the previous range as follows:
[a-dA-D]
To add a dash as a single-character pattern in your range, include another dash and precede it with a
backslash:
[a-dA-D\-]
You can also include a right square bracket (]) as a single-character pattern in your range. To do so, enter
the following:
Chapter1 Command-Line Interface
[a-dA-D\-\]]
The previous example matches any one of the first four letters of the lower- or uppercase alphabet, a
dash, or a right square bracket.
You can reverse the matching of the range by including a caret (^) at the start of the range. This example
matches any letter except the ones listed:
[^a-dqsv]
This example matches anything except a right square bracket (]) or the letter d:
[^\]d]
Multiple-Character Patterns
When creating regular expressions, you can also specify a pattern containing multiple characters. You
create multiple-character regular expressions by joining letters, digits, or keyboard characters that do not
have special meaning. For example, a4% is a multiple-character regular expression. Put a backslash in
front of the keyboard characters that have special meaning when you want to remove their special
meaning.
With multiple-character patterns, order is important. The regular expression a4% matches the character
a followed by a 4 followed by a % sign. If the string does not have a4%, in that order, pattern matching
fails. This multiple-character regular expression:
a.
uses the special meaning of the period character to match the letter a followed by any single character.
With this example, the strings ab, a!, or a2 are all valid matches for the regular expression.
You can remove the special meaning of the period character by putting a backslash in front of it. In the
following expression:
a\.
only the string a. matches this regular expression.
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-8
78-16201-01
Page 29
Chapter1 Command-Line Interface
You can create a multiple-character regular expression containing all letters, all digits, all keyboard
characters, or a combination of letters, digits, and other keyboard characters. These examples are all
valid regular expressions:
telebit 3107 v32bis
Multipliers
You can create more complex regular expressions to match multiple occurrences of a specified regular
expression by using some special characters with your single- and multiple-character patterns. Table1-5
lists the special characters that specify “multiples” of a regular expression.
Table1-5Special Characters Used as Multipliers
CharacterDescription
*Matches 0 or more single- or multiple-character patterns.
+Matches 1 or more single- or multiple-character patterns.
?Matches 0 or 1 occurrences of the single- or multiple-character patterns.
Using the CLI String Search
This example matches any number of occurrences of the letter a, including none:
a*
This pattern requires that at least one letter a in the string is matched:
a+
This pattern matches the string bb or bab:
ba?b
This string matches any number of asterisks (*):
\**
To use multipliers with multiple-character patterns, you enclose the pattern in parentheses. In the
following example, the pattern matches any number of the multiple-character string ab:
(ab)*
As a more complex example, this pattern matches one or more instances of alphanumeric pairs (but not
none; that is, an empty string is not a match):
([A-Za-z][0-9])+
The order for matches using multipliers (*, +, or ?) is to put the longest construct first. Nested constructs
are matched from outside to inside. Concatenated constructs are matched beginning at the left side of the
construct. Thus, the regular expression matches A9b3, but not 9Ab3 because the letters are specified
before the numbers.
Alternation
Alternation allows you to specify alternative patterns to match against a string. You separate the
alternative patterns with a vertical bar (|). Exactly one of the alternatives can match the string. For
example, the regular expression
codex | telebit
matches the string codex or the string telebit, but not both codex and telebit.
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-9
Page 30
Using the CLI String Search
Anchoring
Chapter1 Command-Line Interface
You can match a regular expression pattern against the beginning or the end of the string. That is, you
can specify that the beginning or end of a string contains a specific pattern. You “anchor” these regular
expressions to a portion of the string using the special characters shown in Table1-6 .
Table1-6Special Characters Used for Anchoring
CharacterDescription
^Matches the beginning of the string.
$ Matches the end of the string.
This regular expression matches a string only if the string starts with abcd:
^abcd
In contrast, this expression is in a range that matches any single letter, as long as it is not the letters a, b,
c, or d:
[^abcd]
With this example, the regular expression matches a string that ends with .12:
$\.12
Contrast these anchoring characters with the special character underscore (_). The underscore matches
the beginning of a string (^), the end of a string ($), parentheses ( ), space ( ), braces { }, comma (,), or
underscore (_). With the underscore character, you can specify that a pattern exist anywhere in the string.
For example:
_1300_
matches any string that has 1300 somewhere in the string. The string’s 1300 can be preceded by or end
with a space, brace, comma, or underscore. For example:
{1300_
matches the regular expression, but 21300 and 13000 do not.
Using the underscore character, you can replace long regular expression lists, such as the following:
As shown in the “Multipliers” section on page1-9, you use parentheses with multiple-character regular
expressions to multiply the occurrence of a pattern. You can also use parentheses around a single- or
multiple-character pattern to remember a pattern for use elsewhere in the regular expression.
To create a regular expression that recalls a previous pattern, you use parentheses to indicate a
remembered specific pattern and a backslash (\) followed by an integer to reuse the remembered pattern.
The integer specifies the occurrence of the parentheses in the regular expression pattern. If you have
more than one remembered pattern in your regular expression, then \1 indicates the first remembered
pattern, \2indicates the second remembered pattern, and so on.
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-10
78-16201-01
Page 31
Chapter1 Command-Line Interface
This regular expression uses parentheses for recall:
a(.)bc(.)\1\2
This regular expression matches an a followed by any character (call it character 1), followed by bc
followed by any character (character 2), followed by character 1 again, followed by character 2 again.
So, the regular expression can match aZbcTZT. The software remembers that character 1 is Z and
character 2 is T and then uses Z and T again later in the regular expression.
Saving Configuration Changes
To save your configuration changes to your startup configuration so that they will not be lost if there is
a system reload or power outage, enter the following command:
Switch# copy system:running-config nvram:startup-config
Building configuration...
It might take a minute or two to save the configuration. After the configuration has been saved, the
following output appears:
[OK]
Switch#
Saving Configuration Changes
On most platforms, this step saves the configuration to NVRAM. On the Class A Flash file system
platforms, this step saves the configuration to the location specified by the CONFIG_FILE environment
variable. The CONFIG_FILE environment variable defaults to NVRAM.
Show Platform Commands
You should use these commands only when you are working directly with your technical support
representative, while troubleshooting a problem. Do not use these commands unless your technical
support representative asks you to do so.
NoteThe show platform commands are not described in this document.
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-11
Page 32
Show Platform Commands
Chapter1 Command-Line Interface
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
1-12
78-16201-01
Page 33
C H A P T E R
2
Cisco IOS Commands for the Catalyst 4500 Series
Switches
This chapter contains an alphabetical listing of CiscoIOS commands for the Catalyst4500 series
switches. For information about Cisco IOS commands that are not included in this publication, refer to
CiscoIOS Release 12.1 ConfigurationGuides and CommandReferences at this URL:
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-2
78-16201-01
Page 35
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
aaa accounting dot1x d efault start-stop group radius
aaa accounting dot1x default start-stop group radius
To enable accounting for dot.1x authentication sessions, use the aaa accounting dot1x default
start-stop group radius command. Use the no form of this command to disable accounting.
aaa accounting dot1x default start-stop group radius
no aaa accounting dot1x default start-stop group radius
Syntax DescriptionThis command has no arguments or keywords.
DefaultsAccounting is disabled.
Command ModesGlobal configuration
Command History
ReleaseModification
12.2(18)EWSupport for this command was introduced on the Catalyst 4500 series switch.
Usage Guidelines802.1x accounting requires a RADIUS server.
This command enables the Authentication, Authorization, and Accounting (AAA) client’s accounting
feature to forward 802.1x update and watchdog packets from the 802.1x supplicant (workstation client)
to the authentication (RADIUS) server. (Watchdog packets are defined as EAPOL-LOGON,
EAPOL-LOGOFF, and EAPOL-INTERIM messages.) Successful authentication and authorization of
the supplicant by the authentication server is required before these packets are considered valid and are
forwarded. When the client is reauthenticated, an interim-update accounting notice is sent to the
accounting server.
ExamplesThe following example shows how to configure 802.1x accounting:
Switch(config)# aaa accounting dot1x default start-stop group radius
NoteThe RADIUS authentication server must be properly configured to accept and log update or watchdog
packets from the AAA client.
Related Commandsaaa accounting system default start-stop group radius
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-3
Page 36
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
aaa accounting system default start-stop group radius
aaa accounting system default start-stop group radius
To receive session termination messages after the switch reboots, use the aaa accounting system
default start-stop group radius command. Use the no form of this command to disable accounting.
aaa accounting system default start-stop group radius
no aaa accounting system default start-stop group radius
Syntax DescriptionThis command has no arguments or keywords.
DefaultsAccounting is disabled.
Command ModesGlobal configuration mode
Command History
ReleaseModification
12.2(18)EWSupport for this command was introduced on the Catalyst 4500 series switch.
Usage Guidelines802.1x accounting requires the RADIUS server.
This command enables the AAA client’s accounting feature to forward 802.1x update and watchdog
packets from the 802.1x supplicant (workstation client) to the authentication (RADIUS) server.
(Watchdog packets are defined as EAPOL-LOGON, EAPOL-LOGOFF, and EAPOL-INTERIM
messages.) Successful authentication and authorization of the supplicant by the authentication server is
required before these packets are considered valid and are forwarded. When the client is reauthenticated,
an interim-update accounting notice is sent to the accounting server.
ExamplesThe following example shows how to generate a logoff after a switch reboots:
Switch(config)# aaa accounting system default start-stop group radius
NoteThe RADIUS authentication server must be properly configured to accept and log update or watchdog
packets from the AAA client.
Related Commandsaaa accounting dot1x default start-stop group radius
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-4
78-16201-01
Page 37
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
access-group mode
To specify override modes (for example, VACL overrides PACL) and non-override modes (for example,
merge or strict mode), use the access-group mode command. Use the no form of this command to return
to preferred port mode.
prefer portSpecifies that the PACL mode take precedence if PACLs are configured. If no
PACL features are configured on the port, other features applicable to the
interface are merged and applied on the interface.
prefer vlanSpecifies that the VLAN-based ACL mode take precedence. If no VLAN-based
ACL features are configured on the port’s VLAN, the PACL features on the port
are applied.
mergeMerges applicable ACL features before they are programmed into the hardware.
DefaultsPACL override mode
Command ModesInterface configuration
Command History
ReleaseModification
12.1(19)EWSupport for this command was introduced on the Catalyst 4500 series switch.
Usage GuidelinesOn the Layer 2 interface, prefer port, prefer VLAN, and merge modes are supported. A Layer2 interface
can have one IP ACL applied in either direction (one inbound and one outbound).
ExamplesThis example shows how to make the PACL mode on the switch take effect:
(config-if)# access-group mode prefer port
This example shows how to merge applicable ACL features:
(config-if)# access-group mode merge
Related Commandsshow access-group mode interface
show ip interface (refer to Cisco IOS documentation)
show mac access-group interface
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-5
Page 38
action
action
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
To specify an action to be taken when a match occurs in a VACL, use the action command. To remove
an action clause, use the no form of this command.
action {drop | forward}
no action {drop | forward }
Syntax Description
dropSets the action to drop packets.
forwardSets the action to forward packets to their destination.
DefaultsThis command has no default settings.
Command ModesVLAN access-map
Command History
ReleaseModification
12.1(12c)EWSupport for this command was introduced on the Catalyst 4500 series switch.
Usage GuidelinesIn a VLAN access map, if at least one ACL is configured for a packet type (IP or MAC), the default
action for the packet type is drop (deny).
If an ACL is not configured for a packet type, the default action for the packet type is forward (permit).
If an ACL for a packet type is configured and the ACL is empty or undefined, the configured action will
be applied to the packet type.
ExamplesThis example shows how to define a drop action:
Switch(config-access-map)# action drop
Switch(config-access-map)#
This example shows how to define a forward action:
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-6
78-16201-01
Page 39
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
apply
To implement a new VLAN database, increment the configuration number, save the configuration
number in NVRAM, and propagate the configuration number throughout the administrative domain, use
the apply command.
apply
Syntax DescriptionThis command has no arguments or keywords.
DefaultsThis command has no default settings.
Command ModesVLAN configuration
apply
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
Usage GuidelinesThe apply command implements the configuration changes you made after you entered VLAN database
mode and uses them for the running configuration. This command keeps you in VLAN database mode.
You cannot use this command when the switch is in the VTP client mode.
You can verify that VLAN database changes occurred by entering the show vlan command from
privileged EXEC mode.
ExamplesThis example shows how to implement the proposed new VLAN database and to recognize it as the
current database:
Switch(config-vlan)# apply
Switch(config-vlan)#
Related Commandsabort (refer to Cisco IOS documentation)
exit (refer to Cisco IOS documentation)
reset
show vlan
shutdown vlan (refer to Cisco IOS documentation)
vtp (global configuration mode)
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-7
Page 40
arp access-list
arp access-list
To define an ARP access list or add clauses at the end of a predefined list, use the arp access-list
command.
arp access-list name
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
nameSpecifies the access control list name.
DefaultsNone
Command ModesConfiguration
Command History
ReleaseModification
12.1(19)EWSupport for this command was introduced on the Catalyst 4500 series switch.
ExamplesThe following example shows how to define an ARP access list named static-hosts:
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-8
78-16201-01
Page 41
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
attach module
To remotely connect to a specific module, use the attach module configuration command.
attach module mod
attach module
Syntax Description
modTarget module for the command.
DefaultsThis command has no default settings.
Command ModesPrivileged
Command History
ReleaseModification
12.1(19)EWThis command was first introduced.
Usage GuidelinesThis command applies only to the Access Gateway Module on Catalyst 4500 series switches.
The valid values for mod depend on the chassis used. For example, if you have a Catalyst 4006 chassis,
valid values for the module are from 2 to 6. If you have a 4507R chassis, valid values are from 3 to 7.
When you execute the attach module mod command, the prompt changes to Gateway#.
This command is identical in the resulting action to the session modulemod and the remote login
module mod commands.
ExamplesThis example shows how to remotely log in to an Access Gateway Module:
Switch# attach module 5
Attaching console to module 5
Type 'exit' at the remote prompt to end the session
Gateway>
Related Commandsremote login module
session module
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
2-9
Page 42
auto qos voip
auto qos voip
To automatically configure quality of service (auto-QoS) for voice over IP (VoIP) within a QoS domain,
use the auto qos voip interface configuration command. Use the no form of this command to change the
auto-QoS configuration settings to the standard QoS defaults.
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
auto qos voip {cisco-phone | trust}
no auto qos voip {cisco-phone | trust}
Syntax Description
DefaultsAuto-QoS is disabled on all interfaces.
Command ModesInterface configuration
Command History
Usage GuidelinesUse this command to configure the QoS appropriate for VoIP traffic within the QoS domain. The QoS
cisco-phoneConnects the interface to a Cisco IP phone and automatically configures QoS for
VoIP. The CoS labels of incoming packets are trusted only when the telephone is
detected.
trustConnects the interface to a trusted switch or router and automatically configures
QoS for VoIP. The CoS and DSCP labels of incoming packets are trusted.
ReleaseModification
12.1(19)EWSupport for this command was introduced on the Catalyst 4500 series switch.
domain includes the switch, the interior of the network, and the edge devices that can classify incoming
traffic for QoS.
Use the cisco-phone keyword on ports at the edge of the network that are connected to Cisco IP phones.
The switch detects the telephone through the Cisco Discovery Protocol (CDP) and trusts the CoS labels
in packets received from the telephone.
Use the trust keyword on ports connected to the interior of the network. Because it is assumed that traffic
has already been classified by other edge devices, the CoS/DSCP labels in these packets are trusted.
When you enable the auto-QoS feature on the specified interface, these actions automatically occur:
• QoS is globally enabled (qos global configuration command).
• DBL is enabled globally (qos dbl global configuration command).
• When you enter the auto qos voip cisco-phone interface configuration command, the trusted
boundary feature is enabled. It uses the Cisco Discovery Protocol (CDP) to detect the presence or
absence of a Cisco IP phone. When a Cisco IP phone is detected, the ingress classification on the
specific interface is set to trust the CoS label received in the packet because some old phones do not
mark DSCP. When a Cisco IP phone is absent, the ingress classification is set to not trust the CoS
label in the packet.
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-10
78-16201-01
Page 43
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
auto qos voip
• When you enter the auto qos voip trust interface configuration command, the ingress classification
on the specified interface is set to trust the CoS label received in the packet if the specified interface
is configured as Layer 2 (and is set to trust DSCP if the interface is configured as Layer 3).
You can enable auto-QoS on static, dynamic-access, voice VLAN access, and trunk ports.
To display the QoS configuration that is automatically generated when auto-QoS is enabled, enable
debugging before you enable auto-QoS. Use the debug auto qos privileged EXEC command to enable
auto-QoS debugging.
To disable auto-QoS on an interface, use the no auto qos voip interface configuration command. When
you enter this command, the switch enables standard QoS and changes the auto-QoS settings to the
standard QoS default settings for that interface. This action will not change any global configuration
performed by auto-QoS; the global configuration remains the same.
ExamplesThis example shows how to enable auto-QoS and to trust the CoS and DSCP labels received in incoming
packets when the switch or router connected to Gigabit Ethernet interface 1/1 is a trusted device:
Switch(config)# interface gigabitethernet1/1
Switch(config-if)# auto qos voip trust
This example shows how to enable auto-QoS and to trust the CoS labels received in incoming packets
when the device connected to Fast Ethernet interface 2/1 is detected as a Cisco IP phone:
Switch(config)# interface fastethernet2/1
Switch(config-if)# auto qos voip cisco-phone
This example shows how to display the QoS configuration that is automatically generated when
auto-QoS is enabled:
Switch# debug auto qos
AutoQoS debugging is on
Switch# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet1/1
Switch(config-if)# auto qos voip trust
Switch(config-if)#
00:00:56:qos
00:00:57:qos map cos 3 to dscp 26
00:00:57:qos map cos 5 to dscp 46
00:00:58:qos map dscp 32 to tx-queue 1
00:00:58:qos dbl
00:01:00:policy-map autoqos-voip-policy
00:01:00: class class-default
00:01:00: dbl
00:01:00:interface GigabitEthernet1/1
00:01:00: qos trust cos
00:01:00: tx-queue 3
00:01:00: priority high
00:01:00: shape percent 33
00:01:00: service-policy output autoqos-voip-policy
Switchconfig-if)# interface gigabitethernet1/1
Switch(config-if)# auto qos voip cisco-phone
Switch(config-if)#
00:00:55:qos
00:00:56:qos map cos 3 to dscp 26
00:00:57:qos map cos 5 to dscp 46
00:00:58:qos map dscp 32 to tx-queue 1
00:00:58:qos dbl
00:00:59:policy-map autoqos-voip-policy
00:00:59: class class-default
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-11
Page 44
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
You can verify your settings by entering the show auto qos interface command.
Related Commandsdebug auto qos (refer to Cisco IOS documentation)
qos map cos
qos trust
show auto qos
show qos
show qos interface
show qos maps
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-12
78-16201-01
Page 45
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
auto-sync
To enable automatic synchronization of the configuration files in NVRAM, use the auto-sync command.
To disable automatic synchronization, use the no form of this command.
no auto-sync {startup-config | config-register | bootvar | standard}
auto-sync
Syntax Description
startup-configSpecifies automatic synchronization of the startup configuration.
config-registerSpecifies automatic synchronization of the configuration register configuration.
bootvarSpecifies automatic synchronization of the BOOTVAR configuration.
standardSpecifies automatic synchronization of the startup configuration, BOOTVAR, and
configuration registers.
DefaultsStandard automatic synchronization of all configuration files
Command ModesRedundancy main-cpu
Command History
ReleaseModification
12.1(12c)EWSupport for this command was introduced on the Catalyst 4500 series switch
(Catalyst4507R only).
Usage GuidelinesIf you enter the noauto-sync standard command, no automatic synchronizations occur.
ExamplesThis example shows how (from the default configuration) to enable automatic synchronization of the
configuration register in the main CPU:
Switch# config terminal
Switch (config)# redundancy
Switch (config-r)# main-cpu
Switch (config-r-mc)# no auto-sync standard
Switch (config-r-mc)# auto-sync configure-register
Switch (config-r-mc)#
Related Commandsredundancy
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-13
Page 46
channel-group
channel-group
To assign and configure an EtherChannel interface to an EtherChannel group, use the channel-group
command. To remove a channel group configuration from an interface, use the no form of this command.
channel-group number mode {active | on | auto [non-silent]} | {passive | desirable [non-silent]}
no channel-group
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
DefaultsNo channel groups are assigned.
Command ModesInterface configuration
Command History
number Specifies the channel group number; valid values are from 1 to 64.
modeSpecifies the EtherChannel mode of the interface.
activeEnables LACP unconditionally.
onForces the port to channel without PAgP.
autoPlaces a port into a passive negotiating state, in which the port responds to PAgP
packets it receives but does not initiate PAgP packet negotiation.
non-silent(Optional) Used with the auto or desirable mode when traffic is expected from the
other device.
passiveEnables LACP only if an LACP device is detected.
desirablePlaces a port into an active negotiating state, in which the port initiates negotiations
with other ports by sending PAgP packets.
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.1(13)EWSupport for LACP was added.
Usage GuidelinesYou do not have to create a port channel interface before assigning a physical interface to a channel
group. If a port channel interface has not been created, it is automatically created when the first physical
interface for the channel group is created.
If a specific channel number is used for the PAgP-enabled interfaces of a channel group, that same
channel number cannot be used for configuring a channel that has LACP-enabled interfaces or vice
versa.
You can also create port channels by entering the interface port-channel command. This will create a
Layer 3 port channel. To change the Layer 3 port channel into a Layer 2 port channel, use the switchport
command before you assign physical interfaces to the channel group. A port channel cannot be changed
from Layer 3 to Layer 2 or vice versa when it contains member ports.
You do not have to disable the IP address that is assigned to a physical interface that is part of a channel
group, but we recommend that you do so.
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-14
78-16201-01
Page 47
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
channel-group
Any configuration or attribute changes you make to the port-channel interface are propagated to all
interfaces within the same channel group as the port channel (for example, configuration changes are
also propagated to the physical interfaces that are not part of the port channel, but are part of the channel
group).
You can create in on mode a usable EtherChannel by connecting two port groups together.
CautionDo not enable Layer3 addresses on the physical EtherChannel interfaces. Do not assign bridge groups
on the physical EtherChannel interfaces because it creates loops.
ExamplesThis example shows how to add Gigabit Ethernet interface 1/1 to the EtherChannel group specified by
port channel 45:
Switch(config-if)# channel-group 45 mode on
Creating a port-channel interface Port-channel45
Switch(config-if)#
Related Commandsinterface port-channel
show interfaces port-channel (refer to Cisco IOS documentation)
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-15
Page 48
channel-protocol
channel-protocol
To enable LACP or PAgP on an interface, use the channel-protocol command. To disable the protocols,
use the no form of this command.
channel-protocol {lacp | pagp}
no channel-protocol {lacp | pagp}
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
lacpEnables LACP to manage channeling.
pagpEnables PAgP to manage channeling.
DefaultsPAgP
Command ModesInterface configuration
Command History
ReleaseModification
12.1(13)EWSupport for this command was introduced on the Catalyst4500 series switches.
Usage GuidelinesThis command is not supported on systems configured with a Supervisor Engine 1.
You can also select the protocol using the channel-group command.
If the interface belongs to a channel, the no form of this command is rejected.
All ports in an EtherChannel must use the same protocol; you cannot run two protocols on one module.
PAgP and LACP are not compatible; both ends of a channel must use the same protocol.
You can manually configure a switch with PAgP on one side and LACP on the other side in the on mode.
You can change the protocol at any time, but this change causes all existing EtherChannels to reset to
the default channel mode for the new protocol. You can use the channel-protocol command to restrict
anyone from selecting a mode that is not applicable to the selected protocol.
Configure all ports in an EtherChannel to operate at the same speed and duplex mode (full duplex only
for LACP mode).
For a complete list of guidelines, refer to the “Configuring EtherChannel” section of the Catalyst4500 Series Switch CiscoIOS Software Configuration Guide.
ExamplesThis example shows how to select LACP to manage channeling on the interface:
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-16
78-16201-01
Page 49
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Related Commandschannel-group
show etherchannel
channel-protocol
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-17
Page 50
class-map
class-map
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
To access the QoS class map configuration mode to configure QoS class maps, use the class-map
command. To delete a class map, use the no form of this command.
class-map [match-all | match-any]name
no class-map [match-all | match-any ]name
Syntax Description
match-all(Optional) Specifies that all match criteria in the class map must be matched.
match-any(Optional) Specifies that one or more match criteria must match.
nameName of the class map.
DefaultsMatch all criteria.
Command ModesGlobal configuration
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
Usage GuidelinesThe variables name and acl_name are case sensitive.
Use the class-map command and its subcommands on individual interfaces to define packet
classification, marking, aggregate, and flow policing as part of a globally named service policy.
These commands are available in QoS class map configuration mode:
• exit—Exits you from QoS class map configuration mode.
• no—Removes a match statement from a class map.
• match —Configures classification criteria.
These optional subcommands are also available:
–
access-group {acl_index | name acl_name}
–
ip {dscp | precedence} value1 value2... value8
–
any
The following subcommands appear in the CLI help, but they are not supported on LAN interfaces:
• input-interface {interface interface_number | null number | vlanvlan_id}
• protocol linktype
• destination-address mac mac_address
• source-address mac mac_address
• qos-group
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-18
78-16201-01
Page 51
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
• mpls
• no
After you have configured the class map name and are in class map configuration mode, you can enter
the match subcommands. The syntax for these subcommands is as follows:
match {[access-group {acl_index | name acl_name}] | [ip {dscp | precedence} value1 value2...
value8]}
See Table2-1 for a syntax description of the match subcommands.
Table2-1Syntax Description for the match Command
Optional Subcommand Description
access-group
acl_index | acl_name
access-group
Specifies the access list index or access list names; valid access list index
values are from 1to2699.
Specifies the named access list.
acl_name
ip dscp value1 value2
... value8
ip precedence value1
value2 ... value8
Specifies IP DSCP values to match; valid values are from 0 to 63. Enter up
to eight DSCP values separated by white spaces.
Specifies IP precedence values to match; valid values are from 0 to 7. Enter
up to eight precedence values separated by white spaces.
class-map
ExamplesThis example shows how to access the class-map commands and subcommands and to configure a class
map named ipp5 and enter a match statement for ip precedence 5:
Switch# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# class-map ipp5
Switch(config-cmap)# match ip precedence 5
Switch(config-cmap)#
This example shows how to configure the class map to match an already configured access list:
Switch(config-cmap)# match access-group IPacl1
Switch(config-cmap)#
Related Commandspolicy-map
service-policy
show class-map
show policy-map
show policy-map interface
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-19
Page 52
clear counters
clear counters
To clear interface counters, use the clear counters command.
FastEthernet interface_number (Optional) Specifies the Fast Ethernet interface; valid values
GigabitEthernet interface_number(Optional) Specifies the Gigabit Ethernet interface; valid values
null interface_number(Optional) Specifies the null interface; the valid value is 0.
port-channel number(Optional) Specifies the channel interface; valid values are
vlan vlan_id(Optional) Specifies the VLAN; valid values are from 1 to
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.1(12c)EWSupport for extended VLAN addresses was added.
are from 1 to 9.
are from 1 to 9.
from 1 to 64.
4096.
Usage GuidelinesThis command clears all the current interface counters from all interfaces unless you specify an
interface.
NoteThis command does not clear counters retrieved using SNMP, but only those seen when you enter the
show interface counters command.
ExamplesThis example shows how to clear all interface counters:
Switch# clear counters
Clear "show interface" counters on all interfaces [confirm] y
Switch#
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-20
78-16201-01
Page 53
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
This example shows how to clear counters on a specific interface:
Switch# clear counters vlan 200
Clear "show interface" counters on this interface [confirm]y
Switch#
Related Commandsshow interface counters (refer to Cisco IOS documentation)
clear counters
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-21
Page 54
clear hw-module slot password
clear hw-module slot password
To clear the password on an intelligent line module, use the clear hw-module slot password command:
clear hw-module slot slot_num password
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
slot_num(Optional) Specifies a slot on a line module.
DefaultsThe password is not cleared.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.2(18)EW Support for this command was introduced on the Catalyst 4500 series switch.
Usage GuidelinesYou only need to change the password once unless the password is reset.
ExamplesThis example shows how to clear the password from slot 5 on a line module:
Switch# clear hw-module slot 5 password
Switch#
Related Commandshw-module power
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-22
78-16201-01
Page 55
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear interface gigabitethernet
To clear the hardware logic from a Gigabit Ethernet IEEE 802.3z interface, use the clear interface
.gigabitethernet command.
clear interface gigabitethernet slot/port
clear interface gigabitethernet
Syntax Description
slot/portNumber of the slot and port.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to clear the hardware logic from a Gigabit Ethernet IEEE 802.3z interface:
clear ip arp inspection log
show ip arp inspection
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-27
Page 60
clear ip dhcp snooping database
clear ip dhcp snooping database
To clear the DHCP binding database, use the clear ip dhcp snooping database command.
clear ip dhcp snooping database
Syntax DescriptionThis command has no arguments or keywords.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Command History
ReleaseModification
12.1(19)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to clear the DHCP binding database:
Switch# clear ip dhcp snooping database
Switch#
Related Commandsip dhcp snooping
ip dhcp snooping binding interface (refer to Cisco IOS documentation)
ip dhcp snooping information option
ip dhcp snooping trust
ip dhcp snooping vlan
show ip dhcp snooping
show ip dhcp snooping binding
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-28
78-16201-01
Page 61
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear ip dhcp snooping database statistics
To clear DHCP binding database statistics, use the clear ip dhcp snooping database statistics
command.
clear ip dhcp snooping database statistics
Syntax DescriptionThis command has no arguments or keywords.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
clear ip dhcp snooping database statistics
Command History
ReleaseModification
12.1(19)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to clear the DHCP binding database:
Switch# clear ip dhcp snooping database statistics
Switch#
Related Commandsip dhcp snooping
ip dhcp snooping binding
ip dhcp snooping information option
ip dhcp snooping trust
ip dhcp snooping vlan
show ip dhcp snooping
show ip dhcp snooping binding
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-29
Page 62
clear ip igmp group
clear ip igmp group
To delete IGMP group cache entries, use the clear ip igmp group command.
clear ip igmp group [{fastethernet slot/port} | {GigabitEthernet slot/port} | {host_name |
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
fastethernet(Optional) Specifies the Fast Ethernet interface.
slot/port(Optional) Number of the slot and port.
GigabitEthernet (Optional) Specifies the Gigabit Ethernet interface.
host_name(Optional) Hostname, as defined in the DNS hosts table or with the
ip host command.
group_address(Optional) Address of the multicast group in four-part, dotted
notation.
Loopback interface_number(Optional) Specifies the loopback interface; valid values are from 0
to 2,147,483,647.
null interface_number(Optional) Specifies the null interface; the valid value is 0.
port-channel number(Optional) Specifies the channel interface; valid values are from 1 to
64.
vlan vlan_id(Optional) Specifies the VLAN; valid values are from 1 to 4094.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
Usage GuidelinesThe IGMP cache contains a list of the multicast groups of which hosts on the directly connected LAN
are members.
To delete all entries from the IGMP cache, enter the clear ip igmp group command with no arguments.
ExamplesThis example shows how to clear entries for a specific group from the IGMP cache:
Switch# clear ip igmp group 224.0.255.1
Switch#
This example shows how to clear IGMP group cache entries from a specific interface:
Switch# clear ip igmp group gigabitethernet 2/2
Switch#
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-30
78-16201-01
Page 63
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Related Commandsip host (refer to Cisco IOS documentation)
show ip igmp groups (refer to Cisco IOS documentation)
show ip igmp interface
clear ip igmp group
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-31
Page 64
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear ip igmp snooping membership
clear ip igmp snooping membership
To clear the explicit host tracking database, use the clear ip igmp snooping membership command.
clear ip igmp snooping membership [vlan vlan_id]
Syntax Description
vlan vlan_id(Optional) Specifies a VLAN; valid values are from 1 to 1001 and from 1006 to 4094.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(20)EW Support for this command was introduced on the Catalyst 4500 series switch.
Usage GuidelinesBy default, the explicit host tracking database maintains a maximum of 1 KB entries. After you reach
this limit, no additional entries can be created in the database. To create more entries, you will need to
delete the database with the clear ip igmp snooping statistics vlan command.
ExamplesThis example shows how to display IGMP snooping statistics for VLAN 25:
Switch# clear ip igmp snooping membership vlan 25
Switch#
Related Commandsip igmp snooping vlan explicit-tracking
show ip igmp snooping membership
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-32
78-16201-01
Page 65
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear ip mfib counters
To clear global MFIB counters and counters for all active MFIB routes, use the clear ip mfib counters
command.
clear ip mfib counters
Syntax DescriptionThis command has no arguments or keywords.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
clear ip mfib counters
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to clear all the active MFIB routes and global counters:
Switch# clear ip mfib counters
Switch#
Related Commandsshow ip mfib
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-33
Page 66
clear ip mfib fastdrop
clear ip mfib fastdrop
To clear all MFIB fast drop entries, use the clear ip mfib fastdrop command.
clear ip mfib fastdrop
Syntax DescriptionThis command has no arguments or keywords.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
Usage GuidelinesIf new fast-dropped packets arrive, new fast drop entries are created.
ExamplesThis example shows how to clear all fast drop entries:
Switch# clear ip mfib fastdrop
Switch#
Related Commandsip mfib fastdrop
show ip mfib fastdrop
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-34
78-16201-01
Page 67
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear lacp counters
To clear statistics for all interfaces belonging to a specific channel group, use the clear lacp counters
command.
clear lacp [channel-group] counters
clear lacp counters
Syntax Description
channel-group(Optional) Channel group number; valid values are from 1 to 64.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC mode
Command History
ReleaseModification
12.1(13)EWSupport for this command was introduced on the Catalyst4500 series switches.
Usage GuidelinesThis command is not supported on systems configured with a Supervisor Engine 1.
If you do not specify a channel group, all channel groups are cleared.
If you enter this command for a channel group that contains members in PAgP mode, the command is
ignored.
ExamplesThis example shows how to clear the statistics for a specific group:
Switch# clear lacp 1 counters
Switch#
Related Commandsshow lacp
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-35
Page 68
clear mac-address-table dynamic
clear mac-address-table dynamic
To clear dynamic address entries from the Layer2 MAC address table, use the clear mac-address-table
dynamic command.
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
address mac_addr(Optional) Specifies the MAC address.
interface interface (Optional) Specifies the interface and clear the entries associated with it; valid
values are FastEthernet and GigabitEthernet.
vlan vlan_id(Optional) Specifies the VLANs; valid values are from 1 to 4094.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.1(12c)EWSupport for extended VLAN addresses added.
Usage GuidelinesEnter the clear mac-address-table dynamic command with no arguments to remove all dynamic entries
from the table.
ExamplesThis example shows how to clear all dynamic Layer2 entries for a specific interface (gi1/1):
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-36
78-16201-01
Page 69
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear pagp
To clear port channel information, use the clear pagp command.
clear pagp {group-number | counters }
clear pagp
Syntax Description
group-numberChannel group number; valid values are from 1 to 64.
countersClears traffic filters.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to clear port channel information for a specific group:
Switch# clear pagp 32
Switch#
This example shows how to clear all port channel traffic filters:
Switch# clear pagp counters
Switch#
Related Commandsshow pagp
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-37
Page 70
clear port-security
clear port-security
To delete from the MAC address table all secure addresses, all configured secure addresses, or a specific
dynamic or sticky secure address on an interface, use the clear port-security command.
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
allDelete s all secure MAC addresses.
dynamicDelete s all dynamic secure MAC addresses.
address mac-addr(Optional) Delete s the specified secure MAC address.
vlan vlan-id(Optional) Deletes the specified secure MAC address from the specified
VLAN.
interface interface-id(Optional) Delete s secure MAC addresses on the specified physical port or
port channel.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Usage GuidelinesIf you enter the clear port-security all command, the switch removes all secure MAC addresses from
the MAC address table.
If you enter the clear port-security dynamic interface interface-id command, the switch removes all
dynamic secure MAC addresses on an interface from the MAC address table.
Command History
ReleaseModification
12.2(18)EWThis command was first introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to remove all secure addresses from the MAC address table:
Switch# clear port-security all
This example shows how to remove a dynamic secure address from the MAC address table:
aggregate-policer name(Optional) Specifies an aggregate policer.
interface (Optional) Specifies an interface.
fastethernet (Optional) Specifies the Fast Ethernet 802.3 interface.
GigabitEthernet (Optional) Specifies the Gigabit Ethernet 802.3z interface.
slot/interface(Optional) Number of the slot and interface.
vlan vlan_num(Optional) Specifies a VLAN.
port-channel number(Optional) Specifies the channel interface; valid values are from 1to64.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
Usage Guidelines
NoteWhen you enter the clear qos command, the way that the counters work is affected and traffic that is
normally restricted could be forwarded for a short period of time.
The clear qos command resets the interface QoS policy counters. If no interface is specified, the clear qos command resets the QoS policy counters for all interfaces.
ExamplesThis example shows how to clear global and per-interface aggregate QoS counters for all protocols:
Switch# clear qos
Switch#
This example shows how to clear specific protocol aggregate QoS counters for all interfaces:
Switch# clear qos aggregate-policer
Switch#
Related Commandsshow qos
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-39
Page 72
clear vlan counters
clear vlan counters
To clear the software-cached counter values to start from zero again for a specified VLAN or all existing
VLANs, use the clear vlan counters command.
clear vlan [vlan-id] counters
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
vlan-id(Optional) VLAN number; see “Usage Guidelines” for valid values.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(13)EWSupport for this command was introduced on the Catalyst4500 series switches.
Usage GuidelinesIf you do not specify a vlan-id value; the software-cached counter values for all existing VLANs are
cleared.
ExamplesThis example shows how to clear the software-cached counter values for a specific VLAN:
Switch# clear vlan 10 counters
Clear "show vlan" counters on this vlan [confirm]y
Switch#
Related Commandsshow vlan counters
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-40
78-16201-01
Page 73
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
clear vmps statistics
To clear VMPS statistics, use the clear vmps statistics command.
clear vmps statistics
Syntax DescriptionThis command has no arguments or keywords.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
clear vmps statistics
Command History
ReleaseModification
12.1(13)EWSupport for this command was introduced on the Catalyst4500 series switches.
ExamplesThis example shows how to clear VMPS statistics:
Switch# clear vmps statistics
Switch#
Related Commandsshow vmps
vmps reconfirm (privileged EXEC)
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-41
Page 74
debug adjacency
debug adjacency
To display adjacency debugging information, use the debug adjacency command. To disable debugging
output, use the no form of this command.
debug adjacency [ipc]
no debug adjacency
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
ipc(Optional) Displays IPC entries in the adjacency database.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to display information in the adjacency database:
Switch# debug adjacency
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
4d02h: ADJ: add 172.20.52.36 (GigabitEthernet1/1) via ARP will expire: 04:00:00
<... output truncated...>
Switch#
Related Commandsundebug adjacency (same as no debug adjacency)
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-42
78-16201-01
Page 75
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug backup
To debug backup events, use the debug backup command. To disable debugging output, use the no form
of this command.
debug backup
no debug backup
Syntax DescriptionThis command has no arguments or keywords.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
debug backup
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to debug backup events:
Switch# debug backup
Backup events debugging is on
Switch#
Related Commandsundebug backup (same as no debug backup)
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-43
Page 76
debug condition interface
debug condition interface
To limit debugging output of interface-related activities, use the debug condition interface command.
To disable debugging output, use the no form of this command.
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
fastethernetLimits debugging to Fast Ethernet interfaces.
slot/portNumber of the slot and port.
GigabitEthernetLimits debugging to Gigabit Ethernet interfaces.
null interface-numLimits debugging to null interfaces; the valid value is 0.
port-channel interface-numLimits debugging to port-channel interfaces; valid values are from 1
to 64.
vlan vlan_idSpecifies the VLAN interface number; valid values are from 1 to 4094.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.1(12c)EWSupport for extended VLAN addresses added.
ExamplesThis example shows how to limit debugging output to VLAN interface 1:
Switch# debug condition interface vlan 1
Condition 2 set
Switch#
Related Commandsdebug interface
undebug condition interface (same as no debug condition interface)
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-44
78-16201-01
Page 77
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug condition standby
To limit debugging output for standby state changes, use the debug condition standby command. To
disable debugging output, use the no form of this command.
fastethernetLimits debugging to Fast Ethernet interfaces.
slot/portNumber of the slot and port.
GigabitEthernetLimits debugging to Gigabit Ethernet interfaces.
port-channel interface_numLimits debugging output to port-channel interfaces; valid values are
from 1 to 64.
vlan vlan_idLimits debugging of a condition on a VLAN interface; valid values are
from 1 to 4094.
group-numberVLAN group number; valid values are from 0 to 255.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.1(12c)EWSupport for extended VLAN addresses added.
Usage GuidelinesIf you attempt to remove the only condition set, you will be prompted with a message asking if you want
to abort the removal operation. You can enter n to abort the removal or y to proceed with the removal. If
you remove the only condition set, an excessive number of debugging messages might occur.
ExamplesThis example shows how to limit the debugging output to group 0 in VLAN 1:
This example shows the display if you try to turn off the last standby debug condition:
Switch# no debug condition standby vlan 1 0
This condition is the last standby condition set.
Removing all conditions may cause a flood of debugging
messages to result, unless specific debugging flags
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-45
Page 78
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug condition standby
are first removed.
Proceed with removal? [yes/no]: n
% Operation aborted
Switch#
Related Commandsundebug condition standby (same as no debug condition standby)
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-46
78-16201-01
Page 79
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug condition vlan
To limit VLAN debugging output for a specific VLAN, use the debug condition vlan command. To
disable debugging output, use the no form of this command.
debug condition vlan {vlan_id}
no debug condition vlan {vlan_id}
debug condition vlan
Syntax Description
vlan_idNumber of the VLAN; valid values are from 1 to 4096.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.1(12c)EWSupport for extended VLAN addresses added.
Usage GuidelinesIf you attempt to remove the only VLAN condition set, you will be prompted with a message asking if
you want to abort the removal operation. You can enter n to abort the removal or y to proceed with the
removal. If you remove the only condition set, it could result in the display of an excessive number of
messages.
ExamplesThis example shows how to limit debugging output to VLAN 1:
Switch# debug condition vlan 1
Condition 4 set
Switch#
This example shows the message that is displayed when you attempt to disable the last VLAN debug
condition:
Switch# no debug condition vlan 1
This condition is the last vlan condition set.
Removing all conditions may cause a flood of debugging
messages to result, unless specific debugging flags
are first removed.
Proceed with removal? [yes/no]: n
% Operation aborted
Switch#
Related Commandsundebug condition vlan (same as no debug condition vlan)
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-47
Page 80
debug dot1x
debug dot1x
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
To enable debugging for the 802.1x feature, use the debug dot1x command. Use the no form of this
command to disable debugging output.
allEnables debugging of all conditions.
errorsEnables debugging of print statements guarded by the dot1x error flag.
eventsEnables debugging of print statements guarded by the dot1x events flag.
packetsAll incoming dot1x packets are printed with packet and interface information.
registryEnables debugging of print statements guarded by the dot1x registry flag.
state-machineEnables debugging of print statements guarded by the dot1x registry flag.
ReleaseModification
12.1(12c)EWSupport for this command was introduced on the Catalyst 4500 series switch.
undebug dot1x (same as no debug dot1x)
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-48
78-16201-01
Page 81
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug etherchnl
To debug EtherChannel, use the debug etherchnl command. To disable debugging output, use the no
form of this command.
all(Optional) Displays all EtherChannel debug messages.
detail(Optional) Displays detailed EtherChannel debug messages.
error(Optional) Displays EtherChannel error messages.
event(Optional) Debugs major EtherChannel event messages.
idb(Optional) Debugs PAgP IDB messages.
linecard(Optional) Debugs SCP messages to the module.
DefaultsThe default settings are as follows:
• Debug is disabled.
• All messages are displayed.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
Usage GuidelinesIf you do not specify a keyword, all debug messages are displayed.
ExamplesThis example shows how to display all EtherChannel debug messages:
Switch# debug etherchnl
PAgP Shim/FEC debugging is on
22:46:30:FEC:returning agport Po15 for port (Fa2/1)
22:46:31:FEC:returning agport Po15 for port (Fa4/14)
22:46:33:FEC:comparing GC values of Fa2/25 Fa2/15 flag = 1 1
22:46:33:FEC:port_attrib:Fa2/25 Fa2/15 same
22:46:33:FEC:EC - attrib incompatable for Fa2/25; duplex of Fa2/25 is half, Fa2/15 is full
22:46:33:FEC:pagp_switch_choose_unique:Fa2/25, port Fa2/15 in agport Po3 is incompatable
Switch#
This example shows how to display EtherChannel IDB debug messages:
Switch# debug etherchnl idb
Agport idb related debugging is on
Switch#
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-49
Page 82
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug etherchnl
This example shows how to disable debugging:
Switch# no debug etherchnl
Switch#
Related Commandsundebug etherchnl (same as no debug etherchnl)
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-50
78-16201-01
Page 83
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug interface
To abbreviate entry of the debug condition interface command, use the debug interface command. To
disable debugging output, use the no form of this command.
FastEthernet Limits debugging to Fast Ethernet interfaces.
slot/portNumber of the slot and port.
GigabitEthernetLimits debugging to Gigabit Ethernet interfaces.
null Limits debugging to null interfaces; the only valid value is 0.
port-channel interface-numLimits debugging to port-channel interfaces; valid values are from 1
to 64.
vlan vlan_idSpecifies the VLAN interface number; valid values are from 1 to
4094.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.1(12c)EWSupport for extended VLAN addresses added.
ExamplesThis example shows how to limit debugging to interface VLAN 1:
Switch# debug interface vlan 1
Condition 1 set
Switch#
Related Commandsdebug condition interface
undebug interface (same as no debug interface)
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-51
Page 84
debug ipc
debug ipc
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
To debug IPC activity, use the debug ipc command. To disable debugging output, use the no form of this
command.
all Enables all IPC debugging.
errors Enables IPC error debugging.
events Enables IPC event debugging.
headers Enables IPC header debugging.
packets Enables IPC packet debugging.
ports Enables debugging of the creation and deletion of ports.
seats Enables debugging of the creation and deletion of nodes.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(12c)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to enable debugging of IPC events:
Switch# debug ipc events
Special Events debugging is on
Switch#
Related Commandsundebug ipc (same as no debug ipc)
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-52
78-16201-01
Page 85
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug ip dhcp snooping event
To debug DHCP snooping events, use the debug ip dhcp snooping event command. To disable
debugging output, use the no form of this command.
debug ip dhcp snooping event
no debug ip dhcp snooping event
Syntax DescriptionThis command has no arguments or keywords.
DefaultsDebugging of snooping event is disabled.
Command ModesPrivileged EXEC
debug ip dhcp snooping event
Command History
ReleaseModification
12.1(12c)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to enable debugging for DHCP snooping events:
Switch# debug ip dhcp snooping event
Switch#
This example shows how to disable debugging for DHCP snooping events:
Switch# no debug ip dhcp snooping event
Switch#
Related Commandsdebug ip dhcp snooping packet
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-53
Page 86
debug ip dhcp snooping packet
debug ip dhcp snooping packet
To debug DHCP snooping messages, use the debug ip dhcp snooping packet command. To disable
debugging output, use the no form of this command.
debug ip dhcp snooping packet
no debug ip dhcp snooping packet
Syntax DescriptionThis command has no arguments or keywords.
DefaultsDebugging of snooping packet is disabled.
Command ModesPrivileged EXEC
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Command History
ReleaseModification
12.1(12c)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to enable debugging for DHCP snooping packets:
Switch# debug ip dhcp snooping packet
Switch#
This example shows how to disable debugging for DHCP snooping packets:
Switch# no debug ip dhcp snooping packet
Switch#
Related Commandsdebug ip dhcp snooping event
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-54
78-16201-01
Page 87
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug ip verify source packet
To debug IP source guard messages, use the debug ip verify source packet command. To disable
debugging output, use the no form of this command.
debug ip verify source packet
no debug ip verify source packet
Syntax DescriptionThis command has no arguments or keywords.
DefaultsDebugging of snooping security packets is disabled.
Command ModesPrivileged EXEC
debug ip verify source packet
Command History
ReleaseModification
12.1(12c)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to enable debugging for IP source guard:
Switch# debug ip verify source packet
Switch#
This example shows how to disable debugging for IP source guard:
Switch# no debug ip verify source packet
Switch#
Related Commandsip dhcp snooping
ip dhcp snooping information option
ip dhcp snooping limit rate
ip dhcp snooping trust
ip verify source vlan dhcp-snooping (refer to Cisco IOS documentation)
show ip dhcp snooping
show ip dhcp snooping binding
show ip verify source (refer to Cisco IOS documentation)
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-55
Page 88
debug lacp
debug lacp
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
To debug LACP activity, use the debug lacp command. To disable debugging output, use the no form of
this command.
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to enable all PM debugging:
Switch# debug pm all
Switch#
Related Commandsundebug pm (same as no debug pm)
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-62
78-16201-01
Page 95
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug psecure
To debug port security, use the debug psecure command. To disable debugging output, use the no form
of this command.
debug psecure
no debug psecure
Syntax DescriptionThis command has no arguments or keywords.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
debug psecure
Command History
ReleaseModification
12.1(13)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to enable all PM debugging:
Switch# debug psecure
Switch#
Related Commandsswitchport port-security
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-63
Page 96
debug redundancy
debug redundancy
To debug supervisor redundancy, use the debug redundancy command. To disable debugging output,
use the no form of this command.
debug redundancy {errors | fsm | kpa | msg | progression | status | timer}
no debug redundancy
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
errorsEnables redundancy facility for error debugging.
fsmEnables redundancy facility for FSM event debugging.
kpaEnables redundancy facility for keepalive debugging.
msgEnables redundancy facility for messaging event debugging.
progressionEnables redundancy facility for progression event debugging.
status Enables redundancy facility for status event debugging.
timerEnables redundancy facility for timer event debugging.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(12c)EW Support for this command was introduced on the Catalyst 4500 series switch
(Catalyst 4507R only).
ExamplesThis example shows how to debug redundancy facility timer event debugging:
Switch# debug redundancy timer
Redundancy timer debugging is on
Switch#
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-64
78-16201-01
Page 97
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug smf updates
To debug software MAC filter (SMF) address insertions and deletions, use the debug smf updates
command. To disable debugging output, use the no form of this command.
debug smf updates
no debug smf updates
Syntax DescriptionThis command has no arguments or keywords.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
debug smf updates
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to debug SMF updates:
Switch# debug smf updates
Software MAC filter address insertions and deletions debugging is on
Switch#
Related Commandsundebug smf (same as no debug smf)
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-65
Page 98
debug spanning-tree
debug spanning-tree
To debug spanning tree activities, use the debug spanning-tree command. To disable debugging output,
use the no form of this command.
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
allDisplays all spanning tree debugging messages.
bpduDebugs spanning tree BPDU.
bpdu-optDebugs optimized BPDU handling.
etherchannelDebugs spanning tree EtherChannel support.
configDebugs spanning tree configuration changes.
eventsDebugs TCAM events.
exceptionsDebugs spanning tree exceptions.
generalDebugs general spanning tree activity.
mstDebugs multiple spanning tree events.
pvst+Debugs PVST+ events.
rootDebugs spanning tree root events.
snmp Debugs spanning tree SNMP events.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
ExamplesThis example shows how to debug spanning tree PVST+:
Switch# debug spanning-tree pvst+
Spanning Tree PVST+ debugging is on
Switch#
Related Commandsundebug spanning-tree (same as no debug spanning-tree)
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-66
78-16201-01
Page 99
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
debug spanning-tree backbonefast
To enable debugging of spanning tree BackboneFast events, use the debug spanning-tree backbonefast
command. To disable debugging output, use the no form of this command.
debug spanning-tree backbonefast [detail | exceptions]
no debug spanning-tree backbonefast
debug spanning-tree backbonefast
Syntax Description
detail(Optional) Displays detailed BackboneFast debugging messages.
exceptions(Optional) Enables debugging of spanning tree BackboneFast exceptions.
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
Command History
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
Usage GuidelinesThis command is supported by the supervisor engine only and can be entered only from the switch
console.
ExamplesThis example shows how to enable debugging and to display detailed spanning tree BackboneFast
debugging information:
Switch# debug spanning-tree backbonefast detail
Spanning Tree backbonefast detail debugging is on
Switch#
Related Commandsundebug spanning-tree backbonefast (same as no debug spanning-tree backbonefast)
78-16201-01
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-67
Page 100
debug spanning-tree switch
debug spanning-tree switch
To enable switch shim debugging, use the debug spanning-tree switch command. To disable debugging
output, use the no form of this command.
no debug spanning-tree switch {all | errors | general | pm | rx {decode | errors | interrupt |
process } | state | tx [decode]}
Chapter2 Cisco IOS Commands for the Catalyst 4500 Series Switches
Syntax Description
DefaultsThis command has no default settings.
Command ModesPrivileged EXEC
allDisplays all spanning tree switch shim debugging messages.
errorsEnables debugging of switch shim errors or exceptions.
generalEnables debugging of general events.
pmEnables debugging of port manager events.
rxDisplays received BPDU-handling debugging messages.
decodeEnables debugging of the decode received packets of the spanning tree switch shim.
errorsEnables debugging of the receive errors of the spanning tree switch shim.
interruptEnables shim ISR receive BPDU debugging on the spanning tree switch.
processEnables process receive BPDU debugging on the spanning tree switch.
stateEnables debugging of the state changes on the spanning tree port.
txEnables transmit BPDU debugging on the spanning tree switch shim.
decode(Optional) Enables decode transmitted packets debugging on the spanning tree
switch shim.
Command History
Usage GuidelinesThis command is supported only by the supervisor engine and can be entered only from the switch
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-68
ReleaseModification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
console.
78-16201-01
Loading...
+ 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.