D-link DES-3528, DES-3552 User Manual

®
CLI Reference Guide
Product Model:
Layer 2 Managed Stackable Fast Ethernet Switch
Release 2.60
xStack
®
DES-3528/DES-3552 Series
Table of Contents
INTRODUCTION ......................................................................................................................... 5
USING THE CONSOLE CLI ........................................................................................................ 7
COMMAND SYNTAX ................................................................................................................ 10
BASIC SWITCH COMMANDS .................................................................................................. 12
MODIFY BANNER AND PROMPT COMMANDS ..................................................................... 24
SWITCH PORT COMMANDS ................................................................................................... 27
PORT SECURITY COMMANDS ............................................................................................... 31
STACKING COMMANDS .......................................................................................................... 36
NETWORK MANAGEMENT (SNMP) COMMANDS ................................................................. 40
SWITCH UTILITY COMMANDS ................................................................................................ 57
NETWORK MONITORING COMMANDS .................................................................................. 63
MULTIPLE SPANNING TREE PROTOCOL (MSTP) COMMANDS .......................................... 76
FORWARDING DATABASE COMMANDS ............................................................................... 87
TRAFFIC CONTROL COMMANDS .......................................................................................... 93
QOS COMMANDS .................................................................................................................... 97
PORT MIRRORING COMMANDS ........................................................................................... 107
VLAN COMMANDS ................................................................................................................. 110
VOICE VLAN COMMANDS ..................................................................................................... 124
SUBNET-BASED VLAN COMMANDS ................................................................................... 130
ASYMMETRIC VLAN COMMANDS ........................................................................................ 133
LINK AGGREGATION COMMANDS ...................................................................................... 135
IP–MAC-P ORT BINDING (IMPB) COMMANDS ..................................................................... 139
LIMITED IP MULTICAST ADDRESS ...................................................................................... 155
BASIC IP COMMANDS ........................................................................................................... 160
MULTICAST VLAN COMMANDS ........................................................................................... 165
IGMP / MLD SNOOPING COMMANDS .................................................................................. 179
DHCP RELAY COMMANDS ................................................................................................... 208
802.1X COMMANDS (INCLUDING GUEST VLANS) ............................................................. 221
ACCESS CONTROL LIST (ACL) COMM ANDS ..................................................................... 238
SAFEGUARD ENGINE COMMANDS ..................................................................................... 258
FILTER COMMANDS (DHCP SERVER / NETBIOS) .............................................................. 260
LAYER 3 CPU FILTER COMMANDS ..................................................................................... 265
LOOP-BACK DETECTION COMMANDS ............................................................................... 267
ii
TRAFFIC SEGMENTATION COMMANDS ............................................................................. 271
SFLOW COMMANDS.............................................................................................................. 273
TIME AND SNTP COMMANDS ............................................................................................... 281
ARP AND GRATUITOUS ARP COMMANDS ......................................................................... 286
ROUTING TABLE COMMANDS ............................................................................................. 292
MAC NOTIFICATION COMMANDS ........................................................................................ 294
ACCESS AUTHENTICATION CONTROL COMMANDS ........................................................ 297
SECURE SHELL (SSH) COMMANDS .................................................................................... 315
SECURE SOCKETS LAYER (SSL) COMMANDS .................................................................. 321
D-LINK SINGLE IP MANAGEMENT COMMANDS ................................................................. 326
JWAC COMMANDS ................................................................................................................ 335
LINK LAYER DISCOVERY PROTOCOL (LLDP) COMMANDS ............................................. 350
Q-IN-Q COMMANDS ............................................................................................................... 363
RSPAN COMMANDS .............................................................................................................. 369
ST ATIC MAC-BASED VLAN COMMAND S ............................................................................ 373
SIMPLE RED COMMANDS ..................................................................................................... 375
MAC-BASED ACCESS CONTROL COMM ANDS LIST ......................................................... 382
WEB-BASED ACCESS CONTROL COMMANDS .................................................................. 392
POWER OVER ETHERNET (POE) COMMANDS ................................................................... 400
PPPOE CIRCUIT ID INSERTION COMMANDS ...................................................................... 404
DNS RELAY COMMANDS ...................................................................................................... 405
POLICY ROUTE COMMANDS ................................................................................................ 407
BPDU ATTACK PROTECTION COMMANDS ........................................................................ 409
ETHERNET OAM COMMANDS .............................................................................................. 413
DHCP SERVER COMMANDS ................................................................................................. 422
CABLE DIAGNOSTICS COMMANDS .................................................................................... 434
CONNECTIVITY FAULT MANAGEMENT COMMANDS ........................................................ 435
COMMAND HISTORY LIST .................................................................................................... 451
ARP SPOOFING PREVENTION COMMANDS ....................................................................... 453
AUTO-CONFIGURATION COMMANDS ................................................................................. 455
COMPOUND AUTHENTICATION COMMANDS .................................................................... 458
DEBUG SOFTWARE COMMANDS ........................................................................................ 464
DHCPV6 CLIENT COMMANDS .............................................................................................. 469
DHCPV6 RELAY COMMANDS ............................................................................................... 471
iii
D-LINK UNIDIRECTIONAL LINK DETECTION (DULD) COMMANDS................................... 476
ETHERNET RING PROTECTION SWITCHING (ERPS) COMMANDS .................................. 478
IPV6 NEIGHBOR DISCOVER COMMANDS ........................................................................... 487
IPV6 ROUTE COMMANDS ..................................................................................................... 491
LAYER 2 PROTOCOL TUNNELING (L2 PT) COMMANDS .................................................... 493
LOCAL ROUTE COMMANDS ................................................................................................. 496
MSTP DEBUG ENHANCEMENT COMM ANDS ...................................................................... 498
PING COMMANDS .................................................................................................................. 502
SHOW TECHNICAL SUPPORT COMMANDS ....................................................................... 504
TRACE ROUTE COMMANDS ................................................................................................. 507
VLAN COUNTER COMMANDS .............................................................................................. 509
APPENDIX A - P ASSWO RD RECOVERY PROCEDURE ...................................................... 512
APPENDIX B - TECHNICAL SPECIFICATIONS .................................................................... 513
APPENDIX C - MITIGATING ARP SPOOFING ATTACKS VIA PACKET CONTENT ACL ... 516
iv
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide

INTRODUCTION

The Switch can be managed through the Switch’s serial port, Telnet, or the Web-based management agent. The Command Line Interface (CLI) can be used to configure and manage the Switch via the serial port or Telnet interfaces.
The DES-3528/DES-3552 Series Layer 2 stackable Fast Ethernet Switch Series are members of the D-Link xStack family. Ranging from 10/100Mbps edge Switches to core gigabit Switches, the xStack Switch family has been future­proof designed to provide a stacking architecture with fault tolerance, flexibility, port density, robust security and maximum throughput with a user-friendly management interface for the networking professional.
This manual provides a reference for all of the commands contained in the CLI for the xStack 3528P, DES-3528DC, DE S-3552 and DES-3552P s eries of Switches. C onfiguration and managem ent of the Switch via the Web-based management agent is discussed in the User’s Guide.
NOTE: For the remainder of this manual, all versions of the DES-3528, DES-3528P, DES-3528DC, DES-3552 and DES-3552P Switches will be referred to as simply the Switch or the DES-3528/52 Series.
Accessing the Switch via the Serial Port
The Switch’s serial port’s default settings are as follows:
115200 baud
no parity
8 data bits
1 stop bit
A computer running a terminal emulation program capable of emulating a VT-100 terminal and a serial port configured as above are then connected to the Switch’s serial port via an RS-232 DB-9 cable.
With the serial port properly connected to a management computer, the following screen should be visible. If this screen does not appear, try pressing Ctrl+r to refresh the console screen.
®
DES-3528, DES-
®
DES-3528 Fast Ethernet Switch
Command Line Interface
Firmware: Build 2.60.017
Copyright(C) 2010 D-Link Corporation. All rights reserved.
UserName:
Figure 1-1. Initial CLI screen
There is no initial username or password. Just press the Enter key twice to display the CLI input cursor DES- 3528:admin# . This is the command line where all commands are input.
Setting the Switch’s IP Address
Each Switch must be assigned its own IP Address, which is used for communication with an SNMP network manager or other TCP/IP application (for example BOOTP, TFTP). The Switch’s default IP address is 10.90.90.90. Users can change the default Switch IP address to meet the specification of your networking address scheme.
The Switch is also assigned a unique MAC address by the factory. This MAC address cannot be changed, and can be found on the initial boot console screen – shown below.
5
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config ipif System ipaddress 10.24.73.21/8
DES-3528:admin#
Boot Procedure V1.00.B008
-------------------------------------------------------------------------------
Power On Self Test ........................................ 100 %
MAC Address : 00-22-B0-10-8A-00 H/W Version : A2
Please wait, loading V2.60..017 Runtime image ............. 100 %
UART init ................................................. 100 %
Device Discovery .......................................... 100 %
Configuration init ........................................ |
Figure 1-2. Boot screen
The Switch’s MAC addres s can also be found in the Web management program on the Switch Information (Basic Settings) window on the Configuration menu.
The IP address for the Sw itch must be set before it can be managed w ith the Web-based manager. The S witch IP address can be autom aticall y set using BOOTP or D HCP pro tocols, in which cas e the actua l address as signed t o the Switch must be known.
The IP address may be set using the Command Line Interface (CLI) over the console serial port as follows:
1. Starting at the command line prompt, enter the commands config ipif System ipaddress xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy. Where the x’s repres ent the IP address to be assigned to the IP inter face named System and the y’s represent the corresponding subnet mask.
2. Alternatively, users can enter con fig ipif System ip address xxx.xxx.x xx.xxx/z. Where the x’s represent the IP address to be assig ned t o the IP i nterf ace n am ed System an d the z represents the corr espondi ng num ber of subnets in CIDR notation.
The IP interface nam ed System on the Switch can be assigned an IP address and subnet mask which can then be used to connect a management station to the Switch’s Telnet or Web-based management agent.
Command: config ipif System ipaddress 10.24.73.21/8
Success.
Figure 1-3. Assigning an IP Address screen
In the above exam ple, the Switch w as assigned an IP address of 10.24 .73.21 with a sub net mask of 255.0. 0.0. The system message Success indicates that the command was executed successfully. The Switch can now be configured and managed via Telnet, S NMP MIB bro wser and the CLI or via th e Web-based management agent using t he above IP address to connect to the Switch.
6
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
UserName:
?
clear fdb

USING THE CONSOLE CLI

The DES-3528/52 Series supports a console management interface that allows the user to connect to the Switch’s management agent via a serial port and a terminal or a computer running a terminal emulation program. The console can also be used over the network using the TCP/IP Telnet protocol. The console program can be used to configure the Switch to use an SNMP-based network management software over the network.
This chapter describes how to use the console interface to access the Switch, change its settings, and monitor its operation.
NOTE: Switch configuration settings are saved to non-volatile RAM using the save command. The current configuration will then be retained in the Switch’s NV-RAM , and reloa ded when t he Sw itch is rebooted. If the Switch is rebooted without using the save command, the last configuration saved to NV-RAM will be loaded.
Connecting to the Switch
The console interface is used by connecting the Switch to a VT100-compatible terminal or a computer running an ordinary terminal em ulator program (e.g., the HyperTerminal program included with the W indows operating s ystem) using an RS-232C serial cable. Your terminal parameters will need to be set to:
VT-100 compatible
115200 baud
8 data bits
No parity
One stop bit
No flow control
Users can also access the same functions over a Telnet interface. Once users have set an IP address for your Switch, users can use a Telnet program (in VT-100 compatible terminal mode) to access and control the Switch. All of the screens are identical, whether accessed from the console port or from a Telnet interface.
After the Switch reboots and users have logged in, the console looks like this:
DES-3528 Fast Ethernet Switch
Command Line Interface
Firmware: Build 2.60.017
Copyright(C) 2010 D-Link Corporation. All rights reserved.
Figure 2-1. Initial Console screen after logging in
Commands are entered at the command prompt, DES-3528:admin# .. There are a number of he lp f ul f eatur es i nc lu ded i n t he CLI. Entering the ? command will displa y a list of all of the top-
level commands.
cable_diag ports cfm linktrace cfm loopback clear clear address_binding dhcp_snoop binding_entry ports clear address_binding nd_snoop binding_entry ports clear arptable clear attack_log clear cfm pkt_cnt clear counters clear dhcp binding clear dhcp conflict_ip clear ethernet_oam ports
7
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
clear igmp_snooping data_driven_group
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
DES-3528:admin# config account
DES-3528:admin#
DES-3528:admin# config account
DES-3528:admin#
DES-3528:admin#the
save show telnet traceroute
clear igmp_snooping statistics counter clear jwac auth_state clear log clear mac_based_access_control auth_state clear mld_snooping data_driven_group
Figure 2-2. The ? Command
When users enter a command without its required parameters, the CLI will prompt users with a Next possible completions: message.
Command: config account
Next possible completions: <username>
Figure 2-3. Example Command Parameter Help
In this case, the comm and config account was entered with the parameter <username>. The CLI will then prom pt users to enter the <username> with the m ess age, Next possible completions:. Every command in the CL I has this feature, and complex commands have several layers of parameter prompting.
In addition, after typing an y given com mand plus one space, user s can see all of the next poss ible sub-commands, in sequential order, by repeatedly pressing the Tab key.
To re-enter the previo us command at the comm and prompt, press the up arr ow cursor key. The previ ous command will appear at the command prompt.
Command: config account Next possible completions: <username>
DES-3528:admin# config account Command: config account Next possible completions: <username>
Figure 2-4. Using the Up Arrow to Re-enter a Command
In the above example, the comm and config account was entered without the requ ired parameter <username>, the CLI returned the Next possible completions: <username> prompt. The up arrow cursor cont rol ke y was pressed to re-enter the previous com mand (config account) at the command prompt. Now the appropriat e username can be entered and the config account command re-executed.
All commands in the CLI function in this way. In addition, the syntax of the help prompts are the same as presented in this manual angle brackets < > indicate a numerical value or character string, braces { } indicate optional parameters or a choice of parameters, and brackets [ ] indicate required parameters.
If a command is entered that is unrecognized by the CLI, the top-level commands will be displayed under the Available commands: prompt.
Available commands:
.. ? cable_diag cfm clear config create debug delete disable download enable login logout no ping ping6 reboot reconfig reset
8
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
traceroute6 upload
DES-3528:admin#
DES-3528:admin# show
DES-3528:admin#
The top-level comm ands consist of commands such as show or config. Most of these commands require one or more parameter s to narrow the top-level comm and. This is equivalent to show what? or config what? W here the what? is the next parameter.
For example, if users enter the show comm and with no additional parameters, the CLI will then displa y all of the possible next parameters.
Command: show
Next possible completions:
802.1p 802.1x access_profile account accounting acct_client address_binding arp_spoofing_prevention arpentry asymmetric_vlan attack_log auth_client auth_diagnostics auth_session_statistics auth_statistics authen authen_enable authen_login authen_policy authentication authorization autoconfig bandwidth_control bpdu_protection cfm command_history config cpu cpu_filter current_config device_status dhcp dhcp_local_relay dhcp_relay dhcp_server dhcpv6_relay dnsr dot1v_protocol_group dscp duld erps error ethernet_oam fdb filter firmware flow_meter gratuitous_arp greeting_message gvrp hol_prevention igmp_snooping ipfdb ipif ipif_ipv6_link_local_auto iproute ipv6 ipv6route jumbo_frame jwac l2protocol_tunnel lacp_port limited_multicast_addr link_aggregation lldp local_route log log_save_timing log_software_module loopdetect mac_based_access_control mac_based_access_control_local mac_based_vlan mac_notification max_mcast_group mcast_filter_profile mef_l2_protocols mef_vlan_preservation mirror mld_snooping multicast multicast_fdb packet per_queue poe policy_route port port_security port_security_entry port_vlan ports pppoe pvid qinq radius rmon router_ports rspan safeguard_engine scheduling scheduling_mechanism serial_port session sflow sim snmp sntp sred ssh ssl stack_device stack_information stacking_mode stp subnet_vlan switch syslog system_severity tech_support terminal time time_range traffic traffic_segmentation trap trusted_host utilization vlan vlan_counter vlan_precedence vlan_translation vlan_trunk voice_vlan wac
Figure 2-5. The Next Available Commands Prompt
In the above example, all of the possible next parameters for the show command are displayed. At the next command prompt, the up arrow was used to re-enter the show command, followed by the account parameter. The CLI then displays the user accounts conf igured on the S witc h.
Figure 2-6. Next possible completions: Show Command
9
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide

COMMAND SYNTAX

The following symbols are used to describe how command entries are made and values and arguments are specified in this manual. The online help contained in the CLI and available through the console interface uses the same syntax.
NOTE: All commands are case-sensitive. Be sure to disable Caps Lock or any other unwanted function that changes text case.
<angle brackets>
Purpose Encloses a variable or value that must be specified. Syntax
Description In the above syntax example, users must supply an IP interface name in the <ipif_name
Example Command
config ipif <ipif_name 12> [{ipaddress <network_address> | vlan <vlan_name 32> | state [enable | disable}] | bootp | dhcp]
12> space, a VLAN name in the <vlan_name 32> space, and the network address in the <network_address> space. Do not type the angle brackets.
config ipif Engineering ipaddress 10.24.22.5/255.0.0.0 vlan Design state enable
[square brackets]
Purpose Encloses a required value or set of required arguments. One value or argument can be
specified. Syntax Description
Example Command
create account [admin | operator | user] <username 15>
In the above syntax example, users must specify either an admin or a user level account
to be created. Do not type the square brackets.
create account admin Tommy
| vertical bar
Purpose Separates two or more mutually exclusive items in a list, one of which must be entered. Syntax Description
Example Command
create account [admin | operator | user] <username 15>
In the above syntax example, users must specify either admin, or user. Do not type the
vertical bar.
create account admin Tommy
{braces}
Purpose Encloses an optional value or set of option al arguments. Syntax Description
Example command
reset {[config | system]} force_agree
In the above syntax example, users have the option to specify config or system. It is not
necessary to specify either optional value, however the effect of the system reset is
dependent on which, if any, value is specified. Therefore, with this example there are three
possible outcomes of performing a system reset. See the following chapter, Basic
Commands for more details about the reset command. Do not type the braces.
reset config
(parentheses)
10
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
(parentheses)
Purpose Indicates at least one or more of the values or arguments in the preceding syntax
enclosed by braces must be specified. Syntax Description
Example command
config dhcp_relay {hops <value 1-16> | time <sec 0-65535>}(1)
In the above syntax example, users have the option to specify hops or time or both of
them. The "(1)" following the set of braces indicates at least one argum ent or valu e within
the braces must be specified. Do not type the parentheses.
config dhcp_relay hops 3
Line Editing Key Usage
Delete Deletes the character under the cursor and then shifts the remaining characters in the line
to the left.
Backspace Deletes the character to the left of the cursor and then shifts the remaining characters in
the line to the left. Left Arrow Moves the cursor to the left. Right Arrow Moves the cursor to the right. Up Arrow Repeats the previously entered command. Each time the up arrow is pressed, the
command previous to that displayed appears. This way it is possible to review the
command history for the current session. Use the down arrow to progress sequentially
forward through the command history list. Down Arrow The down arrow will display the next command in the command history entered in the
current session. This displays each command sequentially as it was entered. Use the up
arrow to review previous commands. Tab Shifts the cursor to the next field to the left.
Multiple Page Display Control Keys
Space Displays the next page. CTRL+c Stops the display of remaining pages when multiple pages are to be displayed. ESC Stops the display of remaining pages when multiple pages are to be displayed. n Displays the next page. p Displays the previous page. q Stops the display of remaining pages when multiple pages are to be displayed. r Refreshes the pages currently displayed. a Displays the remaining pages without pausing between pages. Enter Displays the next line or table entry.
11
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide

BASIC SWITCH COMMANDS

