D-Link DXS-3300, DGS-3300 User Manual

CLI Manual
Product Model :
xStack
TM
Layer 3 Stackable Gigabit Ethernet Switch
Release 4.30
©Copyright 2006. All rights reserved.
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
Table of Contents
Introduction ...................................................................................................................................................................1
Using the Console CLI .................................................................................................................................................. 4
Command Syntax .......................................................................................................................................................... 8
Basic Switch Commands............................................................................................................................................. 10
Switch Port Commands .............................................................................................................................................. 26
Port Security Commands ............................................................................................................................................ 29
Network Management (SNMP) Commands .............................................................................................................. 32
Switch Utility Commands........................................................................................................................................... 52
Network Monitoring Commands................................................................................................................................ 58
Multiple Spanning Tree Protocol (MSTP) Commands .............................................................................................75
Forwarding Database Commands.............................................................................................................................. 88
Broadcast Storm Control Commands ........................................................................................................................97
QoS Commands ...........................................................................................................................................................99
Port Mirroring Commands .......................................................................................................................................110
VLAN Commands...................................................................................................................................................... 114
Link Aggregation Commands...................................................................................................................................124
IP Commands (Including IP Multinetting) .............................................................................................................130
IGMP Commands (Including IGMP v3) ..................................................................................................................135
IGMP Snooping Commands......................................................................................................................................139
MAC Notification Commands................................................................................................................................... 149
Access Authentication Control Commands ............................................................................................................. 153
SSH Commands......................................................................................................................................................... 176
SSL Commands ......................................................................................................................................................... 184
802.1X Commands..................................................................................................................................................... 190
Access Control List (ACL) Commands..................................................................................................................... 210
Traffic Segmentation Commands............................................................................................................................. 238
Stacking Commands .................................................................................................................................................240
D-Link Single IP Management Commands............................................................................................................. 244
Time and SNTP Commands ..................................................................................................................................... 256
ARP Commands......................................................................................................................................................... 262
VRRP Commands ...................................................................................................................................................... 265
Routing Table Commands ........................................................................................................................................272
Route Redistribution Commands ............................................................................................................................. 275
BOOTP Relay Commands......................................................................................................................................... 281
DNS Relay Commands.............................................................................................................................................. 285
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
RIP Commands ..........................................................................................................................................................289
DVMRP Commands...................................................................................................................................................293
PIM Commands .........................................................................................................................................................298
IP Multicasting Commands ......................................................................................................................................316
MD5 Configuration Commands................................................................................................................................318
OSPF Configuration Commands ..............................................................................................................................321
Route Preference Commands....................................................................................................................................342
Jumbo Frame Commands .........................................................................................................................................345
File System Commands.............................................................................................................................................347
Command History List ..............................................................................................................................................354
Technical Specifications ............................................................................................................................................357
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
1

INTRODUCTION

The DGS/DXS-3300 Layer 3 stackable Gigabit Ethernet switches 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 members of the xStack DGS/DXS-3300 series, including the DGS-3324SRi, DGS-3324SR, DXS-3326GSR, and the DXS-3350SR. Examples present in this manual may refer to any member of the xStack DGS/DXS-3300 series and may show different port counts, but are universal to this series of switches, unless otherwise stated. Configuration and management of the Switch via the Web-based management agent is discussed in the User’s Guide.
Please take note that if this device was purchased outside of Europe, certain cosmetic differences between the actual switch and images in this document will be apparent to the reader, such as the faceplate and the manual cover. Changes are made to the appearance of the device only and no configuration or internal hardware alterations occur.
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.
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 to refresh the console screen.
Figure 1-1. Initial CLI screen
1
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
There is no initial username or password. Just press the Enter key twice to display the CLI input cursor DGS-3324SRi:4#. 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. The default switch IP address can be changed 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.
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, the user may 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.
2
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
Figure 1-3. Assigning an IP Address
In the above example, the Switch was assigned an IP address of 10.53.13.144 with a subnet 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 and the CLI or via the Web-based management agent using the above IP address to connect to the Switch.
3
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
2

USING THE CONSOLE CLI

