D-Link DGS-3400 User Manual

CLI Manual
Product Model : Layer 2+ Gigabit Ethernet Managed Switch Release 2.6
xStack
®
®
DGS-3400 Series
.
July 2009
651GS3400095G
RECYCLABLE
.
Table of Contents
INTRODUCTION ..........................................................................................................................................................1
USING THE CONSOLE CLI.........................................................................................................................................3
COMMAND SYNTAX...................................................................................................................................................7
BASIC SWITCH COMMANDS.....................................................................................................................................9
SWITCH PORT COMMANDS....................................................................................................................................23
PORT SECURITY COMMANDS................................................................................................................................27
STACKING COMMANDS ..........................................................................................................................................31
NETWORK MANAGEMENT (SNMP) COMMANDS.................................................................................................35
SWITCH UTILITY COMMANDS ................................................................................................................................55
NETWORK MONITORING COMMANDS..................................................................................................................67
MULTIPLE SPANNING TREE PROTOCOL (MSTP) COMMANDS .........................................................................82
FORWARDING DATABASE COMMANDS...............................................................................................................94
TRAFFIC CONTROL COMMANDS.........................................................................................................................102
QOS COMMANDS ...................................................................................................................................................106
PORT MIRRORING COMMANDS...........................................................................................................................116
VLAN COMMANDS .................................................................................................................................................119
ISM VLAN COMMANDS..........................................................................................................................................130
LINK AGGREGATION COMMANDS.......................................................................................................................134
IP–MAC-PORT BINDING (IMPB) COMMANDS......................................................................................................139
IP COMMANDS (INCLUDING IPV6)........................................................................................................................151
IPV6 NEIGHBOR DISCOVERY COMMANDS.........................................................................................................158
IGMP SNOOPING COMMANDS..............................................................................................................................164
MLD SNOOPING COMMANDS...............................................................................................................................174
LIMITED IP MULTICAST ADDRESS (IGMP FILTERING)......................................................................................182
802.1X COMMANDS................................................................................................................................................185
ACCESS CONTROL LIST (ACL) COMMANDS......................................................................................................209
TIME RANGE COMMANDS.....................................................................................................................................230
SAFEGUARD ENGINE COMMANDS......................................................................................................................232
TRAFFIC SEGMENTATION COMMANDS..............................................................................................................235
TIME AND SNTP COMMANDS...............................................................................................................................237
DHCP RELAY COMMANDS....................................................................................................................................242
ROUTING TABLE COMMANDS..............................................................................................................................253
MAC NOTIFICATION COMMANDS........................................................................................................................258
ACCESS AUTHENTICATION CONTROL COMMANDS........................................................................................262
SSH COMMANDS............................................................................................................................... .....................282
SSL COMMANDS ....................................................................................................................................................289
JUMBO FRAME COMMANDS ................................................................................................................................294
D–LINK SINGLE IP MANAGEMENT (SIM) COMMANDS......................................................................................296
POE COMMANDS....................................................................................................................................................306
COMMAND HISTORY LIST.....................................................................................................................................312
MODIFY BANNER AND PROMPT COMMANDS...................................................................................................315
JWAC COMMANDS.................................................................................................................................................318
CABLE DIAGNOSTICS COMMANDS.....................................................................................................................338
MAC-BASED VLAN COMMANDS..........................................................................................................................339
LOOP-BACK DETECTION (LBD) GLOBAL COMMANDS....................................................................................341
SERIAL NUMBER COMMANDS.............................................................................................................................346
802.1Q VLAN COMMANDS.....................................................................................................................................349
MAC-BASED ACCESS CONTROL (MAC) COMMANDS.......................................................................................355
Q-IN-Q COMMANDS................................................................................................................................................367
LLDP COMMANDS..................................................................................................................................................372
SFLOW.....................................................................................................................................................................386
DHCP SERVER COMMANDS.................................................................................................................................395
DHCP SERVER SCREENING COMMANDS...........................................................................................................408
RSPAN COMMANDS...............................................................................................................................................411
ACL FLOW METERING COMMANDS....................................................................................................................416
LAYER 2 PROTOCOL TUNNELING (L2PT) COMMANDS....................................................................................420
ARP AND GRATUITOUS ARP COMMANDS.........................................................................................................423
COMPOUND AUTHENTICATION COMMANDS.....................................................................................................430
WEB-BASED ACCESS CONTROL (WAC) COMMANDS......................................................................................436
PROTOCOL VLAN GROUP COMMANDS..............................................................................................................447
MULTICAST VLAN REPLICATION COMMANDS..................................................................................................452
TECHNICAL SPECIFICATIONS..............................................................................................................................457
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
1