The basic Switch commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
create account [admin | operator | power_u s er | user] <usern ame 15> config account <username> {encr ypt [plai n _tex t | sha_1] <password>} show account delete account <username> enable password
encryption
disable password
encryption show session show switch show device_status show serial_port config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] | auto_ log out [ne ver | 2_m inutes | 5_ minutes |
enable clipaging disable clipaging telnet <ipaddr> {tcp_port <value 1-65535>} enable telnet <tcp_port_number 1-65535> disable telnet enable web <tcp_port_number 1-65535> disable web
10_minutes | 15_minutes]}(1)
save {[config <config_id 1-2> | log | all]} reboot {force_agree} reset {[config | system]} {force_agree} login logout clear config terminal width [default | <value 80-200>] show terminal width
Each command is listed, in detail, in the following sections.
create account
Purpose
Used to create user accounts.
12
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# create account admin dlink
DES-3528:admin#
create account
Syntax create account [admin | operator | power_user | user] <username 15> Description
Parameters admin – Specifies that the user account wi ll be set to admin.
Restrictions
Example usage:
To create an administrator-level user account with the username “dlink”.
Command: create account admin dlink
Enter a case-sensitive new password:**** Enter the new password again for confirmation:**** Success.
This command is used to create user accounts that consist of a username of 1 to 15 characters and a password of 0 to 15 characters. Up to 8 user accounts can be created.
operator – Specifies that the user account will be set to operator. power_user – Specifies that the user account will be set to power user. user – Specifies that the user account will be set to user. <username 15> - Enter the account username here. This name can be up to 15 characters
long. Only Administrator-level users can issue this command.
Usernames can be between 1 and 15 characters. Passwords can be between 0 and 15 characters.
NOTICE: In case of lost passwords or password corruption, please refer to the D-Link website and the White Paper entitled “Password Recovery Procedure”, which will guide you through the steps necessary to resolve this issue.
config account
Purpose Syntax config account <username> {encrypt [plain_text | sha_1] <password>} Description
Parameters
Used to configure user accounts
When the password information is not specified in the command, the system will prompt the user to input the password interactively. For this case, the user can only input the plain text password.
If the password is present in the command, the user can select to input the password in the plain text form or in the encrypted form. The encryption algorithm is based on SHA-I.
<username> Name of the account. The account must already be defined. plain_text Select to specify the password in plain text form. sha_1 Select to specify the password in the SHA-I enacrpted form. password The password for the user account.
The length for of password in plain-text form and in encrypted form are different. For the plain-text form, passwords must have a minimum of 0 character and can have a maximum of 15 characters. For the encrypted form password, the length is fixed to 35 bytes long. The assword is case-sensitive.
Restrictions
Example usage:
To configure the user password of “dlink” account:
Only Administrator-level users can issue this command. Usernames can be between 1 and 15 characters. Passwords can be between 0 and 15 characters.
13
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config account dlink
DES-3528:admin#
DES-3528:admin# show account
DES-3528:admin#
DES-3528:admin# delete account System
DES-3528:admin#
Command: config account dlink
Enter a old password:**** Enter a case-sensitive new password:**** Enter the new password again for confirmation:**** Success.
show account
Purpose Syntax show account Description
Parameters Restrictions
Example usage:
To display the accounts that have been created:
Command: show account
Current Accounts: Username Access Level
--------------- -----------­dlink Admin
Total Entries: 1
Used to display user accounts.
This command is used to display all user accounts created on the Switch. Up to 8 user accounts can exist at one time.
None. Only Administrator-level users can issue this command.
delete account
Purpose Syntax delete account <username> Description Parameters Restrictions
Example usage:
To delete the user account “System”:
Command: delete account System
Success.
enable password encryption
Purpose Syntax enable password encryption Description
Used to delete an existing user account.
This command is used to delete an existing entry. <username> Name of the user who will be deleted. Only Administrator-level users can issue this command.
Used to enable password encryption.
The user account configuration information will be stored in the configuration file, and can be
14
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
applied to the system later.
DES-3528:admin# enable password encryption
DES-3528:admin#
DES-3528:admin# disable password encryption
DES-3528:admin#
enable password encryption
If the password encryption is enabled, the password will be in encrypted form. When password encryption is diabled, if the user specifies the password in plain text form,
the password will be in plain text form. However, if the user specifies the password in encrypted form, or if the password has been converted to encrypted form by the last enable password encryption command, the password will still be in the encrypted form. It cannot be reverted to the plaintext.
Parameters Restrictions
Example usage:
To enable password encryption:
Command: enable password encryption
Success.
None. Only Administrator-level users can issue this command.
disable password encryption
Purpose Syntax disable password encryption Description
Used to disable password encryption.
The user account configuration information will be stored in the configuration file, and can be applied to the system later.
If the password encryption is enabled, the password will be in encrypted form. When password encryption is disabled, if the user specifies the password in plain text form,
the password will be in plan text form. However, if the user specifies the password in encrypted form, or if the password has been converted to encrypted form by the last enable password encryption command, the password will still be in the encrypted form. It cannot be reverted to the plaintext.
Parameters Restrictions
Example usage:
To disable password encryption:
Command: disable password encryption
Success.
None. Only Administrator-level users can issue this command.
show session
Purpose Syntax show session Description
Parameters Restrictions
Example usage:
Used to display a list of currently logged-in users.
This command displays a list of all the users that are logged-in at the time the command is issued.
None. Only Administrator and Operator-level users can issue this command.
15
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show session
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
DES-3528:admin# show switch
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
To display the way that the users logged in:
Command: show session
ID Live Time From Level Name
--- --------- ------------ ----- ------­ 8 00:00:16.250 Serial Port 5 Anonymous
Total Entries: 1
show switch
Purpose Syntax show switch Description Parameters Restrictions
Example usage:
To display the Switch’s information:
Command: show switch
Device Type : DES-3528 Fast Ethernet Switch MAC Address : 1C-AF-F7-AD-33-20 IP Address : 10.90.90.90 (Manual) VLAN Name : default Subnet Mask : 255.0.0.0 Default Gateway : 0.0.0.0 Boot PROM Version : Build 1.00.B008 Firmware Version : Build 2.60.B010 Hardware Version : A4 Serial Number : P1UQ3A4000012 System Name : System Location : System Uptime : 0 days, 0 hours, 3 minutes, 58 seconds System Contact : Spanning Tree : Disabled GVRP : Disabled IGMP Snooping : Disabled MLD Snooping : Disabled VLAN Trunk : Disabled Telnet : Enabled (TCP 23) Web : Enabled (TCP 80) SNMP : Disabled
Used to display general information about the Switch.
This command displays information about the Switch. None. None.
show device_status
Purpose Syntax show device_status Description
Parameters
Used to display the current Switch’s power and fan status.
This command displays status of both the Switch’s internal and external power and the fan status.
None.
16
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show device_status
DES-3528:admin#
DES-3528:admin#show serial_port
DES-3528:admin#
show device_status
Restrictions
Example usage:
To display the Switch’s device status:
Command: show device_status
Internal Power: Active External Power: Fail
None.
show serial_port
Purpose Syntax show serial_port Description Parameters Restrictions
Example usage:
Used to display the current serial port settings.
This command displays the current serial port settings. None. None
To display the serial port setting:
Command: show serial_port
Baud Rate : 115200 Data Bits : 8 Parity Bits : None Stop Bits : 1 Auto-Logout : Never
config serial_port
Purpose Syntax config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] | auto_logout [never |
Description
Parameters
Restrictions
Used to configure the serial port.
2_minutes | 5_minutes | 10_minutes | 15_minutes]}(1) This command is used to configure the serial port’s baud rate and auto logout settings. baud_rate [9600 | 19200 | 38400 | 115200] The serial bit rate that will be used to
communicate with the management host. There are four options: 9600, 19200, 38400,
115200. Factory default setting is 115200.
never − No time limit on the length of time the console can be open with no user input. 2_minutes The console will log out the current user if there is no user input for 2 minutes. 5_minutes − The console will log out the current user if there is no user input for 5 minutes. 10_minutes The console will log out the current user if there is no user input for 10
minutes. 15_minutes The console will log out the current user if there is no user input for 15
minutes. Only Administrator and Operator-level users can issue this command.
Example usage:
To configure baud rate:
17
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config serial_port baud_rate 115200
DES-3528:admin#
DES-3528:admin# enable clipaging
DES-3528:admin#
DES-3528:admin# disable clipaging
DES-3528:admin#
default setting.
Command: config serial_port baud_rate 115200
Success.
NOTE: If a user configures the serial port’s baud rate, the baud rate will take effect and save immediately. Baud rate settings will not change even if the user resets or reboots the Switch. The Baud rate will only change when the user configures it again. The serial port’s baud rate setting is not stored in the Switch’s configuration file. Resetting the Switch will not restore the baud rate to the
enable clipaging
Purpose
Syntax enable clipaging Description
Parameters Restrictions
Example usage:
To enable pausing of the screen display when the show command output reaches the end of the page:
Command: enable clipaging
Success.
Used to pause the scrolling of the console screen when a command displays more than one page.
This command is used when issuing a command which causes the console screen to rapidly scroll through several pages. This command will cause the console to pause at the end of each page. The default setting is enabled.
None. Only Administrator and Operator-level users can issue this command.
disable clipaging
Purpose
Used to disable the pausing of the console screen scrolling at the end of each pa ge when a command displays more than one screen of information.
Syntax disable clipaging Description
Parameters Restrictions
Example usage:
To disable pausing of the screen display when show command output reaches the end of the page:
Command: disable clipaging
Success.
This command is used to disable the pausing of the console screen at the end of each page when a command would display more than one screen of information.
None. Only Administrator and Operator-level users can issue this command.
telnet
Purpose
Used to login the remote device system through the network.
18
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# telnet 172.18.168.12 tcp_port 50
PassWord:
DES-3528:admin# enable telnet 23
DES-3528:admin#
telnet
Syntax telnet <ipaddr> {tcp_port <value 1-65535>} Description
Parameters
Restrictions
Example usage:
Telnet to the remote Switch:
Command: telnet 172.18.168.12 tcp_port 50
Connecting to server,please wait....
DES-3528 Gigabit Ethernet Switch Command Line Interface
Firmware: Build 2.60.B010 Copyright(C) 2009 D-Link Corporation. All rights reserved. UserName:
This command is used when the manager want to manage the device system which isn’t on local. So can use this command to login in the remote system which is located on other side. If connect successful, some actions can be done as local.
<ipaddr> The network ip address. This is the destination which wa nts to login. <value 1-65535> The TCP port number. TCP ports are numbered between 1 and 65535.
The “well-known” TCP port for the Telnet protocol is 23. Only Administrator and Operator-level users can issue this command.
enable telnet
Purpose
Syntax enable telnet <tcp_port_number 1-65535> Description
Parameters
Restrictions
Example usage:
To enable Telnet and configure port number:
Command: enable telnet 23
Success.
Used to enable communication with and management of the Switch using the Telnet protocol.
This command is used to enable the Telnet protocol on the Switch. The user can specify the TCP or UDP port number the Switch will use to listen for Telnet requests.
<tcp_port_number 1-65535> The TCP port number. TCP ports are numbered between 1 and 65535. The “well-known” TCP port for the Telnet protocol is 23.
Only Administrator and Operator-level users can issue this command.
disable telnet
Purpose Syntax disable telnet Description Parameters Restrictions
Example usage:
Used to disable the Telnet protocol on the Switch.
This command is used to disable the Telnet protocol on the Switch. None. Only Administrator and Operator-level users can issue this command.
19
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# disable telnet
DES-3528:admin#
DES-3528:admin# enable web 80
DES-3528:admin#
DES-3528:admin# disable web
DES-3528:admin#
To disable the Telnet protocol on the Switch:
Command: disable telnet
Success.
enable web
Purpose Syntax enable web <tcp_port_number 1-65535> Description
Parameters
Restrictions
Example usage:
To enable HTTP and configure port number:
Command: enable web 80
Success.
Used to enable the HTTP-based management software on the Switch.
This command is used to enable the Web-based management software on the Switch. The user can specify the TCP port number the Switch will use to listen for Telnet requests.
<tcp_port_number 1-65535> The TCP port number. TCP ports are numbered between 1 and 65535. The “well-known” port for the Web-based management software is 80.
Only Administrator and Operator-level users can issue this command.
disable web
Purpose Syntax disable web
Used to disable the HTTP-based management software on the Switch.
Description Parameters Restrictions
Example usage:
To disable HTTP:
Command: disable web
Success.
This command disables the Web-based management software on the Switch. None. Only Administrator and Operator-level users can issue this command.
save
Purpose Syntax save {[config <config_id 1-2> | log | all]} Description
Parameters config <config_id 1-2> – Specify to save current settings to configuration file 1 or 2.
Used to save changes in the Switch’s configuration to non-volatile RA M.
This command is used to enter the current Switch configuration into non-volatile RAM. The saved Switch configuration will be loaded into the Switch’s memory each time the Switch is restarted.
log – Specify to save current Switch log to NV-RAM.
20
save
all – Specify to save all configuration settings. If nothing is specified after “save”, the Switch
DES-3528:admin# save
DES-3528:admin#
DES-3528:admin# reboot
Please wait, the switch is rebooting...
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
will save all.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To save the Switch’s current configuration to non-volatile RAM:
Command: save
Saving all configurations to NV-RAM... Done.
reboot
Purpose Syntax Reboot {force_agree} Description Parameters
Restrictions
Example usage: To restart the Switch:
Used to restart the Switch.
This command is used to restart the Switch. force_agree When force_agree is specified, the reboot command will be executed
immediatedly without further confirmation. Only Administrator-level users can issue this command.
Command: reboot Are you sure you want to proceed with the system reboot? (y|n)y
reset
Purpose Syntax reset {[config | system]} {force_agree} Description
Parameters
Used to reset the Switch to the factory default settings.
This command is used to restore the Switch’s configuration to the default settings assigned from the factory.
config If the keyword ‘config’ is specified, all of the factory default settings are restored on the Switch including the IP address, user accounts, and the Switch history log. The Switch will not save or reboot.
system If the keyword ‘system’ is specified all of the factory default settings are restored on the Switch. The Switch will save and reboot after the settings are changed to default. Rebooting will clear all entries in the Forwarding Data Base.
force_agree When force_agree is specified, the reset command will be executed immediatedly without further confirmation.
If no parameter is specified, the Switch’s current IP address, user accounts, and the Switch history log are not changed. All other parameters are restored to the factory default settings. The Switch will not save or reboot.
NOTE: The serial port baud rate will not be changed by the reset command. It will not be restored to the factory default setting.
Restrictions
Example usage:
Only Administrator-level users can issue this command.
21
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# reset config
DES-3528:admin#
DES-3528:admin# login
UserName:
DES-3528:admin# logout
To restore all of the Switch’s parameters to their default values:
Command: reset config Are users sure to proceed with system reset?(y/n)y
Success.
login
Purpose Syntax login Description
Parameters Restrictions
Example usage:
To initiate the login procedure:
Command: login
Used to log in a user to the Switch’s console.
This command is used to initiate the login procedure. The user will be prompted for a Username and Password.
None. None.
logout
Purpose Syntax logout Description Parameters
Used to log out a user from the Switch’s console.
This command terminates the current user’s session on the Switch’s console. None.
Restrictions
Example usage:
To terminate the current user’s console session:
None.
clear
Purpose Syntax clear Description Parameters Restrictions
Example usage:
The command is used to clear screen.
The command is used to clear screen. None. None.
22
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# clear
DES-3528:admin#
DES-3528:admin# config terminal width 120
DES-3528:admin#
DES-3528:admin#show terminal width
DES-3528:admin#
To clear screen:
Command: clear
config terminal width
Purpose Syntax config terminal width [defau lt | <value 80-200>] Description
Parameters default - The default setting of terminal width. The default value is 80.
Restrictions
Example usage: To configure the current terminal width:
Command: config terminal width 120
Success.
The command is used to set current terminal width.
The usage is described as below:
1. Users login and configure the terminal width to 120, this configuration take effect on this login section. If users implement “save” command, the configuration is saved. After users log out and log in again, the terminal width is 120.
2. If user did not save the configuration, another user login, the terminal width is default value.
3. If at the same time, two CLI sessions are running, once section configure to 120 width and save it, the other section will not be effected, unless it log out and then log in.
<value 80-200> - The terminal width which will be configured. The width is betw ee n 80 and 200 characters.
None.
show terminal width
Purpose Syntax show terminal width Description Parameters Restrictions
Example usage: To display the configuration of current terminal width:
Command: show terminal width
Global terminal width : 80 Current terminal width : 80
The command is used to display the configuration of current terminal width.
The command is used to display the configuration of current terminal width. None. None.
23
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin#config command_prompt AtYourService
AtYourService:admin#

MODIFY BAN NER AN D PROMPT COMMANDS

Administrator level users can modify the login banner (greeting message) and command prompt by using the commands described below.
Command Parameters
config command_prompt [<string 16> | username | default] config greeting_message {default} show greeting_message
The Modify Banner and Pr om pt comm ands in the Com mand Line I nterf ace (C LI) ar e listed ( along w ith the appropr iate parameters) in the following table.
config command prompt
Purpose Syntax config command_prompt [<string 16> | username | default] Description Parameters string 16 –The command prompt can be changed by entering a new name of no more that 16
Restrictions
Example usage: To modify the command prompt to “AtYourService”:
Command: config command_prompt AtYourService
Success.
Used to configure the command prompt.
This command is used to change the command prompt.
characters.
username – The command prompt will be changed to the login username. default – The command prompt will reset to factory default command prompt.
Only Administrator and Operator-level users can issue this command. Other restrictions include:
If the “reset” command is executed, the modified command prompt will remain modified. However, the “reset config/reset system” command will reset the command prompt to the original factory banner.
config greeting _message
Purpose Syntax config greeting _message {default} Description Parameters default – If the user enters default to the modify banner command, then the banner will be
Used to configure the login bann er (greet in g m es s age).
This command is used to modify the login banner (greeting message).
reset to the original factory banner. To open the Banner Editor, click enter after typing the config greeting_message command.
Type the information to be displayed on the banner by using the commands described on the Banner Editor:
Quit without save: Ctrl+C Save and quit: Ctrl+W Move cursor: Left/Right/Up/Down Delete line: Ctrl+D
24
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
Erase all setting: Ctrl+X
DES-3528:admin#config greeting_message
config greeting _message
Reload original setting: Ctrl+L
Restrictions
Example usage: To modify the banner:
Command: config greeting_message
Greeting Messages Editor ================================================================================ DES-3528 Fast Ethernet Switch Command Line Interface
Firmware: Build 2.60.017 Copyright(C) 2010 D-Link Corporation. All rights reserved. ================================================================================
<Function Key> <Control Key> Ctrl+C Quit without save left/right/ Ctrl+W Save and quit up/down Move cursor Ctrl+D Delete line Ctrl+X Erase all setting Ctrl+L Reload original setting
--------------------------------------------------------------------------------
Only Administrator and Operator-level users can issue this command. Other restrictions include:
If the “reset” command is executed, the modified banner will remain modified. However, the “reset config/reset system” command will reset the modified banner to the original factory banner.
The capacity of the banner is 6*80. 6 Lines and 80 characters per line.
Ctrl+W will only save the modified banner in the DRAM. Users need to type the
save” command to save it into FLASH.
Only valid in threshold level.
show greeting_message
Purpose Syntax show greeting_message Description Parameters Restrictions
Example usage: To view the currently configured greeting message:
Used to view the currently configured greeting message configured on the Switch.
This command is used to view the currently configured greeting message on the Switch. None. Only Administrator and Operator-level users can issue this command.
25
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin#show greeting_message
DES-3528:admin#
Command: show greeting_message
================================================================================ DES-3528 Fast Ethernet Switch Command Line Interface
Firmware: Build 2.60.017 Copyright(C) 2010 D-Link Corporation. All rights reserved. ================================================================================
26
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide

SWITCH PORT COMMANDS

The Switch port commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
config ports [<portlist> | all] {medium_type [fiber | copper]} {speed [auto | 10_half | 10_full | 100_half |
100_full | 1000_full {[master | slave]}] | flow_control [enable | disable] | learning [enable | disable ] | state [enable | disable] | mdix [auto | normal | cross] | [description <desc 1-3 2 > |
clear_description]} show ports {<portlist>} {[description | err_disabled | details | media_type]} enable jumbo_frame disable jumbo_frame show jumbo_frame
Each command is listed, in detail, in the following sections.
config ports
Purpose Syntax config ports [<portlist> | all] {medium_type [fiber | copper]} {speed [auto | 10_half |
Description
Parameters
Used to configure the Switch’s port settings.
10_full | 100_half | 100_full | 1000_full {[master | slave]}] | flow_control [enable | disable] | learning [enable | disable ] | state [enable | disable] | mdix [auto | normal | cross] | [description <desc 1-32> | clear_description]}
This command is used to configure the Switch’s Ethernet ports. Only the ports listed in the <portlist> will be affected.
all Configure all ports on the Switch. <portlist> Specifies a port or range of ports to be configured. speed – Allows the user to adjust the speed for a port or range of ports. The user has a
choice of the following:
auto Enables auto-negotiation for the specified range of ports. [10 | 100 | 1000] Configures the speed in Mbps for the specified range of ports.
Gigabit ports are statically set to 1000. When setting port speed to 1000_full,user should specify master or slave mode for 1000 base TX interface, and leave the 1000_full without any master or slave setting for other interfaces.
[half | full] − Configures the specified range of ports as either full-duplex or half-duplex. flow_control [enable | disable] – Enable or disable flow control for the specified ports. learning [enable | disable] Enables or disables the MAC address learning on the specified
range of ports. medium_type – Specify the medium type while the configured ports are combo ports. It’s an
optional parameter for configuring medium type combo ports. For no combo ports, user does not need to specify medium_type in the commands.
state [enable | disable] Enables or disables the specified range of ports. description Enter an alphanumeric string of no more than 32 characters to describe a
selected port interface.
clear description – To clear the description. mdix [auto | normal | cross] – MDIX mode can be specified as auto, normal, or cross. If set to
normal state, the port is in MDIX mode and can be connected to a port on an end node, such as a server or PC, using a straight-through cable. If set to cross state, the port is in MDI mode, and can be connected to a port on another Switch or hub that uses MDI-X ports through a straight-through cable. If set to auto state, the ports can be connected to any connections by using straight-through or cross-over cable. The ports make the necessary adjustments to accommodate either cable for correct operation.
Restrictions
Only Administrator and Operator-level users can issue this command.
27
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config ports 1-3 speed 10_full learning enable state enable
DES-3528:admin#
DES-3528:admin# show ports
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
DES-3528:admin# show ports description Command: show ports description
Example usage:
To configure the speed of ports 1-3 of unit 1 to be 10 Mbps, full duplex, learning enabled, state enabled and flow control enabled:
flow_control enable Command: config ports 1-3 speed 10_full learning enable state enable flow_control enable
Success.
show ports
Purpose Syntax show ports {<portlis t>} {[description | err_disabled | details | media_type]} Description Parameters
Restrictions
Example usage:
To display the configuration of all ports on a Switch:
Command: show ports
Port State/ Settings Connection Address MDIX Speed/Duplex/FlowCtrl Speed/Duplex/FlowCtrl Learning
------- -------- --------------------- ---------------------- --------­ 1 Enabled Auto/Disabled Link Down Enabled Auto 2 Enabled Auto/Disabled Link Down Enabled Auto 3 Enabled Auto/Disabled Link Down Enabled Auto 4 Enabled Auto/Disabled Link Down Enabled Auto 5 Enabled Auto/Disabled Link Down Enabled Auto 6 Enabled Auto/Disabled Link Down Enabled Auto 7 Enabled Auto/Disabled Link Down Enabled Auto 8 Enabled Auto/Disabled Link Down Enabled Auto 9 Enabled Auto/Disabled Link Down Enabled Auto
Used to display the current configuration of a range of ports.
This command is used to display the current configuration of a range of ports.
<portlist> Specifies a port or range of ports to be displayed. description – Adding this parameter to the show ports command indicates that a previously
entered port description will be included in the display. err_disabled – Use this to list disabled ports including connection status and reason for being
disabled.
details – Use this to show the detail information of ports. media_type – Specifies the media type used.
None.
Example usage:
To display the configuration of all ports on a standalone Switch, with description:
28
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
DES-3528:admin# show ports err_disabled
DES-3528:admin#
DES-3528:admin# show ports details
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
Port State/ Settings Connection Address MDIX Speed/Duplex/FlowCtrl Speed/Duplex/FlowCtrl Learning
------- -------- --------------------- ---------------------- --------­ 1 Enabled Auto/Disabled Link Down Enabled Auto Description: 2 Enabled Auto/Disabled Link Down Enabled Auto Description: 3 Enabled Auto/Disabled Link Down Enabled Auto Description: 4 Enabled Auto/Disabled Link Down Enabled Auto Description: 5 Enabled Auto/Disabled Link Down Enabled Auto Description: 6 Enabled Auto/Disabled Link Down Enabled Auto Description:
Example usage:
To display disabled ports i n cludi ng c on nect ion s tat us and r eason for being disabled on a standalone Switch:
Command: show ports err_disabled
Port Port Connection Status Reason State
----- -------- --------------------- ----------------
Example usage:
To display detail information of ports on the Switch:
Command: show ports details
Port : 1
--------------------
Port Status : Link Down Description : HardWare Type : Fast Ethernet MAC Address : 00-22-B0-10-8A-01 Bandwidth : 100000Kbit Auto-Negotiation : Enabled Duplex Mode : Full Duplex Flow Control : Disabled MDI : Auto Address Learning : Enabled Last Clear of Counter : 0 hours 3 mins ago BPDU Hardware Filtering Mode: Disabled Queuing Strategy : FIFO
TX Load : 0/100, 0bits/sec, 0packets/sec RX Load : 0/100, 0bits/sec, 0packets/sec
29
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# enable jumbo_frame
DES-3528:admin#
DES-3528:admin# disable jumbo_frame
DES-3528:admin#
DES-3528:admin# show jumbo_frame
DES-3528:admin#
enable jumbo_frame
Purpose Syntax enable jumbo_frame Description
Parameters Restrictions
Example usage:
To enabled the jambo frame:
Command: enable jumbo_frame
The maximum size of jumbo frame is 9216 bytes. Success.
Used to enable the jumbo frame function on the Switch.
This command will allow ethernet frames larger than 1536 bytes to be processed by the Switch. The maximum size of the jumbo frame may not exceed 9220 Bytes tagged.
None. Only Administrator and Operator-level users can issue this command.
disable jumbo_frame
Purpose Syntax
Used to disable the jumbo frame function on the Switch. disable jumbo_frame
Description Parameters Restrictions
Example usage:
To disable the jumbo frame:
Command: disable jumbo_frame
Success.
This command will disable the jumbo frame function on the Switch. None. Only Administrator and Operator-level users can issue this command.
show jumbo_frame
Purpose Syntax Description Parameters Restrictions
Used to show the status of the jumbo frame function on the Switch. show jumbo_frame This command will show the status of the jumbo frame function on the Switch. None. None.
Example usage:
To show the jumbo frame status currently configured on the Switch:
Command: show jumbo_frame
Jumbo Frame State : Disabled Maximum Frame Size : 1536 Bytes
30
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config port_security ports 1-5 admin_state enable max_learning_addr 5 lock_address_mode deleteonreset