The xStack DGS/DXS-3300 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 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
The same functions can be accessed over a Telnet interface. Once an IP address has been set for your Switch, a Telnet program (in VT-100 compatible terminal mode) can be used 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 the user has logged in, the console looks like this:
4
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
Figure 2-1. Initial Console Screen
Commands are entered at the command prompts, DGS-3324SRi:4#, DGS-3324SR:4#, DXS-3326GSR:4#, DXS-3350SR:4#.
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.
Figure 2-2. The ? Command
When a command has been entered without its required parameters, the CLI will prompt a Next possible completions: message.
5
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
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, all of the next possible sub-commands can be viewed, 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 command will appear at the command prompt.
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 User name 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.
6
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
If a command is entered that is unrecognized by the CLI, the top-level commands will be displayed under the Available commands: prompt.
Figure 2-5. The Available Commands Prompt
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, if the show command has been entered with no additional parameters, the CLI will then display all of the possible next parameters.
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.
7
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet 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, supply an IP interface name in the
Example Command
create ipif <ipif_name> <network_address> <vlan_name 32> {secondary | state [enable | disable]}
<ipif_name> 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.
create ipif Engineering 10.24.22.5/255.0.0.0 Design
[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 | user] <username 15>
In the above syntax example, specify either an admin or a user level account to be created. Do not type the square brackets.
create account admin
| vertical bar
Purpose Separates two or more mutually exclusive items in a list, one of
which must be entered.
Syntax
Description In the above syntax example, it is necessary to specify either
Example Command
create account [admin | user] <username 15>
admin, or user. Do not type the backslash.
create account admin
8
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
{braces}
Purpose Encloses an optional value or set of optional arguments.
Syntax
Description In the above syntax example, the user has the option to specify
Example command
reset {[config | system]}
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.
reset config
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 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 Repeat 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.
9
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet 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 | user] <username 15>
config account <username 15>
show account
delete account <username 15>
show config [current_config | config_in_NVRAM]
show session
show switch
show switch_mode
show device status
show module_info
show serial_port
config serial_port {baud_rate [115200] auto_logout [never | 2_minutes | 5_minutes |
10_minutes | 15_minutes]}
enable clipaging
disable clipaging
enable telnet <tcp_port_number 1-65535>
disable telnet
enable web <tcp_port_number 1-65535>
disable web
save {[log | all]}
reboot
reset {[config | system]}
login
logout
Each command is listed, in detail, in the following sections.
10
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
create account
Purpose Used to create user accounts.
Syntax
Description
Parameters admin <username> - Entering this parameter will give the
Restrictions Only Administrator-level users can issue this command.
Example usage:
To create an administrator-level user account with the username “dlink”.
create [admin | user] <username 15>
The create account 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.
specified user administrative-level privileges over configuring functions of the Switch. This user may perform any function listed in this manual. A username of up to 15 characters must be created with this command to identify the admin user.
user <username> - Entering this parameter will give the specified user user-level privileges over configuring functions of the Switch. User-level privileges limit the execution of many commands listed in this manual. A username of up to 15 characters must be created with this command to identify the user.
Usernames can be between 1 and 15 characters.
Passwords can be between 0 and 15 characters.
DGS-3324SRi:4#create account admin dlink
Command: create account admin dlink
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DGS-3324SRi:4#
config account
Purpose Used to configure user accounts
Syntax
Description
Parameters <username>- Enter the username of the account to be configured.
Restrictions Only Administrator-level users can issue this command.
config account <username>
The config account command configures a user account that has been created using the create account command.
Usernames can be between 1 and 15 characters.
Example usage:
To configure the user password of “dlink” account:
Passwords can be between 0 15 characters.
11
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
DGS-3324SRi:4#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-3324SRi:4#
show account
Purpose Used to display user accounts.
Syntax
Description Displays all user accounts created on the Switch. Up to 8 user
Parameters None.
Restrictions None.
Example usage:
To display the accounts that have been created:
delete account
show account
accounts can exist on the Switch at one time.
DGS-3324SRi:4#show account
Command: show account
Current Accounts:
Username Access Level
--------------- -----------­dlink Admin
DGS-3324SRi:4#
Purpose Used to delete an existing user account.
Syntax
Description
Parameters <username>- Enter the username of the account to be deleted.
Restrictions Only Administrator-level users can issue this command.
Example usage:
To delete the admin account “System”:
delete account <username>
The delete account command deletes a user account that has been created using the create account command.
DGS-3324SRi:4#delete account System
Command: delete account System
12
Example usage:
To delete the user account “System2”:
show config
Purpose Used to display a list of configuration commands entered into the
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
Are you sure to delete the last administrator account?(y/n)y Success.
DGS-3324SRi:4#
DGS-3324SRi:4#delete account System2
Command: delete account System2
Success.
DGS-3324SRi:4#
Switch.
Syntax
Description This command displays a list of configuration commands entered
Parameters current_config – Entering this parameter will display configurations
Restrictions None.
Example usage:
To view configurations entered on the Switch that were saved to NVRAM:
show config [current_config | config_in_NVRAM]
into the Switch.
entered without being saved to NVRAM.
config_in_NVRAM - Entering this parameter will display configurations entered and saved to NVRAM.
13
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
DGS-3324SRi:4# show config config_in_NVRAM
Command: show config config_in_NVRAM
#-----------------------------------------------------------------------------------------------------­# DGS-3324SRi Configuration # # Firmware: Build 4.20-B08 # Copyright(C) 2004-2007 D-Link Corporation. All rights reserved. #------------------------------------------------------------------------------------------------------
# BASIC
config serial_port baud_rate 115200 auto_logout never enable telnet 23 enable web 80 enable clipaging
# STORM
config traffic control 1:1-1:26 broadcast disable multicast disable dlf disable threshold 128 config traffic control 2:1-2:24 broadcast disable multicast disable dlf disable
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
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
Parameters None.
Restrictions None.
Example usage:
To display the way that the users logged in:
show session
the time the command is issued.
DGS-3324SRi:4#show session
Command: show session
ID Live Time From Level Name
-- --------- -------------- ----- --------------­*8 03:36:27 Serial Port 4 Anonymous
Total Entries: 1
14
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
show switch
Purpose Used to display information about the Switch.
Syntax
Description This command displays information about the Switch.
Parameters None.
Restrictions None.
Example usage:
To display the Switch information:
show switch
15
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
DGS-3324SRi:4#show switch Command: show switch
Device Type : DGS-3324SRi Stackable Ethernet Switch Unit ID : 1 MAC Address : DA-10-21-00-00-01 IP Address : 10.41.44.22 (Manual) VLAN Name : default Subnet Mask : 255.0.0.0 Default Gateway : 0.0.0.0 Boot PROM Version : Build 2.01-B01 Firmware Version : Build 4.30-B08 Hardware Version : 2A1 Device S/N : System Name : DGS-3324SRi_#3 System Location : 7th_flr_east_cabinet System Contact : Julius_Erving_212-555-6666 Spanning Tree : Disabled GVRP : Disabled IGMP Snooping : Disabled RIP : Disabled DVMRP : Disabled PIM : Disabled OSPF : Disabled TELNET : Enabled (TCP 23) WEB : Enabled (TCP 80) RMON : Enabled SSL Status : Disabled SSH Status : Disabled
802.1x : Disabled Jumbo Frame : Off Clipaging : Enabled MAC Notification : Disabled Port Mirror : Disabled SNTP : Disabled Bootp Relay : Disabled DNSR Status : Disabled VRRP : Disabled HOL Prevention State : Enabled Syslog Global State : Disabled Single IP Management : Disabled Dual Image : Supported CPU Interface Filter : Disabled
DGS-3324SRi:4#
16
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
show switch_mode
Purpose Used to display the current switch mode.
Syntax
Description This command displays the current mode of operation of the
Parameters None.
Restrictions None.
Example usage:
To view the current switch mode:
DGS-3324SRi:4#show switch_mode
Command: show switch_mode
Switch is in Layer 3 mode
DGS-3324SRi:4#
show device_status
Purpose Used to display the current status of the hardware of the Switch.
show switch_mode
Switch.
Syntax
Description This command displays the current status of the Switch’s physical
Parameters None.
Restrictions None.
Example usage:
To show the current hardware status of the Switch:
show module_info
show device_status
elements.
DGS-3324SRi:4#show device_status
Command: show device_status
ID Internal Power External power Side Fan Back Fan
--- ---------------- ---------------- ---------- ---------­2 Active Fail OK OK
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
Purpose To show information concerning the added uplink module.
Syntax
show module_info
17
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
show module_info
Description This command is used to view information about the DEM-420X and
DEM-420CX uplink modules added to an xStack DGS/DXS-3300 series. Currently, only the DXS-3326GSR and the DXS-3350SR members of the xStack DGS/DXS-3300 series have the capability to add the optional DEM-420X or DEM-420CX module. Although the DGS-3324SR and the DGS-3324SRi do not support the optional module, information about the module can be viewed on these switches if they are stacked with one of the switches that support the optional module.
The following explains what is presented in the window:
Box ID – The ID of the switch in the switch stack.
Module Name – The name of the optional module. Currently, switches in the xStack DGS/DXS-3300 series only support the DEM­420X and the DEM-420CX optional modules.
Rev. – The hardware revision of the optional module.
Serial No. – The serial number associated with this particular optional module.
Description – A brief description of the optional module including port count and module type.
Parameters None.
Restrictions None.
Example usage:
To view information concerning the DEM-420X optional module added to an xStack DGS/DXS-3300 series switch.
DGS-3324SRi:4#show module_info
Command: show module_info
Box Module Name Rev. Serial Description ID No.
------ ------------------ ------- --------- ------------------------------------------­1 DEM420X 2A1 123456789 2-Port 10GE XFP Uplink Module 2 DEM420CX 1A1 123454567 2-Port 10GE CX4 Uplink Module 3 - - - ­4 - - - ­5 - - - ­6 - - - ­7 - - - - 8 - - - ­9 - - - ­10 - - - ­11 - - - ­12 - - - -
DGS-3324SRi:4#
show serial_port
Purpose Used to display the current serial port settings.
Syntax
Description This command displays the current serial port settings.
show serial_port
18
show serial_port
Parameters None.
Restrictions None.
Example usage:
To display the serial port setting:
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
DGS-3324SRi: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-3324SRi: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
Parameters
config serial_port {baud_rate [115200] | auto_logout [never | 2_minutes | 5_minutes | 10_minutes | 15_minutes]}
and auto logout settings.
baud_rate [115200] − The serial bit rate that will be used to communicate with the management host. This parameter is fixed at 115200.
auto_logout – The user may select a time period from the following list which the Switch will automatically log out of the serial port.
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.
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure baud rate:
15_minutes − The console will log out the current user if
there is no user input for 15 minutes.
19
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
DGS-3324SRi:4#config serial_port baud_rate 115200
Command: config serial_port baud_rate 115200
Success.
DGS-3324SRi:4#
enable clipaging
Purpose Used to pause the scrolling of the console screen when the show
command displays more than one page.
Syntax
Description This command is used when issuing the show command which
Parameters None.
Restrictions Only administrator-level users can issue this command.
Example usage:
To enable pausing of the screen display when the command output reaches the end of the page:
enable clipaging
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 enable.
DGS-3324SRi:4#enable clipaging
Command: enable clipaging
Success.
DGS-3324SRi:4#
disable clipaging
Purpose Used to disable the pausing of the console screen scrolling at
the end of each page when the show command displays more than one screen of information.
Example usage:
To disable pausing of the screen display when show command output reaches the end of the page:
Syntax
Description This command is used to disable the pausing of the console
Parameters None.
Restrictions Only administrator-level users can issue this command.
DGS-3324SRi:4#disable clipaging
Command: disable clipaging
disable clipaging
screen at the end of each page when the show command would display more than one screen of information.
20
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
Success.
DGS-3324SRi:4#
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
Parameters
Restrictions Only administrator-level users can issue this command.
Example usage:
To enable Telnet and configure port number:
enable telnet <tcp_port_number 1-65535>
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>
ports are numbered between 1 and 65535. The “well-known” TCP port for the Telnet protocol is 23.
DGS-3324SRi:4#enable telnet 23
Command: enable telnet 23
Success.
DGS-3324SRi:4#
The TCP port number. TCP
disable telnet
Purpose Used to disable the Telnet protocol on the Switch.
Syntax
Description This command is used to disable the Telnet protocol on the
Parameters None.
Restrictions Only administrator-level users can issue this command.
Example usage:
To disable the Telnet protocol on the Switch:
disable telnet
Switch.
21
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
DGS-3324SRi:4#disable telnet
Command: disable telnet
Success.
DGS-3324SRi:4#
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
Parameters
Restrictions Only administrator-level users can issue this command.
Example usage:
To enable HTTP and configure port number:
enable web <tcp_port_number 1-65535>
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.
DGS-3324SRi:4#enable web 80
Command: enable web 80
Note: SSL will be disabled if web is enabled.
Success.
DGS-3324SRi:4#
disable web
Purpose Used to disable the HTTP-based management software on the
Syntax
Description This command disables the Web-based management software
Parameters None.
Restrictions Only administrator-level users can issue this command.
Example usage:
Switch.
disable web
on the Switch.
22
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
To disable HTTP:
DGS-3324SRi:4#disable web
Command: disable web
Success.
DGS-3324SRi:4#
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
Parameters
Restrictions Only administrator-level users can issue this command.
Example usage:
To save the Switch’s current configuration to non-volatile RAM:
save {[log | all]|
non-volatile RAM. The saved switch configuration will be loaded into the Switch’s memory each time the Switch is restarted.
Entering just the save command will save only the Switch configuration to NV-Ram.
log – Entering the log parameter will save only the log file to NV-RAM.
all – Entering the all command will save both the log file and the Switch
configuration to NV-RAM.
DXS-3326GSR:4#save
Command: save
Do you want to change current box id from AUTO mode to STATIC mode? (y/n) n Saving all configurations to NV-RAM… Done.
DXS-3326GSR:4#
NOTE: The DGS-3324SRi does not support a change in box mode from
Auto to Static.
reboot
Purpose Used to restart the Switch.
Syntax
Description This command is used to restart the Switch.
reboot
23
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
reboot
Parameters None.
Restrictions None.
Example usage:
To restart the Switch:
DGS-3324SRi:4#reboot
Command: reboot
Are you sure want to proceed with the system reboot? (y/n)
Please wait, the Switch is rebooting...
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
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-3324SRi:4#reset config
Command: reset config
reset {[config | system]}
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.
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.
Success.
DGS-3324SRi:4#
login
Purpose Used to log in a user to the Switch’s console.
Syntax
login
24
login
Description This command is used to initiate the login procedure. The user
Parameters None.
Restrictions None.
Example usage:
To initiate the login procedure:
logout
Purpose Used to log out a user from the Switch’s console.
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
will be prompted for his Username and Password.
DGS-3324SRi:4#login
Command: login
UserName:
Syntax
Description This command terminates the current user’s session on the
Parameters None.
Restrictions None.
Example usage:
To terminate the current user’s console session:
logout
Switch’s console.
DGS-3324SRi:4#logout
25
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet 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] {speed [auto | 10_half | 10_full | 100_half | 100_full
| 1000_full {[master | slave]} | flow_control [enable | disable] | learning [enable | disable] state [enable | disable] | description <desc 32> | clear]}
show ports {<portlist>} {description}
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
Parameters
[<portlist> | all] {speed [auto | 10_half | 10_full | 100_half | 100_full | 1000_full {[master | slave]} | flow_control [enable | disable] | learning [enable | disable] state [enable | disable] | description <desc 32> | clear]}
Ethernet ports. Only the ports listed in the <portlist> will be affected.
all Configure all ports on the Switch.
<portlist> Specifies a 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.
auto Enables auto-negotiation for the specified range of ports.
[10 | 100 | 1000] Configures the speed in Mbps for the specified
range of ports.
[half | full] Configures the specified range of ports as either full- or half-duplex.
[master | slave] – The master and slave parameters refer to connections running a 1000BASE-T cable for connection between the Switch port and other device capable of a gigabit connection. The master setting 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 uses loop timing, where the timing comes form a data stream received from the master. If one connection is set for 1000 master, the other side of the
26
config ports
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure the speed of port 3 of unit 1 to be 10 Mbps, full duplex, learning and state enable:
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
connection must be set for 1000 slave. Any other configuration will result in a link down status for both ports.
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 – Enter this command to clear the port description of the selected port(s).
DGS-3324SRi:4#config ports 1:1-1:3 speed 10_full learning enable state enable
Command: config ports 1:1-1:3 speed 10_full learning enable state enable
Success.
DGS-3324SRi:4#
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
Parameters
show ports <portlist> {description}
range of ports.
<portlist> Specifies a 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.
Restrictions None.
Example usage:
To display the configuration of all ports on a standalone switch:
{description} – Adding this parameter to the command will allow the user to view previously configured descriptions set on various ports on the Switch.
27
Loading...
+ 332 hidden pages