INTRODUCTION

The xStack® DGS–3400 Series is a member of the D–Link xStack® switch family. xStack® is a complete family of stackable switches that range from edge 10/100Mbps switches to core Gigabit switches. xStack tolerance, scalable flexibility, robust security, standard–based interoperability and an impressive support for 10–Gigabit technology to future–proof departmental and enterprise network deployments with an easy migration path.
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.
This manual provides a reference for all of the commands contained in the CLI. Configuration and management of the Switch via the Web–based management agent is discussed in the Manual. For detailed information on installing hardware please refer also to the Manual.

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 is 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 o refresh the console screen.
®
provides unsurpassed performance, fault
DGS–3426 Gigabit Ethernet Switch
Command Line Interface
Firmware: Build 2.60.B26
Copyright(C) 2009 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 DGS–3426:5#. 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. You 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 chang ed, and can be found on the initial boot console screen – shown below.
1
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Boot Procedure 1.00–B13 –––––––––––––––––––––––––––––––––––––––---------------------–––––––––––––––––––
Power On Self Test........................................ 100 %
MAC Address : 00–19–5B–3D–7C–D6 H/W Version : A2
Please wait, loading V2.60.B26 Runtime image...............100 %
VART init..................................................100 %
Device Discovery................_
Figure 1–2. Boot Screen
The Switch’s MAC address 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 Switch must be set before it can be managed with the Web–based manager. The Switch IP address can be automatically set using BOOTP or DHCP protocols, in which case the actual address assigned to 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 represent the IP address to be assigned to the IP interface named System and the y’s represent the corresponding subnet mask.
2. Alternatively, you can enter config ipif System ipaddress xxx.xxx.xxx.xxx /z. Where the x’s represent the IP address to
be assigned to the IP interface named System and the z represents the corresponding number of subnets in CIDR notation.
The IP interface named 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.
DGS–3426:5#config ipif System ipaddress 10.73.21.35/255.0.0.0 Command:config ipif System ipaddress 10.73.21.35/8
Success.
Figure 1–3. Assigning an IP Address
In the above example, the Switch was assigned an IP address of 10.73.21.35 with a subn et mask of 255 .0 .0.0 . Th e system message Success indicates that the command was executed successfully. The Switch can now be configured and managed via Telnet, SNMP MIB browser and the CLI or via the Web–based management agent using the above IP address to connect to the Switch.
Note: The DGS–3400 series of switches have the capability to be configured for an IP address of
0.0.0.0, or, in essence, have no IP address. This function maybe used to disable Layer 3 functions of the Switch. When the IP address is set to 0.0.0.0 (invalid IP address), the Switch can only be managed through the console port or SIM. Other management applications such as Telnet, Web– based and SNMP cannot be used to manage the Switch when its IP address is 0.0.0.0.
2
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
2

USING THE CONSOLE CLI