PORT SECURITY COMMANDS

The Switch’s port security commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
config port_security ports [<portlist> | all] [{admin_state [enable | disable] | max_learning_addr
<max_lock_no 0-1638 4> | lock_address_mode [permanent | delete ont imeout | deleteonreset]} |{vlan [<vlan_name 32> | vlanid <vidlist>] max_learning_addr
[<max_lock_no 0-163 84 > | no_limit]}] delete port_security_en tr y [vlan <vlan_name 32> | vlanid <vlani d 1-4094>] mac_address <macaddr> clear port_security_entry {ports [<portlist> | all] {[vlan <vlan_n ame 32> | vlanid <vidlist>]}} show port_security {ports [<portl is t> | all] {[vlan <vlan_name 32> | vlanid <vidlist>]}} enable port_security trap_log disable port_security trap_ log config port_security system
max_learning_addr
config port_security vlan [<vlan_name 32> | vlanid <vidlist>] max_learning_addr [<max_lock_no 0-16384>
Each command is listed, in detail, in the following sections.
[<max_lock_no 1-163 84 > | no_limit]
| no_limit]
config port_security ports
Purpose Syntax config port_security ports [<portlist> | all] [{admin_state [enable | disable] |
Description
Parameters
Used to configure port security settings.
max_learning_addr <max_lock_no 0-16384> | lock_address_mode [permanent | deleteontimeout | deleteonreset]} |{vlan [<vlan_name 32> | vlanid <vidlist>] max_learning_addr [<max_lock_no 0-16384> | no_limit]}]
This command allows for the configuration of the port security feature. Only the ports listed in the <portlist> are affected.
portlist Specifies a port or range of ports to be configured. all Configure port security for all ports on the Switch. admin_state [enable | disable] – Enable or disable port security for the listed ports. max_learning_addr <max_lock_no 0-16384> Use this to limit the number of MAC
addresses dynamically listed in the FDB for the ports. lock_address_mode [permanent | deleteontimout | deleteonreset] – Indicates the method of
locking addresses. The user has three choices:
permanent – The locked addresses will not age out after the aging timer expires.  deleteontimeout – The locked addresses will age out after the aging timer expires.  deleteonreset – The locked addresses will not age out until the Switch has been
reset.
vlan – Specifies the VLAN name used. vlanid – Specifies the VLAN ID used. max_learning_addr – Specifies the maximum learning address value. To specify this value to
have no limit, select the ‘no_limit’ option.
Restrictions
Example usage:
To configure the port security:
Only Administrator and Operator-level users can issue this command.
31
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
Command: config port_security ports 1-5 admin_state enable max_learning_addr 5
DES-3528:admin#
DES-3528:admin# delete port_security_entry vlan default mac_address 00-01-30-10-2C-
DES-3528:admin#
DES-3528:admin#clear port_security_entry ports all
DES-3528:admin#
lock_address_mode deleteonreset
Success.
delete port_security_entry
Purpose Syntax delete port_security_entry [vlan <vlan_name 32> | vlanid <vlanid 1-4094>]
Description
Parameters
Restrictions
Example usage:
To delete a port security entry:
C7 Command: delete port_security_entry vlan default mac_address 00-01-30-10-2C-C7
Success.
Used to delete a port security entry by MAC address, port number and VLAN ID.
mac_address <macaddr >
This command is used to delete a single, previously learned port security entry by port, VLAN name, and MAC address.
vlan name Enter the corresponding VLAN name of the port to delete. vlanid – Specifies the VLAN ID used. mac_address <macaddr> Enter the corresponding MAC address, previously learned by the
port, to delete. Only Administrator and Operator-level users can issue this command.
clear port_security_entry
Purpose
Syntax clear port_security_entry {ports [<portlist> | all] {[vlan <vlan_name 32> | vlanid
Description
Parameters
Restrictions
Example usage:
To clear a port security entry by port:
Command: clear port_security_entry ports all
Success.
Used to clear MAC address entries learned from a specified port for the port security function.
<vidlist>]}}
This command is used to clear MAC address entries which were learned by the Switch by a specified port. This command only relates to the port security function.
ports Specifies a port or port range to clear. vlan – Specifies the VLAN name used. vlanid – Specifies the VLAN ID used.
Only Administrator and Operator-level users can issue this command.
Purpose
Used to display the current port security configuration.
32
show port_security
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin#show port_security
DES-3528:admin#
DES-3528:admin# enable port_security trap_log
DES-3528:admin#
show port_security
Syntax show port_security {ports [<portlist> | all] {[vlan <vlan_name 32> | vlanid <vidlist>]}} Description
Parameters
Restrictions
Example usage:
To display the port security configuration:
Command: show port_security
Port Security Trap/Log : Enabled System Maximum Address : no_limit
VLAN Configuration (Only VLANs with limitation are displayed): VID VLAN Name Max. Learning Addr.
---- -------------------------------- -----------------­ 1 default 2
This command is used to display port security information of the Switch’s ports. The information displayed includes port security trap/log state, admin state, maximum number of learning address and lock mode.
ports Specifies a port or range of ports to be viewed. vlan – Specifies the VLAN name used. vlanid – Specifies the VLAN ID used.
None.
enable port_security trap_log
Purpose Syntax enable port_security trap_log Description This command, along with the disable port_security trap_log, will enable and disable the
Parameters Restrictions
Example usage:
To enable the port security trap log setting:
Command: enable port_security trap_log
Success.
Used to enable the trap log for port security.
sending of log messages to the Switch’s log and SNMP agent when the port security of the Switch has been triggered.
None. Only Administrator and Operator-level users can issue this command.
disable port_security trap_log
Purpose Syntax disable port_security trap_log
Used to disable the trap log for port security.
Description This command, along with the enable port_security trap_log, will enable and disable the
sending of log messages to the Switch’s log and SNMP agent when the port security of the Switch has been triggered.
Parameters
None.
33
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# disable port_security trap_log
DES-3528:admin#
DES-3528:admin# config port_security system max_learning_addr 256
DES-3528:admin#
max_learning_addr - Specifies the maximum number of port security entries that can be
disable port_security trap_log
Restrictions
Example usage:
To disable the port security trap log setting:
Command: disable port_security trap_log
Success.
Only Administrator and Operator-level users can issue this command.
config port_security system max_learning_addr
Purpose
Syntax config port_security system max_learning_addr [<max_lock_no 1-16384> | no_limit] Description
Parameters max_learning_addr - Specifies the maximum number of port security entries that can be
This command sets the maximum number of port security entries that can be authorized system wide.
There are four levels of limitations on the learned entry number; for the entire system, for a port, for a VLAN, and for a specific VLAN on a port. If any limitation is exceeded, the new entry will be discarded.
The setting for system level maximum learned users must be greater than the total of maximum learned users allowed on all ports.
learned by the system. If the setting is smaller than the number of current learned entries on all enabled ports, the command will be rejected.
<max_lock_no 1-16384> - Enter the maximum learning address value here. This value must be between 1 and 16384.
no_limit - No limitation on the number of port security entries that can be learned by the system. By default, the number is set to no_limit.
Restrictions
Example usage:
To configure the maximum number of port security entries on the Switch to be 256:
Command: config port_security system max_learning_addr 256
Success.
Only Administrator and Operator-level users can issue this command.
config port_security vlan
Purpose
Syntax config port_security vlan [<vlan_name 32> | vlanid <vidlist>] max_learning_addr
Description
Parameters vlan - Specifies the VLAN by name.
This command sets the maximum number of port security entries that can be learned on a specific VLAN.
[<max_lock_no 0-16384> | no_limit]
There are four levels that limit the number of learned entries; the entire system, a port, a VLAN, and a specific VLAN on a port. If any limitation is exceeded, the new entry will be discarded.
<vlan_name 32> - Enter the VLAN name here. This name can be up to 32 characters long. vlanid - Specifies a list of VLANs by VLAN ID. <vidlist> - Enter the VLAN ID list here.
34
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
learned by this VLAN. If this parameter is set to 0, it means that no user can be authorized
DES-3528:admin# config port_security vlan vlanid 1 max_learning_addr 64
DES-3528:admin#
config port_security vlan
on this VLAN. If the setting is lower than the number of current learned entries on the VLAN, the command will be rejected. The default value is “no_limit”
<max_lock_no 0-16384> - Enter the maximum number of port security entries that can be learned here. This value must be between 0 and n.
no_limit - No limitation on the number of port security entries that can be learned by a specific VLAN.
Restrictions
Example usage:
To configure the maximum number of VLAN-based port security entries on VLAN 1 to be 64:
Command: config port_security vlan vlanid 1 max_learning_addr 64
Success.
Only Administrator and Operator-level users can issue this command.
35
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config box_priority current_box_id 1 priority 1
DES-3528:admin#
DES-3528:admin# config box_id current_box_id 1 new_box_id 2
Success.

STACKING COMMANDS

The stacking configuration commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
config box_priority current_box_id <value 1-8> priority <value 1-63> config box_id current_box_id <value 1-8> new_box_id [auto | <value 1-8>] show stack_information config stacking_mode [disable(0) | enable(1)] show stacking_mode show stack_device config stacking force_master_role state [enable | disable]
Each command is listed, in detail, in the following sections.
config box_priority
Purpose Used to configure box priority so as to determine which box (Switch) becomes the
master. A lower number denotes a higher priority. Syntax Description This command is used to configure the box (Switch) priority. Parameters
Restrictions Only Administrator and Operator and Power-User-level users can issue this command.
Usage example: To configure box priority:
Command: config box_priority current_box_id 1 priority 1
Success.
config box_priority current_box_id <value 1-8> priority <value 1-63>
current_box_id <value 1–8> – Identifies the Switch being configured. Range is 1 to 8.
priority <value 1–63> – Assigns a priority value to the box. A Lower number denotes a
higher priority. The valid priority range is 1 to 63.
config box_id
Purpose Used to configure box ID. Users can use this command to reassign box IDs. Syntax
Description This command is used to assign box IDs to Switches in a stack.
config box_id current_box_id <value 1-8> new_box_id <value 1-8> new_box_id [auto | <value 1-8>]
Parameters
Restrictions Only Administrator and Operator and Power-User-level users can issue this command.
Usage example: To change a box ID:
Command: config box_id current_box_id 1 new_box_id 2
current_box_id – Identifies the Switch being configured. Range is 1 to 8. new_box_id – The new ID being assigned to the Switch (box). Range is 1 to 8.
auto – Allows the box ID to be assigned automatically.
36
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin#
DES-3528:admin# show stack_information
DES-3528:admin#
DES-3528:admin# config stacking mode disable
Change Box bootmode may cause devices work restart, still continue? (y/n)y
show stack_information
Purpose Used to display the stack information table. Syntax Description This command display stack information. Parameters None. Restrictions Only Administrator and Operator and Power-User-level users can issue this command.
Usage example: To display stack information:
Command: show stack_information
Topology :Duplex_Chain My Box ID :1 Master ID :1 Box Count :1
Force Master Role: Disabled
Box User Prio- Prom Runtime H/W ID Set Type Exist rity MAC version version version
--- ---- ------------- ----- ---- ----------------- --------- --------- --------
1 Auto DES-3528 Exist 32 00-22-B0-10-8A-00 1.00.B008 2.60.017 A2 2 - NOT_EXIST No 3 - NOT_EXIST No 4 - NOT_EXIST No 5 - NOT_EXIST No 6 - NOT_EXIST No 7 - NOT_EXIST No 8 - NOT_EXIST No
show stack_information
config stacking_mode
Purpose Used to configure the stacking mode. Syntax Description This command will enable or disable the stacking mode for the Switch. When enabled,
Parameters
Restrictions Only Administrator-level users can issue this command.
Usage example: To disable the stacking mode:
Command: config stacking mode disable
config stacking_mode [disable(0) | enable(1)]
the last two ports on the rear of the Switch will be enabled for stacking. enable | disable – Use these parameters to enable or disable the stacking mode for the
Switch. Once this command is executed, it will cause the Switch to reboot. Before configuring the stacking mode of a Switch to disable status, the Switch must be physically removed from the stacking swtitches.
37
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show stacking mode
DES-3528:admin#
DES-3528:admin# show stack_device
DES-3528:admin#
show stacking_mode
Purpose Used to view the current stacking mode. Syntax Description This command will display whether the current stacking mode is enabled or disabled. Parameters None. Restrictions Only Administrator and Operator and Power-User-level users can issue this command.
Usage example: To view the current stacking mode:
Command: show stacking mode
Stacking mode : Enabled
show stacking_mode
show stack_device
Purpose Used to display the information for devices in the stack. Syntax Description Used to display the information for devices in the stack. Parameters None. Restrictions None.
show stack_device
Usage example: To display the stack information:
Command: show stack_device
Box ID Box Type H/W Version Serial Number
------- --------------- ------------ ---------------­ 1 DES-XXXXS 0A1 1234567890123 3 DES-XXXXS 0A1 2345678901234
config stacking force_master_role
Purpose This command is used to enable or disable the force master role. Syntax Description If state is enabled, when device is in election state, it still uses old priority setting and
Parameters
config stacking force_master_role state [enable | disable]
MAC to compare device priority. After stacking is stable, master’s priority will become zero. If stacking topology change again, Master will use priority zero and MAC address to determine who new primary master is.
force_master_role - Enable or disable the Switch’s Stacking Force Master Role state. Default setting is disabled.
enable - Specifies that Switch's stacking force master role will be enabled. disable - Specifies that Switch's stacking force master role will be disabled.
Restrictions Only Administrator and Operator and Power-User-level users can issue this command.
Usage example: To enable stacking force master role state:
38
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config stacking force_master_role state enable
DES-3528:admin#
Command: config stacking force_master_role state enable
Success.
39
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide

NETWORK MANAGEMENT (SNMP) COMMANDS

