Sx220 CLI Guide
Sx220 CLI Guide
Chapter 1: Introduction 22
Overview 22
User (Privilege) Levels 23
CLI Command Modes 24
User EXEC Mode 24
Privileged EXEC Mode 25
Global Configuration Mode 25
Global Configuration Submodes 26
Accessing the CLI 27
Using HyperTerminal over the Console Interface 28
Using Telnet over an Ethernet Interface 30
CLI Command Conventions 30
Editing Features 31
Entering Commands 31
Terminal Command Buffer 32
Negating the Effect of Commands 32
Command Completion 33
Keyboard Shortcuts 33
Copying and Pasting Text 33
Interface Naming Conventions 34
Interface ID 34
Interface Range 35
Interface List 35
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 1
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 2
Contents
ipv6 access-group in 75
ipv6 access-list 75
mac access-group in 77
mac access-list extended 77
no sequence 78
permit (IP) 79
permit (IPv6) 81
permit (MAC) 84
show access-lists 85
show access-lists 86
show access-lists utilization 86
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 3
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 4
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 5
Contents
flowcontrol 160
interface 161
interface range 162
jumbo-frame 162
show errdisable recovery 163
show interface status 164
show storm-control 165
shutdown 167
speed 168
storm-control action 169
storm-control broadcast 170
storm-control broadcast level 171
storm-control enable 172
storm-control ifg 173
storm-control unit 173
storm-control unknown-multicast 174
storm-control unknown-multicast level 175
storm-control unknown-unicast 176
storm-control unknown-unicast level 176
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 6
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 7
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 8
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 9
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 10
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 11
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 12
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 13
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 14
Contents
service-policy 399
set 400
show class-map 401
show policy-map 401
show policy-map interface 402
show qos 403
show qos aggregate-policer 404
show qos interfaces 404
show qos map 405
show qos queueing 407
show rate-limit vlan 407
traffic-shape 408
trust-shape (Interface) 409
traffic-shape queue 410
trust 410
rate-limit (Interface) 412
rate-limit (VLAN) 413
wrr-queue bandwidth 414
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 15
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 16
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 17
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 18
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 19
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 20
Contents
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 21
1
Introduction
The command-line interface (CLI) provides a text-based method for managing and
monitoring the switch. You can access the command-line interface using a
physical serial connection or a remote logical connection with Telnet.
This chapter describes how to use the command-line interface and contains the
following topics:
• Overview
• Editing Features
Overview
The command-line interface is divided into various modes. Each mode has a group
of commands available in it. These modes are described in the CLI Command
Modes section.
Users are assigned privilege levels. Each privilege level can access the CLI modes
permitted to that level. User privilege levels are described in the User (Privilege)
Levels section.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 22
Introduction
User (Privilege) Levels 1
User (Privilege) Levels
Users may be created with one of the following user levels:
• Level 1—Users with this level can only run the User EXEC mode commands.
Users at this level cannot access the web-based interface.
• Level 15—Users with this level can run all commands. Only users at this
level can access the web-based interface.
A system administrator (user with level 15) can create passwords that allow a
lower-level user to temporarily become a higher-level user. For example, the user
may go from level 1 to 15.
Users with a lower level can raise their level by entering the enable command and
the password for level 15. The higher level holds only for the current session.
To create a user and assign a user level, use the username command. Only users
with privilege level 15 can create users at this level.
Example 1—The following example creates the password for level 15 (by the
administrator):
switchxxxxxx# configure
switchxxxxxx(config)# enable privilege 15 password level15@abc
switchxxxxxx# configure
switchxxxxxx(config)# username john privilege 1 secret John1234
Example 3—The following example switches between level 1 to level 15. The user
must know the password for level 15.
switchxxxxxx# exit
switchxxxxxx> enable 15
Password: ****** (this is the password for level 15)
switchxxxxxx#
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 23
Introduction
CLI Command Modes 1
NOTE If the authentication of passwords is performed on the RADIUS or TACACS+
servers, the passwords assigned to user level 15 must be configured on the
external server and associated with the $enab15$ username. See the AAA
Commands chapter for details.
Each command mode has its own unique console prompt and set of CLI
commands. Entering a question mark at the console prompt displays a list of
available commands for the current mode and for the level of the user. Specific
commands are used to switch from one mode to another.
Users are assigned privilege levels that determine the modes and commands
available to them. User levels are described in the User (Privilege) Levels section.
The user-level prompt consists of the switch hostname followed by a >. The
default hostname is switchxxxxxx where xxxxxx is the last six digits of the
switch’s MAC address, as shown here:
switchxxxxxx>
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 24
Introduction
CLI Command Modes 1
Privileged EXEC Mode
A user with level 15 automatically logs into the Privileged EXEC mode.
Users with level 1 can enter the Privileged EXEC mode by entering the enable
command, and when prompted, the password for level 15.
To return from the Privileged EXEC mode to the User EXEC mode, use the disable
command.
To access the Global Configuration mode from the Privileged EXEC mode, enter
the configure command at the Privileged EXEC mode prompt and press Enter. The
Global Configuration mode prompt, consisting of the switch hostname followed by
(config)#, is displayed:
switchxxxxxx(config)#
Use any of the following commands to return from the Global Configuration mode
to the Privileged EXEC mode:
• exit
• end
• Ctrl+Z
The following example shows how to access the Global Configuration mode and
return to the Privileged EXEC mode:
switchxxxxxx#
switchxxxxxx# configure
switchxxxxxx(config)# exit
switchxxxxxx#
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 25
Introduction
CLI Command Modes 1
Global Configuration Submodes
Various submodes may be entered from the Global Configuration mode. These
submodes enable performing commands on a group of interfaces or lines,
defining conditions required to allow traffic based on IPv4, IPv6, and MAC
addresses, or defining the settings for management ACL, IGMP profiles, and MLD
profiles.
For instance, to perform several operations on a specific interface, you can enter
the Interface Configuration mode for that interface.
The following example enters the Interface Configuration mode for fa1-5 and then
sets their speeds:
switchxxxxxx#
switchxxxxxx# configure
switchxxxxxx(config)# interface range gi1-5
switchxxxxxx(config-if-range)# speed 1000
switchxxxxxx(config-if-range)# exit
switchxxxxxx(config)#
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 26
Introduction
Accessing the CLI 1
connection operations such as line timeout settings. The line Global
Configuration command is used to enter the Line Configuration mode.
To return from any Interface Configuration mode to the Global Configuration mode,
use the exit command.
• Using SSH.
If the access is through a Telnet connection, ensure that the following conditions
are met before using CLI commands:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 27
Introduction
Accessing the CLI 1
• An IP path is available so that the computer and the switch can reach each
other.
STEP 2 Select All Programs > Accessories > Communications > HyperTerminal.
STEP 3 Enter a name for this connection. Select an icon for the application, then click OK.
• Data bits = 8
• Parity = None
• Stop bits = 1
STEP 6 When the command-line interface appears, enter cisco at the Username prompt
and press Enter.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 28
Introduction
Accessing the CLI 1
If this is the first time that you have logged on with the default username and
password, or the switch has been rebooted to factory defaults, you are asked to
change your password. The following message appears:
Please change your password from the default settings. Please change the
password for better protection of your network. Do you want to change the
password (Y/N) [Y]?
The switchxxxxxx# prompt is displayed. You can now enter the commands to
manage the switch. For detailed information about the commands, refer to the
appropriate chapters of this reference guide.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 29
Introduction
CLI Command Conventions 1
Using Telnet over an Ethernet Interface
Telnet provides a method of connecting to the command-line interface over an IP
network.
To establish a Telnet session from the command prompt, perform the following
steps:
STEP 1 Click Start, then select All Programs > Accessories > Command Prompt to open a
command prompt.
STEP 2 At the prompt, enter telnet <IP address of switch>, then press Enter.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 30
Introduction
Editing Features 1
{} In a command line, curly brackets indicate a selection
of compulsory parameters separated with the |
character. One option must be selected. For example,
flowcontrol {auto | on | off} means that for the
flowcontrol command, either auto, on, or off must be
selected.
Editing Features
Entering Commands
A CLI command is a series of keywords and arguments. Keywords identify a
command, and arguments specify configuration parameters. For example, in the
command show interfaces status gi1, show, interfaces, and status are keywords, gi
is an argument that specifies the interface type, and 1 specifies the port.
To enter the commands that require parameters, enter the required parameters
after the command keyword. For example, to set a password for the administrator,
enter:
switchxxxxxx(config)# username admin secret Nn148279
When working with the CLI, the command options are not displayed. The standard
command to request help is ?.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 31
Introduction
Editing Features 1
• Partial keyword lookup—If a command is incomplete and the character ? is
entered in place of a parameter, the matched keyword or parameters for
this command are displayed.
By default, the history buffer system is enabled, but it can be disabled at any time.
For more information on enabling or disabling the history buffer, refer to the history
command.
There is a standard default number of commands that are stored in the buffer. The
standard number of 10 commands can be increased to 256. For more information
on configuring the command history buffer, refer to the history command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 32
Introduction
Editing Features 1
Command Completion
If the command entered is incomplete, invalid, or has missing or invalid
parameters, then the appropriate error message is displayed. This assists in
entering the correct command. By pressing Tab after an incomplete command is
entered, the system will attempt to identify and complete the command. If the
characters already entered are not enough for the system to identify a single
matching command, press ? to display the available commands matching the
characters already entered.
Keyboard Shortcuts
The CLI has a range of keyboard shortcuts to assist in editing the CLI commands.
The following table describes the CLI shortcuts:
Ctrl+Z / End Returns back to the Privileged EXEC mode from any
configuration mode.
NOTE It is the user’s responsibility to ensure that the text copied into the device consists
of legal commands only.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 33
Introduction
Interface Naming Conventions 1
When copying and pasting commands from a configuration file, make sure that the
following conditions exist:
Interface ID
Within the command-line interface, the interfaces are denoted by concatenating
the following elements:
switchxxxxxx# configure
switchxxxxxx(config)# interface gi1
switchxxxxxx(config)# interface fa1
switchxxxxxx(config)# interface Port-Channel 1
switchxxxxxx(config-if)#
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 34
Introduction
Interface Naming Conventions 1
Interface Range
Interfaces may be described on an individual basis or within a range. The interface
range command has the following syntax:
<interface-range> ::=
{<port-type>[ ][<first-port-number>[ - <last-port-number]}|
{Port-Channel|po}[ ]<first-port-channel-number>[ - <last-port-channel-
number>]
switchxxxxxx# configure
switchxxxxxx(config)# interface range gi1-5
switchxxxxxx(config-if-range)#
Interface List
A combination of interface types can be specified in the interface range command
in the following format:
<range-list> ::= <interface-range> | <range-list>,< interface-range>
NOTE Range lists can contain either ports or port channels. The space after the comma is
optional. When a range list is defined, a space after the first entry and before the
comma (,) must be entered.
switchxxxxxx# configure
switchxxxxxx(config)# interface range gi1,gi4-5
switchxxxxxx(config-if-range)#
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 35
2
802.1X Commands
To disable the guest VLAN feature on the switch, use the no form of this command.
Syntax
Parameters
Command Mode
User Guidelines
If the guest VLAN is defined and enabled, the interface automatically joins the
guest VLAN when the interface is unauthorized and leaves it when the interface
becomes authorized. To be able to join or leave the guest VLAN, the interface
should not be a static member of the guest VLAN.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 36
802.1X Commands
dot1x guest-vlan enable (Interface) 2
switchxxxxxx(config)# dot1x guest-vlan 2 enable
To disable unauthorized users on the interface accessing the guest VLAN, use the
no form of this command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
The switch can have only one guest VLAN. The guest VLAN is defined in the dot1x
guest-vlan enable Global Configuration mode command.
Example
The following example enables unauthorized users on gi15 to access the guest
VLAN:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 37
802.1X Commands
dot1x max-req 2
dot1x max-req
To set the maximum number of times that the switch sends an Extensible
Authentication Protocol (EAP) request or identity frame (assuming that no
response is received) to the client before restarting the authentication process,
use the dot1x max-req Interface Configuration mode command.
Syntax
no dot1x max-req
Parameters
Default Configuration
Command Mode
User Guidelines
The default value of this command should be changed only to adjust to unusual
circumstances, such as unreliable links or specific behavioral problems with
certain clients and authentication servers.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 38
802.1X Commands
dot1x port-control 2
dot1x port-control
To enable manual control of the port authorization state, use the dot1x port-control
Interface Configuration (Ethernet) mode command.
To disable manual control of the port authorization state, use the no form of this
command.
Syntax
no dot1x port-control
Parameters
Default Configuration
Command Mode
User Guidelines
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 39
802.1X Commands
dot1x reauthentication 2
Example
dot1x reauthentication
To enable periodic reauthentication of the client, use the dot1x reauthentication
Interface Configuration (Ethernet) mode command.
To disable periodic reauthentication of the client, use the no form of this command.
Syntax
dot1x reauthentication
no dot1x reauthentication
Parameters
N/A
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 40
802.1X Commands
dot1x system-auth-control 2
dot1x system-auth-control
To enable 802.1X globally on the switch, use the dot1x system-auth-control Global
Configuration mode command.
To disable 802.1X globally on the switch, use the no form of this command.
Syntax
dot1x system-auth-control
no dot1x system-auth-control
Parameters
N/A
Default Configuration
802.1X is disabled.
Command Mode
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 41
802.1X Commands
dot1x timeout reauth-period 2
Parameters
Default Configuration
Command Mode
User Guidelines
During the quiet period, the switch does not accept or initiate the authentication
requests.
The default value of this command should only be changed to adjust to unusual
circumstances, such as unreliable links or specific behavioral problems with
certain clients and authentication servers.
To provide faster response time to the user, a smaller number than the default
value should be entered.
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 42
802.1X Commands
dot1x timeout supp-timeout 2
Parameters
Default Configuration
3600 seconds
Command Mode
Example
Syntax
Parameters
• seconds—The time interval in seconds during which the switch waits for a
response to an EAP request frame from the client before resending the
request. (Range: 1 to 65535 seconds)
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 43
802.1X Commands
show dot1x 2
Command Mode
User Guidelines
The default value of this command should be changed only to adjust to unusual
circumstances, such as unreliable links or specific behavioral problems with
certain clients and authentication servers.
Example
show dot1x
To show the 802.1X status, use the show dot1x Privileged EXEC mode command.
Syntax
show dot1x
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 44
802.1X Commands
show dot1x authenticated-hosts 2
The following table describes the significant fields shown in the example:
Field Description
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Examples
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 45
802.1X Commands
show dot1x guest-vlan 2
Field Description
Session Time Amount of time that the supplicant was logged on the
port.
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 46
802.1X Commands
show dot1x guest-vlan 2
gi8 | Disabled | ---
gi9 | Disabled | ---
gi10 | Disabled | ---
gi11 | Disabled | ---
gi12 | Disabled | ---
gi13 | Disabled | ---
gi14 | Disabled | ---
gi15 | Enabled | No
gi16 | Disabled | ---
gi17 | Disabled | ---
gi18 | Disabled | ---
gi19 | Disabled | ---
gi20 | Disabled | ---
gi21 | Disabled | ---
gi22 | Disabled | ---
gi23 | Disabled | ---
gi24 | Disabled | ---
gi25 | Disabled | ---
gi26 | Disabled | ---
gi27 | Disabled | ---
gi28 | Disabled | ---
gi29 | Disabled | ---
gi30 | Disabled | ---
gi31 | Disabled | ---
gi32 | Disabled | ---
gi33 | Disabled | ---
gi34 | Disabled | ---
gi35 | Disabled | ---
gi36 | Disabled | ---
gi37 | Disabled | ---
gi38 | Disabled | ---
gi39 | Disabled | ---
gi40 | Disabled | ---
gi41 | Disabled | ---
gi42 | Disabled | ---
gi43 | Disabled | ---
gi44 | Disabled | ---
gi45 | Disabled | ---
gi46 | Disabled | ---
gi47 | Disabled | ---
gi48 | Disabled | ---
gi49 | Disabled | ---
gi50 | Disabled | ---
gi51 | Disabled | ---
gi52 | Disabled | ---
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 47
802.1X Commands
show dot1x interfaces 2
Field Description
Syntax
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 48
802.1X Commands
show dot1x interfaces 2
The following table describes the significant fields shown in the example:
Field Description
Quiet Period Number of seconds that the switch remains in the quiet
state following a failed authentication exchange.
Session Time Amount of time that the supplicant was logged on the
(HH:MM:SS) port.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 49
3
AAA Commands
To restore the default authentication method, use the no form of this command.
Syntax
Parameters
Default Configuration
The enable password command defines the default authentication login method.
This command functions the same as the aaa authentication enable default enable
command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 50
AAA Commands
aaa authentication enable 3
Command Mode
User Guidelines
A user who logs on with a lower privilege level must pass these authentication
methods to access a higher level.
The additional authentication methods are used only if the previous method
returns an error, not if it fails. Specify none as the final method in the command line
to ensure that the authentication succeeds, even if all methods return an error.
Keyword Description
All aaa authentication enable default requests sent by the switch to a RADIUS or a
TACACS+ server include the username $enabx$., where x is the requested
privilege level.
The no aaa authentication enable LISTNAME command deletes the list name if it
has not been referenced.
Example
The following example sets the enable password for authentication for accessing
higher privilege levels:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 51
AAA Commands
aaa authentication login 3
aaa authentication login
To set one or more authentication methods to be applied during login, use the aaa
authentication login Global Configuration mode command.
To restore the default authentication method, use the no form of this command.
Syntax
Parameters
Default Configuration
NOTE If no authentication method is defined, the console users can log in without any
authentication verification.
Command Mode
User Guidelines
A list of authentication methods may be assigned a list name, and this list name
can be used in the aaa authentication enable command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 52
AAA Commands
enable authentication 3
Each additional authentication method is used only if the previous method returns
an error, not if it fails. To ensure that the authentication succeeds even if all
methods return an error, specify none as the final method in the command line.
Keyword Description
The default and list names created with this command are used with the aaa
authentication enable command.
The no aaa authentication login LISTNAME command deletes a list name only if it
has not been referenced by another command.
Example
The following example sets the authentication login method for console sessions:
enable authentication
To specify the authentication method for accessing a higher privilege level from a
remote Telnet or console, use the enable authentication Line Configuration mode
command.
To restore the default authentication method, use the no form of this command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 53
AAA Commands
enable password 3
no enable authentication
Parameters
Command Mode
Examples
Example 1—The following example uses the default authentication method when
accessing a higher privilege level from a console:
enable password
To set a local password to control access to normal and privilege levels, use the
enable password Global Configuration mode command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 54
AAA Commands
enable password 3
Parameters
Default Configuration
Command Mode
User Guidelines
The passwords are encrypted by default. You only are required to use the
encrypted keyword when you are actually entering an encrypted keyword.
Example
The following command sets an unencrypted password for level 15 (it will be
encrypted in the configuration file):
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 55
AAA Commands
ip http authentication 3
ip http authentication
To specify one or more AAA methods for HTTP and HTTPS login authentications,
use the ip http authentication Global Configuration mode command.
Syntax
Parameters
The default login authentication list is used for HTTP and HTTPS sessions by
default.
Command Mode
Example
The following example creates two login authentication method lists and binds
them to HTTP and HTTPS separately:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 56
AAA Commands
login authentication 3
login authentication
To specify the login authentication method list for a remote Telnet or console
session, use the login authentication Line Configuration mode command.
To restore the default authentication method, use the no form of this command.
Syntax
no login authentication
Parameters
Default Configuration
The default login authentication list is used used for each line.
Command Mode
Examples
Example 2—The following example sets an authentication login method list for the
console:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 57
AAA Commands
passwords aging 3
passwords aging
To enforce the password aging, use the passwords aging Global Configuration
mode command.
Syntax
no passwords aging
Parameters
Default Configuration
Command Mode
User Guidelines
Aging is relevant only to local users with the privilege level 15.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 58
AAA Commands
passwords complexity <attributes> 3
passwords complexity <attributes>
To configure the minimum password requirements when the password complexity
is enabled, use the passwords complexity <attributes> Global Configuration
mode commands.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 59
AAA Commands
passwords complexity enable 3
Default Configuration
Command Mode
Example
To disable enforcing the password complexity, use the no form of this command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 60
AAA Commands
passwords complexity enable 3
User Guidelines
You can control these attributes of the password complexity with specific
commands described in this section.
If you have previously configured other complexity settings, then those settings
are used. This command does not eliminate the other settings. It works only as a
toggle.
Example
The following example enables enforcing the password complexity on the switch
and shows the current password complexity settings:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 61
AAA Commands
show aaa authentication lists 3
show aaa authentication lists
To show information for the AAA authentication lists, use the show aaa
authentication lists Privileged EXEC command.
Syntax
Parameters
Command Mode
Example
The following examples show information for all existing login and enable
authentication lists:
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 62
AAA Commands
show passwords configuration 3
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
The following example displays all AAA method lists for different line types:
Syntax
Parameters
N/A
Default Configuration
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 63
AAA Commands
show username 3
Command Mode
Example
show username
To show all user accounts in local database, use the show username Privileged
EXEC mode command.
Syntax
show username
Parameters
None
Default Configuration
None
Command Mode
Example
The following example shows information for all user accounts defined on the
switch:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 64
AAA Commands
username 3
15 | secret | cisco |
ZmZmNzVhZTAzYjAyODkzZjlkM2JjZGIyMGYyMzY0NDM=
username
To add a new user or edit an existing user, use the username Global Configuration
mode command.
Syntax
no username USERNAME
Parameters
Default Configuration
The privilege level of the default user cisco is 15. The default password of this
user is cisco.
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 65
AAA Commands
username 3
Examples
Example 1—The following example adds a user tom (level 15) with no password:
Example 2—The following example sets a password for user jerry (level 15) that
has already been encrypted. It will be copied to the configuration file just as it is
entered. To use it, the user must know its unencrypted form.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 66
4
ACL Commands
deny (MAC)
To set deny conditions (conditions are also known as access control entries
[ACEs]) for a MAC-based ACL, use the deny MAC Access-List Configuration mode
command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 67
ACL Commands
deny (IP) 4
• disable-port—(Optional) Disables the Ethernet interface if the condition is
matched.
Default Configuration
Command Mode
User Guidelines
After an ACE is added to an ACL, an implicit deny any any condition exists at the
end of the list. That is, if there are no matches, the packets are denied. However,
before the first ACE is added, the list permits all packets.
Example
deny (IP)
To set deny conditions for an IPv4-based ACL, use the deny IP Access-List
Configuration mode command.
Syntax
[sequence value] deny tcp {any | {source source-wildcard} {any | source-port /port-
range } }{any | destination destination-wildcard} {any | destination-port /port-range}
[dscp number | precedence number ] [match-all list-of-flags] [disable-port]
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 68
ACL Commands
deny (IP) 4
[sequence value] deny udp {any | source source-wildcard} {any | source-port /port-
range} {any | destination destination-wildcard} {any | destination-port /port-range}
[dscp number | precedence number] [disable-port]
no sequence value
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 69
ACL Commands
deny (IP) 4
• disable-port—(Optional) The Ethernet interface is disabled if the condition
is matched.
Default Configuration
Command Mode
User Guidelines
After an ACE is added to an ACL, an implicit deny any any condition exists at the
end of the list. That is, if there are no matches, the packets are denied. However,
before the first ACE is added, the list permits all packets.
The number of TCP or UDP ranges that can be defined in ACLs is limited. You can
define up to #ASIC-specific ranges for TCP and up to #ASIC-specific ranges for
UDP.
If a range of ports is used for a source port in ACE, it is not counted again if it is
also used for a source port in another ACE.
If a range of ports is used for a destination port in ACE, it is not counted again if it is
also used for a destination port in another ACE.
If a range of ports is used for a source port, it is counted again if it is also used for a
destination port.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 70
ACL Commands
deny (IPv6) 4
Example
deny (IPv6)
To set deny conditions for an IPv6-based ACL, use the deny IPv6 Access-List
Configuration mode command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 71
ACL Commands
deny (IPv6) 4
documented in RFC 3513 where the address is specified in hexadecimal
using 16-bit values between colons.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 72
ACL Commands
ip access-group in 4
urg, -ack, -psh, -rst, -syn, and -fin. The flags are concatenated to one string,
such as +fin-ack.
Default Configuration
Command Mode
User Guidelines
The number of TCP/UDP ranges that can be defined in ACLs is limited. You can
define up to #ASIC-specific ranges for TCP and up to #ASIC-specific ranges for
UDP.
If a range of ports is used for a source port in ACE, it is not counted again if it is
also used for a source port in another ACE.
If a range of ports is used for a destination port in ACE, it is not counted again if it is
also used for a destination port in another ACE.
If a range of ports is used for a source port, it is counted again if it is also used for a
destination port.
Example
ip access-group in
To bind an IPv4-based ACL to an interface, use the ip access-group in Interface
Configuration mode command.
To remove all IPv4-based ACLs from an interface, use the no form of this
command.
Syntax
ip access-group acl-name in
no ip access-group in
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 73
ACL Commands
ip access-list extended 4
Parameters
Command Mode
Example
ip access-list extended
To name an IPv4-based ACL and to enter the IPv4 Access-List Configuration
mode, use the ip access-list extended Global Configuration mode command.
Syntax
Parameters
Command Mode
User Guidelines
The IPv4-based ACEs for this IPv4-based ACL are defined in the permit (IP) and
deny (IP) commands.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 74
ACL Commands
ipv6 access-group in 4
An IPv4-based ACL is defined by a unique name. IPv4-based ACL, IPv6-based
ACL, MAC-based ACL, or policy map cannot have the same name.
Example
ipv6 access-group in
To bind an IPv6-based ACL to an interface, use the ipv6 access-group in Interface
Configuration mode command.
To remove all IPv6-based ACLs from an interface, use the no form of this
command.
Syntax
no ipv6 access-group in
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 75
ACL Commands
ipv6 access-list 4
ipv6 access-list
To define an IPv6-based ACL and to enter the IPv6 Access-List Configuration
mode, use the ipv6 access-list Global Configuration mode command.
Syntax
Parameters
Command Mode
User Guidelines
The IPv6-based ACEs for this IPv6-based ACL are defined in the permit (IPv6) and
deny (IPv6) commands.
Each IPv6-based ACL has implicit permit icmp any any nd-ns any, permit icmp any
any nd-na any, and deny ipv6 any any statements as its last match conditions. (The
former two match conditions allow for ICMPv6 neighbor discovery.)
The IPv6 neighbor discovery process uses the IPv6 network layer service,
therefore, by default, IPv6-based ACLs implicitly allow IPv6 neighbor discovery
packets to be sent and received on an interface. In IPv4, the Address Resolution
Protocol (ARP), which is equivalent to the IPv6 neighbor discovery process, uses a
separate data link layer protocol; therefore, by default, IPv4-based ACLs implicitly
allow ARP packets to be sent and received on an interface.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 76
ACL Commands
mac access-group in 4
switchxxxxxx(config-ipv6-acl)#
mac access-group in
To bind a MAC-based ACL to an interface, use the mac access-group in Interface
Configuration mode command.
To remove all MAC-based ACLs from an interface, use the no form of this
command.
Syntax
no mac access-group in
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 77
ACL Commands
no sequence 4
Syntax
Parameters
Command Mode
User Guidelines
The MAC-based ACEs for this MAC-based ACL are defined in the permit (MAC)
and deny (MAC) commands.
Example
no sequence
To remove a permit or deny ACE for an IPv4-based ACL, an IPv6-based ACL, or a
MAC-based ACL, use the no sequence command in the IP Access-List
Configuration mode, in the IPv6 Access-List Configuration mode, or in the MAC
Access-List Configuration mode.
Syntax
no sequence value
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 78
ACL Commands
permit (IP) 4
Parameters
Command Mode
Example
switchxxxxxx(config-mac-acl)# no sequence 1
permit (IP)
To set permit conditions for an IPv4-based ACL, use the permit IP Access-List
Configuration mode command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 79
ACL Commands
permit (IP) 4
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 80
ACL Commands
permit (IP) 4
address-mask-request, address-mask-reply, traceroute, datagram-
conversion-error, mobile-host-redirect, mobile-registration-request, mobile-
registration-reply, domain-name-request, domain-name-reply, skip, or
photuris. (Range: 0 to 255)
Default Configuration
Command Mode
User Guidelines
After an ACE is added to an ACL, an implicit deny any any condition exists at the
end of the list. That is, if there are no matches, the packets are denied. However,
before the first ACE is added, the list permits all packets up to #ASIC-specific
ranges for TCP and up to #ASIC-specific ranges for UDP.
If a range of ports is used for a source port in an ACE, it is not counted again if it is
also used for a source port in another ACE.
If a range of ports is used for a destination port in an ACE, it is not counted again if
it is also used for a destination port in another ACE.
If a range of ports is used for a source port, it is counted again if it is also used for a
destination port.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 81
ACL Commands
permit (IPv6) 4
permit (IPv6)
To set permit conditions for an IPv6-based ACL, use the permit command in the
IPv6 Access-List Configuration mode.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 82
ACL Commands
permit (IPv6) 4
the form documented in RFC 3513 where the address is specified in
hexadecimal using 16-bit values between colons.
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 83
ACL Commands
permit (MAC) 4
User Guidelines
The number of TCP/UDP ranges that can be defined in ACLs is limited. You can
define up to #ASIC-specific ranges for TCP and up to #ASIC-specific ranges for
UDP.
If a range of ports is used for a source port in ACE, it is not counted again if it is
also used for a source port in another ACE.
If a range of ports is used for a destination port in ACE, it is not counted again if it is
also used for a destination port in another ACE.
If a range of ports is used for a source port, it is counted again if it is also used for a
destination port.
Example
This example defines an IPv6-based ACL by the server name and enters an IPv6-
based ACE for TCP packets:
permit (MAC)
To set permit conditions for a MAC-based ACL, use the permit command in the
MAC Access-List Configuration mode.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 84
ACL Commands
show access-lists 4
• source-wildcard—Wildcard bits to be applied to the source MAC address.
• destination—Destination MAC address of the packet.
• destination-wildcard—Wildcard bits to be applied to the destination MAC
address.
Default Configuration
Command Mode
User Guidelines
After an ACE is added to an ACL, an implicit deny any any condition exists at the
end of the list. That is, if there are no matches, the packets are denied. However,
before the first ACE is added, the list permits all packets.
Example
show access-lists
To display the ACLs for a specific class defined on the switch, use the show
access-lists Privileged EXEC mode command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 85
ACL Commands
show access-lists 4
Parameters
Example
show access-lists
To display all ACLs configured on the switch, use the show access-lists Privileged
EXEC mode command.
Syntax
show access-lists
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 86
ACL Commands
show access-lists utilization 4
show access-lists utilization
To display the utilization of the access-list group, use the show access-lists
utilization Privileged EXEC mode command.
Syntax
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 87
5
Address Table Commands
Syntax
Parameters
Default Configuration
If the MAC address is not used by any protocol, the default action is bridge.
Command Mode
User Guidelines
The configurations (that contain service type) have precedence over less specific
configurations (that contain only MAC address).
The action defined by this command has precedence over the forwarding rules
defined by the applications or protocols (such as STP and LLDP) supported on the
switch.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 88
Address Table Commands
clear mac address-table 5
Example
Syntax
Parameters
Default Configuration
If no interface or VLAN is specified, all entries in the dynamic MAC address table
will be cleared.
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 89
Address Table Commands
mac address-table aging-time 5
mac address-table aging-time
To set the aging time of the MAC address table, use the mac address-table aging-
time Global Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
Example
To delete a MAC address from the MAC address table, use the no form of this
command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 90
Address Table Commands
mac address-table static 5
Parameters
Default Configuration
No static addresses are defined. The default mode for an added address is
permanent.
Command Mode
User Guidelines
Use the command to add a static MAC address with the given time-to-live in any
mode or to add a secure MAC address in a secure mode.
Each MAC address in the MAC address table is assigned two attributes: type and
time-to-live.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 91
Address Table Commands
mac address-table static 5
The following types are supported:
- permanent
- delete-on-reboot
- delete-on-timeout
Examples
Example 1—The following example adds two permanent static MAC addresses:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 92
Address Table Commands
show bridge multicast reserved-address 5
Example 4—The following example adds a secure MAC address:
Syntax
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 93
Address Table Commands
show mac address-table 5
01:80:C2:00:00:19 | bridge
01:80:C2:00:00:1A | bridge
01:80:C2:00:00:1B | bridge
01:80:C2:00:00:1C | bridge
01:80:C2:00:00:1D | bridge
01:80:C2:00:00:1E | bridge
01:80:C2:00:00:1F | bridge
01:80:C2:00:00:20 | bridge
01:80:C2:00:00:21 | bridge
01:80:C2:00:00:22 | bridge
01:80:C2:00:00:23 | bridge
01:80:C2:00:00:24 | bridge
01:80:C2:00:00:25 | bridge
01:80:C2:00:00:26 | bridge
01:80:C2:00:00:27 | bridge
01:80:C2:00:00:28 | bridge
01:80:C2:00:00:29 | bridge
01:80:C2:00:00:2A | bridge
01:80:C2:00:00:2B | bridge
01:80:C2:00:00:2C | bridge
01:80:C2:00:00:2D | bridge
01:80:C2:00:00:2E | bridge
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 94
Address Table Commands
show mac address-table aging-time 5
Default Configuration
Command Mode
User Guidelines
Internal usage VLANs that are automatically allocated on the routed ports are
presented in the VLAN column by a port number and not by a VLAN ID.
Example
Example 2—Displays the address entries containing the specified MAC address:
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 95
Address Table Commands
show port-security 5
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
show port-security
To show the port security status, use the show port-security Privileged EXEC
mode command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 96
Address Table Commands
switchport port-security 5
---------+---------+---------------+-------------+-------------------+------
-----
fa1 | Classic | Disabled | 3 | Discard|
---
fa2 | Classic | Disabled | 0 | Discard|
---
fa3 | Classic | Disabled | 0 | Discard|
---
fa4 | Classic | Disabled | 0 | Discard|
---
fa5 | Classic | Disabled | 0 | Discard|
---
fa6 | Classic | Disabled | 0 | Discard|
---
fa7 | Classic | Disabled | 0 | Discard|
---
fa8 | Classic | Disabled | 0 | Discard|
---
fa9 | Classic | Disabled | 0 | Discard|
---
fa10 | Classic | Disabled | 0 | Discard|
---
The following table describes the significant fields shown in the example:
Field Description
switchport port-security
To enable the port security on an interface, use the switchport port-security
Interface Configuration mode command.
To disable the port security on an interface, use the no form of this command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 97
Address Table Commands
switchport port-security mode maximum 5
Syntax
switchport port-security
no switchport port-security
Parameters
N/A
Default Configuration
Command Mode
Example
Syntax
Parameter
• classic— Classic lock. All learned MAC addresses on the port are locked
and the switch learns up to the maximum number of addresses allowed on
the port. The learned addresses are not subject to aging or re-learning.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 98
Address Table Commands
switchport port-security mode maximum 5
• dynamic— Limited dynamic lock. The switch learns MAC addresses up to
the configured limit of allowed addresses. After the limit is reached, the
switch does not learn additional addresses. In this mode, the addresses are
subject to aging and relearning.
Default Configuration
Command Mode
User Guidelines
The command may be used only when the interface is in the regular mode
(nonsecure with unlimited MAC learning).
See the mac address-table static command for information about MAC address
attributes (type and time-to-live).
When the switchport port-security command enables the lock mode on a port, all
dynamic addresses learned on the port are changed to permanent secure
addresses.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 99
Address Table Commands
switchport port-security mode maximum 5
When the switchport port-security command enables a mode on a port differing
from the lock mode, all addresses learned on the port are deleted.
Example
The following example discards all packets to gi11 when the learning reaches the
address limit (50) without learning any more addresses of packets from unknown
sources, and sends the SNMP traps every 100 seconds if a packet with an
unknown source address is received.
switchxxxxxx(config)interface gi11
switchxxxxxx(config-if)# switchport port-security mode classic maximum 50
action discard-snmp-log trap-freq 100
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 100
6
Bonjour Commands
bonjour enable
To enable Bonjour globally on the switch, use the bonjour enable Global
Configuration mode command.
Syntax
bonjour enable
no bonjour enable
Parameters
N/A
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 101
Bonjour Commands
show bonjour 6
show bonjour
To show Bonjour information, use the show bonjour Privileged EXEC Configuration
mode command.
Syntax
show bonjour
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 102
7
CDP Commands
cdp advertise-v2
To use Cisco Discovery Protocol (CDP) version 2 for all transmitted CDP packets,
use the cdp advertise-v2 Global Configuration mode command.
Syntax
cdp advertise-v2
no cdp advertise-v2
Parameters
N/A
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 103
CDP Commands
cdp appliance-vlan enable 7
cdp appliance-vlan enable
To enable the switch to advertise the voice VLAN in CDP packets on all interfaces
that are CPD-enabled and are members of the voice VLAN, use the cdp
appliance-vlan enable Global Configuration mode command.
To disable CDP voice VLAN advertisement, use the no form of this command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
This MIB specifies the voice VLAN ID (VVID) to which this interface belongs:
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 104
CDP Commands
cdp device-id format 7
switchxxxxxx(config)# cdp appliance-vlan enable
Syntax
Parameters
Default Configuration
Command Mode
Example
cdp enable
To enable CDP on an interface, use the cdp enable Interface Configuration mode
command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 105
CDP Commands
cdp holdtime 7
Syntax
cdp enable
no cdp enable
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
To enable CDP on an interface, you must first enable CDP globally on the switch by
using the cdp run command.
Example
cdp holdtime
To specify the number of seconds that CDP packets are held before the packets
are discarded, measured in multiples of the TLV Advertise Interval, use the cdp
holdtime Global Configuration mode command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 106
CDP Commands
cdp log mismatch duplex 7
For example, if the TLV Advertise Interval is 30 seconds, and the Hold
Multiplier is 4, then the CDP packets are discarded after 120 seconds.
Default Configuration
Command Mode
Example
To disable generating the SYSLOG messages for duplex mismatches, use the no
form of this command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 107
CDP Commands
cdp log mismatch native 7
User Guidelines
When duplex information is mismatched, which means that the duplex information
in the incoming frame does not match what the local device is advertising, a
SYSLOG duplex mismatch message is generated by CDP.
Example
To disable generating the SYSLOG messages for native VLAN mismatches, use
the no form of this command.
Syntax
Parameters
N/A
Default Configuration
The switch reports the native VLAN mismatches from all interfaces.
Command Mode
User Guidelines
When a native VLAN mismatch is detected, which means that the native VLAN
information in the incoming frame does not match what the local device is
advertising, a SYSLOG message is generated by CDP.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 108
CDP Commands
cdp log mismatch voip 7
Example
To disable generating the SYSLOG messages for VoIP mismatches, use the no
form of this command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
When a voice VLAN mismatch is detected, which means that the voice VLAN
information in the incoming frame does not match what the local device is
advertising, a SYSLOG message is generated by CDP.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 109
CDP Commands
cdp mandatory-tlvs validation 7
cdp mandatory-tlvs validation
To validate that all mandatory (according to CDP protocol) TLVs are present in the
received CDP frames, use the cdp mandatory-tlvs validation Global Configuration
mode command.
To disable the CDP mandatory TLVs validation, use the no form of this command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
If the CDP mandatory TLVs validation is enabled, incoming CDP packets not
containing the mandatory TLVs are discarded and the invalid error counter is
incremented.
Example
cdp pdu
To specify how to deal with CDP packets when CDP is disabled globally, use the
cdp pdu Global Configuration mode command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 110
CDP Commands
cdp run 7
Parameters
Default Configuration
Bridging
Command Mode
User Guidelines
When CDP is globally enabled, CDP packets are filtered (discarded) on the
CDP-disabled ports.
In the flooding mode, the VLAN filtering rules are not applied, but the STP rules are
applied. In case of MSTP, CDP packets are classified to the instance 0.
Example
The following example specifies that when CDP is globally disabled, CDP packets
are flooded to all ports that are in the STP forwarding state:
cdp run
To enable CDP globally on the switch, use the cdp run Global Configuration mode
command.
To disable CDP globally on the switch, use the no form of this command.
Syntax
cdp run
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 111
CDP Commands
cdp timer 7
no cdp run
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
To learn and advertise CDP information, CDP must be globally enabled and also
enabled on the interfaces. By default, CDP is enabled globally and enabled on all
interfaces.
Example
cdp timer
To specify how often CDP packets are transmitted, use the cdp timer Global
Configuration mode command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 112
CDP Commands
clear cdp counter 7
Parameters
Default Configuration
Command Mode
Example
Syntax
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 113
CDP Commands
clear cdp table 7
clear cdp table
To delete all entries in the CDP cache table, use the clear cdp table Privileged
EXEC Mode command.
Syntax
Parameters
N/A
Command Mode
Example
show cdp
To show the CDP global settings, use the show cdp Privileged EXEC mode
command.
Syntax
show cdp
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 114
CDP Commands
show cdp entry 7
CDP log duplex mismatch is globally enabled
CDP log native VLAN mismatch is globally enabled
CDP log voice VLAN mismatch is globally enabled
Mandatory TLVs validation is enabled
Sending CDPv2 advertisements is enabled
Sending Appliance TLV is enabled
Device ID format is Host name
Sending CDP packets every 200 seconds
Sending a holdtime value of 180 seconds
CDP packets handling mode is flooding
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 115
CDP Commands
show cdp interfaces 7
show cdp interfaces
To show information for the interfaces on which CDP is enabled, use the show cdp
interfaces Privileged EXEC mode command.
Syntax
Parameters
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 116
CDP Commands
show cdp neighbor 7
Parameters
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 117
CDP Commands
show cdp tlv 7
show cdp tlv
To show the local device information advertised by the CDP protocol for specific
interfaces, use the show cdp tlv Privileged EXEC mode command.
Syntax
Parameters
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 118
CDP Commands
show cdp traffic global 7
Parameters
N/A
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
Total packets output, Total number of CDP packets received and transmitted
input on all interfaces.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 119
CDP Commands
show cdp traffic (Interface) 7
show cdp traffic (Interface)
To show the CDP traffic counters per interface, use the show cdp traffic Privileged
EXEC mode command.
Syntax
Parameters
Command Mode
User Guidelines
CDP statistics for an interface are only displayed if CDP is enabled globally and on
the interface.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 120
CDP Commands
show cdp traffic (Interface) 7
fa5 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa6 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa7 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa8 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa9 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa10 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa11 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa12 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa13 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa14 :
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 121
CDP Commands
show cdp traffic (Interface) 7
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa15 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa16 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa17 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa18 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa19 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa20 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa21 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa22 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa23 :
Total packets output: 0, Input: 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 122
CDP Commands
show cdp traffic (Interface) 7
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
fa24 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
gi1 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
gi2 :
Total packets output: 0, Input: 0
Hdr syntax: 0, Chksum error: 0, Invalid packet: 0
No memory in main cache: 0
CDP version 1 advertisements output: 0, Input: 0
CDP version 2 advertisements output: 0, Input: 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 123
8
Clock Commands
clock set
To manually set the system clock, use the clock set Privileged EXEC mode
command.
Syntax
Parameters
• month—The current month using the first three letters of the month name.
(Range: jan–dec)
Example
The following example sets the system time to 13:32:00 on August 7, 2014:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 124
Clock Commands
clock source 8
clock source
To configure an external time source for the system clock, use the clock source
Global Configuration mode command.
Syntax
Parameters
Default Configuration
The default is to use the local time as the source of the system clock.
Command Mode
Example
The following example configures the SNTP server as an external time source:
clock summer-time
To enable the switch to automatically switch to the summer time (Daylight Saving
Time), use the clock summer-time Global Configuration mode command.
Syntax
clock summer-time zone recurring {usa | eu | {week date month HH:MM week
month date HH:MM}} [offset]
clock summer-time zone date month day year HH:MM month day year HH:MM
[offset]
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 125
Clock Commands
clock summer-time 8
no clock summer-time
Parameters
- usa—Specifies that the summer time rules are the United States rules.
- eu—Specifies that the summer time rules are the European Union rules.
Default Configuration
Command Mode
User Guidelines
In both the date and recurring forms of the command, the first part of the command
specifies when the summer time begins, and the second part specifies when it
ends. All times are relative to the local time zone. The start time is relative to the
standard time. The end time is relative to the summer time. If the starting month is
chronologically after the ending month, the system assumes that you are in the
southern hemisphere.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 126
Clock Commands
clock timezone 8
Example
switchxxxxxx(config)# clock summer-time abc date apr 1 2010 09:00 aug 2 2010
09:00
clock timezone
To set the time zone of the switch, use the clock timezone Global Configuration
command.
To use the default time zone, use the no form of this command.
Syntax
no clock timezone
Parameters
Command Mode
User Guidelines
The system internally keeps time in UTC, so this command is used only for display
purposes and when the time is manually set.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 127
Clock Commands
show clock 8
show clock
To show the system time and date, use the show clock Privileged EXEC mode
command.
Syntax
Parameters
Command Mode
Examples
Example 1—The following example displays the system time and date:
Example 2—The following example displays the system time and date along with
the time zone and the summer time configuration:
Time zone:
Acronym is abc
Offset is UTC+2:32
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 128
Clock Commands
show sntp configuration 8
show sntp configuration
To show the SNTP server defined on the switch, use the show sntp configuration
Privileged EXEC mode command.
Syntax
Parameters
N/A
Command Mode
Example
sntp server
To use SNTP to request and accept Network Time Protocol (NTP) traffic from a
specific server (meaning to accept system time from an SNTP server), use the
sntp server Global Configuration mode command.
Syntax
no sntp
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 129
Clock Commands
sntp server 8
• port port-number—(Optional) Specifies the logical port number used for
the SNTP client on the switch. The default is the well-known IANA port
number for this service, 123. (Range: 1 to 65535)
Default Configuration
Command Mode
Example
The following example configures the switch to accept SNTP traffic from the
server on 192.1.1.1 with port 123:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 130
9
Configuration and Image File Commands
To disable this feature on the switch, use the no form of this command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
After the switch obtains information such as configuration file name and TFTP
server IP address from the DHCP server, it will first automatically download the
specific configuration file from the remote TFTP server, copy the downloaded
configuration to the startup configuration, and then reboot.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 131
Configuration and Image File Commands
boot system 9
Example
boot system
To specify the active system image file that will be loaded at startup, use the boot
system Global Configuration mode command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
The following example specifies image1 as the active system image file:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 132
Configuration and Image File Commands
copy 9
copy
To copy a source file to a destination file, use the copy Privileged EXEC mode
command.
Syntax
copy
Parameters
tftp:// Copy from a TFTP server. The syntax for this alias is
tftp://host/[directory]/filename. The host can be either
identified by an IP address or a hostname.
Command Mode
User Guidelines
The entire copying process may take several minutes and differs from protocol to
protocol and from network to network.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 133
Configuration and Image File Commands
copy 9
Copying a Configuration File from a Server
• Use the copy running-config tftp:// command to copy the current Running
Configuration file to a network server using TFTP.
Examples
Example 1—The following example copies a system image file (file1) from the
TFTP server 172.16.101.101 to the nonactive image file (image1):
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 134
Configuration and Image File Commands
delete backup-config 9
switchxxxxxx# copy tftp://172.16.101.101/file1 flash://image-1
Downloading file...Please Wait...
Upgrade firmware success. Do you want to reboot now? (y/n)
Example 2—The following example copies the Mirror Configuration file, saved by
the system, to the Startup Configuration file:
delete backup-config
To delete the Backup Configuration from the flash memory, use the delete backup-
config Privileged EXEC mode command.
Syntax
delete backup-config
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
The following example deletes the Backup Configuration file from the flash
memory:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 135
Configuration and Image File Commands
delete startup-config 9
delete startup-config
To delete the Startup Configuration from the flash memory, use the delete startup-
config Privileged EXEC mode command. The system will start with the default
configuration during the next startup.
Syntax
delete startup-config
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
The following example deletes the Startup Configuration file from the flash
memory:
dir
To show information for the files in the flash memory, use the dir Privileged EXEC
command.
Syntax
dir
Parameters
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 136
Configuration and Image File Commands
ip dhcp tftp-server file 9
Default Configuration
N/A
Command Mode
Example
switchxxxxxx# dir
File Name Flash Size File Size Modified
------------------------ --------------- --------------- --------------------
--
startup-config 1245 1245 2000-01-01 08:05:03
mirror-config 1245 1245 2000-01-02 10:32:01
rsa2 1679 1679 2000-01-01 08:00:37
dsa2 668 668 2000-01-01 08:00:48
ssl_cert 891 891 2000-01-01 08:01:08
image-1 13828096 7125944 2013-12-27 19:36:56
image-2 13828096 7141865 2014-01-10 17:44:55
To delete the configuration file setting, use the no form of this command.
Syntax
Parameters
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 137
Configuration and Image File Commands
ip dhcp tftp-server ip address 9
Command Mode
User Guidelines
This setting is only active when the DHCP options that the switch receives from
the DHCP server do not include the TFTP server and configuration file information.
In this case, the switch automatically downloads this configuration file from the
TFTP server defined in the ip dhcp tftp-server ip address command.
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 138
Configuration and Image File Commands
management vlan ipv6 dhcp client information refresh 9
Command Mode
User Guidelines
This setting is active only when the DHCP options that the switch receives from
the DHCP server do not include the TFTP server and configuration file information.
In this case, the switch automatically downloads the configuration file defined in
the ip dhcp tftp-server file command from this TFTP server.
Example
To use the default refresh time, use the no form of these commands.
Syntax
management vlan ipv6 dhcp client information refresh minimum {infinity | <600-
4294967294> }
no management vlan ipv6 dhcp client information refresh minimum
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 139
Configuration and Image File Commands
management vlan ipv6 dhcp client stateless 9
Default Configuration
Command Mode
User Guidelines
If the DHCPv6 server has an Information Refresh Time option in reply message, the
switch useS the refresh time defined by the DHCPv6 server, otherwise, the refresh
time defined in this command is used.
However, if the refresh time defined by the DHCPv6 server is smaller than the
minimum refresh time defined in this command, the switch uses the minimum
refresh time defined in this command.
Example
The following example configures the refresh time and the minimum refresh time
for DHCPv6 stateless client:
To disable the DHCPv6 stateless client, use the no form of this command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 140
Configuration and Image File Commands
renew dhcp force-autoconfig 9
Parameters
N/A
Default Configuration
Command Mode
Example
The following example enables the DHCPv6 stateless client on the switch:
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
User Guidelines
After executing this command, the DHCP Auto Configuration procedure will start
on the next DHCP renew for DHCPv4 and on the next information-request refresh
for DHCPv6.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 141
Configuration and Image File Commands
show backup-config 9
Example
show backup-config
To show information of the Backup Configuration file, use the show backup-config
Privileged EXEC mode command.
Syntax
show backup-config
Parameters
N/A
Command Mode
User Guidelines
The Backup Configuration file does not contain all information that can be
displayed in the output. Only nondefault settings are displayed.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 142
Configuration and Image File Commands
show backup-config 9
!
voice vlan oui-table add 00:E0:BB 3COM
voice vlan oui-table add 00:03:6B Cisco
voice vlan oui-table add 00:E0:75 Veritel
voice vlan oui-table add 00:D0:1E Pingtel
voice vlan oui-table add 00:01:E3 Siemens
voice vlan oui-table add 00:60:B9 NEC/Philips
voice vlan oui-table add 00:0F:E2 H3C
voice vlan oui-table add 00:09:6E Avaya
!
!
!
!
spanning-tree mst configuration
name "00:E0:4C:86:70:01"
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface gi1
!
interface gi2
!
interface gi3
!
interface gi4
!
interface gi5
!
interface gi6
!
interface gi7
!
interface gi8
!
interface gi9
!
interface gi10
!
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 143
Configuration and Image File Commands
show boot 9
interface gi11
!
interface gi12
!
interface gi13
!
interface gi14
!
interface gi15
!
interface gi16
!
interface gi17
!
interface gi18
!
interface gi19
!
interface gi20
!
interface gi21
!
interface gi22
!
interface gi23
!
interface gi24
!
interface gi25
!
interface gi26
!
interface gi27
!
interface gi28
!
!
!
switchxxxxxx#
show boot
To show information of the DHCP Auto Configuration feature, use the show boot
Privileged EXEC mode command.
Syntax
show boot
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 144
Configuration and Image File Commands
show bootvar 9
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
show bootvar
To show information of the system image file in the flash memory, use the show
bootvar Privilege EXEC mode command.
Syntax
show bootvar
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 145
Configuration and Image File Commands
show ip dhcp tftp-server 9
1 image-1 1.0.0.14 2014-02-07 09:32:39 Not active
2 image-2 1.0.0.16 2014-02-26 16:02:49 Active*
"*" designates that the image was selected for the next boot
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
The following example shows information of the TFTP servers used for auto
configuration through DHCP:
auto-install status:
Current server
Current file
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 146
Configuration and Image File Commands
show running-config 9
show running-config
To show the entire contents of the current Running Configuration file or show the
contents of the Running Configuration file for specific interfaces, use the show
running-config Privileged EXEC mode command.
Syntax
Parameters
Command Mode
User Guidelines
The Running Configuration file does not contain all of the information that can be
displayed in the output. Only nondefault settings are displayed.
Examples
Example 1—The following example shows the entire Running Configuration file:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 147
Configuration and Image File Commands
show running-config 9
voice vlan oui-table add 00:60:B9 NEC/Philips
voice vlan oui-table add 00:0F:E2 H3C
voice vlan oui-table add 00:09:6E Avaya
!
!
!
!
spanning-tree mst configuration
name "00:E0:4C:86:70:01"
!
!
!
!
!
snmp-server
!
!
!
ip telnet server
ip ssh server
!
!
!
!
!
!
!
!
!
!
interface gi1
!
interface gi2
!
interface gi3
!
interface gi4
!
interface gi5
!
interface gi6
!
interface gi7
!
interface gi8
!
interface gi9
!
interface gi10
!
interface gi11
!
interface gi12
!
interface gi13
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 148
Configuration and Image File Commands
show running-config 9
!
interface gi14
!
interface gi15
!
interface gi16
!
interface gi17
!
interface gi18
!
interface gi19
!
interface gi20
!
interface gi21
!
interface gi22
!
interface gi23
!
interface gi24
!
interface gi25
!
interface gi26
!
interface gi27
!
interface gi28
!
!
!
Example 2—The following example shows the Running Configuration file for fa2
and fa3:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 149
Configuration and Image File Commands
show startup-config 9
show startup-config
To show the contents of the Startup Configuration file, use the show startup-config
Privileged EXEC mode command.
Syntax
show startup-config
Parameters
N/A
Command Mode
User Guidelines
The Startup Configuration file does not contain all information that can be
displayed in the output. Only nondefault settings are displayed.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 150
Configuration and Image File Commands
show startup-config 9
!
spanning-tree mst configuration
name "00:E0:4C:86:70:01"
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface gi1
!
interface gi2
!
interface gi3
!
interface gi4
!
interface gi5
!
interface gi6
!
interface gi7
!
interface gi8
!
interface gi9
!
interface gi10
!
interface gi11
!
interface gi12
!
interface gi13
!
interface gi14
!
interface gi15
!
interface gi16
!
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 151
Configuration and Image File Commands
write 9
interface gi17
!
interface gi18
!
interface gi19
!
interface gi20
!
interface gi21
!
interface gi22
!
interface gi23
!
interface gi24
!
interface gi25
!
interface gi26
!
interface gi27
!
interface gi28
!
!
!
write
To save the current Running Configuration to the Startup Configuration file, use the
write Privileged EXEC mode command.
Syntax
write
Parameters
N/A
Default Configuration
N/A
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 152
Configuration and Image File Commands
write 9
Examples
switchxxxxxx# write
Building configuration...
[OK]
switchxxxxxx#
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 153
10
EEE Commands
To disable the EEE mode on an Ethernet interface, use the no form of this
command.
Syntax
eee enable
no eee enable
Parameters
N/A
Default Configuration
EEE is enabled.
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 154
11
Ethernet Configuration Commands
clear counters
To clear the statistics counters on all interfaces or on a specific interface, use the
clear counters Privileged EXEC Mode command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 155
Ethernet Configuration Commands
clear etherlike statistics 11
clear etherlike statistics
To clear the Etherlike statistics counters on all interfaces, use the clear etherlike
statistics Privileged EXEC Mode command.
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
default interface
To restore an interface to its default settings, use the default interface Interface
Configuration mode command.
Syntax
Parameters
N/A
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 156
Ethernet Configuration Commands
description 11
Example
description
To add a description to an interface, use the description Interface Configuration
mode command.
Syntax
description string
no description
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 157
Ethernet Configuration Commands
duplex 11
duplex
To configure the full or half duplex operation for a given Ethernet interface when
not using auto-negotiation, use the duplex Interface Configuration mode
command.
Syntax
Parameters
Default Configuration
Command Mode
Example
errdisable recovery
To enable errdisable recovery from specific causes and set the recovery interval,
use the errdisable recovery Global Configuration command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 158
Ethernet Configuration Commands
errdisable recovery 11
Syntax
Parameters
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 159
Ethernet Configuration Commands
flowcontrol 11
Command Mode
Example
flowcontrol
To configure flow control on a given interface, use the flowcontrol Interface
Configuration mode command.
Syntax
no flowcontrol
Parameters
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 160
Ethernet Configuration Commands
interface 11
interface
To enter the Interface Configuration mode in order to configure an interface, use
the interface Global Configuration mode command.
Syntax
interface interface-id
Parameters
Default Configuration
N/A
Command Mode
Examples
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 161
Ethernet Configuration Commands
interface range 11
interface range
To execute a command on multiple interfaces simultaneously, use the interface
range command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
User Guidelines
The commands under the interface range are executed independently on each
interface in the range. If the command returns an error on one of the interfaces, it
does not stop the execution of the command on other interfaces.
Example
jumbo-frame
To enable jumbo frames on the switch and set the maximum frame size supported
by the switch, use the jumbo-frame Global Configuration mode command.
To disable jumbo frames on the switch, use the no form of this command.
Syntax
jumbo-frame frame-size
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 162
Ethernet Configuration Commands
show errdisable recovery 11
no jumbo-frame
Parameters
Default Configuration
Command Mode
User Guidelines
Example
The following example enables jumbo frames on the switch and sets the maximum
frame size to 1538 bytes:
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 163
Ethernet Configuration Commands
show interface status 11
Example
Syntax
Parameters
Command Mode
Default Configuration
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 164
Ethernet Configuration Commands
show storm-control 11
Example
show storm-control
To show the storm control settings for all interfaces or for a specific interface, use
the show storm-control Privileged EXEC mode command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 165
Ethernet Configuration Commands
show storm-control 11
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 166
Ethernet Configuration Commands
shutdown 11
gi18 disable Off( 10000) Off( 10000) Off( 10000)
Drop
gi19 disable Off( 10000) Off( 10000) Off( 10000)
Drop
gi20 disable Off( 10000) Off( 10000) Off( 10000)
Drop
gi21 disable Off( 10000) Off( 10000) Off( 10000)
Drop
gi22 disable Off( 10000) Off( 10000) Off( 10000)
Drop
gi23 disable Off( 10000) Off( 10000) Off( 10000)
Drop
gi24 disable Off( 10000) Off( 10000) Off( 10000)
Drop
gi25 disable Off( 10000) Off( 10000) Off( 10000)
Drop
gi26 disable Off( 10000) Off( 10000) Off( 10000)
Drop
gi27 disable Off( 10000) Off( 10000) Off( 10000)
Drop
gi28 disable Off( 10000) Off( 10000) Off( 10000)
Drop
shutdown
To disable an interface, use the shutdown Interface Configuration mode command.
Syntax
shutdown
no shutdown
Parameters
N/A
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 167
Ethernet Configuration Commands
speed 11
Examples
Example 2—The following example restarts the disabled Ethernet port gi5:
speed
To configure the speed for a given Ethernet interface when not using
auto-negotiation, use the speed Interface Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 168
Ethernet Configuration Commands
storm-control action 11
User Guidelines
For 10/100-Mbps ports, if both speed and duplex are set to specific values, the
link operates at the negotiated speed and duplex value.
For 10/100/1000-Mbps ports, if both the speed and duplex are set to specific
values, autonegotiation is disabled.
You can configure the Fast Ethernet port speed as either 10 or 100 Mbps. You
cannot configure the speed on the SFP module ports, but you can configure the
speed to not negotiate (nonegotiate) if it is connected to a device that does not
support autonegotiation. However, when a 1000BASE-T SFP module is inserted
into the SFP module port, you can configure the speed as 10, 100, 1000 Mbps, or
auto.
If the speed is set to auto, the switch negotiates with the device at the other end of
the link for the speed setting and then forces the speed setting to the negotiated
value. The duplex setting remains as configured on each end of the link, which
could result in a duplex setting mismatch.
If both ends of the line support autonegotiation, we highly recommend that you
use the default autonegotiation settings. If one interface supports autonegotiation
and the other end does not, you must manually configure the duplex and speed
settings on the other side.
Example
storm-control action
To set the action when the received storm control packets exceed the maximum
rate on an interface, use the storm-control action Interface Configuration mode
command.
To disable the storm control action, use the no form of this command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 169
Ethernet Configuration Commands
storm-control broadcast 11
no storm-control action
Parameters
Default Configuration
Command Mode
Example
storm-control broadcast
To enable storm control of broadcast traffic on an interface, use the storm-control
broadcast Interface Configuration mode command.
To disable storm control of broadcast traffic, use the no form of this command.
Syntax
storm-control broadcast
no storm-control broadcast
Parameters
N/A
Default Configuration
Disabled
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 170
Ethernet Configuration Commands
storm-control broadcast level 11
Command Mode
Example
Syntax
Parameters
Default Configuration
10000
Command Mode
User Guidelines
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 171
Ethernet Configuration Commands
storm-control enable 11
Example
storm-control enable
To enable storm control on an interface, use the storm-control enable Interface
Configuration mode command.
Syntax
storm-control enable
no storm-control enable
Parameters
N/A
Default Configuration
Disabled
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 172
Ethernet Configuration Commands
storm-control ifg 11
storm-control ifg
To set the interframe configuration of storm control counting, use the storm-control
ifg Global Configuration command.
Syntax
Parameters
Default Configuration
Exclude
Command Mode
Example
storm-control unit
To set the unit of storm control counting, use the storm-control unit Global
Configuration command.
Syntax
Parameters
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 173
Ethernet Configuration Commands
storm-control unknown-multicast 11
Command Mode
Example
storm-control unknown-multicast
To enable storm control for unknown multicast traffic on an interface, use the
storm-control unknown-multicast Interface Configuration mode command.
To disable storm control for unknown multicast traffic, use the no form of this
command.
Syntax
storm-control unknown-multicast
no storm-control unknown-multicast
Parameters
N/A
Default Configuration
Disabled
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 174
Ethernet Configuration Commands
storm-control unknown-multicast level 11
storm-control unknown-multicast level
To configure the maximum rate of unknown multicast traffic on an interface, use
the storm-control unknown-multicast level Interface Configuration mode
command.
Syntax
Parameters
Default Configuration
10000
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 175
Ethernet Configuration Commands
storm-control unknown-unicast 11
storm-control unknown-unicast
To enable storm control for unknown unicast traffic on an interface, use the storm-
control unknown-unicast Interface Configuration mode command.
To disable storm control for unknown unicast traffic, use the no form of this
command.
Syntax
storm-control unknown-unicast
no storm-control unknown-unicast
Parameters
N/A
Default Configuration
Disabled
Command Mode
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 176
Ethernet Configuration Commands
storm-control unknown-unicast level 11
Parameters
Default Configuration
10000
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 177
12
GVRP Commands
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 178
GVRP Commands
gvrp enable (Global) 12
gvrp enable (Global)
To enable GVRP globally on the switch, use the gvrp enable Global Configuration
mode command.
Syntax
gvrp enable
no gvrp enable
Parameters
N/A
Default Configuration
Command Mode
Example
Syntax
gvrp enable
no gvrp enable
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 179
GVRP Commands
gvrp registration-mode 12
Command Mode
User Guidelines
An access port does not dynamically join a VLAN because it is always a member
of a single VLAN. Membership in an untagged VLAN is propagated in the same
way as in a tagged VLAN. That is, the PVID must be manually defined as the
untagged VLAN ID.
Example
gvrp registration-mode
To deregister all dynamic VLANs on an interface and prevent VLAN creation or
registration on the interface, use the gvrp registration-mode Interface
Configuration mode command.
Syntax
Parameters
Default Configuration
Normal mode
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 180
GVRP Commands
gvrp vlan-creation-forbid 12
Example
gvrp vlan-creation-forbid
To disable dynamic VLAN creation or modification, use the gvrp vlan-creation-
forbid Interface Configuration mode command.
Syntax
gvrp vlan-creation-forbid
no gvrp vlan-creation-forbid
Parameters
N/A
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 181
GVRP Commands
show gvrp 12
show gvrp
To show the GVRP configuration, use the show gvrp Privileged EXEC mode
command.
Syntax
show gvrp
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 182
GVRP Commands
show gvrp configuration 12
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 183
GVRP Commands
show gvrp error-statictics 12
show gvrp error-statictics
To show the GVRP error statistics for all interfaces or for a specific interface, use
the show gvrp error-statistics Privileged EXEC mode command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 184
GVRP Commands
show gvrp statistics 12
gi19 0 0 0 0 0
gi20 0 0 0 0 0
gi21 0 0 0 0 0
gi22 0 0 0 0 0
gi23 0 0 0 0 0
gi24 0 0 0 0 0
gi25 0 0 0 0 0
gi26 0 0 0 0 0
gi27 0 0 0 0 0
gi28 0 0 0 0 0
po1 0 0 0 0 0
po2 0 0 0 0 0
po3 0 0 0 0 0
po4 0 0 0 0 0
po5 0 0 0 0 0
po6 0 0 0 0 0
po7 0 0 0 0 0
po8 0 0 0 0 0
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 185
GVRP Commands
show gvrp statistics 12
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa2
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa3
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa4
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 186
GVRP Commands
show gvrp statistics 12
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa5
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa6
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa7
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 187
GVRP Commands
show gvrp statistics 12
LeaveAll TX : 0
Port id : fa8
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa9
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa10
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa11
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 188
GVRP Commands
show gvrp statistics 12
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa12
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa13
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa14
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 189
GVRP Commands
show gvrp statistics 12
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa15
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa16
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa17
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa18
Total RX : 0
JoinEmpty RX : 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 190
GVRP Commands
show gvrp statistics 12
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa19
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa20
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa21
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 191
GVRP Commands
show gvrp statistics 12
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa22
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa23
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : fa24
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : gi1
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 192
GVRP Commands
show gvrp statistics 12
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : gi2
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : po1
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : po2
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 193
GVRP Commands
show gvrp statistics 12
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : po3
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : po4
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : po5
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 194
GVRP Commands
show gvrp statistics 12
Port id : po6
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : po7
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Port id : po8
Total RX : 0
JoinEmpty RX : 0
JoinIn RX : 0
Empty RX : 0
LeaveIn RX : 0
LeaveEmpty RX : 0
LeaveAll RX : 0
Total TX : 0
JoinEmpty TX : 0
JoinIn TX : 0
Empty TX : 0
LeaveIn TX : 0
LeaveEmpty TX : 0
LeaveAll TX : 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 195
13
IGMP Snooping Commands
Syntax
Parameters
Command Mode
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 196
IGMP Snooping Commands
ip igmp filter 13
Parameters
N/A
Command Mode
Example
ip igmp filter
To control whether or not all hosts on a Layer 2 interface can join one or more IP
multicast groups by applying an IGMP profile to the interface, use the ip igmp filter
Interface Configuration mode command.
To remove an IGMP profile from the interface, use the no form of this command.
Syntax
no ip igmp filter
Parameter
Command Mode
User Guidelines
An IGMP profile can be applied to one or more interfaces, but one interface can
have only one profile applied to it.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 197
IGMP Snooping Commands
ip igmp max-groups 13
switchxxxxxx(config)# interface gi1
switchxxxxxx(config-if)# ip igmp filter 22
ip igmp max-groups
To set the maximum number of IGMP groups that an interface can join or to
configure the IGMP throttling action when the maximum number of entries in the
forwarding table is reached, use the ip igmp max-groups Interface Configuration
mode command.
To set the maximum number of IGMP groups back to the default (no maximum
limit) or to return to the default throttling action (the report is dropped), use the no
form of this command.
Syntax
no ip igmp max-groups
Parameters
• action replace—Replaces the existing group with the new group for which
the IGMP report was received when the maximum number of entries in the
IGMP Snooping forwarding table is reached.
Command Mode
User Guidelines
You can use this command only on Layer 2 physical interfaces and on logical
EtherChannel interfaces.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 198
IGMP Snooping Commands
ip igmp profile 13
• If you configure the throttling action as deny and set the maximum group
limitation, the entries that were previously in the forwarding table are not
removed but are aged out. After these entries are aged out, when the
maximum number of entries in the forwarding table is reached, the switch
drops the next IGMP report received on the interface.
• If you configure the throttling action as replace and set the maximum group
limitation, the entries that were previously in the forwarding table are
removed. When the maximum number of entries in the forwarding table is
reached, the switch replaces a randomly selected multicast entry with the
received IGMP report.
Example
ip igmp profile
To create an IGMP profile and enter the IGMP Profile Configuration mode, use the
ip igmp profile Global Configuration mode command. From this mode, you can
specify the settings of the IGMP profile to be used for filtering IGMP membership
reports from a switch port.
Syntax
Parameters
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 199
IGMP Snooping Commands
ip igmp snooping 13
Example
ip igmp snooping
To enable IGMP Snooping on the switch, use the ip igmp snooping Global
Configuration mode command.
To disable IGMP Snooping on the switch, use the no form of this command.
Syntax
ip igmp snooping
no ip igmp snooping
Parameters
N/A
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 200
IGMP Snooping Commands
ip igmp snooping version 13
ip igmp snooping version
To configure the IGMP Snooping version, use the ip igmp snooping version Global
Configuration mode command.
Syntax
Parameters
Default Configuration
IGMPv2
Command Mode
Example
To disable IGMP Snooping report suppression and forward all IGMP reports to
multicast routers, use the no form of this command.
Syntax
Parameters
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 201
IGMP Snooping Commands
ip igmp snooping unknown-multicast action 13
Default Configuration
Command Mode
User Guidelines
IGMP Snooping report suppression is supported only when the multicast query
has IGMPv1 and IGMPv2 reports. This feature is not supported when the query
includes IGMPv3 reports.
The switch uses IGMP Snooping report suppression to forward only one IGMP
report per multicast router query to multicast devices. When IGMP router
suppression is enabled, the switch sends the first IGMP report from all hosts for a
group to all the multicast routers. The switch does not send the remaining IGMP
reports for the group to the multicast routers. This feature prevents duplicate
reports from being sent to the multicast devices.
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 202
IGMP Snooping Commands
ip igmp snooping vlan 13
Parameters
Default Configuration
Command Mode
Example
To disable IGMP Snooping on specific VLANs, use the no form of this command.
Syntax
Parameters
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 203
IGMP Snooping Commands
ip igmp snooping vlan immediate-leave 13
User Guidelines
Example
To disable IGMP Snooping immediate leave processing, use the no form of this
command.
Syntax
Parameters
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 204
IGMP Snooping Commands
ip igmp snooping vlan forbidden mrouter 13
ip igmp snooping vlan forbidden mrouter
To forbid a port from being defined as a multicast router port by static
configuration or by automatic learning, use the ip igmp snooping vlan forbidden
mrouter Global Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
A port that is a forbidden Mrouter port cannot be a multicast router port (for
example, cannot be learned dynamically or assigned statically).
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 205
IGMP Snooping Commands
ip igmp snooping vlan forbidden forward-all 13
ip igmp snooping vlan forbidden forward-all
To enable the IGMP Snooping forbidden forward-all port processing on a VLAN,
use the ip igmp snooping vlan forbidden forward-all Global Configuration mode
command.
Syntax
Parameter
Default Configuration
Command Mode
User Guidelines
All registered multicast entries will always remove the forbidden forward-all.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 206
IGMP Snooping Commands
ip igmp snooping vlan last-member-query-count 13
ip igmp snooping vlan last-member-query-count
To configure the last member query counter on a VLAN, use the ip igmp snooping
vlan last-member-query-count Global Configuration mode command.
Syntax
Parameter
Default Configuration
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 207
IGMP Snooping Commands
ip igmp snooping vlan mrouter 13
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 208
IGMP Snooping Commands
ip igmp snooping vlan querier 13
Default Configuration
Command Mode
User Guidelines
Example
To disable the IGMP querier on specific VLANs, use the no form of this command.
Syntax
Parameters
Disabled
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 209
IGMP Snooping Commands
ip igmp snooping vlan querier version 13
Command Mode
User Guidelines
When the IGMP Snooping querier is enabled, it starts after a quarter of operation
query-interval with no IGMP traffic being detected from a multicast router.
Example
Syntax
Parameters
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 210
IGMP Snooping Commands
ip igmp snooping vlan query-interval 13
switchxxxxxx(config)# ip igmp snooping vlan 1 querier version 3
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 211
IGMP Snooping Commands
ip igmp snooping vlan response-time 13
ip igmp snooping vlan response-time
To configure the maximum query response time on a VLAN, use the ip igmp
snooping vlan response-time Global Configuration mode command.
Syntax
Parameters
Default Configuration
10
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 212
IGMP Snooping Commands
ip igmp snooping vlan static 13
Syntax
Parameters
N/A
Command Mode
Example
Syntax
Parameter
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 213
IGMP Snooping Commands
ip igmp snooping vlan mrouter 13
Default Configuration
Command Mode
User Guidelines
Example
To remove the ports as the members of a static Mrouter port, use the no form of
this command.
Syntax
Parameter
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 214
IGMP Snooping Commands
ip igmp snooping vlan forward-all 13
Default Configuration
Command Mode
User Guidelines
Example
Syntax
Parameter
Default Configuration
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 215
IGMP Snooping Commands
profile range 13
Command Mode
User Guidelines
Example
profile range
To create an IGMP profile, use the profile range IGMP-profile Configuration mode
command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 216
IGMP Snooping Commands
show ip igmp filter 13
switchxxxxxx(config)# ip igmp profile 20
switchxxxxxx(config-igmp-profile)# profile range ip 225.0.0.0 225.0.0.255
action permit
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 217
IGMP Snooping Commands
show ip igmp max-group 13
fa21 : None
fa22 : None
fa23 : None
fa24 : None
gi1 : None
gi2 : None
po1 : None
po2 : None
po3 : None
po4 : None
po5 : None
po6 : None
po7 : None
po8 : None
Syntax
Parameters
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 218
IGMP Snooping Commands
show ip igmp max-group action 13
show ip igmp max-group action
To display the action for a specific interface or for all interfaces when the number
of IGMP groups exceeds the maximum group number, use the show ip igmp max-
group action Privileged EXEC mode command.
Syntax
Parameters
Command Mode
User Guidelines
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 219
IGMP Snooping Commands
show ip igmp snooping 13
Command Mode
Example
Syntax
Parameters
N/A
Command Mode
Example
Snooping : Enabled
Report Suppression : Enabled
Operation Version : v2
Forward Method : mac
Unknown Multicast Action : Flood
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 220
IGMP Snooping Commands
show ip igmp snooping forward-all 13
Packet Statistics
Total RX : 79
Valid RX : 42
Invalid RX : 37
Other RX : 0
Leave RX : 0
Report RX : 0
General Query RX : 0
Specail Group Query RX : 0
Specail Group & Source Query RX : 0
Leave TX : 0
Report TX : 0
General Query TX : 0
Specail Group Query TX : 0
Specail Group & Source Query TX : 0
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 221
IGMP Snooping Commands
show ip igmp snooping groups 13
show ip igmp snooping groups
To display multicast groups learned by IGMP Snooping, use the show ip igmp
snooping groups Privileged EXEC mode command.
Syntax
Parameters
Command Mode
User Guidelines
To display all multicast groups learned by IGMP Snooping, use the show ip igmp
snooping groups command without parameters.
To display a needed subset of all multicast groups learned by IGMP Snooping, use
the show ip igmp snooping groups command with parameters.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 222
IGMP Snooping Commands
show ip igmp snooping mrouter 13
show ip igmp snooping mrouter
To display information on dynamically, static, or forbidden learned multicast router
port for all VLANs or for a specific VLAN, use the show ip igmp snooping mrouter
Privileged EXEC mode command.
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 223
IGMP Snooping Commands
show ip igmp snooping querier 13
show ip igmp snooping querier
To display information for the IGMP Snooping querier, use the show ip igmp
snooping querier Privileged EXEC mode command.
Syntax
Parameters
N/A
Command Mode
Example
Total Entry 2
Syntax
Parameters
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 224
IGMP Snooping Commands
show ip igmp snooping vlan 13
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 225
14
IP Addressing Commands
clear arp-cache
To delete all dynamic IP entries or a specific IP entry from the ARP cache, use the
clear arp-cache Privileged EXEC mode command.
Syntax
Parameters
Example
ip default-gateway
To define a default gateway, use the ip default-gateway Global Configuration
mode command.
Syntax
ip default-gateway IPv4-ADDR
no ip default-gateway
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 226
IP Addressing Commands
ip domain lookup 14
Parameters
Command Mode
Example
ip domain lookup
To enable the IP Domain Naming System (DNS)-based host-name-to-address
translation, use the ip domain lookup Global Configuration mode command.
Syntax
ip domain lookup
no ip domain lookup
Parameters
N/A
Default Configuration
Enabled
Command Mode
User Guidelines
This command enables the switch to query domain name for DNS server.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 227
IP Addressing Commands
ip domain name 14
Example
ip domain name
To define a default domain name that the switch uses to complete unqualified host
names, use the ip domain name Global Configuration mode command.
To delete the static-defined default domain name, use the no form of this
command.
Syntax
no ip domain name
Parameters
Default Configuration
Command Mode
User Guidelines
Any IP hostname that does not contain a domain name (that is, any name without a
dot) will have the dot and the default domain name appended to it before being
added to the host table.
Domain names and hostnames are restricted to the ASCII letters A through Z
(case-insensitive), the digits 0 through 9, the underscore and the hyphen. A period
(.) is used to separate labels.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 228
IP Addressing Commands
ip host 14
The maximum size of each domain level is 63 characters. The maximum name size
is 255 bytes.
Example
ip host
To define the static host-name-to-address mapping in the DNS hostname cache,
use the ip host Global Configuration mode command
Syntax
Parameters
Default Configuration
No host is defined.
Command Mode
User Guidelines
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 229
IP Addressing Commands
ip name-server 14
An IP application will receive the IP addresses in the following order:
Example
ip name-server
To configure the DNS servers, use the ip name-server Global Configuration mode
command.
Syntax
no ip name-server
Parameters
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 230
IP Addressing Commands
management vlan ip-address 14
switchxxxxxx(config)# ip name-server 192.168.1.20
switchxxxxxx(config)# ip name-server 192.168.1.20 192.168.1.50
Syntax
Parameters
• ip-address—The IP address.
• mask—The network mask of the IP address.
Default Configuration
Command Mode
User Guidelines
If a dynamic IP address is already defined, the user must enter the no management
ip dhcp client command to disable it before setting a static IP address.
If you modify the static IP address, enter the no management ip dhcp client
command to automatically add.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 231
IP Addressing Commands
management vlan ip dhcp client 14
management vlan ip dhcp client
To acquire an IP address for the management VLAN from the DHCP server, use the
management vlan ip dhcp client Global Configuration mode command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
This command enables the switch to dynamically learn its IP address by using the
DHCP protocol.
DHCP client configuration on the switch implicitly removes the static IP address
configuration on the management VLAN.
If the switch is configured to obtain its IP address from a DHCP server, it sends a
DHCPDISCOVER message to provide information about itself to the DHCP server
on the network.
The no management vlan ip dhcp client command releases any IP address that
was acquired, and sends a DHCPRELEASE message.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 232
IP Addressing Commands
show arp 14
show arp
To display all entries in the ARP table, use the show arp Privileged EXEC mode
command.
Syntax
show arp
Parameters
N/A
Command Mode
Example
show hosts
To display the DNS servers defined on the switch, use the show hosts Privileged
EXEC mode command.
Syntax
show hosts
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 233
IP Addressing Commands
show ip 14
Name/address lookup is enabled
Cache Table
Flags: (STA, OK)
STA - Static
OK - Okay
show ip
To display the IP address of the management VLAN, use the show ip Privileged
EXEC mode command.
Syntax
show ip
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
switchxxxxxx# show ip
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 234
IP Addressing Commands
show ip dhcp 14
IP Address: 192.168.1.254
Subnet Netmask: 255.255.255.0
Default Gateway: 192.168.1.1
show ip dhcp
To display the IP DHCP status, use the show ip dhcp Privileged EXEC mode
command.
Syntax
show ip dhcp
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 235
15
IP ARP Inspection Commands
Syntax
Parameters
Example
ip arp inspection
To enable dynamic ARP inspection on the switch, use the ip arp inspection Global
Configuration mode command.
To disable dynamic ARP inspection on the switch, use the no form of this
command.
Syntax
ip arp inspection
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 236
IP ARP Inspection Commands
ip arp inspection limit rate 15
no ip arp inspection
Parameters
N/A
Default Configuration
Command Mode
Example
Syntax
Parameters
Default Configuration
The default rate is 15 pps on untrusted interfaces, assuming that the network is a
switched network with a host connecting to as many as 15 new hosts per second.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 237
IP ARP Inspection Commands
ip arp inspection limit rate 15
Command Mode
User Guidelines
This command prevents dynamic ARP inspection from using all of the switch
resources if a DoS attack occurs.
The rate applies to both trusted and untrusted interfaces. Configure appropriate
rates on trunks to process packets across multiple VLANs that enabled the
dynamic ARP inspection function.
After the switch receives more than the configured rate of packets every second
consecutively over a number of burst seconds, the interface is placed into an
error-disabled state.
Unless you explicitly configure a rate limit on an interface, changing the trust state
of the interface also changes its rate limit to the default value for that trust state.
After you configure the rate limit, the interface retains the rate limit even when its
trust state is changed. If you enter the no ip arp inspection limit command, the
interface reverts to its default rate limit.
You should configure trunk ports with higher rates to reflect their aggregation.
When the rate of incoming packets exceeds the user-configured rate, the switch
places the interface into an error-disabled state. The errordisable recovery feature
automatically removes the port from the error-disabled state according to the
recovery setting.
The rate of incoming ARP packets on EtherChannel ports equals to the sum of the
incoming rate of ARP packets from all channel members. Configure the rate limit
for EtherChannel ports only after examining the rate of incoming ARP packets on
all channel members.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 238
IP ARP Inspection Commands
ip arp inspection trust 15
ip arp inspection trust
To configure the trust state that determines which incoming ARP packets are
inspected for an interface, use the ip arp inspection trust Interface Configuration
mode command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
The switch does not check ARP packets that are received on the trusted interface.
It only forwards these packets.
For untrusted interfaces, the switch intercepts all ARP requests and responses. It
verifies that the intercepted packets have valid IP-to-MAC address bindings
before updating the local cache and before forwarding the packet to the
appropriate destination.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 239
IP ARP Inspection Commands
ip arp inspection validate 15
ip arp inspection validate
To validate ARP packets on the switch, use the ip arp inspection validate Global
Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
You must specify at least one of the keywords. Each command overrides the
configuration of the previous command; that is, if a command enables src-mac and
dst-mac validations, and a second command enables IP validation only, the src-
mac and dst-mac validations are disabled as a result of the second command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 240
IP ARP Inspection Commands
ip arp inspection vlan 15
The allow-zeros keyword interacts with ARP ACLs in this way:
• If you configure an ARP ACL to deny ARP probes, they are dropped even if
the allow-zeros keyword is specified.
• If you configure an ARP ACL that specifically permits ARP probes and
configure the ip arp inspection validate ip command, ARP probes are
dropped unless you enter the allow-zeros keyword.
Example
To disable dynamic ARP inspection on specific VLANs, use the no form of this
command.
Syntax
Parameters
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 241
IP ARP Inspection Commands
show ip arp inspection 15
User Guidelines
You must specify the VLANs on which to enable dynamic ARP inspection.
Dynamic ARP inspection is supported on access ports, trunk ports, EtherChannel
ports, and private VLAN ports.
Example
Syntax
Parameters
N/A
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 242
IP ARP Inspection Commands
show ip arp inspection interfaces 15
Field Description
Source Mac Validation Shows whether to compare the source MAC address
in the Ethernet header against the sender MAC
address in ARP body.
IP Address Validation Shows whether to compare the ARP body for invalid
and unexpected IP addresses.
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 243
IP ARP Inspection Commands
show ip arp inspection statistics 15
The following table describes the significant fields shown in the example:
Field Description
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 244
IP ARP Inspection Commands
show ip arp inspection statistics 15
----+---------+-------------------+-----------------+-----------------------
+-----------------------+------------------------
1| 0 | 0 | 0 | 0 |
0 | 0
The following table describes the significant fields shown in the example:
Field Description
Source MAC Failures Total number of ARP packets that include wrong
source MAC addresses.
Dest MAC Failures Total number of ARP packets that include wrong
destination MAC addresses.
SIP Validation Failures Total number of ARP packets that the source IP
address validation fails.
DIP Validation Failures Total number of ARP packets that the destination IP
address validation fails.
IP-MAC Mismatch Total number of ARP packets that the IP address does
Failures not match the MAC address.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 245
16
IP DHCP Snooping Commands
Syntax
Parameters
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 246
IP DHCP Snooping Commands
clear ip dhcp snooping binding vlan 16
Parameters
Command Mode
Example
Syntax
Parameters
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 247
IP DHCP Snooping Commands
clear ip dhcp snooping database statistics 16
clear ip dhcp snooping database statistics
To clear the DHCP snooping database statistics, use the clear ip dhcp snooping
database statistics Privileged EXEC mode command.
Syntax
Parameters
N/A
Command Mode
Example
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 248
IP DHCP Snooping Commands
ip dhcp snooping 16
ip dhcp snooping
To enable DHCP snooping globally on the switch, use the ip dhcp snooping Global
Configuration mode command.
Syntax
ip dhcp snooping
no ip dhcp snooping
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
To apply any DHCP snooping configuration, you must enable DHCP snooping
globally on the switch. DHCP snooping is not active until you enable DHCP
snooping on a VLAN by using the ip dhcp snooping vlan Global Configuration
mode command.
Example
To disable the agent, reset the timeout value, or reset the write-delay value, use
the no form of this command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 249
IP DHCP Snooping Commands
ip dhcp snooping database 16
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
The DHCP snooping binding database can have up to 256 bindings. Because both
NVRAM and flash memory have limited storage capacity, we recommend that you
store a binding file on a TFTP server. You must create an empty file at the
configured URL on network-based URLs (such as TFTP and FTP) before the switch
can write bindings to the binding file at that URL for the first time.
To save the DHCP snooping binding database in the switch NVRAM, use the ip
dhcp snooping database flash command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 250
IP DHCP Snooping Commands
ip dhcp snooping information option 16
To reset the timeout value, use the no ip dhcp snooping database timeout
command.
To reset the write-delay value, use the no ip dhcp snooping database write-delay
command.
Example
To disable DHCP option-82 data insertion, use the no form of this command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
You must enable DHCP snooping globally by using the ip dhcp snooping Global
Configuration mode command to apply any DHCP snooping configuration.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 251
IP DHCP Snooping Commands
ip dhcp snooping information option allow-untrusted 16
When the option-82 feature is enabled and a switch receives a DHCP request from
a host, it adds the option-82 information in the packet. The option-82 information
contains the switch MAC address (the remote ID suboption) and the port identifier,
vlan-mod-port, from which the packet is received (circuit ID suboption). The switch
forwards the DHCP request that includes the option-82 field to the DHCP server.
When the DHCP server receives the packet, it can use the remote ID, the circuit ID,
or both to assign IP addresses and implement policies, such as restricting the
number of IP addresses that can be assigned to a single remote ID or a circuit ID.
The DHCP server then echoes the option-82 field in the DHCP reply.
The DHCP server unicasts the reply to the switch if the request was relayed to the
server by the switch. When both the client and server are on the same subnet, the
server broadcasts the reply. The switch inspects the remote ID and possibly the
circuit ID fields to verify that it originally inserted the option-82 data. The switch
removes the option-82 field and forwards the packet to the switch port that
connects to the DHCP host that sends the DHCP request.
Example
To configure the switch to drop these packets from the edge switch, use the no
form of this command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 252
IP DHCP Snooping Commands
ip dhcp snooping limit rate 16
Default Configuration
The switch drops DHCP packets with option-82 information which are received on
the untrusted ports that might be connected to an edge switch.
Command Mode
User Guidelines
You may want an edge switch to which a host is connected to insert DHCP option-
82 information at the edge of your network. You may also want to enable the DHCP
security features, such as DHCP snooping, IP source guard, or dynamic ARP
inspection, on an aggregation switch. However, if DHCP snooping is enabled on
the aggregation switch, the switch drops packets with option-82 information that
are received on an untrusted port and does not learn DHCP snooping bindings for
connected devices on a trusted interface.
If the edge switch to which a host is connected inserts option-82 information, and
you want to use DHCP snooping on an aggregation switch, enter the ip dhcp
snooping information option allow-untrusted command on the aggregation switch.
The aggregation switch can learn the bindings for a host even though the
aggregation switch receives DHCP snooping packets on an untrusted port. You
can also enable the DHCP security features on the aggregation switch. The port on
the edge switch to which the aggregation switch is connected must be configured
as a trusted port.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 253
IP DHCP Snooping Commands
ip dhcp snooping trust 16
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
The rate limit normally applies to untrusted interfaces. If you want to configure rate
limiting for trusted interfaces, trusted interfaces may aggregate DHCP traffic on
multiple VLANs (some of which may not be snooped) on the switch, and you will
need to adjust the interface rate limit to a higher value.
If the rate limit is exceeded, the interface is error-disabled. If you enable error
recovery by entering the errdisable recovery cause dhcp-rate-limit Global
Configuration mode command, the interface retries the operation again when all
causes have timed out. If the error recovery function is not enabled, the interface
stays in the error-disabled state until you enter the shutdown and no shutdown
Interface Configuration mode commands.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 254
IP DHCP Snooping Commands
ip dhcp snooping verify mac-address 16
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
Configure the ports that are connected to a DHCP server or to other switches or
routers as trusted ports. Configure the ports that are connected to DHCP clients as
untrusted ports.
Example
To configure the switch to not verify the MAC addresses, use the no form of this
command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 255
IP DHCP Snooping Commands
ip dhcp snooping vlan 16
Parameters
N/A
Default Configuration
Disabled
Command Mode
User Guidelines
Example
To disable DHCP snooping on specific VLANs, use the no form of this command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 256
IP DHCP Snooping Commands
ip dhcp snooping vlan information option circuit-id 16
Command Mode
User Guidelines
You must first globally enable DHCP snooping on the switch before enabling
DHCP snooping on a VLAN.
Example
Syntax
Parameters
N/A
Command Mode
User Guidelines
You must globally enable DHCP snoopingDHCP snooping on the switch by using
the ip dhcp snooping Global Configuration mode command to apply any DHCP
snooping configuration.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 257
IP DHCP Snooping Commands
renew ip dhcp snooping database 16
When the option-82 feature is enabled, the default circuit-ID suboption is the
switch VLAN and port identifier in the format of vlan-mod-port. This command
allows you to configure a string of ASCII characters to be the circuit ID. When you
want to override the vlan-mod-port format type and use the circuit ID to define the
subscriber information, use the override keyword.
Example
Syntax
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 258
IP DHCP Snooping Commands
show ip dhcp snooping 16
show ip dhcp snooping
To display the DHCP snooping configuration, use the show ip dhcp snooping
Privileged EXEC command.
Syntax
Parameters
N/A
Command Mode
Example
Syntax
Parameters
N/A
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 259
IP DHCP Snooping Commands
show ip dhcp snooping database 16
Example
Total Entry: 0
Syntax
Parameters
N/A
Command Mode
Example
Type : None
FileName :
Write delay Timer : 300 seconds
Abort Timer : 300 seconds
Total Attempts : 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 260
IP DHCP Snooping Commands
show ip dhcp snooping information option format remote-id 16
Successful Transfers : 0 Failed Transfers : 0
Successful Reads : 0 Failed Reads : 0
Successful Writes : 0 Failed Writes : 0
Syntax
Parameters
N/A
Command Mode
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 261
IP DHCP Snooping Commands
show ip dhcp snooping interfaces statistics 16
Command Mode
Example
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 262
IP DHCP Snooping Commands
show ip dhcp snooping interfaces statistics 16
| 0
fa4 | 0 | 0 | 0 | 0
| 0
fa5 | 0 | 0 | 0 | 0
| 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 263
17
IP Source Guard Commands
ip source binding
To add a static IP source binding rule for all interfaces or for an interface, use the ip
source binding Global Configuration mode command.
To delete a static IP source binding rule for all interfaces or for an interface, use the
no form of this command.
Syntax
Parameters
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 264
IP Source Guard Commands
ip source binding max-entry 17
User Guidelines
A static IP source binding entry has an IP address, its associated MAC address,
and its associated VLAN number. The entry is based on the MAC address and the
VLAN number. If you modify an entry by changing only the IP address, the switch
updates the entry instead of creating a new one.
Example
Syntax
Parameters
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 265
IP Source Guard Commands
ip verify source 17
ip verify source
To enable IP source guard on an interface, use the ip verify source Interface
Configuration mode command.
Syntax
no ip verify source
Parameters
Default Configuration
Command Mode
User Guidelines
To enable IP source guard with source IP address filtering, use the ip verify source
Interface Configuration mode command.
To enable IP source guard with source IP and MAC address filtering, use the ip
verify source mac-and-ip Interface Configuration mode command.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 266
IP Source Guard Commands
show ip source binding 17
show ip source binding
To show information for all IP source binding rules defined on the switch, use the
show ip source binding Privileged EXEC mode command.
Syntax
Parameters
Command Mode
User Guidelines
The show ip source binding command output shows all dynamic and static IP
source binding entries in the binding database.
Example
Total Entry: 1
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 267
IP Source Guard Commands
show ip verify source interfaces 17
Field Description
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 268
IP Source Guard Commands
show ip verify source interfaces 17
fa6 | disabled | No Limit | 0
fa7 | disabled | No Limit | 0
fa8 | disabled | No Limit | 0
fa9 | disabled | No Limit | 0
fa10 | disabled | No Limit | 0
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 269
18
IPv6 Addressing Commands
ipv6 default-gateway
To define an IPv6 default gateway, use the ipv6 default-gateway Global
Configuration mode command.
Syntax
Parameters
• ipv6-address—The IPv6 address of the next hop that can be used to reach
the required network.
Default Configuration
Command Mode
User Guidelines
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 270
IPv6 Addressing Commands
management vlan ipv6-address 18
If the egress interface is not specified, the default interface is selected. Specifying
interface zone=0 is equal to not defining an egress interface.
Example
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
If the value specified for the prefix-length argument is greater than 64 bits, the
prefix bits have precedence over the interface ID.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 271
IPv6 Addressing Commands
management vlan ipv6-address-autoconfig 18
switchxxxxxx(config)# management vlan ipv6-address 3000::123 prefix-length
64
To disable IPv6 address autoconfiguration on the switch, use the no form of this
command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 272
IPv6 Addressing Commands
management vlan ipv6-address-dhcp 18
switchxxxxxx(config)# management vlan ipv6-address-autoconfig
To remove the IPv6 address from the interface, use the no form of this command.
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 273
IPv6 Addressing Commands
show ipv6 18
show ipv6
To display the IPv6 configuration of the switch, use the show ipv6 Privileged EXEC
mode command.
Syntax
show ipv6
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Syntax
Parameters
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 274
IPv6 Addressing Commands
show ipv6 dhcp 18
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 275
19
IPv6 MLD Snooping Commands
Syntax
Parameters
Command Mode
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 276
IPv6 MLD Snooping Commands
ipv6 mld filter 19
Parameters
N/A
Command Mode
Example
To remove a MLD profile from the interface, use the no form of this command.
Syntax
Parameter
Command Mode
User Guidelines
You can apply the MLD profiles only to Layer 2 physical or EtherChannel
interfaces.
A MLD profile can be applied to one or more switch interfaces, but one interface
can have only one profile applied to it.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 277
IPv6 MLD Snooping Commands
ipv6 mld max-groups 19
Example
To set the maximum back to the default setting, which is to have no maximum limit,
or to return to the default throttling action, which is to drop the report, use the no
form of this command.
Syntax
Parameters
Command Mode
User Guidelines
You can use this command only on Layer 2 physical interfaces and on logical
EtherChannel interfaces.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 278
IPv6 MLD Snooping Commands
ipv6 mld profile 19
Follow these guidelines when configuring the MLD throttling action:
• If you configure the throttling action as deny and set the maximum group
limitation, the entries that were previously in the forwarding table are not
removed but are aged out. After these entries are aged out, when the
maximum number of entries in the forwarding table is reached, the switch
drops the next MLD report received on the interface.
• If you configure the throttling action as replace and set the maximum group
limitation, the entries that were previously in the forwarding table are
removed. When the maximum number of entries in the forwarding table is
reached, the switch replaces a randomly selected multicast entry with the
received MLD report.
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 279
IPv6 MLD Snooping Commands
ipv6 mld snooping 19
Command Mode
Example
Syntax
Parameters
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 280
IPv6 MLD Snooping Commands
ipv6 mld snooping report-suppression 19
ipv6 mld snooping report-suppression
To enable IPv6 MLD snooping report suppression on the switch, use the ipv6 mld
snooping report-suppression Global Configuration mode command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 281
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan immediate-leave 19
Syntax
Parameters
Command Mode
Example
Syntax
Parameters
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 282
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan forbidden mrouter 19
Command Mode
User Guidelines
You should configure the immediate leave feature only when there is a maximum of
one receiver on each interface in the VLAN.
Example
Syntax
Parameters
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 283
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan forbidden forward-all 19
User Guidelines
Example
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 284
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan last-member-query-count 19
Example
Syntax
Parameters
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 285
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan last-member-query-interval 19
User Guidelines
In MLD snooping, the IPv6 multicast router periodically sends out queries to hosts
belonging to the multicast group. If a host wants to leave a multicast group, it can
silently leave or it can respond to the query with a multicast Listener Done
message (equivalent to an IGMP Leave message). When Immediate Leave is not
configured (which it should not be if multiple clients for a group exist on the same
port), the configured last-listener query count determines the number of MASQs
that are sent before a MLD client is aged out.
Example
Syntax
Parameters
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 286
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan mrouter learn pim-dvmrp 19
User Guidelines
In MLD snooping, when the IPv6 multicast router receives an MLD leave message,
it sends out queries to hosts belonging to the multicast group. If there are no
responses from a port to a MASQ for a length of time, the router deletes the port
from the membership database of the multicast address. The last listener query
interval is the maximum time that the router waits before deleting a nonresponsive
port from the multicast group. When a VLAN query interval is set, this interval
overrides the global query interval. When the VLAN interval is set at 0, the global
value is used.
Example
To disable this feature on the VLANs, use the no form of this command.
Syntax
Parameters
Command Mode
User Guidelines
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 287
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan query-interval 19
• Queries received on the port
Example
Syntax
Parameters
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 288
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan response-time 19
User Guidelines
In MLD snooping, when the IPv6 multicast router receives an MLD leave message,
it sends out queries to hosts belonging to the multicast group. If there are no
responses from a port to a MASQ for a length of time, the router deletes the port
from the membership database of the multicast address. The last listener query
interval is the maximum time that the router waits before deleting a nonresponsive
port from the multicast group.
Example
Syntax
Parameters
Default Configuration
10
Command Mode
User Guidelines
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 289
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan robustness-variable 19
Example
Syntax
Parameters
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 290
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan static interface 19
switchxxxxxx(config)# ipv6 mld snooping vlan 7 robustness-variable 5
To disable this feature on the VLAN, use the no form of this command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 291
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan mrouter 19
switchxxxxxx(config)# ipv6 mld snooping vlan 1 static abcd::1234 interface
po3
To remove the ports specified as members from a static Mrouter port, use the no
form of this command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 292
IPv6 MLD Snooping Commands
ipv6 mld snooping vlan forward-all 19
switchxxxxxx(config)# ipv6 mld snooping vlan 1 mrouter interfaces po3
To disable this feature on the VLAN, use the no form of this command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 293
IPv6 MLD Snooping Commands
profile range 19
profile range
To create a MLD profile for a range of IPv6 addresses, use the profile range MLD-
profile Configuration mode command.
To remove a MLD profile for a range of IPv6 addresses, use the no form of this
command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 294
IPv6 MLD Snooping Commands
show ipv6 mld filter 19
show ipv6 mld filter
To display the IPv6 MLD profiles for all interfaces or for a specific interface, use the
show ipv6 mld filter Privileged EXEC mode command.
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 295
IPv6 MLD Snooping Commands
show ipv6 mld max-group 19
po3 : None
po4 : None
po5 : None
po6 : None
po7 : None
po8 : None
Syntax
Parameters
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 296
IPv6 MLD Snooping Commands
show ipv6 mld max-group action 19
show ipv6 mld max-group action
To display the action for a specific interface or for all interfaces when the number
of IPv6 MLD groups exceeds the maximum group number, use the show ipv6 mld
max-group action Privileged EXEC mode command.
Syntax
Parameters
Command Mode
User Guidelines
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 297
IPv6 MLD Snooping Commands
show ipv6 mld snooping 19
Command Mode
Example
Syntax
Parameters
N/A
Command Mode
Example
Snooping : Disabled
Report Suppression : Enabled
Operation Version : v1
Forward Method : mac
Unknown Multicast Action : Flood
Packet Statistics
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 298
IPv6 MLD Snooping Commands
show ipv6 mld snooping forward-all 19
Total RX : 0
Valid RX : 0
Invalid RX : 0
Other RX : 0
Leave RX : 0
Report RX : 0
General Query RX : 0
Specail Group Query RX : 0
Specail Group & Source Query RX : 0
Leave TX : 0
Report TX : 0
General Query TX : 0
Specail Group Query TX : 0
Specail Group & Source Query TX : 0
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 299
IPv6 MLD Snooping Commands
show ipv6 mld snooping groups 19
MLD Snooping VLAN : 4
MLD Snooping static port : None
MLD Snooping forbidden port : None
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 300
IPv6 MLD Snooping Commands
show ipv6 mld snooping mrouter 19
User Guidelines
To display information for all multicast groups learned by MLD snooping, use the
show ipv6 mld snooping groups command without parameters.
Example
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 301
IPv6 MLD Snooping Commands
show ipv6 mld snooping vlan 19
Static Mrouter Table
VID | Port Mask
------+------------------------
Total Entry 0
Forbidden Mrouter Table
VID | Port Mask
------+------------------------
Total Entry 0
Syntax
Parameters
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 302
20
LACP Commands
lacp port-priority
To set the Link Aggregation Control Protocol (LACP) priority for an interface, use
the lacp port-priority Interface Configuration mode command.
Syntax
no lacp port-priority
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 303
LACP Commands
lacp system-priority 20
lacp system-priority
To set the global LACP priority for all interfaces, use the lacp system-priority
Global Configuration mode command.
Syntax
no lacp system-priority
Parameters
Command Mode
Example
lacp timeout
To assign an administrative LACP timeout to an interface, use the lacp timeout
Interface Configuration mode command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 304
LACP Commands
show lacp 20
• short—Specifies that the periodic transmissions of LACP PDUs occur at a
fast transmission rate.
Default Configuration
Command Mode
Example
show lacp
To show LACP channel-group information, use the show lacp Privileged EXEC
mode command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 305
LACP Commands
show lacp 20
• detail—(Optional) Displays detailed information.
Command Mode
User Guidelines
You can enter any show lacp command to display the active channel-group
information.
To show information for a specific channel, enter the show lacp command with a
channel-group number. If you do not specify a channel group, information for all
channel groups appears.
You can enter the channel-group-number option to specify a channel group for all
keywords except sys-id.
Examples
The following table describes the significant fields shown in the example:
Field Description
LACPDUs Sent and Number of LACP packets sent and received by a port.
Recv
LACPDUs Pkts and Err Number of unknown and illegal packets received by
LACP for a port.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 306
LACP Commands
show lacp 20
switchxxxxxx# show lacp internal
Flags: S - Device is requesting Slow LACPDUs
F - Device is requesting Fast LACPDUs
A - Device is in Active mode P - Device is in Passive mode
Channel group 1
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
fa1 SA bndl 1 0x3e8 0x3e8 0x1 0x3d
fa2 SA down 1 0x3e8 0x3e8 0x2 0x45
Channel group 2
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
fa3 SA bndl 1 0x3e9 0x3e9 0x3 0x3d
fa4 SA down 1 0x3e9 0x3e9 0x4 0x45
The following table describes the significant fields shown in the example:
Field Description
• down—Port is down.
LACP Port Priority Port priority setting. LACP uses the port priority to put
ports in standby mode when there is a hardware
limitation that prevents all compatible ports from
aggregating.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 307
LACP Commands
show lacp 20
Field Description
Oper Key Runtime operational key that is being used by this port.
LACP automatically generates this value as a
hexadecimal number.
Port State State variables for the port, encoded as individual bits
within a single octet with these meanings:
• bit0—LACP_Activity
• bit1—LACP_Timeout
• bit2—Aggregation
• bit3—Synchronization
• bit4—Collecting
• bit5—Distributing
• bit6—Defaulted
• bit7—Expired
NOTE In the list above, bit7 is the MSB and bit0 is the LSB.
Channel group 1
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 308
LACP Commands
show lacp 20
Partner's information
Example 4—The following example shows the LACP system identifier information:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 309
LACP Commands
show lacp 20
32768, 00e0.4c86.7001
The system identification is made up of the system priority and the system MAC
address. The first two bytes are the system priority, and the last six bytes are the
globally administered individual MAC address associated to the system.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 310
21
Line Commands
clear line
To disconnect Telnet or SSH sessions, use the clear line Privileged EXEC Mode
command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
exec-timeout
To set the session idle time, during which the switch waits for user input before
automatic logoff, use the exec-timeout Line Configuration mode command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 311
Line Commands
line 21
Syntax
exec-timeout minutes
no exec-timeout
Parameters
Command Mode
Example
The following example sets the idle time for Telnet sessions to 20 minutes:
line
To identify a specific line for configuration and enter the Line Configuration
command mode, use the line Global Configuration mode command.
Syntax
Parameters
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 312
Line Commands
password-thresh 21
Example
The following example configures the switch as a virtual terminal for remote
access (Telnet):
password-thresh
To set the login password intrusion threshold, use the password-thresh Line
Configuration mode command.
Syntax
password-thresh value
Parameters
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 313
Line Commands
show line 21
show line
To show the line parameters, use the show line Privileged EXEC mode command.
Syntax
Parameters
Default Configuration
If the line is not specified, all line configuration parameters are displayed.
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 314
Line Commands
silent-time 21
silent-time
To set the login fail silent time, use the silent-time Line Configuration mode
command.
Syntax
silent-time value
Parameters
Default Configuration
No silent time
Command Mode
Example
speed
To set the console port baud rate, use the speed Line Configuration mode
command.
Syntax
speed bps
no speed
Parameters
• bps—The baud rate in bits per second (bps). Possible values are 2400,
4800, 9600, 19200, 38400, 57600, and 115200 bps.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 315
Line Commands
speed 21
Default Configuration
Command Mode
User Guidelines
Example
The following example sets the console baud rate to 115200 bps:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 316
22
LLDP Commands
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
lldp holdtime-multiplier
To specify how long the receiving device holds a LLDP packet before discarding it,
use the lldp holdtime-multiplier Global Configuration mode command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 317
LLDP Commands
lldp holdtime-multiplier 22
Syntax
no lldp holdtime-multiplier
Parameters
• number—The amount of time that LLDP packets are held before the
packets are discarded, measured in multiples of the TLV Advertise Interval.
(Range: 2 to 10)
Default Configuration
Command Mode
User Guidelines
The time-to-live (TTL) value (the LLDP transmission interval multiplies the holdtime
multiplier) should be smaller than 65535.
The actual TTL value of LLDP frames is calculated by the following formula:
For example, if the value of the LLDP timer is 30 seconds, and the value of the
LLDP holdtime multiplier is 4, then the value 120 is encoded in the TTL field of the
LLDP header.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 318
LLDP Commands
lldp lldpdu 22
lldp lldpdu
To specify how to handle LLDP packets when LLDP is globally disabled, use the
lldp lldpdu Global Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
If the STP mode is set to MSTP, the LLDP packet-handling mode cannot be set to
flooding. The STP mode cannot be set to MSTP if the LLDP packet-handling mode
is flooding. If LLDP is globally disabled, and the LLDP packet-handling mode is
flooding, LLDP packets are treated as data packets with the following exceptions:
• VLAN ingress rules are not applied to LLDP packets. LLDP packets are
trapped on all ports for which the STP state is Forwarding.
• VLAN egress rules are not applied to the packets. LLDP packets are
flooded to all ports for which the STP state is Forwarding.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 319
LLDP Commands
lldp med 22
lldp med
To enable LLDP Media Endpoint Discovery (MED) on an interface, use the lldp med
Interface Configuration mode command.
Syntax
no lldp med
Parameters
Default Configuration
Command Mode
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 320
LLDP Commands
lldp med location 22
no lldp med fast-start-repeat-count
Parameters
• number—The number of times that the fast start LLDPDU is being sent
during the activation of the fast start mechanism. (Range: 1 to 10)
Default Configuration
Command Mode
Example
To remove the LLDP MED location for an interface, use the no form of this
command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 321
LLDP Commands
lldp med network-policy voice auto 22
Default Configuration
Command Mode
Example
Syntax
Parameters
N/A
Default Configuration
Enabled
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 322
LLDP Commands
lldp med network-policy (Global) 22
User Guidelines
A network policy for voice LLDP packets can be created by using the lldp med
network-policy (global) command. The lldp med network-policy auto Global
Configuration mode command allows you to use the configuration of the voice
application to create the network policy instead of having to manually configure it.
In the Auto mode, the voice VLAN feature determines on which interfaces to
advertise the network policy TLV with the application type voice, and controls the
parameters of that TLV.
To enable auto generation of a network policy based on the auto voice VLAN,
there must be no manual preconfigured network policies for the voice application.
In the Auto mode, you cannot manually define a network policy for the voice
application using the lldp med network-policy (global) command.
Example
To delete an LLDP MED network policy, use the no form of this command.
Syntax
Parameters
- voice
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 323
LLDP Commands
lldp med network-policy (Global) 22
- voice-signaling
- guest-voice
- guest-voice-signaling
- softphone-voice
- video-conferencing
- streaming-video
- video-conferencing
- video-signaling
• dscp value—Specifies the DSCP value used for the specified application.
Default Configuration
Command Mode
User Guidelines
This command creates the network policy, which can be attached to a port by
using the lldp med network-policy (interface) command.
Example
This example creates a network policy for the voice-signaling application and
attaches it to gi1. LLDP packets sent on gi1 will contain information defined in the
network policy.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 324
LLDP Commands
lldp med network-policy (Interface) 22
switchxxxxxx(config)# lldp med network-policy 1 app voice-signaling vlan 1
vlan-type untagged priority 1 dscp 2
switchxxxxxx(config)# interface gi1
switchxxxxxx(config-if)# lldp med network-policy add 1
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
For each interface, only one network policy per application can be defined.
Network policies are created by using the lldp med network-policy (global)
command.
Example
This example creates a network policy for the voice-signaling application and
attaches it to fa11. LLDP packets sent on fa11 will contain information defined in
the network policy.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 325
LLDP Commands
lldp med tlv-select 22
lldp med tlv-select
To specify which LLDP MED TLVs are included, use the lldp med tlv-select
Interface Configuration mode command.
To remove all selected LLDP MED TLVs, use the no form of this command.
Syntax
Parameters
Default Configuration
Network-policy TLV
Command Mode
Example
The following example enables LLDP MED with the location TLV on gi5:
lldp receive
To enable receiving LLDP frames on an interface, use the lldp receive Interface
Configuration mode command.
To stop receiving LLDP frames on an interface, use the no form of this command.
Syntax
lldp receive
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 326
LLDP Commands
lldp reinit 22
no lldp receive
Parameters
N/A
Default Configuration
Enabled
Command Mode
User Guidelines
LLDP manages LAG ports individually. LLDP data received through the LAG ports
is stored individually per port.
LLDP operation on a port is not dependent on the STP state of a port. For example,
LLDP frames are received on the blocked ports.
Example
lldp reinit
To specify the minimum time that an LLDP-enabled port waits before reinitializing
the LLDP transmission, use the lldp reinit Global Configuration mode command.
Syntax
no lldp reinit
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 327
LLDP Commands
lldp run 22
Default Configuration
2 seconds
Command Mode
Example
lldp run
To enable LLDP globally on the switch, use the lldp run Global Configuration mode
command.
To disable LLDP globally on the switch, use the no form of this command.
Syntax
lldp run
no lldp run
Parameters
N/A
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 328
LLDP Commands
lldp tlv-select 802.1 22
lldp tlv-select 802.1
To specify which 802.1x parameters will be advertised, use the lldp tlv-select
802.1 Interface Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 329
LLDP Commands
lldp tlv-select TLV 22
lldp tlv-select TLV
To specify which optional TLVs are transmitted, use the lldp tlv-select TLV
Interface Configuration (Ethernet) mode command.
To remove all selected LLDP optional TLVs, use the no form of this command.
Syntax
lldp tlv-select TLV [ TLV ] [ TLV ] [ TLV ] [ TLV ] [ TLV ] [ TLV ] [ TLV ]
no lldp tlv-select
Parameters
Default Configuration
Command Mode
Example
lldp transmit
To enable transmitting LLDP frames on an interface, use the lldp transmit Interface
Configuration mode command.
Syntax
lldp transmit
no lldp transmit
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 330
LLDP Commands
lldp tx-delay 22
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
LLDP operation on a port is not dependent on the STP state of a port. For example,
LLDP frames are sent on the blocked ports.
Example
lldp tx-delay
To set the delay time between two successive LLDP frame transmissions initiated
by value or status changes in the LLDP local system MIB, use the lldp tx-delay
Global Configuration mode command.
Syntax
no lldp tx-delay
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 331
LLDP Commands
lldp timer 22
Default Configuration
Command Mode
User Guidelines
We recommend that the tx-delay is less than 0.25 of the LLDP timer interval.
Example
lldp timer
To specify how often the system sends the LLDP updates, use the lldp timer
Global Configuration mode command.
Syntax
no lldp timer
Parameters
Default Configuration
30 seconds
Command Mode
User Guidelines
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 332
LLDP Commands
show lldp 22
The tx-delay cannot be larger than 0.25 of the LLDP transmission interval.
Example
show lldp
To show the LLDP status, use the show lldp Privileged EXEC mode command.
Syntax
show lldp
Parameters
N/A
Command Mode
Example
State: Enabled
Timer: 30 Seconds
Hold multiplier: 4
Reinit delay: 2 Seconds
Tx delay: 2 Seconds
LLDP packet handling: Flooding
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 333
LLDP Commands
show lldp 22
gi12 | RX,TX | SN, SC |192.168.1.254
gi13 | RX,TX | SN, SC |192.168.1.254
gi14 | RX,TX | SN, SC |192.168.1.254
gi15 | RX,TX | SN, SC |192.168.1.254
gi16 | RX,TX | SN, SC |192.168.1.254
gi17 | RX,TX | SN, SC |192.168.1.254
gi18 | RX,TX | SN, SC |192.168.1.254
gi19 | RX,TX | SN, SC |192.168.1.254
gi20 | RX,TX | SN, SC |192.168.1.254
gi21 | RX,TX | SN, SC |192.168.1.254
gi22 | RX,TX | SN, SC |192.168.1.254
gi23 | RX,TX | SN, SC |192.168.1.254
gi24 | RX,TX | SN, SC |192.168.1.254
gi25 | RX,TX | SN, SC |192.168.1.254
gi26 | RX,TX | SN, SC |192.168.1.254
gi27 | RX,TX | SN, SC |192.168.1.254
gi28 | RX,TX | SN, SC |192.168.1.254
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 334
LLDP Commands
show lldp 22
802.1 optional TLVs
PVID: Enabled
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 335
LLDP Commands
show lldp 22
802.1 optional TLVs
PVID: Enabled
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 336
LLDP Commands
show lldp interfaces 22
show lldp interfaces
To show the LLDP configuration for specific interfaces, use the show lldp
interfaces Privileged EXEC mode command.
Syntax
Parameters
Example
State: Enabled
Timer: 30 Seconds
Hold multiplier: 4
Reinit delay: 2 Seconds
Tx delay: 2 Seconds
LLDP packet handling: Flooding
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 337
LLDP Commands
show lldp interfaces tlvs-overloading 22
show lldp interfaces tlvs-overloading
To show the status of LLDP TLVs overloading for specific interfaces, use the show
lldp interfaces tlvs-overloading Privileged EXEC mode command.
Syntax
Parameters
User Guidelines
When an LLDP packet contains too much information for one packet, this is called
overloading.
The command calculates the overloading status of the current LLDP configuration,
not for the last LLDP packet that was sent.
Example
gi11:
Total: 69 bytes
Left: 1419 bytes
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 338
LLDP Commands
show lldp local-device 22
show lldp local-device
To show LLDP information that is advertised from specific interfaces, use the show
lldp local-device Privileged EXEC mode command.
Syntax
Parameters
Command Mode
Examples
Example 1—The following example displays the LLDP local device information
that is advertised from fa11:
Example 2—The following example displays the LLDP local device information:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 339
LLDP Commands
show lldp med 22
System Capabilities Enable : Bridge
Management Address : 192.168.1.254(IPv4)
Syntax
Parameters
Command Mode
Examples
Example 1—The following example shows the LLDP MED configuration for all
interfaces:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 340
LLDP Commands
show lldp neighbor 22
gi14 | Yes | Yes | No | No | No
gi15 | Yes | Yes | No | No | No
gi16 | Yes | Yes | No | No | No
gi17 | Yes | Yes | No | No | No
gi18 | Yes | Yes | No | No | No
gi19 | Yes | Yes | No | No | No
gi20 | Yes | Yes | No | No | No
gi21 | Yes | Yes | No | No | No
gi22 | Yes | Yes | No | No | No
gi23 | Yes | Yes | No | No | No
gi24 | Yes | Yes | No | No | No
gi25 | Yes | Yes | No | No | No
gi26 | Yes | Yes | No | No | No
gi27 | Yes | Yes | No | No | No
gi28 | Yes | Yes | No | No | No
Example 2—The following example shows the LLDP MED configuration for gi11:
Syntax
Parameters
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 341
LLDP Commands
show lldp neighbor 22
User Guidelines
Example
The following table describes the significant fields shown in the example:
Field Description
• B - Bridge
• R - Router
• T - Telephone
• H - Host
• r - Repeater
• O - Other
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 342
LLDP Commands
show lldp statistics 22
show lldp statistics
To show the LLDP statistics for specific interfaces, use the show lldp statistics
Privileged EXEC mode command.
Syntax
Parameters
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 343
LLDP Commands
show lldp statistics 22
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 344
23
Management ACL Commands
deny (Management)
To set the deny rules (ACEs) for the management ACL, use the deny Management
Access-List Configuration mode command.
Syntax
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 345
Management ACL Commands
management access-class 23
User Guidelines
The rules with Ethernet and port channel parameters are valid only if an IP address
is defined on the appropriate interface.
Example
management access-class
To restrict the management connections by defining the active management ACLs,
use the management access-class Global Configuration mode command.
Syntax
no management access-class
Parameters
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 346
Management ACL Commands
management access-list 23
Example
The following example defines an ACL called mlist as the active management
ACL:
management access-list
To configure a management access control list (ACL) and enter the Management
Access-List Configuration command mode, use the management access-list
Global Configuration mode command.
Syntax
Parameters
N/A
Command Mode
User Guidelines
Use this command to configure a management ACL. This command enters the
Management Access-List Configuration command mode, where the denied or
permitted access conditions are defined with the deny and permit commands.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 347
Management ACL Commands
management access-list 23
When reentering the ACL context, the new rules are entered at the end of the
access list.
For IPv6 management traffic that is tunneled in IPv4 packets, the management ACL
is applied first on the external IPv4 header (rules with the service field are
ignored), and then again on the inner IPv6 header.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 348
Management ACL Commands
no sequence (Management) 23
no sequence (Management)
To remove a permit or deny condition (ACE) for a specific management ACL, use
the no sequence Management Access List Configuration mode command.
Syntax
no sequence
Parameters
N/A
Command Mode
Example
console-only
------------
sequence 1 deny interfaces fa1-24,gi1-2,po1-8 service all
! (Note: all other access implicitly denied)
mgmtacl1
--------
sequence 1 permit interfaces fa1 service telnet
! (Note: all other access implicitly denied)
switchxxxxxx# config
switchxxxxxx(config)# management access-list mgmtacl1
switchxxxxxx(config-macl)# no sequence 1
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 349
Management ACL Commands
permit (Management) 23
permit (Management)
To set the permit rules (ACEs) for the management ACL, use the permit
Management Access-List Configuration mode command.
Syntax
Default Configuration
Command Mode
User Guidelines
The rules with Ethernet, VLAN, and port channel parameters are valid only if an IP
address is defined on the appropriate interface.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 350
Management ACL Commands
show management access-class 23
switchxxxxxx(config)# management access-list mlist
switchxxxxxx(config-macl)# permit ip 192.168.1.111/0.0.255.255 interfaces
gi11 service http
switchxxxxxx(config-macl)# exit
Syntax
Command Mode
Example
Syntax
Parameters
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 351
Management ACL Commands
show management access-list 23
Command Mode
Example
console-only
------------
sequence 1 deny interfaces fa1-24,gi1-2,po1-8 service all
! (Note: all other access implicitly denied)
mlist
-----
sequence 1 permit interfaces fa11 service all
! (Note: all other access implicitly denied)
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 352
24
PHY Diagnostics Commands
Syntax
Parameters
Default Configuration
N/A
Command Mode
User Guidelines
The interface must be active and working at 100 Mbps or 1000 Mbps.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 353
PHY Diagnostics Commands
show cable-diagnostics cable-length 24
Pair D | 0.83 | Open
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 354
PHY Diagnostics Commands
show cable-diagnostics cable-length 24
Pair D | 0.87 | Open
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 355
PHY Diagnostics Commands
show fiber-ports optical-transceiver 24
Pair D | 0.88 | Open
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 356
PHY Diagnostics Commands
show fiber-ports optical-transceiver 24
gi17 | Copper
gi18 | Copper
gi19 | Copper
gi20 | Copper
gi21 | Copper
gi22 | Copper
gi23 | Copper
gi24 | Copper
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 357
25
Power over Ethernet (PoE) Commands
The Power over Ethernet (PoE) feature is only available on the PoE-based
switches.
power inline
To configure the inline power administrative mode on an interface, use the power
inline Interface Configuration mode command.
Syntax
Parameters
• never—Turns off the device discovery protocol and stops supplying power
to the device.
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 358
Power over Ethernet (PoE) Commands
power inline legacy enable 25
power inline legacy enable
To enable supporting legacy powered devices, use the power inline legacy
enable Global Configuration mode command.
To disable supporting legacy powered devices, use the no form of this command.
Syntax
Default Configuration
Command Mode
User Guidelines
This feature only works when establishing the autonegotiation connection. For the
legacy powered devices that are already connected, disabling this feature only
takes effect after you unplug their cables.
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 359
Power over Ethernet (PoE) Commands
power inline limit-mode 25
Parameters
Default Configuration
30000 milliwatts for 802.3at ports and 15400 milliwatts for other ports.
Command Mode
Example
Syntax
Parameters
• class—Specifies that the power limit of a port is based on the class of the
Power Device (PD) as detected during the classification process.
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 360
Power over Ethernet (PoE) Commands
power inline priority 25
Example
The following example limits the power per port in class mode:
Syntax
Parameters
Default Configuration
Command Mode
Example
The following example sets the inline power management priority for port 4 to
high:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 361
Power over Ethernet (PoE) Commands
power inline traps enable 25
power inline traps enable
To enable inline power traps, use the power inline traps enable Global
Configuration mode command.
Syntax
Default Configuration
Command Mode
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 362
Power over Ethernet (PoE) Commands
show env all 25
Default Configuration
Command Mode
Example
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 363
Power over Ethernet (PoE) Commands
show power inline 25
-------- -------- ---------------- ---------------- ----------------
1 GREEN 30 48 54
2 GREEN 38 49 55
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Example 1—The following example shows the inline power settings for all
interfaces:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 364
Power over Ethernet (PoE) Commands
show power inline 25
gi4 Auto searching low N/A 30000 (30000) N/A
gi5 Auto searching low N/A 30000 (30000) N/A
gi6 Auto searching low N/A 30000 (30000) N/A
gi7 Auto searching low N/A 30000 (30000) N/A
gi8 Auto searching low N/A 30000 (30000) N/A
gi9 Auto searching low N/A 30000 (30000) N/A
gi10 Auto searching low N/A 30000 (30000) N/A
gi11 Auto searching low N/A 30000 (30000) N/A
gi12 Auto searching low N/A 30000 (30000) N/A
gi13 Auto searching low N/A 30000 (30000) N/A
gi14 Auto searching low N/A 30000 (30000) N/A
gi15 Auto searching low N/A 30000 (30000) N/A
gi16 Auto searching low N/A 30000 (30000) N/A
gi17 Auto searching low N/A 30000 (30000) N/A
gi18 Auto searching low N/A 30000 (30000) N/A
gi19 Auto searching low N/A 30000 (30000) N/A
gi20 Auto searching low N/A 30000 (30000) N/A
gi21 Auto searching low N/A 30000 (30000) N/A
gi22 Auto searching low N/A 30000 (30000) N/A
gi23 Auto searching low N/A 30000 (30000) N/A
gi24 Auto searching low N/A 30000 (30000) N/A
The following table describes the significant fields shown in the example:
Field Description
Legacy device Shows that the port supports or does not supports the
supports legacy powered devices.
Nominal Power Total amount of power that the switch can supply to all
connected PDs.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 365
Power over Ethernet (PoE) Commands
show power inline 25
Consumed Power Amount of power currently being consumed by the
PoE ports.
Example 2—The following example shows the inline power settings for port fa1:
Port Overload Short Current Power Denied MPS Absent Invalid Sig.
---- ------------- ------------- ------------- ------------- -------------
gi1 0 0 0 0 0
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 366
Power over Ethernet (PoE) Commands
show power inline 25
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 367
Power over Ethernet (PoE) Commands
show power inline consumption 25
show power inline consumption
To show the inline power consumption for all interfaces or for a specific interface,
use the show power inline consumption Privileged EXEC mode command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
The following example displays the inline power consumption for port 1:
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 368
26
Port Channel Commands
channel-group
To associate a port with a port channel, use the channel-group Interface
Configuration mode command.
To remove a port from a port channel, use the no form of this command.
Syntax
no channel-group
Parameters
• port channel—The number of the port channel that the port will join.
• mode—Specifies the mode of the port channel. The possible values are:
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 369
Port Channel Commands
port-channel load-balance 26
Example
The following example forces gi1 to join the port channel 1 without a LACP
operation:
port-channel load-balance
To configure the load-balancing policy for a port channel, use the port-channel
load-balance Global Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 370
Port Channel Commands
show etherchannel summary 26
show etherchannel summary
To show information for all port channels, use the show etherchannel summary
Privileged EXEC Mode command.
Syntax
Parameters
N/A
Command Mode
Examples
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 371
27
Port Monitor Commands
To stop a destination interface of a port monitoring session, use the no form of this
command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
User Guidelines
This command specifies the destination port for a monitor session. The following
restrictions apply to the ports that are configured to be monitored ports:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 372
Port Monitor Commands
monitor session destination remote-span 27
• The port cannot be source port.
Example
The following example defines the destination port fa24 for the monitor session 1:
To stop a destination interface for remote SPAN, use the no form of this command.
Syntax
Parameters
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 373
Port Monitor Commands
monitor session source interfaces 27
Example
The following example defines the destination remote-span VLAN 2 and reflector
interface fa11 for the monitor session 1:
switchxxxxxx(config)# vlan 2
switchxxxxxx(config-vlan)# remote-span
switchxxxxxx(config-vlan)# exit
switchxxxxxx(config)# monitor session 1 destination remote-span vlan 2
reflector-interface gi11
Syntax
Parameters
Default Configuration
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 374
Port Monitor Commands
monitor session source remote-span 27
Command Mode
User Guidelines
This command specifies the source ports for a monitor session. The port that is
configured to be a source port cannot be a destination port.
NOTE In this mode some traffic duplication on the analyzer port may be observed. For
example:
• Unknown unicast packet sent to VLAN 3 will egress from port 4 twice, one
instance as normal forward and another instance as mirrored from port 2.
Example
The following example copies traffic for both directions (Tx and Rx) from the
source port fa2 to the monitor session 1:
To stop a source interface for remote SPAN, use the no form of this command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 375
Port Monitor Commands
no monitor session 27
Parameters
Command Mode
Example
The following example defines the source remote-span VLAN 2 for the monitor
session 1:
switchxxxxxx(config)# vlan 2
switchxxxxxx(config-vlan)# remote-span
switchxxxxxx(config-vlan)# exit
switchxxxxxx(config)# monitor session 1 source remote-span vlan 2
no monitor session
To disable all monitor sessions or disable a specific monitor session, use the no
monitor session Global Configuration mode command.
Syntax
Parameters
Default Configuration
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 376
Port Monitor Commands
remote-span 27
Command Mode
Example
remote-span
To enable remote SPAN, use the remote-span VLAN Configuration mode
command.
Syntax
remote-span
no remote-span
Parameters
N/A
Command Mode
Example
switchxxxxxx(config)# vlan 2
switchxxxxxx(config-vlan)# remote-span
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 377
Port Monitor Commands
show monitor 27
show monitor
To show the status for all monitor sessions or for a specific monitor session, use
the show monitor Privileged EXEC Mode command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Session 1 Configuration
Session Type : Unknown
Mirrored source : Not Config
Destination port : Not Config
Session 2 Configuration
Session Type : Unknown
Mirrored source : Not Config
Destination port : Not Config
Session 3 Configuration
Session Type : Unknown
Mirrored source : Not Config
Destination port : Not Config
Session 4 Configuration
Session Type : Unknown
Mirrored source : Not Config
Destination port : Not Config
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 378
Port Monitor Commands
show vlan remote-span 27
show vlan remote-span
To show the remote SPAN VLAN, use the show vlan remote-span Privileged EXEC
Mode command.
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 379
28
QoS Commands
class
To attach an access control list (ACL) to a policy map, use the class Policy-map
Configuration mode command.
To detach a class map from a policy map, use the no form of this command.
NOTE This command is available only when the switch is in quality of service (QoS)
advanced mode.
Syntax
class class-map-name
no class class-map-name
Parameters
Default Configuration
Command Mode
User Guidelines
This command is the same as creating a class map and then binding it to the
policy map. After the policy map is defined, use the service-policy command to
attach it to a port or port channel.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 380
QoS Commands
class-map 28
Example
The following example defines a traffic classification (class map) called class1
containing an ACL called enterprise. The class is in a policy map called policy1.
The policy-map policy1 now contains the ACL enterprise.
class-map
To create or modify a class map and enter the Class-Map Configuration mode, use
the class-map Global Configuration mode command and its subcommands.
NOTE All class map commands are available only when the switch is in QoS advanced
mode.
Syntax
no class-map class-map-name
Parameters
Default Configuration
N/A
Command Mode
User Guidelines
A class map consists of one or more ACLs. It defines a traffic flow by determining
which packets match some or all of the criteria specified in the ACLs.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 381
QoS Commands
match 28
The class-map command enters the Class-map Configuration mode. In this mode,
up to two match commands can be entered to configure the criteria for this class.
Each match specifies an ACL.
When using two match commands, each must point to a different type of ACL,
such as one IP-based ACL and one MAC-based ACL. The classification is by first
matching, therefore, the order of the ACLs is important.
• end—End the current mode and return to the Privileged EXEC mode.
Example
The following example creates a class map called Class1 and configures it to
check that packets match all classification criteria in the ACL specified:
match
To bind an ACL to the class map being configured, use the match Class-map
Configuration mode command.
NOTE This command is available only when the switch is in QoS advanced mode.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 382
QoS Commands
police 28
Syntax
Parameters
Default Configuration
Command Mode
Example
The following example defines a class map called Class1. Class1 contains an ACL
called enterprise. Only traffic matching all criteria in enterprise belongs to the
class map.
police
To define a policer for classified traffic, use the police Policy-map Class
Configuration mode command. This command defines another group of actions
for the policy map (per class map).
NOTE This command is available only when the switch is in QoS advanced mode.
Syntax
no police
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 383
QoS Commands
police aggregate 28
Parameters
Default Usage
N/A
Command Mode
User Guidelines
Policing uses a token bucket algorithm. CIR represents the speed with which the
token is added to the bucket.
Example
The following example defines a policer for classified traffic. When the traffic rate
exceeds 124,000 kbps, the packet is dropped. The class is called class1 and is in
a policy map called policy1.
police aggregate
To apply an aggregate policer to multiple class maps within the same policy map,
use the police aggregate Policy-map Class Configuration mode command.
To remove an existing aggregate policer from a policy map, use the no form of this
command.
NOTE This command is available only when the switch is in QoS advanced mode.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 384
QoS Commands
policy-map 28
Syntax
no police aggregate
Parameters
User Guidelines
An aggregate policer can be applied to multiple classes in the same policy map.
An aggregate policer cannot be applied across multiple policy maps or interfaces.
Use the exit command to return to the Global Configuration mode. Use the end
command to return to the Privileged EXEC mode.
Example
The following example applies the aggregate policer called Policer1 to a class
called class1 in a policy map called policy1 and class2 in policy map policy2:
policy-map
To create a policy map and enter the Policy-map Configuration mode, use the
policy-map Global Configuration mode command.
NOTE This command is only available when the switch is in QoS advanced mode.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 385
QoS Commands
policy-map 28
Syntax
policy-map policy-map-name
no policy-map policy-map-name
Parameters
N/A
Command Mode
User Guidelines
A policy map contains one or more class maps and an action that is taken if the
packet matches the class map. Policy maps may be bound to ports or port
channels.
Use the policy-map Global Configuration mode command to specify the name of
the policy map to be created, added to, or modified before configuring policies for
classes whose match criteria are defined in a class map.
The match criteria is for a class map. Only one policy map per interface is
supported. The same policy map can be applied to multiple interfaces and
directions.
Example
The following example creates a policy map called Policy1 and enters the Policy-
map Configuration mode:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 386
QoS Commands
priority-queue out num-of-queues 28
priority-queue out num-of-queues
To set the number of expedite queues, use the priority-queue out num-of-queues
Global Configuration mode command.
Syntax
Parameters
There must be either 0 WRR queues or more than one. If the number-of-
queues is set to 0, all queues are assured forwarding (according to the WRR
weights). If the number-of-queues is set to 8, all queues are expedited (SP
queues).
Default Configuration
Command Mode
User Guidelines
An expedite queue is a Strict Priority (SP) queue, which is serviced until empty
before the other lower priority queues are serviced.
The weighted round robin (WRR) weight ratios are affected by the number of
expedited queues, because there are fewer queues participating in WRR. This
indicates that the corresponding weight in the wrr-queue bandwidth Interface
Configuration mode command is ignored (not used in the ratio calculation).
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 387
QoS Commands
qos 28
qos
To enable QoS on the switch and set its operation mode, use the qos Global
Configuration mode command.
Syntax
no qos
Parameters
Default Configuration
If qos is entered without any keywords, the QoS basic mode is enabled.
Command Mode
Examples
Example 1—The following example enables QoS basic mode on the switch:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 388
QoS Commands
qos advanced-mode trust 28
Example 2—The following example enables QoS advanced mode on the switch
with the ports-not-trusted option:
Syntax
Parameters
• cos—Classifies ingress packets with the packet CoS values. For untagged
packets, the port default CoS is used.
Default Configuration
Command Mode
User Guidelines
The configuration is relevant for QoS advanced mode in the following cases:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 389
QoS Commands
qos aggregate-policer 28
• ports-not-trusted mode—For packets that are classified to the QoS action
trust.
• ports-trusted mode—For packets that are not classified to any QoS action
or classified to the QoS action trust.
Example
The following example sets CoS as the trust mode in QoS advanced mode:
qos aggregate-policer
To define the policer parameters that can be applied to multiple traffic classes
within the same policy map, use the qos aggregate-policer Global Configuration
mode command.
NOTE This command is only available when the switch is in QoS advanced mode.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 390
QoS Commands
qos aggregate-policer 28
Default Configuration
Command Mode
User Guidelines
Define an aggregate policer if the policer aggregates traffic from multiple class
maps.
Traffic from two different ports on the same device can be aggregated for policing
purposes.
An aggregate policer can be applied to multiple classes in the same policy map.
Policing uses a token bucket algorithm. CIR represents the speed with which the
token is added to the bucket. CBS represents the depth of the bucket.
Example
The following example defines the parameters of a policer called Policer1 that can
be applied to multiple classes in the same policy map. When the average traffic
rate exceeds 124,000 kbps, the packet is dropped.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 391
QoS Commands
qos cos 28
qos cos
To define the default CoS value for an interface, use the qos cos Interface
Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
Use the default CoS value to assign a CoS value to all untagged packets entering
the interface.
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 392
QoS Commands
qos map dscp-queue 28
Parameters
• cos0... cos7—Up to eight CoS values to map to the specified queue number.
(Range: 0 to 7)
Default Configuration
COS 0 1 2 3 4 5 6 7
Queue 2 1 3 4 5 6 7 8
Command Mode
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 393
QoS Commands
qos map precedence-queue 28
Default Configuration
Queue 1 2 3 4 5 6 7 8
Command Mode
Example
Syntax
Parameters
Default Configuration
IP Precedence 0 1 2 3 4 5 6 7
Queue 1 2 3 4 5 6 7 8
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 394
QoS Commands
qos map queue-cos 28
Command Mode
Example
Syntax
Parameters
• to cos-id —Specifies the CoS value to which the queue values are mapped.
Default Configuration
Queue 1 2 3 4 5 6 7 8
COS 1 0 2 3 4 5 6 7
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 395
QoS Commands
qos map queue-dscp 28
qos map queue-dscp
To configure the queue-to-DSCP map, use the qos map queue-dscp Global
Configuration mode command.
Syntax
Parameters
• to dscp-id —Specifies the DSCP values to which the queue values are
mapped.
Default Configuration
Queue 1 2 3 4 5 6 7 8
Command Mode
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 396
QoS Commands
qos remark 28
Parameters
Default Configuration
Queue 1 2 3 4 5 6 7 8
IP Precedence 0 1 2 3 4 5 6 7
Command Mode
Example
qos remark
To configure the remarking state of each interface, use the qos remark Interface
Configuration mode command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 397
QoS Commands
qos trust (Global) 28
Default Configuration
Command Mode
Example
NOTE This command is available only when the switch is in QoS basic mode.
Syntax
no qos trust
Parameters
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 398
QoS Commands
qos trust (Interface) 28
Command Mode
User Guidelines
Packets entering a QoS domain are classified at its edge. When the packets are
classified at the edge, the switch port within the QoS domain can be configured to
one of the trusted states because there is no need to classify the packets at every
switch within the domain.
Use this command to specify whether the port is trusted and which fields of the
packet to use to classify traffic.
When the switch is configured with trust DSCP, the traffic is mapped to the queue
by the DSCP-to-queue map.
When the switch is configured with trust CoS, the traffic is mapped to the queue
by the CoS-to-queue map.
Example
To disable the trust state on an interface, use the no form of this command.
Syntax
qos trust
no qos trust
Parameters
N/A
Default Configuration
Trust state is enabled on each interface when the switch is in QoS basic mode.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 399
QoS Commands
service-policy 28
Command Mode
Example
service-policy
To bind a policy map to a port or port channel, use the service-policy Interface
Configuration mode command.
To detach a policy map from an interface, use the no form of this command.
NOTE This command is available only when the switch is in QoS advanced mode.
Syntax
no service-policy input
Parameters
Command Mode
User Guidelines
Example
The following example attaches a policy map called Policy1 to the input interface:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 400
QoS Commands
set 28
set
To select the value that QoS uses as the DSCP value, the egress queue, or to set
user priority values, use the set Policy-map Class Configuration mode command.
NOTE This command is available only when the switch is in QoS advanced mode.
Syntax
no set queue
Parameters
Command Mode
User Guidelines
The set and trust commands are mutually exclusive within the same policy map.
To return to the Global Configuration mode, use the exit command. To return to the
Privileged EXEC mode, use the end command.
Example
The following example creates an ACL, places it into a class map, places the class
map into a policy map, and sets the DSCP value in the packet to 56 for classes in
the policy map called p1:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 401
QoS Commands
show class-map 28
show class-map
To show information for all class maps or for a specific class map when the switch
is in QoS advanced mode, use the show class-map Privileged EXEC mode
command.
Syntax
Parameters
Example
show policy-map
To show information for all policy maps or for a specific policy map, use the show
policy-map Privileged EXEC mode command.
NOTE This command is available only when the switch is in QoS advanced mode.
Syntax
Parameters
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 402
QoS Commands
show policy-map interface 28
Command Mode
Example
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 403
QoS Commands
show qos 28
show qos
To show the QoS settings on the switch, use the show qos Privileged EXEC mode
command.
Syntax
show qos
Parameters
N/A
Default Configuration
N/A
Command Mode
Examples
Example 1—The following example displays QoS attributes when the switch is in
QoS basic mode:
Example 2—The following example displays QoS attributes when the switch is in
QoS advanced mode:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 404
QoS Commands
show qos aggregate-policer 28
show qos aggregate-policer
To show information for specific aggregate policers, use the show qos aggregate-
policer Privileged EXEC mode command.
NOTE This command is available only when the switch is in QoS advanced mode.
Syntax
Parameters
N/A
Command Mode
Example
Syntax
Parameters
Default Configuration
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 405
QoS Commands
show qos map 28
Command Mode
User Guidelines
Example
Syntax
Parameters
Default Configuration
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 406
QoS Commands
show qos map 28
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 407
QoS Commands
show qos queueing 28
show qos queueing
To show the QoS queuing information, use the show qos queueing Privileged
EXEC mode command.
Syntax
Parameters
N/A
Command Mode
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 408
QoS Commands
traffic-shape 28
Command Mode
Example
traffic-shape
To configure the maximum permitted excess burst size of egress port and queue
shaper, use the traffic-shape Interface Configuration mode command.
Syntax
no traffic-shape
Parameters
Default Configuration
Command Mode
Example
The following example sets a traffic shaper burst size 9600 bytes:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 409
QoS Commands
trust-shape (Interface) 28
switchxxxxxx(config)# traffic-shape burst queue 9600
trust-shape (Interface)
To configure the egress port shaper, use trust-shape Interface Configuration mode
command. The egress port shaper controls the traffic transmit rate (Tx rate).
Syntax
traffic-shape committed-rate
no traffic-shape
Parameters
Default Configuration
Command Mode
Example
The following example sets a traffic shaper on fa5 when the average traffic rate
exceeds 124000 kbps:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 410
QoS Commands
traffic-shape queue 28
traffic-shape queue
To configure the egress queue shaper on a specific queue, use the traffic-shape
queue Interface Configuration mode command. The egress port shaper controls
the traffic transmit rate (Tx rate) on a queue on an interface.
Syntax
Parameters
Default Configuration
Command Mode
Example
The following example sets a shaper on queue 1 when the average traffic rate
exceeds 124000 kbps:
trust
To configure the trust state, use the trust Policy-map Class Configuration mode
command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 411
QoS Commands
trust 28
Syntax
trust
no trust
Parameters
N/A
Default Configuration
The default state is according to the mode selected in the qos command
(advanced mode). The type of trust is determined in qos advanced-mode trust.
Command Mode
User Guidelines
This command is relevant only when the switch is in QoS advanced, ports-not-
trusted mode. Trust indicates that traffic is sent to the queue according to the
packet’s QoS parameters (UP or DSCP).
Use this command to distinguish the QoS trust behavior for certain traffic from
others. For example, incoming traffic with certain DSCP values can be trusted. A
class map can be configured to match and trust the DSCP values in incoming
traffic.
Trust values set with this command supersede trust values set on specific
interfaces with the qos trust (Interface) Interface Configuration mode command.
The trust and set commands are mutually exclusive within the same policy map.
Policy maps, which contain set or trust commands or that have ACL classification
to an egress interface, cannot be attached by using the service-policy Interface
Configuration mode command.
If specifying trust CoS, QoS maps a packet to a queue, the received or default port
CoS value, and the CoS-to-queue map.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 412
QoS Commands
rate-limit (Interface) 28
Example
The following example creates an ACL, places it into a class map, places the class
map into a policy map, and configures the trust state using the DSCP value in the
ingress packet:
rate-limit (Interface)
To limit the incoming traffic rate on an interface, use the rate-limit Interface
Configuration mode command.
To disable the rate limit on an interface, use the no form of this command.
Syntax
rate-limit committed-rate-kbps
no rate-limit
Parameters
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 413
QoS Commands
rate-limit (VLAN) 28
Example
The following example limits the incoming traffic rate on fa5 to 100000 kbps:
rate-limit (VLAN)
To limit the incoming traffic rate for a VLAN, use the rate-limit VLAN Global
Configuration mode command.
To disable the rate limit for a VLAN, use the no form of this command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
Traffic policing in a policy map takes precedence over the VLAN rate limiting. If a
packet is subject to traffic policing in a policy map and is associated with a VLAN
that is rate limited, the packet is counted only in the traffic policing of the policy
map.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 414
QoS Commands
wrr-queue bandwidth 28
Example
wrr-queue bandwidth
To assign WRR weights to egress queues, use the wrr-queue bandwidth Global
Configuration command.
Syntax
Parameters
Default Configuration
WRR is disabled by default. The default WRR weight is 1 for all queues.
Command Mode
User Guidelines
The weight ratio determines the frequency at which the packet scheduler
removes packets from each queue.
The ratio for each queue is defined as the queue weight divided by the sum of all
queue weights (the normalized weight). This sets the bandwidth allocation of each
queue.
A weight of 0 indicates that no bandwidth is allocated for the same queue, and the
shared bandwidth is divided among the remaining queues. We do not recommend
that you set the weight of a queue to 0 as it might stop transmission of control-
protocols packets generated by the device.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 415
QoS Commands
wrr-queue bandwidth 28
All three queues participate in the WRR, excluding the expedite queues, whose
corresponding weight is not used in the ratio calculation.
An expedite (SP) queue is a priority queue, which is serviced until empty before
the other queues are serviced. The expedite queues are designated by the
priority-queue out num-of-queues command.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 416
29
RADIUS Commands
radius-server default-param
To set the default Remote Authentication Dial-In User Service (RADIUS) server
parameters, use the radius-server default-param Global Configuration mode
command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 417
RADIUS Commands
radius-server host 29
Example
radius-server host
To configure a RADIUS server, use the radius-server host Global Configuration
mode command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 418
RADIUS Commands
radius-server host 29
• timeout timeout—(Optional) Specifies the number of seconds that the
switch waits for an answer from the RADIUS server before retrying the
query, or switching to the next server. If there is no value entered in this field,
the switch uses the default timeout value. (Range: 1 to 30, default: 3)
- all—The RADIUS server is used for user login authentication and 802.1x
port authentication.
Default Configuration
If timeout is not specified, the global value (set in the radius-server default-param
command) is used.
If retransmit is not specified, the global value (set in the radius-server default-
param command) is used.
If key-string is not specified, the global value (set in the radius-server default-
param command) is used.
If a parameter was not set in one of the above commands, the default for that
command is used. For example, if a timeout value was not set in the current
command, the default timeout set in the radius-server default-param command is
used.
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 419
RADIUS Commands
show radius-server 29
switchxxxxxx(config)# radius-server host radiusserver1 auth-port 20 timeout
20
show radius-server
To show information of the RADIUS servers defined on the switch, use the show
radius-server Privileged EXEC mode command.
Syntax
show radius-server
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 420
RADIUS Commands
show radius-server default-param 29
Field Description
Syntax
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 421
RADIUS Commands
show radius-server default-param 29
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 422
30
RMON Commands
Syntax
Parameters
Command Mode
Example
rmon alarm
To configure a RMON alarm, use the rmon alarm Global Configuration mode
command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 375
RMON Commands
rmon alarm 30
Syntax
Parameters
- broadcast-pkts—Broadcast packets.
- collisions—Collision.
- multicast-pkts—Multicast packets.
- octets—Octets.
- pkts—Number of packets.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 376
RMON Commands
rmon alarm 30
• interval—The interval in seconds during which the data is sampled and
compared with rising and falling thresholds. (Range: 1 to 2147483647)
- rising—A single rising alarm is generated if the first sample (after this
entry becomes valid) is greater than or equal to the rising threshold.
- falling—A single falling alarm is generated if the first sample (after this
entry becomes valid) is less than or equal to the falling threshold.
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 377
RMON Commands
rmon event 30
Command Mode
Example
rmon event
To configure a RMON event, use the rmon event Global Configuration mode
command.
Syntax
rmon event index {log | trap COMMUNITY | log trap COMMUNITY } [description
DESCRIPTION] [owner NAME]
no rmon event index
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 378
RMON Commands
rmon history 30
Default Configuration
Command Mode
Example
The following example configures an event identified as index 10, for which the
switch generates a notification in the log table:
rmon history
To configure a RMON MIB history on an Ethernet interface, use the rmon history
Global Configuration command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 379
RMON Commands
show rmon alarm 30
Default Configuration
Command Mode
Example
Syntax
Parameters
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 380
RMON Commands
show rmon alarm 30
Startup Alarm: rising
Rising Threshold: 8700000
Falling Threshold: 78
Rising Event: 1
Falling Event: 1
Owner: CLI
The following table describes the significant fields shown in the example:
Field Description
Last Sample Value Value of the statistic during the last sampling period.
For example, if the sample type is delta, this value is
the difference between the samples at the beginning
and end of the period. If the sample type is absolute,
this value is the sampled value at the end of the period.
Startup Alarm Alarm that is sent when this entry is first set. If the first
sample is greater than or equal to the rising threshold,
and startup alarm is equal to rising or rising-falling,
then a single rising alarm is generated. If the first
sample is less than or equal to the falling threshold,
and startup alarm is equal falling or rising-falling, then a
single falling alarm is generated.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 381
RMON Commands
show rmon event 30
Falling Threshold Sampled statistic falling threshold. When the current
sampled value is less than or equal to this threshold,
and the value at the last sampling interval is greater
than this threshold, a single event is generated.
Syntax
Parameters
Example
The following example displays all entries in the RMON event table:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 382
RMON Commands
show rmon event log 30
The following table describes significant fields shown in the example:
Field Description
Last Sent The time that this entry last generated an event. If this
entry has not generated any events, this value is zero.
Syntax
Parameters
Example
The following example shows information for the event 1 in the RMON log table:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 383
RMON Commands
show rmon history 30
Event Description Time
----- -------------- -------------------
1 MIB Var.: Jan 18 2006 23:48:19
1.3.6.1.2.1.2.2.1.10.
53, Delta, Rising,
Actual Val: 800,
Thres.Set: 100,
Interval (sec):1
Syntax
Parameters
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 384
RMON Commands
show rmon statistics interfaces 30
Index The history index.
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 385
RMON Commands
show rmon statistics interfaces 30
etherStatsFragments : 0
etherStatsJabbers : 0
etherStatsCollisions : 0
etherStatsPkts64Octets : 1848
etherStatsPkts65to127Octets : 218
etherStatsPkts128to255Octets : 170
etherStatsPkts256to511Octets : 25
etherStatsPkts512to1023Octets : 0
etherStatsPkts1024to1518Octets : 0
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 386
RMON Commands
show rmon statistics interfaces 30
Oversize Packets Total number of packets received, longer than 1518
octets (excluding framing bits, but including FCS
octets) and otherwise well formed.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 387
RMON Commands
show rmon statistics interfaces 30
1024 to 1518 Octets Total number of packets (including bad packets)
received that were between 1024 octets and 1518
octets in length inclusive (excluding framing bits but
including FCS octets).
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 388
31
Security DoS Commands
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 423
Security DoS Commands
security-suite dos (Global) 31
• icmpv6-ping-max-check—Checks the maximum size of ICMPv6 ping
packets and drops the packets larger than the maximum packet size.
• xma-deny—Drops the packets if the sequence number is zero, and the FIN,
URG and PSH bits are set.
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 424
Security DoS Commands
security-suite dos (Interface) 31
The default parameters are:
Command Mode
Example
The following example enables checking the minimum size of IPv6 fragments and
sets the minimum fragment size to 1000 bytes:
Syntax
security-suite dos
no security-suite dos
Parameters
N/A
Default Configuration
Disabled
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 425
Security DoS Commands
security-suite dos ip gratuitous-arps 31
Example
Syntax
Parameters
N/A
Default Configuration
Disabled
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 426
Security DoS Commands
show security-suite dos 31
show security-suite dos
To show the DoS protection configuration, use the show security-suite dos
Privileged EXEC Mode command.
Syntax
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 427
Security DoS Commands
show security-suite dos interfaces 31
show security-suite dos interfaces
To show the DoS protection and gratuitous ARP protection status per interface,
use the show security-suite dos interfaces Privileged EXEC Mode command.
Syntax
Parameters
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 428
32
SNMP Commands
show snmp-server
To show the Simple Network Management Protocol (SNMP) service status, use
the show snmp-server Privileged EXEC mode command.
Syntax
show snmp-server
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 429
SNMP Commands
show snmp-server community 32
show snmp-server community
To show the SNMP communities defined on the switch, use the show snmp-server
community Privileged EXEC mode command.
Syntax
Parameters
N/A
Command Mode
Example
Total Entries: 1
The following table describes the significant fields shown in the example:
Field Description
View SNMP view that can access the SNMP community. all
indicates that any IP device can access the SNMP
community.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 430
SNMP Commands
show snmp-server engineid 32
Field Description
Syntax
Parameters
N/A
Command Mode
Example
Total Entries: 1
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 431
SNMP Commands
show snmp-server group 32
The following table describes the significant fields shown in the example:
Field Description
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Total Entries: 1
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 432
SNMP Commands
show snmp-server host 32
The following table describes the significant fields shown in the example:
Field Description
Syntax
Parameters
N/A
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 433
SNMP Commands
show snmp-server trap 32
Example
Total Entries: 1
The following table describes the significant fields shown in the example:
Field Description
UDP Port UDP port used for notifications on the recipient device.
Syntax
Parameters
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 434
SNMP Commands
show snmp-server view 32
Default Configuration
N/A
Command Mode
Example
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 435
SNMP Commands
show snmp-server user 32
Total Entries: 2
The following table describes the significant fields shown in the example:
Field Description
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 436
SNMP Commands
show snmp-server user 32
Access SecLevel: auth
Total Entries: 1
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 437
SNMP Commands
snmp-server 32
snmp-server
To enable SNMP on the switch, use the snmp-server Global Configuration mode
command.
Syntax
snmp-server
no snmp-server
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
switchxxxxxx(config)# snmp-server
snmp-server community
To define an SNMP community that permits access to SNMP commands (v1 and
v2), use the snmp-server community Global Configuration mode command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 438
SNMP Commands
snmp-server community 32
Parameters
• rw—Read-write access.
Default Configuration
Command Mode
User Guidelines
To associate communities with access rights directly (basic mode), use the snmp-
server community community-string [view view-name] {ro | rw} command. The
view-name value is used to restrict the access rights of a community string. When
a view name is specified, the software:
• Maps the internal security name for SNMPv1 and SNMPv2 security models
to an internal group name.
• Maps the internal group name for SNMPv1 and SNMPv2 security models to
the view name (read-view and notify-view always, and for rw for write-view
also).
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 439
SNMP Commands
snmp-server contact 32
• Generates an internal security name.
• Maps the internal security name for SNMPv1 and SNMPv2 security models
to the group name.
Example
The following example defines an SNMP community comm1 and associates it with
the group abcd:
snmp-server contact
To set the system contact, use the snmp-server contact Global Configuration
mode command.
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 440
SNMP Commands
snmp-server engineid 32
snmp-server engineid
To define a local SNMPv3 engine ID, use the snmp-server engineid Global
Configuration mode command.
Syntax
Parameters
Default Configuration
The default SNMP engine ID is based on the MAC address of the switch.
Command Mode
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 441
SNMP Commands
snmp-server group 32
Default Configuration
N/A
Command Mode
Example
snmp-server group
To define an SNMP group, use the snmp-server group Global Configuration mode
command. Groups are used to map SNMP users to SNMP views (using the snmp-
server user command).
Syntax
snmp-server group groupname {v1 | v2c | v3} {noauth | auth | priv} read-view
readview write-view writeview [notify-view notifyview]
no snmp-server group groupname {v1 | v2c | v3} {noauth | auth | priv}
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 442
SNMP Commands
snmp-server host 32
• read-view readview—Sets the view name that enables viewing only.
(Length: 1 to 30 characters)
Default Configuration
If the notifyview value is not specified, the notify view is not defined.
If the readview value is not specified, all objects except for the community table,
SNMPv3 user, and access tables are available for retrieval.
If the writeview value is not specified, the write view is not defined.
Command Mode
User Guidelines
The group defined in this command is used in the snmp-server user command to
map SNMP users to the SNMP group. These users are then automatically mapped
to SNMP views defined in this command.
Example
snmp-server host
To configure the hosts to receive SNMP notifications (traps or informs), use the
snmp-server host Global Configuration mode command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 443
SNMP Commands
snmp-server host 32
Syntax
Parameters
• traps—(Optional) Sends SNMP traps to the host. This is the default setting.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 444
SNMP Commands
snmp-server location 32
Default Configuration
Command Mode
User Guidelines
Use the snmp-server user, snmp-server group, and snmp-server view commands
to create a SNMP user, a SNMP group, or a SNMP view.
Example
snmp-server location
To set the system location, use the snmp-server location Global Configuration
mode command.
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 445
SNMP Commands
snmp-server trap 32
snmp-server trap
To send SNMP traps when the authentication fails, use the snmp-server trap
Global Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
Example
snmp-server user
To define an SNMP user, use the snmp-server user Global Configuration mode
command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 446
SNMP Commands
snmp-server user 32
Syntax
Parameters
• username—Specifies the name of the user on the host that connects to the
SNMP agent. (Range: 1 to 30 characters). For SNMP v1 or v2c, this
username must match the community string entered in the snmp-server
host command.
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 447
SNMP Commands
snmp-server view 32
snmp-server view
To define an SNMP view, use the snmp-server view Global Configuration mode
command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
User Guidelines
This command can be entered multiple times for the same SNMP view.
The command’s logical key is the pair (view-name, oid-tree). Two commands
cannot have the same view-name and oid-tree.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 448
SNMP Commands
snmp-server view 32
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 449
33
STP Commands
Syntax
Parameters
Default Configuration
N/A
Command Mode
User Guidelines
This feature can only be used when the switch is in RSTP or MSTP mode.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 416
STP Commands
instance (MST) 33
instance (MST)
To map VLANs to a Multiple Spanning Tree Protocol (MSTP) instance, use the
instance MST Configuration mode command.
Syntax
Parameters
Default Configuration
All VLANs are mapped to the Common and Internal Spanning Tree (CIST) instance
(instance 0).
Command Mode
User Guidelines
All VLANs that are not explicitly mapped to an MSTP instance are mapped to the
CIST instance (instance 0) and cannot be unmapped from the CIST.
For two or more devices to be in the same MSTP region, they must have the same
VLAN mapping, the same configuration revision number, and the same name.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 417
STP Commands
name (MST) 33
name (MST)
To define the name for an MSTP instance, use the name MST Configuration mode
command.
Syntax
name string
no name
Parameters
Command Mode
Example
revision (MST)
To define the revision number for current MSTP configuration, use the revision
MST Configuration mode command.
Syntax
revision value
no revision
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 418
STP Commands
show spanning-tree 33
Parameters
Default Configuration
Command Mode
Example
show spanning-tree
To show the STP configuration, use the show spanning-tree Privileged EXEC
mode command.
Syntax
show spanning-tree
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 419
STP Commands
show spanning-tree interfaces 33
Default port cost method: short
Interfaces
Name State Prio.Nbr Cost Sts Role PortFast Type
--------- -------- -------- -------- ------ ---- -------- -----------------
fa22 enabled 128.22 19 Frw Desg No P2P (STP)
Syntax
Parameters
Command Mode
Examples
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 420
STP Commands
show spanning-tree mst 33
Type: Shared Boundary Port Fast: No
Designated bridge Priority : 0 Address: 00:00:00:00:00:00
Designated port id: 0.0 Designated path cost: 0
BPDU Filter: Disabled BPDU guard: Disabled
BPDU: sent 0, received 0
Port : fa1
Configuration BDPUs Received : 0
TCN BDPUs Received : 8
MSTP BDPUs Received : 15
Configuration BDPUs Transmitted : 86696
TCN BDPUs Transmitted : 0
MSTP BDPUs Transmitted : 0
Syntax
Parameters
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 421
STP Commands
show spanning-tree mst configuration 33
Instance Status : Disabled
Bridge Identifier : 32768/ 0/00:03:6D:00:10:00
------------------------------------------------------------
Regional Root Bridge : 32768/ 0/00:03:6D:00:10:00
Internal Root Path Cost : 0
Remaining Hops : 20
Topology changes : 4
Last Topology Change : 0
------------------------------------------------------------
VLANs mapped: 1-4094
============================================================
Syntax
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 422
STP Commands
show spanning-tree mst interfaces 33
show spanning-tree mst interfaces
To show the MSTP instance information for specific interfaces, use the show
spanning-tree mst interfaces Privileged EXEC mode command.
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 423
STP Commands
spanning-tree 33
spanning-tree
To enable STP on the switch, use the spanning-tree Global Configuration mode
command.
Syntax
spanning-tree
no spanning-tree
Parameters
N/A
Default Configuration
STP is enabled.
Command Mode
Example
switchxxxxxx(config)# spanning-tree
Syntax
no spanning-tree bpdu
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 424
STP Commands
spanning-tree bpdu-filter (Interface) 33
• flooding—Floods BPDU packets unconditionally.
Default Configuration
Command Mode
User Guidelines
The filtering and flooding modes are relevant when STP is disabled globally or on
a single interface.
Example
Syntax
no spanning-tree bpdu-filter
Parameters
• enable—Specifies that the interface does not send BPDU packets and
filters the received BPDU packets.
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 425
STP Commands
spanning-tree bpdu-guard (Interface) 33
Command Mode
Example
Syntax
no spanning-tree bpdu-guard
Parameters
Default Configuration
Command Mode
User Guidelines
The command can be enabled when STP is enabled globally and on the interface.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 426
STP Commands
spanning-tree cost (Interface) 33
switchxxxxxx(config-if)# spanning-tree bpdu-guard enable
Syntax
no spanning-tree cost
Parameters
The default path cost is determined by the port speed and the path cost method
(long or short):
Command Mode
Example
The following example configures the STP path cost on fa15 to 35000:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 427
STP Commands
spanning-tree forward-time 33
spanning-tree forward-time
To configure the STP bridge forward delay time, which is the amount of time that a
port remains in the listening and learning states before entering the forwarding
state, use the spanning-tree forward-time Global Configuration mode command.
Syntax
no spanning-tree forward-time
Parameters
15 seconds
Command Mode
User Guidelines
Example
spanning-tree hello-time
To configure how often the switch broadcasts the hello messages to other
devices, use the spanning-tree hello-time Global Configuration mode command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 428
STP Commands
spanning-tree link-type (Interface) 33
Syntax
no spanning-tree hello-time
Parameters
2 seconds
Command Mode
User Guidelines
When configuring the hello time, the following relationship should be maintained:
Example
Syntax
no spanning-tree link-type
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 429
STP Commands
spanning-tree mst port-priority 33
Default Configuration
Command Mode
Example
Syntax
Parameters
Command Mode
User Guidelines
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 430
STP Commands
spanning-tree max-hops 33
Example
spanning-tree max-hops
To configure the number of hops in an MSTP region before BDPU is discarded and
the port information is aged out, use the spanning-tree max-hops Global
Configuration mode command.
Syntax
no spanning-tree max-hops
Parameters
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 431
STP Commands
spanning-tree max-age 33
spanning-tree max-age
To set the interval in seconds that the switch can wait without receiving a
configuration message before attempting to redefine its own configuration, use
the spanning-tree max-age Global Configuration mode command.
Syntax
no spanning-tree max-age
Parameters
Default Configuration
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 432
STP Commands
spanning-tree mode 33
spanning-tree mode
To set the STP mode, use the spanning-tree mode Global Configuration mode
command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
In the RSTP mode, the switch uses STP when the neighbor device uses STP.
In the MSTP mode, the switch uses RSTP when the neighbor device uses RSTP,
and uses STP when the neighbor device uses STP.
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 433
STP Commands
spanning-tree mst cost 33
Command Mode
User Guidelines
For two or more switches to be in the same MSTP region, they must contain the
same VLAN mapping, the same configuration revision number, and the same
name.
Example
Syntax
Parameters
The default path cost is determined by the port speed and the path cost method
(long or short):
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 434
STP Commands
spanning-tree mst priority 33
Gigabit Ethernet (1000 Mbps) 20,000 4
Command Mode
Example
Syntax
Parameters
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 435
STP Commands
spanning-tree pathcost method 33
User Guidelines
The switch with the lowest priority is the root of the STP.
Example
Syntax
Parameters
• long—The default port path costs are within the range 1 through
200,000,000.
• short—The default port path costs are within the range 1 through 65,535.
Default Configuration
Command Mode
User Guidelines
• If the short method is selected, the switch calculates cost in the range 1
through 65,535.
• If the long method is selected, the switch calculates cost in the range 1
through 200,000,000.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 436
STP Commands
spanning-tree portfast 33
Example
The following example sets the default path cost method to Long:
spanning-tree portfast
To enable the PortFast mode on an interface, use the spanning-tree portfast
Interface Configuration mode command.
To disable the PortFast mode on an interface, use the no form of this command.
Syntax
spanning-tree portfast
no spanning-tree portfast
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
In the PortFast mode, the interface is immediately put into the forwarding state
upon linkup, without waiting for the standard forward delay time.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 437
STP Commands
spanning-tree port-priority 33
spanning-tree port-priority
To configure the STP priority for an interface, use the spanning-tree port-priority
Interface Configuration mode command.
Syntax
no spanning-tree port-priority
Parameters
Command Mode
User Guidelines
Example
spanning-tree priority
To configure the device STP priority used to determine which bridge is selected
as the root bridge, use the spanning-tree priority Global Configuration mode
command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 438
STP Commands
spanning-tree tx-hold-count 33
no spanning-tree priority
Parameters
Command Mode
User Guidelines
The priority value must be a multiple of 4096. The switch with the lowest priority is
the root of the STP. When more than one switch has the lowest priority, the switch
with the lowest MAC address is selected as the root.
Example
spanning-tree tx-hold-count
To set the Tx-Hold-Count used to limit the maximum transmission packet number
per second, use the spanning-tree tx-hold-count Global Configuration mode
command.
Syntax
no spanning-tree tx-hold-count
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 439
STP Commands
spanning-tree tx-hold-count 33
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 440
SYN Protection Commands
security-suite syn protection mode 34
SYN Protection Commands
Syntax
Parameters
• block—Blocks the TCP SYN traffic from attacking ports destined to the
local system, and generates a rate-limited syslog message.
• report—Reports for the SYN protection feature about TCP SYN traffic per
port (including rate-limited syslog message when an attack is identified).
Default Configuration
Command Mode
Example
The following example enables SYN protection in block mode on the switch:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 450
SYN Protection Commands
security-suite syn protection recovery 34
security-suite syn protection recovery
To set the time period for SYN protection to block an attacked interface, use the
security-suite syn protection recovery Global Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
If the timeout is modified, the new value is only used on interfaces that are not
currently under attack.
Example
The following example sets the SYN protection auto-recovery timeout to 100
seconds:
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 451
SYN Protection Commands
show security-suite syn protection 34
Parameters
• pps—The number of packets per second from a specific port that triggers
identification of TCP SYN attack. (Range: 20 to 60 packets per second)
Default Configuration
Command Mode
Example
The following example sets the SYN protection threshold to 40 packets per
second:
Syntax
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 452
SYN Protection Commands
show security-suite syn protection 34
Interface Operational Last Attack
Name Status
----------- ------------- ---------------------------------------------
gi13 Normal 00:57:11 01-Jan-2000 blocked and reported
The following table describes the significant fields shown in the example:
Field Description
Last Attack Time of the last SYN flood attack detected on the
interface.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 453
35
Syslog Commands
clear logging
To clear the log messages from the internal logging buffer, use the clear logging
Privileged EXEC mode command.
Syntax
Parameters
Command Mode
Example
logging host
To define a remote SYSLOG server where log messages are sent (using the
SYSLOG protocol), use the logging host Global Configuration mode command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 454
Syslog Commands
logging host 35
Syntax
Parameters
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 455
Syslog Commands
logging on 35
User Guidelines
Example
logging on
To enable logging on the switch, use the logging on Global Configuration mode
command.
Syntax
logging on
no logging on
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 456
Syslog Commands
logging severity 35
However, if logging is disabled, no messages are sent to these destinations. Only
the console receives the error messages.
Example
switchxxxxxx(config)# logging on
logging severity
To set the severity level for error messages that are logged to RAM or flash, use
the logging severity Global Configuration mode command.
Syntax
Parameters
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 457
Syslog Commands
show logging 35
Command Mode
User Guidelines
All SYSLOG messages are logged to the internal buffer. This command limits the
messages displayed to the user.
Example
The following example sets the severity level for logging messages to RAM and
flash as debugging:
show logging
To display the logging status and SYSLOG messages stored in the internal buffer,
use the show logging Privileged EXEC mode command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 458
Syslog Commands
show logging 35
Logging service is enabled
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 459
Syslog Commands
show logging 35
8| Jan 01 00:30:36| AAA| info| User 'cisco' is authorized
with privilege level 15
9| Jan 01 00:30:36| AAA| info| User 'cisco' login from
telnet success
10| Jan 01 00:00:55| STP| info| Port 1 STP port state is
set to Forwarding
11| Jan 01 00:00:40| STP| info| Port 1 STP port state is
set to Learning
12| Jan 01 00:00:22| System| info| Sysinfo variable
'resetdefault' is set to value '0'
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 460
36
System Management Commands
hostname
To modify the hostname of the switch, use the hostname Global Configuration
mode command.
Syntax
hostname name
Parameters
N/A
Command Mode
Example
ping
To send ICMP echo request packets to another node on the network, use the ping
Privileged EXEC mode command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 452
System Management Commands
ping 36
ping ipv6 {ipv6-address | hostname} [count packet_count]
Parameters
Default Usage
N/A
Command Mode
Examples
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 453
System Management Commands
reload 36
Pinging 3003::11 with 64 bytes of data:
64 bytes from 3003::11: icmp_seq=1. time=0 ms
64 bytes from 3003::11: icmp_seq=2. time=50 ms
64 bytes from 3003::11: icmp_seq=3. time=0 ms
64 bytes from 3003::11: icmp_seq=4. time=0 ms
----3003::11 PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/12/50
reload
To reload the operating system, use the reload Privileged EXEC mode command.
Syntax
reload
Parameters
N/A
Default Usage
N/A
Command Mode
Example
switchxxxxxx# reload
Proceed with reload? [confirm]
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 454
System Management Commands
show cpu utilization 36
Parameters
N/A
Default Usage
N/A
Command Mode
Example
Syntax
Parameters
N/A
Default Usage
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 455
System Management Commands
show memory statistics 36
current: 5%
Syntax
Parameters
N/A
Default Usage
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 456
System Management Commands
show services tcp-udp 36
show services tcp-udp
To show information about the active TCP and UDP services, use the show
services tcp-udp Privileged EXEC mode command.
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
Local IP IP address and port number of the local end of the socket.
Address
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 457
System Management Commands
show system languages 36
Field Description
Remote IP IP address and port number of the remote end of the socket.
Address
State State of the socket. Because there are no states in raw mode
and usually no states are used in UDP, this column may be left
blank.
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 458
System Management Commands
show tech-support 36
show tech-support
To automatically run the show commands to collect diagnostic information for
technical support purposes, use the show tech-support Privileged EXEC mode
command.
Syntax
show tech-support
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 459
System Management Commands
show tech-support 36
File Name File Size Modified
------------------------ ---------------- ------------------------
startup-config 1691 2000-01-01 08:02:16
backup-config 1757 2000-01-01 08:04:16
rsa2 1679 2000-01-01 08:00:38
dsa2 668 2000-01-01 08:00:46
ssl_cert 891 2000-01-01 08:01:06
image-1 7075418 2013-11-19 10:56:27
image-2 7071043 2013-11-13 17:52:30
config-file-header
switchxxxxxx
v1.0.0.16
CLI v1.0
@
!
!
!
!
username "cisco" secret encrypted
ZGZlYWYxMDM5MGU1NjBhZWE3NDVjY2JhNTNlMDQ0ZWQ=
username "cisco2" privilege user secret encrypted
ZGRhYWJmYTBhNDhkNTZmY2NhNDgyYWExZjZlNmIzNGI=
enable password 1234
!
!
!
voice vlan oui-table add 00:E0:BB 3COM
voice vlan oui-table add 00:03:6B Cisco
voice vlan oui-table add 00:E0:75 Veritel
voice vlan oui-table add 00:D0:1E Pingtel
voice vlan oui-table add 00:01:E3 Siemens
voice vlan oui-table add 00:60:B9 NEC/Philips
voice vlan oui-table add 00:0F:E2 H3C
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 460
System Management Commands
show tech-support 36
voice vlan oui-table add 00:09:6E Avaya
!
!
!
!
spanning-tree mst configuration
name "00:E0:4C:86:70:01"
!
!
!
!
!
!
!
!
aaa authentication enable default enable none
ip http timeout-policy 1 http-only
mac access-list extended mac1
sequence 1 permit any any
qos advanced
qos map queue-cos 2 to 2
class-map c1 match-any
match access-group mac1
class-map c2 match-any
match access-group mac1
class-map c3 match-any
match access-group mac1
!
!
!
!
!
!
!
interface gi1
!
interface gi2
!
interface gi3
!
interface gi4
!
interface gi5
!
interface gi6
!
interface gi7
!
interface gi8
!
interface gi9
!
interface gi10
!
interface gi11
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 461
System Management Commands
show username 36
!
interface gi12
!
interface gi13
!
interface gi14
!
interface gi15
!
interface gi16
!
interface gi17
!
interface gi18
!
interface gi19
!
interface gi20
!
interface gi21
!
interface gi22
!
interface gi23
!
interface gi24
!
!
!
!
show username
To show information about all administrative users, use the show username
Privileged EXEC mode command.
Syntax
show username
Parameters
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 462
System Management Commands
show users 36
Default Usage
N/A
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
show users
To show information about all active users, use the show users Privileged EXEC
mode command.
Syntax
show users
Parameters
N/A
Default Usage
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 463
System Management Commands
show version 36
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
show version
To show the system version, use the show version Privileged EXEC mode
command.
Syntax
show version
Parameters
N/A
Default Usage
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 464
System Management Commands
traceroute 36
switchxxxxxx# show version
Cisco Sx220 Series Switch Software, Version 1.0.0.16, RELEASE SOFTWARE
Copyright (c) 2014 by Cisco Systems, Inc.
Compiled Wed Feb 26 16:02:49 UTC 2014
traceroute
To show the routes that the packets will take when traveling to their destination,
use the traceroute Privileged EXEC mode command.
Syntax
Parameters
Default Usage
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 465
System Management Commands
traceroute 36
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
3010 ms 3010 ms Round-trip time for the probes that are sent.
3010 ms
The following are characters that can appear in the traceroute command output:
Field Description
H Host unreachable.
N Network unreachable.
P Protocol unreachable.
Q Source quench.
U U Port unreachable.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 466
37
TACACS+ Commands
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 461
TACACS+ Commands
show tacacs 37
Field Description
show tacacs
To show information for all TACACS+ servers defined on the switch, use the show
tacacs Privileged EXEC mode command.
Syntax
show tacacs
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 462
TACACS+ Commands
tacacs-server default-param 37
Field Description
tacacs-server default-param
To define the default TACACS+ parameters, use the tacacs-server default-param
Global Configuration mode command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 463
TACACS+ Commands
tacacs-server host 37
User Guidelines
The switch can be configured to use this default key or to use a key for an
individual server. If you set a default key and a key string for an individual
TACACS+ server, the key string configured for the individual TACACS+ server
takes precedence.
Example
tacacs-server host
To define a TACACS+ host, use the tacacs-server host Global Configuration mode
command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 464
TACACS+ Commands
tacacs-server host 37
• priority priority—(Optional) Specifies the priority of the TACACS+ server,
where 0 is the highest priority and will be used first. If the switch cannot
establish a session with the highest priority server, the switch will try the
next priority server. (Range: 0 to 65535)
Default Configuration
If key-string is not specified, the global value (set in the tacacs-server default-
param command) is used.
If timeout is not specified, the global value (set in the tacacs-server default-param
command) is used.
If a parameter was not set in one of the above commands, the default for that
command is used. For example, if a timeout value was not set in the current
command or in the tacacs-server default-param command, the default timeout set
in the tacacs-server default-param command is used.
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 465
38
Telnet and SSH Commands
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 466
Telnet and SSH Commands
crypto key generate 38
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:
Email Address []:
Syntax
Parameters
Default Configuration
N/A
Command Mode
User Guidelines
DSA keys are generated in pairs—one public DSA key and one private DSA key. If
the switch already has DSA keys, a warning is displayed with a prompt to replace
the existing keys with new keys.
RSA keys are generated in pairs—one public RSA key and one private RSA key. If
the switch already has RSA keys, a warning is displayed with a prompt to replace
the existing keys with new keys.
This command is not saved in the Running Configuration file. However, the keys
generated by this command are saved in a private configuration (which is never
displayed to the user or saved to another device).
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 467
Telnet and SSH Commands
ip ssh server 38
Example
ip ssh server
To enable the Secure Shell (SSH) service on the switch, use the ip ssh server
Global Configuration mode command.
To disable the SSH service on the switch, use the no form of this command.
Syntax
ip ssh server
no ip ssh server
Parameters
N/A
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 468
Telnet and SSH Commands
ip telnet server 38
User Guidelines
The switch can be configured from a SSH server or Telnet (or both). To control the
switch configuration by Telnet, use the ip telnet server Global Configuration mode
command.
Example
ip telnet server
To enable the Teletype Network (Telnet) service on the switch, use the ip telnet
server Global Configuration mode command.
To disable the Telnet service on the switch, use the no form of this command.
Syntax
ip telnet server
no ip telnet server
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
The switch can be configured from a SSH server or Telnet (or both). To control the
switch configuration by SSH, use the ip ssh server Global Configuration mode
command.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 469
Telnet and SSH Commands
ip telnet server 38
switchxxxxxx(config)# ip telnet server
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 470
39
User Interface Commands
banner exec
To set the EXEC banner, use the banner exec Global Configuration mode
command.
Syntax
no banner exec
Parameters
Default Configuration
N/A
Command Mode
User Guidelines
The EXEC banner shows at the left top of the Getting Started page when users log
in to the switch’s web-based interface or on the command-line interface when
users log in to the switch’s command-line interface.
Example
The following example sets the EXEC banner, including the hostname, system
contact, system location, and MAC address of the switch:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 477
User Interface Commands
banner login 39
switchxxxxxx(config)# banner exec !
Enter TEXT message. End with the character '!'
~ WELCOME ~
----------------------------------------
Host Name = $(hostname)
Bold Text = $(bold)Bold Text$(bold)
Inverse = $(inverse)Inverse Test$(inverse)
Contact = $(contact)
Location = $(location)
Mac Addr = $(mac-address)
!
Token Description
$(bold) Indicates that the next text is a bold text. Using this
token again indicates the end of the bold text.
$(inverse) Indicates that the next text is an inverse text. Using this
token again indicates the end of the inverse text.
banner login
To set the login banner, use the banner login Global Configuration mode command.
Syntax
no banner login
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 478
User Interface Commands
banner login 39
Default Configuration
N/A
Command Mode
User Guidelines
The login banner shows on the login page when users try to access the switch’s
web-based interface or on the command-line interface when users try to access
the switch’s command-line interface.
Example
The following example sets the login banner, including the hostname, system
contact, system location, and MAC address of the switch:
Token Description
$(bold) Indicates that the next text is a bold text. Using this
token again indicates the end of the bold text.
$(inverse) Indicates that the next text is an inverse text. Using this
token again indicates the end of the inverse text.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 479
User Interface Commands
configure 39
configure
To enter the Global Configuration mode, use the configure Privileged EXEC mode.
Syntax
configure [terminal]
Parameters
Command Mode
Example
switchxxxxxx# configure
switchxxxxxx(config)#
do
To execute an EXEC-level command from the Global Configuration mode or any
configuration submode, use the do command.
Syntax
do command
Parameters
Command Mode
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 480
User Interface Commands
disable 39
Example
The following example executes the show vlan Privileged EXEC mode command
from the Global Configuration mode:
disable
To leave the Privileged EXEC mode and return to the User EXEC mode, use the
disable Privileged EXEC mode command.
Syntax
disable [privilege-level]
Parameters
Default Configuration
Command Mode
Example
switchxxxxxx# disable 7
switchxxxxxx>
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 481
User Interface Commands
end 39
end
To end the current configuration session and return to the Privileged EXEC mode,
use the end command.
Syntax
end
Parameters
N/A
Default Configuration
N/A
Command Mode
N/A
Example
The following example ends the Global Configuration mode session and returns to
the Privileged EXEC mode:
switchxxxxxx(config)# end
switchxxxxxx#
enable
To enter the Privileged EXEC mode, use the enable Privileged EXEC mode
command.
Syntax
enable [privilege-level]
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 482
User Interface Commands
exit (Configuration) 39
Command Mode
Examples
switchxxxxxx> enable 15
Password:**********
switchxxxxxx#
exit (Configuration)
To exit any mode and bring the user to the next higher mode, use the exit
command.
Syntax
exit
Parameters
N/A
Default Configuration
N/A
Command Mode
N/A
Example
The following example changes the configuration mode from the Interface
Configuration mode to the Global Configuration mode:
switchxxxxxx(config-if)# exit
switchxxxxxx(config)#
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 483
User Interface Commands
exit (EXEC) 39
exit (EXEC)
To close an active terminal session by logging off the switch, use the exit
Privileged EXEC mode command.
Syntax
exit
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
switchxxxxxx# exit
history
To enable the history buffer and set the maximum number of user commands that
are saved in the history buffer for a particular line, use the history Line
Configuration mode command.
To disable the history buffer and restore the history buffer size to its default
setting, use the no form of this command.
Syntax
no history
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 484
User Interface Commands
show banner 39
Parameters
Default Configuration
Command Mode
User Guidelines
This command enables the history buffer and configures the command history
buffer size for a particular line. It is effective from the next time that the user logs in
using the console, Telnet, or SSH.
The allocated command history buffer is per terminal user, and is taken from a
shared buffer. If there is not enough space available in the shared buffer, the
command history buffer size cannot be increased above the default size.
Example
The following example changes the command history buffer size to 100 entries for
Telnet:
show banner
To show information for the login and exec banners, use the show banner
Privileged EXEC mode command.
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 485
User Interface Commands
show history 39
• exec—Displays the exec banner.
Default Configuration
N/A
Command Mode
Example
show history
To show the commands entered in the current session, use the show history
Privileged EXEC mode command.
Syntax
show history
Parameters
N/A
Default Configuration
N/A
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 486
User Interface Commands
show privilege 39
User Guidelines
The buffer includes executed and unexecuted commands. Commands are listed
from the first to the most recent command.
The buffer remains unchanged when entering into and returning from the
configuration modes.
Example
show privilege
To show the privilege level of the current user, use the show privilege Privileged
EXEC mode command.
Syntax
show privilege
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 487
User Interface Commands
terminal length 39
Current CLI Privilege is 15
terminal length
To modify the terminal print length, use the terminal length Privileged EXEC mode
command.
Syntax
no terminal length
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 488
User Interface Commands
terminal length 39
32M bytes of flash memory
Base MAC Address : 00:E0:4C:86:70:01
IP Address : 192.168.1.254
Subnet Mask : 255.255.255.0
Model Number : SG220-28MP
Serial Number :
PID :
VID : V01
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 489
40
Voice VLAN Commands
Syntax
Parameters
Default Configuration
If the type keyword is not specified, the current voice VLAN type is used.
If the interface-id parameter is not specified, the information for all interfaces is
displayed.
Command Mode
User Guidelines
Using this command without parameters displays the parameters of the current
voice VLAN type. Using this command with the type parameter displays the voice
VLAN parameters relevant to the type selected.
The interface-id parameter is relevant only for the OUI voice VLAN type.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 490
Voice VLAN Commands
show voice vlan 40
Examples
Example 1—The following example displays the auto voice VLAN parameters (this
is independent of the voice VLAN state actually enabled).
Example 2—The following example displays the current voice VLAN parameters
when the voice VLAN state is auto-enabled.
Example 3—The following example displays the voice VLAN parameters when
both Auto voice VLAN and OUI are disabled.
Example 4—The following example displays the voice VLAN parameters when the
voice VLAN operational state is OUI.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 491
Voice VLAN Commands
voice vlan enable 40
voice vlan enable
To enable the administrative voice VLAN on an interface, use the voice vlan enable
Interface Configuration mode command.
To disable the administrative voice VLAN on an interface, use the no form of this
command.
Syntax
Default Configuration
Disabled
Command Mode
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 492
Voice VLAN Commands
voice vlan cos 40
Default Configuration
Command Mode
Example
Syntax
Parameters
Default Configuration
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 493
Voice VLAN Commands
voice vlan cos mode 40
Example
The following example sets the CoS value of the OUI voice VLAN to 7 and does
not do remarking:
Syntax
Parameters
• src—QoS attributes are applied to packets with OUIs in the source MAC
address. See the voice vlan oui-table command for more information.
• all—QoS attributes are applied to packets that are classified to the voice
VLAN.
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 494
Voice VLAN Commands
voice vlan dscp 40
voice vlan dscp
To specify the DSCP value that will be advertised by LLDP in the network policy
TLV, use the voice vlan dscp Global Configuration mode command.
Syntax
Parameters
Default Configuration
46
Command Mode
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 495
Voice VLAN Commands
voice vlan oui-table 40
Parameters
Default Configuration
Command Mode
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 496
Voice VLAN Commands
voice vlan oui-table 40
• description—(Optional) The description for the specified MAC address in
the voice VLAN OUI table. (Length: 1 to 32 characters)
Default Configuration
OUI Description
Command Mode
User Guidelines
Example
The following example adds an entry to the voice VLAN OUI table:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 497
Voice VLAN Commands
voice vlan state 40
switchxxxxxx(config)# voice vlan oui-table add 00:AA:BB experimental
Syntax
Parameters
Default Configuration
Command Mode
User Guidelines
By default, CDP, LLDP, and LLDP MED are enabled on the switch. All ports are
members of the default VLAN (VLAN 1), which is also the default voice VLAN.
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 498
Voice VLAN Commands
voice vlan id 40
voice vlan id
To set a VLAN as the voice VLAN, use the voice vlan id Global Configuration mode
command.
Syntax
no voice vlan id
Parameters
Command Mode
Example
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 499
Voice VLAN Commands
voice vlan vpt 40
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 500
41
VLAN Commands
name (vlan)
To set the name for a VLAN, use the name VLAN Configuration mode command.
To remove the name for a VLAN, use the no form of this command.
Syntax
name string
no name
Parameters
Default Configuration
N/A
Command Mode
User Guidelines
Example
switchxxxxxx(config)# vlan 19
switchxxxxxx(config-if)# name Marketing
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 501
VLAN Commands
management-vlan 41
management-vlan
To set a VLAN as the management VLAN, use the management-vlan Global
Configuration command.
Syntax
Parameters
Default Configuration
Command Mode
Example
Syntax
Parameters
Default Configuration
N/A
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 502
VLAN Commands
show interfaces switchport 41
Command Mode
Example
Syntax
Parameters
Default Configuration
N/A
Command Mode
Examples
Example 1—The following example displays the command output for a trunk port:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 503
VLAN Commands
show interfaces switchport 41
Port is member in:
Vlan Name Egress rule
------- ----------------------- -----------------
1 default Untagged
3 VLAN0003 Tagged
4 VLAN0004 Tagged
6 VLAN0006 Tagged
7 VLAN0007 Tagged
10 VLAN0010 Tagged
Forbidden VLANs:
Vlan Name
------- -----------------------
Example 2—The following example displays the command output for a general
port:
Forbidden VLANs:
Vlan Name
------- -----------------------
Example 3—The following example displays the command output for a access
port:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 504
VLAN Commands
show management-vlan 41
Acceptable Frame Type : untagged-only
Ingress UnTagged VLAN ( NATIVE ) : 5
Trunking VLANs Enabled: 1,3-4,6-7,10
Forbidden VLANs:
Vlan Name
------- -----------------------
show management-vlan
To show the management VLAN status, use the show management-vlan Privileged
EXEC command.
Syntax
show management-vlan
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 505
VLAN Commands
show vlan 41
show vlan
To show information for all VLANs or for a specific VLAN, use the show vlan
Privileged EXEC mode command.
Syntax
Parameters
Default Configuration
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 506
VLAN Commands
show vlan default-vlan 41
show vlan default-vlan
To show the default VLAN, use the show vlan default-vlan Privileged EXEC
command.
Syntax
Parameters
N/A
Default Configuration
N/A
Command Mode
Example
Syntax
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 507
VLAN Commands
switchport default-vlan tagged 41
Default Configuration
Command Mode
User Guidelines
The command automatically removes the port from its previous VLAN and adds it
to a new VLAN.
Example
The following example sets gi1 as an access port and assigns it to VLAN 2 (and
removes it from its previous VLAN):
To return the port to an untagged port, use the no form of this command.
Syntax
Parameters
N/A
Default Configuration
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 508
VLAN Commands
switchport default-vlan tagged 41
Command Mode
User Guidelines
The command adds a port to the default VLAN as a tagged port. The command is
available only if the port mode is trunk or general.
When a trunk port is a member in the default VLAN as a tagged port then:
NOTE If the native VLAN of a port is the default VLAN when the port is added to the default
VLAN as tagged, the native VLAN is set by the system to 4095.
When a general port is a member in the default VLAN as a tagged port then:
NOTE The PVID is not changed when the port is added to the default VLAN as a tagged.
When executing the switchport default-vlan tagged command, the port is added
(automatically by the system) to the default VLAN when the following conditions no
longer exist:
The no switchport default-vlan tagged command removes the port from the
default VLAN, and returns the default VLAN mode to untagged.
• If the native VLAN of a trunk port is 4095 when the port is removed from the
default VLAN (as a tagged), the native VLAN is set by the system to the
default VLAN.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 509
VLAN Commands
switchport dot1q-tunnel vlan 41
• The PVID of a general port is not changed when the port is removed from
the default VLAN (as a tagged). If the PVID is the default VLAN, the port is
added by the system to the default VLAN as an untagged.
Example
The following example configures gi11 as a tagged port in the default VLAN:
Syntax
Parameters
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 510
VLAN Commands
switchport forbidden default-vlan 41
switchxxxxxx(config-if)# switchport dot1q-tunnel vlan 2
Syntax
Parameters
N/A
Default Configuration
Command Mode
User Guidelines
The command may be used at any time regardless of whether the port belongs to
the default VLAN.
The no command does not add the port to the default VLAN. It only defines an
interface as permitted to be a member of the default VLAN, and the port will be
added only when the conditions are met.
Example
The following example forbids gi1 from being added to the default VLAN:
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 511
VLAN Commands
switchport forbidden vlan 41
switchport forbidden vlan
To forbid adding or removing specific VLANs to or from a port, use the switchport
forbidden vlan Interface Configuration mode command.
Syntax
Parameters
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 512
VLAN Commands
switchport general allowed vlan 41
Syntax
Parameters
Default Configuration
Command Mode
Example
The following example configures gi3 as a general port and discards the untagged
frames at ingress:
Syntax
switchport general allowed vlan {add vlan-list [tagged | untagged] | remove vlan-
list }
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 513
VLAN Commands
switchport general allowed vlan 41
Parameters
• tagged—(Optional) The port transmits tagged packets for the VLANs. This
is the default value.
Default Configuration
The port is an untagged member in the default VLAN. Packets are transmitted as
untagged.
Command Mode
User Guidelines
You can change the egress rule (for example, from tagged to untagged) without
first removing the VLAN from the list.
Example
The following example sets gi11 to the general mode and adds VLAN 2 to it.
Packets are tagged on the egress.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 514
VLAN Commands
switchport general ingress-filtering disable 41
switchport general ingress-filtering disable
To disable port ingress filtering (no packets are discarded at the ingress) on a
general port, use the switchport general ingress-filtering disable Interface
Configuration (Ethernet, port channel) mode command.
Syntax
Parameters
N/A
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 515
VLAN Commands
switchport general pvid 41
Syntax
Parameters
Command Mode
Examples
Example 1—The following example configures gi2 as a general port and sets its
PVID to 234:
Example 2—The following example adds VLAN 2 as tagged, and VLAN 100 as
untagged to the general port gi14, defines VID 100 as the PVID, and then reverts to
the default PVID (VID=1).
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 516
VLAN Commands
switchport mode 41
switchxxxxxx(config-if)# switchport general allowed vlan add 2 untagged
switchport mode
To configure the VLAN membership mode (access, trunk, general, or dot1q-tunnel)
for a port, use the switchport mode Interface Configuration mode command.
Syntax
no switchport mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 517
VLAN Commands
switchport mode trunk uplink 41
Parameters
Default Configuration
Trunk mode
Command Mode
User Guidelines
• If the port mode is changed to access mode and the access VLAN does not
exist, then the port does not belong to any VLAN.
• Trunk and general ports can be changed to access mode only if all VLANs
(except for an untagged PVID) are first removed.
Example
The following example configures gi1 as an access port and assigns it to VLAN 2:
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 518
VLAN Commands
switchport protected 41
Parameters
N/A
Default Configuration
N/A
Command Mode
User Guidelines
The interface to be set as an uplink port must be in the VLAN trunk mode only.
Example
switchport protected
To isolate unicast, multicast, and broadcastbroadcast traffic at Layer 2 from other
protected ports on the same switch, use the switchport protected Interface
Configuration mode command.
Syntax
switchport protected
no switchport protected
Parameters
N/A
Default Configuration
Unprotected
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 519
VLAN Commands
switchport trunk allowed vlan 41
Command Mode
User Guidelines
Packets are subject to all filtering rules and Filtering Database (FDB) decisions.
Example
Syntax
Parameters
Default Configuration
Trunk port is an untagged member in the default VLAN and is not tagged member
in any other VLANs.
Command Mode
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 520
VLAN Commands
switchport trunk native vlan 41
Example
The following example adds VLANs 2, 3, and 100 to trunk ports 1 to 13:
Syntax
Parameters
Command Mode
User Guidelines
The command adds the port as a member of the VLAN. If the port is already a
member of the VLAN (not a native), it must first be removed from that VLAN.
Example
The following example defines VLAN 2 as the native VLAN for gi11.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 521
VLAN Commands
switchport vlan tpid 41
switchxxxxxx(config-if)# switchport trunk native vlan 2
Syntax
Parameters
Command Mode
Example
vlan
To create a VLAN or a list of VLANs, use the vlan Global Configuration mode
command.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 522
VLAN Commands
vlan default-vlan 41
Syntax
vlan vlan-range
no vlan vlan-range
Parameters
Default Configuration
Command Mode
Example
vlan default-vlan
To define the default VLAN, use the vlan default-vlan VLAN Configuration mode
command.
To set the VLAN 1 as the default VLAN, use the no form of this command.
Syntax
no vlan default-vlan
Parameters
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 523
VLAN Commands
vlan default-vlan 41
Default Configuration
Command Mode
User Guidelines
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 524
42
Web Server Commands
ip http secure-server
To enable the HTTPS service on the switch, use the ip http secure-server Global
Configuration mode command.
To disable the HTTPS service on the switch, use the no form of this command.
Syntax
ip http secure-server
no ip http secure-server
Parameters
N/A
Default Configuration
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 471
Web Server Commands
ip http server 42
ip http server
To enable the HTTP service on the switch, use the ip http server Global
Configuration mode command.
To disable the HTTP service on the switch, use the no form of this command.
Syntax
ip http server
no ip http server
Parameters
N/A
Default Configuration
Command Mode
Example
ip http timeout-policy
To set the interval that the switch waits for user inputs for HTTP or HTTPS
sessions before automatic logoff, use the ip http timeout-policy Global
Configuration mode command.
Syntax
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 472
Web Server Commands
show ip http 42
Parameters
Default Configuration
Command Mode
User Guidelines
Example
show ip http
To show the HTTP service information, use the show ip http Privileged EXEC
mode command.
Syntax
show ip http
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 473
Web Server Commands
show ip https 42
HTTP daemon : enabled
Session Timeout : 10 (minutes)
The following table describes the significant fields shown in the example:
Field Description
show ip https
To shows the HTTPS service information, use the show ip https Privileged EXEC
mode command.
Syntax
show ip https
Command Mode
Example
The following table describes the significant fields shown in the example:
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 474
Web Server Commands
show services tcp-udp 42
show services tcp-udp
To show information for all open TCP or UDP sessions, use the show services tcp-
udp Privileged EXEC mode command.
Syntax
Parameters
N/A
Command Mode
Example
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 475
Web Server Commands
show services tcp-udp 42
tcp 192.168.1.254:80 192.168.1.107:52339 http TIME_
WAIT
tcp 192.168.1.254:80 192.168.1.107:52358 http TIME_
WAIT
tcp 192.168.1.254:80 192.168.1.107:52379 http TIME_
WAIT
tcp 192.168.1.254:80 192.168.1.107:52380 http TIME_
WAIT
tcp 192.168.1.254:80 192.168.1.107:52382 http TIME_
WAIT
tcp 192.168.1.254:80 192.168.1.107:52389 http TIME_
WAIT
tcp 192.168.1.254:80 192.168.1.107:52388 http TIME_
WAIT
tcp 192.168.1.254:23 192.168.1.107:52381 telnet
ESTAB
LISHED
udp *:161 *:* snmp
udp6 *-161 *-* snmp
The following table describes the significant fields shown in the example:
Field Description
Local IP Address IP address and port number of the local end of the
socket.
Remote IP Address IP address and port number of the remote end of the
socket.
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 476
Web Server Commands
show services tcp-udp 42
Field Description
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 477
A
Where to Go From Here
Cisco provides a wide range of resources to help you and your customer obtain
the full benefits of the Cisco 220 Series Smart Plus Switches.
Support
Cisco Support Community www.cisco.com/go/smallbizsupport
Cisco Support and www.cisco.com/go/smallbizhelp
Resources
Phone Support Contacts www.cisco.com/en/US/support/
tsd_cisco_small_business
_support_center_contacts.html
Cisco Firmware Downloads www.cisco.com/go/smallbizfirmware
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x 478