CLI Guide
Page 5
...With the serial port properly connected to display the CLI input cursor − DGS-3120-24TC:admin# . DGS-3120-24TC Gigabit Ethernet Switch Command Line Interface UserName: PassWord: Firmware: Build 2.50.015 Copyright(C) 2012 D-Link Corporation. This is used to RJ-45 convertor cable. The Switch's 1 Every... or Telnet interfaces. Just press the Enter key twice to a management computer, the following screen should be visible. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 1 Using Command Line Interface The Switch can be used...
...With the serial port properly connected to display the CLI input cursor − DGS-3120-24TC:admin# . DGS-3120-24TC Gigabit Ethernet Switch Command Line Interface UserName: PassWord: Firmware: Build 2.50.015 Copyright(C) 2012 D-Link Corporation. This is used to RJ-45 convertor cable. The Switch's 1 Every... or Telnet interfaces. Just press the Enter key twice to a management computer, the following screen should be visible. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 1 Using Command Line Interface The Switch can be used...
CLI Guide
Page 6
...command line prompt, enter the commands config ipif System ipaddress xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy. DGS-3120-24TC:admin# In the above IP address to connect to be known. DGS-3120-24TC:admin# config ipif System ipaddress 10.24.22.100/255.0.0.0 Command: config ipif System ipaddress 10.24....22.100/8 Success. The Switch IP address can be automatically set before it can be managed with a subnet mask of 10.24.22.100 with the Web-based manager. xStack® DGS-3120...
...command line prompt, enter the commands config ipif System ipaddress xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy. DGS-3120-24TC:admin# In the above IP address to connect to be known. DGS-3120-24TC:admin# config ipif System ipaddress 10.24.22.100/255.0.0.0 Command: config ipif System ipaddress 10.24....22.100/8 Success. The Switch IP address can be automatically set before it can be managed with a subnet mask of 10.24.22.100 with the Web-based manager. xStack® DGS-3120...
CLI Guide
Page 7
...-enter the previous command at the command prompt. 3 command will prompt you with a Next possible completions: message. DGS-3120-24TC:admin# config account Command: config account Next possible completions: DGS-3120-24TC:admin# In this feature, and complex commands have several layers of the next possible sub-commands, in the CLI...the message, Next possible completions:. The CLI will appear at the command prompt, press the up arrow cursor key. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide There are a number of the top-level commands. .. ?
...-enter the previous command at the command prompt. 3 command will prompt you with a Next possible completions: message. DGS-3120-24TC:admin# config account Command: config account Next possible completions: DGS-3120-24TC:admin# In this feature, and complex commands have several layers of the next possible sub-commands, in the CLI...the message, Next possible completions:. The CLI will appear at the command prompt, press the up arrow cursor key. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide There are a number of the top-level commands. .. ?
CLI Guide
Page 8
... of parameters, and brackets [ ] indicate required parameters. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config account Command: config account Next possible completions: DGS-3120-24TC:admin# config account In the above example, the command config... the config account command re-executed. Where the what ? In addition, the syntax of the possible next parameters. 4 DGS-3120-24TC:admin#the Available commands: .. ? or config what ? The up arrow cursor control key was entered without the required parameter...
... of parameters, and brackets [ ] indicate required parameters. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config account Command: config account Next possible completions: DGS-3120-24TC:admin# config account In the above example, the command config... the config account command re-executed. Where the what ? In addition, the syntax of the possible next parameters. 4 DGS-3120-24TC:admin#the Available commands: .. ? or config what ? The up arrow cursor control key was entered without the required parameter...
CLI Guide
Page 9
...used to re-enter the show command are displayed. The CLI then displays the user accounts configured on the Switch. 5 xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Command: show Next possible completions: 802.1p 802.1x access_profile account...tech_support terminal time time_range traffic traffic_segmentation trap trusted_host udp_helper utilization vlan vlan_translation vlan_trunk voice_vlan wac wred DGS-3120-24TC:admin# In the above example, all of the possible next parameters for the show command, followed by the account parameter...
...used to re-enter the show command are displayed. The CLI then displays the user accounts configured on the Switch. 5 xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Command: show Next possible completions: 802.1p 802.1x access_profile account...tech_support terminal time time_range traffic traffic_segmentation trap trusted_host udp_helper utilization vlan vlan_translation vlan_trunk voice_vlan wac wred DGS-3120-24TC:admin# In the above example, all of the possible next parameters for the show command, followed by the account parameter...
CLI Guide
Page 13
Restrictions None. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show session Command: show session ID Live Time From Level User 8 00:04:17.870 Serial Port admin Anonymous Total Entries: 1 CTRL+C ESC... logout time for idle connections. 9 Format show serial_port Baud Rate : Data Bits : Parity Bits : Stop Bits : Auto-Logout : 9600 8 None 1 10 minutes DGS-3120-24TC:admin# 2-3 config serial_port Description This command is used to display the current serial port settings. Example To display the serial port setting...
Restrictions None. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show session Command: show session ID Live Time From Level User 8 00:04:17.870 Serial Port admin Anonymous Total Entries: 1 CTRL+C ESC... logout time for idle connections. 9 Format show serial_port Baud Rate : Data Bits : Parity Bits : Stop Bits : Auto-Logout : 9600 8 None 1 10 minutes DGS-3120-24TC:admin# 2-3 config serial_port Description This command is used to display the current serial port settings. Example To display the serial port setting...
CLI Guide
Page 14
...When idle over 5 minutes, the device will auto logout. 10_minutes - When idle over 15 minutes, the device will auto logout. DGS-3120-24TC:admin# 2-4 enable clipaging Description This command is enabled. Specify the serial bit rate to be 9600. 19200 - auto_logout - (...is used to enable the pausing of the screen display when the show commands that will be used to communicate with the management host. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] | ...
...When idle over 5 minutes, the device will auto logout. 10_minutes - When idle over 15 minutes, the device will auto logout. DGS-3120-24TC:admin# 2-4 enable clipaging Description This command is enabled. Specify the serial bit rate to be 9600. 19200 - auto_logout - (...is used to enable the pausing of the screen display when the show commands that will be used to communicate with the management host. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] | ...
CLI Guide
Page 15
...setting is used to the Switch. 11 Restrictions Only Administrator and Operator-level users can issue this command. DGS-3120-24TC:admin# 2-5 disable clipaging Description This command is used to allow user login to disable the pausing of the... when show command output reaches the end of the page: DGS-3120-24TC:admin# enable clipaging Command: enable clipaging Success. DGS-3120-24TC:admin# 2-6 login Description This command is enabled. Format disable clipaging Parameters None. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions...
...setting is used to the Switch. 11 Restrictions Only Administrator and Operator-level users can issue this command. DGS-3120-24TC:admin# 2-5 disable clipaging Description This command is used to allow user login to disable the pausing of the... when show command output reaches the end of the page: DGS-3120-24TC:admin# enable clipaging Command: enable clipaging Success. DGS-3120-24TC:admin# 2-6 login Description This command is enabled. Format disable clipaging Parameters None. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions...
CLI Guide
Page 16
Example To login the Switch with a user name dlink: DGS-3120-24TC:admin# login Command: login UserName:dlink PassWord:**** DGS-3120-24TC:admin# 2-7 logout Description This command is used to logout the facility. Example To logout current user: 12 Format logout Parameters None. Restrictions None. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format login Parameters None. Restrictions None.
Example To login the Switch with a user name dlink: DGS-3120-24TC:admin# login Command: login UserName:dlink PassWord:**** DGS-3120-24TC:admin# 2-7 logout Description This command is used to logout the facility. Example To logout current user: 12 Format logout Parameters None. Restrictions None. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format login Parameters None. Restrictions None.
CLI Guide
Page 17
...Link Corporation. Format ? ping Command: ? ping Command: ping Usage: { times | timeout } Description: Used to display the usage description for all commands in the cuurent login account level or the specific one. Description This command is used to test the connectivity between network devices. Parameters None. xStack® DGS-3120... Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# logout Command: logout Logout Press any key to login... Restrictions None. DGS-3120-24TC:admin# 13 All...
...Link Corporation. Format ? ping Command: ? ping Command: ping Usage: { times | timeout } Description: Used to display the usage description for all commands in the cuurent login account level or the specific one. Description This command is used to test the connectivity between network devices. Parameters None. xStack® DGS-3120... Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# logout Command: logout Logout Press any key to login... Restrictions None. DGS-3120-24TC:admin# 13 All...
CLI Guide
Page 18
Format clear Parameters None. Restrictions None. Restrictions None. Example To display command history: 14 Example To clear screen: DGS-3120-24TC:admin# clear Command: clear DGS-3120-24TC:admin# 2-10 show command_history Parameters None. Format show command_history Description The command is used to clear screen. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 2-9 clear Description The command is used to display command history.
Format clear Parameters None. Restrictions None. Restrictions None. Example To display command history: 14 Example To clear screen: DGS-3120-24TC:admin# clear Command: clear DGS-3120-24TC:admin# 2-10 show command_history Parameters None. Format show command_history Description The command is used to clear screen. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 2-9 clear Description The command is used to display command history.
CLI Guide
Page 19
... Description This command is used to configure the greeting message (or banner). 15 xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show command_history Command: show session ? create account ? This value must be... show the ? Format config command_history Parameters - Enter the number of command history: DGS-3120-24TC:admin# config command_history 25 Command: config command_history 25 Success. DGS-3120-24TC:admin# 2-12 config greeting_message Description This command is used to configure the number of...
... Description This command is used to configure the greeting message (or banner). 15 xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show command_history Command: show session ? create account ? This value must be... show the ? Format config command_history Parameters - Enter the number of command history: DGS-3120-24TC:admin# config command_history 25 Command: config command_history 25 Success. DGS-3120-24TC:admin# 2-12 config greeting_message Description This command is used to configure the number of...
CLI Guide
Page 20
...+L Reload original setting 2-13 show greeting_message Parameters None. 16 Example To edit the banner: DGS-3120-24TC:admin#config greeting_message Command: config greeting_message Greeting Messages Editor DGS-3120-24TC Gigabit Ethernet Switch Command Line Interface Firmware: Build 2.00.010 Copyright(C) 2011 D-Link Corporation. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config greeting_message {default...
...+L Reload original setting 2-13 show greeting_message Parameters None. 16 Example To edit the banner: DGS-3120-24TC:admin#config greeting_message Command: config greeting_message Greeting Messages Editor DGS-3120-24TC Gigabit Ethernet Switch Command Line Interface Firmware: Build 2.00.010 Copyright(C) 2011 D-Link Corporation. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config greeting_message {default...
CLI Guide
Page 21
Example To display greeting message: DGS-3120-24TC:admin#show greeting_ message Command: show greeting_message DGS-3120-24TC Gigabit Ethernet Switch Command Line Interface Firmware: Build 2.00.010 Copyright(C) 2011 D-Link Corporation. "DGS-3120-24TC:admin#"). DGS-3120-24TC:admin# 2-14 config command_prompt Description This command is used to be replaced with a string...command prompt. Yet, issuing the "reset system" will remain in tact. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator and Operator-level users...
Example To display greeting message: DGS-3120-24TC:admin#show greeting_ message Command: show greeting_message DGS-3120-24TC Gigabit Ethernet Switch Command Line Interface Firmware: Build 2.00.010 Copyright(C) 2011 D-Link Corporation. "DGS-3120-24TC:admin#"). DGS-3120-24TC:admin# 2-14 config command_prompt Description This command is used to be replaced with a string...command prompt. Yet, issuing the "reset system" will remain in tact. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator and Operator-level users...
CLI Guide
Page 22
...-level users can issue this login section. The default value is 120. 2. The default setting of no more than 16 characters. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config command_prompt [ | username | default] Parameters - Enter the new ... command to return the command prompt to 120, this configuration take effect on this command. Example To edit the command prompt: DGS-3120-24TC:admin#config command_prompt Prompt# Command: config command_prompt Prompt# Success. If at the same time, two CLI sessions are running, once...
...-level users can issue this login section. The default value is 120. 2. The default setting of no more than 16 characters. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config command_prompt [ | username | default] Parameters - Enter the new ... command to return the command prompt to 120, this configuration take effect on this command. Example To edit the command prompt: DGS-3120-24TC:admin#config command_prompt Prompt# Command: config command_prompt Prompt# Success. If at the same time, two CLI sessions are running, once...
CLI Guide
Page 23
... is used to configure the Switch's port settings. 19 Restrictions None. Example To display the configuration of current terminal width. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. DGS-3120-24TC:admin# 2-16 show terminal width Description The command is used to display the configuration of current terminal width...
... is used to configure the Switch's port settings. 19 Restrictions None. Example To display the configuration of current terminal width. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. DGS-3120-24TC:admin# 2-16 show terminal width Description The command is used to display the configuration of current terminal width...
CLI Guide
Page 25
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config ports all medium_type copper speed auto Command: config ports all medium_type copper speed auto Success. description - (Optional) Indicates if port description will be ...display the current configurations of a range of ports to be configured here. err_disabled - (Optional) Indicates if ports are disabled by some reasons will be displayed. DGS-3120-24TC:admin# 2-18 show ports {} {[description | err_disabled | details | media_type]} Parameters ports - Restrictions None.
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config ports all medium_type copper speed auto Command: config ports all medium_type copper speed auto Success. description - (Optional) Indicates if port description will be ...display the current configurations of a range of ports to be configured here. err_disabled - (Optional) Indicates if ports are disabled by some reasons will be displayed. DGS-3120-24TC:admin# 2-18 show ports {} {[description | err_disabled | details | media_type]} Parameters ports - Restrictions None.
CLI Guide
Page 26
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show ports details Command: show ports details Port : 1:1 Port Status : Link Down Description : HardWare Type : Gigabits Ethernet MAC Address : 00-01-02-03-04-10 Bandwidth : 1000000Kbit Auto-Negotiation : Enabled Duplex Mode : Full Duplex Flow Control : ...
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show ports details Command: show ports details Port : 1:1 Port Status : Link Down Description : HardWare Type : Gigabits Ethernet MAC Address : 00-01-02-03-04-10 Bandwidth : 1000000Kbit Auto-Negotiation : Enabled Duplex Mode : Full Duplex Flow Control : ...
CLI Guide
Page 28
...name will be automatically assigned by the system. For example, if this conflict is conflict with name "v2" and VLAN ID 2: DGS-3120-24TC:admin# create vlan v2 tag 2 type 1q_vlan advertisement Command: create vlan v2 tag 2 type 1q_vlan advertisement Success. Format create vlan ...here. type - (Optional) Specify the type of VLAN to be VLAN100. DGS-3120-24TC:admin# 3-2 create vlan vlanid Description This command is based on the following rule: "VLAN"+ID. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator...
...name will be automatically assigned by the system. For example, if this conflict is conflict with name "v2" and VLAN ID 2: DGS-3120-24TC:admin# create vlan v2 tag 2 type 1q_vlan advertisement Command: create vlan v2 tag 2 type 1q_vlan advertisement Success. Format create vlan ...here. type - (Optional) Specify the type of VLAN to be VLAN100. DGS-3120-24TC:admin# 3-2 create vlan vlanid Description This command is based on the following rule: "VLAN"+ID. xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator...
CLI Guide
Page 29
DGS-3120-24TC:admin# 3-4 delete vlan vlanid Description This command is used to delete one or a number of the VLAN to be deleted. - The VLAN ID list to ... Format delete vlan vlanid Parameters vlanid - This name can issue this command. Restrictions Only Administrator, Operator and Power-User level users can be deleted. - xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 3-3 delete vlan Description This command is used to delete a previously configured VLAN by VID list. Example...
DGS-3120-24TC:admin# 3-4 delete vlan vlanid Description This command is used to delete one or a number of the VLAN to be deleted. - The VLAN ID list to ... Format delete vlan vlanid Parameters vlanid - This name can issue this command. Restrictions Only Administrator, Operator and Power-User level users can be deleted. - xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 3-3 delete vlan Description This command is used to delete a previously configured VLAN by VID list. Example...