The Switch supports the Simple Network Management Protocol (SNMP) versions 1, 2c, and 3. Users can specify which version of the SNMP users want to use to monitor and control the Switch. The three versions of SNMP vary in the level of security provided between the management station and the network device. The following table lists the security features of the three SNMP versions:
SNMP Version
v1 Community String v2c Community String v3 Username
v3 MD5 or SHA
v3 MD5 DES or SHA DES
The network management commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Authentication Method Description
Community String is used for authentication NoAuthNoPriv Community String is used for authentication NoAuthNoPriv Username is used for authentication − NoAuthNoPriv, AuthNoPriv or
AuthPriv Authentication is based on the HMAC-MD5 or HMAC-SHA algorithms
AuthNoPriv Authentication is based on the HMAC-MD5 or HMAC-SHA algorithms
AuthPriv. DES 56-bit encryption is added based on the CBC-DES (DES-56)
standard
Command Parameters
create snmp user <user_name 32> <groupname 32> {encrypted [by_password auth [md5
<auth_password 8-16 > | sha <auth_p as s word 8-2 0> ] pr iv [none | des <priv_password 8-16>] | by_key auth [md5 <auth_key 32-32> | sha
<auth_key 40-40>] priv [none | des <pri v_k e y 32-32>]]} delete snmp user <user_name 32> show snmp user create snmp view <view_name 32> <oid> view_type [included | excluded] delete snmp view <view_name 32> [all | oid] show snmp view {<view_name 32>} create snmp community <community_string 32> view <view_name 32> [read_only | read_write] delete snmp community <community_string 32> show snmp community {<community_string 32>} config snmp engineID <snmp_engineID 10-64> show snmp engineID create snmp group <groupname 32> [v1 | v2c | v3 [noauth_nopriv | auth_nopriv | auth_priv]]
{read_view <view_nam e 32> | write_ view <vie w_name 32> | notify_view
<view_name 32>}(1) delete snmp group <groupname 32> show snmp groups create snmp host [<ipad dr > | v6host <ip v6 ad dr>] [v1 | v2c | v3 [noauth_ nopr i v | auth_no pr iv |
auth_priv]] <auth_string 32 > delete snmp host [<ipaddr > | v6host <ip v6addr>] show snmp host {<ipaddr>} show snmp v6host {<ipv6addr>}
40
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
by this command.
priv [none | des <priv_key 32-32> ]]}
unauthorized source.
Command Parameters
create trusted_host [<ipaddr > | <ipv6ad dr > | networ k <network_address> | ipv6_prefix
<ipv6networkaddr>] {snmp | telnet | ssh | http | https | ping} config trusted_host [<ipaddr> | <ipv6addr> | network <network_address> | ipv6 _pr ef ix
<ipv6networkaddr>] [add | delete] {snmp | telnet | ssh | http | https | ping | all} delete trusted_host [ipaddr <ipaddr> | ipv6address <ipv6addr> | network <network_address> |
ipv6_prefix <ipv6networkaddr> | all] show trusted_host enable snmp traps enable snmp authenticate_traps show snmp traps {linkchange_traps {ports <portlist>}} disable snmp traps disable snmp authenticate_traps config snmp system_contact <sw_contact> config snmp system_location <sw_location> config snmp system_name <sw_name> enable snmp disable snmp
Each command is listed, in detail, in the following sections.
create snmp user
Purpose
Syntax create snmp user <user_name 32> <groupname 32> {encrypted [by_password auth
Description
Parameters
Used to create a new SNMP user and adds the user to an SNMP group that is also created
[md5 <auth_password 8-16> | sha <auth_password 8-20>] priv [none | des <priv_password 8-16>] | by_key auth [md5 <auth_key 32-32> | sha <auth _key 40-40>]
This command creates a new SNMP user and adds the user to an SNMP group that is also created by this command. SNMP ensures:
Message integrity Ensures that packets have not been tampered with during transit. Authentication Determines if an SNMP message is from a valid source. Encryption Scrambles the contents of messages to prevent it from being viewed by an
<user_name 32> An alphanumeric name of up to 32 characters that will identify the new SNMP user.
<groupname 32> An alphanumeric name of up to 32 characters that will identify the SNMP group the new SNMP user will be associated wit h.
encrypted – Allows the user to choose a type of authorization for authentication using SNMP. The user may choose:
by_password – Requires the SNMP user to enter a password for authentication and
privacy. The password is defined by specifying the auth_password below. This method is recommended.
by_key – Requires the SNMP user to enter a encryption key for authentication and
privacy. The key is defined by specifying the key in hex form below. This method is not recommended.
auth The user may also choose the type of authentication algorithms used to authenticate the snmp user. The choices are:
md5 − Specifies that the HMAC-MD5-96 authentication level will be used. md5 may be utilized by entering one of the following:
41
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# create snmp user dlink default encrypted by_password auth md5 canadian
DES-3528:admin#
DES-3528:admin# delete snmp user dlink
DES-3528:admin#
create snmp user
<auth password 8-16> - An alphanumeric string of between 8 and 16 characters that will be used to authorize the agent to receive packets for the host.
<auth_key 32-32> - Enter an alphanumeric string of exactly 32 characters, in hex form, to define the key that will be used to authorize the agent to receive packets for the host.
sha Specifies that the HMAC-SHA-96 authentication level will be used.
<auth password 8-20> - An alphanumeric string of between 8 and 20 characters that
will be used to authorize the agent to receive packets for the host.
<auth_key 40-40> - Enter an alphanumeric string of exactly 40 characters, in hex form, to define the key that will be used to authorize the agent to receive packets for the host.
priv – Adding the priv (privacy) parameter will allow for encryption in addition to the authentication algorithm for higher security. The user may choose:
des – Adding this parameter will allow for a 56-bit encryption to be added using the DES-56 standard using:
<priv_password 8-16> - An alphanumeric string of between 8 and 16 characters that will be used to encrypt the contents of messages the host sends to the agent.
<priv_key 32-32> - Enter an alphanumeric key string of exactly 32 characters, in hex form, that will be used to encrypt the contents of messages the host sends to the agent.
none – Adding this parameter will add no encryption.
Restrictions
Example usage:
To create an SNMP user on the Switch:
priv none Command: create snmp user dlink default encrypted by_password auth md5 canadian priv none
Success.
Only Administrator-level users can issue this command.
delete snmp user
Purpose Syntax delete snmp user <user_name 32> Description Parameters
Restrictions
Used to remove an SNMP user from an SNMP group.
This command removes an SNMP user from its SNMP group. <user_name 32> An alphanumeric string of up to 32 characters that identifies the SNMP
user that will be deleted. Only Administrator-level users can issue this command.
Example usage:
To delete a previously entered SNMP user on the Switch:
Command: delete snmp user dlink
Success.
show snmp user
42
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show snmp user
DES-3528:admin#
DES-3528:admin# create snmp view dlinkview 1.3.6 view_type included
DES-3528:admin#
show snmp user
Purpose
Syntax show snmp user Description
Parameters Restrictions
Example usage:
To display the SNMP users currently configured on the Switch:
Command: show snmp user
Username Group Name VerAuthPriv
-------- ------------- ----------­initial initial V3 NoneNone Total Entries: 1
Used to display information about each SNMP username in the SNMP group username table.
This command displays information about each SNMP username in the SNMP group username table.
None. None.
create snmp view
Purpose Used to assign views to community strings to limit which MIB objects and SNMP manager
can access.
Syntax create snmp view <view_name 32> <oid> view_type [included | excluded] Description This command assigns views to community strings to limit which MIB objects an SNMP
manager can access.
Parameters <view_name 32> An alphanumeric string of up to 32 characters that identifies the SNMP
view that will be created. <oid> The object ID that identifies an object tree (MIB tree) that will be included or
excluded from access by an SNMP manager. view type – Sets the view type to be:
included Include this object in the list of objects that an SNMP manager can access.
excluded Exclude this object from the list of objects that an SNMP manager can access.
Restrictions Only Administrator-level users can issue this command.
Example usage:
To create an SNMP view:
Command: create snmp view dlinkview 1.3.6 view_type included
Success.
delete snmp view
Purpose Syntax delete snmp view <view_name 32> [all | <oid>]
Used to remove an SNMP view entry previously created on the Switch.
43
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# delete snmp view dlinkview all
DES-3528:admin#
DES-3528:admin# show snmp view
DES-3528:admin#
agent on the Switch. One or more of the following characteristics can be associated with the
delete snmp view
Description Parameters
Restrictions
Example usage:
To delete a previously configured SNMP view from the Switch:
Command: delete snmp view dlinkview all
Success.
This command is used to remove an SNMP view previously created on the Switch. <view_name 32> − An alphanumeric string of up to 32 characters that identifies the SNMP
view to be deleted.
all Specifies that all of the SNMP views on the Switch will be deleted. <oid> The object ID that identifies an object tree (MIB tree) that will be deleted from the
Switch. Only Administrator-level users can issue this command.
show snmp view
Purpose Syntax show snmp view {<view_name 32>}
Used to display an SNMP view previously created on the Switch.
Description Parameters
Restrictions
Example usage:
To display SNMP view configuration:
Command: show snmp view
Vacm View Table Settings View Name Subtree View Type
--------- ---------- ---------­ ReadView 1 Included WriteView 1 Included NotifyView 1.3.6 Included restricted 1.3.6.1.2.1.1 Included restricted 1.3.6.1.2.1.11 Included restricted 1.3.6.1.6.3.10.2.1 Included restricted 1.3.6.1.6.3.11.2.1 Included restricted 1.3.6.1.6.3.15.1.1 Included CommunityView 1 Included CommunityView 1.3.6.1.6.3 Excluded CommunityView 1.3.6.1.6.3.1 Included
Total Entries: 11
This command displays an SNMP view previously created on the Switch. <view_name 32> An alphanumeric string of up to 32 characters that identifies the SNMP
view that will be displayed. None.
create snmp community
Purpose
Used to create an SNMP community string to define the relationship between the SNMP manager and an agent. The community string acts like a password to permit access to the
44
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
community string:
DES-3528:admin# create snmp community dlink view ReadView read_write
DES-3528:admin#
DES-3528:admin# delete snmp community dlink
DES-3528:admin#
create snmp community
An Access List of IP addresses of SNMP managers that are permitted to use the community string to gain access to the Switch’s SNMP agent.
An MIB view that defines the subset of all MIB objects that will be accessible to the SNMP community.
read_write or read_only level permission for the MIB objects accessible to the SNMP community.
Syntax create snmp community <community_string 32> view <view_name 32> [read_only |
read_write]
Description
Parameters
Restrictions
Example usage:
To create the SNMP community string “dlink:”
Command: create snmp community dlink view ReadView read_write
Success.
This command is used to create an SNMP community string and to assign access-limiting characteristics to this community string.
<community_string 32> An alphanumeric string of up to 32 characters that is used to identify members of an SNMP community. This string is used like a password to give remote SNMP managers access to MIB objects in the Switch’s SNMP agent.
view <view_name 32> − An alphanumeric string of up to 32 characters that is used to identify the group of MIB objects that a remote SNMP manager is allowed to access on the Switch.
read_only − Specifies that SNMP community members using the community string created with this command can only read the contents of the MIBs on the Switch.
read_write Specifies that SNMP community members using the community string created with this command can read from and write to the contents of the MIBs on the Switch.
Only Administrator-level users can issue this command.
delete snmp community
Purpose Syntax delete snmp community <community_string 32> Description
Parameters
Restrictions
Example usage:
To delete the SNMP community string “dlink”:
Command: delete snmp community dlink
Success.
show snmp community
Used to remove a specific SNMP community string from the Switch.
This command is used to remove a previously defined SNMP community string from the Switch.
<community_string 32> An alphanumeric string of up to 32 characters that is used to identify members of an SNMP community. This string is used like a password to give remote SNMP managers access to MIB objects in the Switch’s SNMP agent.
Only Administrator-level users can issue this command.
45
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show snmp community
DES-3528:admin#
DES-3528:admin# config snmp engineID 0035636666
DES-3528:admin#
show snmp community
Purpose Syntax show snmp community {<community_s tring 32>} Description Parameters
Restrictions
Example usage:
To display the currently entered SNMP community strings:
Command: show snmp community
SNMP Community Table
Community Name View Name Access Right
-------------- ----------- -----------­dlink ReadView read_write private CommunityView read_write public CommunityView read_only
Total Entries: 3
Used to display SNMP community strings configured on the Switch.
This command is used to display SNMP community strings that are configured on the Switch. <community_string 32> An alphanumeric string of up to 32 characters that is used to
identify members of an SNMP community. This string is used like a password to give remote SNMP managers access to MIB objects in the Switch’s SNMP agent.
None.
config snmp engineID
Purpose Syntax config snmp engineID <snmp_engi n eID 10-64> Description Parameters
Restrictions
Example usage:
To give the SNMP agent on the Switch the name “0035636666”:
Command: config snmp engineID 0035636666
Success.
Used to configure a name for the SNMP engine on the Switch.
This command configures a name for the SNMP engine on the Switch. <snmp_engineID 10-64> An alphanumeric string that will be used to identify the SNMP
engine on the Switch. Only Administrator-level users can issue this command.
show snmp engineID
Purpose Syntax show snmp engineID
Used to display the identification of the SNMP engine on the Switch.
Description Parameters Restrictions
Example usage:
This command displays the identification of the SNMP engine on the Switch. None. None.
46
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show snmp engineID
DES-3528:admin#
DES-3528:admin# create snmp group sg1 v3 noauth_nopriv read_view v1 write_view v1
Command: create snmp group sg1 v3 noauth_nopriv read_view v1 write_view v1 notify_view
DES-3528:admin#
To display the current name of the SNMP engine on the Switch:
Command: show snmp engineID
SNMP Engine ID : 0035636666
create snmp group
Purpose Syntax create snmp group <groupname 32> [v1 | v2c | v3 [noauth_nopriv | auth_nopriv |
Description
Parameters
Used to create a new SNMP group, or a table that maps SNMP users to SNMP views.
auth_priv]] {read_view <view_name 32> | write_view <view_name 32> | notify_view <view_name 32>}(1)
This command creates a new SNMP group, or a table that maps SNMP users to SNMP views.
<groupname 32> An alphanumeric name of up to 32 characters that will identify the SNMP group the new SNMP user will be associated wit h.
v1 – Specifies that SNMP version 1 will be used. The Simple Network Management Protocol (SNMP), version 1, is a network management protocol that provides a means to monitor and control network devices.
v2c – Specifies that SNMP version 2c will be used. The SNMP v2c supports both centralized and distributed network management strategies. It includes improvements in the Structure of Management Information (SMI) and adds some security features.
v3 – Specifies that the SNMP version 3 will be used. SNM P v3 prov ides secur e ac ces s to devices through a combination of authentication and encrypting packets over the network. SNMP v3 adds:
Message integrity Ensures that packets have not been tampered with during transit.
Authentication − Determines if an SNMP message is from a valid source.
Encryption − Scrambles the contents of messages to prevent it being viewed by an
unauthorized source.
noauth_nopriv − Specifies that there will be no authorization and no encryption of packets sent between the Switch and a remote SNMP manager.
auth_nopriv − Specifies that authorization will be required, but there will be no encryption of packets sent between the Switch and a remote SNMP manager.
auth_priv Specifies that authorization will be required, and that packets sent between the Switch and a remote SNMP manger will be encrypted.
read_view – Specifies that the SNMP group being created can request SNMP messages. write_view – Specifies that the SNM P gro up being cr e ated has writ e pr ivil eges. notify_view Specifies that the SNMP group being created can receive SNMP trap
messages generated by the Switch’s SNMP agent. <view_name 32> An alphanumeric string of up to 32 characters that is used to identify the
group of MIB objects that a remote SNMP manager is allowed to access on the Switch.
Restrictions
Example usage:
To create an SNMP group nam ed “sg1”:
notify_view v1
v1
Success.
Only Administrator-level users can issue this command.
47
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# delete snmp group sg1
DES-3528:admin#
DES-3528:admin# show snmp groups
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
delete snmp group
Purpose Syntax delete snmp group <groupname 32> Description Parameters
Restrictions
Example usage:
To delete the SNMP group named “sg1”:
Command: delete snmp group sg1
Success.
Used to remove an SNMP group from the Switch.
This command is used to remove an SNMP group from the Switch. <groupname 32> An alphanumeric name of up to 32 characters that will identify the SNMP
group the new SNMP user will be associated wit h. Only Administrator-level users can issue this command.
show snmp groups
Purpose
Syntax show snmp groups
Used to display the group-names of SNMP groups currently configured on the Switch. The security model, level, and status of each group are also displayed.
Description
Parameters Restrictions
Example usage:
To display the currently configured SNMP groups on the Switch:
Command: show snmp groups Vacm Access Table Settings
Group Name : public ReadView Name : CommunityView WriteView Name : Notify View Name : CommunityView Securiy Model : SNMPv1 Securiy Level : NoAuthNoPriv
Group Name : public ReadView Name : CommunityView WriteView Name : Notify View Name : CommunityView Securiy Model : SNMPv2 Securiy Level : NoAuthNoPriv
Group Name : initial ReadView Name : restricted WriteView Name : Notify View Name : restricted Securiy Model : SNMPv3 Securiy Level : NoAuthNoPriv
This command displays the group-names of SNMP groups currently configured on the Switch. The security model, level, and status of each group are also displayed.
None. None.
48
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# create snmp host 10.48.74.100 v3 auth_priv public
DES-3528:admin#
create snmp host
Purpose Syntax create snmp host [<ipaddr> | v6host <ipv6addr>] [v1 | v2c | v3 [noauth_nopriv |
Description Parameters
Used to create a recipient of SNMP traps generated by the Switch’s SNMP agent.
auth_nopriv | auth_priv]] <auth_string 32>
This command creates a recipient of SNMP traps generated by the Switch’s SNMP agent. <ipaddr> The IP address of the remote management station that will serve as the SNMP
host for the Switch. <ipv6addr> The IPv6 address of the remote management station that will serve as the
SNMP host for the Switch. v1 – Specifies that SNMP version 1 will be used. The Simple Network Management Protocol
(SNMP), version 1, is a network management protocol that provides a means to monitor and control network devices.
v2c – Specifies that SNMP version 2c will be used. The SNMP v2c supports both centralized and distributed network management strategies. It includes improvements in the Structure of Management Information (SMI) and adds some security features.
v3 – Specifies that the SNMP version 3 will be used. SNM P v3 prov ides secur e ac ces s to devices through a combination of authentication and encrypting packets over the network. SNMP v3 adds:
Mes s age int egrity ensures that packets have not been tampered with during transit.
Authentication − determines if an SNMP message is from a valid source.
Encryption − scrambles the contents of messages to prevent it being viewed by an
unauthorized source.
noauth_nopriv
sent between the Switch and a remote SNMP manager. auth_nopriv Specifies that authorization will be required, but there will be no encryption of
packets sent between the Switch and a remote SNMP manager. auth_priv − Specifies that authorization will be required, and that packets sent between the
Switch and a remote SNMP manger will be encrypted. <auth_string 32> An alphanumeric string used to authorize a remote SNMP manager to
access the Switch’s SNMP agent.
Specifies that there will be no authorization and no encryption of packets
Restrictions
Example usage:
To create an SNMP host to receive SNMP messages:
Command: create snmp host 10.48.74.100 v3 auth_priv public
Success.
Only Administrator-level users can issue this command.
delete snmp host
Purpose Syntax delete snmp host [<ipaddr> | v6host <ipv6addr>] Description Parameters
Restrictions
Used to remove a recipient of SNMP traps generated by the Switch’s SNMP agent.
This command deletes a recipient of SNMP traps generated by the Switch’s SNMP agent. <ipaddr> The IP address of a remote SNMP manager that will receive SNMP traps
generated by the Switch’s SNMP agent. <ipv6addr> The IPv6 address of a remote SNMP manager that will receive SNMP traps
generated by the Switch’s SNMP agent. Only Administrator-level users can issue this command.
49
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# delete snmp host 10.48.74.100
DES-3528:admin#
DES-3528:admin# show snmp host
Host IP Address SNMP Version Community Name/SNMPv3 User Name
DES-3528:admin#
Example usage:
To delete an SNMP host entry:
Command: delete snmp host 10.48.74.100
Success.
show snmp host
Purpose Syntax show snmp host {<ipaddr>} Description
Parameters
Restrictions
Example usage:
To display the currently configured SNMP hosts on the Switch:
Command: show snmp host
SNMP Host Table
--------------- ------------ ------------------------------
10.48.76.23 V2c private
10.48.74.100 V3 authpriv public
Total Entries: 2
Used to display the recipient of SNMP traps generated by the Switch’s SNMP agent.
This command is used to display the IP addresses and configuration information of remote SNMP managers that are designated as recipients of SNMP traps that are generated by the Switch’s SNMP agent.
<ipaddr> The IP address of a remote SNMP manager that will receive SNMP traps generated by the Switch’s SNMP agent.
None.
show snmp v6host
Purpose Syntax show snmp v6host {<ipv6addr>} Description Parameters v6host - (Optional) Specifies the IPv6 host address.
Restrictions
Example usage:
To show SNMP host:
This command is used to display the recipient for which the traps are targeted.
This command is used to display the recipient for which the traps are targeted.
<ipv6addr> - Enter the IPv6 address used for the configuration here. If no parameter specified, all SNMP hosts will be displayed.
None.
50
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show snmp v6host
DES-3528:admin#
DES-3528:admin# create trusted_host 10.62.32.1
Success.
Command: show snmp v6host
SNMP Host Table
-----------------------------------------------------------------­Host IPv6 Address : 3FFE::3 SNMP Version : V3 na/np Community Name/SNMPv3 User Name : initial
Host IPv6 Address : 3FFE::2 SNMP Version : V2c Community Name/SNMPv3 User Name : private
Host IPv6 Address : 3FFE::1 SNMP Version : V1 Community Name/SNMPv3 User Name : public
Host IPv6 Address : 3FFE::3 SNMP Version : V3 a/np Community Name/SNMPv3 User Name : user123
Host IPv6 Address : 3FFE::3 SNMP Version : V3 a/ p Community Name/SNMPv3 User Name : user234
Total Entries: 5
create trusted_host
Purpose Syntax create trusted_host [< ipaddr> | <ipv6addr> | network <network_address> | ipv6_prefix
Description
Parameters
Restrictions
Example usage:
To create the trusted host:
Command: create trusted_host 10.62.32.1
Used to create the trusted host.
<ipv6networkaddr>] {snmp | telnet | ssh | http | https | ping}
This command creates the trusted host. The Switch allows users to specify up to four IP addresses that are allowed to manage the Switch via in-band SNMP or TELNET based management software. These IP addresses must be members of the Management VLAN. If no IP addresses are specified, then there is nothing to prevent any IP address from accessing the Switch, provided the user knows the Username and Password.
<ipaddr> The IP address of the trusted host to be created. <network_address> IP address and netmask of the trusted host to be created.
Only Administrator and Operator-level users can issue this command.
config trusted_host
Purpose Syntax config trusted_host [<ipaddr> | <ipv6addr> | network <network_address> | ipv6_prefix
Description Parameters <ipaddr> - The IP address of the trusted host.
Used to configure the access interfaces for the trusted host.
<ipv6networkaddr>] [add | delete] {snmp | telnet | ssh | http | https | ping | all}
Used to configure the access interfaces for the trusted host.
<ipv6addr> - The IPv6 address of the trusted host.
51
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
network - The network address of the trusted network. The form of network address is
DES-3528:admin# config trusted_host 10.48.74.121 add ssh telnet
DES-3528:admin#
DES-3528:admin# show trusted_host
DES-3528:admin#
config trusted_host
xxx.xxx.xxx.xxx/y. <network_address> - Enter the network address used here. ipv6_prefix - The IPv6 subnet prefix of the trusted network. <ipv6networkaddr> - Enter the IPv6 subnet prefix here.
add - Add interfaces for that trusted host. delete - Delete interfaces for that trusted host. snmp - (Optional) Specifies trusted host for SNMP. telnet - (Optional) Specifies trusted host for TELENT. ssh - (Optional) Specifies trusted host for SSH. http - (Optional) Specifies trusted host for HTTP. https - (Optional) Specifies trusted host for HTTPs. ping - (Optional) Specifies trusted host for PING.
Restrictions
Example usage:
To configure the trusted host:
Command: config trusted_host 10.48.74.121 add ssh telnet
Success.
Only Administrator and Operator-level users can issue this command.
show trusted_host
Purpose Used to display a list of trusted hosts entered on the Switch using the create trusted_host
command above.
Syntax show trusted_host Description This command a list of trusted hosts entered on the Switch using the create trusted_host
command above.
Parameters Restrictions
Example Usage:
None. None.
To display the list of trust hosts:
Command: show trusted_host
Management Stations
IP Address Access Interface
----------------------------------------------------------------
10.62.32.1/32
10.62.32.1/16
Total Entries: 2
delete trusted_host
Purpose
Used to delete a trusted host entry made using the create trusted_host command above.
52
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# delete trusted_host ipaddr 10.62.32.1
Success.
DES-3528:admin# enable snmp traps
DES-3528:admin#
DES-3528:admin# enable snmp authenticate_traps Command: enable snmp authenticate_traps
delete trusted_host
Syntax delete trusted_host [ipaddr <ipaddr> | ipv6address <ipv6addr> | network
<network_address> | ipv6_p refix <ipv 6n etworkaddr> | all]
Description Parameters ipaddr - The IP address of the trusted host.
Restrictions
Example usage:
To delete a trusted host with an IP address 10.62.32.1:
Command: delete trusted_host ipaddr 10.62.32.1
Used to delete a trusted host entry made using the create trusted_host command above.
<ipaddr> - Enter the IP address used for this configuration here. ipv6addr - The IPv6 address of the trusted host. <ipv6addr> - Enter the IPv6 address used for this configuration here. network - The network address of the trusted network. <network_address> - Enter the network address used for this configuration here. ipv6_prefix - The IPv6 subnet prefix address of the trusted network <ipv6networkaddr> - Enter the IPv6 subnet profix address here. all - All trusted hosts will be deleted.
Only Administrator and Operator-level users can issue this command.
enable snmp traps
Purpose Syntax enable snmp traps Description Parameters Restrictions
Example usage: To enable SNMP trap support on the Switch:
Command: enable snmp traps
Success.
Used to enable SNMP trap support.
This command is used to enable SNMP trap support on the Switch. None. Only Administrator and Operator-level users can issue this command.
enable snmp authenti cate_t raps
Purpose Syntax enable snmp authentica te_traps Description
Used to enable SNMP authentication trap support.
This command is used to enable SNMP authentication trap support on the Switch.
Parameters Restrictions
Example Usage:
To turn on SNMP authentication trap support:
None. Only Administrator and Operator-level users can issue this command.
53
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin#
DES-3528:admin#show snmp traps
DES-3528:admin#
DES-3528:admin# disable snmp traps
DES-3528:admin#
Success.
show snmp traps
Purpose Syntax show snmp traps {linkchange_traps {ports <portlist>}} Description
Parameters linkchange_traps – Specifies to display the SNMP Linkchange Traps.
Restrictions
Example usage: To view the current SNMP traps support:
Command: show snmp traps
SNMP Traps : Enabled Authenticate Trap : Enabled Linkchange Traps : Enabled Coldstart Traps : Enabled Warmstart Traps : Enabled
Used to show SNMP traps support on the Switch .
This command is used to view the SNMP traps support status currently configured on the Switch.
ports – Specifies the list of ports to be displayed. None.
disable snmp traps
Purpose Syntax disable snmp traps Description Parameters Restrictions
Example usage:
To prevent SNMP traps from being sent from the Switch:
Command: disable snmp traps
Success.
Used to disable SNMP trap support on the Switch.
This command is used to disable SNMP trap support on the Switch. None. Only Administrator and Operator-level users can issue this command.
disable snmp authenticate_traps
Purpose Syntax disable snmp authenticate_traps Description Parameters
Used to disable SNMP authentication trap support.
This command is used to disable SNMP authentication support on the Switch. None.
Restrictions
Example usage:
Only Administrator and Operator-level users can issue this command.
54
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config snmp system_contact MIS Department II
DES-3528:admin#
DES-3528:admin# config snmp system_location HQ 5F
DES-3528:admin#
DES-3528:admin# disable snmp authenticate_traps
DES-3528:admin#
To disable the SNMP authentication trap support:
Command: disable snmp authenticate_traps
Success.
config snmp system_contact
Purpose Syntax config snmp system_contact <sw_contact> Description
Parameters
Restrictions
Example usage: To configure the Switch contact to “MIS Department II”:
Command: config snmp system_contact MIS Department II
Success.
Used to enter the name of a contact person who is responsible for the Switch.
This command is used to enter the name and/or other information to identify a contact person who is responsible for the Switch. A maximum of 255 character can be used.
<sw_contact> − A maximum of 255 characters is allowed. A NULL string is accepted if there is no contact.
Only Administrator and Operator-level users can issue this command.
config snmp system_location
Purpose Syntax config snmp system_location < sw_location>
Used to enter a description of the location of the Switch.
Description
Parameters
Restrictions
Example usage: To configure the Switch location for “HQ 5F”:
Command: config snmp system_location HQ 5F
Success.
This command is used to enter a description of the location of the Switch. A maximum of 255 characters can be used.
<sw_location> A maximum of 255 characters is allowed. A NULL string is accepted if there is no location desired.
Only Administrator and Operator-level users can issue this command.
config snmp system_name
Purpose Syntax config snmp system_name <sw_name> Description Parameters
Used to configure the name for the Switch.
This command configures the name of the Switch. <sw_name> A maximum of 255 characters is allowed. A NULL string is accepted if no
name is desired.
55
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config snmp system_name DES-3526 Switch
DES-3528:admin#
DES-3528:admin# enable snmp
DES-3528:admin#
DES-3528:admin# disable snmp
DES-3528:admin#
config snmp system_name
Restrictions
Example usage:
To configure the Switch name for “DES-3526 Switch”:
Command: config snmp system_name DES-3526 Switch
Success.
Only Administrator and Operator-level users can issue this command.
enable snmp
Purpose Syntax Description Parameters Restrictions
Example usage:
To enable snmp on the Switch
Used to enable the SNMP interface access function. enable snmp This command is used to enable the SNMP function. None Only Administrator and Operator-level users can issue this command.
:
Command: enable snmp
Success.
disable snmp
Purpose Syntax Description
Parameters Restrictions
Example usage:
To disable SNMP on the Switch
Command: disable snmp
Success.
Used to disable the SNMP interface access function. disable snmp This command is used to disable the SNMP function. When the SNMP function is disabled,
the network manager will not be able to access SNMP MIB objects. The device will not send traps or notifications to the network manager either.
None Only Administrator and Operator-level users can issue this command.
:
56
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide

SWITCH UTILITY COMMANDS

The Switch utility commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
download [firmware_fromTFTP [<ipaddr> | <ipv6addr>] src_file <path_filename 64> {image_id
<int 1-2>} {unit [all | <unitid 1-8>]} | cfg_fromTFTP <ipaddr> <path_filename 64> {[<config_id 1-2> | increment]} ]
config firmware {unit <unit_id 1-8>} image_id <int 1-2> [delete | boot_up] show firmware_information show config [[effective | modified | current_config | config_in_nvram <config_id 1-2>] {[include |
exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}} {[include | exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}} {[include | exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}}}}} | information]
upload [cfg_toTFTP [<ipaddr> | <ipv6addr>] dest_file <path_filename 64> {<config_id 1-2>}
{[include | exclude | begin] <filter_str ing 80 > {<filter _string 80> {<filter_string 80>}} {[include | exclude | begin] <filter_str ing 80 > {<filter _string 80> {<filter_string 80>}} {[include | exclude | begin] <filter_str ing 80 > {<filter _string 80> {<filter_string 80>}}}}} | log_toTFTP [<ipaddr> | <ipv6 ad dr>] des t_f il e <path_filename 64> | attack_log_toTFTP [<ipaddr> | <ipv6addr>] dest_file <path_filename 64>]
config configuration <config_id 1-2>[boot_up | delete | active]
Each command is listed, in detail, in the following sections.
download
Purpose Syntax download [ firmware_fromTFTP [<ipaddr> | <ipv6addr>] src_file <path_filename 64>
Description
Parameters
Used to download and install new firmware or a Switch configuration file from a TFTP server.
{image_id <int 1-2>} {unit [all | <unitid 1-8>]} | cfg_fromTFTP <ipaddr> <path_filename 64> {[<config_id 1-2> | increment]} ]
This command is used to download a new firmware or a Switch configuration file from a TFTP server.
firmware_fromTFTP Download and install new firmware on the Switch from a TFTP server. cfg_fromTFTP Downlo ad a Switch configuration file from a TFTP server. <ipaddr> − The IP address of the TFTP server. <ipv6addr> - Enter the IPv6 address used here. src_file – Specifies the source file name used. <path_filename> The DOS path and filename of the firmware or Switch configuration file on
the TFTP server. For example, C:\3528.had. image_id <int 1-2> Specify the working section ID. The Switch can hold two firmware
versions for the user to select from, which are specified by section ID. unit - Specifies which unit(s) on the stacking system can download and install new firmware
from a TFTP server. If it is not specified, it refers to all the units. For example, unit 1-3. config_id - Specifies configuration ID in the system; If it is not specified, it refers to the boot
up configuration ID. increment − Allows the download of a partial Switch configuration file. This allows a file to be
downloaded that will change only the Switch parameters explicitly stated in the configuration file. All other Switch parameters will remain unchanged.
Restrictions
Example usage:
The TFTP server must be on the same IP subnet as the Switch. Only Administrator-level users can issue this command.
57
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# download cfg_fromTFTP 10.48.74.121 c:\cfg\setting.txt
DES-3528:admin#
DES-3528:admin# config firmware image_id 1 boot_up
DES-3528:admin#
To download a configuration file:
Command: download cfg_fromTFTP 10.48.74.121 c:\cfg\setting.txt
Connecting to server................... Done.
Download configuration................. Done.
DES-3528:admin# DES-3528:admin# #------------------------------------------------------------------­DES-3528:admin# # DES-3528 Configuration DES-3528:admin# # DES-3528:admin# # Firmware: Build 2.60.B010 DES-3528:admin# # Copyright(C) 2009 D-Link Corporation. All rights reserved. DES-3528:admin# #------------------------------------------------------------------­DES-3528:admin# DES-3528:admin# DES-3528:admin# # BASIC DES-3528:admin# DES-3528:admin# config serial_port baud_rate 115200 auto_logout 10_minutes Command: config serial_port baud_rate 115200 auto_logout 10_minutes
The download configuration command will initiate the loading of the various settings in the order listed in the configuration file. When the file has been successfully loaded the message “End of configuration file for DES-3528” appears followed by the command prompt.
DES-3528:admin# disable authen_policy Command: disable authen_policy
Success.
DES-3528:admin# DES-3528:admin# #------------------------------------------------------­DES-3528:admin# # End of configuration file for DES-3528 DES-3528:admin# #-------------------------------------------------------
config firmware
Purpose Syntax config firmware {unit <unit_id 1-8>} image_id <int 1-2> [delete | boot_up] Description
Parameters unit – Specifies the unit on the stacking system. If it is not specified, it refers to the master
Used to configure the firmware section as a boot up section, or to delete the firmware section
This command is used to configure the firmware section. The user may choose to remove the firmware section or use it as a boot up section.
unit. image_id – Specifies the working section. The Switch can hold two firmware versions for the
user to select from, which are specified by image ID.
delete – Entering this parameter will delete the specified firmware section. boot_up – Entering this parameter will specify the firmware image ID as a boot up section.
Restrictions
Example usage: To configure firmware image 1 as a boot up section:
Command: config firmware image_id 1 boot_up
Success.
Only Administrator-level users can issue this command.
58
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show firmware information
DES-3528:admin#
show firmware information
Purpose Syntax show firmware information Description Parameters Restrictions
Example usage: To display the current firmware information on the Switch:
Command: show firmware information
Image ID : 1 Version : 2.01.B042 Size : 4262112 Bytes Update Time: 0 days 00:00:00 From : Serial Port(Prom) User : Serial Port(Prom)
Image ID : 2(Boot up firmware) Version : 2.60.B010 Size : 4652268 Bytes Update Time: 2010/05/29 14:36:20 From : 192.168.69.200 User : Guest(WEB)
Used to display the firmware section information.
This command is used to display the firmware section information. None. None
show config
Purpose Syntax show config [[effective | modified | current_config | config_in_n vr am <config_id 1-2>]
Description
Used to display the current or saved version of the configuration settings of the Switch.
{[include | exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}} {[include | exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}} {[include | exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}}}}} | information]
This command is used to display all the configuration settings that are saved to NV RAM or display the configuration settings as they are currently configured. Use the keyboard to list settings one line at a time (Enter), one page at a time (Space) or view all (a).
The configuration settings are listed by category in the following order:
59
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
show config
1. Basic (serial port, Telnet and web management status)
2. storm control
3. loop detect
4. SIM
5. syslog
6. QoS
7. port mirroring
8. traffic segmentation
9. SSL
10. port
11. SFLOW
12. OAM
13. port lock
14. SNMPv3
15. management (SNMP traps RMON)
16. vlan
17. Q-in-Q
18. RSPAN
19. 802.1x
20. ACL
21. POE
22. FDB (forwarding data base)
23. address binding
24. net bios
25. dhcp server screening
26. sRED
27. ARP spoofing prevention
28. PPPoE
29. MAC address table notification
30. STP
31. BPDU protection
32. safeguard
33. SSH
34. SNTP
35. LACP
36. IP
37. WAC
38. CFM
39. JWAC
40. LLDP
41. IGMP snooping
42. MBA
43. MLD vlan
44. multicast
45. multicast authentication
46. igmp snooping
47. mld snooping
48. access authentication control (TACACS etc.)
49. ARP
50. route
51. dns relay
52. dhcp server
53. dhcp relay
Parameters effective - Show only commands which affects the behavior of the device. For example, if
STP is disabled, then for STP configuration, only “STP is disabled” is displayed. All other lower level setting regarding STP is not displayed. The lower level setting will only be displayed when the higher level setting is enabled.
Note: This parameter is only for the current configuration. modified - Show only the commands which are not from the ‘reset’ default setting. Note:This parameter is only for the current configuration.
current_config - Specifies the current configuration. unit - (Optional) Specifies which unit on the stacking system. If it is not specified, it refers to
the master unit.
<unitid 1-2> - Enter the unit ID here. This value must be between 1 and 2. config_id - (Optional) Specifies the configuration file ID. <filter_string 80> - (Optional) A filter string is enclosed by symbol ". Thus, the filter string
itself cannot contain the “character. The filter string is case sensitive. This value can be up to 80 characters long.
include - Includes lines that contain the specified filter string. exclude - Excludes lines that contain the specified filter string begin - The first line that contains the specified filter string will be the first line of the output.
Restrictions
Example usage: To view the current configuration settings:
Only Administrator-level users can issue this command.
60
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show config current_config
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
Command: show config current_config
#-------------------------------------------------------------------------------
# DES-3528 Fast Ethernet Switch # Configuration # # Firmware: Build 2.60.B010 # Copyright(C) 2010 D-Link Corporation. All rights reserved. #-------------------------------------------------------------------------------
# STACK
config stacking force_master_role state disable
# BASIC
# ACCOUNT LIST # ACCOUNT END # PASSWORD ENCRYPTION disable password encryption
upload
Purpose Syntax upload [cfg_toTFTP [<ipaddr> | <ipv6addr>] dest_file <path_filename 64> {<config_id
Description
Parameters
Used to upload the current Switch settings or the Switch history log to a TFTP.
1-2>} {[include | exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}} {[include | exclude | begin] < filter_string 80> {<filter_string 80> {<filter_string 80>}} {[include | exclude | begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}}}}} | log_toTFTP [<ipaddr>| <ipv6addr>] dest_file <path_filename 64> | attack_log_toTFTP [<ipaddr> | <ipv6addr>] dest_file <path_filename 64>]
This command is used to upload either the Switch’s current settings or the Switch’s history log to a TFTP server.
cfg_toTFTP Specifies that the Switch’s current settings will be uploaded to the TFTP server.
<ipaddr> − The IP address of the TFTP server. The TFTP server must be on the same IP subnet as the Switch.
<ipv6addr> - Enter the IPv6 address used here. dest_file - The pathname specifies the DOS pathname on the TFTP server. It can be a
relative pathname or an absolute pathname. <path_filename 64> - Enter the destination file pathname here. This name can be up to 64
characters long. config_id - Specifies configuration ID in the system; If it is not specified, it refers to the boot
up configuration ID. unit - Specifies wh ic h Switch unit’s attac k log will be uploaded, if it is not specified, it refers to
the master unit. <path_filename 64> Specifies the location of the Switch configuration file on the TFTP
server. This file will be replaced by the uploaded file from the Switch.
log_toTFTP Specifies that the Switch history log will be uploaded to the TFTP server. attack_log_toTFTP – Specifies that the Switch attack log will be uploaded to the TFTP
server. <filter_string 80> - (Optional) A filter string is enclosed by symbol ". Thus, the filter string
itself cannot contain the “character. The filter string is case sensitive. This value can be up to 80 characters long.
include - Includes lines that contain the specified filter string.
61
upload
exclude - Excludes lines that contain the specified filter string
DES-3528:admin# upload cfg_toTFTP 10.48.74.121 c:\cfg\log.txt
DES-3528:admin#
DES-3528:admin# config configuration 2 boot_up
DES-3528:4#
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
begin - The first line that contains the specified filter string will be the first line of the output.
Restrictions
Example usage: To upload a configuration file:
Command: upload cfg_toTFTP 10.48.74.121 c:\cfg\log.txt
Connecting to server................... Done.
Upload configuration...................Done.
The TFTP server must be on the same IP subnet as the Switch. Only Administrator and Operator-level users can issue this command.
config configuration
Purpose Syntax config configuration <config_id 1-2> [boot_up | delete | active] Description
Parameters
Used to delete the specific firmware or configure the specific firmware as boot up image.
This command is used to delete the specific firmware or configure the specific firmware as boot up image.
<config_id 1-2> Specifies the serial number of the indicated configuration. boot_up Specifies the config is boot_up config. delete Delete the configuration. active Active specifies the configuration .
Restrictions
Example usage:
To configure the specific configuration as boot up image:
Command: config configuration 2 boot_up
Success.
You must have Administrator-level privileges.
62
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide

NETWORK MONITORING COMMANDS

The network monitoring commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
show packet ports <portlist> show error ports <portlist> show utilization [ports | cpu] show utilization dram {unit <unit_id>} show utilization flash {unit <unit_id>} clear counters {ports <portlist>} clear log show log {[index <value_list> |severit y {m odule <module_list>} {emergency | alert | critical |
error | warning | notice | informational | debug | <level_ list 0-7>} | module
<module_list>]} enable syslog disable syslog show syslog create syslog host <index 1-4> ipaddress [<ipaddr> | <ipv6addr> ] {sev er it y [emer gency | alert | critical |
error | warning | notice | informational | debug | <level 0-7>] | facility [local0 | local1 |
local2 | local3 | local4 | local5 | local6 | local7] | udp_port <udp_p ort_number> |
state [enable | disable]} config syslog host [<index> | all] {se ver it y [emer genc y | alert | critica l | error | warning | notice |
informational | debug | <level 0-7>] | facility [local0 | local1 | loca l2 | local3 | local4 |
local5 | local6 | local7] | udp_port <udp_port_n umber> | ipaddress [<ipaddr>
|<ipv6addr>] | state [enable | disable]} delete syslog host [<index 1-4> | all] show syslog host {<index 1-4>} config log_save_timing [time_interval <min 1-65535> | on_demand | log_trigger] show log_save_timing show attack_log {unit <unit_id 1-8>} {index <value_list>} clear attack_log {[unit <unit_id 1-8> | all]} config system_severity [trap | log | all] [em er genc y | alert | critical | error | warni ng | notice | infor mation |
debug | <level 0-7>] show system_severity
Each command is listed, in detail, in the following sections.
show packet ports
Purpose Syntax show packet ports <portlist> Description
Parameters Restrictions
Used to display statistics about the packets sent and received by the Switch.
This command is used to display statistics about packets sent and received by ports specified in the <portlist>.
<portlist> Specifies a port or range of ports to be displayed. None.
63
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show packet port 2
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
DES-3528:admin# show error ports 3
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
Example usage:
To display the packets analysis for port 2
Command: show packet port 2
Port Number : 2 =============================================================== Frame Size/Type Frame Counts Frames/sec
--------------- ------------ ----------­ 64 0 0 65-127 0 0 128-255 0 0 256-511 0 0 512-1023 0 0 1024-1518 0 0 Unicast RX 0 0 Multicast RX 0 0 Broadcast RX 0 0
Frame Type Total Total/sec
--------------- ------------ ----------­ RX Bytes 0 0 RX Frames 0 0 TX Bytes 0 0 TX Frames 0 0
show error ports
Purpose Syntax show error ports <portlist> Description
Parameters Restrictions
Example usage:
To display the errors of the port 3:
Command: show error ports 3
Port Number : 3 RX Frames TX Frames
--------- --------­ CRC Error 0 Excessive Deferral 0 Undersize 0 CRC Error 0 Oversize 0 Late Collision 0 Fragment 0 Excessive Collision 0 Jabber 0 Single Collision 0 Drop Pkts 0 Collision 0 Symbol Error 0
Used to display the error statistics for a range of ports.
This command will display all of the packet error statistics collected and logged by the Switch for a given port list.
<portlist> S pec ifies a port or range of ports to be displayed. None.
64
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show utilization ports
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
DES-3528:admin# show utilization cpu
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
show utilization
Purpose Syntax show utilization [ports | cpu] Description Parameters cpu - Specifies to display information regarding the CPU.
Restrictions
Example usage:
To display the port utilization statistics:
Command: show utilization ports
Port TX/sec RX/sec Util Port TX/sec RX/sec Util
----- ------- ------ ---- ----- ------ ------ ---­1 0 0 0 21 0 0 0 2 0 0 0 22 0 0 0 3 0 0 0 23 0 0 0 4 0 0 0 24 0 0 0 5 0 0 0 25 0 0 0 6 0 0 0 26 0 0 0 7 0 0 0 27 0 0 0 8 0 0 0 28 0 0 0 9 19 0 1 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 1 19 1 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0
Used to display real-time port and CPU utilization statistics.
This command will display the real-time port and CPU utilization statistics for the Switch.
ports - Specifies a range of ports to be displayed. None.
To display the current CPU utilization:
Command: show utilization cpu
CPU Utilization
------------------------------------------------------------------------------­Five seconds - 6 % One minute - 7 % Five minutes - 7 %
show utilization dram
Purpose Syntax show utilization dram Description Parameters Restrictions
This command is used to display the DRAM utilization.
This command is used to display the DRAM utilization. None. None.
65
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show utilization dram
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
DES-3528:admin# show utilization flash
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
DES-3528:admin# clear counters ports 2-9
DES-3528:admin#
Example usage: To display the DRAM utilization:
Command: show utilization dram
Unit 1 DRAM utilization : Total DRAM : 131072 KB Used DRAM : 124596 KB Utilization : 95 %
show utilization flash
Purpose Syntax show utilization flash Description Parameters Restrictions
Example usage: To display the flash utilization:
Command: show utilization flash
Unit 1 Flash Memory Utilization : Total Flash : 16384 KB Used Flash : 7662 KB Utilization : 46 %
This command is used to display the flash utilization.
This command is used to display the flash utilization. None. None.
clear counters
Purpose Syntax clear counters {ports <por tlist>} Description Parameters Restrictions
Example usage:
Command: clear counters ports 2-9
Success.
To clear the counters:
Used to clear the Switch’s statistics counters.
This command will clear the counters used by the Switch to compile statistics. <portlist> − Specifies a port or range of ports to be cleared. Only Administrator and Operator-level users can issue this command.
66
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# clear log
DES-3528:admin#
DES-3528:admin# show log index 1-5
5 00000 days 00:01:09 Successful login through Console (Username: Anonymous)
2 00000 days 00:00:01 Spanning Tree Protocol is disabled
clear log
Purpose Syntax clear log Description Parameters Restrictions
Example usage:
To clear the log information:
Command: clear log
Success.
Used to clear the Switch’s history log.
This command will clear the Switch’s history log. None. Only Administrator and Operator-level users can issue this command.
show log
Purpose Syntax show log {[index <value_list> | severity {module <module_list>} {emergency | alert |
Used to display the Switch’s history log.
critical | error | warning | notice | informational | debug | <level_list 0-7>} | module
<module_list>]} Description Parameters
Restrictions
Example usage:
To display the Switch’s history log:
This command will display the contents of the Switch’s history log.
index <value_list>
show log index 1-5 will display the history log from 1 to 5.
severity - Specifies the severity level indicator.
module - Specifies the module list used.
<module_list> - Enter the module list used here.
emergency - Specifies that the severity will be set to emergency.
alert - Specifies that the severity will be set to alert.
critical - Specifies that the severity will be set to critical.
error - Specifies that the severity will be set to error.
warning - Specifies that the severity will be set to warning.
notice - Specifies that the severity will be set to notice.
informational - Specifies that the severity will be set to informational.
debug - Specifies that the severity will be set to debug.
<level_list 0-7> - Enter the level list value here. This value must be between 0 and 7.
module - Specifies the module list used.
<module_list> - Enter the module list used here.
None.
This parameter specifies the range of log index to show. For example,
Command: show log index 1-5
Index Time Log Text
----- ------------------- ----------------------------------
4 00000 days 00:00:14 System started up 3 00000 days 00:00:06 Port 1 link up, 100Mbps FULL duplex
67
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
1 00000 days 00:06:31 Configuration saved to flash (Username: Anonymous)
DES-3528:admin#
DES-3528:admin# enable syslog
DES-3528:admin#
DES-3528:admin# disable syslog
DES-3528:admin#
enable syslog
NOTE: For detailed information regarding Log entries that will appear in this window,
please refer to Appendix C at the back of the xStack DES-3528 Layer 2 Stackable
Fast Ethernet Managed Swit ch User Manu al.
Purpose Syntax enable syslog Description Parameters Restrictions
Example usage:
To the Syslog function on the Switch:
Command: enable syslog
Success.
Used to enable the syslog sending messages.
This command enables the system log to be sent to a remote host.
None.
Only Administrator and Operator-level users can issue this command.
disable syslog
Purpose Syntax disable syslog Description
Used to disable the syslog sending messages.
This command disables the system log to be sent to a remote host.
Parameters Restrictions
Example usage:
To disable the syslog function on the Switch:
Command: disable syslog
Success.
None.
Only Administrator and Operator-level users can issue this command.
show syslog
Purpose Syntax show syslog Description Parameters Restrictions
Example usage:
Used to display the syslog protocol status as enabled or disabled.
This command displays the syslog status as enabled or disabled.
None.
None.
To display the current status of the syslog function:
68
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show syslog
DES-3528:admin#
0 kernel messages
11 FTP daemon
12 NTP subsystem
Command: show syslog
Syslog Global State: Enabled
create syslog host
Purpose Syntax create syslog host <index 1-4> ipaddress [<ipaddr> | <ipv6addr>] {severity
Description Parameters
Used to create a new syslog host.
[emergency | alert | critical | error | warning | notice | informational | debug | <level 0-
7>] | facility [local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7] | udp_port
<udp_port_number> | state [enable | disable]}
This command is used to create a new syslog host.
<index 1-4> Specifies that the command will be applied to an index of hosts. There are four
available indexes, numbered 1 through 4.
ipaddress <ipaddr> Specifies the IP address of the remote host where syslog messages
will be sent.
<ipv6addr> - Specifies the IPv6 address used.
udp_port <udp_port_num b er > - Specifies the UDP port number used.
state [enable | disable] – Specifies the state of the Syslog host.
severity Severity level indicator. These are described in the following:
Bold font indicates that the c orr espondi ng severity level is currently supported on the Switch.
Numerical Severity
Code
0 Emergency: system is unusable
1 Alert: action must be taken immediately
2 Critical: critical conditions
3 Error: error conditions
4 Warning: warning conditions
5 Notice: normal but significant condition
6 Informational: informational messages
7 Debug: debug-level messages
facility − Some of the operating system daemons and processes have been assigned Facility
values. Processes and daemons that have not been explic itly assigned a Facility may use
any of the "local use" facilities or they may use the "user-level" Facility. Those Facilities that
have been designated are shown in the follo wing: Bold font indicates the facility values the
Switch currently supports.
Numerical Facility Numerical Facility
Code Code
1 user-level messages
2 mail system
3 system daemons
4 security/authorization messages
5 messages generated internally by
syslog
6 line printer subsystem
7 network news subsystem
8 UUCP subsystem
9 clock daemon
10 security/authorization messages
13 log audit 14 log alert 15 clock daemon
16 local use 0 (local0) 17 local use 1 (local1) 18 local use 2 (local2) 19 local use 3 (local3) 20 local use 4 (local4) 21 local use 5 (local5) 22 local use 6 (local6) 23 local use 7 (local7)
69
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin#create syslog host 1 ipaddress 192.168.69.123 state enable
DES-3528:admin#
create syslog host
local0 − Specifies that local use 0 messages will be sent to the remote host. This
corresponds to number 16 from the list above.
local1 Specifies that local use 1 messages will be sent to the remote host. This
corresponds to number 17 from the list above.
local2 − Specifies that local use 2 messages will be sent to the remote host. This
corresponds to number 18 from the list above.
local3 Specifies that local use 3 messages will be sent to the remote host. This
corresponds to number 19 from the list above.
local4 Specifies that local use 4 messages will be sent to the remote host. This
corresponds to number 20 from the list above.
local5 Specifies that local use 5 messages will be sent to the remote host. This
corresponds to number 21 from the list above.
local6 Specifies that local use 6 messages will be sent to the remote host. This
corresponds to number 22 from the list above.
local7 Specifies that local use 7 messages will be sent to the remote host. This
corresponds to number 23 from the list above.
udp_port <udp_port_num b er> Specifies the UDP port number that the syslog protocol will
use to send messages to the remote host.
state [enable | disable] Allows the sending of syslog messages to the remote host,
specified above, to be enabled and disabled. Restrictions
Example usage:
To create a Syslog host:
Command: create syslog host 1 ipaddress 192.168.69.123 state enable
Success.
Only Administrator and Operator-level users can issue this command.
config syslog host
Purpose Syntax config syslog host [<index> | all] { severity [emergency | alert | critical | error | warning
Description
Parameters
Used to configure the syslog protocol to send system log data to a remote host.
| notice | informational | debug | <level 0-7>] | facility [local0 | local1 | local2 | local3 |
local4 | local5 | local6 | local7] | udp_port <udp_port_number> | ipaddress [<ipaddr> |
<ipv6addr>] | state [enable | disable]}
This command is used to configure the syslog protocol to send system log information to a
remote host.
<index 1-4> Specifies that the command will be applied to an index of hosts. There are four
available indexes, numbered 1 through 4.
All – Specifies that all the ports will be used in this configuration.
ipaddress <ipaddr> Specifies the IP address of the remote host where syslog messages
will be sent.
<ipv6addr> - Specifies the IPv6 address of the remote host where syslog messages will be
sent.
udp_port <udp_port_num b er> - Specifies the UDP port number used.
state [enable | disable] – Specifies the Syslog’s state.
severity Severity level indicator. These are described in the following:
Bold font indicates that the corresponding severity level is currently supported on the Switch.
Numerical Severity
Code
70
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
config syslog host
0 Emergency: system is unusable
1 Alert: action must be taken immediately
2 Critical: critical conditions
3 Error: error conditions
4 Warning: warning conditions
5 Notice: normal but significant condition
6 Informational: informational messages
7 Debug: debug-level messages
facility − Some of the operating system daemons and processes have been assigned Facility
values. Processes and daemons that have not been explicitly assigned a Facility may use
any of the "local use" facilities or they may use the "user-level" Facility. Those Facilities that
have been designated are shown in the follo wing: Bold font indicates the facility values the
Switch currently supports.
Numerical Facility Numerical Facility
Code Code
0 kernel messages
1 user-level messages
2 mail system
3 system daemons
4 security/authorization messages
5 messages generated internally by
syslog
6 line printer subsystem
7 network news subsystem
8 UUCP subsystem
9 clock daemon
10 security/authorization messages
11 FTP daemon
12 NTP subsystem 13 log audit 14 log alert 15 clock daemon
16 local use 0 (local0) 17 local use 1 (local1) 18 local use 2 (local2) 19 local use 3 (local3) 20 local use 4 (local4) 21 local use 5 (local5) 22 local use 6 (local6)
23 local use 7 (local7)
local0 − Specifies that local use 0 messages will be sent to the remote host. This
corresponds to number 16 from the list above.
local1 Specifies that local use 1 messages will be sent to the remote host. This
corresponds to number 17 from the list above.
local2 − Specifies that local use 2 messages will be sent to the remote host. This
corresponds to number 18 from the list above.
local3 − Specifies that local use 3 messages will be sent to the remote host. This
corresponds to number 19 from the list above.
local4 Specifies that local use 4 messages will be sent to the remote host. This
corresponds to number 20 from the list above.
local5 − Specifies that local use 5 messages will be sent to the remote host. This
corresponds to number 21 from the list above.
local6 Specifies that local use 6 messages will be sent to the remote host. This
corresponds to number 22 from the list above.
local7 Specifies that local use 7 messages will be sent to the remote host. This
corresponds to number 23 from the list above.
udp_port <udp_port_num b er> − Specifies the UDP port number that the syslog protocol will
use to send messages to the remote host.
state [enable | disable] Allows the sending of syslog messages to the remote host,
specified above, to be enabled and disabled. Restrictions
Example usage:
Only Administrator and Operator-level users can issue this command.
71
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin#config syslog host 1 severity alert
DES-3528:admin#
DES-3528:admin#config syslog host all severity critical
DES-3528:admin#
DES-3528:admin# delete syslog host 4
DES-3528:admin#
DES-3528:admin#show syslog host
Host 1
To configure a Syslog hos t:
Command: config syslog host 1 severity alert
Success.
Example usage:
To configure a syslog host for all hosts:
Command: config syslog host all severity critical
Success.
delete syslog host
Purpose Syntax delete syslog host [<index 1-4> | all] Description
Parameters
Restrictions
Example usage:
To delete a previously configured syslog host:
Command: delete syslog host 4
Success.
This command is used to delete the specific syslog host.
This command is used to remove a syslog host that has been previously configured from the
Switch.
<index 1-4> Specifies that the command will be applied to an index of hosts. There are four
available indexes, numbered 1 through 4.
all − Specifies that the command will be applied to all hosts.
Only Administrator and Operator-level users can issue this command.
show syslog host
Purpose
This command is used to show syslog the host information.
Syntax show syslog host {<index 1-4>} Description
Parameters
Restrictions
Example usage:
To show Syslog host information:
Command: show syslog host
Syslog Global State: Disabled
This command is used to display the syslog hosts that are currently configured on the
Switch.
<index 1-4> Specifies that the command will be applied to an index of hosts. There are four
available indexes, numbered 1 through 4.
None.
72
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
IP Address : 192.168.69.123
DES-3528:admin#
DES-3528:admin# config log_save_timing on_demand
DES-3528:admin#
DES-3528:admin# show log_save_timing
DES-3528:admin#
Severity : Critical(2) Facility : Local0 UDP Port : 514 Status : Enabled
Total Entries : 1
config log_save_timing
Purpose Syntax config log_save_timing [time_interval <min 1-65535> | on_demand | log_trigger] Description Parameters
Restrictions
Example usage:
To configure log_save_timing:
Command: config log_save_timing on_demand
Success.
Used to configure the method to save log.
This command is used to set the method to save log.
time_interval − save log to flash every xxx minutes. (if no log happen in this period, don't
save)
on_demand save log to flash whenever user type "save log" or "save all" This is also the
default.
log_trigger save log to flash whenever log arrives
Only Administrator and Operator-level users can issue this command.
show log_save_timing
Purpose
Used to show the timing method to save log.
Syntax show log_save_timing Description Parameters Restrictions
Example usage:
To show log_save_timing:
Command: show log_save_timing
Saving Log Method: On_demand
This command is used to show method to save log.
None.
None.
show attack_log
Purpose Syntax show attack_log {unit <unit_id 1-8>} {index <value_list>} Description Parameters unit – Specifies the unit of which the attack_log will be show. if it is not specified, it refers to
Used to show dangerous log messages.
This command is used to show content of dangerous log messages.
the master unit.
73
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show attack_log
DES-3528:admin#
DES-3528:admin# clear attack_log
DES-3528:admin#
show attack_log
value_list X-Y The show log command will display the dangerous log messages between
the log number of X and Y. For example, show dangerous log index 1-5 will displa y the
dangerous log messages from 1 to 5.
If no parameter specified, all dangerous log entries will be displayed.
Restrictions
None.
Example usage:
To show dangerous messages on master:
Command: show attack_log
Index Time Log Text
---- --------------- ----------------------­2 00000 days 01:25:43 Possible spoofing attack from 000d01002301 port 6:3 1 00000 days 01:25:43 Possible spoofing attack from 000d01002301 port 6:3
clear attack_log
Purpose Syntax clear attack_log {unit <unit_id 1-8>} Description Parameters unit - Specifies the unit of which the attack_log will be cleared. if it is not specified, it refers to
Restrictions
Example usage:
To clear the master’s dangerous log:
Used to clear the Switch’s dangerous log.
This command clears the Switch’s dangerous log.
the master unit.
Only Administrator and Operator-level users can issue this command.
Command: clear attack_log
Success.
config system_severity
Purposez Syntax config system_severity [trap | log | all] [emergency | alert | critical | error | warning |
Description
Parameters trap - Specifies the severity level control for traps.
Used to configure system_severity level of an alert required for log entry or trap message.
notice | information | debug | <level 0-7>]
This command is used to configure the system_severity levels on the Switch. When an event
occurs on the Switch, a message will be sent to the SNMP agent (trap), the Switch’s log or
both. Events occurring on the Switch are separated into eight main categories, these
categories are NOT precisely the same as the parameters of the same name (see below).
Severity Level
Emergency Alert 1 Action must be taken immediately. Critical 2 Critical conditions. Error 3 Error conditions. Warning 4 Warning conditions. Notice 5 Normal but significant condition. Information 6 Information messages. Debug 7 Debug-level messages.
Description
0 System is unusable.
74
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
log - Specifies the severity level control for the log.
DES-3528:admin# config system_severity trap critical
DES-3528:admin#
DES-3528:admin# show system_severity
DES-3528:admin#
config system_severity
all - Specifies the severity level control for traps and the log.
emergency - Sever ity level 0.
alert - Severity level 1.
critical - Severity level 2.
error - Severity level 3.
warning - Severity level 4.
notice - Severity level 5.
information - Severity level 6.
debug - Severity level 7.
<level 0-7> - Enter the severity level here. This value must be between 0 and 7.
Restrictions
Example usage:
To configure the system severity settings:
Command: config system_severity trap critical
Success.
Only Administrator and Operator-level users can issue this command.
show system_severity
Purpose Syntax show system_severity Description
Parameters Restrictions
Example usage:
To display the system severity settings for critical traps and log:
Used to display system_severity level of an alert required for log entry or trap message.
This command is used to display system_severity level of an alert required for log entry or
trap message.
None.
None.
Command: show system_severity
System Severity Trap : information System Severity Log : information
75
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide

