DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#
Note: By default, there is one administrator account already created. The username
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 User Manual. For detailed information on installing hardware please also refer to
the User Manual.
1-1 Accessing the Switch via the Ser ial 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 message
will be displayed, “Press any key to login…”. After pressing any key on the keyboard, the
following scr ee n should be visi bl e.
DGS-3710-12C Gigabit Ethernet Switch
Command Line Interface
Firmware: Build 1.00.029
Copyright(C) 2012 D-Link Corporation. All rights reserved.
UserName:admin
PassWord:****
Enter the UserName and Password her e and press the Enter key, after each entry, to display the
CLI input cursor − DGS-3710-12C:admin#. This is the command line where all commands are
input.
for this default account is admin and the password is 1234.
1
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin# config ipif System ipaddress 10.90.90.1/8
DGS-3710-12C:admin#
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.9 0. 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, 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 S wit c h must be set before it ca n 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 th e 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
Command: config ipif System ipaddress 10.90.90.1/8
Success.
2
In the above example, the Switch was assigned an IP address of 10.90.90.1 with a subnet mask of
DGS-3710-12C:admin#?
CTRL+CESCq Quit SPACEn Next Page ENTER Next Entry a All
DGS-3710-12C:admin#config account
DGS-3710-12C:admin#
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.
There are a number of helpful features included in the CLI. Entering the ? com mand will display a
list of all of the top-level commands.
Command: ?
Option Description
-----------------------------------------------------------------------------.. go to parent directory
? Used to display all commands and specific command usage,
descriptions.
cable_diag cable diagnostic
cfm
clear
config
create
debug
delete
disable
download
enable
login Used to log in a user to the switch's console.
logout Used to log out a user from the switch's console.
no Close IP-MAC Binding debug event and DHCP.
ping Used to test the connectivity between network devices.
ping6
reboot Used to restart the switch.
reconfig Used to re-telnet to member.
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
When entering a command without its required parameters, the CLI will prompt you with a Next
possible completions: message.
Command: config account
Next possible completions:
Option Description
-----------------------------------------------------------------------------<username> The username is between 1 and 15 characters
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
3
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#config account
DGS-3710-12C:admin#
DGS-3710-12C:admin#the
ping6
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.
Command: config account
Next possible completions:
Option Description
-----------------------------------------------------------------------------<username> The username is between 1 and 15 characters
In the above example, the command config account was entered without the required parameter
<username>, the CLI returned the Next possible completions: <username> prompt. The up
arrow cursor control key was pressed to re-enter the previous command (config account) at the
command prompt. Now the appropriate username can be entered and the config account
command re-executed.
If a command is entered, that is not recognized by the CLI, the top-level commands will be
displayed under the Available commands: prompt.
Available commands:
Option Description
-----------------------------------------------------------------------------.. go to parent directory
? Used to display all commands and specific command usage,
descriptions.
cable_diag cable diagnostic
cfm
clear
config
create
debug
delete
disable
download
enable
login Used to log in a user to the switch's console.
logout Used to log out a user from the switch's console.
no Close IP-MAC Binding debug event and DHCP.
ping Used to test the connectivity between network devices.
4
reboot Used to restart the switch.
reconfig Used to re-telnet to member.
CTRL+CESCq Quit SPACEn Next Page ENTER Next Entry a All
DGS-3710-12C:admin#show
CTRL+CESCq Quit SPACEn Next Page ENTER Next Entry a All
Syntax
Description
angle brackets < >
Encloses a variable or value. Users must specify the variable or value.
The top-level commands consist of commands such as show or config. Most of these commands
require one or more param eter s to narr o w the top-level command. T his is equival ent 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.
802.1x
access_profile Used to display current access list table.
account Used to display user accounts.
accounting Used to show accounting state
acct_client Used to show RADIUS accounting client.
address_binding
arp_spoofing_prevention Show ARP spoofing prevention status.
arpentry Used to display the ARP table.
attack_log Show attack log messages.
auth_client Used to show RADIUS authentication client.
auth_diagnostics Used to show authentication diagnostics.
auth_session_statistics Used to show session statistics.
auth_statistics Used to show authentication statistics.
authen
authen_enable Used to show a user-defined or default or all method
lists for promoting user's privilege to Admin level
authen_login Used to show a user-defined or default or all method
lists of authentication methods for user login
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
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-3 Command Syntax Symbols
For example, in the syntax
5
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
{state [enable | disable]}
square brackets [ ]
Encloses a required value or list of required arguments. Only on e
vertical bar |
Separates mutually exclusive items in a list, one of which must be
braces { }
Encloses an optional value or a list of optional arguments. One or
parentheses ( )
Indicates at least one or more of the values or arguments in the
ipif <ipif_name 12>
12 means the maximum length of the IP interface name.
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.
CTRL+R
Toggle on and off. When toggled on, inserts text and shifts previous
Left Arrow
Move cursor to left.
Right Arrow
Move cursor to right
users must supply an IP interface name for <ipif_name 12> ,and a
VLAN name for <vlan_name 32> when entering the command. DO
NOT TYPE THE ANGLE BRACKETS.
value or argument must be specified. For example, in the syntax
users must specify either the admin, operator or user parameter in the
command. DO NOT TYPE THE VERTICAL BAR.
more values or arguments can be specified. For example, in the syntax
reset {[config | system {default}]} {force_agree}
users may choose configure or system in the command. DO NOT
TYPE THE BRACES.
preceding syntax enclosed by braces must be specified. For example,
in the syntax
config dhcp_relay {hops <value 1-16> | time <sec 0-65535>} (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 argum ent or value
within the braces must be specified. DO NOT TYPE THE
PARENTHESES.
metric <value 1-31>
1-31 means the legal range of the metric value.
1-4 Line Editing Keys
text to right.
6
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
Tab
Help user to select appropriate token.
P or p
Display the previous page.
N or n or Space
Display the next page.
CTRL+C
Escape from displayed pages.
ESC
Escape from displayed pages.
Q or q
Escape from displayed pages.
R or r
refresh the displayed pages
A or 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
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
This command creates user accounts. The username is between 1 and 15 characters, the
password is between 0 and 15 characters. The number of accounts (including admin, operator,
and user) is up to eight. By default, there is one administrator account already created. The
username for this default account is admin and the password is 1234.
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
admin - Specifies the name of the admin account.
operator - Specifies the name of the operator account.
user - Specifies the name of the user account.
<username 15> - Specifies a username of up to 15 characters.
DGS-3710-12C:admin#create account admin dlink
DGS-3710-12C:admin#
DGS-3710-12C:admin##create account operator Sales
DGS-3710-12C:admin#
DGS-3710-12C:admin##create account user System
DGS-3710-12C:admin#
Parameters
Restrictions
Only Administrator-level users can issue this command.
Example
To create the admin-level user “dlink”:
Command: create account admin dlink
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
To create the operator-level user “Sales”:
Command: create account operator Sales
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
To create the user-level user “System”:
Command: create account user System
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
2-2enable password encryption
Description
The user account configuration information will be stored in the configuration file, and can be
applied to the system later. If the password encryption is enabled, the password will be in
encrypted form when it is stored in the configuration file. When password encryption is disabled,
the password will be in plain text form when it is stored in the configuration file. However, if the
9
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#enable password encryption
DGS-3710-12C:admin#
created user account directly uses the encrypted password, the password will still be in the
encrypted form.
Format
enable password encryption
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.
Example
To enable password encryption:
Command: enable password encryption
Success.
2-3disable password encryption
Description
The user account configuration information will be stored in the configuration file, and can be
applied to the system later. If the password encryption is enabled, the password will be in
encrypted form when it is stored in the configuration file. When password encryption is disabled,
the password will be in plain text form when it is stored in the configuration file. However, if the
created user account directly uses the encrypted password, the password will still be in the
encrypted form.
Format
disable password encryption
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.
10
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#disable password encryption
DGS-3710-12C:admin#
<username 15> - Specifies the name of the account. The account must already be defined.
encrypt - (Optional) Specifies the encryption type, plain_text or sha_1.
password, the length is fixed to 35 bytes long. The password is case-sensitive.
<password> - Specifies the password.
DGS-3710-12C:admin#config account dlink
DGS-3710-12C:admin#
Example
To disable password encryption:
Command: disable password encryption
Success.
2-4config account
Description
When the password information is not specified in the command, the system will prompt the user
to input the password interactively. For this case, the user can only input the plain text password.
If the password is present in the command, the user can select to input the password in the plain
text form or in the encrypted form. The encryption algorithm is based on SHA-1.
This command is used to display user accounts that have been created.
Format
show account
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.
Example
To display accounts that have been created:
Command: show account
Current Accounts:
Username Access Level
--------------- -----------System User
Sales Operator
dlink Admin
2-6delete account
Description
This command is used to delete an existing account.
Format
delete account <username>
12
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<username> - Specifies the name of the user who will be deleted.
DGS-3710-12C:admin#delete account System
DGS-3710-12C:admin#
DGS-3710-12C:admin#show session
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
Parameters
Restrictions
Only Administrator-level users can issue this command. One acti ve admin user must exist.
Example
To delete the user account “System”:
Command: delete account System
Success.
2-7show session
Description
This command is used to display a list of current users which are logged in to CLI sessions.
Format
show session
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To display accounts a list of currently logged-in users:
Command: show session
ID Live Time From Level User
--- ------------ --------------------------------------- ----- -------------- 8 00:09:59.090 Serial Port admin Anonymous
Total Entries: 1
13
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#show switch
CTRL+CESCq Quit SPACEn Next Page ENTER Next Entry a All
2-8show switch
Description
This command is used to display the switch information.
Format
show switch
Parameters
None.
Restrictions
None.
Example
To display the switch information:
Command: show switch
Device Type : DGS-3710-12C Gigabit Ethernet Switch
MAC Address : F0-7D-68-25-CB-40
IP Address : 10.90.90.90 (Manual)
VLAN Name : default
Subnet Mask : 255.0.0.0
Default Gateway : 0.0.0.0
Boot PROM Version : Build 1.00.001
Firmware Version : Build 1.00.029
Hardware Version : A1
Customer ID : World-Wide
System Name :
System Location :
System Uptime : 0 days, 1 hours, 35 minutes, 8 seconds
System Contact :
Spanning Tree : Disabled
GVRP : Disabled
IGMP Snooping : Disabled
MLD Snooping : Disabled
Telnet : Enabled (TCP 23)
Web : Enabled (TCP 80)
SNMP : Disabled
SSL Status : Disabled
14
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#show environment
CTRL+CESCq Quit SPACEn Next Page p Previous Page r Refresh
trap - Specifies to configure the warning temperature trap.
log - Specifies to configure t he war ning temperature log.
state - Enable or disable either the trap or log state for a warning temperature event. The default
2-9show environment
Description
This command is used to display the device internal and external power and internal temperature
status.
Format
show environment
Parameters
None.
Restrictions
None.
Example
To display the switch hardware status:
Command: show environment
Left Fan 1 : Speed 0
Left Fan 2 : Speed 0
Left Fan 3 : Reserved
Current Temperature(Celsius) : 28
Fan High Temperature Threshold(Celsius) : 51
Fan Low Temperature Threshold(Celsius) : 40
High Warning Temperature Threshold(Celsius) : 70
Low Warning Temperature Threshold(Celsius) : 5
2-10config temperature
Description
This command is used to configure the warning trap or log state of the system internal temperature.
Format
config temperature [trap | log] state [enable | disable]
Parameters
15
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
is enable.
disable - Disable either the trap or log state for a warning temperature event.
DGS-3710-12C:admin#config temperature trap state enable
DGS-3710-12C:admin#
DGS-3710-12C:admin#config temperature log state enable
DGS-3710-12C:admin#
high - Specifies the high threshold value. The high threshold must bigger than the low threshold.
<temperature> - Specifies the high threshold value.
low - Specifies the lo w thres hold va lue .
<temperature>
enable - Enable either the trap or log state for a warning temperature event.
Restrictions
None.
Example
To enable the warning temperature trap state:
Command: config temperature trap state enable
Success.
To enable the warning temperature log state:
Command: config temperature log state enable
Success.
2-11config temperature threshold
Description
This command is used to configure the warning temperature high threshold or low threshold. When
temperature is above the high threshold or below the low threshold, SW will send alarm traps or
keep the logs.
Format
config temperature threshold {high <temperature> | low <temperature>}(1)
Parameters
- Specifies the low threshold value.
Restrictions
None.
16
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#config temperature threshold high 80
DGS-3710-12C:admin#
DGS-3710-12C:admin#show serial_port
DGS-3710-12C:admin#
Example
To configure the alarm temperature threshold high of 80:
Command: config temperature threshold high 80
Success.
2-12show serial_port
Description
This command is used to display the current console port setting.
Format
show serial_port
Parameters
None.
Restrictions
None.
Example
To display the console port setting:
Command: show serial_port
Baud Rate : 115200
Data Bits : 8
Parity Bits : None
Stop Bits : 1
Auto-Logout : 10 mins
2-13config 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.
17
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
baud_rate - Specifies the baud rate value. The default baud rate is 115200.
115200 - Specifies a baud rate of 115200.
auto_logout - Specifies the timeout value. The default timeout is 10_minutes.
15_minutes - Specifies when the idle value is over 15 minutes, the device will auto logout.
9600 - Specifies a baud rate of 9600.
19200 - Specifies a baud rate of 19200.
38400 - Specifies a baud rate of 38400.
never - Specifies to never timeout.
2_minutes - Specifies when the idle value is over 2 m inutes, the de vic e will auto l ogou t .
5_minutes - Specifies when the idle value over 5 minutes, the device will auto logout.
10_minutes - Specifies when the idle value is over 10 minutes, the device will auto logout.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To configure the baud rate:
Command: config serial_port baud_rate 9600
Success.
2-14enable clipaging
Description
This command is used to enable pausing of the screen display when 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.
18
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#enable clipaging
DGS-3710-12C:admin#
DGS-3710-12C:admin#disable clipaging
DGS-3710-12C:admin#
Example
To enable pausing of the screen display when show command output reaches the end of the page:
Command: enable clipaging
Success.
2-15disable clipaging
Description
This command is used to disable pausing of the screen display when 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 comm and output r eac hes t h e end of the p ag e:
Command: disable clipaging
Success.
2-16enable telnet
Description
This command is used to enable Telnet and configure a por t number. The default setting is
enabled and the port number is 23.
Format
enable telnet {<tcp_port_number 1-65535>}
19
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<tcp_port_number 1-65535> - (Optional) Specifies the TCP port number. TCP ports are
numbered between 1 and 65535. The “well-known” TCP port for the Telnet protocol is 23.
DGS-3710-12C:admin#enable telnet 23
DGS-3710-12C:admin#
DGS-3710-12C:admin#disable telnet
DGS-3710-12C:admin#
Parameters
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To enable Telnet and configure a port number:
Command: enable telnet 23
Success.
2-17disable telnet
Description
This command is used to disable Telnet.
Format
disable telnet
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To disable Telnet:
Command: disable telnet
Success.
20
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<tcp_port_number 1-65535> - (Optional) Specifies the TCP port number. TCP ports are
numbered between 1 and 65535. The “well-know” TCP port for the Web protocol is 80.
DGS-3710-12C:admin#enable web 80
DGS-3710-12C:admin#
2-18enable web
Description
This command is used to enable Web UI and configure the port number. The default setting is
enabled and the port number is 80.
Format
enable web {<tcp_port_number 1-65535>}
Parameters
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To enable HTTP and configure port number:
Command: enable web 80
Note: SSL will be disabled if web is enabled.
Success.
2-19disable web
Description
This command is used to disable Web UI.
Format
disable web
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
21
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#disable web
DGS-3710-12C:admin#
config - (Optional) Specifies to save configuration.
<config_id 1-2> - Enter the configuration ID used here. This value can either be 1 or 2.
log - (Optional) Specifies to save log.
all - (Optional) Specifies to save changes to currently active configuration and save logs.
Note: If no keyword is specified, all changes will be saved to bootup configuration file.
DGS-3710-12C:admin#save
DGS-3710-12C:admin#
Example
To disable HTTP:
Command: disable web
Success.
2-20save
Description
This command is used to save the current configuration or log in non-volatile RAM.
Format
save {[config <config_id 1-2> | log | all]}
Parameters
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To save the current configuration to the bootup configuration file:
Command: save
Saving all configurations to NV-RAM.......... Done.
To save the current configuration to destination file, named 1:
22
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#save config 1
DGS-3710-12C:admin#
DGS-3710-12C:admin#save log
DGS-3710-12C:admin#
DGS-3710-12C:admin#save all
DGS-3710-12C:admin#
force_agree – (Optional) Specifies to immediately execute the reboot command without further
confirmation.
Command: save config 1
Saving all configurations to NV-RAM.......... Done.
To save a log to NV-RAM:
Command: save log
Saving all system logs to NV-RAM............. Done.
To save all the configurations and logs to NV-RAM:
Command: save all
Saving configuration and logs to NV-RAM...... Done.
2-21reboot
Description
This command is used to restart the switch.
Format
reboot {force_agree}
Parameters
Restrictions
Only Administrator -level users can issue this command.
Example
To restart the switch:
23
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#reboot
Please wait, the switch is rebooting…
config - (Optional) Specifies this keyword and all parameters are reset to default settings.
However, the device will neither save nor reboot.
system - (Optional) Specifies this keyword and all parameters are reset to default settings. Then
the switch will do factory reset, save, and reboot.
default – (Optional) Specifies that the System will reset to factory defaults.
force_agree - (Optional) Specifies and the reset command will be executed imm edi ate l y without
further confirmation.
Note: If no keyword is specified, all parameters will be reset to default settings except
DGS-3710-12C:admin#reset
DGS-3710-12C:admin#
Command: reboot
Are you sure you want to proceed with the system reboot?(y/n)
2-22reset
Description
This command is used to reset all switch parameters to the factory defaults.
Format
reset {[config | system {default}]} {force_agree}
Parameters
IP address, user account, and history log, but the device will neither save nor
reboot.
Restrictions
Only Administrator-level users can issue this command.
Example
To reset all the switch parameters except the IP address:
Command: reset
Are you sure to proceed with system reset except IP address?(y/n)
Success.
To reset the system configuration settings:
24
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#reset config
DGS-3710-12C:admin#
DGS-3710-12C:admin#reset system
Please wait, the switch is rebooting…
DGS-3710-12C:admin#login
UserName:
Command: reset config
Are you sure to proceed with system reset?(y/n)
Success.
To reset all system parameters, save, and restart the switch:
Command: reset system
Are you sure to proceed with system reset, save and reboot?(y/n)
Loading factory default configuration… Done.
Saving all configuration to NV-RAM… Done.
2-23login
Description
This command is used to log in to the switch.
Format
login
Parameters
None.
Restrictions
None.
Example
To login to the switch:
Command: login
2-24logout
Description
This command is used to log out of the switch.
25
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#logout
Username:
Format
logout
Parameters
None.
Restrictions
None.
Example
To logout of the switch:
Command: logout
***********
* Logout *
***********
Copyright(C) 2012 D-Link Corporation. All rights reserved.
DGS-3710-12C Fast Ethernet Switch
Command Line Interface
Firmware: Build 1.00.029
2-25clear
Description
This command is used to clear the terminal screen.
Format
clear
Parameters
None.
Restrictions
None.
Example
To clear the terminal screan:
26
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#clear
default - Specifies the default terminal width value.
<value 80-200> - Specifies a terminal width value betwee n 80 and 200 characters. The default
value is 80.
DGS-3710-12C:admin#config terminal width 90
DGS-3710-12C:admin#
Command: clear
2-26config terminal width
Description
This command is used to configure the terminal width.
Format
config terminal width [defa ult | < value 8 0-200>]
Parameters
Restrictions
None.
Example
To configure the terminal width:
Command: config terminal width 90
Success.
2-27show terminal width
Description
This command is used to display the configuration of the current terminal width.
Format
show terminal width
Parameters
None.
27
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#show terminal width
DGS-3710-12C:admin#
channel - Specifies which channel number to use.
<value 1-4> - Enter the channel number used here. This value must be between 1 and 4.
message - Specifies the alarm messages that will be displayed on the console, log and trap.
To display the configuration of the current terminal width:
Command: show terminal width
Global terminal width : 80
Current terminal width : 80
2-28config external_alarm channel
Description
This command is used to configure the external alarm message for a channel. The alarm port is
located outside of the switch. It is monitored via pre-defined connection channels, with each
channel representing a specific alarm event. This command allows the user to define the alarm
event associated with each channel.
Format
config external_alarm channel <value 1-4> message <sente nce 1-128>
Parameters
<sentence 1-128> - Enter the alarm message used here. This message can be up to 128
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To configure the external alarm channel used to ‘1’, with a user-defined message:
is exhausted!
Command: config external_alarm channel 1 message External Alarm: UPS is
exhausted!
Success.
28
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin# show external_alarm
DGS-3710-12C:admin#
2-29show external_alarm
Description
This command is used to display the external alarm settings.
Format
show external_alarm
Parameters
None.
Restrictions
None.
Example
To display the external alarm setting and status:
Command: show external_alarm
Channel Status Alarm Message
----------- -------- ----------------------------------------------- 1 Normal External Alarm: UPS is exhausted!
2 Normal External Alarm: Back Fan is stopped!
3 Alarming External Alarm: Power is low!
4 Normal External Alarm: Device is over-heat!
2-30show device_status
Description
This command displays current status of power(s) and fan(s) on the system.
Within fan(s) status display, for example, there are three fans on the left of the switch, if three fans
is working normally, there will display “OK” in the Left Fan field. If some fans work failed, such as
fan 1,3 , there will only display the failed fans in the Left Fan field, such as “1,3 Fail”.
In the same way, the Right Fan, Back Fan is same to Left Fan. Because there is only one CPU
Fan, if it is working failed, display “Fail”, otherwise display “OK”.
Format
show device_status
29
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#show device_status
DGS-3710-12C:admin#
Parameters
None.
Restrictions
None.
Example
To show device status, the number 1, 2, 3 etc represent the fan number:
Configure the parameters for an L3 interface. For IPv4, only the system interface can be specified
for the way to get the IP address. If the mode is set to BOOTP or DHCP, then the IPv4 address will
be obtained through the operation of protocols. The manual configuration of the IP address will be
of no use. If the mode is configured to BOOTP or DHCP first, and then the user configures IP
address later, the mode will be changed to manual configured mode. For IPv6, multiple addresses
can be defined on the same L3 interface. For IPv4, multi-netting must be done by creation of a
secondary interface.
<network_address> - Specifies the address and mask information using the traditional format
enable - Enable the IP interface.
32
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<ipv6networkaddr> - The IPv6 address and subnet prefix of the IPV6 address to be
disable - Disable the I P v6 state of the IP interf ac e.
ipv4 state - The state of the IPv4 interface.
disable - Disable the IPv4 state of the IP interf ace .
dhcpv6_client - Specifies the DHCPv6 client state of the interface.
disable - Specifies that the DHCPv6 client state of the interface will be disabled.
DGS-3710-12C:admin#config ipif System vlan v1
DGS-3710-12C:admin#
<ipif_name 12> - Specifies the name of the interface.
<network_address> - (Optional) Specifies a host address and length of network mask.
<vlan_name 32> - Specifies the name of the VLAN corresponding to the IP interface. The
maximum length is 32 characters.
state - The state of the IP interface.
disable - Disable the state setting.
created.
state - Enable or disable the IPv6 state of the IP interface.
enable - Enable the IPv6 state of the IP interface.
enable - Enable the IPv4 state of the IP interface.
enable - Specifies that the DHCPv6 client state of the interface will be enabled.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To configure the System IP interface:
Command: config ipif System vlan v1
Success.
3-2create ipif
Description
This command is used to create an L3 interface. This interface can be configured with IPv4 or IPv6
addresses. Currently, it has a restriction: an interface can have only one IPv4 address defined. But
it can have multiple IPv6 addresses defined. Configuration of IPv6 addresses must be done
through the command config ipif.
ipv6address - (Optional) The IPv6 network address to be deleted.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To delete interface petrovic1:
Command: delete ipif petrovic1
Success.
3-4enable ipif
Description
This command is used to enable the state for an IPIF. When the state is enabled, the IPv4
processing will be started when an IPv4 address is configured on the IPIF. The IPv6 processing
will be started when an IPv6 address is explicitly configured on the IPIF.
Format
enable ipif [<ipif_name 12> | all]
34
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<ipif_name 12> - The name of the interface.
all - All of the IP interfaces.
DGS-3710-12C:admin#enable ipif petrovic1
DGS-3710-12C:admin#
<ipif_name 12> - The name of the interface.
all - All of the IP interfaces.
DGS-3710-12C:admin#disable ipif petrovic1
DGS-3710-12C:admin#
Parameters
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To enable the state for interface petrovic1:
Command: enable ipif petrovic1
Success.
3-5disable ipif
Description
This command is used to disable the state of an interface.
Format
disable ipif [<ipif_name 12> | all]
Parameters
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To disable the state for an interface:
Command: disable ipif petrovic1
Success.
35
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<ipif_name 12> - (Optional) The name of the interface.
DGS-3710-12C:admin#show ipif
DGS-3710-12C:admin#
3-6show ipif
Description
This command is used to display IP interface settings.
Format
show ipif {<ipif_name 12>}
Parameters
Restrictions
None.
Example
To display IP interface settings:
Command: show ipif
IP Interface : System
VLAN Name : default
Interface Admin State : Enabled
DHCPv6 Client State : Disabled
Link Status : LinkDown
IPv4 Address : 10.90.90.90/8 (Manual) Primary
IPv4 State : Enabled
IPv6 State : Enabled
IP Interface : mgmt_ipif
Status : Enable
IP Address : 192.168.0.1
Subnet Mask : 255.255.255.0
GateWay : 0.0.0.0
Link Status : LinkDown
Total Entries: 2
3-7config out_band_ipif
Description
This command is used to configure the out of band management port settings.
36
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
ipaddress - Specifies the IP address of the interface. The parameter must include the mask.
the mask.
state – Specifies the interface status.
disable - Specifies to disable the interface.
gateway - Specifies the gateway IP address of the out-of-band management network.
<ipaddr> - Specifies the gateway IP address.
DGS-3710-12C:admin#config out_band_ipif state disable
DGS-3710-12C:admin#
Format
config out_band_ipif {ipaddress <network_address> | state [enable | disable] | g ateway
<ipaddr>} (1)
Parameters
<network_address> - Specifies the IP address of the interface. The parameter must include
enable - Specifies to enable the interface.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To disable the out-of-band management state:
Command: config out_band_ipif state disable
Success.
3-8show out_band_ipif
Description
This command is used to display the current configurations of special out-of-ban d management
interfaces.
Format
show out_band_ipif
Parameters
None.
Restrictions
None.
Example
To display the configuration of out-of-band management interfaces:
37
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
Status : Enable
IP Address : 192.168.0.1
Subnet Mask : 255.255.255.0
Gateway : 0.0.0.0
Link Status : LinkDown
3-9enable ipif_ipv6_link_local_auto
Description
This command is used to enable the auto configuration of link local address when there are no
IPv6 addresses explicitly configured. When an IPv6 address is explicitly configured, the link local
address will be automatically configured, and the IPv6 processing will be started. When there is no
IPv6 address explicitly configured, by default, link local address is not configured and the IPv6
processing will be disabled. By enabling this automatic configuration, the link local address will be
automatically configured and IPv6 processing will be started.
1 00-00-00-00-00-01 Authenticated Idle A 4004 3
1 00-00-00-00-00-02 Authenticated Idle A 1234 -
1 00-00-00-00-00-03 Held Fail U - -
1 00-00-00-00-00-04 Authenticating Response U - -
2 00-00-00-00-00-10(P) Authenticating Request U - -
3 00-00-00-00-00-20(P) Connecting Idle U - -
4 00-00-00-00-00-21(P) Held Fail U - -
Total Authorized Hosts :2
Total Unauthorized Hosts :5
To display the 802.1x configuration for port 1:
Command: show 802.1x auth_configuration ports 1
Port Number : 1
Capability : None
AdminCrlDir : Both
OpenCrlDir : Both
Port Control : Auto
QuietPeriod : 60 sec
TxPeriod : 30 sec
SuppTimeout : 30 sec
ServerTimeout : 30 sec
MaxReq : 2 times
ReAuthPeriod : 3600 sec
ReAuthenticate : Disabled
Forward EAPOL PDU On Port : Disabled
Max User On Port : 16
46
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<portlist> - Specifies a range of ports to be configured.
all - Specifies to configure all ports.
authenticator - The port that wishes to enforce authentication before allowing access to services
none – Disable authentication on specified port.
by setting the parameter of port_control to be force_authorized or force_unauthorized.
Besides, the controlled port will reflect the outcome of authentication if port_control is auto.
force_authorized - The port transmits and receives normal traffic without 802.1X-based
authentication of the client.
auto - The port begins in the unauthorized state, and relays authentication messages between
the client and the authentication server.
force_unauthorized - The port will remain in the unauthorized state, ignoring all attempts by
and can be any value from 0 to 65535.
can be any value from 1 to 65535.
supplicant. Its default value is 30 s and can be any value from 1 to 65535.
authentication server. Its default value is 30 and can be any value from 1 to 65535.
will retransmit an EAP Request packet to the supplicant. Its default value is 2 and can be any
number from 1 to 10.
authentication timer. The default value is 3600.
<value 1-128> - The maximum users value must be between 1 and 128.
enable - Enable the re-authentication mechanism for a specific port.
Restrictions
Only Administrator and Operator-level users can issue this command.
49
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin# config 802.1x auth_parameter ports 1-2 direction both
DGS-3710-12C:admin#
port_based - Used to configure authentication in port-based mode.
mac_based - Used to co nf igur e auth ent ic ation in M AC-based (host-based) mode.
Only Administrator and Operator-level users can issue this command.
Example
To configure the 820.1X maximum numbers of the system:
Command: config 802.1x max_users 2
Success.
4-16config 802.1x reauth
Description
This command is used to reauthenticate the device connected with the port. During the
reauthentication period, the port status remains authorized until failed reauthentication.
<portlist> - Specifies a range of ports to be configured.
RADIUS client.
<portlist> - Specifies a range of ports to be configured.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To reauthenticate the device connected with the port:
Command: config 802.1x reauth port_based ports all
Success.
4-17create 802.1x guest_vlan
Description
This command is used to assign a static VLAN to be a guest VLAN. The specific VLAN which is
assigned to a guest VLAN must already exist. The specific VLAN which is assigned to the guest
VLAN can’t be deleted.
Format
create 802.1x guest_vlan <vlan_name 32>
Parameters
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To assign a static VLAN to be a guest VLAN:
Command: create 802.1x guest_vlan guestVLAN
53
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<portlist> - Specifies a range of ports to be configured.
all - Specifies to configure all ports.
state - Specifies the guest VLAN port state of the configured ports.
disable - Remove from guest VLAN.
4-18delete 802.1x guest_vlan
Description
This command is used to delete a guest VLAN setting, but not to delete the static VLAN itself.
Format
delete 802.1x guest_vlan <vlan_name 32>
Parameters
Restrictions
Only Administrator and Operator-level users can issue this command. All ports which are enabled
as guest VLAN will return to the original VLAN after the guest VLAN is deleted.
Example
To delete a guest VLAN configuration:
Command: delete 802.1x guest_vlan guestVLAN
Success.
4-19config 802.1x guest_vlan ports
Description
This command is used to configure a guest VLAN setting.
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#config 802.1x guest_vlan ports 1-8 state enable
DGS-3710-12C:admin#
DGS-3710-12C:admin#show 802.1x guest_vlan
DGS-3710-12C:admin#
Restrictions
Only Administrator and Operator-level users can issue this command. If the specific port state is
changed from the enabled state to the disabled state, this port will move to its original VLAN.
Example
To configure a guest VLAN setting for ports 1 to 8:
Command: config 802.1x guest_vlan ports 1-8 state enable
Warning, The ports are moved to Guest VLAN.
Success.
4-20show 802.1x guest_vlan
Description
This command is used to display guest VLAN information.
<server_ip> - Enter the RADIUS server IP address here.
encrypt user’s authentication data before being transmitted over the Internet. The maximum
length of the key is 32.
<passwd 32> - Specifies the key pre-negotiated between the switch and the RADIUS server.
It is used to encrypt user’s authentication data before being transmitted over the Internet.
data between the switch and the RADIUS server. The default is 1812.
<udp_port_number 1-65535> - The authentication port value must be between 1 and 65535.
57
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<udp_port_number 1-65535> - The accounting statistics value must be between 1 and
default - Specifies to use the default value.
timeout - Specifies the time in seconds for waiting for a server reply. The default value is 5
default - Specifies to use the default value.
retransmit - Specifies the count for re-transmission. The default value is 2.
config authen parameter response_ti m eout <int 0-255>
config authen parameter attempt <int 1-255>
show authen parameter
enable admin
config admin local_enable
Chapter 5 Access Authenticat ion
Control (AAC)
Commands
5-1 enable authen_policy
Description
This command is used to enable system access authentication policy. When enabled, the device
will adopt the login authentication method list to authenticate the user for login, and adopt the
enable authentication mothod list to authenticate the enable password for promoting the user‘s
privilege to Administrator leve l.
Format
enable authen_policy
67
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#enable authen_policy
DGS-3710-12C:admin#
DGS-3710-12C:admin#disable authen_policy
DGS-3710-12C:admin#
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.
Example
To enable system access authentication policy:
Command: enable authen_policy
Success.
5-2disable authen_policy
Description
This command is used to disable system access authentication policy. When authentication is
disabled, the device will adopt to the local user account database to authenticate the user for login.
Format
disable authen_policy
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.
Example
To disable system access authentication policy:
Command: disable authen_policy
Success.
68
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#show authen_policy
DGS-3710-12C:admin#
<string 15> - Specifies the user-defined method list name.
5-3show authen_policy
Description
This command is used to display whether system access authentication policy is enabled or
disabled.
Format
show authen_policy
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.
Example
To display system access authentication policy:
Command: show authen_policy
Authentication Policy : Enabled
5-4create authen_login method_li st_name
Description
This command is used to create a user-defined method list of authentication methods for user
login. The maximum supported number of the login method lists is eight.
Format
create authen_login method_list_name <string 15>
Parameters
Restrictions
Only Administrator-level users can issue this command.
Example
To create a user-defined method list for user login:
69
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
This command is used to configure a user-defined or default method list of authentication methods
for user login. The sequence of methods will affect the authentication result. For example, if the
sequence is TACACS+ first, then TACACS and local, when a user trys to login, the authentication
request will be sent to the first server host in the TACACS+ built-in server group. If the first server
host in the TACACS+ group is missing, the authentication request will be sent to the second server
host in the TACACS+ group, and so on. If all server hosts in the TACACS+ group are missing, the
authentication request will be sent to the first server host in the TACACS group. If all server hosts
in a TACACS group are missing, the local account database in the device is used to authenticate
this user. When a user logs in to the device successfully while using methods like
TACACS/XTACACS/TACACS+/RADIUS built-in or user-defined server groups or none, the “user”
privilege level is assigned only. If a user wants to get admin privilege level, the user must use the
“enable admin” command to promote his privilege level. But when the local method is used, the
privilege level will depend on this account privilege level stored in the local device.
<string 15> - Specifies the user-defined method list of authentication methods. The method
tacacs - Specifies authentication by the built-in server group TACACS.
xtacacs - Specifies authentication by the built-in server group XTACACS.
tacacs+ - Specifies authentication by the built-in server group TACACS+.
radius - Specifies authentication by the built-in server group RADIUS.
server_group - Specifies authentication by the user-defined server group.
<string 15> - Specifies authentication by the user-defined server group. The server group
value can be up to 15 characters long.
local - Specifies authentication by local user account database in the device.
Restrictions
Only Administrator-level users can issue this command.
70
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<string 15> - Specifies the user-defined method list name.
Parameters
<string 15> - Specifies the user-defined method list for user login. The method list name can
Restrictions
Only Administrator-level users can issue this command.
Example
To display a user-defined method list for user login:
Command: show authen_login method_list_name login_list_1
Method List Name Priority Method Name Comment
---------------- -------- --------------- -----------------login_list_1 1 tacacs+ Built-in Group
2 tacacs Built-in Group
3 mix_1 User-defined Group
4 local Keyword
5-8create authen_enable method_list_name
Description
This command is used to create a user-defined method list of authentication methods for
promoting a user's privilege to Admin level. The maximum supported number of the enable method
lists is eight.
Format
create authen_enable method_list_name <string 15>
Parameters
Restrictions
Only Administrator-level users can issue this command.
Example
To create a user-defined method list for promoting a user's privilege to Admin level:
72
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
This command is used to configure a user-defined or default method list of authentication methods
for promoting a user's privilege to Admin level. The sequence of methods will effect the
authencation result. For example, if the sequence is TACACS+ first, then TACACS and
local_enable, when a user tries to promote a user's privilege to Admin level, the authentication
request will be sent to the first server host in the TACACS+ built-in server group. If the first server
host in the TACACS+ group is missing, the authentication request will be sent to the second server
host in the TACACS+ group, and so on. If all server hosts in the TACACS+ group are missing, the
authentication request will be sent to the first server host in the TACACS group. If all server hosts
in the TACACS group are missing, the local enable password in the device is used to authenticate
this user’s password. The local enable password in the device can be configured by the CLI
command config admin local_enable.
<string 15> - Specifies the user-defined method list of authentication methods. The method
tacacs - Specifies authentication by the built-in server group TACACS.
xtacacs - Specifies authentication by the built-in server group XTACACS.
tacacs+ - Specifies authentication by the built-in server group TACACS+.
radius - Specifies authentication by the built-in server group RADIUS.
server_group - Specifies authentication by the user-defined server group.
<string 15> - Specifies authentication by the user-defined server group. The server group
value can be up to 15 characters long.
local_enable - Specifies authentication by local enable password in the devic e.
Restrictions
Only Administrator-level users can issue this command.
Example
To configure a user-defined method list for promoting a user's privilege to Admin level:
73
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
This command is used to create a user-defined authentication server group. The maximum
supported number of server groups including built-in server groups is eight. Each group consists of
eight server hosts as maximum.
Format
create authen server_group <string 15>
Parameters
Restrictions
Only Administrator-level users can issue this command.
Example
To create a user-defined authentication server group:
Command: create authen server_group mix_1
Success.
5-15config authen server_group
Description
This command is used to add or remove an authentication server host to or from the specified
server group. Built-in server group tacacs, xtacacs, tacacs+, and RADIUS accept the server host
with the same protocol only, but user-defined server group can accept server hosts with different
protocols. The server host must be created first by using the CLI command create authen
<string 15> - Specifies the user-defined server group name.
Parameters
xtacacs - Specifies t he buil t-in server group XTACACS.
tacacs+ - Specifies the built-in server group TACACS+.
radius – Specifies the built-in server group RADIUS.
tacacs - Specifies the server host’s authentication protocol TACACS.
xtacacs - Specifies the server host’s authentication protocol XTACACS.
tacacs+ - Specifies the server host’s authentication protocol TACACS+.
Restrictions
Only Administrator-level users can issue this command.
Example
To add an authentication server host to a server group:
This command is used to create an authentication server host. When an authentication server host
is created, the IP address and protocol are the index. That means more than one authentication
protocol service can be run on the same physical host. The maximum supported number of server
hosts is 16.
79
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<ipaddr> - Specifies the server host’s IP address.
protocol - Specifies the server host’s type of authentication protocol.
radius - Specifies the server host’s authentication protocol RADIUS.
port - (Optional) Specifies the port number of the authentication protocol for the server host. The
is 1812. The port number must be between 1 and 65535.
key - (Optional) Specifies the key for TACACS+ and RADIUS authentication.
for TACACS and XTACACS.
timeout - (Optional) Specifies the time in seconds for waiting for a server reply. The default value
seconds. The timeout value must be between 1 and 255 seconds.
retransmit - (Optional) Specifies the count for re-transmit. This value is meaningless for
default value is 2. The re-transmit value must be between 1 and 20.
DGS-3710-12C:admin#create authen server_host 10.1.1.222 protocol tacacs+ port
tacacs - Specifies the server host’s authentication protocol TACACS.
xtacacs - Specifies the server host’s authentication protocol XTACACS.
tacacs+ - Specifies the server host’s authentication protocol TACACS+.
default value for TACACS/XTACACS/TACACS+ is 49. The default value for RADIUS is 1812.
<int 1-65535> - Specifies the port number of the authentication protocol for the server host.
The default value for TACACS/XTACACS/TACACS+ is 49. The default value for RADIUS
<key_string 254> - Specifies the key for TACACS+ and RADIUS authenticaiton. If the value
is null, no encryption will apply. This value is meaningless for TACACS and XTACACS.
none - No encryption for TACACS+ and RADIUS authenticaiton. This value is meaningless
is 5 seconds.
<int 1-255> - Specifies the time in seconds for waiting for a server reply. The default value is 5
TACACS+. The default value is 2.
<int 1-20> - Specifies the count for re-transmit. This value is meaningless for TACACS+. The
Restrictions
Only Administrator-level users can issue this command.
Example
To create a TACACS+ authentication server host with a listening port number of 15555 and a
timeout value of 10 seconds:
tacacs - Specifies the server host’s authentication protocol TACACS.
xtacacs - Specifies the server host’s authentication protocol XTACACS.
tacacs+ - Specifies the server host’s authentication protocol TACACS+.
value for TACACS/XTACACS/TACACS+ is 49. The default value for RADIUS is 1812.
<int 1-65535> - Specifies the port number of the authentication protocol for the server host.
The default value for TACACS/XTACACS/TACACS+ is 49. The default value for RADIUS
<key_string 254> - Specifies the key for TACACS+ and RADIUS authentication. If the value
is null, no encryption will apply. This value is meaningless for TACACS and XTACACS.
none - Specifies no encryption for TACACS+ and RADIUS authentication. This value is
seconds.
<int 1-255> - Specifies the time in seconds for waiting for a server reply. The default value is 5
default value is 2.
<int 1-20> - Specifies the count for re-transmit. This value is meaningless for TACACS+. The
Restrictions
Only Administrator-level users can issue this command.
Example
To configure a TACACS+ authentication server host’s key value:
"This is a secret"
Command: config authen server_host 10.1.1.222 protocol tacacs+ key "This is a
secret"
Success.
81
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<ipaddr> - Specifies the server host’s IP address.
protocol - Specifies the server host’s type of authentication protocol.
radius - Specifies the server host’s authentication protocol RADIUS.
tacacs - Specifies the server host’s authentication protocol TACACS.
xtacacs - Specifies the server host’s authentication protocol XTACACS.
tacacs+ - Specifies the server host’s authentication protocol TACACS+.
Restrictions
Only Administrator-level users can issue this command.
This command is used to configure the maximum attempts for users trying to login or promote the
privilege on Console, Telnet, SSH or HTTP applications. If the failure value is exceeded,
connection or access will be locked.
83
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
<int 1-255> - Specifies the amount of attempts for users trying to login or promote the privilege
on Console, Telnet, SSH, or HTTP interface. The default value is 3.
Only Administrator-level users can issue this command.
Example
To configure the maximum attempts for users trying to login or promote the privilege to be 9:
Command: config authen parameter attempt 9
Success.
5-24show authen parameter
Description
This command is used to display the authentication parameters.
Format
show authen parameter
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.
Example
To display the authentication parameters:
84
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin# show authen parameter
DGS-3710-12C:admin#
DGS-3710-12C:user#enable admin
DGS-3710-12C:admin#
Command: show authen parameter
Response Timeout : 60 seconds
User Attempts : 9
5-25enable admin
Description
This command is used to promote the "user" privilege level to "admin" level. When the user enters
this command, the authentication method TACACS, XTACAS, TACACS+, user-defined server
groups, local enable, or none will be used to authenticate the user. Because TACACS, XTACACS
and RADIUS don't support the enable function by themselves, if a user wants to use either one of
these three protocols to enable authentication, the user must create a special account on the
server host first, which has a username enable and then configure its password as the enable
password to support the "enable" function. This command cannot be used when authenticati on
policy is disabled.
Format
enable admin
Parameters
None.
Restrictions
None.
Example
To enable administrator lever privilege:
PassWord: ********
Success.
5-26config admin local_enable
Description
This command is used to configure the local enable password for the enable command. When the
user chooses the local_enable method to promote the privilege level, the enable password of the
local device is needed.
85
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
DGS-3710-12C:admin#config admin local_enable
DGS-3710-12C:admin#
Format
config admin local_enable
Parameters
None.
Restrictions
Only Administrator-level users can issue this command.
Example
To configure the administrator password:
Command: config admin local_enable
Enter the old password:
Enter the case-sensitive new password:******
Enter the new password again for confirmation:******
Success.
86
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
vlan - Specifies a VLAN mask. Only the last 12 bits of the mask will be considered.
<hex 0x0-0x0fff> - (Optional) Specifies a VLAN mask.
source_mac - Specifies the source MAC mask.
<macmask> - Specifies the source MAC mask.
destination_mac - Specifies the destination MAC mask.
<macmask> - Specifies the destination MAC mask.
802.1p - Speciy the 802.1p priority tag mask.
vlan - Specifies a VLAN mask. Only the last 12 bits of the mask will be considered.
<hex 0x0-0x0fff> - (Optional) Specifies a VLAN mask.
source_ip_mask - Specifies an IP source submask.
<netmask> - Specifies an IP source submask.
destination_ip_mask - Specifies an IP destination submask.
<netmask> - Specifies an IP destination submask.
dscp - Specifies the DSCP mask.
icmp - Specifies that the rule applies to ICMP traffic.
type - (Optional) Specifies the ICMP packet type.
code - (Optional) Specifies the ICMP code.
igmp - Specifies that the rule applies to IGMP traffic.
type - (Optional) Specifies the IGMP packet type.
tcp - Specifies that the rule applies to TCP traffic.
src_port_mask - (Optional) Specifies the TCP source port mask.
<hex 0x0-0xffff> - Specifies the TCP source port mask.
dst_port_mask - (Optional) Specifies the TCP destination port mask.
<hex 0x0-0xffff> - Specifies the TCP destination port mask.
flag_mask - (Optional) Specifies the TCP flag field mask.
all – (Optional) Specifies to check all paramenters below.
urg - (Optional) Specifies Urgent Pointer field significant.
ack - (Optional) Specifies Acknowledgment field significant.
psh - (Optional) Specifies Push Function.
rst - (Optional) Specifies to reset the connection.
syn - (Optional) Specifies to synchronize sequence numbers.
fin - (Optional) No more data from sender.
udp - Specifies that the rule applies to UDP traffic.
src_port_mask - (Optional) Specifies the UDP source port mask.
<hex 0x0-0xffff> - Specifies the UDP source port mask.
dst_port_mask - (Optional) Specifies the UDP destination port mask.
<hex 0x0-0xffff> - Specifies the UDP destination port mask.
protocol_id_mask - Specifies that the rule applies to the IP protocol ID traffic.
<hex 0x0-0xff> - Specifies that the rule applies to the IP protocol ID traffic.
user_define_mask - (Optional) Specifies the L4 part mask.
89
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
offset_chunk_1 - (Optional) Specifies that the contents of the offset trunk 1 will be monitored.
<hex 0x0-0xffffffff> - Enter the offset trunk 4 mask used here.
ipv6 - Specifies the IPv6 filtering mask.
<ipv6mask> - (Optional) Specifies the IPv6 destination IP mask.
<value 0-31> - Enter the offset 1 value used here. This value must be between 0 and 31.
<hex 0x0-0xffffffff> - Enter the offset trunk 1 mask used here.
offset_chunk_2 - (Optional) Specifies that the contents of the offset trunk 2 will be monitored.
<value 0-31> - Enter the offset 2 value used here. This value must be between 0 and 31.
<hex 0x0-0xffffffff> - Enter the offset trunk 2 mask used here.
offset_chunk_3 - (Optional) Specifies that the contents of the offset trunk 3 will be monitored.
<value 0-31> - Enter the offset 3 value used here. This value must be between 0 and 31.
<hex 0x0-0xffffffff> - Enter the offset trunk 3 mask used here.
offset_chunk_4 - (Optional) Specifies that the contents of the offset trunk 4 will be monitored.
<value 0-31> - Enter the offset 4 value used here. Thi s value must be between 0 and 31.
class - Specifies the IPv6 class mask.
flowlabel - Specifies the IPv6 flow label mask.
tcp - Specifies that the rule applies to TCP traffic.
src_port_mask - (Optional) Specifies the TCP source port mask.
<hex 0x0-0xffff> - Specifies the TCP source port mask.
dst_port_mask - (Optional) Specifies the TCP destination port mask.
<hex 0x0-0xffff> - Specifies the TCP destination port mask.
udp - Specifies that the rule applies to UDP traffic.
src_port_mask - (Optional) Specifies the UDP source port mask.
<hex 0x0-0xffff> - Specifies the UDP source port mask.
dst_port_mask - (Optional) Specifies the UDP destination port mask.
<hex 0x0-0xffff> - Specifies the UDP destination port m ask.
source_ipv6_mask - Specifies the IPv6 source IP mask.
<ipv6mask> - (Optional) Specifies the IPv6 source IP mask.
destination_ipv6_mask - Specifies the IPv6 destination IP mask.
Restrictions
Only Administrator and Operator-level users can issue this command.
auto_assign - Specifies to automatically assign the access ID.
vlan - Specifies the VLAN name.
<vlan_name 32> -Specifies the VLAN name. The maximum length is 32 characters.
vlanid - Specifies the VLAN ID.
<vlanid 1-4094> - Specifies the VLAN ID between 1 and 4094.
mask - (Optional) Specifies the mask.
<hex 0x0-0x0fff> - Specifies the mask.
source_mac - Specifies the source MAC address.
<macaddr> - Specifies the source MAC address.
mask - (Optional) Specifies the mask.
<macmask> - Specifies the mask.
destination_mac - Specifies the destination MAC addres s.
<macaddr> - Specifies the destination MAC address .
mask - (Optional) Specifies the mask.
<macmask> - Specifies the mask.
802.1p - Specifies th e valu e of the 802.1p pr iori t y tag.
<value 0-7> - Specifies the value of the 802.1p priority tag. The priority tag ranges from 1
to 7.
ethernet_type - Specifies the Ethernet type.
vlan - Specifies the VLAN name.
<vlan_name 32> -Specifies the VLAN name. The maximum length is 32 characters.
vlanid - Specifies the VLAN ID.
<vlanid 1-4094> - Specifies the VLAN ID between 1 and 4094.
mask - (Optional)Specifies the mask.
<hex 0x0-0x0fff> - Specifies the mask.
source_ip - Specifies an IP source address.
<ipaddr> - Specifies an IP source address.
mask - (Optional) Specifies the mask.
<netmask> - Specifies the mask .
destination_ip - Specifies an IP destination address.
92
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
mask - (Optional) Specifies the mask.
<hex 0x0-0xffffffff> - Specifies the mask.
packet_content - Specifies the packet content for the user defined mask.
<hex 0x0-0xffffffff> - Enter the offset trunk 4 value used here.
ipv6 - Specifies that the rule applies to IPv6 fields.
<hex 0x0-0xfffff> - Specifies the value of the IPv6 flow label.
<netmask> - Specifies the mask .
dscp - Specifies the value of DSCP.
<value 0-63> - Specifies the value of DSCP. The DSCP value ranges from 0 to 63.
icmp - Specifies the ICMP.
type - (Optional) Specifies that the rule will apply to the ICMP Type traffic value.
<value 0-255> - Specifies the value between 0 and 25 5.
code - (Optional) Specifies that the rule will apply to the ICMP Code traffic value.
<value 0-255> - Specifies the value between 0 and 25 5.
igmp - Specifies the IGMP.
type - (Optional) Specifies that the rule will apply to the IGMP Type traffic value.
<value 0-255> - Specifies the value between 0 and 25 5.
tcp - Specifies TCP.
src_port - (Optional) Specifies that the rule will apply to a range of TCP source ports.
<value 0-65535> - Specifies the value bet w een 0 and 6553 5.
mask - (Optional) Specifies the mask.
<hex 0x0-0xffff> - Specifies the mask.
dst_port - (Optional) Specifies that the rule will apply to a range of TCP destination ports.
<value 0-65535> - Specifies the value bet w een 0 and 6553 5.
mask - (Optional) Specifies the mask.
udp - Specifies UDP.
protocol_id - Specifies that the rule will apply to the value of IP protocol ID traffic.
<hex 0x0-0xffff> - Specifies the mask.
flag - Specifies the TCP flag field value.
all – (Optional) Specifies to check all paramenters below.
urg - (Optional) Specifies Urgent Pointer field significant.
ack - (Optional) Specifies Acknowledgment field significant.
psh - (Optional) Specifies Push Function.
rst - (Optional) Specifies to reset the connection.
syn - (Optional) Specifies to synchronize sequence numbers.
fin - (Optional) No more data from sender.
src_port - (Optional) Specifies the UDP source port range.
<value 0-65535> - Specifies the value bet w een 0 and 6553 5.
mask - (Optional) Specifies the mask.
<hex 0x0-0xffff> - Specifies the mask.
dst_port - (Optional) Specifies the UDP destination port range.
<value 0-65535> - Specifies the value bet w een 0 and 6553 5.
mask - (Optional) Specifies the mask.
<hex 0x0-0xffff> - Specifies the mask.
<value 0-255> - Specifies the value between 0 and 25 5.
user_define - (Optional) Specifies that the rule will apply to the IP protocol ID and that the
mask options behind the IP header, which has a length of 4 bytes.
<hex 0x0-0xffffffff> - Specifies that the rule will apply to the IP protocol ID and that the
mask options behind the IP header, which has a length of 4 bytes.
mask - (Optional) Specifies the mask.
offset_chunk_1 - (Optional) Specifies that the contents of the offset trunk 1 will be monitored.
<hex 0x0-0xffffffff> - Enter the offset trunk 1 value used here.
offset_chunk_2 - (Optional) Specifies that the contents of the offset trunk 2 will be monitored.
<hex 0x0-0xffffffff> - Enter the offset trunk 2 value used here.
offset_chunk_3 - (Optional) Specifies that the contents of the offset trunk 3 will be monitored.
<hex 0x0-0xffffffff> - Enter the offset trunk 3 value used here.
offset_chunk_4 - (Optional) Specifies that the contents of the offset trunk 4 will be monitored.
class - Specifies the value of the IPv6 class.
<value 0-255> - Specifies the value between 0 and 25 5.
flowlabel - Specifies the value of the IPv6 flow label.
93
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
tcp - Specifies TCP.
<ipv6mask> - Specifies the mask.
port - The access profile rule may be defined for each port on the switch.
32 characters.
src_port - (Optional) Specifies the TCP source port range.
<value 0-65535> - Specifies the value bet w een 0 and 6553 5.
mask - (Optional) Specifies the mask.
<hex 0x0-0xffff> - Specifies the mask.
dst_port - (Optional) Specifies the TCP destination port range.
<value 0-65535> - Specifies the value bet w een 0 and 6553 5.
mask - (Optional) Specifies the mask.
<hex 0x0-0xffff> - Specifies the mask.
udp - Specifies UDP.
src_port - (Optional) Specifies the UDP source port range.
<value 0-65535> - Specifies the value bet w een 0 and 6553 5.
mask - (Optional) Specifies the mask.
<hex 0x0-0xffff> - Specifies the mask.
dst_port - (Optional) Specifies the UDP destination port range.
<value 0-65535> - Specifies the value bet w een 0 and 6553 5.
mask - Specifies the mask.
<hex 0x0-0xffff> - Specifies the mask.
source_ipv6 - Specifies the value of the IPv6 source address.
<ipv6addr> - Specifies the value of the IPv6 source address.
mask - (Optional) Specifies the mask.
<ipv6mask> - Specifies the mask.
destination_ipv6 - Specifies the value of the IPv6 destination address.
<ipv6addr> - Specifies the value of the IPv6 destination address.
mask - (Optional) Specifies the mask.
<portlist> - Specifies a list of ports.
all - Specifies that the access rule will apply to all ports.
vlan_based - Specifies the VLAN-based ACL rule. There are two conditions: this rule will
apply to all ports and packets must belong to the configured VLAN. It can be specified by
VLAN name or VLAN ID.
vlan_name - Specifies the VLAN name.
<vlan_name 32> - Specifies the VLAN name. The maximum length is 32 characters.
vlan_id - Specifies the VLAN ID.
<vlanid 1-4094> - Specifies the VLAN ID between 1 and 4094.
permit - Specifies the packets that match the access profile are permit by the switch.
priority - (Optional) Specifies the packets that match the access profile are remap the
802.1p priority tag field by the switch.
<value 0-7>- Specifies the value bet ween 0 and 7.
replace_priority - (Optional) Specifies the packets that match the access profile
remarking the 802.1p priority tag field by the switch.
replace_dscp_with - (Optional) Specifies the DSCP of the packets that match the access
profile are modified according to the value.
<value 0-63> - Specifies the value between 0 and 63.
replace_tos_precedence_with - (Optional) Specifies that the IP precedence of the
outgoing packet is changed with the new value. If used without an action priority, the
packet is sent to the default TC.
<value 0-7> - Specifies the value between 0 and 7.
counter - (Optional)
enable - Specifies whether the ACL counter feature is enabled. If the rule is not bound
with the flow meter, all matching packets are counted. If the rule is bound with the
flow meter, then the “counter” is overridden.
disable - Specifies whether the ACL counter feature is disabled. The default option is
disabled.
mirror - Specifies that packets matching the access profile are copied to the mirror port.
deny - Specifies the packets that match the access profile are filtered by the switch.
time_range - (Optional) Specifies the name of this time range entry.
<range_name 32> - Specifies the name of this time range entry. The maximum length is
94
DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
delete access_id - Specifies to delete the access ID.
<value 1-128> - Specifies the value between 1 and 128.
DGS-3710-12C:admin#config access_profile profile_id 2 add access_id 1 ip vlan
DGS-3710-12C:admin#
profile_id - (Optional) Specifies the index of the access list profile.
<value 1-12> - Specifies the profile ID between 1 and 12.
profile_name - (Optional) Specifies the name of the access list profile.
<name 1-32> - Enter the profile name used here. This name can be up to 32 characters long.
DGS-3710-12C:admin#show access_profile
Total Available HW Entries : 1532
Restrictions
Only Administrator and Operator-level users can issue this command.