Reproduction in any manner whatsoever without the written permission of D-Link Computer Corporation
is strictly forbidden.
Trademarks used in this text: D-Link and the D-Link logo are trademarks of D-Link Computer
Corporation; Microsoft and Windows are registered trademarks of Microsoft Corporation.
Other trademarks and trade names may be used in th
is document to refer to either the entities claiming the marks and names or their products. D-Link
Computer Corporation disclaims any proprietary interest in trademarks and trade names other than its
own.
FCC Warning
This equipment has been tested and found to comply with the limits for a Class A digital device,
pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against
harmful interference when the equipment is operated in a commercial environment. This equipment
generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance
with this user’s guide, may cause harmful interference to radio communications. Operation of this
equipment in a residential area is likely to cause harmful interference in which case the user will be
required to correct the interference at hisown expense.
CE Mark Warning
This is a Class A product. In a domestic environment, this product may cause radio interference in
which case the user may be required to take adequate measures.
Warnung!
Dies ist ein Produkt der Klasse A. Im Wohnbereich kann dieses Produkt Funkstoerungen verursachen. In
diesem Fall kann vom Benutzer verlangt werden, angemessene Massnahmen zu ergreifen.
Precaución!
Este es un producto de Clase A. En un entorno doméstico, puede causar interferencias de radio, en
cuyo case, puede requerirse al usuario para que adopte las medidas adecuadas.
Attention!
Ceci est un produit de classe A. Dans un environnement domestique, ce produit pourrait causer des
interférences radio, auquel cas l`utilisateur devrait prendre les mesures adéquates.
Attenzione!
Il presente prodotto appartiene alla classe A. Se utilizzato in ambiente domestico il prodotto può causare
interferenze radio, nel cui caso è possibile che l`utente debba assumere provvedimenti adeguati.
USING THE CONSOLE CLI ..................................................................................................................................... 3
show account ........................................................................................................................................................................11
show session .........................................................................................................................................................................13
show switch ..........................................................................................................................................................................13
show jumbo_frame ...............................................................................................................................................................15
enable web ...........................................................................................................................................................................16
disable web ...........................................................................................................................................................................17
show autoconfig ...................................................................................................................................................................19
enable auto learning .............................................................................................................................................................19
disable auto learning ............................................................................................................................................................19
save ......................................................................................................................................................................................20
show cpu port .......................................................................................................................................................................28
reset cpu port ........................................................................................................................................................................29
show time_range ..................................................................................................................................................................31
show tech support .................................................................................................................................................................32
clear tech support .................................................................................................................................................................33
show autoimage....................................................................................................................................................................35
SMTP SERVER COMMANDS ............................................................................................................................... 36
show smtp ............................................................................................................................................................................37
show greeting_message ........................................................................................................................................................42
SWITCH PORT COMMANDS ................................................................................................................................ 43
show ports ............................................................................................................................................................................45
show loopdetect....................................................................................................................................................................49
DOS PREVENTION COMMANDS ......................................................................................................................... 51
show dos_prevention ............................................................................................................................................................52
PPPOE CIRCUIT ID INSERTION COMMANDS .................................................................................................... 54
config pppoe circuit_id_insertion state ................................................................................................................................54
show pppoe circuit_id_insertion ..........................................................................................................................................55
show pppoe circuit_id_insertion ports .................................................................................................................................56
DHCP SERVER SCREENING COMMANDS ......................................................................................................... 57
config filter dhcp_server log state ........................................................................................................................................59
show filter dhcp_server ........................................................................................................................................................59
show dhcp_server screening ................................................................................................................................................59
config filter dhcpv6_server log state ....................................................................................................................................62
show filter dhcpv6_server ....................................................................................................................................................62
show address_binding ip_mac log .......................................................................................................................................66
show address_binding ..........................................................................................................................................................68
show address_binding auto_scan list ...................................................................................................................................69
show address_binding dhcp_snoop ......................................................................................................................................70
show address_binding dhcp_pd_snoop ................................................................................................................................72
show address_binding roaming ............................................................................................................................................73
create snmp user ...................................................................................................................................................................78
delete snmp user ...................................................................................................................................................................79
show snmp user ....................................................................................................................................................................79
show snmp view ...................................................................................................................................................................81
create snmp community .......................................................................................................................................................81
delete snmp community .......................................................................................................................................................82
show snmp community ........................................................................................................................................................82
show snmp engineID ............................................................................................................................................................83
create snmp group ................................................................................................................................................................84
delete snmp group ................................................................................................................................................................85
show snmp global state ........................................................................................................................................................86
show snmp groups ................................................................................................................................................................86
show snmp host ....................................................................................................................................................................88
show snmp v6host ................................................................................................................................................................90
show trusted_host .................................................................................................................................................................93
show snmp traps ...................................................................................................................................................................95
show snmp traps linkchange_traps .......................................................................................................................................97
show firmware information ................................................................................................................................................110
show config ........................................................................................................................................................................111
show boot_file ....................................................................................................................................................................112
config dhcp_relay port .......................................................................................................................................................116
config dhcp_relay add ipif System .....................................................................................................................................116
config dhcp_relay delete ipif System .................................................................................................................................117
show dhcp_relay port_option_82 .......................................................................................................................................120
show dhcp_relay ................................................................................................................................................................120
config dhcp_local_relay port ..............................................................................................................................................122
show dhcp_local_relay .......................................................................................................................................................123
show dhcpv6_relay ............................................................................................................................................................124
show dhcpv6_relay option_38 ...........................................................................................................................................128
CPU PROTECTION COMMANDS ....................................................................................................................... 129
config cpu_protect type ......................................................................................................................................................130
show cpu_protect ...............................................................................................................................................................130
show gratuitous_arp ...........................................................................................................................................................135
show power_saving ................................................................................................................................ ............................138
show packet ports ...............................................................................................................................................................139
show error ports .................................................................................................................................................................140
show utilization ..................................................................................................................................................................141
save log ..............................................................................................................................................................................142
show log .............................................................................................................................................................................143
show syslog ........................................................................................................................................................................144
show syslog host ................................................................................................................................................................149
cable diagnostic port ..........................................................................................................................................................150
config stp version ...............................................................................................................................................................156
show stp .............................................................................................................................................................................158
show stp ports ....................................................................................................................................................................159
show stp instance ...............................................................................................................................................................159
show stp mst_config_id......................................................................................................................................................160
show flood_fdb ..................................................................................................................................................................169
show flow_meter ................................................................................................................................................................170
show multicast_fdb ............................................................................................................................................................170
show fdb .............................................................................................................................................................................171
show multicast filter port_mode .........................................................................................................................................172
show auto_fdb ....................................................................................................................................................................174
BROADCAST STORM CONTROL COMMANDS ............................................................................................... 175
config traffic control ..........................................................................................................................................................175
config traffic control auto_recover_time ............................................................................................................................176
show traffic control ............................................................................................................................................................176
show password_recovery ...................................................................................................................................................179
show scheduling .................................................................................................................................................................182
show bandwidth_control ....................................................................................................................................................184
config cos mac_mapping....................................................................................................................................................184
show cos mac_mapping .....................................................................................................................................................185
delete cos mac_mapping ....................................................................................................................................................185
config cos ip_mapping ................................................................................................................................ .......................186
show cos ip_mapping .........................................................................................................................................................186
delete cos ip_mapping ........................................................................................................................................................187
config cos ipv6_mapping ...................................................................................................................................................187
show cos ipv6_mapping .....................................................................................................................................................187
delete cos ipv6_mapping ....................................................................................................................................................188
config cos ipv6_tc_mapping ..............................................................................................................................................188
delete cos ipv6_tc_mapping ...............................................................................................................................................189
show cos ipv6_tc_mapping ................................................................................................................................................189
config cos mapping ............................................................................................................................................................190
show cos mapping ..............................................................................................................................................................190
config cos protocol_mapping .............................................................................................................................................191
show cos protocol_mapping ...............................................................................................................................................191
delete cos protocol_mapping ..............................................................................................................................................192
config cos vlanid_mapping ................................................................................................................................................192
show cos vlanid_mapping ..................................................................................................................................................193
delete cos vlanid_mapping .................................................................................................................................................193
config cos tos value ................................................................................................................................ ............................193
show cos tos .......................................................................................................................................................................194
config cos tcp_port_mapping .............................................................................................................................................195
show cos tcp_port_mapping ...............................................................................................................................................195
delete cos tcp_port_mapping ..............................................................................................................................................195
config cos udp_port_mapping ............................................................................................................................................196
show cos udp _port_mapping .............................................................................................................................................196
delete cos udp_port_mapping ............................................................................................................................................197
show 802.1p user_priority ..................................................................................................................................................198
show 802.1p default_priority .............................................................................................................................................199
show scheduling_mechanism .............................................................................................................................................200
show dscp_mapping ...........................................................................................................................................................202
create rmon collection history ............................................................................................................................................206
delete rmon collection history ............................................................................................................................................207
show rmon ..........................................................................................................................................................................208
show rmon statistics ...........................................................................................................................................................209
PORT MIRRORING COMMANDS ....................................................................................................................... 210
show mirror ........................................................................................................................................................................212
show vlan ...........................................................................................................................................................................217
show dot1v_protocol_group ...............................................................................................................................................220
config port dot1v ports all ..................................................................................................................................................220
show port dot1v ..................................................................................................................................................................221
show gvrp ...........................................................................................................................................................................222
show gvrp timer .................................................................................................................................................................222
show vlan_trunk .................................................................................................................................................................223
show asymmetric_vlan .......................................................................................................................................................225
show pvid auto_assign .......................................................................................................................................................226
show qinq ...........................................................................................................................................................................229
show vlan_translation ........................................................................................................................................................231
config link_aggregation state .............................................................................................................................................235
show link_aggregation .......................................................................................................................................................236
BASIC IP COMMANDS ........................................................................................................................................ 237
show bpdu_protection ........................................................................................................................................................244
show ethernet_oam ports....................................................................................................................................................248
show ethernet_oam ports....................................................................................................................................................249
show ethernet_oam ports....................................................................................................................................................250
show ethernet_oam ports....................................................................................................................................................251
show mac_notification .......................................................................................................................................................255
show mac_notification ports ..............................................................................................................................................255
show igmp_snooping static_group .....................................................................................................................................263
show igmp access_authentication ports .............................................................................................................................267
show igmp_snooping .........................................................................................................................................................269
show igmp_snooping group ...............................................................................................................................................270
show igmp_snooping forwarding .......................................................................................................................................270
show igmp_snooping host ................................................................................................................................ ..................271
show igmp_snooping multicast_vlan .................................................................................................................................272
show igmp_snooping multicast_vlan_group ......................................................................................................................272
show router_ports ...............................................................................................................................................................273
DIGITAL DIAGNOSTIC MONITORING COMMANDS......................................................................................... 274
show ddm ports ..................................................................................................................................................................275
show mld_snooping multicast_vlan_group ........................................................................................................................282
show mld_snooping ...........................................................................................................................................................286
show mld_snooping forwarding ................................................................ ................................................................ .........287
show mld_snooping group .................................................................................................................................................288
show mld_snooping mrouter_ports ....................................................................................................................................288
show mld_snooping host ....................................................................................................................................................289
LIMITED IP MULTICAST ADDRESS COMMANDS ............................................................................................ 290
show mcast_filter_profile...................................................................................................................................................293
show limited_multicast_addr .............................................................................................................................................294
show max_mcast_group .....................................................................................................................................................295
show l2protocol_tunnel ......................................................................................................................................................298
show 802.1x .......................................................................................................................................................................302
show 802.1x auth_state ................................................................................................ ................................ ......................302
show 802.1x auth_configuration ........................................................................................................................................303
show radius ........................................................................................................................................................................309
config 802.1x fwd_pdu system ..........................................................................................................................................309
show 802.1x fwd_pdu system status ..................................................................................................................................310
show 802.1x guest_vlan .....................................................................................................................................................312
create 802.1x user ..............................................................................................................................................................313
show 802.1x user................................................................................................................................................................313
delete 802.1x user ..............................................................................................................................................................314
show port_security .............................................................................................................................................................317
show sntp ...........................................................................................................................................................................320
config time .........................................................................................................................................................................321
show time ...........................................................................................................................................................................323
show ArpSpoofing .............................................................................................................................................................326
config arp_aging time ........................................................................................................................................................327
show arpentry ................................................................................................................................................................ .....329
show arpentry aging_time ..................................................................................................................................................330
show iproute .......................................................................................................................................................................332
show mac_based_vlan ........................................................................................................................................................334
D-LINK UNIDIRECTIONAL LINK DETECTION (DULD) COMMANDS .............................................................. 335
show duld ports ..................................................................................................................................................................336
show duld recover_timer ....................................................................................................................................................337
show ipv6 neighbor_cache .................................................................................................................................................339
show ipv6 nd ......................................................................................................................................................................340
config ipv6 nd ns ipif System .............................................................................................................................................340
show ipv6route ................................ ................................................................ ................................ ...................................342
enable ipif_ipv6_link_local_auto System ..........................................................................................................................342
disable ipif_ipv6_link_local_auto System .........................................................................................................................343
show log_save_timing ........................................................................................................................................................345
show log_software_module ...............................................................................................................................................345
show log .............................................................................................................................................................................346
COMMAND HISTORY LIST COMMANDS .......................................................................................................... 347
show command_history .....................................................................................................................................................348
dir .......................................................................................................................................................................................349
show ssh authmode ............................................................................................................................................................352
show ssh server ..................................................................................................................................................................353
show ssh algorithm .............................................................................................................................................................354
config ssh user ....................................................................................................................................................................355
show ssh user authmode .....................................................................................................................................................355
show ssl ................................................................................................................................................................ ..............357
show authen_login .............................................................................................................................................................362
show authen_policy ............................................................................................................................................................363
show authen_enable ...........................................................................................................................................................366
show authen application .....................................................................................................................................................368
show authen parameter .......................................................................................................................................................369
show authen server_host ....................................................................................................................................................372
show authen server_group ..................................................................................................................................................375
show lacp ...........................................................................................................................................................................378
show lldp ............................................................................................................................................................................384
show lldp ports ...................................................................................................................................................................385
show lldp local_ports .........................................................................................................................................................386
show lldp remote_ports ......................................................................................................................................................386
show lldp power_pse_tlv....................................................................................................................................................391
show lldp mgt_addr ............................................................................................................................................................392
show lldp statistics .............................................................................................................................................................393
ACCESS CONTROL LIST COMMANDS ............................................................................................................ 394
show access_profile ...........................................................................................................................................................401
show cpu_access_profile ....................................................................................................................................................407
show traffic_segmentation .................................................................................................................................................409
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
1
INTRODUCTION
The DES-1210-52/ME is L2 Metro Ethernet switche. It consists of 48 10/100Mbps ports plus 4 combo
10/100/1000Base-T ports and 2 dedicated SFP ports.
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:
9600 bps
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 then connected to the Switch’s serial port via an RJ-45 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
There is no initial username or password. Just press the Enter key twice to display the CLI input cursor
− DES-1210-52/ME: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 changed,
but can be found on the initial boot console screen – shown below.
1
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
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 in the Configuration folder.
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:
Starting at the command line prompt, enter the command 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, users 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.
Figure 1–3 Assigning an IP Address
In the above example, the Switch was assigned an IP address of 10.90.90.91 with a subnet mask of
255.0.0.0. The system message Success. indicates that the command was executed Success.fully. The
Switch can now be configured and managed via Telnet, SNMP MIB browser and the CLI or via the Webbased management agent using the above IP address to connect to the Switch.
2
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
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 is loaded.
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 a 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.
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 (for example, the HyperTerminal program included with
the Windows operating system) using an RJ-45 serial cable. Your terminal parameters will need to be set
to:
VT-100 compatible
9600 bps
8 data bits
No parity
One stop bit
No flow control
The same functions may also be accessed over a Telnet interface. Once an IP address for the Switch has
been set, A Telnet program can be used (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 to logged in, the console looks like this:
Figure 2–1 Initial Console Screen after Logging In
Commands are entered at the command prompt, DES-1210-52/ME:5#
There are a number of helpful features included in the CLI. Entering the ? command displays a list of all
of the top-level commands.
3
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
Figure 2–2 The ? Command
When entering a command without its required parameters, the CLI displays the prompt: command:
config account message and the options listed below.
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, command: config account. 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 subcommands, in sequential order, by pressing the ? key.
To re-enter the previous command at the command prompt, press the up arrow cursor key. The previous
command appears 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 command: config account prompt. The up arrow cursor control key
4
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
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. The < > can
also indicate a word with a number for character allowed.
If a command is entered that is unrecognized by the CLI, the top-level commands are displayed under
the Available commands: prompt.
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.
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 in the example, 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.
5
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
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.
In the above syntax example, specify admin, oper, or user. Do not
type the vertical bar.
Example
Command
create account user newuser1
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.
All commands are case-sensitive. Be sure to disable Caps Lock or any other unwanted function that
changes text case.
6
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
{braces}
Purpose
Encloses an optional value or set of optional arguments.
Syntax
reset
Description
execute “reset” will return the switch to its factory default setting.
Example
command
reset
Please be aware that all configuration will be reset to default value.
Are you sure you want to proceed with system reset now? (Y/N)[N] N
Line Editing Key Usage
Delete
Deletes the character under the cursor and then shifts the
remaining characters in the line to the left.
Backspace
Deletes the character to the left of the cursor and then shifts the
remaining characters in the line to the left.
Left Arrow
Moves the cursor to the left.
Right Arrow
Moves the cursor to the right.
Up Arrow
Repeats the previously entered command. Each time the up arrow
is pressed, the command previous to that displayed appears. This
way it is possible to review the command history for the current
session. Use the down arrow to progress sequentially forward
through the command history list.
Down Arrow
The down arrow displays 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.
7
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
The Basic Switch commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
8
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
Command
Parameter
weekdays <daylist 32> date from_day year <start_year 2011-2029> month
<start_mth 1-12> date <start_date 1-31> to_day year <end_year 2011-2029>
month <end_mth 1-12> date <end_date 1-31>] | delete]
show time_range
show tech support
Clear tech support
enable password encryption
Purpose
Used to enable password encryption on a user account.
Syntax
enable password encryption
Description
The user account configuration information will be stored in the
configuration file, and can be applied to the system at a time in the
future. If the password encryption is enabled, the password will be in
encrypted form. If password encryption is disabled and the user
specifies the password in encrypted form, or if the password has
been converted to encrypted form by the last enabled password
encryption command, the password will still be in encrypted form. It
can not revert back to plain text.
Parameters
None.
Restrictions
Only Administrator level users can issue this command.
Used to disable password encryption on a user account.
Syntax
disable password encryption
Description
The user account configuration information will be stored in the
configuration file, and can be applied to the system at a time in the
future. If the password encryption is enabled, the password will be in
encrypted form. If password encryption is disabled and the user
specifies the password in encrypted form, or if the password has
been converted to encrypted form by the last enabled password
encryption command, the password will still be in encrypted form. It
can not revert back to plain text.
Parameters
None.
Each command is listed in detail, as follows:
Example usage:
To enable password encryption on the Switch:
9
Restrictions
Only Administrat level users can issue this command.
The create account command creates an administrator, operator,
or user account that consists of a username and an optional
password. Up to 31 accounts can be created. You can enter
username and Enter. In this case, the system prompts for the
account’s password, which may be between 0 and 15 characters.
Alternatively, you can enter the username and password on the
same line.
Parameters
admin − Name of the administrator account.
opeator − Specify an operator level account.
power-user − Specify an power-user level account.
user − Specify a user account with read-only permissions.
<username 1-15> − The account username may be between 1 and
15 characters.
password <password_string> {encrypted} - the account password
can be included, and (optionally) can be encrypted.
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.
NOTE: You are not required to enter a User Name. However, if you do not enter a User Name,
you cannot perform the following actions:
Create a monitor or operator (level 1 or level 14) users until an administrator user (level 15) is
defined.
Delete the last administrator user if there are monitor and/or operator users defined.
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
Example usage:
To create an administrator-level user account with the username ‘dlink’:
10
Enter a case-sensitive new password:*****
Enter the new password again for confirmation:*****
Success.
DES-1210-52/ME:5#
config account
Purpose
To change the password for an existing user account.
Syntax
config account <username 15>
Description
The config account command changes the password for a user
account that has been created using the create account command.
The system prompts for the account’s new password, which may be
between 0 and 15 characters.
Parameters
<username 15>− the account username.
Restrictions
Only Administrator-level users can issue this command.
DES-1210-52/ME:5# config account dlink
Enter a old password:****
Enter a case-sensitive new password:******
Enter the new password again for confirmation:******
Success.
DES-1210-52/ME:5#
show account
Purpose
To display information about all user accounts on the Switch.
Syntax
show account
Description
The show account command displays all account usernames and
their access levels created on the Switch. Up to 31 user accounts
can exist on the Switch at one time.
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.
DES-1210-52/ME:5# show account
Command: show account
Username Access Level
------------------ ---------------------
Example usage:
To configure the user password of ‘dlink’ account:
DES-1210-52/ME L2 Metro Ethernet Switch CLI Reference Guide
Example usage:
To display the account which have been created:
11
dlink Admin
Total Entries : 1
DES-1210-52/ME:5#
delete account
Purpose
To delete an existing user account.
Syntax
delete account <username 15>
Description
The delete account command deletes a user account that has been
created using the create account command.
Parameters
<username 15>− the account username.
Restrictions
Only Administrator-level users can issue this command.
DES-1210-52/ME:5# delete account System
Command: delete account System
Success.
DES-1210-52/ME:5#
reset account
Purpose
To deletes all the previously created accounts.
Syntax
reset account
Description
The reset account command deletes all the previously created
accounts.
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.