MULTIPLE SPANNING TREE PROTOCOL (MSTP) COMMANDS

This Switch supports three versions of the Spanning Tree Protocol: 802.1D STP, 802.1w Rapid STP and 802.1s MSTP. Multiple Spann ing Tree Protoc ol, or MSTP, is a s tandard defined b y the IEEE comm unity that allows multiple VLANs to be m apped to a single spanning tr ee instance, which will pr ovide multiple pathways acros s the network. Therefore, these MST P configurations will balance the traf fic load, preventing wide scale disru ptions when a single spanning tree instanc e fails. This will al low for faster convergences of n ew topologies f or the failed insta nce. Frames designated for these VLANs will be processed quickly and completely throughout interconnected bridges utilizing either of the three spanning tree protocols (STP, RSTP or MSTP). This protocol will also tag BDPU packets so receiving devices can distinguish spanning tree instances, spanning tree regions and the VLANs associated with them. These instances will be clas s if ied by an instance_id. MSTP will connect multiple spa nning trees with a Com mon and Internal Spann ing Tree (CIST ). The CIST will automat ically determine each MSTP re gion, its m aximum possible extent and will appear as one virtual bridge that runs a single spanning tree. Consequentially, frames assigned to different VLANs will fol low different data ro utes within adm inistratively estab lished regions on t he network, contin uing to allow simple and full processing of frames, regardless of administrative errors in defining VLANs and their respective spanning trees. Each Switch utilizing the MSTP on a network will have a single MSTP configuration that will have the following three attributes:
a) A configuration name defined by an alphanum eric string of up to 32 characters (def ined in the config stp
mst_config_id command as name <string>). b) A configuration revision number (named here as a revision_level) and; c) A 4096 element table ( defined here as a vid_range) which will assoc iate each of the possible 409 6 VLANs
supported by the Switch for a given instance.
To utilize the MSTP function on the Switch, three steps need to be taken:
a) The Switch must be set to the MSTP setting (config stp version) b) The correct spanning tree priority for the MSTP instance must be entered (config stp priority). c) VLANs that will be shared must be added to the MSTP Instance ID (config stp instance_id).
The Multiple Spanning Tree Protocol commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
enable stp disable stp config stp version [mstp | rstp | stp]
config stp {maxage <value 6-40> | maxhops <value 6-4 0 > | hellotime <value 1-2> |
forwarddelay <value 4-30> | txholdc o unt < value 1-10> | fbpdu [enable | disable] | nni_bpdu_addr [dot1d | dot1ad]}(1)
config stp ports <portlist> { externalCost [ auto | <value 1-200000000> ] | hellotime <value 1-2> |
migrate [yes | no ] | edge [ true | false | auto ] | p2p [ true | false | auto ] | state [enable | disable ] | restricted_role [true | false] | restricted_tcn [true | false ] |
fbpdu [enable | disable ] }(1) create stp instance_id <value 1-15> config stp instance_id <value 1-15> [add_vlan | remove_vlan] <vidlist> delete stp instance_id <value 1-15> config stp priority <value 0-61440> instance_id <value 0-15>
config stp mst_config_id {revision_level <int 0-65535> | name <string>}(1) config stp mst_ports <portlist> instance_id <value 0-15> {internalCost [auto | <value 1-200000000>]
priority <value 0-240>}(1) show stp show stp ports {<portlist>} show stp instance {<value 0-15>}
76
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# enable stp
DES-3528:admin#
DES-3528:admin# disable stp
DES-3528:admin#
Command Parameters
config stp nni_bpdu_addr [dot1d | dot1ad] show stp mst_config_id
Each command is listed, in detail, in the following sections.
enable stp
Purpose Syntax enable stp Description Parameters Restrictions
Example usage:
To enable STP, globally, on the Switch:
Command: enable stp
Success.
Used to globally enable STP on the Switch.
This command allows the Spanning Tree Protocol to be globally enabled on the Switch. None. Only Administrator and Operator and Power-User-level users can issue this command.
disable stp
Purpose Syntax disable stp Description Parameters
Used to globally disable STP on the Switch.
This command allows the Spanning Tree Protocol to be globally disabled on the Switch. None.
Restrictions
Example usage:
To disable STP on the Switch:
Command: disable stp
Success.
Only Administrator and Operator and Power-User-level users can issue this command.
config stp version
Purpose Syntax config stp version [mstp | rstp | stp] Description
Parameters mstp – Selecting this parameter will set the Multiple Spanning Tree Protocol (MSTP) globally
Used to globally set the version of STP on the Switch.
This command allows the user to choose the version of the spanning tree to be implemented on the Switch.
on the Switch. rstp Selecting this parameter will set the Rapid Spanning Tree Protocol (RSTP) globally on
the Switch. stp − Selecting this parameter will set the Spanning Tree Protocol (STP) globally on the
Switch.
Restrictions
Only Administrator and Operator and Power-User-level users can issue this command.
77
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config stp version mstp
DES-3528:admin#
DES-3528:admin# config stp maxage 18 maxhops 15
DES-3528:admin#
Example usage: To set the Switch globally for the Multiple Spanning Tree Protocol (MSTP):
Command: config stp version mstp
Success
config stp
Purpose
Used to setup STP, RSTP and MSTP on the Switch.
Syntax config stp {maxage <value 6-40> | maxhops <value 6-40> | hellotime <value 1-2> |
forwarddelay <value 4-30> | txholdcount < value 1-10> | fbpdu [enable | disable] | nni_bpdu_addr [dot1d | dot1ad]}(1)
Description
This command is used to setup the Spanning Tree Protocol (STP) for the entire Switch. All commands here will be implemented for the STP version that is currently set on the Switch.
Parameters
maxage <value 6-40> This value may be set to ensure that old information does not endlessly circulate through redundant paths in the network, preventing the effective propagation of the new information. Set by the Root Bridge, this value will aid in det ermining that the Switch has spanning tree configuration values consistent with other devices on the bridged LAN. If the value ages out and a BPDU has still not been received from the Root Bridge, the Switch will start sending its own BPDU to all other Switches for permission to become the Root Bridge. If it turns out that your Switch has the lowest Bridge Identifier, it will become the Root Bridge. The user may choose a time between 6 and 40 seconds. The default value is 20.
maxhops <value 6-40> The number of hops between devices in a spanning tree region before the BPDU (bridge protocol data unit) packet sent by the Switch will be discarded. Each Switch on the hop count will reduce the hop count by one until the value reaches zero. The Switch will then discard the BDPU packet and the information held for the port will age out. The user may set a hop count from 6 to 40. The default is 20.
hellotime <value 1-2> The user may set the time interval between transmission of configuration messages by the root device, thus stating that the Switch is still functioning. A time between 1 and 2 seconds may be chosen, with a default setting of 2 seconds.
NOTE:
In MSTP, the spanning tree is configured by port and therefore, the hellotime must be set using the configure stp ports command for Switches utilizing the Multiple Spanni ng Tree Protocol.
forwarddelay <value 4-30> The maximum amount of time (in seconds) that the root device will wait before changing states. The user may choose a time between 4 and 30 seconds. The default is 15 seconds.
txholdcount <value 1-10> − The maximum number of BPDU Hello packets transmitted per interval. Default value is 6.
fbpdu [enable | disable] Allows the forwarding of STP BPDU packets from other network devices when STP is disabled on the Switch. The default is disabled.
Restrictions
Only Administrator and Operator and Power-User-level users can issue this command.
Example usage:
To configure STP with maxage 18 and maxhops of 15:
Command: config stp maxage 18 maxhops 15
Success.
78
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
config stp ports
Purpose Syntax config stp ports <portlist> { externalCost [ auto | <value 1-200000000> ] | hellotime
Description Parameters
Used to setup STP on the port level.
<value 1-2> | migrate [yes | no ] | edge [ true | false | auto ] | p2p [ true | false | auto ] | state [enable | disable ] | restricted_role [true | false] | restricted_tcn [true | false ] | fbpdu [enable | disable ] }(1)
This command is used to create and configure STP for a group of ports.
<portlist> Specifies a range of ports to be configured. externalCost This defines a metric that indicates the relative cost of forwarding packets to
the specified port list. Port cost can be set automatically or as a metric value. The default value is auto.
auto – Setting this parameter for the external cost will automatically set the speed for
forwarding packets to the specified port(s) in the list for optimal efficiency. Default port cost: 100Mbps port = 200000. Gigabit port = 20000.
<value 1-200000000> Define a value between 1 and 200000000 to determine the
external cost. The lower the number, the greater the probability the port will be chosen to forward packets.
hellotime <value 1-2> The time interval between transmission of configuration messages by the designated port, to other devices on the bridged LAN, thus stating that the Switch is still functioning. The user may choose a time between 1 and 2 seconds. The default is 2 seconds.
migrate [yes | no] – Setting this parameter as “yes” will set the ports to send out BDPU packets to other bridges, requesting information on their STP setting If the Switch is configured for RSTP, the port will be capable to migrate from 802.1D STP to 802.1w RSTP. If the Switch is configured for MSTP, the port is capable of migrating from 802.1D STP to
802.1s MSTP. RSTP and MSTP can coexist with standard STP, however the benefits of RSTP and MSTP are not realized on a port where an 802.1D network connects to an 802.1w or 802.1s enabled network. Migration should be set as yes on ports connected to network stations or segments that are capable of being upgraded to 802.1w RSTP or 802.1s MSTP on all or some portion of the segment.
edge [true | false | auto ] true designates the port as an edge port. Edge ports cannot create loops, however an edge port can lose edge port status if a topology change creates a potential for a loop. An edge port normally should not receive BPDU packets. If a BPDU packet is received it automatically loses edge port status. false indicates that the port does not have edge port status.
auto – Indicates that the port will be able to automatically enable the edge port status if this port links to an end station or a device that does not support the STP function. The default setting for this parameter is false.
restricted_role [true | false] – If true causes the Port not to be selected as Root Port for the CIST or any MSTI, even it has the best spanning tree priority vector. Such a Port will be selected as an Alternate Port after the Root Port has been selected. This parameter should be false by default. If set, it can cause lack of spanning tree connectivity. It is set by a network administrator to prevent bridges external to a core region of the network influencing the spanning tree active topology, possibly because those bridges are not under the full control of the administrator. The default setting for this parameter is false.
restricted_tcn [true | false] – If true causes the Port not to propagate received topology change notifications and topology changes to other Ports. This parameter should be false by default. If set it can cause temporary loss of connectivity after changes in a spanning trees active topology as a result of persistent incorr ec tly learned station location inform ation. It is set by a network administrator to prevent bridges external to a core region of the network, causing address flushing in that region, pos s ib ly beca u s e those bridges are not under the full control of the administrator or MAC_Operational for the attached LANs transitions frequently. The default setting for this parameter is false.
p2p [true | false | auto] true indicates a point-to-point (P2P) shared link. P2P ports are similar to edge ports however they are restricted in that a P2P port must operate in full­duplex. Like edge ports, P2P ports transition to a forwarding state rapidly thus benefiting from RSTP. A p2p value of false indicates that the port cannot have p2p status. Auto allows the port to have p2p status whenever possible and operate as if the p2p status were true. If
79
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
the port cannot maintain this status (for example if the port is forced to half-duplex operation)
DES-3528:admin# config stp ports 1-5 externalCost 19 hellotime 2 migrate yes state
DES-3528:admin#
DES-3528:admin# create stp instance_id 2
DES-3528:admin#
config stp ports
the p2p status changes to operate as if the p2p value were false. The default setting for this parameter is auto.
state [enable | disable] Allows STP to be enabled or disabled for the ports specified in the port list. The default is enable.
Restrictions
Only Administrator and Operator and Power-User-level users can issue this command
Example usage:
To configure STP with path cost 19, hellotime set to 2 seconds, migration enabled, and state enabled for ports 1-5 of module 1.
enable Command: config stp ports 1-5 externalCost 19 hellotime 2 migrate yes state enable
Success.
create stp instance_id
Purpose Syntax create stp instance_id <value 1-15> Description
Parameters
Used to create a STP instance ID for MSTP.
This command allows the user to create a STP instance ID for the Multiple Spanning Tree Protocol. There are 16 STP instances on the Switch (one internal CIST, unchangeable) and the user may create up to 15 instance IDs for the Switch.
<value 1-15> Enter a value between 1 and 15 to identify the Spanning Tree instance on the Switch.
Restrictions
Only Administrator and Operator and Power-User-level users can issue this command
Example usage: To create a spanning tree instance 2:
Command: create stp instance_id 2
Warning:There is no VLAN mapping to this instance_id! Success.
config stp instance_id
Purpose Syntax config stp instance_id <value 1-15> [add_vlan | remove_vlan] <vidlist>
Description
Parameters
Used to add or delete VID to/from an STP instance.
This command is used to map VIDs (VLAN IDs) to previously configured STP instances on the Switch by creating an instance_id. A STP instance may have multiple members with the same MSTP configuration. There is no limit to the number of STP regions in a network but each region only supports a maximum of 16 spanning tree instances (one unchangeable default entry). VIDs can belong to only one spanning tree instance at a time.
NOTE:
Switches in the same spanning tree region having the same STP
instance_id must be mapped identically, and have the same configuration revision_level number and the same name.
<value 1-15> Enter a number between 1 and 15 to define the instance_id. The Switch
80
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
supports 16 STP instances with one unchangeable default instance ID set as 0.
DES-3528:admin# config stp instance_id 2 add_vlan 10
DES-3528:admin#
DES-3528:admin# config stp instance_id 2 remove_vlan 10
DES-3528:admin#
DES-3528:admin# delete stp instance_id 2
DES-3528:admin#
config stp instance_id
add_vlan – Along with the vid_range <vidlist> parameter, this command will add VIDs to the previously configured STP instance_id.
remove_vlan Along with the vid_range <vidlist> parameter, this command will remove VIDs to the previously configured STP instance_id.
<vidlist> Specify the VID range from configured VLANs set on the Switch. Supported VIDs on the Switch range from ID number 1 to 4094.
Restrictions
Example usage:
To configure instance ID 2 to add VID 10:
Command : config stp instance_id 2 add_vlan 10
Success.
Example usage: To remove VID 10 from instance ID 2:
Command : config stp instance_id 2 remove_vlan 10
Success.
Only Administrator and Operator and Power-User-level users can issue this command
delete stp instance_i d
Purpose Syntax delete stp instance_id <value 1-15>
Used to delete a STP instance ID from the Switch.
Description
Parameters
Restrictions
Example usage: To delete STP instance ID 2 from the Switch.
Command: delete stp instance_id 2
Success.
This command allows the user to delete a previously configured STP instance ID from the Switch.
<value 1-15> Enter a value between 1 and 15 to identify the Spanning Tree instance on the Switch.
Only Administrator and Operator and Power-User-level users can issue this command
config stp priority
Purpose Syntax config stp priority <value 0-61440> instance_id <value 0-15> Description
Used to configure the bridge priority.
This command is used to update the STP instance configuration settings on the Switch. The MSTP will utilize the priority in selecting the root bridge, root port and designated port. Assigning higher priorities to STP regions will instruct the Switch to give precedence to the selected instance_id for forwarding packets. The lower the priority value set, the higher the priority.
81
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config stp priority 4096 instance_id 2
DES-3528:admin#
DES-3528:admin# config stp mst_config_id revision_level 10 name Trinity
DES-3528:admin#
config stp priority
Parameters
Restrictions
Example usage: To set the priority value for instance_id 2 as 4096.
Command : config stp priority 4096 instance_id 2
Success.
priority <value 0-61440> Select a value between 0 and 61440 to specify the priority for a specified instance ID for forwarding packets. The lower the value, the higher the priority. This value must be divisible by 4096.
instance_id <value 0-15> Enter the value corresponding to the previously configured instance ID of which the user wishes to set the priority value. An instance id of 0 denotes the default instance_id (CIST) internally set on the Switch.
Only Administrator and Operator and Power-User-level users can issue this command
config stp mst_config_id
Purpose Syntax config stp mst_config_ id {revision_level <int 0-65535> | name <string>}(1) Description
Used to update the MSTP configurat ion ident if ic atio n.
This command will uniquely identify the MSTP configuration currently configured on the Switch. Information entered here will be attached to BPDU packets as an identifier for the MSTP region to which it belongs. Switches having the s am e revision_level and name will be considered as part of the same MSTP region.
Parameters revision_level <int 0-65535>– Enter a number between 0 and 65535 to identify the MSTP
region. This value, along with the name will identify the MSTP region configured on the Switch. The default setting is 0.
name <string> Enter an alphanumeric string of up to 32 characters to uniquely identify the MSTP region on the Switch. This name, along with the revision_level value will ide nt ify the MSTP region configured on the Switch. If no name is entered, the default name will be the MAC address of the device.
Restrictions
Example usage: To configure the MSTP region of the Switch with revision_level 10 and the name “Trinity”:
Command : config stp mst_config_id revision_level 10 name Trinity
Success.
Only Administrator and Operator and Power-User-level users can issue this command
config stp mst_ports
Purpose Syntax config stp mst_ports <portlist> instance_id <value 0-15> { internalCost [auto | <value 1-
Used to update the port configuration for a MSTP instance.
200000000>] priority <value 0-240>}(1)
Description This command will update the port configuration f or a STP instance_id. If a loop occurs, the
MSTP function will use the port priorit y to se lect an int erface t o put into the for warding s tate. Set a higher priorit y value f or interf ac es to be sel ec ted f or forwardi ng f irs t. In ins ta nc es where the priority value is ident ical, the MST P function will im plement t he lowest MAC a ddress into the forwarding state and other interfaces will be blocked. Remember that lower priority values mean higher priorities for forwarding packets.
Parameters
<portlist> Specifies a port or range of ports to be configured.
82
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config stp mst_ports 1-5 instance_id 2 internalCost auto priority 16
DES-3528:admin#
DES-3528:admin# show stp
DES-3528:admin#
DES-3528:admin# show stp
config stp mst_ports
instance_id <value 0-15> Enter a numerical value between 0 and 15 to identify the instance_id previously configured on the Switch. An entry of 0 will denote the CIST (Common
and Internal Spanning Tree. internalCost – This parameter is set to represent the relative cost of forwarding packets to
specified ports when an interface is selected within a STP instance. The default setting is
auto. There are two options:
auto – Selecting this parameter for the internalCost will set quickest route automatically and
value 1-200000000 – Selecting this parameter with a value in the range of 1-200000000
priority <value 0-240> Enter a value between 0 and 240 to set the priority for the port
interface. A higher priority will designate the interface to forward packets first. A lower number denotes a higher priority. This value must be divisible by 16.
optimally for an interface. The default value is derived from the media speed of the interface.
will set the quickest route when a loop occurs. A lower internalCost represents a quicker transmission.
Restrictions
Example usage:
To designate ports 1 through 5, with instance id 2, to have an auto internalCost and a priority of 16:
Command : config stp mst_ports 1-5 instance_id 2 internalCost auto priority 16
Success.
Only Administrator and Operator and Power-User-level users can issue this command
show stp
Purpose Syntax show stp Description Parameters Restrictions
Example usage:
To display the status of STP on the Switch:
Status 1: STP enabled with STP compatible version
Used to display the Switch’s current STP configuration.
This command displays the Switch’s current STP configuration. None. None.
Command: show stp
STP Bridge Global Settings
--------------------------- STP Status : Enabled STP Version : STP Compatible Max Age : 20 Hello Time : 2 Forward Delay : 15 Max Hops : 20 TX Hold Count : 6 Forwarding BPDU : Disabled NNI BPDU Address : dot1ad
Status 2 : STP enabled for RSTP
Command: show stp
83
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
STP Bridge Global Settings
DES-3528:admin#
DES-3528:admin# show stp
DES-3528:admin#
DES-3528:admin# show stp ports
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
--------------------------­STP Status : Enabled STP Version : RSTP Max Age : 20 Hello Time : 2 Forward Delay : 15 Max Hops : 20 TX Hold Count : 6 Forwarding BPDU : Disabled NNI BPDU Address : dot1ad
Status 3 : STP enabled for MSTP
Command: show stp
STP Bridge Global Settings
--------------------------- STP Status : Enabled STP Version : MSTP Max Age : 20 Forward Delay : 15 Max Hops : 20 TX Hold Count : 6 Forwarding BPDU : Disabled NNI BPDU Address : dot1ad
show stp ports
Purpose Syntax show stp ports <portlist> Description
Parameters
Restrictions
Example usage: To show STP ports information for port 1 (STP enabled on Switch):
Command: show stp ports
MSTP Port Information
---------------------­ Port Index : 1 , Hello Time: 2 /2 , Port STP : Enabled , External PathCost : Auto/200000 , Edge Port : False/No , P2P : Auto /Yes Port RestrictedRole : False, Port RestrictedTCN : False Port Forward BPDU : Disabled MSTI Designated Bridge Internal PathCost Prio Status Role
----- ------------------ ----------------- ---- ---------- ---------­ 0 N/A 200000 128 Disabled Disabled
Used to display the Switch’s current STP ports configuration.
This command displays the STP ports settings for a specified port or group of ports (one port at a time).
<portlist> Specifies a port or range of ports to be viewed. Information for a single port is displayed. If no ports are specified the STP information for port 1 will be displayed. Users may use the Space bar, p and n keys to view information for the remaining ports.
None.
84
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show stp instance 0
DES-3528:admin# config stp nni_bpdu_addr dot1ad
DES-3528:admin#
show stp instance
Purpose Syntax show stp instance <value 0-15> Description
Parameters
Restrictions
Example usage:
To display the STP instance configuration for instance 0 (the internal CIST) on the Switch:
Command: show stp instance 0
STP Instance Settings
--------------------------­ Instance Type : CIST Instance Status : Enabled Instance Priority : 32768(bridge priority : 32768, sys ID ext : 0 )
STP Instance Operational Status
-------------------------------­ Designated Root Bridge : 32766/00-90-27-39-78-E2 External Root Cost : 200012 Regional Root Bridge : 32768/00-53-13-1A-33-24 Internal Root Cost : 0 Designated Bridge : 32768/00-50-BA-71-20-D6 Root Port : 1 Max Age : 20 Forward Delay : 15 Last Topology Change : 856 Topology Changes Count : 2987
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
Used to display the Switch’s STP instance configuration
This command displays the Switch’s current STP Instance Settings and the STP Instance Operational Status.
<value 0-15> Enter a value defining the previously configured instance_id on the Switch. An entry of 0 will display the STP configuration for the CIST internally set on the Switch.
None.
config stp nni_bpdu_addr
Purpose Syntax config stp nni_bpdu_addr [dot1d | dot1ad] Description
Parameters Restrictions
Example usage:
To configure the STP BPDU destination address as dot1 ad on the Switch:
Command: config stp nni_bpdu_addr dot1ad
Success.
Used to configure BPDU destination address as dot1d or dot1ad.
This command is to configure the NNI-port-sent BPDU destination address to 802.1ad address (0180c200000D) or 802.1d address (0180c2000021). When the Q-in-Q is enabled., NNI-port-sent BPDU destination address will set to dot1ad. The user can configure the NNI port send BPDU destination address to dot1d. The default is dot1d.
None. Only Administrator and Operator and Power-User-level users can issue this command
85
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin#show stp mst_config_id
DES-3528:admin#
show stp mst_config_id
Purpose Syntax show stp mst_config_id Description Parameters Restrictions
Example usage:
To show the MSTP configuration identification currently set on the Switch:
Command: show stp mst_config_id
Current MST Configuration Identification
----------------------------------------
Configuration Name : 00:22:B0:10:8A:00 Revision Level :0 MSTI ID VID List
------- ------------------------------------------------------------­ CIST 1-4094
Used to display the MSTP configuration identification.
This command displays the Switch’s current MSTP configuration identification. None. None.
86
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# create fdb default 00-00-00-00-01-02 port 5
DES-3528:admin#

FORWARDING DATABASE COMMANDS

The layer 2 forwarding database commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
create fdb <vlan_name 32> <macaddr> [port <port> | drop] create fdb vlanid <vidlist> <macaddr> [port <port> | drop] create multicast_fdb <vlan_name 32> <macaddr> config multicast_fdb <vlan_name 32> <macaddr> [add | delete] <portlist> config fdb aging_time <sec 10-1000000> delete fdb <vlan_name 32> <macaddr> clear fdb [vlan <vlan_name 32> | port <port> | all] show multicast_fdb {[vlan <vlan_name 32> | vlanid <vidlis t>] | mac _address <macaddr>} show fdb {[port <port > | vlan <vlan _n ame 32> |vlanid <vidlist> | mac_address <m ac addr> | stat ic |
aging_time | security]}
config multicast
vlan_filtering_mode
show multicast
vlan_filtering_mode
Each command is listed, in detail, in the following sections.
[vlanid <vidlist> | vlan <vlan_name 32> | all ] [forward_all_groups |
forward_unregistered_groups | filter_unregistered_groups]
{[vlanid <vidlist> | vlan <vlan_name 32>]}
create fdb
Purpose Syntax create fdb <vlan_name 32> <macaddr> [port <port> | drop] Description
Parameters
Restrictions
Example usage:
Used to create a static entry to the unicast MAC address forwarding table (database).
This command will make an entry into the Switch’s unicast MAC address forwarding database.
<vlan_name 32> The name of the VLAN on which the MAC address resides. <macaddr> The MAC address that will be added to the forwarding table. port <port> The port number corresponding to the MAC destination address. The Switch
will always forward traffic to the specified device through this port. drop - Specifies that all the ports specified will drop the packet of the previously configured
MAC Only Administrator and Operator and Power-User-level users can issue this command
To create a unicast MAC FDB entry:
Command: create fdb default 00-00-00-00-01-02 port 5
Success.
create fdb vlanid
Purpose Syntax create fdb vlanid <vidli st> <macaddr> [port <port> | drop]
Used to create a static entry to the unicast MAC address forwarding table (database).
87
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# create fdb default 00-00-00-33-01-02 drop
DES-3528:admin#
DES-3528:admin# create multicast_fdb default 01-00-00-00-00-01
DES-3528:admin#
create fdb vlanid
Description
Parameters
Restrictions
Example usage:
To filter an unicast MAC:
Command: create fdb default 00-00-00-33-01-02 drop
Success.
This command will make an entry into the Switch’s unicast MAC address forwarding database.
<vlanid_list> Specifies a range of VLANs to be configured. <macaddr> − The MAC address that will be added to the forwarding table. port <port> The port number corresponding to the MAC destination address. The Switch
will always forward traffic to the specified device through this port. drop - Specifies that all the ports specified will drop the packet of the previously configured
MAC Only Administrator and Operator and Power-User-level users can issue this command
create multicast_fdb
Purpose
Used to create a static entry to the multicast MAC address forwarding table (database)
Syntax create multicast_fdb <vlan_name 32> <macaddr> Description
Parameters
Restrictions
Example usage:
To create multicast MAC forwarding:
Command: create multicast_fdb default 01-00-00-00-00-01
Success.
This command will make an entry into the Switch’s multicast MAC address forwarding database.
<vlan_name 32> The name of the VLAN on which the MAC address resides. <macaddr> The MAC address that will be added to the forwarding table.
Only Administrator and Operator and Power-User-level users can issue this command
config multicast_fdb
Purpose Syntax config multicast_fdb <vlan_name 32> <macaddr> [add | delete] <portlist> Description
Used to configure the Switch’s multicast MAC address forwarding database.
This command configures the multicast MAC address forwarding table.
Parameters
Restrictions
Example usage:
<vlan_name 32> The name of the VLAN on which the MAC address resides. <macaddr> The MAC address that will be added to the multicast forwarding table. [add | delete] add will add ports to the forwarding table. delete will remove ports from the
multicast forwarding table. <portlist> − Specifies a port or range of ports to be configured.
Only Administrator and Operator and Power-User-level users can issue this command
88
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config multicast_fdb default 01-00-00-00-00-01 add 1-5
DES-3528:admin#
DES-3528:admin# config fdb aging_time 300
DES-3528:admin#
DES-3528:admin# delete fdb default 00-00-00-00-01-02
DES-3528:admin#
To add multicast MAC forwarding:
Command: config multicast_fdb default 01-00-00-00-00-01 add 1-5
Success.
config fdb aging_time
Purpose Syntax config fdb aging_time <sec 10-1000000> Description
Parameters
Restrictions
Example usage:
To set the FDB aging time:
Command: config fdb aging_time 300
Success.
Used to set the aging time of the forwarding database.
The aging time affects the learning process of the Switch. Dynamic forwarding table entries, which are made up of the source MAC addresses and their associated port numbers, are deleted from the table if they are not accessed within the aging time. The aging time can be from 10 to 1000000 seconds with a default value of 300 seconds. A very long aging time can result in dynamic forwarding table entries that are out-of-date or no longer exist. This may cause incorrect packet forwarding decisions by the Switch. If the aging time is too short however, many entries may be aged out too soon. This will result in a high percentage of received packets whose source addresses cannot be found in the forwarding table, in which case the Switch will broadcast the packet to all ports, negating many of the benefits of having a Switch.
<sec 10-1000000> The aging time for the MAC address forwarding database value. The value in seconds may be between 10 and 1000000 seconds.
Only Administrator and Operator and Power-User-level users can issue this command
delete fdb
Purpose Syntax delete fdb <vlan_name 32> <macaddr> Description
Parameters
Restrictions
Example usage:
To delete a permanent FDB entry:
Command: delete fdb default 00-00-00-00-01-02
Success.
Used to delete an entry to the Switch’s forwarding database.
This command is used to delete a previous entry to the Switch’s MAC address forwarding database.
<vlan_name 32> The name of the VLAN on which the MAC address resides. <macaddr> The MAC address that have been added to the forwarding table.
Only Administrator and Operator and Power-User-level users can issue this command
89
DES-3528:admin# clear fdb all
DES-3528:admin#
DES-3528:admin# show multicast_fdb vlan default
DES-3528:admin#
clear fdb
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
Purpose Syntax clear fdb [vlan <vlan_name 32> | port <port> | all] Description
Parameters
Restrictions
Example usage:
To clear all FDB dynamic entries:
Command: clear fdb all
Success.
Used to clear the Switch’s forwarding database of all dynamically learned MAC addresses.
This command is used to clear dynamically learned entries to the Switch’s forwarding database.
<vlan_name 32> The name of the VLAN on which the MAC address resides. port <port> The port number corresponding to the MAC destination address. all − Clears all dynamic entries to the Switch’s forwarding database.
Only Administrator and Operator and Power-User-level users can issue this command
show multicast_fdb
Purpose
Used to display the contents of the Switch’s multicast forwarding database.
Syntax show multicast_fdb {[vlan <vlan_name 32> | vlanid <vidlist>] | mac_address
<macaddr>}
Description
Parameters
Restrictions
Example usage:
To display multicast MAC address table:
Command: show multicast_fdb vlan default
VLAN Name : default MAC Address : 01-00-5E-00-00-00 Egress Ports : 1-5 Mode : Static
Total Entries : 1
This command is used to display the current contents of the Switch’s multicast MAC address forwarding database.
<vlan_name 32> The name of the VLAN on which the MAC address resides. <vidlist> - Enter the VLAN ID used here. <macaddr> The MAC address that is present in the forwarding database table.
None.
show fdb
Purpose Syntax show fdb {[port <port> | vlan <vlan_name 32> |vlanid <vidlist> | mac_address
Description
Used to display the current unicast MAC address forwarding database.
<macaddr> | static | aging_time | security]}
This command will display the current contents of the Switch’s forwarding database.
90
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# show fdb
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
show fdb
Parameters
Restrictions
Example usage:
To display unicast MAC address table:
Command: show fdb
Unicast MAC Address Aging Time = 300
VID VLAN Name MAC Address Port Type
---- ---------- --------------------- ----- --------- 1 default 00-00-5E-00-01-5F 15 Dynamic 1 default 00-00-81-00-00-01 15 Dynamic 1 default 00-00-81-9A-F2-F4 15 Dynamic 1 default 00-00-E2-2F-44-EC 15 Dynamic 1 default 00-01-23-55-1A-28 15 Dynamic 1 default 00-01-6C-CE-62-E0 15 Dynamic 1 default 00-02-A5-FD-66-97 15 Dynamic 1 default 00-03-09-18-10-01 15 Dynamic 1 default 00-03-9D-73-32-F0 15 Dynamic 1 default 00-03-B3-00-09-E9 15 Dynamic 1 default 00-04-00-00-00-00 15 Dynamic 1 default 00-05-5D-04-D6-A4 15 Dynamic 1 default 00-05-5D-25-45-61 15 Dynamic 1 default 00-05-5D-6A-A5-2C 15 Dynamic 1 default 00-05-5D-9A-FE-6D 15 Dynamic 1 default 00-05-5D-DB-BA-7C 15 Dynamic 1 default 00-05-5D-ED-84-52 15 Dynamic 1 default 00-05-5D-ED-84-7B 15 Dynamic
port <port> The port number corresponding to the MAC destination address. <vlan_name 32> The name of the VLAN on which the MAC address resides. vlanid <vidlis t > - The list of VLANs by VLAN ID. <macaddr> − The MAC address that is present in the forwarding database table. static − Displays the static MAC address entries. aging_time − Displays the aging time for the MAC address forwarding database. security – Displays the security for the MAC address forwarding database.
None.
config multicast vlan_filtering_mode
Purpose Syntax config multicast vlan_fil tering_mode [vlanid <vidlist> | vlan <vlan_name 32> | all ]
Description Parameters
Restrictions
Example usage:
To configure the multicast packet filtering mode for vlans:
Used to configure the the multicast packet filtering mode for VLANs.
[forward_all_groups | forward_unregistered_groups | filter_unregistered_groups]
The command configures the multicast packet filtering mode for VLANs. vlanid_list Specifies a range of VLANs to be configured.
The filtering mode can be any of the following:
forward_all_groups - A ll m ulticast groups wil l be forw arded bas ed on VL AN. forward_unregistered_groups - The registered group will be forwarded based on the register
table.The unregister group will be forwarded based on VLAN. filter_unregistered_groups - The registered group will be forwarded based on the register
table.The unregister group will be filtered. Only Administrator and Operator and Power-User-level users can issue this command
91
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config multicast vlan_filtering_mode vlan 200-300
DES-3528:admin#
DES-3528:admin# show multicast vlan_filtering_mode
DES-3528:admin#
forward_all_groups Command: config multicast vlan_filtering_mode vlan 200-300 forward_all_groups
Success.
show multicast vlan_filtering_mode
Purpose Syntax show multicast vlan_fi ltering_mode {[vlanid <vidlist> | vlan <vlan_name 32>]} Description Parameters
Restrictions
Example usage:
To display multicast VLAN filtering mode for VLANs:
Command: show multicast vlan_filtering_mode
VLAN ID/VLAN Name Multicase Filter Mode
----------------------- ----------------------------­100 /Sales forward_all_groups 200 /PM forward_all_groups 600 /Customer filter unregistered groups
Total Entries : 3
Used to show the multicast packet filtering mode for VLANs.
The command displays the multicast packet filtering mode for VLAN. vlanid_list Specifies a range of vlans to be configured.
If no parameter specified , the deivce will show all multicast filtering settings in the device. None.
92
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
action – Used to configure the action taken when a storm control has been detected on the

TRAFFIC CONTROL COMMANDS

On a computer net work, packets such as Mul ticast packets and Broadc ast packets continuall y flood the network as normal procedure. At tim es, this traffic may increase do to a m alicious endstation on the network or a m alfunctioning device, such as a fault y net w ork card. Thus, Switch throughput problem s will arise and c onse quentl y affec t the over all performance of the Switch network. To help rectify this packet storm, the Switch will monitor and control the situation.
The packet storm is monitored to determine if too m any packets are flooding the network, based on the threshold leve l provided by the user. Onc e a packet storm has been detected, th e Switch will drop o verflow packets coming into the Switch until the storm has subsided. This method can be utilized by selecting the Drop option of the Action field in the window below.
The Switch will als o scan and monitor p ackets coming into th e Switch by monitoring the Switch’s chip c ounter. This method is only viable f or Broadcast and Multicas t storms because the ch ip only has counters f or these two types of packets. Once a storm has been detected (that is, once the packet threshold set below has been exceeded), the Switch will shutdown the port to all incoming traffic with the exception of STP BPDU packets, for a time period specified using the countdown field. If the p acket s torm discontinues b efore th e countd own tim er expires, the port will again allow all incoming traffic. If this field times out and the packet storm continues, the port will be placed in a Shutdown Forever m ode which will produce a warning message to be s ent to the Trap Receiver , if we have set th e trap field. Once in Shutdow n Forever m ode, the port will be rec overed autom aticall y, when the auto-recover time has expired. (If the value was s et to “0”, the port will not be auto recov ered), or the us er manual ly resets the port us ing the config ports enable command, mentioned previously in this manual.
The broadcast storm control commands in the Command Line Interface (CL I) are listed (along wit h the appropriate parameters) in the following table.
Command Parameters
config traffic control [<portlist> | all] {broadcast [enable | disable] | multicast [enable | disabl e] | unicast [ ena ble |
disable] | action [drop | shutdown] | threshold < va lue 0-255000> | countdown [<min 0> | <min 3-30> | disable] | time_interval <sec 5-600>}
config traffic control
log state
config traffic control
auto_recover_time show traffic control {[<portlist>]} config traffic trap [none | storm_occurred | storm_cleared | both]
Each command is listed, in detail, in the following sections.
[enable | disable]
[<min 0> | <min 1-65535>]
config traffic control
Purpose
Syntax config traffic contro l [<portlist> | all] {broadcast [enable | disable] | multicast [enable |
Description
Used to configure broadcast/multicast/unicast packet storm control. The software mechanism is provided to monitor the traffic rate in addition to the hardware storm control mechanism previously provided.
disable] | unicast [enable | disable] | action [drop | shutdown] | threshold <value 0­255000> | countdown [<min 0> | <min 3-30> | disable] | time_interval <sec 5-600>}
This command is used to configure broadcast/multicast/unicast storm control. By adding the new software traffic control mechanism, the user can now use both a hardware and software mechanism, the latter of which will now provide shutdown, recovery and trap notification functions for the Switch.
Parameters
<portlist> − Used to specify a group list of ports to be configured for traffic control, as defined below:
all − Specifies all portlists are to be configured for traffic control on the Switch. broadcast [enable | disable] Enables or disables broadcast storm control. multicast [enable | disable] Enables or disables multicast storm control. unicast [enable | disable] Enables or disables unicast traffic control.
93
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
Switch. The user has two options:
disable – Specifies that the port will enter shutdown forever at once.
DES-3528:admin# config traffic control 1-12 broadcast enable action shutdown threshold
DES-3528:admin#
config traffic control
threshold <value 0-255000> The upper threshold at which the specified traffic control is Switched on. The <value> is the number of broadcast/multicast/unicast packets, in packets per second (pps), received by the Switch that will trigger the storm traffic control measures. The default setting is 131072.
time_interval The Interval will set the time between Multicast and Broadcast packet counts sent from the Switch’s chip to the Traffic Control function. These packet counts are the determining factor in deciding when incoming packets exceed the Threshold value.
<sec 5-600> The Interval may be set between 5 and 600 seconds with the default setting of 5 seconds.
Restrictions
countdown − The countdown timer is set to determine the amount of time, in minutes, that the Switch will wait before shutting down the port that is experiencing a traffic storm. The Switch will shutdown the port only if the traffic level exceeds the previously configured threshold all the time during this countdown period. This parameter is only useful for ports configured as shutdown in the action field of this command and therefore will not operate for Hardware based Traffic Control implementations.
Only Administrator and Operator and Power-User-level users can issue this command.
drop Utilizes the hardware Traffic Control mechanism, which means the Switch’s hardware will determine the Packet Storm based on the Threshold value stated and drop packets until the issue is resolved.
shutdown Utilizes the Switch’s software Traffic Control mechanism to determine the Packet Storm occurring. Once detected, the port will deny all incoming traffic to the port except STP BPDU packets, which are essential in keeping the Spanning Tree operational on the Switch. If the countdown timer has expired and yet the Packet Storm continues, the port will be placed in Shutdown Forever mode. The port will be recovered automatically, when the auto-recover time has expired. (If the value was set to “0”, the port will not be auto recovered), or the user manually resets the port using the config ports enable command. Choosing this option obligates the user to configure the time_interval field as well , wh ic h w il l pro vi d e packet count samplings from the Switch’s chip to determine if a Packet Storm is occurring.
<min 0> - is the default setting for this field and 0 will denote that the port will never enter shutdown forever mode.
<min 3-30> – Select a time from 3 to 30 minutes that the Switch will wait before shutting down. Once this time expires and the port is still experiencing packet storms, the port will be placed in shutdown forever mode and the port will be recovered automaticall y, when aut o-recover time has expired, or be manually recovered using the config ports command mentioned previously in this manual.
Example usage:
To configure traffic control and enable broadcast storm control for ports 1-12:
1 countdown 10 time_interval 10 Command: config traffic control 1-12 broadcast enable action shutdown threshold 1 countdown 10 time_interval 10
Success.
config traffic control log state
Purpose Syntax config traffic contro l log state [enable | disable] Description
This command is used to configure the traffic control log state.
When the log state is enabled, traffic control states are logged when a storm occurs and when a storm is cleared. If the log state is disabled, traffic control events are not logged.
94
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
Note: The log state is only applicable for shutdown mode. Since shutdown mode only
DES-3528:admin# config traffic control log state enable
DES-3528:admin#
DES-3528:admin# config traffic control auto_recover_time 5
DES-3528:admin#
DES-3528:admin# show traffic control
config traffic control log state
support broadcast and multicast storm control, doesn’t support unicast storm control. The log only generate for broadcast and multicast storm control.
Parameters enable - Both occurred and cleared are logged.
disable - Neither occurred nor cleared is logged.
Restrictions
Example usage: To configure the traffic log state on the Switch:
Command: config traffic control log state enable
Success.
Only Administrator and Operator and Power-User-level users can issue this command.
config traffic control auto_recover_time
Purpose
Syntax config traffic contro l auto_recover_time [<min 0> | <min 1-65535>] Description
Parameters auto_recover_time - The time allowed for auto recovery from shutdown for a port. The default
This command is used to configure the traffic auto recover time that allowed for a port to recover from shutdown forever status.
This command is used to configure the traffic auto recover time that allowed for a port to recover from shutdown forever status.
value is 0, so no auto recovery is possible; the port remains in shutdown forever mode. This requires manual entry of the CLI command “config ports [ <portlist> | all ] state enable" to return the port to a forwarding state. The default value is 0, which means disable auto recover mode, shutdown forever.
<min 0> - Specifies that the auto recovery time will be disabled. <min 1-65535> - Enter the auto recovery time value here. This value must be between 1 and
65535.
Restrictions
Example usage: To configure the auto recover time to 5 minutes:
Command: config traffic control auto_recover_time 5
Success.
Only Administrator and Operator and Power-User-level users can issue this command.
show traffic contro l
Purpose Syntax show traffic control { <portlist> } Description Parameters
Restrictions
Example usage:
To display traffic control settings:
Used to display current traffic control settings.
This command displays the current storm traffic control configuration on the Switch. <portlist> Used to specify port or list of ports for which to display traffic control settings.
The beginning and end of the port list range are separated by a dash. None.
95
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
Command: show traffic control
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
DES-3528:admin# config traffic trap both
DES-3528:admin#
Traffic Control Trap : [None] Traffic Control Log : Enabled Traffic Control Auto Recover Time: 0 Minutes
Port Thres Broadcast Multicast Unicast Action Count Time Shutdown hold Storm Storm Storm down Interval Forever
---- ------ --------- --------- -------- -------- -------- -------- -------­1 131072 Disabled Disabled Disabled drop 0 5 2 131072 Disabled Disabled Disabled drop 0 5 3 131072 Disabled Disabled Disabled drop 0 5 4 131072 Disabled Disabled Disabled drop 0 5 5 131072 Disabled Disabled Disabled drop 0 5 6 131072 Disabled Disabled Disabled drop 0 5 7 131072 Disabled Disabled Disabled drop 0 5 8 131072 Disabled Disabled Disabled drop 0 5 9 131072 Disabled Disabled Disabled drop 0 5 10 131072 Disabled Disabled Disabled drop 0 5 11 131072 Disabled Disabled Disabled drop 0 5 12 131072 Disabled Disabled Disabled drop 0 5 13 131072 Disabled Disabled Disabled drop 0 5 14 131072 Disabled Disabled Disabled drop 0 5
config traffic trap
Purpose Syntax config traffic trap [none | storm_occurred | storm_cleared | both] Description
Parameters none – No notification will be generated or sent when a packet storm control is occurred or
Restrictions
Example usage: To configure notifications to be sent when a packet storm control has been detected and clear ed b y the
Switch.
Used to configure the trap settings for the packet storm control mechanism.
This command is used to configure how packet storm control trap messages will be used when a packet storm is detected by the Switch. This function can only be used for the software traffic storm control mechanism (when the action field in the config traffic storm_control command is set as shutdown).
cleared. storm _occurred – A notification will be generated and sent when a packet storm has been
detected by the Switch. storm_cleared A notification will be generated and sent when a packet storm has been
cleared by the Switch. both A notification will be generated and sent when a packet storm has been detected and
cleared by the Switch. Only Administrator and Operator and Power-User-level users can issue this command.
Command: config traffic trap both
Success.
96
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide

QOS COMMANDS

The Switch supports 802.1p priority queuing. The Switch has 8 priority queues, but it has 7 priority queues available . Q7 is reserved for stacking function. These priority queues are numbered from 6 (Class 6) — the highest priority queue — to 0 (Class 0) — the lowest priority queue. The eight priority tags specified in IEEE 802.1p (p0 to p7) are mapped to the Switch’s priority queues as follows:
Priority 0 is assigned to the Switch’s Q2 queue.
Priority 1 is assigned to the Switch’s Q0 queue.
Priority 2 is assigned to the Switch’s Q1 queue.
Priority 3 is assigned to the Switch’s Q3 queue.
Priority 4 is assigned to the Switch’s Q4 queue.
Priority 5 is assigned to the Switch’s Q5 queue.
Priority 6 is assigned to the Switch’s Q6 queue.
Priority 7 is assigned to the Switch’s Q6 queue.
Q7 is reserved for stacking function.
Priority scheduling is implemented by the priority queues stated above. The Switch will empty the seven hardware priority queues in order, beginning with the highest priority queue, 6, to the lowest priority queue, 0. Each hardware queue will transmit all of the packets in its buffer before permitting the next lower priority to transmit its packets. When the lowest hardware priority queue has finished transmitting all of its packets, the highest hardware priority queue will begin transmitting any packets it may have received.
The commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
config bandwidth_control [<portlist> | all] {rx_rate [no_limit | <value 64-1024000>] | tx_rate [no_limit
| <value 64-1024000>]}(1) show bandwidth_control {<portlist>} config per_queue bandwidth_control {ports [<portlist> | all]} <cos_id_list 0-6> {{min_rate [no_lim it | <value 64-
1024000>]} max_rate [no_limit | <value 64-1024000>]} show per_queue bandwidth_control {<portlist>} config scheduling {ports [<portlist> | all ]} <class_id 0-6> [strict | weight <value 1-127>] config scheduling_mechanism {ports [<portlist> | all ]} [strict | wrr] show scheduling {<portlist>} show scheduling_mechanism {<portlist>} config 802.1p user_priority {ports [<portlist> | all ]} <priority 0-7> <class_id 0-6> show 802.1p user_priority {<portlist>} config 802.1p default_priority [<portlist> | all] <priority 0-7> show 802.1p default_priority <portlist> enable hol_prevention disable hol_prevention show hol_prevention
Each command is listed, in detail, in the following sections.
config bandwidth_control
Purpose Syntax config bandwidth_control [<portlist> | all] {rx_rate [no_limit | <value 64-1024000>] |
Used to configure bandwidth control on a port by-port basis.
tx_rate [no_limit | <value 64-1024000>]}(1)
97
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin# config bandwidth_control 1-10 tx_rate 64
DES-3528:admin#
DES-3528:admin# show bandwidth_control 1-10
config bandwidth_control
Description Parameters
Restrictions
Example usage:
To configure bandwidth control:
Command: config bandwidth_control 1-10 tx_rate 64
Success.
This command is used to configure bandwidth on a port-by-port basis.
<portlist> Specifies a port or range of ports to be configured. rx_rate Specifies that one of the parameters below (no_limit or <value 64-1024000>) wil l
be applied to the rate at which the above specified ports will be allowed to receive packets
no_limit Specifies that there will be no limit on the rate of packets received by the
above specified ports.
<value 64-1024000> Specifies the packet limit, in Kbps, that the above ports will
be allowed to receive.
tx_rate − Specifies that one of the parameters below (no_limit or <value 64-1024000>) wil l be applied to the rate at which the above specified ports will be allowed to transmit packets.
no_limit Specifies that there will be no limit on the rate of packets transmitted by
the above specified ports.
<value 64-1024000> Specifies the packet limit, in Kbps, that the above ports will
be allowed to transmit.
Only Administrator and Operator and Power-User-level users can issue this command.
show bandwidth_control
Purpose Syntax show bandwidth_control {<portlist>} Description
Parameters Restrictions
Example usage: To display port bandwidth control table:
Command: show bandwidth_control 1-10
Bandwidth Control Table
Port RX Rate TX Rate Effective RX Effective TX (Kbit/sec) (Kbit/sec) (Kbit/sec) (Kbit/sec)
----- ---------- ---------- ---------------- ---------------­ 1 No Limit No Limit No Limit No Limit 2 No Limit No Limit No Limit No Limit 3 No Limit No Limit No Limit No Limit 4 No Limit No Limit No Limit No Limit 5 No Limit No Limit No Limit No Limit 6 No Limit No Limit No Limit No Limit 7 No Limit No Limit No Limit No Limit 8 No Limit No Limit No Limit No Limit 9 No Limit No Limit No Limit No Limit 10 No Limit No Limit No Limit No Limit
Used to display the bandwidth control table.
This command displays the current bandwidth control configuration on the Switch, on a port­by-port basis.
<portlist> Specifies a port or range of ports to be viewed. None.
98
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin#
DES-3528:admin# config per_queue bandwidth_control ports 1-10 1 min_rate 100 max_rate
DES-3528:admin#
config per_queue bandwidth_control
Purpose
Syntax config per_queue bandwidth_con trol {ports [<portlist> | all ]} <cos_id_list 0-6>
Description
Parameters
Used to configure per port or flow bandwidth control. For per flow bandwidth control, it can be based on the assigned CoS queue.
{min_rate [no_limit | <value 64-1024000>] max_rate [no_limit | <value 64-1024000>]}(1)
This command is used to set per port or flow bandwidth control. For per flow bandwidth control, it can be based on the assigned CoS queue.
Mini-rate specifies the minimal quaranteed bandwidth. Specify no limit for the mini-rate means no quaranteed bandwidth.
Max-rate speficies the max-rate limitatoin. When it is specified, packet transmitted from the queue will not exceed the specified max-rate limitation even though there is still available bandwidth.
The specification of mini-rate and max-rate are effective regardless whether the queue is operated in the strict mode or in the wrr mode.
<portlist> Specifies a port or range of ports to be configured. <cos_id_list 0-6> Specifies a priority queue or range of priority queues to be configured. min_rate - Specifies one of the parameters below (no_limit or <value 64-1024000>) that will
be applied to the minimum rate at which the above specified class will be allowed to receive packets.
no_limit Specifies that there will be no limit on the rate of packets received by the
above specified class.
<value 64-1024000> Specifies the packet limit, in Kbps, that the above ports will
be transmit at least.
max_rate − Specifies one of the parameters below (no_limit or <value 64-1024000>) that will be applied to the maximum rate at which the above specified class will be allowed to transmit packets.
no_limit Specifies that there will be no limit on the rate of packets transmit by the
above specified class.
<value 64-1024000> Specifies the packet limit, in Kbps, that the above ports will
be transmit at most.
Restrictions
Example usage:
To configure per-queue bandwidth control:
200 Command: config per_queue bandwidth_control ports 1-10 1 min_rate 100 max_rate 200
Granularity: TX: 64. Actual Rate: MIN: 64, MAX: 192.
Success.
Only Administrator and Operator-level users can issue this command.
show per_queue bandwidth_control
Purpose Syntax show per_queue bandwidth_control {<portlist>} Description Parameters
Used to display the per port per CoS queue bandwidth control setting.
This command is used to display the per port per CoS queue bandwidth control setting. <portlist> Specifies a port or range of ports to be viewed.
99
xStack® DES-3528/DES-3552 Series Layer 2 Fast Ethernet Managed Switc h CLI Reference Guide
DES-3528:admin#show per_queue bandwidth_control 10
DES-3528:admin#
show per_queue bandwidth_control
Restrictions
Example usage: To display port per CoS bandwidth control table:
Command: show per_queue bandwidth_control 10
Queue Bandwidth Control Table On Port: 10
Queue Min Rate(Kbit/sec) Max Rate(Kbit/sec) 0 No Limit No Limit 1 64 192 2 No Limit No Limit 3 No Limit No Limit 4 No Limit No Limit 5 No Limit No Limit 6 No Limit No Limit
None.
config scheduling
Purpose Syntax config scheduling {ports [<portlist> | all ]} <class_id 0-6> [strict | weight <value 1-
Used to configure the traffic scheduling mechanism for each CoS queue.
127>]
Description
Parameters
The Switch contains seven hardware priority queues available. Incoming packets must be mapped to one of these seven queues. This command is used to specify the rotation mechanism regarding how packets in these seven hardware priotiry queues are being handled and emptied.
The Switch’s default (if the config scheduling command is not used, or if the config scheduling command is entered with weight parameters set to 0) is to empty the 7 hardware
priority queues in order from the highest priority queue (hardware queue 6) to the lowest priority queue (hardware queue 0). Each hardware queue will transmit all of the packets in its buffer before allowing the next lower priority queue to transmit its packets. When the lowest hardware priority queue has finished transmitting all of its packets, the highest hardware priority queue can again transmit any packets it may have received.
The weight parameter allows the user to specify the maximum number of packets a given hardware priority queue can transmit before allowing the next lower hardware priority queue to begin transmitting its packets. A value between 0 and 127 can be specified. For example, if a value of 3 is specified, then the highest hardware priority queue (number 6) will be allowed to transmit 3 packets then the next lower hardware priority queue (number 5) will be allowed to transmit 3 packets, and so on, until all of the queues have transmitted 3 packets. The process will then repeat.
<class_id 0-6> Specifies which of the seven hardware priority queues that the config scheduling command will apply to. The seven hardware priority queues are identified by
number, from 0 to 6, with the queue 0 being the lowest priority.
[<portlist> | all] Specifes a range of ports to be configured. strict – Specifies this queue is always working in strict mode. weight <value 1-127> Using weighted fair algorithm to handle packets in priority queues.
Each queue will operate based on its setting of weight values.
Restrictions
Example usage: To configure the traffic scheduling for each CoS queue:
Only Administrator and Operator and Power-User-level users can issue this command.
100
Loading...