The Switch 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 reloaded when the Switch 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 emulator program (e.g., the HyperTerminal program included with the Windows operating system) 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 may also access the same functions over a Telnet interface. Once you have set an IP address for your Switch, you 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 you have logged in, the console looks like this:
DGS–3426 Gigabit Ethernet Switch
Command Line Interface
Firmware: Build 2.60.B26
Copyright(C) 2009 D–Link Corporation. All rights reserved.
UserName: Password:
DGS–3426:5#_
Figure 2– 1. Initial Console Screen after logging in
Commands are entered at the command prompt, DGS–3426:5#. There are a number of helpful features included in the CLI. Entering the ? command will display a list of all of the top–level
commands.
3
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
N
<
? cable_diag ports clear clear address_binding dhcp_snoop binding_entry ports clear arptable clear attack_log clear counters clear dhcp_binding clear fdb clear jwac auth_state clear log clear mac_based_access_control auth_state clear port_security_entry port clear wac auth_state config 802.1p default_priority config 802.1p user_priority config 802.1x auth_failover config 802.1x auth_mode config 802.1x auth_parameter ports config 802.1x auth_protocol config 802.1x authorization network radius
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
Figure 2– 2. The ? Command
When entering a command without its required parameters, the CLI will prompt you with a Next possible completions: message.
DGS–3426:5#config account Command: confif account
ext possible completions: username>
DGS–3426:5#
Figure 2– 3. Example Command Parameter Help
In this case, the command config account was entered with the parameter <username>. The CLI will then prompt to enter the <username> with the message, Next possible completions:. Every command in the CLI has this feature, and complex commands
have several layers of parameter prompting. In addition, after typing any given command plus one space, users can see all o f the next possible sub–commands, in sequential
order, by repeatedly pressing the Tab key. To re–enter the previous command at the command prompt, press the up arrow cursor key. The previous co mmand will appear at
the command prompt.
4
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
N
<
N
<
A
DGS–3426:5#config account Command: confif account
ext possible completions: username>
DGS–3426:5#config account Command: confif account
ext possible completions: username>
DGS–3426:5#
Figure 2– 4. Using the Up Arrow to Re–enter a Command
In the above example, the command config account was entered without the required parameter <username>, the CLI returned the Next possible completions: <username> prompt. The up arrow cursor control key was pressed to re–enter the previous command (config account) at the command prompt. Now the appropriate 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 paramet ers.
If a command is entered that is unrecognized by the CLI, the top–level commands will be displayed under the Available commands: prompt.
DGS–3426:5#the
vailable commands: .. ? cable_diag clear config create debug delete
disable download enable login logout no ping ping6 reboot reconfig reset save show telnet upload
DGS–3426:5#
Figure 2– 5. Available Commands
The top–level commands consist of commands such as show or config. Most of these commands require one or more parameters to narrow the top–level command. This is equivalent to show what? or config what? Where the what? is the next parameter.
For example, entering the show command with no additional parameters, the CLI will then display all of the possible next parameters.
5
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
N
A
mac_
m
m
p
DGS–3426:5#show Command: show
ext possible completions:
802.1p 802.1x access_profile account
ccounting acct_client address_binding arpentry attack_log auth_client auth_diagnostics auth_session_statistics auth_statistics authen authen_enable authen_login authen_policy authentication authorization autoconfig bandwidth_control bpdu_tunnel dhcp dhcp_binding dhcp_relay dhcp_server dot1v_protocol_group double_vlan error fdb filter firmware flow_meter gratuitous_arp greeting_message gvrp hol_prevention
igmp_snooping ipfdb ipif ipif_vlan_replication_entry iproute ipv6 ipv6route jumbo_frame jwac lacp_port
limited link_aggregation lldp log log_save_timing loopdetect mac_based_access_control
based_access_control_local mac_based_vlan mac_notification irror mld_snooping module_info multicast ulticast_fdb packet port port_security orts pvid qinq radius
router_ports rspan safeguard_engine scheduling scheduling_mechanism serial_port session Sflow sim snmp sntp
ssh ssl stack_device stack_information stacking_mode stp switch syslog system_severity time time_range traffic traffic_segmentation trusted_host utilization vlan vlan_translation wac
DGS–3426:5#
Figure 2– 6. Next possible completions: Show Command
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 configured on the Switch.
6
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
3

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 a username in the <username> space.
Example Command
create account [admin |operator | user] <username 15>
Do not type the angle brackets.
create account admin newadmin1
[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 user newuser1
| vertical bar
Purpose Separates two or more mutually exclusive items in a list, one of which must be entered. Syntax
create account [admin |operator | user] <username 15>
Description
Example Command
In the above syntax example, users must specify either admin, or user. Do not type the
vertical bar.
create account user newuser1
{braces}
Purpose Encloses an optional value or set of optional arguments. Syntax Description
Example command
reset {[config | system]}
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. Do not type the braces.
reset config
7
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
(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 In the above syntax example, users have the option to specify hops or time or both of
Example command
config dhcp_relay {hops <value 1-16> | time <sec 0-65535>}(1)
them. The "(1)" following the set of braces indicates at least one argument or value within
the braces must be specified. Do not type the parentheses.
config dhcp_relay hops 3
Line Editing Key Usage
Delete
Backspace
Insert or Ctrl+R Toggle on and off. When toggled on, inserts text and shifts previous text to the right. Left Arrow Moves the cursor to the left.
Right Arrow Moves the cursor to the right. Up Arrow
Down Arrow
Deletes the character under the cursor and then shifts the remaining characters in the line to the left.
Deletes the character to the left of the cursor and then shifts the remaining characters in the line to the left.
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 seque ntially forward through the command history list.
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.
8
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
4

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 | user] <username 15> config account <username> {encrypt [plain_text| sha_1] <password>} show account delete account <username> {<string>} enable password
encryption disable password
encryption show module_info show device_status show session show switch show serial_port config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] auto_logout [never | 2_minutes | 5_minutes |
enable clipaging disable clipaging telnet <ipaddr> {tcp_port <value 0-65535>} enable telnet <tcp_port_number 1-65535> disable telnet enable web <tcp_port_number 1-65535>
10_minutes | 15_minutes]} (1)
disable web save {[config <config_id 1-2> | log | all]} reboot {<string>} reset {[config | system]} {<string>} login logout create trusted_host [<ipaddr> | network <network_address>] delete trusted_host [ipaddr <ipaddr> | network <network_address> | all] show trusted_host {<network_address>}
9
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Each command is listed, in detail, in the following sections.
create account
Purpose Used to create user accounts. Syntax Description This command is used to create user accounts that consist of a case sensitive username
Parameters [admin | operator | user] <username 15> Restrictions Only Administrator-level users can issue this command.
Example usage:
To create an administrator-level user account with the username “dlink”.
DGS–3426:5#create account admin dlink Command: create account admin dlink
Enter a case-sensitive new password:**** Enter the new password again for confirmation:**** Success.
DGS–3426:5#
create account [admin | operator | user] <username 15>
of 1 to 15 characters and a case sensitive password of 0 to 15 characters. Up to 8 user accounts can be created.
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 Appendix B at the end of this manual, which will guide you through the steps necessary to resolve this issue.
config account
Purpose Used to configure user accounts Syntax Description When the password information is not specified in the command, the system will prompt
Parameters
config account <username> {encrypt [plain_text| sha_1] <p assword>}
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 encrypted 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 password is case-sensitive.
Restrictions Only Administrator level users can issue this command.
Usernames can be between 1 and 15 characters. Passwords can be between 0 and 15 characters.
Example usage:
10
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To configure the user password of “dlink” account:
DGS–3426:5#config account dlink Command: config account dlink
Enter a old password:**** Enter a case-sensitive new password:**** Enter the new password again for confirmation:**** Success.
DGS–3426:5#
show account
Purpose Used to display user accounts. Syntax Description This command displays all user accounts created on the Switch. Up to eight user
Parameters None. Restrictions Only Administrator-level users can issue this command.
Example usage:
To display the accounts that have been created:
DGS–3426:5#show account Command: show account
Current Accounts: Username Access Level
--------------- -----------­dlink Admin
Total Entries: 1
DGS–3426:5#
show account
accounts can exist at one time.
delete account
Purpose Used to delete an existing user account. Syntax Description This command deletes an existing entry. Parameters
Restrictions Only Administrator-level users can issue this command.
Example usage:
To delete the user account “dgallinari”:
DES-3528:5#delete account dgallinari Command: delete account dgallinari
Success.
DES-3528:5#
delete account <username> {<string>}
<username> Name of the user who will be deleted. <string> - yes | no
11
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
enable password encryption
Purpose Used to enable password encryption. Syntax Description The user account configuration information will be stored in the configuration file, and can
Parameters None. Restrictions Only Administrator-level users can issue this command.
Example usage:
To enable password encryption:
DGS–3426:5#enable password encryption Command: enable password encryption
Success.
DGS–3426:5#
enable password encryption
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 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 plain text form.
disable password encryption
Purpose Used to disable password encryption. Syntax Description The user account configuration information will be stored in the configuration file, and can
Parameters None. Restrictions Only Administrator-level users can issue this command.
Example usage:
To disable password encryption:
DGS–3426:5#disable password encryption Command: disable password encryption
Success.
DGS–3426:5#
disable password encryption
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 plain text form.
12
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show module_info
Purpose Used to display information about installed modules. Syntax Description Displays information about optional modules that may be installed on the Switch. Parameters None. Restrictions None.
Example usage:
To display information about installed modules:
DGS–3426:5# show module_info Command: show module_info
BOX ID Module Name Rev. Serial Description ID No. ––– –– ––––––––––––– –––– –––––––––– ––––––––––––––––––––––––– 1 1 DEM–410X A0 PA5A5A5A5 1 Port XFP Module 1 2 DEM–410X A0 PA5A5A5A5 1 Port XFP Module
DGS–3426:5#
show module_info
show device_status
Purpose Used to display current status of fans and power or power supplies on the system. Syntax Description This command displays the current status of power(s) and fan(s) on the system. There is
Parameters None. Restrictions None.
Example usage:
To display status of fans and power supply:
DGS-3426P:5#show device_status Command: show device_status
Unit 1: Internal Power: Active External Power: Fail Left Fan : OK Right Fan : OK Back Fan : OK CPU Fan : ---
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
show device_status
a status display for all the fans on the Switch. If all fans are working normally, there will a
corresponding “OK” in the Fan display field. If any fan fails there will be a corresponding
fail message in the Fan display field, such as “1,3 Fail”.
13
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show session
Purpose Used to display a list of currently logged–in users. Syntax Description This command displays a list of all the users that are logged–in at the time the command
Parameters None. Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To display the way that the users logged in:
DGS–3427:4#show session Command: show session
ID Live Time From Level Name ––– ––––––––––– ––––––––– ––––– –––––––––– 8 0:8:48.860 Serial Port 4 Anonymous
Total Entries: 1
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
show session
is issued.
show switch
Purpose Used to display general information about the Switch. Syntax Description This command displays information about the Switch. Parameters None. Restrictions None.
Example usage:
To display the Switch’s information:
show switch
14
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS–3426:5#show switch Command: show switch
Device Type : DGS–3426 Gigabit Ethernet Switch MAC Address : 00–01–02–03–04–05 IP Address : 172.18.211.246 (Manual) VLAN Name : default Subnet Mask : 255.255.255.0 Default Gateway : 0.0.0.0 Boot PROM Version : Build 1.00–B13 Firmware Version : Build 2.60.B26 Hardware Version : A2 System Name : System Location : System Contact : Spanning Tree : Disabled GVRP : Disabled IGMP Snooping : Disabled MLD Snooping : Disabled TELNET : Enabled (TCP 23) WEB : Enabled (TCP 80) SNMP : Disabled RMON : Disabled SSL status : Disabled SSH status : Disabled
802.1x : Disabled Jumbo Frame : Off Clipaging : Enabled MAC Notification : Disabled Port Mirror : Disabled SNTP : Disabled HOL Prevention State : Enabled Syslog Global State : Disabled Single IP Management : Disabled Dual Image : Supported Password Encryption Status : Disabled
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
show serial_port
Purpose Used to display the current serial port settings. Syntax Description This command displays the current serial port settings. Parameters None. Restrictions None.
Example usage:
To display the serial port setting:
show serial_port
15
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS–3427:4#show serial_port Command: show serial_port
Baud Rate : 115200 Data Bits : 8 Parity Bits : None Stop Bits : 1 Auto–Logout : 10 mins
DGS–3427:4#
config serial_port
Purpose Used to configure the serial port. Syntax
Description This command is used to configure the serial port’s baud rate and auto logout settings. Parameters
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To configure baud rate:
DGS–3426:5#config serial_port baud_rate 115200 Command: config serial_port baud_rate 115200
Success.
DGS–3426:5#
config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] | auto_logo ut [never | 2_minutes | 5_minutes | 10_minutes | 15_minutes]} (1)
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.
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.
enable clipaging
Purpose Used to pause the scrolling of the console screen when a command displays more than
one page. Syntax Description This command is used when issuing a command whi c h causes the console screen to
Parameters None. Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To enable pausing of the screen display when the show command output reaches the end of the page:
enable clipaging
rapidly scroll through several pages. This command will cause the console to pause at
the end of each page. The default setting is enabled.
16
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS–3426:5#enable clipaging Command: enable clipaging
Success.
DGS–3426:5#
disable clipaging
Purpose Used to disable the pausing of the console screen scrolling at the end of each page when
a command displays more than one screen of information. Syntax Description This command is used to disable the pausing of the console screen at the end of each
Parameters None. Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To disable pausing of the screen display when a command output reaches the end of the page:
DGS–3426:5#disable clipaging Command: disable clipaging
Success.
DGS–3426:5#
disable clipaging
page when a command would display more than one screen of information.
telnet
Purpose Specifies to instruct the Telnet client to connect to the specific Telnet server. Syntax Description This command will instruct the Telnet client to connect to the specific Telnet server. The
<ipaddr> {tcp_port <value 0-65535>}
parameters specified by the command will only be used for the establishment of this specific session. They will not affect other sessions.
Parameters ipaddr – The IP address of the Telnet server.
tcp_port – Specifies the Telnet server port number to be connected. If not specified, the default port is 23.
Restrictions None.
Example usage:
To enable Telnet:
DGS–3426:5#telnet 172.18.211.252 23 linemode Command: telnet 172.18.211.252 23 linemode
Success
DGS–3426:5#
17
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
enable telnet
Purpose Used to enable communication with and management of the Switch using the Telnet
protocol. Syntax Description This command is used to enable the Telnet protocol on the Switch. The user can specify
Parameters
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To enable Telnet and configure the port number:
DGS–3426:5#enable telnet 23 Command: enable telnet 23
Success.
DGS–3426:5#
enable telnet <tcp_port_number 1–65535>
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.
disable telnet
Purpose Used to disable the Telnet protocol on the Switch. Syntax
disable telnet
Description This command is used to disable the Telnet protocol on the Switch. Parameters None. Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To disable the Telnet protocol on the Switch:
DGS–3426:5#disable telnet Command: disable telnet
Success.
DGS–3426:5#
enable web
Purpose Used to enable the HTTP–based management software on the Switch. Syntax Description This command is used to enable the Web–based management software on the Switch. Parameters
enable web <tcp_port_number 1–65535>
<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.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To enable HTTP and co nfigure port number:
18
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS–3426:5#enable web 80 Command: enable web 80
Note: SSL will be disabled if web is enabled. Success.
DGS–3426:5#
disable web
Purpose Used to disable the HTTP–based management software on the Switch. Syntax Description This command disables the Web–based management software on the Switch. Parameters None. Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To disable HTTP:
DGS–3426:5#disable web Command: disable web
Success.
DGS–3426:5#
disable web
save
Purpose Used to save changes in the Switch’s configuration to non–volatile RAM. Syntax Description This command is used to enter the current switch configuration into non–volatile RAM.
save {[config <config_id 1–2> | log | all]}
The saved switch configuration will be loaded into the Switch’s memory each time the
Switch is restarted. Parameters config <confi g_id 1–2> – Specify to sa ve current settings to configuration file 1 or 2.
log – Specify to save current Switch log to NV–RAM.
all – Specify to save all configuration settings. If nothing is specified after “save”, the
Switch 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:
DGS–3426:5#save Command: save
Saving all configurations to NV–RAM... Done.
DGS–3426:5#
19
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
reboot
Purpose Used to restart the Switch. Syntax Description This command is used to restart the Switch. Parameters <string> – This parameter is used to perform the command without prompt if a user
Restrictions Only Administrator-level users can issue this command.
Example usage: To restart the Switch:
DGS–3426:5#reboot Command: reboot Are you sure want to proceed with the system reboot? (y|n) Please wait, the switch is rebooting...
reboot {<string>}
enters /y for yes or /n for no.
reset
Purpose Used to reset the Switch to the factory default settings. Syntax Description This command is used to restore the Switch’s configuration to the default settings
reset {[config | system]} {<string>}
assigned from the factory. Parameters
Restrictions Only Administrator-level users can issue this command.
Example usage: To restore all of the Switch’s parameters to their default values:
DGS–3426:5#reset config Command: reset config
Are you sure to proceed with system reset except Stacking Information, IP address, log, user account and banner?(y/n)y
Success.
DGS–3426:5#
config If the keyword ‘config’ is specified, all of the factory default settings are restored
on the Switch including the IP address, user accounts, the switch history log and banner.
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.
If no parameter is specified, the Switch’s current IP address, user accounts, the switch
history log and banner are not changed. All other parameters are restored to the factory
default settings. The Switch will not save or reboot.
<string> - This parameter is used to perform the command without prompt if a user enters
/y for yes or /n for no.
20
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
login
Purpose Used to log in a user to the Switch’s console. Syntax Description This command is used to initiate the login procedure. The user will be prompted for a
Parameters None. Restrictions None.
Example usage:
To initiate the login procedure:
DGS–3426:5#login Command: login
UserName:
login
Username and Password.
create trusted_host
Purpose Used to create the trusted host. Syntax Description This command creates the trusted host. The Switch allows specification of up to four IP
create trusted_host [<ipaddr> | network <network_address>]
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. Parameters
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To create a trusted host:
DGS-3426:5#create trusted_host network 10.23.23.23/8 Command: create trusted_host network 10.23.23.23/8
Success.
DGS-3426:5#
<ipaddr> The IP address of the trusted host to be created.
<network_address> The network address of the trusted network. The form of network
address is xxx.xxx.xxx.xxx/y.
show trusted_host
Purpose Used to display a list of trusted hosts entered on the Switch using the create
trusted_host command above.
Syntax Description This command is used to display a list of trusted hosts entered on the Switch using the
show trusted_host {<network_address>}
create trusted_host command above.
Parameters Restrictions None.
Example usage:
To display the list of trusted hosts:
<network_address> The network address of the trusted host to be viewed.
21
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3426:5#show trusted_host Command: show trusted_host
Management Stations
IP Address
---------------
10.0.0.0/8
Total Entries: 1
DGS-3426:5#
delete trusted_host
Purpose Used to delete a trusted host entry made using the create trusted_host command
above. Syntax Description This command is used to delete a trusted host entry made using the create
Parameters
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To delete a trusted host with an IP address 10.48.74.121:
DGS–3426:5#delete trusted_host ipaddr 10.48.74.121 Command: delete trusted_host 10.48.74.121
Success.
DGS–3426:5#
delete trusted _host [ipaddr [ipaddr <ipaddr> | network <network_address> | all]
trusted_host command above.
<ipaddr> The IP address of the trusted host.
<network_address> The network address of the trusted network.
<all> Delete all trusted hosts.
logout
Purpose Used to log out a user from the Switch’s console. Syntax Description This command terminates the current user’s session on the Switch’s console. Parameters None. Restrictions None.
Example usage:
To terminate the current user’s console session:
DGS–3426:5#logout
logout
22
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
5

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 {capability_advertised
{10_half | 10_full | 100_half | 100_full | 1000_full} (1) } | 10_half | 10_full | 100_half | 100_full | 1000_full { [master | slave]}] | auto_negotiation restart_an | flow_control [enable | disable] | learning [enable | disable ] | state [enable | disable] | [description <desc 1-32> | clear_description]} (1)
show ports {<portlist>} { [ description | err_disabled |auto_negotiation |details |
media_type] }
Each command is listed, in detail, in the following sections.
config ports
Purpose Used to configure the Switch’s Ethernet port settings. Syntax
Description This command allows for the configuration of the Switch’s Ethernet ports. Only the ports
Parameters
[<portlist> | all ] {medium_type [fiber | copper]} {speed [auto {capability_advertised {10_half | 10_full | 100_half | 100_full | 1000_full} (1) } | 10_half | 10_full | 100_half | 100_full | 1000_full { [master | slave] } ] | auto_negotiation restart_an | flow_control [enable | disable] | learning [enable | disable ] | state [enable | disable] | [description <desc 1-32> | clear_description]} (1)
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. The port list is specified by
listing the lowest switch number and the beginning port number on that switch, separated by a colon. Then the highest switch number, and the highest port number of the range (also separated by a colon) are specified. The beginning and end of the port list range are separated by a dash. For example, 1:3 specifies switch number 1, port 3. 2:4 specifies switch number 2, port 4. 1:3–2:4 specifies all of the ports between switch 1, port 3 and switch 2, port 4 in numerical order. Non–contiguous portlist entries are separated by a comma. (ex: 1:1–1:3,1:7–1:9)
medium_type [fiber | copper] – This applies only to the Combo ports. If configuring the Combo ports this defines the type of transport medium used.
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.
capability advertised – Configures the capability that advertises to the link partner
to determine the fastest available auto setting.
[10 | 100 | 1000] − Configures the speed in Mbps for the specified range of ports. Gigabit ports are statically set to 1000 and cannot be set to slower speeds.
[half | full] Configures the specified range of ports as either full–duplex or half– duplex.
[master | slave] – The master setting (1000M/Full_M) will allow the port to advertise capabilities related to duplex, speed and physical layer type. The master setting will also determine the master and slave relationship between the two connected physical layers. This relationship is necessary for establishing the timing control between the two physical layers. The timing control is set on a master physical layer by a local source. The slave setting (1000M/Full_S) uses loop timing, where the timing comes form a data stream received from the master. If one connection is set for 1000M/Full_M, the other side of the connection must be set for 1000M/Full_S. Any other configuration will result in a link down status for both ports.
23
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config ports
auto_negotiation restart_an - Restart the auto-negotiation process. 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.
state [enable | disable] Enables or disables the specified range of ports. description <desc 32> – Enter an alphanumeric string of no more than 32 characters to
describe a selected port interface. clear_description – Enter this command to clear the port description of the selected
port(s).
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the speed of port 3 of switch 1 to be 10 Mbps, full duplex, with learning and state enabled:
DGS-3426P:5#config ports 1:1-1:3 speed 10_full learning enable flow_control enable
Command: config ports 1:1-1:3 speed 10_full learning enable flow_control enable
Success.
DGS-3426P:5#
show ports
Purpose Used to display the current configuration of a range of ports. Syntax
Description This command is used to display the current configuration of a range of ports. Parameters
show ports {<portlist>} { [ description | err_disabled |auto_negotiation |details | media_type] }
<portlist> − Specifies a port or range of ports to be displayed. The port list is specified by listing the lowest switch number and the beginning port number on that switch, separated by a colon. Then the highest switch number, and the highest port number of the range (also separated by a colon) are specified. The beginning and end of the port list range are separated by a dash. For example, 1:3 specifies switch number 1, port 3. 2:4 specifies switch number 2, port 4. 1:3–2:4 specifies all of the ports between switch 1, port 3 and switch 2, port 4 in numerical order. Non–contiguous portlist entries are separated by a comma. (ex: 1:1–1:3,1:7–1:9)
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.
auto_negotiation – Indicate if port auto negotiation information will be included in the display.
details – Indicates if port detail information will be included in the display. media_type – Specifies to display the port transceiver type.
Restrictions None.
Example usage:
To display the configuration of all ports on the switch:
24
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS–3426:5#show ports Command: show ports
Port Port Settings Connection Address State Speed/Duplex/FlowCtrl Speed/Duplex/FlowCtrl Learning ––––––– –––––––– ––––––––––––––––––––– –––––––––––––––––––––– ––––––––– 1:1 Enabled Auto/Disabled Link Down Enabled 1:2 Enabled Auto/Disabled Link Down Enabled 1:3 Enabled Auto/Disabled Link Down Enabled 1:4 Enabled Auto/Disabled Link Down Enabled 1:5 Enabled Auto/Disabled Link Down Enabled 1:6 Enabled Auto/Disabled Link Down Enabled 1:7 Enabled Auto/Disabled 1000M/Full/None Enabled 1:8 Enabled Auto/Disabled Link Down Enabled 1:9 Enabled Auto/Disabled Link Down Enabled 1:10 Enabled Auto/Disabled Link Down Enabled 1:11 Enabled Auto/Disabled Link Down Enabled 1:12 Enabled Auto/Disabled Link Down Enabled 1:13 Enabled Auto/Disabled Link Down Enabled 1:14 Enabled Auto/Disabled Link Down Enabled 1:15 Enabled Auto/Disabled 100M/Full/None Enabled 1:16 Enabled Auto/Disabled Link Down Enabled 1:17 Enabled Auto/Disabled Link Down Enabled 1:18 Enabled Auto/Disabled Link Down Enabled 1:19 Enabled Auto/Disabled Link Down Enabled
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
Example usage:
To display the description of all ports on switch one:
25
xStack® DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS–3426:5#show ports description Command: show ports description
Port Port Settings Connection Address State Speed/Duplex/FlowCtrl Speed/Duplex/FlowCtrl Learning ––––––– –––––––– ––––––––––––––––––––– –––––––––––––––––––––– ––––––––– 1:1 Enabled Auto/Disabled Link Down Enabled Description: 1:2 Enabled Auto/Disabled Link Down Enabled Description: 1:3 Enabled Auto/Disabled Link Down Enabled Description: 1:4 Enabled Auto/Disabled Link Down Enabled Description: 1:5 Enabled Auto/Disabled Link Down Enabled Description: 1:6 Enabled Auto/Disabled Link Down Enabled Description: 1:7 Enabled Auto/Disabled 1000M/Full/None Enabled Description: 1:8 Enabled Auto/Disabled Link Down Enabled Description: 1:9 Enabled Auto/Disabled Link Down Enabled Description:
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
26
Loading...
+ 432 hidden pages