Appendix A Password Recovery Procedure......................................................................................... 630
Appendix B System Log Entries ........................................................................................................... 632
Appendix C Trap Log Entries................................................................................................................642
Appendix D RADIUS Attributes Assignment.........................................................................................646
Trace Route Command List .............................................................................................. 606
III
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
Chapter 1
Using Command Line
Interface
The Switch can be managed through the Switch’s serial port, Telnet, SNMP 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. Every command
will be introduced in terms of purpose, format, description, parameters, and examples.
Configuration and management of the Switch via the Web-based management agent are
discussed in the Web UI Reference Guide. For detailed information on installing hardware please
also refer to the Hardware Installation Guide.
1-1 Accessing the Switch via the Serial Port
The Switch’s serial port’s default settings are as follows:
• 115200 baud
• no parity
• 8 data bits
• 1 stop bit
A computer running a terminal emulation program capable of emulating a VT-100 terminal and a
serial port configured as above are then connected to the Switch’s Console port via an included
RS-232 to RJ-45 convertor 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.
Fast Ethernet Switch
Command Line Interface
Firmware: Build 4.04.004
Copyright(C) 2012 D-Link Corporation. All rights reserved.
UserName:
PassWord:
:admin#
There is no initial username or password. Just press the Enter key twice to display the CLI input
cursor DES-3200-28P:admin#. This is the command line where all commands are input.
1-2 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.
1
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
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.
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.
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.
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.
:admin#config ipif System ipaddress 10.24.22.100/255.0.0.0
Command: config ipif System ipaddress 10.24.22.100/8
Success.
:admin#
In the above example, the Switch was assigned an IP address of 10.24.22.100 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, SNMP MIB browser and
the CLI or via the Web-based management agent using the above IP address to connect to the
Switch.
2
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
There are a number of helpful features included in the CLI. Entering the ? command will display a
CTRL+CESCq Quit SPACEn Next Page ENTER Next Entry a All
When entering a command without its required parameters, the CLI will prompt you with a Next
possible completions: message.
:admin#config account
Command: config account
Next possible completions:
<username>
:admin#
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 of 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 command will appear at the command prompt.
3
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
:admin#config account
Command: config account
Next possible completions:
<username>
:admin#config account
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 accoun t
command re-executed.
All commands in the CLI function in this way. In addition, the syntax of the help prompts are the
same as presented in this manual angle brackets < > indicate a numerical value or character
string, braces { } indicate optional parameters or a choice of parameters, and brackets [ ] indicate
required parameters.
If a command is entered that is unrecognized by the CLI, the top-level commands will be displayed
under the Available commands: prompt.
:admin#the
Available commands:
.. ? cable_diag cd
cfm clear config copy
create debug del delete
dir disable download enable
erase login logout md
move no ping ping6
rd reboot reconfig rename
reset save show smtp
telnet traceroute traceroute6 upload
:admin#
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.
4
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
:admin#show
Command: show
Next possible completions:
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.
1-3Command Syntax Symbols
Syntax Description
angle brackets < > Encloses a variable or value. Users must specify the variable or value.
For example, in the syntax
5
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
mode [drop | block | shutdown]}(1)
users have the option to specify hops or time or both of 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.
ipif <ipif_name 12>
metric <value 1-31>
12 means the maximum length of the IP interface name.
1-31 means the legal range of the metric value.
1-4Line Editing Keys
Keys Description
Delete Delete character under cursor and shift remainder of line to left.
Backspace Delete character to left of cursor and shift remainder of line to left.
6
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
Insert Toggle on and off. When toggled on, inserts text and shifts previous
text to right.
Left Arrow Move cursor to left.
Right Arrow Move cursor to right
Tab Help user to select appropriate token.
P Display the previous page.
N or Space Display the next page.
CTRL+C Escape from displayed pages.
ESC Escape from displayed pages.
Q Escape from displayed pages.
R refresh the displayed pages
a Display the remaining pages. (The screen display will not pause again.)
Enter Display the next line.
The screen display pauses when the show command output reaches the end of the page.
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® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
Chapter 2
show session
show serial_port
config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] | auto_logout [never | 2_minutes |
show ports {<portlist>} {[description | err_disabled | details | media_type]}
Basic Command List
2-1 show session
Description
This command is used to display a list of currently users which are login to the Switch.
Format
show session
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To display the session entries:
8
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
ID Live Time From Level Name
--- ------------ --------------------------------------- ----- -------------- 0 00:01:46.360 10.90.90.10 puser puser
8 00:05:49.340 Serial Port admin admin
Total Entries: 2
CTRL+CESCq Quit SPACEn Next Page p Previous Page r Refresh
2-2show serial_port
Description
This command is used to display the current serial port settings.
Format
show serial_port
Parameters
None.
Restrictions
None.
Example
To display the serial port setting:
:admin#show serial_port
Command: show serial_port
Baud Rate : 115200
Data Bits : 8
Parity Bits : None
Stop Bits : 1
Auto-Logout : 10 mins
:admin#
2-3config serial_port
Description
This command is used to configure the serial bit rate that will be used to communicate with the
management host and the auto logout time for idle connections.
9
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
baud_rate - (Optional) The serial bit rate that will be used to communicate with the management
host. The default baud rate is 115200.
9600 - Specify the serial bit rate to be 9600.
19200 - Specify the serial bit rate to be 19200.
38400 - Specify the serial bit rate to be 38400.
115200 - Specify the serial bit rate to be 115200.
auto_logout - (Optional) The auto logout time out setting.
never - Never timeout.
2_minutes - When idle over 2 minutes, the device will auto logout.
5_minutes - When idle over 5 minutes, the device will auto logout.
10_minutes - When idle over 10 minutes, the device will auto logout.
15_minutes - When idle over 15 minutes, the device will auto logout.
Restrictions
Only Administrator and Operator-level users can issue this command.
This command is used to enable the pausing of the screen display when the show command
output reaches the end of the page. The default setting is enabled.
Format
enable clipaging
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
10
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
Example
To enable pausing of the screen display when show command output reaches the end of the page:
:admin#enable clipaging
Command: enable clipaging
Success.
:admin#
2-5disable clipaging
Description
This command is used to disable the pausing of the screen display when the show command
output reaches the end of the page. The default setting is enabled.
Format
disable clipaging
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To disable pausing of the screen display when show command output reaches the end of the page:
Firmware: Build 4.04.004
Copyright(C) 2012 D-Link Corporation. All rights reserved.
===============================================================================
=
<Function Key> <Control Key>
Ctrl+C Quit without save left/right/
Ctrl+W Save and quit up/down Move cursor
Ctrl+D Delete line
Ctrl+X Erase all setting
Ctrl+L Reload original setting
Firmware: Build 4.04.004
Copyright(C) 2012 D-Link Corporation. All rights reserved.
===============================================================================
=
:admin#
2-14config command_prompt
Description
This command is used to modify the command prompt.
The current command prompt consists of four parts: “product name” + “:” + ”user level” + ”#” (e.g.
“:admin#”). This command is used to modify the first part (1. “product name”) with a string
consisting of a maximum of 16 characters, or to be replaced with the users’ login user name.
When users issue the “reset” command, the current command prompt will remain in tact. Yet,
issuing the “reset system” will return the command prompt to its original factory default value.
<string 16> - Enter the new command prompt string of no more than 16 characters.
username - Enter this command to set the login username as the command prompt.
default - Enter this command to return the command prompt to its original factory default value.
Restrictions
Only Administrator and Operator-level users can issue this command.
17
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
The command is used to set current terminal width.
The usage is described as below:
1. Users login and configure the terminal width to 120, this configuration take effect on this
login section. If users implement “save” command, the configuration is saved. After users
log out and log in again, the terminal width is 120.
2. If user did not save the configuration, another user login, the terminal width is default value.
3. If at the same time, two CLI sessions are running, once section configure to 120 width and
save it, the other section will not be effected, unless it log out and then log in.
Format
config terminal width [default | <value 80-200>]
Parameters
default - The default setting of terminal width. The default value is 80.
<value 80-200> - The terminal width which will be configured. The width is between 80 and 200
<portlist> - Enter a list of ports used here.
all - Specify that all the ports will be used for this configuration.
medium_type - (Optional) Specify the medium type while the configure ports are combo ports
fiber - Specify that the medium type will be set to fiber.
copper - Specify that the medium type will be set to copper.
speed - (Optional) Specify the port speed of the specified ports .
auto - Set port speed to auto negotiation.
10_half - Set port speed to 10_half.
19
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
10_full - Set port speed to 10_full.
100_half - Set port speed to 100_half.
100_full - Set port speed to 100_full._
1000_full - 1000_full set port speed to 1000_full. While set port speed to 1000_full,user
should specify master or slave mode for 1000 base TX interface, and leave the 1000_full
without any master or slave setting for other interface.
master - Specify that the port(s) will be set to master.
slave - Specify that the port(s) will be set to slave.
flow_control - (Optional) You can turn on or turn off flow control on one or more ports. By set
flow_control to enable or disable.
enable - Specify that the flow control option will be enabled.
disable - Specify that the flow control option will be disabled.
learning - (Optional) You can turn on or turn off MAC address learning on one or more ports.
enable - Specify that the learning option will be enabled.
disable - Specify that the learning option will be disabled.
state - (Optional) Enables or disables the specified port. If the specificed ports are in error-
disabled status , configure their state to enable will recover these ports from disabled to
enable state.
enable - Specify that the port state will be enabled.
disable - Specify that the port state will be disabled.
mdix - (Optional) MDIX mode can be specified as auto, normal, and cross. If set to normal state,
the port is in MDIX mode and can be connected to PC NIC using a straight cale. If set to cross
state, the port is in mdi mode, and can be connected to a port (in mdix mode) on another
switch thru a straight cabe.
auto - Specify that the MDIX mode for the port will be set to auto.
normal - Specify that the MDIX mode for the port will be set to normal.
cross - Specify that the MDIX mode for the port will be set to cross.
description - (Optional) Specify the description of the port interface.
<desc 1-32> - Enter the port interface description here. This value can be up to 32 characters
long.
clear_description - (Optional) Specify that the description field will be cleared.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To configure the ports:
:admin#config ports all medium_type copper speed auto
Command: config ports all medium_type copper speed auto
Success.
:admin#
2-18show ports
Description
This command is used to display the current configurations of a range of ports.
Format
show ports {<portlist>} {[description | err_disabled | details | media_type]}
20
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
Parameters
ports - Specify a range of ports to be displayed.
<portlist> - (Optional) Enter the list of ports to be configured here.
description - (Optional) Indicates if port description will be included in the display .
err_disabled - (Optional) Indicates if ports are disabled by some reasons will be displayed.
details - (Optional) Displays the port details.
media_type - (Optional) Displays port transceiver type.
Restrictions
None.
Example
To display the port details:
:admin#show ports details
Command: show ports details
Port : 1
-------------------Port Status : Link Up
Description :
HardWare Type : Fast Ethernet
MAC Address : 00-01-02-03-04-01
Bandwidth : 100000Kbit
Auto-Negotiation : Enabled
Duplex Mode : Full Duplex
Flow Control : Disabled
MDI : Normal
Address Learning : Enabled
Last Clear of Counter : 2 hours 43 mins ago
BPDU Hardware Filtering Mode: Disabled
Queuing Strategy : FIFO
TX Load : 0/100, 0 bits/sec, 0 packets/sec
RX Load : 0/100, 0 bits/sec, 0 packets/sec
CTRL+CESCq Quit SPACEn Next Page p Previous Page r Refresh
21
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
show vlan {<vlan_name 32>}
show vlan ports {<portlist>}
show vlan vlanid <vidlist>
show port_vlan {<portlist>}
enable pvid auto_assign
disable pvid auto_assign
show pvid auto_assign
config gvrp [timer {join < value 100-100000> | leave < value 100-100000> | leaveall <value 100-
100000>} | nni_bpdu_addr [dot1d | dot1ad]]
show gvrp
enable gvrp
disable gvrp
802.1Q VLAN Command List
3-1 create vlan
Description
This command is used to create a VLAN on the Switch. The VLAN ID must be always specified for
creating a VLAN.
Format
create vlan <vlan_name 32> tag <vlanid 2-4094> {type 1q_vlan advertisement}
Parameters
vlan - The name of the VLAN to be created.
<vlan_name 32> - Enter the VLAN name here. The VLAN name can be up to 32 characters
long.
tag - The VLAN ID of the VLAN to be created.
<vlanid 2-4094> - Enter the VLAN ID here. The VLAN ID value must be between 2 and 4094.
type 1q_vlan advertisement - (Optional) Specify the VLAN type used is based on the 802.1Q
standard and being able to be advertised out.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
22
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
Example
To create a VLAN with name “v2” and VLAN ID 2:
:admin#create vlan v2 tag 2 type 1q_vlan advertisement
Command: create vlan v2 tag 2 type 1q_vlan advertisement
Success.
:admin#
3-2create vlan vlanid
Description
This command is used to create more than one VLANs at a time. A unique VLAN name (e.g.
VLAN10) will be automatically assigned by the system. The automatic assignment of VLAN name
is based on the following rule: “VLAN”+ID. For example, for VLAN ID 100, the VLAN name will be
VLAN100. If this VLAN name is conflict with the name of an existing VLAN, then it will be renamed
based on the following rule: “VLAN”+ID+”ALT”+ collision count. For example, if this conflict is the
second collision, then the name will be VLAN100ALT2.
Format
create vlan vlanid <vidlist> {advertisement}
Parameters
vlanid - The VLAN ID list to be created.
<vidlist> - Enter the VLAN ID list here.
advertisement - (Optional) Specify the VLAN as being able to be advertised out.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
<vlan_name 32> - Enter the VLAN name you want to add ports to. This name can be up to 32
characters long.
add - (Optional) Specify to add tagged, untagged or forbidden ports to the VLAN.
tagged - Specify the additional ports as tagged.
untagged - Specify the additional ports as untagged.
forbidden - Specify the additional ports as forbidden.
delete - (Optional) Specify to delete ports from the VLAN.
<portlist> - (Optional) Enter the list of ports used for the configuration here.
advertisement - (Optional) Specify the GVRP state of this VLAN.
enable - Specify to enable advertisement for this VLAN.
disable - Specify to disable advertisement for this VLAN.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To add 4 through 8 as tagged ports to the VLAN v2:
This command allows you to configure multiple VLANs at one time. But conflicts will be generated
if you configure the name of multiple VLANs at one time.
xStack® DES-3200 Series Layer 2 Managed Fast Ethernet Switch CLI Reference Guide
Parameters
<vidlist> - Enter a list of VLAN IDs to configure.
add - (Optional) Specify to add tagged, untagged or forbidden ports to the VLAN.
tagged - Specify the additional ports as tagged.
untagged - Specify the additional ports as untagged.
forbidden - Specify the additional ports as forbidden.
delete - (Optional) Specify to delete ports from the VLAN.
<portlist> - (Optional) Enter the list of ports used for the configuration here.
advertisement - (Optional) Specify the GVRP state of this VLAN.
enable - Specify to enable advertisement for this VLAN.
disable - Specify to disable advertisement for this VLAN.
name - (Optional) The new name of the VLAN.
<vlan_name 32> - Enter the VLAN name here. This name can be up to 32 characters long.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To add 4 through 8 as tagged ports to the VLAN ID from 10-20:
<portlist> - A range of ports for which you want ingress checking. The port list is specified by
listing the beginning port number on the Switch, separated by a colon. Then 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.
all - Specify all ports for ingress checking.
gvrp_state - (Optional) Enabled or disables GVRP for the ports specified in the port list.
enable - Specify that GVRP for the specified ports will be enabled.
disable - Specify that GVRP for the specified ports will be disabled.
ingress_checking - (Optional) Enables or disables ingress checking for the specified portlist.
enable - Specify that ingress checking will be enabled for the specified portlist.
disable - Specify that ingress checking will be disabled for the specified portlist.
26
Loading...
+ 622 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.