D-Link DGS-3120-24PC CLI Guide
D-Link DGS-3120-24PC Manual
View all D-Link DGS-3120-24PC manuals
Add to My Manuals
Save this manual to your list of manuals |
D-Link DGS-3120-24PC manual content summary:
- D-Link DGS-3120-24PC | CLI Guide - Page 1
- D-Link DGS-3120-24PC | CLI Guide - Page 2
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Table of EI Mode Only 265 Digital Diagnostic Monitoring (DDM) Command List (EI Mode Only 270 D-Link License management System (DLMS) Command List 277 D-Link Unidirectional Link Detection (DULD) Command List (EI - D-Link DGS-3120-24PC | CLI Guide - Page 3
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 35 Chapter 36 Chapter 37 PPPoE Circuit ID Insertions Command List (EI Mode Only 581 Protocol VLAN Command List 585 QinQ Command List (EI Mode Only 591 Quality of Service (QoS) Command List 599 Remote - D-Link DGS-3120-24PC | CLI Guide - Page 4
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 71 Chapter 72 Chapter Command List 641 Surveillance VLAN Command List 648 sFlow Command List (EI Mode Only 654 Show Technical Support Command List 666 Simple Mail Transfer Protocol (SMTP) Command List - D-Link DGS-3120-24PC | CLI Guide - Page 5
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 1 Using Command Line DGS-3120-24TC Gigabit Ethernet Switch Command Line Interface UserName: PassWord: Firmware: Build 2.50.015 Copyright(C) 2012 D-Link Corporation. All rights reserved. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 6
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide default IP address is 10.90.90.90. You can change the default Switch IP address to meet the specification of your networking address scheme. The Switch is also assigned a unique MAC address by the factory. This MAC - D-Link DGS-3120-24PC | CLI Guide - Page 7
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide There are a number of helpful features included in possible completions: message. DGS-3120-24TC:admin# config account Command: config account Next possible completions: DGS-3120-24TC:admin# In this case - D-Link DGS-3120-24PC | CLI Guide - Page 8
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 the same as presented in this manual − angle brackets < > reset save telnet traceroute DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 9
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Command: show Next possible completions: 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 - D-Link DGS-3120-24PC | CLI Guide - Page 10
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 1-3 Command Syntax Symbols Syntax Description One or more values or arguments can be specified. For example, in the syntax reset {[config | system]} {force_agree} users may choose configure or system in the - D-Link DGS-3120-24PC | CLI Guide - Page 11
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Left Arrow Right Arrow Tab P or p N, n or Space CTRL+C ESC Q or q R or r A or a Enter Move cursor to left. Move cursor to right Help user to - D-Link DGS-3120-24PC | CLI Guide - Page 12
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 2 Basic Command List show session show serial_port config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] | auto_logout [never | 2_minutes | 5_minutes | 10_minutes | 15_minutes]} enable clipaging - D-Link DGS-3120-24PC | CLI Guide - Page 13
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show session Command: Parameters None. Restrictions None. Example To display the serial port setting: DGS-3120-24TC:admin# show serial_port Command: show serial_port Baud Rate : Data Bits - D-Link DGS-3120-24PC | CLI Guide - Page 14
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] | baud rate: DGS-3120-24TC:admin# config serial_port baud_rate 9600 Command: config serial_port baud_rate 9600 Success. DGS-3120-24TC:admin# 2-4 - D-Link DGS-3120-24PC | CLI Guide - Page 15
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator and Operator-level users can issue this command. Example To enable pausing of the screen display when show command output reaches the end of the page: DGS-3120-24TC:admin# enable - D-Link DGS-3120-24PC | CLI Guide - Page 16
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 - D-Link DGS-3120-24PC | CLI Guide - Page 17
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... DGS-3120-24TC Gigabit Ethernet Switch Command Line Interface UserName: Firmware: Build 2.00.010 Copyright(C) 2011 D-Link - D-Link DGS-3120-24PC | CLI Guide - Page 18
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 2-9 clear Description The command is used to clear screen. Format clear Parameters None. Restrictions None. Example To clear screen: DGS-3120-24TC:admin# clear Command: clear DGS-3120-24TC:admin# 2-10 show - D-Link DGS-3120-24PC | CLI Guide - Page 19
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show command_history Command: show command_history ? ping login show serial_port show session ? config bpdu_protection ports ? reset ? create account ? create ipif show the ? DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 20
. 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. All rights reserved - D-Link DGS-3120-24PC | CLI Guide - Page 21
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. All rights reserved. DGS-3120-24TC:admin# 2-14 config command_prompt - D-Link DGS-3120-24PC | CLI Guide - Page 22
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config command_prompt [ | username | default factory default value. Restrictions Only Administrator and Operator-level users can issue this command. Example To edit the command prompt: DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 23
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To configure the current terminal width: DGS-3120-24TC:admin# config terminal width 120 Command: config terminal width 120 Success. DGS-3120-24TC:admin# 2-16 show terminal width - D-Link DGS-3120-24PC | CLI Guide - Page 24
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config ports [ | all] {medium_type [fiber | copper]} { - (Optional) Enables or disables the specified port. If the specificed ports are in errordisabled status , configure their state to enable will - D-Link DGS-3120-24PC | 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. DGS-3120-24TC:admin# 2-18 show ports Description This command is used to display - D-Link DGS-3120-24PC | 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 : - D-Link DGS-3120-24PC | CLI Guide - Page 27
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 3 802.1Q VLAN Command List create vlan tag {type [1q_vlan | private_vlan]} {advertisement} create vlan vlanid {type [1q_vlan | private_vlan]} {advertisement} - D-Link DGS-3120-24PC | CLI Guide - Page 28
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To create a VLAN with name "v2" and VLAN ID 2: DGS-3120-24TC:admin# create vlan v2 tag 2 type 1q_vlan - D-Link DGS-3120-24PC | CLI Guide - Page 29
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 3-3 delete vlan Description This command is command. Example To remove a vlan v1: DGS-3120-24TC:admin# delete vlan v1 Command: delete vlan v1 Success. DGS-3120-24TC:admin# 3-4 delete vlan vlanid Description This - D-Link DGS-3120-24PC | CLI Guide - Page 30
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To remove VLANs from 10-30: DGS-3120-24TC:admin# delete vlan vlanid 10-30 Command: delete vlan vlanid 10-30 Success. DGS-3120-24TC:admin# 3-5 config vlan Description This command is used to configure a VLAN - D-Link DGS-3120-24PC | CLI Guide - Page 31
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 3-6 config vlan vlanid ID from 10-20: DGS-3120-24TC:admin# config vlan vlanid 10-20 add tagged 2:4-2:8 Command: config vlan vlanid 10-20 add tagged 2:4-2:8 Success. DGS-3120-24TC:admin# 3-7 config port_vlan - D-Link DGS-3120-24PC | CLI Guide - Page 32
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters - A range of ports for checking status, the sending and receiving GVRP information: DGS-3120-24TC:admin# config port_vlan 1:1-1:5 gvrp_state enable ingress_checking enable acceptable_frame - D-Link DGS-3120-24PC | CLI Guide - Page 33
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To display VLAN settings: DGS-3120-24TC:admin#show vlan Command: show vlan VLAN Trunk State : Disabled VLAN Trunk Member Ports : VID : 1 VLAN Type : Static Member Ports : 1:1-1:24 - D-Link DGS-3120-24PC | CLI Guide - Page 34
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show vlan ports 1:6 Command: show vlan ports 1:6 Port ----- 1:6 VID ---1 Untagged -------- X Tagged ------ - Dynamic ------- - Forbidden --------- - DGS-3120-24TC:admin# 3-10 show vlan - D-Link DGS-3120-24PC | CLI Guide - Page 35
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 3-11 show port_vlan Description This command is used to display . Restrictions None. Example To display 802.1Q port setting: DGS-3120-24TC:admin# show port_vlan Command: show port_vlan Port PVID GVRP Ingress - D-Link DGS-3120-24PC | CLI Guide - Page 36
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 3-12 enable pvid auto assign Description This To enable the auto-assign PVID: DGS-3120-24TC:admin# enable pvid auto_assign Command: enable pvid auto_assign Success. DGS-3120-24TC:admin# 3-13 disable pvid auto assign - D-Link DGS-3120-24PC | CLI Guide - Page 37
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To disable the auto-assign PVID: DGS-3120-24TC:admin# disable pvid auto_assign Command: disable pvid auto_assign - D-Link DGS-3120-24PC | CLI Guide - Page 38
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config GVRP in service provide site. It can use 802.1d GVRP address, 802.1ad service provider GVRP DGS-3120-24TC:admin# config gvrp timer join 200 Command: config gvrp timer join 200 Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 39
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To display the global setting of GVRP: DGS-3120-24TC:admin#show gvrp Command: show gvrp Global GVRP : Disabled Join Time : 200 Milliseconds Leave Time : 600 Milliseconds LeaveAll Time : 10000 - D-Link DGS-3120-24PC | CLI Guide - Page 40
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To disable the Generic VLAN Registration Protocol (GVRP): DGS-3120-24TC:admin# disable gvrp - D-Link DGS-3120-24PC | CLI Guide - Page 41
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config private_vlan p1 add community vlanid 2-5 Command: config private_vlan p1 add community vlanid 2-5 Success. DGS-3120-24TC:admin# 3-20 show private vlan Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 42
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 38 - D-Link DGS-3120-24PC | CLI Guide - Page 43
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 4 802.1X Command List enable 802.1x show auth_client show acct_client config accounting service [network | shell | system] state [enable | disable] show accounting service 4-1 enable 802.1x Description This - D-Link DGS-3120-24PC | CLI Guide - Page 44
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example Used to enable the 802.1X function: DGS-3120-24TC:admin# enable 802.1x Command: enable 802.1x - D-Link DGS-3120-24PC | CLI Guide - Page 45
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 4-3 create 802.1x user case-sensitive new password:**** Enter the new password again for confirmation:**** Success. DGS-3120-24TC:admin# 4-4 delete 802.1x user Description This command is used to delete an - D-Link DGS-3120-24PC | CLI Guide - Page 46
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#delete 802.1x user test Command: delete 802.1x user test Success. DGS-3120-24TC:admin# 4-5 show 802.1x user Description This command is used to display the 802.1X user. Format show 802.1x user - D-Link DGS-3120-24PC | CLI Guide - Page 47
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters local - Specify the authentication protocol to RADIUS EAP: DGS-3120-24TC:admin# config 802.1x auth_protocol radius_eap Command: config 802.1x auth_protocol radius_eap Success. DGS-3120-24TC:admin# 4-7 - D-Link DGS-3120-24PC | CLI Guide - Page 48
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config 802.1x fwd_pdu system enable Command: config 802.1x fwd_pdu system enable Success. DGS-3120-24TC:admin# 4-8 config 802.1x fwd_pdu ports Description This command is used to control the - D-Link DGS-3120-24PC | CLI Guide - Page 49
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config 802.1x authorization attributes radius DGS-3120-24TC:admin#config 802.1x authorization attributes radius disable Command: config 802.1x authorization attributes radius disable Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 50
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show 802.1x auth_configuration ports 1:1 Command: The port that wishes to enforce authentication before allowing access to services that are accessible via that port adopts the authenticator role. - D-Link DGS-3120-24PC | CLI Guide - Page 51
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure the port capability: DGS-3120-24TC:admin# config 802.1x capability ports 1:1-1:10 authenticator Command: config 802.1x capability ports 1:1-1:10 authenticator Success. DGS-3120-24TC:admin# 4-12 - D-Link DGS-3120-24PC | CLI Guide - Page 52
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config 802.1x auth_parameter ports [ | all] [default | {direction [ control. port_control - (Optional) You can force a specific port to be unconditionally authorized or unauthorized by setting the - D-Link DGS-3120-24PC | CLI Guide - Page 53
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To configure the parameters that control the operation of the authenticator associated with a port: DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 54
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config 802.1x init [port_based ports [ | some or all: DGS-3120-24TC:admin# config 802.1x init port_based ports all Command: config 802.1x init port_based ports all Success. DGS-3120-24TC:admin# 4-16 - D-Link DGS-3120-24PC | CLI Guide - Page 55
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To re-authenticate the device connected to the port: DGS-3120-24TC:admin# config 802.1x reauth port_based ports - D-Link DGS-3120-24PC | CLI Guide - Page 56
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format delete 802.1x guest_vlan {} guestVLAN Success. DGS-3120-24TC:admin# 4-19 config 802.1x guest_vlan Description This command is used to configure guest VLAN setting. If the specific port state is - D-Link DGS-3120-24PC | CLI Guide - Page 57
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config 802.1x guest_vlan ports 1:2-1:8 state enable Command: config 802.1x guest_vlan ports 1:2-1:8 state enable Warning, The ports are moved to Guest VLAN. Success. DGS-3120-24TC:admin# 4-20 - D-Link DGS-3120-24PC | CLI Guide - Page 58
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide of the RADIUS server here. (EI Mode Only) key - The key DGS-3120-24TC:admin# config radius add 1 10.48.74.121 key dlink default Command: config radius add 1 10.48.74.121 key dlink default Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 59
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide : DGS-3120-24TC:admin# config radius delete 1 Command: config radius delete 1 Success. DGS-3120-24TC:admin > - Enter the RADIUS server IPv6 address used here. (EI Mode Only) key - (Optional) The key pre-negotiated - D-Link DGS-3120-24PC | CLI Guide - Page 60
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the authentication port configure a radius server: DGS-3120-24TC:admin# config radius 1 auth_port 60 Command: config radius 1 auth_port 60 Success. DGS-3120-24TC:admin# 4-24 show - D-Link DGS-3120-24PC | CLI Guide - Page 61
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show radius Command: show radius Index 1 IP 5 sec : 2 : adfdslkfjefiefdkgjdassdwtgjk6y1w Total Entries : 2 DGS-3120-24TC:admin# 4-25 show auth_statistics Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 62
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show auth_statistics ports 1:1 Command: show auth_statistics ports 1:1 Port Number : 1:1 EapolFramesRx EapolFramesTx EapolStartFramesRx EapolReqIdFramesTx EapolLogoffFramesRx EapolReqFramesTx - D-Link DGS-3120-24PC | CLI Guide - Page 63
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show auth_diagnostics ports 1:1 Command: show auth_diagnostics ports 1:1 Port Number : 1:1 EntersConnecting 11 EapLogoffsWhileConnecting 0 EntersAuthenticating 0 - D-Link DGS-3120-24PC | CLI Guide - Page 64
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show auth_session_statistics ports 1:1 Command: show auth_session_statistics ports 1:1 Port Number : 1:1 SessionOctetsRx SessionOctetsTx SessionFramesRx SessionFramesTx SessionId - D-Link DGS-3120-24PC | CLI Guide - Page 65
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show auth_client Command: show auth_client radiusAuthClient ==> radiusAuthClientInvalidServerAddresses radiusAuthClientIdentifier 0 D-Link radiusAuthServerEntry ==> radiusAuthServerIndex :3 - D-Link DGS-3120-24PC | CLI Guide - Page 66
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show acct_client Command: show acct_client radiusAcctClient ==> radiusAcctClientInvalidServerAddresses radiusAcctClientIdentifier 0 D-Link radiusAuthServerEntry ==> radiusAccServerIndex : 1 - D-Link DGS-3120-24PC | CLI Guide - Page 67
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example Enable it to configure accounting shell state: DGS-3120-24TC:admin# config accounting service shell state enable Command: config accounting service shell state enable Success. DGS-3120-24TC:admin# 4-31 show - D-Link DGS-3120-24PC | CLI Guide - Page 68
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 5 Access Authentication Control Command List enable authen_policy_encryption disable authen_policy_encryption enable password encryption disable password encryption enable authen_policy disable authen_policy - D-Link DGS-3120-24PC | CLI Guide - Page 69
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator-level users can issue this command. Example To enable the authentication policy encryption: DGS-3120-24TC:admin#enable authen_policy_encryption Command: enable - D-Link DGS-3120-24PC | CLI Guide - Page 70
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 5-3 enable password encryption Description This command the password encryption: DGS-3120-24TC:admin#enable password encryption Command: enable password encryption Success. DGS-3120-24TC:admin# 5-4 disable password - D-Link DGS-3120-24PC | CLI Guide - Page 71
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator-level users can issue this command. Example To disable the password encryption: DGS-3120-24TC:admin#disable password encryption Command: disable password encryption Success. DGS-3120- - D-Link DGS-3120-24PC | CLI Guide - Page 72
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 5-6 disable authen_policy Description This command system access authentication policy: DGS-3120-24TC:admin# disable authen_policy Command: disable authen_policy Success. DGS-3120-24TC:admin# 5-7 show authen_policy - D-Link DGS-3120-24PC | CLI Guide - Page 73
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To display system access authentication policy: DGS-3120-24TC:admin#show authen_policy Command: show authen_policy Authentication Policy : Enabled Authentication Policy Encryption: Enabled DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 74
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide methods like tacacs/xtacacs/tacacs+/radius built-in or authen_login method_list_name login_list_1 method tacacs+ tacacs local Success. DGS-3120-24TC:admin# 5-10 delete authen_login Description This command is used - D-Link DGS-3120-24PC | CLI Guide - Page 75
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# delete authen_login method_list_name login_list_1 Command: delete authen_login method_list_name login_list_1 Success. DGS-3120-24TC method_list_name - Display the specific user-defined method list - D-Link DGS-3120-24PC | CLI Guide - Page 76
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show authen_login method_list_name login_list_1 Command: show authen_login method_list_name login_list_1 Method List Name login_list_1 Priority -------1 2 3 4 Method Name tacacs+ tacacs - D-Link DGS-3120-24PC | CLI Guide - Page 77
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide server hosts in tacacs+ group are missing, the method list for promoting user's privilege to Admin level: DGS-3120-24TC:admin# config authen_enable method_list_name enable_list_1 method tacacs+ tacacs local_enable - D-Link DGS-3120-24PC | CLI Guide - Page 78
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# delete authen_enable method_list_name enable_list_1 Command: delete authen_enable method_list_name enable_list_1 Success. DGS-3120-24TC method_list_name - Display the specific user-defined method - D-Link DGS-3120-24PC | CLI Guide - Page 79
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show authen_enable method_list_name enable_list_1 Command: show authen_enable method_list_name enable_list_1 Method List Name enable_list_1 Priority -------1 Method Name local_enable - D-Link DGS-3120-24PC | CLI Guide - Page 80
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 5-17 show authen application Description This DGS-3120-24TC:admin# 5-18 create authen server_group Description This command is used to create a user-defined authentication server group. The maximum supported - D-Link DGS-3120-24PC | CLI Guide - Page 81
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator-level users can issue this command. Example To create a user-defined authentication server group: DGS-3120-24TC:admin# create authen server_group mix_1 Command: create authen - D-Link DGS-3120-24PC | CLI Guide - Page 82
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config authen server_group mix_1 add server_host 10.1.1.222 protocol tacacs+ Command: config authen server_group mix_1 add server_host 10.1.1.222 protocol tacacs+ Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 83
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator-level users can issue this command. Example To display all authentication server groups: DGS-3120-24TC services can be run on the same physical host. The maximum supported number - D-Link DGS-3120-24PC | CLI Guide - Page 84
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide encryption will apply. This value is meaningless for 15555 timeout 10 Key is empty for TACACS+ or RADIUS. Success. DGS-3120-24TC:admin# 5-23 config authen server_host Description This command is used to configure - D-Link DGS-3120-24PC | CLI Guide - Page 85
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the port number here. This server_host 10.1.1.222 protocol tacacs+ key "This is a secret." Success. DGS-3120-24TC:admin# 5-24 delete authen server_host Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 86
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To delete an authentication server host: DGS-3120-24TC:admin# delete authen server_host 10.1.1.222 protocol tacacs+ Command: delete authen server_host 10.1.1.222 protocol tacacs+ Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 87
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config authen parameter response_timeout - D-Link DGS-3120-24PC | CLI Guide - Page 88
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config authen parameter attempt 9 Command: config authen parameter attempt 9 Success. DGS-3120-24TC user. Because TACACS, XTACACS and RADIUS don't support "enable" function in itself, if user - D-Link DGS-3120-24PC | CLI Guide - Page 89
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format enable admin Parameters None. Restrictions None. Example To enable administrator lever privilege: DGS-3120-24TC:oper#enable admin Command: enable admin PassWord:***** Success. DGS-3120-24TC:admin# 5-30 config - D-Link DGS-3120-24PC | CLI Guide - Page 90
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator-level users can issue this command. Example To configure the administrator password: DGS-3120-24TC:admin#config admin local_enable Command: config admin local_enable Enter the old - D-Link DGS-3120-24PC | CLI Guide - Page 91
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 6 Access Control List (ACL) Command List create access_profile profile_id profile_name [ethernet {vlan {} | source_mac | - D-Link DGS-3120-24PC | CLI Guide - Page 92
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide config time_range [hours start_time end_time weekdays | delete] show time_range show current_config access_profile 6-1 create access_profile - D-Link DGS-3120-24PC | CLI Guide - Page 93
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide ip - Specify this is a IPv4 mask. vlan is the IPv6 mask. (EI Mode Only) class - (Optional) Specify the IPv6 class. (EI Mode Only) flowlabel - (Optional) Specify the IPv6 flow label. (EI Mode Only) source_ipv6_mask - - D-Link DGS-3120-24PC | CLI Guide - Page 94
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the TCP source port mask value here. des_port_mask - Specify an IPv6 Layer 4 TCP destination port mask. - Enter the - D-Link DGS-3120-24PC | CLI Guide - Page 95
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format delete access_profile [profile_id | profile_name < of 10: DGS-3120-24TC:admin# delete access_profile profile_id 10 Command: delete access_profile profile_id 10 Success. DGS-3120-24TC:admin# 6-3 - D-Link DGS-3120-24PC | CLI Guide - Page 96
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide {mask } | destination_ipv6 {mask } | [tcp { access list entry. The value range is 1-256, but the supported maximum number of entries depends on the project. If the auto_assign option - D-Link DGS-3120-24PC | CLI Guide - Page 97
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the mask value here. source_ip - (Optional) Specify an IP source address. - Enter the source IP address used for this configuration - D-Link DGS-3120-24PC | CLI Guide - Page 98
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide packet_content - A maximum of 11 port mask value here. icmp - (Optional) Specify to configure the ICMP parameters used. (EI Mode Only) type - Specify that the rule applies to the value of ICMP type traffic. - D-Link DGS-3120-24PC | CLI Guide - Page 99
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide list entry. The value range is 1-256, but the supported maximum number of entries depends on the project. If the packet content mask profile (option 3): DGS-3120-24TC:admin# config access_profile profile_id 5 - D-Link DGS-3120-24PC | CLI Guide - Page 100
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 6-4 show access_profile Description This Restrictions None. Example To display the current access list table: DGS-3120-24TC:admin#show access_profile Command: show access_profile Access Profile Table Total User - D-Link DGS-3120-24PC | CLI Guide - Page 101
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Permit Profile ID: 2 Profile name: IPv4ACL Type: IPv4 MASK on VLAN DSCP ICMP : 0xFFF Available HW Entries : 255 Rule ID : 1 Ports: 1:2 Match on VLAN ID : 1 - D-Link DGS-3120-24PC | CLI Guide - Page 102
CLI Reference Guide Available HW Entries : 255 Rule ID : 1 Ports: 1:4 Match on offset_chunk_1 : 0 value : 0x0000FFEE Mask : 0x0000FFEE Action: Permit Priority : 1 Replace DSCP : 1 DGS-3120-24TC:admin# The following example displays an access profile that supports an entry - D-Link DGS-3120-24PC | CLI Guide - Page 103
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show access_profile profile_id 5 DGS-3120-24TC:admin# 6-5 config flow_meter Description This command is used to configure the flow-based metering function. The metering function supports - D-Link DGS-3120-24PC | CLI Guide - Page 104
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide The replace DSCP action can be performed on packets that conform (GREEN) and packets that do not conform (YELLOW and RED). If drop YELLOW/RED - D-Link DGS-3120-24PC | CLI Guide - Page 105
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide optional parameter. The default value is 4*1024. - Enter the peak burst size value here. This value must be between 0 and 131072. color_blind - (Optional) - D-Link DGS-3120-24PC | CLI Guide - Page 106
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide when the function is disabled. enable - Specify command. Example To configure a "two rate, three color" flow meter: DGS-3120-24TC:admin#config flow_meter profile_id 1 access_id 1 tr_tcm cir 1000 cbs 2000 pir 2000 - D-Link DGS-3120-24PC | CLI Guide - Page 107
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters profile_id - (Optional) Specify the profile ID. Disabled Total Entries: 1 DGS-3120-24TC:admin# 6-7 config time_range Description This command is used to define a specific range of time to activate - D-Link DGS-3120-24PC | CLI Guide - Page 108
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide dash to define a period of days. Use a comma to separate specific days. - Enter the weekdays that will be included 01am and ends at 02:02:02am: DGS-3120-24TC:admin# config time_range 1 hours start_time - D-Link DGS-3120-24PC | CLI Guide - Page 109
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To display the current time range settings: DGS-3120-24TC:admin# show time_range Command: show time_range Time Range Information Range Name : test Weekdays : Sun,Tue Start Time - D-Link DGS-3120-24PC | CLI Guide - Page 110
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show current_config access_profile Command: show current_config access_profile ACL create access_profile ethernet vlan profile_id 1 config access_profile profile_id 1 add access_id 1 ethernet - D-Link DGS-3120-24PC | CLI Guide - Page 111
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 7 Access Control List (ACL) Egress Command List (EI Mode Only) create egress_access_profile profile_id profile_name [ethernet {vlan {} | source_mac - D-Link DGS-3120-24PC | CLI Guide - Page 112
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 7-1 create egress_access_profile profile_id Description This command is used to create an egress access list profile. For example, for some hardware, it may be invalid to - D-Link DGS-3120-24PC | CLI Guide - Page 113
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide dst_port_mask - Specify the TCP destination port mask. "eap-eth-bc" and assign the profile ID to be 1: DGS-3120-24TC:admin# create egress_access_profile profile_id 1 profile_name eap-eth-bc ethernet source_mac FF - D-Link DGS-3120-24PC | CLI Guide - Page 114
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 7-2 delete egress_access_profile Description This command is ID 1: DGS-3120-24TC:admin# delete egress_access_profile profile_id 1 Command: delete egress_access_profile profile_id 1 Success. DGS-3120-24TC:admin# 7-3 - D-Link DGS-3120-24PC | CLI Guide - Page 115
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide | source_ipv6 {mask } | destination_ipv6 {mask } | [tcp {src_port {mask } | dst_port {mask }} | - D-Link DGS-3120-24PC | CLI Guide - Page 116
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the destination network mask here. dscp - (Optional) Specify the value of DSCP. The DSCP value ranges from 0 to 63. - Enter the - D-Link DGS-3120-24PC | CLI Guide - Page 117
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the IPv6 source address mask value here. destination_ipv6 - (Optional) Specify the value of IPv6 destination address. - Enter the source IPv6 destination address - D-Link DGS-3120-24PC | CLI Guide - Page 118
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide the "counter" is overridden. enable - Specify IP, DSCP and destination IP field, it will not be dropped: DGS-3120-24TC:admin# config egress_access_profile profile_id 2 add access_id auto_assign ip source_ip 10.0.0.1 - D-Link DGS-3120-24PC | CLI Guide - Page 119
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters profile_id - (Optional) Specify the index of Example To display current egress access list table: DGS-3120-24TC:admin#show egress_access_profile Command: show egress_access_profile Egress Access - D-Link DGS-3120-24PC | CLI Guide - Page 120
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Rule ID : 1 (auto assign) Ports: 1:3 1:4 Match on Class : 10 Action: Permit DGS-3120-24TC:admin# The following example displays an egress access profile that supports an entry mask for each rule: 116 - D-Link DGS-3120-24PC | CLI Guide - Page 121
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show egress_access_profile profile_id 1 Command: show egress_access_profile profile_id 1 Egress Access Profile Table Profile ID: 1 Profile name: EthernetACL Type: Ethernet MASK on VLAN - D-Link DGS-3120-24PC | CLI Guide - Page 122
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show current_config egress_access_profile Command: show current_config egress_access_profile # Egress ACL create egress_access_profile profile_id 1 profile_name 1 ethernet source_mac FFFF-FF- - D-Link DGS-3120-24PC | CLI Guide - Page 123
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide lower value denotes a higher priority. rate - This specifies the rate for single rate two-color mode. Specify the committed bandwidth in Kbps for the flow. - D-Link DGS-3120-24PC | CLI Guide - Page 124
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide enable - Specify that the ACL counter parameter will be enabled. disable - Specify that the ACL counter parameter will be disabled. sr_tcm - Specify the "single rate - D-Link DGS-3120-24PC | CLI Guide - Page 125
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config egress_flow_meter profile_id 1 access_id 1 tr_tcm cir 1000 cbs 200 pir 2000 pbs 200 exceed permit replace_dscp 21 violate drop Command: config egress_flow_meter profile_id 1 access_id 1 - D-Link DGS-3120-24PC | CLI Guide - Page 126
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show egress_flow_meter Command: show egress_flow_meter Flow Meter Information Profile ID:1 Aceess ID:1 Mode : trTCM / ColorAware CIR(Kbps):1000 CBS(Kbyte):1000 PIR(Kbps):2000 - D-Link DGS-3120-24PC | CLI Guide - Page 127
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# create port_group id 2 name group2 Command: create port_group id 2 name group2 Success. DGS-3120-24TC:admin# 7-9 config port_group Description This command is used to add or delete a port list - D-Link DGS-3120-24PC | CLI Guide - Page 128
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters id - Specify the port group ID. - D-Link DGS-3120-24PC | CLI Guide - Page 129
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show port_group Command: show port_group Port Group Table Port Group ID Port Group Name Ports 2 group2 1:1-1:3 Total Entries :1 DGS-3120-24TC:admin# 125 - D-Link DGS-3120-24PC | CLI Guide - Page 130
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 8 Address Resolution Protocol (ARP) Command List create create arpentry 10.48.74.121 00-50-BA-00-07-36 Success. DGS-3120-24TC:admin# 8-2 delete arpentry Description This command is used to delete an ARP - D-Link DGS-3120-24PC | CLI Guide - Page 131
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format delete arpentry [ | all] .121 from the ARP table: DGS-3120-24TC:admin# delete arpentry 10.48.74.121 Command: delete arpentry 10.48.74.121 Success. DGS-3120-24TC:admin# 8-3 config arpentry Description - D-Link DGS-3120-24PC | CLI Guide - Page 132
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config arpentry 10.48.74.121 00-50-BA-00-07-37 Command: config arpentry 10.48.74.121 00-50-BA-00-07-37 Success. DGS-3120-24TC:admin# 8-4 config arp_aging time Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 133
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To clear the ARP table: DGS-3120-24TC:admin# clear arptable Command: clear arptable Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 134
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show arpentry Command: show arpentry ARP Aging Time : 20 Interface System System System System -04-00 Local FF-FF-FF-FF-FF-FF Local/Broadcast Total Entries: 6 DGS-3120-24TC:admin# 130 - D-Link DGS-3120-24PC | CLI Guide - Page 135
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 9 ARP Spoofing Prevention Command List config arp_spoofing_prevention [add gateway_ip gateway_mac ports [ | all] | delete gateway_ip ] show arp_spoofing_prevention 9-1 - D-Link DGS-3120-24PC | CLI Guide - Page 136
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config arp_spoofing_prevention add gateway_ip 10.254.254.251 gateway_mac 00-00-00-11-11-11 ports 1:1-1:2 Command: config arp_spoofing_prevention add gateway_ip 10.254.254. - D-Link DGS-3120-24PC | CLI Guide - Page 137
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 10 Asymmetric VLAN Command List Example To enable asymmetric VLANs: DGS-3120-24TC:admin# enable asymmetric_vlan Command: enable asymmetric_vlan Success. DGS-3120-24TC:admin# 10-2 disable asymmetric_vlan - D-Link DGS-3120-24PC | CLI Guide - Page 138
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To disable asymmetric VLANs: DGS-3120-24TC:admin# disable asymmetric_vlan Command: disable - D-Link DGS-3120-24PC | CLI Guide - Page 139
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 11 Auto-Configuration Command List command. Example To enable autoconfig: DGS-3120-24TC:admin# enable autoconfig Command: enable autoconfig Success. DGS-3120-24TC:admin# 11-2 disable autoconfig Description - D-Link DGS-3120-24PC | CLI Guide - Page 140
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format disable autoconfig Parameters None. Restrictions Only Administrator and Operator-level users can issue this command. Example To disable autoconfig: DGS-3120-24TC:admin# disable autoconfig Command: disable - D-Link DGS-3120-24PC | CLI Guide - Page 141
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 12 reset {[config | system]} {force_agree} config firmware image EI Mode Only) disable ipif_ipv6_link_local_auto [ | all] (EI Mode Only) show ipif_ipv6_link_local_auto {} (EI - D-Link DGS-3120-24PC | CLI Guide - Page 142
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide encrypt - dlink": DGS-3120-24TC:admin# create account admin dlink Command: create account admin dlink Enter a case-sensitive new password:**** Enter the new password again for confirmation:**** Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 143
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters - Enter the user name of the To configure the user password of "dlink" account: DGS-3120-24TC:admin# config account dlink Command: config account dlink Enter a old password:**** Enter a - D-Link DGS-3120-24PC | CLI Guide - Page 144
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator-level users can issue this command. Example To display the accounts that have been created: DGS-3120-24TC:admin#show account Command: show account Current Accounts: Username admin - D-Link DGS-3120-24PC | CLI Guide - Page 145
: show switch Device Type : DGS-3120-24TC Gigabit Ethernet Switch Unit ID : 1 MAC Address : 00-00-00-01-02-03 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 2.00.003 Firmware Version : Build 2.50.015 - D-Link DGS-3120-24PC | CLI Guide - Page 146
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 12-6 enable telnet Description This To enable TELNET and configure port number: DGS-3120-24TC:admin# enable telnet 23 Command: enable telnet 23 Success. DGS-3120-24TC:admin# 12-7 disable telnet Description This - D-Link DGS-3120-24PC | CLI Guide - Page 147
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To disable TELNET: DGS-3120-24TC:admin# disable telnet Command: disable telnet Success. DGS-3120-24TC:admin# 12-8 enable web Description This command is used to manage the Switch via HTTP based management - D-Link DGS-3120-24PC | CLI Guide - Page 148
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator and Operator-level users can issue this command. Example To disable HTTP: DGS-3120-24TC:admin# disable web Command: disable web Success. DGS-3120-24TC:admin# 12-10 - D-Link DGS-3120-24PC | CLI Guide - Page 149
To reset the Switch: DGS-3120-24TC:admin#reset system Command: reset system Are you sure you want to proceed with system reset?(y/t/n) y-(reset all include stacking configuration, save, reboot ) t-(reset all exclude stacking configuration, save, reboot) n-(cancel command)y Reboot & Load Factory - D-Link DGS-3120-24PC | CLI Guide - Page 150
.had as the boot up image for unit 2: DGS-3120-24TC:admin# config firmware image unit 2 c:/DGS3120_Run_2_00_010.had boot_up Command: config firmware image unit 2 c:/DGS3120_Run_2_00_010.had boot_up Success. DGS-3120-24TC:admin# 12-13 create ipif (EI Mode Only) Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 151
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide enable - Specify that the proxy ARP option will level users can issue this command. Example To create an IP interface: DGS-3120-24TC:admin#create ipif Inter2 192.168.16.1/24 default state enable secondary Command: - D-Link DGS-3120-24PC | CLI Guide - Page 152
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide disable - Disable the state of the interface. proxy_arp - Enable/disable of proxy ARP function. It is for IPv4 function. Default: Disabled. (EI Mode Only) enable - Specify that the proxy ARP option will be enabled. - D-Link DGS-3120-24PC | CLI Guide - Page 153
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config ipif System ipaddress 192.168.69.123/24 vlan default Command: config ipif System ipaddress 192.168.69.123/24 vlan default Success. DGS-3120-24TC:admin# 12-15 delete ipif (EI Mode Only) - D-Link DGS-3120-24PC | CLI Guide - Page 154
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters ipif_name - Specify the name of enable an IP interface: DGS-3120-24TC:admin#enable ipif newone Command: enable ipif newone Success. DGS-3120-24TC:admin# 12-17 disable ipif (EI Mode Only) Description This - D-Link DGS-3120-24PC | CLI Guide - Page 155
: LinkUp : 10.90.90.90/8 (Manual) Primary : Disabled (Local : Disabled) : Enabled : Enabled : Disabled : Total Entries: 1 DGS-3120-24TC:admin# 12-19 enable ipif_ipv6_link_local_auto (EI Mode Only) Description This command is used to enable the auto configuration of link local address when there are - D-Link DGS-3120-24PC | CLI Guide - Page 156
. Example To enable the IP interface for IPv6 link local automatic: DGS-3120-24TC:admin#enable ipif_ipv6_link_local_auto newone Command: enable ipif_ipv6_link_local_auto newone Success. DGS-3120-24TC:admin# 12-20 disable ipif_ipv6_link_local_auto (EI Mode Only) Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 157
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#disable ipif_ipv6_link_local_auto newone Command: disable ipif_ipv6_link_local_auto newone Success. DGS-3120-24TC:admin# 12-21 show ipif_ipv6_link_local_auto (EI Mode Only) Description This - D-Link DGS-3120-24PC | CLI Guide - Page 158
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 13 BPDU Attack Protection Command List config bpdu_protection ports [ | all ] {state [enable | disable] | mode [ drop | block | shutdown} (1) config bpdu_protection recovery_timer [ - D-Link DGS-3120-24PC | CLI Guide - Page 159
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To set the port state enable and drop mode: DGS-3120-24TC:admin# config bpdu_protection ports 1 state enable mode drop Commands: config bpdu_protection ports 1 state enable mode drop Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 160
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config bpdu_protection [trap | log] [none | attack_detected | entire switch: DGS-3120-24TC:admin# config bpdu_protection trap both Commands: config bpdu_protection trap both Success. DGS-3120-24TC:admin# 13 - D-Link DGS-3120-24PC | CLI Guide - Page 161
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# enable bpdu_protection Commands: enable bpdu_protection Success. DGS-3120-24TC:admin# 13-5 disable bpdu_protection Description This command is used to disable BPDU protection function globally - D-Link DGS-3120-24PC | CLI Guide - Page 162
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To show the bpdu_protection for the entire switch: DGS-3120-24TC:admin# show bpdu_protection Commands: show bpdu_protection BPDU Protection Global Settings BPDU Protection status : - D-Link DGS-3120-24PC | CLI Guide - Page 163
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 14 specification or the quality is too bad. When a port is in link-up status, the test will obtain the distance of the cable. Since the status is link-up, the cable will not have the short or open problem - D-Link DGS-3120-24PC | CLI Guide - Page 164
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide • When the link partner is powered down . The cable diagnosis does not support on the Pair 1 and 4 if the link partner is FE port. If the link partner is FE port, the target port's link will be down after the test - D-Link DGS-3120-24PC | CLI Guide - Page 165
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#cable_diag ports 1:1,1:11-1:12 Command: cable_diag ports 1:1,1:11-1:12 Perform Cable Diagnostics ... Port -----1:1 1:11 1:12 Type ---------1000BASE-T 1000BASE-T 1000BASE-T Link Status Link - D-Link DGS-3120-24PC | CLI Guide - Page 166
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 15 Command Logging Command List enable the command logging function: DGS-3120-24TC:admin# enable command logging Command: enable command logging Success. DGS-3120-24TC:admin# 15-2 disable command logging - D-Link DGS-3120-24PC | CLI Guide - Page 167
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format disable command logging Parameters None. Restrictions Only Administrator-level users can issue this command. Example To disable the command logging: DGS-3120-24TC:admin# disable command logging Command: - D-Link DGS-3120-24PC | CLI Guide - Page 168
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 164 - D-Link DGS-3120-24PC | CLI Guide - Page 169
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 16 Compound Authentication Command List create authentication guest_vlan [vlan | vlanid ] (EI Mode Only) delete authentication guest_vlan [vlan | vlanid - D-Link DGS-3120-24PC | CLI Guide - Page 170
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# create authentication guest_vlan vlan guestVLAN Command: create authentication guest_vlan vlan guestVLAN Success. DGS-3120-24TC:admin# 16-2 delete authentication guest_vlan (EI Mode Only) - D-Link DGS-3120-24PC | CLI Guide - Page 171
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters vlan as specified guest VLAN member: DGS-3120-24TC:admin#config authentication guest_vlan vlan guestVLAN on specific authentication VLAN(s) only for WAC. vlanid - (Optional) Specific authentication VLAN - D-Link DGS-3120-24PC | CLI Guide - Page 172
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide for compound authentication. (EI Mode Only) none DGS-3120-24TC:admin# config authentication ports all multi_authen_methods any Command: config authentication ports all multi_authen_methods any Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 173
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide delimiter - (Optional)Specify whether to use delimiter and number of uppercase delimiter hyphen number 5 Success. DGS-3120-24TC:admin# 16-6 show authentication guest_vlan (EI Mode Only) Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 174
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show authentication guest_vlan Command: show authentication guest_vlan Guest VLAN VID : 2 Guest VLAN Member Ports: 1:1-1:24 Total Entries: 1 DGS-3120-24TC:admin# 16-7 show authentication - D-Link DGS-3120-24PC | CLI Guide - Page 175
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 16-8 enable authorization attributes Description This command global state enabled: DGS-3120-24TC:admin# enable authorization attributes Command: enable authorization attributes Success. DGS-3120-24TC:admin# 16-9 - D-Link DGS-3120-24PC | CLI Guide - Page 176
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# disable authorization attributes Command: disable authorization attributes Success. DGS-3120-24TC:admin# 16-10 show authorization Description This command is used to display authorization status - D-Link DGS-3120-24PC | CLI Guide - Page 177
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example Set authentication server auth fail over state: DGS-3120-24TC:admin# config authentication server failover local - D-Link DGS-3120-24PC | CLI Guide - Page 178
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show authentication mac_format Parameters None. Restrictions None. Example To display the authentication MAC format settings: DGS-3120-24TC:admin#show authentication mac_format Command: show authentication - D-Link DGS-3120-24PC | CLI Guide - Page 179
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 17 Configuration Command List show config [effective | modified | current_config | boot_up | information| file ] {[include | exclude | begin] { { - D-Link DGS-3120-24PC | CLI Guide - Page 180
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide setting regarding STP is not displayed. The lower level setting will only be displayed when the higher level setting is enabled. Note: This parameter is - D-Link DGS-3120-24PC | CLI Guide - Page 181
Output truncated... DGS-3120-24TC:admin# 17-2 config configuration Description This command is used to select a configuration file as the next boot up configuration or to apply a specific configuration to the system. This command is required when multiple configuration files are supported. Format - D-Link DGS-3120-24PC | CLI Guide - Page 182
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure the Switch's configuration file as boot up: DGS-3120-24TC:admin#config configuration config.cfg boot_up Command: config configuration config.cfg boot_up Success. DGS-3120-24TC:admin# 17-3 save - D-Link DGS-3120-24PC | CLI Guide - Page 183
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show boot_file Parameters None. Restrictions None. Example To display the boot file: DGS-3120-24TC:admin#show boot_file Command: show boot_file Bootup Firmware : /c:/runtime.had Bootup Configuration : - D-Link DGS-3120-24PC | CLI Guide - Page 184
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 18 Configuration Trap Command List config configuration trap {save [enable | disable] | upload [enable | disable] | download [enable | disable]} 18-1 config configuration trap Description This command - D-Link DGS-3120-24PC | CLI Guide - Page 185
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config configuration trap save enable Command: config configuration trap save enable Success. DGS-3120-24TC:admin# 181 - D-Link DGS-3120-24PC | CLI Guide - Page 186
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 19 Connectivity Fault Management (CFM) Command List (EI Mode Only) create cfm md {md_index } level config cfm md [ | md_index ] {mip - D-Link DGS-3120-24PC | CLI Guide - Page 187
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide remote_mepid show DGS-3120-24TC:admin# 19-2 config cfm md Description This command is used to configure the parameters of a maintenance domain. The creation of MIPs on an MA is useful to trace the link - D-Link DGS-3120-24PC | CLI Guide - Page 188
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters - Enter the maintenance domain name for creating MIPs: DGS-3120-24TC:admin# config cfm md op_domain mip explicit Command: config cfm md op_domain mip explicit Success. DGS-3120-24TC:admin# 19-3 - D-Link DGS-3120-24PC | CLI Guide - Page 189
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the maintenance association index domain "op_domain": DGS-3120-24TC:admin# create cfm ma op1 md op_domain Command: create cfm ma op1 md op_domain Success. DGS-3120-24TC:admin# 19-4 - D-Link DGS-3120-24PC | CLI Guide - Page 190
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide be between 1 and 4294967295. vlanid - (Optional) User level users can issue this command. Example To configure a CFM MA: DGS-3120-24TC:admin# config cfm ma op1 md op_domain vlanid 1 ccm_interval 1sec Command: config - D-Link DGS-3120-24PC | CLI Guide - Page 191
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format create cfm mep mepid - D-Link DGS-3120-24PC | CLI Guide - Page 192
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide • Error CCM Received: priority 4 • Some Remote MEPs Down: priority 3 • Some Remote MEP MAC Status Errors: priority 2 • Some Remote MEP Defect Indications: priority 1 If multiple types - D-Link DGS-3120-24PC | CLI Guide - Page 193
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide reset time value here. This value must be between 250 and 1000 centiseconds. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To configure a CFM MEP: DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 194
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To delete a CFM MEP: DGS-3120-24TC:admin# delete cfm mep mepname mep1 Command: delete cfm mep mepname mep1 Success - D-Link DGS-3120-24PC | CLI Guide - Page 195
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# delete cfm ma op1 md op_domain Command: delete cfm ma op1 md op_domain Success. DGS-3120-24TC:admin# 19-9 delete cfm md Description This command is used to delete a previously created - D-Link DGS-3120-24PC | CLI Guide - Page 196
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To enable the CFM globally: DGS-3120-24TC:admin# enable cfm Command: enable cfm Success. DGS-3120 - D-Link DGS-3120-24PC | CLI Guide - Page 197
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide PDUs. If the user issues a Loopback or Link trace test on those MEPs, it will prompt the DGS-3120-24TC:admin#config cfm ports 1:2-1:5 state enable Command: config cfm ports 1:2-1:5 state enable Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 198
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To show the CFM ports: DGS-3120-24TC:admin#show cfm ports 1:3-1:6 Command: show cfm ports 1:3-1:6 Port ----1:3 1:4 1:5 1:6 State -------Enabled Enabled Enabled Disabled DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 199
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To show the CFM configuration: DGS-3120-24TC:admin#show cfm Command: show cfm CFM State: Enabled AIS Trap State: Disabled LCK Trap State: Disabled MD Index ---------1 MD Name - D-Link DGS-3120-24PC | CLI Guide - Page 200
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Port : 1:2 Direction : Inward CFM Port Status : Enabled MAC -FF-FF-FF FAILED No No No No 2011-07-13 12:00:00 DGS-3120-24TC:admin# 19-15 show cfm fault Description This command is used to display all - D-Link DGS-3120-24PC | CLI Guide - Page 201
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show cfm fault {md [ | MEPID Status AIS Status LCK Status op_domain op1 1 Cross-connect CCM Received DGS-3120-24TC:admin# 19-16 show cfm port Description This command is used to show - D-Link DGS-3120-24PC | CLI Guide - Page 202
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide outward - Specify that the MEP direction 1 and 4094. Restrictions None. Example To show the MEPs and MIPs created on a port: DGS-3120-24TC:admin# show cfm port 1 Command: show cfm port 1 MAC Address: 00-05-78-82- - D-Link DGS-3120-24PC | CLI Guide - Page 203
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the Packets: Sent=4, Received=1, Lost=3(75% loss). DGS-3120-24TC:admin# 19-18 cfm linktrace Description This command is used to issue a CFM link track message. Format cfm linktrace - D-Link DGS-3120-24PC | CLI Guide - Page 204
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the MEP name Transaction ID: 26 Success. DGS-3120-24TC:admin# 19-19 show cfm linktrace Description This command is used to show the link trace responses. The maximum link trace responses a device - D-Link DGS-3120-24PC | CLI Guide - Page 205
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the MEP ID used here here. Restrictions None. Example To show the link trace reply when the "all MPs reply LTRs" function is enabled: DGS-3120-24TC:admin# show cfm linktrace mepname mep1 trans_id - D-Link DGS-3120-24PC | CLI Guide - Page 206
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show cfm 00-11-22-33-44-55 No Hit DGS-3120-24TC:admin# 19-20 delete cfm linktrace Description This command is used to delete the stored link trace response data that have been initiated by - D-Link DGS-3120-24PC | CLI Guide - Page 207
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To delete the CFM link trace reply: DGS-3120-24TC:admin# delete cfm linktrace mepname mep1 Command: delete cfm linktrace mepname mep1 Success. DGS-3120-24TC:admin# 19-21 show cfm mipccm Description This - D-Link DGS-3120-24PC | CLI Guide - Page 208
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config cfm mp_ltr_all [enable | disable] all MPs reply LTRs" function: DGS-3120-24TC:admin# config cfm mp_ltr_all enable Command: config cfm mp_ltr_all enable Success. DGS-3120-24TC:admin# 19-23 show cfm - D-Link DGS-3120-24PC | CLI Guide - Page 209
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 19-24 show cfm remote_mep Description This command is used to show remote MEPs. Format show cfm remote_mep [mepname | md [ | md_index < - D-Link DGS-3120-24PC | CLI Guide - Page 210
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show cfm remote_mep mepname mep1 remote_mepid IPv4 10.90.90.90:161 Detect Time : 2008-01-01 12:00:00 DGS-3120-24TC:admin# 19-25 show cfm pkt_cnt Description This command is used to show the - D-Link DGS-3120-24PC | CLI Guide - Page 211
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 2 204 204 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 5 0 0 0 0 2 inward 9 8 100 Total: 27 24 300 DGS-3120-24TC:admin# 19-26 clear cfm pkt_cnt Description This command - D-Link DGS-3120-24PC | CLI Guide - Page 212
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format clear cfm pkt_cnt {[ports {[rx | DGS-3120-24TC:admin# clear cfm pkt_cnt Command: clear cfm pkt_cnt Success. DGS-3120-24TC: clear cfm pkt_cnt ccm Command: clear cfm pkt_cnt ccm Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 213
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide enable - Enable the CFM trap state. This is the default. disable - Disable the CFM trap state. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 214
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 20 Connectivity Fault Management (CFM) Extension Command List (EI Mode Only) config cfm ais md [ | md_index ] ma [ | ma_index ] mepid - D-Link DGS-3120-24PC | CLI Guide - Page 215
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the MEP ID config cfm ais md op-domain ma op-ma mepid 1 state enable level 5 Success. DGS-3120-24TC:admin# 20-2 config cfm lock Description This command is used to configure the parameters of LCK - D-Link DGS-3120-24PC | CLI Guide - Page 216
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide characters long. ma_index - Specify the cfm lock md op-domain ma op-ma mepid 1 state enable level 5 Success. DGS-3120-24TC:admin# 20-3 cfm lock md Description This command is used to start/stop cfm management - D-Link DGS-3120-24PC | CLI Guide - Page 217
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the maintenance and Power-User level users can issue this command. Example To start management lock: DGS-3120-24TC:admin# cfm lock md op-domain ma op-ma mepid 1 remote_mepid 2 action - D-Link DGS-3120-24PC | CLI Guide - Page 218
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 21 CPU Interface Filtering Command List create cpu access_profile profile_id [ethernet {vlan | source_mac | destination_mac - D-Link DGS-3120-24PC | CLI Guide - Page 219
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide | offset_16-31 - D-Link DGS-3120-24PC | CLI Guide - Page 220
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide and 15. - Enter the mask pattern offset of the frame between 0 and 15 here. offset_16-31 - (Optional) Specify that the mask pattern - D-Link DGS-3120-24PC | CLI Guide - Page 221
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#create cpu access_profile source_ip_mask 20.0.0.0 destination_ip_mask 10.0.0.0 dscp icmp type code Success. DGS-3120-24TC:admin# 21-2 delete cpu access_profile Description This command is used - D-Link DGS-3120-24PC | CLI Guide - Page 222
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config cpu access_profile profile_id [add access_id [auto_assign | ] [ethernet {[vlan | vlan_id ] | source_mac | destination_mac | 802 - D-Link DGS-3120-24PC | CLI Guide - Page 223
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide destination_ip - (Optional) Specify an IP destination address. - Enter the destination IP address used for this configuration here. mask - (Optional) Specify the mask. - Specify - D-Link DGS-3120-24PC | CLI Guide - Page 224
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the mask pattern offset of the frame between 16 and 31 here. offset_32-47 - (Optional) Specify that the mask pattern offset - D-Link DGS-3120-24PC | CLI Guide - Page 225
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide delete - Specify to delete a rule from the profile users can issue this command. Example To configure CPU access list entry: DGS-3120-24TC:admin# config cpu access_profile profile_id 1 add access_id 1 ip vlan default - D-Link DGS-3120-24PC | CLI Guide - Page 226
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 21-5 disable cpu interface filtering Description To disable cpu_interface_filtering: DGS-3120-24TC:admin# disable cpu_interface_filtering Command: disable cpu_interface_filtering Success. DGS-3120-24TC:admin# 21-6 - D-Link DGS-3120-24PC | CLI Guide - Page 227
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show cpu access_profile Command: show cpu access_profile CPU Interface Filtering State: Disabled CPU Interface Access Profile Table Total Unused Rule Entries : 497 Total Used - D-Link DGS-3120-24PC | CLI Guide - Page 228
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Source MAC : FF-FF-FF-FF-FF-FF Unused Rule Entries: 99 Rule ID : 1 0xFFFFF000 0xFFFFFFFF Offset 64-79 : 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFF000 Unused Rule Entries: 100 DGS-3120-24TC:admin# 224 - D-Link DGS-3120-24PC | CLI Guide - Page 229
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 22 Debug Software Command List debug error_log [dump | dhcpv6_client state enable (EI Mode Only) debug dhcpv6_client state disable (EI Mode Only) debug dhcpv6_client output [buffer | console] (EI Mode Only) - D-Link DGS-3120-24PC | CLI Guide - Page 230
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To dump the error log: DGS-3120-24TC:admin# debug error_log dump Command: debug error_log dump debug log: 1 # level: fatal # clock: 10000ms # time : 2009/03/11 13:00:00 SOFTWARE FATAL ERROR Invalid - D-Link DGS-3120-24PC | CLI Guide - Page 231
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format debug show error_reboot state Parameters None. Restrictions Only Administrator-level users can issue this command. Example To display the error reboot status: DGS-3120-24TC pool resources manually. Format - D-Link DGS-3120-24PC | CLI Guide - Page 232
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator users can issue this command. Example To show the debug buffer's state: DGS-3120-24TC memroy pool resources manually. Format debug output [module | all] [buffer | console - D-Link DGS-3120-24PC | CLI Guide - Page 233
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters module - Specify the module list. < message outputs to local console: DGS-3120-24TC:admin# debug output all console Command: debug output all console Success. DGS-3120-24TC:admin# 22-5 debug config - D-Link DGS-3120-24PC | CLI Guide - Page 234
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# debug config error_reboot disable Command: debug config error_reboot disable Success. DGS-3120-24TC:admin# 22-6 debug config state Description This command is used to set the state of the debug. - D-Link DGS-3120-24PC | CLI Guide - Page 235
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator-level users can issue this command. Example To clear cpu port counter of all ports: DGS-3120-24TC:admin#debug clear cpu port counter all Command: debug clear cpu port counter all - D-Link DGS-3120-24PC | CLI Guide - Page 236
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show debug cpu port counter by CoS on port 1:1 and 1:2: DGS-3120-24TC:admin#debug show cpu port counter 1:1-1:2 by_cos Command: debug show cpu port counter 1:1-1:2 by_cos Ports:1 CoS 0 rx:0 tx:0 1 rx:0 tx - D-Link DGS-3120-24PC | CLI Guide - Page 237
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To display debug information of JWAC: DGS-3120-24TC:admin#debug show jwac auth_info Command: debug show jwac auth_info ACL Index Bitmap DB (jwac_db_acl_bmp): 00 00 00 00 00 00 00 00 00 00 - D-Link DGS-3120-24PC | CLI Guide - Page 238
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#debug show status Command: debug show status Debug Global State : Enabled MSTP IMPB DHCPv6_CLIENT DHCPv6_RELAY ERPS : Disabled : Disabled : Disabled : Disabled : Disabled DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 239
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator-level users can issue this command. Example To disabled the DHCPv6 client debug function: DGS-3120-24TC:admin#debug dhcpv6_client state disable Command: debug - D-Link DGS-3120-24PC | CLI Guide - Page 240
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 22-14 debug dhcpv6_client packet (EI Mode Only) Description This dhcpv6_client packet sending state enable Success. DGS-3120-24TC:admin# 22-15 debug dhcpv6_relay state enable (EI Mode Only) Description This command - D-Link DGS-3120-24PC | CLI Guide - Page 241
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To enabled the DHCPv6 relay debug function: DGS-3120-24TC:admin#debug dhcpv6_relay state enable Command: debug dhcpv6_relay state enable Success. DGS-3120-24TC:admin# 22-16 debug dhcpv6_relay state disable ( - D-Link DGS-3120-24PC | CLI Guide - Page 242
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters buffer - Let the debug console: DGS-3120-24TC:admin#debug dhcpv6_relay output console Command: debug dhcpv6_relay output console Success. DGS-3120-24TC:admin# 22-18 debug dhcpv6_relay packet (EI Mode Only - D-Link DGS-3120-24PC | CLI Guide - Page 243
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 22-19 debug dhcpv6_relay hop_count state (EI Mode Only) Description This command debug information flag about the hop count: DGS-3120-24TC:admin#debug dhcpv6_relay hop_count state enable Command: debug dhcpv6_relay - D-Link DGS-3120-24PC | CLI Guide - Page 244
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 23 DHCP Local Relay Command List config dhcp_local_relay vlan < . Example To enable DHCP local relay for default VLAN: DGS-3120-24TC:admin# config dhcp_local_relay vlan default state enable Command: config - D-Link DGS-3120-24PC | CLI Guide - Page 245
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 23-2 config dhcp_local_relay vlan vlanid Description level users can issue this command. (EI Mode Only) Example To enable DHCP local relay for default VLAN: DGS-3120-24TC:admin# config dhcp_local_relay vlan vlanid 1 - D-Link DGS-3120-24PC | CLI Guide - Page 246
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To enable the DHCP local relay function: DGS-3120-24TC:admin# enable dhcp_local_relay Command: enable dhcp_local_relay Success. DGS-3120-24TC:admin# 23-4 disable dhcp_local_relay Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 247
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To display local dhcp relay status: DGS-3120-24TC:admin# show dhcp_local_relay Command: show dhcp_local_relay DHCP/BOOTP Local Relay Status DHCP/BOOTP Local Relay VID List : Disabled : - D-Link DGS-3120-24PC | CLI Guide - Page 248
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 24 DHCP Relay Command List config dhcp_relay {hops | time } config dhcp_relay add ipif config dhcp_relay add vlanid < - D-Link DGS-3120-24PC | CLI Guide - Page 249
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure the DHCP relay hops and time parameters: DGS-3120-24TC:admin# config dhcp_relay hops 4 time 2 Command: config dhcp_relay hops 4 time 2 Success. DGS-3120-24TC:admin# 24-2 config dhcp_relay add - D-Link DGS-3120-24PC | CLI Guide - Page 250
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config dhcp_relay add vlanid < users can issue this command. (SI Mode Only) Example To add a DHCP/BOOTP server 10.43.21.12 to VLAN 1 to 10: DGS-3120-24TC:admin# config dhcp_relay add vlanid 1- - D-Link DGS-3120-24PC | CLI Guide - Page 251
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 24-4 config dhcp_relay delete Description this command. Example To delete a DHCP/BOOTP server to the relay table: DGS-3120-24TC:admin# config dhcp_relay delete ipif System 10.43.21.12 Command: config dhcp_relay - D-Link DGS-3120-24PC | CLI Guide - Page 252
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. (SI Mode Only) Example To delete a DHCP/BOOTP server 10.43.21.12 from VLAN 2 and VLAN 3: DGS-3120-24TC:admin# config - D-Link DGS-3120-24PC | CLI Guide - Page 253
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the DGS-3120-24TC:admin# config dhcp_relay option_82 remote_id user_define "D-Link L2 Switch" Command: config dhcp_relay option_82 remote_id user_define "D-Link L2 Switch" Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 254
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To enable the DHCP relay function. DGS-3120-24TC:admin# enable dhcp_relay Command: enable dhcp_relay Success. DGS-3120-24TC:admin# 24-8 disable dhcp_relay Description This command is used to disable the DHCP - D-Link DGS-3120-24PC | CLI Guide - Page 255
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters Example To display DHCP relay configuration: (EI Mode Only) DGS-3120-24TC:admin#show dhcp_relay ipif System Command: .90.100 DGS-3120-24TC:admin# To display DHCP relay configuration: (SI Mode Only) 251 - D-Link DGS-3120-24PC | CLI Guide - Page 256
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show dhcp_relay ipif Server 3 Server 4 Server 10.43.21.12 VLAN ID List 1-10 DGS-3120-24TC:admin# 24-10 config dhcp_relay option_60 Description This command is used to decide whether - D-Link DGS-3120-24PC | CLI Guide - Page 257
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure the state of dhcp_relay option 60: DGS-3120-24TC:admin# config dhcp_relay option_60 state enable Command: config dhcp_relay option_60 state enable Success DGS-3120-24TC:admin# 24-11 config - D-Link DGS-3120-24PC | CLI Guide - Page 258
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 24-12 config dhcp_relay option_60 default drop option: DGS-3120-24TC:admin#config dhcp_relay option_60 default mode drop Command: config dhcp_relay option_60 default mode drop Success. DGS-3120-24TC:admin# 24- - D-Link DGS-3120-24PC | CLI Guide - Page 259
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config dhcp_relay option_60 delete [string Example To delete the DHCP relay option 60 string called 'abc': DGS-3120-24TC:admin# delete dhcp_relay option_60 string "abc" relay 10.90.90.1 - D-Link DGS-3120-24PC | CLI Guide - Page 260
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To show DHCP option 60 information: DGS-3120-24TC:admin#show dhcp_relay option_60 Command: show dhcp_relay option_60 Default Processing Mode: Drop Default Servers: Matching Rules: - D-Link DGS-3120-24PC | CLI Guide - Page 261
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure the state of dhcp_relay option 61: DGS-3120-24TC:admin# config dhcp_relay option_61 state enable Command: config dhcp_relay option_61 state enable Success DGS-3120-24TC:admin# 24-16 config - D-Link DGS-3120-24PC | CLI Guide - Page 262
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 24-17 config dhcp_relay option_61 default option 61 function: DGS-3120-24TC:admin# config dhcp_relay option_61 default drop Command: config dhcp_relay option_61 default drop Success DGS-3120-24TC:admin# 24-18 - D-Link DGS-3120-24PC | CLI Guide - Page 263
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To remove a DHCP relay option 61 entry: DGS-3120-24TC:admin# config dhcp_relay option_61 delete mac_address 00-11- - D-Link DGS-3120-24PC | CLI Guide - Page 264
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show dhcp_relay option_61 Command: show dhcp_relay option_61 Default Relay Rule: 10.90.90.200 Matching Rules: Client-ID Type abc String abcde String 00- - D-Link DGS-3120-24PC | CLI Guide - Page 265
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide entry. This command is useful for projects that support per port control of the DHCP server screening function function, we can restrict the DHCP server to service specific DHCP clients. This is useful when two DHCP - D-Link DGS-3120-24PC | CLI Guide - Page 266
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the list of ports to be .1.1.1 client_mac 0000-00-00-00-01 port 1:1-1:24 Success. DGS-3120-24TC:admin# DGS-3120-24TC:admin# config filter dhcp_server ports 1:1-1:10 state enable Command: - D-Link DGS-3120-24PC | CLI Guide - Page 267
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions None. Example To display the DHCP server/client filter list created on the Switch: DGS-3120-24TC:admin#show filter dhcp_server Command: show filter dhcp_server Enabled Ports: 1:1-1: - D-Link DGS-3120-24PC | CLI Guide - Page 268
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config filter dhcp_server log disable Command: config filter dhcp_server log disable Success. DGS-3120-24TC:admin# 25-4 config filter dhcp_server trap Description This command is used to enable - D-Link DGS-3120-24PC | CLI Guide - Page 269
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 26 DHCPv6 Relay Command List (EI Mode Only relay global state to enable: DGS-3120-24TC:admin#enable dhcpv6_relay Command: enable dhcpv6_relay Success. DGS-3120-24TC:admin# 26-2 disable dhcpv6_relay - D-Link DGS-3120-24PC | CLI Guide - Page 270
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To configure the DHCPv6 relay global state to disable: DGS-3120-24TC:admin#disable dhcpv6_relay - D-Link DGS-3120-24PC | CLI Guide - Page 271
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config dhcpv6_relay add ipif System 2001:DB8:1234:0:218:FEFF:FEFB:CC0E Command: config dhcpv6_relay add ipif System 2001:DB8:1234:0:218:FEFF:FEFB:CC0E Success. DGS-3120-24TC:admin# 26-4 config - D-Link DGS-3120-24PC | CLI Guide - Page 272
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide state - Enable or disable the DHCPv6 relay state to enable: DGS-3120-24TC:admin# config dhcpv6_relay ipif System state enable Command: config dhcpv6_relay ipif System state enable Success. DGS-3120-24TC:admin# 26-6 - D-Link DGS-3120-24PC | CLI Guide - Page 273
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show dhcpv6_relay Command: show dhcpv6_relay DHCPv6 Relay Global State : Disabled DHCPv6 Hops Count Limit : 4 IP Interface : System DHCPv6 Relay Status : Enabled Server Address : - D-Link DGS-3120-24PC | CLI Guide - Page 274
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 27 Digital Diagnostic Monitoring (DDM) Command List (EI Mode Only) config ddm [trap | log] [enable | disable] config ddm ports [ | all] [[temperature_threshold {high_alarm | low_alarm < - D-Link DGS-3120-24PC | CLI Guide - Page 275
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config ddm log enable Command: config ddm log enable Success. DGS-3120-24TC:admin# To configure DDM trap state to enable: DGS-3120-24TC:admin#config ddm trap enable Command: config ddm trap - D-Link DGS-3120-24PC | CLI Guide - Page 276
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide parameter rises above this value, the action associated with the alarm is taken. - Enter the high threshold alarm value used here. low_alarm - (Optional) Specify - D-Link DGS-3120-24PC | CLI Guide - Page 277
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, and Operator level users can issue this command. Example To configure the port 21's temperature threshold: DGS-3120-24TC:admin#config ddm ports 1:21 temperature_threshold high_alarm - D-Link DGS-3120-24PC | CLI Guide - Page 278
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config ddm ports 1:21 rx_power_threshold high_alarm 4.55 low_alarm 0.01 high_warning 3.5 low_warning 0.03 Command: config ddm ports 1:21 rx_power_threshold high_alarm 4.55 low_alarm 0.01 - D-Link DGS-3120-24PC | CLI Guide - Page 279
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 27-4 show ddm ports Description This command be displayed. Restrictions None. Example To display ports 21-22's operating parameters: DGS-3120-24TC:admin#show ddm ports 1:21-1:22 status Command: show ddm ports 1:21 - D-Link DGS-3120-24PC | CLI Guide - Page 280
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show ddm ports 1:21 configuration Command: show ddm ports 1:21 configuration Port: 1:21 DDM State : Enabled Shutdown : Alarm Threshold Temperature Voltage Bias-Current TX- - D-Link DGS-3120-24PC | CLI Guide - Page 281
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 28 D-Link License management System (DLMS) Command List install dlms . Example To install an activation code: DGS-3120-24TC:admin#install dlms activation_code xBc7vNWsSpchuQkGZsTfPwcfa Command: install - D-Link DGS-3120-24PC | CLI Guide - Page 282
Gigabit Switch CLI Reference Guide Format show dlms license {unit } Parameters unit - (Optional) Specify the Swithc in the switch stack. - Enter the unit ID of the Switch. Restrictions None. Example To display license information: DGS-3120-24TC:admin#show dlms license - D-Link DGS-3120-24PC | CLI Guide - Page 283
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 29 D-Link Unidirectional Link Detection (DULD) Command List (EI Mode Only) config duld ports [ | all ] {state [enable | disable] | mode [shutdown | normal] | discovery_time }(1) show - D-Link DGS-3120-24PC | CLI Guide - Page 284
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config duld ports 1 state enable Command: config duld ports 1:1 state enable Success. DGS-3120-24TC:admin# 29-2 show duld ports Description This command is used to show unidirectional link - D-Link DGS-3120-24PC | CLI Guide - Page 285
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 30 Ethernet Ring Protection Switching (ERPS) Command List (EI Mode Only) enable erps disable erps create erps raps_vlan delete erps raps_vlan config erps raps_vlan [state [enable | - D-Link DGS-3120-24PC | CLI Guide - Page 286
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# enable erps Command: enable erps Success. DGS-3120-24TC:admin# 30-2 disable erps Description This command is used to disable the global ERPS function on a switch. Format disable erps Parameters - D-Link DGS-3120-24PC | CLI Guide - Page 287
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the VLAN ID used here. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To create an R-APS VLAN: DGS-3120-24TC:admin# create erps raps_vlan 4094 - D-Link DGS-3120-24PC | CLI Guide - Page 288
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 30-5 config erps raps_vlan Description This to an intermittent defect. This timer is used during the protection switching process when a link failure recovers. It is only used by the RPL owner. When the RPL owner in - D-Link DGS-3120-24PC | CLI Guide - Page 289
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide unblocked RPL port and start to send R-APS PDU with an RB flag after the link recovery is confirmed within this period of time. When both the global state and the specified ring ERPS state are enabled, the specified - D-Link DGS-3120-24PC | CLI Guide - Page 290
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide sub_ring - Specify that the sub-ring is being 4094 ring mel 2 Success. DGS-3120-24TC:admin# To configure the ports of the ERPS ring for a specific R-APS VLAN: DGS-3120-24TC:admin# config erps raps_vlan 4094 - D-Link DGS-3120-24PC | CLI Guide - Page 291
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide To configure the RPL port or the RPL owner for a specific R-APS VLAN: DGS-3120-24TC:admin# config erps raps_vlan 4094 rpl port west owner enable Command: config erps raps_vlan 4094 rpl port west owner enable Success - D-Link DGS-3120-24PC | CLI Guide - Page 292
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide To configure the state of topology change propagation: DGS-3120-24TC:admin# config erps raps_vlan 4094 sub_ring raps_vlan 4093 tc_propagation state enable Command: config erps raps_vlan 4094 sub_ring raps_vlan 4093 - D-Link DGS-3120-24PC | CLI Guide - Page 293
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters trap - Specify to enable or disable the the trap state of the ERPS: DGS-3120-24TC:admin# config erps trap enable Command: config erps trap enable Success. DGS-3120-24TC:admin# 30-8 show erps Description - D-Link DGS-3120-24PC | CLI Guide - Page 294
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To display ERPS information: DGS-3120-24TC:admin# show erps Command: show erps ERPS Information Global Status : Enabled Log Status : Disabled Trap Status : Disabled R-APS VLAN : 4092 Ring - D-Link DGS-3120-24PC | CLI Guide - Page 295
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide to deny the NETBIOS packets on specific ports. Format config filter netbios [< DGS-3120-24TC:admin# config filter netbios 1-10 state enable Command: config filter netbios 1-10 state enable Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 296
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions None. Example To display the DHCP server/client filter list created on the Switch: DGS-3120-24TC:admin# show filter netbios Command: show filter netbios Enabled ports: 1-3 DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 297
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config filter extensive_netbios 1-10 state enable Command: config filter extensive_netbios 1-10 state enable Success. DGS-3120-24TC:admin# 31-4 show filter extensive_netbios Description This - D-Link DGS-3120-24PC | CLI Guide - Page 298
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 32 Filter Database (FDB) Command List create fdb [port | drop] create fdb vlanid [port | drop] create multicast_fdb < - D-Link DGS-3120-24PC | CLI Guide - Page 299
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#create fdb default 00-00-00-00-01-02 port 1:5 Command: create fdb default 00-00-00-00-01-02 port 1:5 Success. DGS-3120-24TC:admin# To filter a unicast MAC: DGS-3120-24TC:admin# create fdb default - D-Link DGS-3120-24PC | CLI Guide - Page 300
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#create fdb vlanid 1 00-00-00-00-02-02 drop Command: create fdb vlanid 1 00-00-00-00-02-02 drop Success. DGS-3120-24TC:admin# 32-3 create multicast_fdb Description This command is used to create a - D-Link DGS-3120-24PC | CLI Guide - Page 301
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters - The name of add a multicast MAC forwarding entry to the default VLAN on port 1:1 to 1:5: DGS-3120-24TC:admin#config multicast_fdb default 01-00-5C-11-22-33 add 1:1-1:5 Command: config - D-Link DGS-3120-24PC | CLI Guide - Page 302
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure the MAC address table aging time to 600 seconds: DGS-3120-24TC:admin# config fdb aging_time 600 Command: config fdb aging_time 600 Success. DGS-3120-24TC:admin# 32-6 config multicast - D-Link DGS-3120-24PC | CLI Guide - Page 303
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 32-7 delete fdb Description This command is used to delete users can issue this command. Example To delete a static FDB entry: DGS-3120-24TC:admin# delete fdb default 00-00-00-00-01-02 Command: delete fdb default 00 - D-Link DGS-3120-24PC | CLI Guide - Page 304
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To clear all FDB dynamic entries: DGS-3120-24TC:admin# clear fdb all Command: clear fdb all Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 305
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show multicast_fdb Command: show multicast_fdb VLAN Name MAC Address Egress Ports Mode : default : 01-00-5C-11-22-33 : 1:1-1:5 : Static Total Entries: 1 DGS-3120-24TC for a specific VLAN. The - D-Link DGS-3120-24PC | CLI Guide - Page 306
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show fdb Command: show fdb Unicast packet filtering mode for VLANs. Note: A product supports the multicast VLAN filtering mode could not support the port filtering mode at the same time. Format - D-Link DGS-3120-24PC | CLI Guide - Page 307
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide long. If no parameter is specified, the device will show all multicast filtering settings in the device. Restrictions None. Example To show the multicast vlan_filtering_mode for VLANs: DGS-3120-24TC:admin#show - D-Link DGS-3120-24PC | CLI Guide - Page 308
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 33 Flash File System (FFS) Command List show storage_media_info {[unit | all]} change drive {unit } md {{unit } } rd {{unit < - D-Link DGS-3120-24PC | CLI Guide - Page 309
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide GS-3120-24TC:admin#show storage_media_info Command: show storage_media_info Unit ---- 1 Drive ----c: Media Type ---------Flash Size -------- 28 MB Label ----------- FS Type ------FFS Version ------Ver2.1 - D-Link DGS-3120-24PC | CLI Guide - Page 310
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters unit - (Optional) Specify a unit ID if issue this command. Example To make a directory: DGS-3120-24TC:admin# md c:/abc Command: md c:/abc Success. DGS-3120-24TC:admin# 33-4 rd Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 311
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# rd c:/abc Command: rd c:/abc Success. DGS-3120-24TC:admin# 33-5 cd Description This command is used to change the current directory. The current directory is changed under the current drive. If - D-Link DGS-3120-24PC | CLI Guide - Page 312
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters unit - (Optional) Specify 29618 KB total (24727 KB free) (*) -with boot up info (b) -with backup info DGS-3120-24TC:admin# 33-7 rename Description This command is used to rename a file. Note that for - D-Link DGS-3120-24PC | CLI Guide - Page 313
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the unit ID here. - (Optional) Example To rename a file: DGS-3120-24TC:admin# rename run.had run1.had Command: rename run.had run1.had Success. DGS-3120-24TC:admin# 33-8 del Description - D-Link DGS-3120-24PC | CLI Guide - Page 314
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#dir Command: dir KB total (24727 KB free) (*) -with boot up info (b) -with backup info DGS-3120-24TC:admin# 33-9 erase Description This command is used to delete a file stored in the file - D-Link DGS-3120-24PC | CLI Guide - Page 315
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - (Optional) Enter the with boot up info (b) -with backup info DGS-3120-24TC:admin#erase config2.cfg Command: erase config2.cfg Success. DGS-3120-24TC:admin#dir Command: dir Directory of /unit2:/c: - D-Link DGS-3120-24PC | CLI Guide - Page 316
c:/log1.txt Success. DGS-3120-24TC:admin# 33-11 copy Description This command is used to copy a file to another file in the file system. A file located in a drive of a unit can be copied to another file located in another drive of another unit. For project that does not support file system on the - D-Link DGS-3120-24PC | CLI Guide - Page 317
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format copy {{unit } < DGS-3120-24TC:admin# copy c:/log.txt c:/log1.txt Command: copy c:/log.txt c:/log1.txt Success. DGS-3120-24TC:admin# 33-12 format Description This command is used to format a specific - D-Link DGS-3120-24PC | CLI Guide - Page 318
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator and Operator-level users can issue this command. Example To format a drive: DGS-3120-24TC:admin#format d: fat32 aaaa Command: format d: fat32 aaaa Formatting Done Success DGS-3120- - D-Link DGS-3120-24PC | CLI Guide - Page 319
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 34 Gratuitous ARP Command List config gratuitous_arp DGS-3120-24TC:admin# config gratuitous_arp send ipif_status_up enable Command: config gratuitous_arp send ipif_status_up enable Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 320
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide that the system received a ARP request packet detected: DGS-3120-24TC:admin# config gratuitous_arp send dup_ip_detected enable Command: config gratuitous_arp send dup_ip_detected enable Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 321
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To show the global GratuitousARP state: DGS-3120-24TC:admin# config gratuitous_arp learning enable Command: config - D-Link DGS-3120-24PC | CLI Guide - Page 322
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 34-5 enable gratuitous_arp Description The command log and trap: DGS-3120-24TC:admin#enable gratuitous_arp ipif System trap log Command: enable gratuitous_arp ipif System trap log Success. DGS-3120-24TC:admin# 34-6 - D-Link DGS-3120-24PC | CLI Guide - Page 323
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To disable system interface's gratuitous ARP log and trap: DGS-3120-24TC:admin# disable gratuitous_arp ipif System - D-Link DGS-3120-24PC | CLI Guide - Page 324
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show gratuitous_arp Command: show gratuitous_arp Send on IPIF Status Up : Enabled Send on Duplicate IP Detected : Enabled Gratuitous ARP Learning : Enabled IP Interface Name : - D-Link DGS-3120-24PC | CLI Guide - Page 325
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 35 IGMP / MLD Snooping Command Discovery (MLD) is used by IPv6 routers to discover multicast listeners on a directly attached link, much as IGMP is used in IPv4. The protocol is embedded in ICMPv6 instead of - D-Link DGS-3120-24PC | CLI Guide - Page 326
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide show igmp_snooping forwarding {[vlan | vlanid ]} show router_ports [vlan | vlanid | all ] {[static | dynamic | forbidden]} show igmp_snooping statistic - D-Link DGS-3120-24PC | CLI Guide - Page 327
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide reports or leave for a specific (S, G) will be integrated DGS-3120-24TC:admin# config igmp_snooping vlan_name default state enable Command: config igmp_snooping vlan_name default state enable Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 328
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide vlanid - Specify a range of VLANs to be configured. - Enter the VLAN ID list here. - Configure the rate of the IGMP control packet that the Switch can process on a specific port/VLAN. - D-Link DGS-3120-24PC | CLI Guide - Page 329
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide query response interval). • Last member query count-Number of group-specific queries sent before the router assumes there are no local members IGMP snooping querier: DGS-3120-24TC:admin# config igmp_snooping querier - D-Link DGS-3120-24PC | CLI Guide - Page 330
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 35-4 config igmp access_authentication ports enable Command: config igmp access_authentication ports all state enable Success. DGS-3120-24TC:admin# 35-5 config router_ports Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 331
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide delete - Specify to delete the router ports. router ports: DGS-3120-24TC:admin# config router_ports default add 1:1-1:10 Command: config router_ports default add 1:1-1:10 Success. DGS-3120-24TC:admin# 35 - D-Link DGS-3120-24PC | CLI Guide - Page 332
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 35-7 enable igmp_snooping Description enable IGMP snooping on the Switch: DGS-3120-24TC:admin# enable igmp_snooping Command: enable igmp_snooping Success. DGS-3120-24TC:admin# 35-8 disable igmp_snooping Description - D-Link DGS-3120-24PC | CLI Guide - Page 333
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To disable IGMP snooping on the Switch: DGS-3120-24TC:admin# disable igmp_snooping Command: disable igmp_snooping Success. DGS-3120-24TC the packet destined for this specific group to static member ports. - D-Link DGS-3120-24PC | CLI Guide - Page 334
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# create igmp_snooping static_group vlan default 239.1.1.1 Command: create igmp_snooping static_group vlan default 239.1.1.1 Success. DGS-3120-24TC:admin# 35-10 delete igmp_snooping static_group - D-Link DGS-3120-24PC | CLI Guide - Page 335
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config igmp_snooping static_group [vlan | static member ports for group 239.1.1.1 on default VLAN: DGS-3120-24TC:admin# config igmp_snooping static_group vlan default 239.1.1.1 delete 2:9-2:10 - D-Link DGS-3120-24PC | CLI Guide - Page 336
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To display all the IGMP snooping static groups: DGS-3120-24TC:admin# show igmp_snooping static_group VLAN ID/Name IP Address Static Member Ports 1 / Default 239.1.1.1 2:9-2: - D-Link DGS-3120-24PC | CLI Guide - Page 337
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide vlanid - Specify the VLAN ID to be configured. learning of an IGMP snooping group on the default VLAN: DGS-3120-24TC:admin# config igmp_snooping data_driven_learning vlan default state enable Command: - D-Link DGS-3120-24PC | CLI Guide - Page 338
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To set the maximum number of groups that can be learned by data driven: DGS-3120-24TC:admin# config igmp_snooping - D-Link DGS-3120-24PC | CLI Guide - Page 339
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 35-16 show igmp_snooping Description This command is used to display the current IGMP snooping configuration on the Switch. Format show igmp_snooping {[vlan | - D-Link DGS-3120-24PC | CLI Guide - Page 340
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show igmp_snooping Command: show igmp_snooping IGMP Snooping Global State Data Driven Learning Max Entries : Enabled : 128 VLAN Name : default Query Interval : 125 Max Response - D-Link DGS-3120-24PC | CLI Guide - Page 341
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To display the IGMP snooping rate limit for ports 1 to 15: DGS-3120-24TC:admin# show igmp_snooping rate_limit ports Restrictions None. Example To show IGMP snooping groups when IGMP v3 is supported: 337 - D-Link DGS-3120-24PC | CLI Guide - Page 342
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show igmp_snooping group Command: Filter Mode : EXCLUDE Total Entries : 1 DGS-3120-24TC:admin# To show IGMP snooping groups when only IGMP v2 is supported: The third item is a data-driven - D-Link DGS-3120-24PC | CLI Guide - Page 343
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide VID Member Ports UP Time Expiry Time Filter Mode Total Entries: 4 DGS-3120-24TC:admin# : 1:5 : 10 : 258 : EXCLUDE : NULL/226.0.0.2 the multicast group that comes from a specific sources will be forwarded to. The - D-Link DGS-3120-24PC | CLI Guide - Page 344
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the VLAN ID 90.90.20 Multicast Group: 225.0.0.2 Port Member : 2,8 Total Entries : 3 DGS-3120-24TC:admin# 35-20 show router_ports Description This command is used to display the currently - D-Link DGS-3120-24PC | CLI Guide - Page 345
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide all - Specify all VLANs on which the router port ports on the Switch. Restrictions None. Example To display router ports: DGS-3120-24TC:admin# show router_ports all Command: show router_ports all VLAN Name Static - D-Link DGS-3120-24PC | CLI Guide - Page 346
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the list of port to be displayed here. Restrictions None. Example To display the IGMP snooping statistics counter: DGS-3120-24TC:admin# show igmp_snooping statistics counter vlanid 1 Command: - D-Link DGS-3120-24PC | CLI Guide - Page 347
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide To display the IGMP snooping statistics counter for a port: DGS-3120-24TC:admin# show igmp_snooping statistics counter ports 1 Command: show igmp_snooping statistics counter ports 1 Port #1 Group Number : 10 - D-Link DGS-3120-24PC | CLI Guide - Page 348
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show igmp access_authentication ports [all | ] Parameters all - Specify Disabled Disabled DGS-3120-24TC:admin# To display the IGMP Access Control status for all ports: DGS-3120-24TC:admin#show - D-Link DGS-3120-24PC | CLI Guide - Page 349
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 1:16 Disabled 1:17 Disabled 1:18 Disabled 1:19 statistics counter: DGS-3120-24TC:admin# clear igmp_snooping statistic counter Command: clear igmp_snooping statistic counter Success. DGS-3120-24TC:admin# 35- - D-Link DGS-3120-24PC | CLI Guide - Page 350
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the VLAN name here. configure MLD snooping: DGS-3120-24TC:admin# config mld_snooping default state enable Command: config mld_snooping default state enable Success. DGS-3120-24TC:admin# 35-25 - D-Link DGS-3120-24PC | CLI Guide - Page 351
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide response interval). • Last listener query count-Number of group-specific queries sent before the router assumes there are no local listeners the MLD snooping querier: DGS-3120-24TC:admin# config mld_snooping querier - D-Link DGS-3120-24PC | CLI Guide - Page 352
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 35-26 config mld_snooping router_ports Command: config mld_snooping mrouter_ports vlan default add 1:1-1:10 Success. DGS-3120-24TC:admin# 35-27 config mld_snooping router_ports_forbidden Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 353
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters vlan - Specify the name of the VLAN on which Command: config mld_snooping mrouter_ports_forbidden vlan default add 1:11 Success. DGS-3120-24TC:admin# 35-28 enable mld_snooping Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 354
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To enable MLD snooping on the Switch: DGS-3120-24TC:admin# enable mld_snooping Command: enable mld_snooping Success. DGS-3120-24TC:admin# 35-29 disable mld_snooping Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 355
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters vlan - (Optional) Specify the name of Out : Disabled Data Driven Group Expiry Time : 260 Total Entries: 1 DGS-3120-24TC:admin# 35-31 show mld_snooping group Description This command is used to display - D-Link DGS-3120-24PC | CLI Guide - Page 356
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show mld_snooping group {[vlan | vlanid Restrictions None. Example To show an MLD snooping group when MLD v2 is supported: The first item means that for ports 1-2, the data from the 2001::1/ - D-Link DGS-3120-24PC | CLI Guide - Page 357
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show mld_snooping group Command: show mld_snooping group Source/Group VLAN Name/VID Member Ports UP Time Expiry Time Filter Mode : 2001::1/FE1E::1 : default/1 : 1-2 : 26 : - D-Link DGS-3120-24PC | CLI Guide - Page 358
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 35-32 show mld_snooping forwarding Description To show all MLD snooping forwarding entries located on the Switch. DGS-3120-24TC:admin# show mld_snooping forwarding Command: show mld_snooping forwarding VLAN Name - D-Link DGS-3120-24PC | CLI Guide - Page 359
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 35-33 show mld_snooping mrouter_ports Description port : default : : 1-10 : FE08::1 : Total Entries : 1 DGS-3120-24TC:admin# 35-34 create mld_snooping static_group Description This command is used to create an - D-Link DGS-3120-24PC | CLI Guide - Page 360
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide to route the packets destined for this specific group to static member ports. The static DGS-3120-24TC:admin# create mld_snooping default FF1E::1 Command: create mld_snooping default FF1E::1 Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 361
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide long. vlanid - Specify the ID of the VLAN on which 1, group FF1E::1: DGS-3120-24TC:admin# delete mld_snooping default FF1E::1 Command: delete mld_snooping default FF1E::1 Success. DGS-3120-24TC:admin# 35-36 config - D-Link DGS-3120-24PC | CLI Guide - Page 362
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To unset port range 9-10 from MLD snooping static member ports for group FF1E::1 on default VLAN: DGS-3120-24TC:admin# config mld_snooping static_group vlan default FF1E::1 delete 2:9-2:10 Command: create - D-Link DGS-3120-24PC | CLI Guide - Page 363
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide When data-driven learning is enabled for the VLAN driven learning of an MLD snooping group on the default VLAN: DGS-3120-24TC:admin# config mld_snooping data_driven_learning vlan default state enable Command: config - D-Link DGS-3120-24PC | CLI Guide - Page 364
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 35-39 config mld_snooping DGS-3120-24TC:admin# config mld_snooping data_driven_learning max_learned_entry 50 Command: config mld_snooping data_driven_learning max_learned_entry 50 Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 365
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters all - Specify all VLANs to which IGMP by data-driven: DGS-3120-24TC:admin# clear mld_snooping data_driven_group all Command: clear mld_snooping data_driven_group all Success. DGS-3120-24TC:admin# 35-41 - D-Link DGS-3120-24PC | CLI Guide - Page 366
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show mld_snooping statistics counter vlanid 1 Command: show mld_snooping statistics counter vlanid 1 VLAN Name : Default Total Groups : 10 Receive Statistics Query MLD v1 Query : 1 - D-Link DGS-3120-24PC | CLI Guide - Page 367
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To clear MLD snooping statistics counter: DGS-3120-24TC the Switch can process on a specific port or VLAN. The rate - D-Link DGS-3120-24PC | CLI Guide - Page 368
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config mld_snooping ports 1 rate_limit 100 Command: config mld_snooping ports 1 rate_limit 100 Success. DGS-3120-24TC:admin# 35-44 show mld_snooping rate_limit Description This command is used - D-Link DGS-3120-24PC | CLI Guide - Page 369
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 36 IP-MAC-Port Binding (IMPB) Command List (EI Mode Only) create address_binding ip_mac ipaddress mac_address {ports [ | all]} config address_binding ip_mac ports [ | - D-Link DGS-3120-24PC | CLI Guide - Page 370
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide will be applied to all ports. - D-Link DGS-3120-24PC | CLI Guide - Page 371
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide enable - Specify that the allow zero IP DGS-3120-24TC:admin#config address_binding ip_mac ports 1:1 arp_inspection strict Command: config address_binding ip_mac ports 1:1 arp_inspection strict Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 372
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To delete a blocked address: DGS-3120-24TC:admin# delete address_binding blocked vlan_name v31 mac_address 00-00-00-00-00-11 Command: delete address_binding blocked vlan_name v31 mac_address 00-00-00-0000-11 - D-Link DGS-3120-24PC | CLI Guide - Page 373
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config address_binding ip_mac ipaddress mac_address < ip_mac ipaddress 10.1.1.1 mac_address 00-00-0000-00-11 Success. DGS-3120-24TC:admin# 36-6 show address_binding Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 374
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show the IMPB global configuration: DGS-3120-24TC:admin#show address_binding Command: show address_binding Trap/Log DHCP Snoop Function Version : Disabled : Disabled : 3.92 DGS-3120-24TC:admin# To - D-Link DGS-3120-24PC | CLI Guide - Page 375
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters all - Specify address. Restrictions None. Example To show the IMPB entries that are blocked: DGS-3120-24TC:admin#show address_binding blocked all Command: show address_binding blocked all VID VLAN Name - D-Link DGS-3120-24PC | CLI Guide - Page 376
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show IMPB entries: DGS-3120-24TC:admin#show address_binding entry will be created as an IP-Inspection mode binding entry for this specific port. Each entry is associated with a lease time. When the lease - D-Link DGS-3120-24PC | CLI Guide - Page 377
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To enable DHCP IPv4 snooping mode: DGS-3120-24TC:admin# enable address_binding dhcp_snoop Command - D-Link DGS-3120-24PC | CLI Guide - Page 378
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 36-11 clear address_binding dhcp_snoop DGS-3120-24TC:admin# clear address_binding dhcp_snoop binding_entry ports 1-3 Command: clear address_binding dhcp_snoop binding_entry ports 1-3 Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 379
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show the DHCP snooping state: DGS-3120-24TC:admin#show address_binding dhcp_snoop Command: show address_binding dhcp_snoop DHCP Snoop(IPv4) : Disabled DGS-3120-24TC:admin# To display DHCP snooping maximun - D-Link DGS-3120-24PC | CLI Guide - Page 380
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the port number used here. Restrictions None. Example To display the DHCP snooping binding entries: DGS-3120-24TC:admin#show address_binding dhcp_snoop binding_entry Command: show address_binding - D-Link DGS-3120-24PC | CLI Guide - Page 381
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To set the maximum number of DHCP IPv4 snooping entries that ports 1:1-1:3 can learned to 10: DGS-3120-24TC:admin#config address_binding dhcp_snoop max_entry ports 1:1-1:3 limit 10 Command: config - D-Link DGS-3120-24PC | CLI Guide - Page 382
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To disable IMPB traps and logs: DGS-3120-24TC:admin# disable address_binding trap_log Command: - D-Link DGS-3120-24PC | CLI Guide - Page 383
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 36-18 debug address_binding Description This debug IMPB messages: DGS-3120-24TC:admin# debug address_binding all state enable Command: debug address_binding all state enable Success. DGS-3120-24TC:admin# 36-19 no - D-Link DGS-3120-24PC | CLI Guide - Page 384
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To stop IMPB debug: starting when the IMPB module receives an ARP/IP or DHCP packet: DGS-3120-24TC:admin# no debug address_binding Command: no debug address_binding Success. DGS-3120-24TC:admin# 380 - D-Link DGS-3120-24PC | CLI Guide - Page 385
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 37 IPv6 Neighbor Discover Command List (EI Mode Only) create issue this command. Example Create a static neighbor cache entry: DGS-3120-24TC:admin# create ipv6 neighbor_cache ipif System 3ffc::1 00-01-0203 - D-Link DGS-3120-24PC | CLI Guide - Page 386
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 37-2 delete ipv6 neighbor_cache DGS-3120-24TC:admin# 37-3 show ipv6 neighbor_cache Description This command is used to display the neighbor cache entry for the specified interface. You can display a specific - D-Link DGS-3120-24PC | CLI Guide - Page 387
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the IP -05 Interface : System Total Entries: 1 State: Static Port : NA VID : 1 DGS-3120-24TC:admin# 37-4 config ipv6 nd ns retrans_time Description This command is used to configure the - D-Link DGS-3120-24PC | CLI Guide - Page 388
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure the retrans_time of IPv6 ND neighbor solicitation: DGS-3120-24TC:admin# config ipv6 nd ns ipif Zira retrans_time 1000000 Command: config ipv6 nd ns ipif Zira retrans_time 1000000 Success. DGS- - D-Link DGS-3120-24PC | CLI Guide - Page 389
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 38 IPv6 Route Command List (EI the interface name. If the next hop is a link local address, then the interface name must be specified. create and IPv6 route: DGS-3120-24TC:admin#create ipv6route default System - D-Link DGS-3120-24PC | CLI Guide - Page 390
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 38-2 delete ipv6route Description This command is used to delete an IPv6 static route. If the next hop is a global address, it is not needed to indicate the interface name. If the next hop is a link local address, - D-Link DGS-3120-24PC | CLI Guide - Page 391
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions - (Optional) The destination been wrote into hardware table. Example Show all the IPv6 routes: DGS-3120-24TC:admin#show ipv6route Command: show ipv6route IPv6 Prefix: ::/0 Next Hop - D-Link DGS-3120-24PC | CLI Guide - Page 392
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 39 Japanese Web-Based Access Control (JWAC) Command List enable jwac disable jwac config jwac [quarantine_server_url [ | ipv6 ] | clear_quarantine_server_url {ipv6}] show - D-Link DGS-3120-24PC | CLI Guide - Page 393
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Using the JWAC function, PC users need can issue this command. Example To enable JWAC: DGS-3120-24TC:admin#enable jwac Command: enable jwac Success. DGS-3120-24TC:admin# 39-2 disable jwac Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 394
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#disable jwac Command: disable jwac Success. DGS-3120-24TC Note: If the quarantine server is linked to the JWAC enabled port on the page on Quarantine Server of IPv6. (EI Mode Only) - - D-Link DGS-3120-24PC | CLI Guide - Page 395
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 39-4 show jwac Description This command is used to display the JWAC configuration settings. Format show jwac Parameters None. Restrictions None. Example To display the current JWAC configuration: DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 396
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide URL. When redirect jwac_login_page is enabled, users can issue this command. Example DGS-3120-24TC:admin#enable jwac redirect Command: enable jwac redirect Success. DGS-3120-24TC:admin# 39-6 disable jwac redirect - D-Link DGS-3120-24PC | CLI Guide - Page 397
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#disable jwac redirect Command: disable jwac redirect Success. DGS-3120-24TC:admin# 39-7 config jwac redirect Description This command is used to configure redirect destination and delay time - D-Link DGS-3120-24PC | CLI Guide - Page 398
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format enable jwac forcible_logout Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To enable JWAC forcible logout: DGS-3120-24TC:admin#enable - D-Link DGS-3120-24PC | CLI Guide - Page 399
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#disable jwac forcible_logout Command: disable jwac forcible_logout Success. DGS-3120-24TC:admin# 39-10 enable jwac udp_filtering Description This command is used to enable the JWAC UDP filtering - D-Link DGS-3120-24PC | CLI Guide - Page 400
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To disable JWAC UDP filtering: DGS-3120-24TC:admin#disable jwac udp_filtering Command: disable jwac udp_filtering - D-Link DGS-3120-24PC | CLI Guide - Page 401
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 39-13 disable jwac quarantine_server_monitor Description server monitoring: DGS-3120-24TC:admin#disable jwac quarantine_server_monitor Command: disable jwac quarantine_server_monitor Success. DGS-3120-24TC:admin# 39 - D-Link DGS-3120-24PC | CLI Guide - Page 402
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To set the quarantine server error timeout: DGS-3120-24TC:admin#config jwac quarantine_server_error_timeout 60 Command: config jwac quarantine_server_error_timeout 60 Success. DGS-3120-24TC IP. (EI Mode Only) - D-Link DGS-3120-24PC | CLI Guide - Page 403
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide address for the update server network. (EI Mode Only) - To set a specific IPv6 network address, use "/" to Server 3000::/32 is added. Success. DGS-3120-24TC:admin# 39-17 config jwac switch_http_port - D-Link DGS-3120-24PC | CLI Guide - Page 404
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config jwac switch_http_port listens to: DGS-3120-24TC:admin# config jwac switch_http_port 8888 http Command: config jwac switch_http_port 8888 http Success. DGS-3120-24TC:admin# 39 - D-Link DGS-3120-24PC | CLI Guide - Page 405
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide state. infinite - Specify to indicate configure the JWAC port state: DGS-3120-24TC:admin# config jwac ports 1-9 state enable Command: config jwac ports 1-9 state enable Success. DGS-3120-24TC:admin# 39-19 show jwac - D-Link DGS-3120-24PC | CLI Guide - Page 406
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show jwac ports 1-4 Command: show protocol, make sure the RADIUS server added by the config radius command supports the protocol. Format config jwac radius_protocol [local | eap_md5 | pap | - D-Link DGS-3120-24PC | CLI Guide - Page 407
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 39-21 create jwac user case-sensitive new password:***** Enter the new password again for confirmation:***** Success. DGS-3120-24TC:admin# 39-22 config jwac user Description This command is used to configure a - D-Link DGS-3120-24PC | CLI Guide - Page 408
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To configure a JWAC user: DGS-3120-24TC:admin#config jwac user 112233 Command: config jwac user 112233 Enter a old - D-Link DGS-3120-24PC | CLI Guide - Page 409
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 39-24 show jwac user Description This command is used to display JWAC users in the local database. Format show jwac user Parameters None. Restrictions None. Example To display the current JWAC local users: DGS- - D-Link DGS-3120-24PC | CLI Guide - Page 410
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide authenticating - (Optional) Specify the state of authentication entries: DGS-3120-24TC:admin#clear jwac auth_state ports all blocked Command: clear jwac auth_state ports all blocked Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 411
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC: show jwac auth_state ports 1-3C ommand: show jwac auth_state ports 1-3 Pri - Priority. State - A:Authenticated, B:Blocked, -:Authenticating Time - Aging Time/Idle Time for authenticated entries. - D-Link DGS-3120-24PC | CLI Guide - Page 412
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To disable the configuration authorized from the local database: DGS-3120-24TC:admin#config jwac authorization attributes local disable Command: config jwac authorization attributes local disable Success. - D-Link DGS-3120-24PC | CLI Guide - Page 413
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config jwac authentication_page Specify to change to the English page. default - Specify to reset the page element to default. page_title - Specify the title of the authenticate page: DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 414
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config jwac authenticate_page [japanese | english] authenticate page: DGS-3120-24TC:admin#config jwac authenticate_page japanese Command: config jwac authenticate_page japanese Success. DGS-3120-24TC:admin# 39 - D-Link DGS-3120-24PC | CLI Guide - Page 415
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show jwac authenticate_page Command: show jwac authenticate_page Current Page : English Version English Page Element Page Title : Login Window Title : Authentication Login User Name - D-Link DGS-3120-24PC | CLI Guide - Page 416
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 40 Jumbo Frame Command List the Jumbo frame: DGS-3120-24TC:admin# enable jumbo_frame Command: enable jumbo_frame The maximum size of jumbo frame is 13312 bytes. Success. DGS-3120-24TC:admin# 40-2 disable - D-Link DGS-3120-24PC | CLI Guide - Page 417
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator and Operator-level users can issue this command. Example To disable the Jumbo frame: DGS-3120-24TC:admin# disable jumbo_frame Command: disable jumbo_frame Success. - D-Link DGS-3120-24PC | CLI Guide - Page 418
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 41 Layer 2 Protocol Tunneling (L2PT) Command 2 protocol tunneling function: DGS-3120-24TC:admin#enable l2protocol_tunnel Command: enable l2protocol_tunnel Success. DGS-3120-24TC:admin# 41-2 disable - D-Link DGS-3120-24PC | CLI Guide - Page 419
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To disable the Layer 2 protocol tunneling function: DGS-3120-24TC:admin#disable l2protocol_tunnel - D-Link DGS-3120-24PC | CLI Guide - Page 420
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 01-00-0C-CC-CC-CD - Specify the MAC address as command. Example To configure the STP tunneling on ports 1-4: DGS-3120-24TC:admin#config l2protocol_tunnel ports 1:1-1:4 type uni tunneled_protocol stp Command: config - D-Link DGS-3120-24PC | CLI Guide - Page 421
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show l2protocol_tunnel Command: show l2protocol_tunnel Global State : Enabled UNI Ports : 1:1-1:4 NNI Ports : DGS-3120-24TC:admin# To show Layer 2 protocol tunneling information summary: DGS- - D-Link DGS-3120-24PC | CLI Guide - Page 422
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 42 Link Aggregation Command List create link_aggregation group_id can issue this command. Example To create link aggregation group: DGS-3120-24TC:admin# create link_aggregation group_id 1 type lacp Command - D-Link DGS-3120-24PC | CLI Guide - Page 423
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 42-2 delete link_aggregation group_id Description This command is used to delete a previously configured link aggregation group. Format delete link_aggregation group_id Parameters group_id - Specify the - D-Link DGS-3120-24PC | CLI Guide - Page 424
- Enable Link Up and Link Down notifications. disable - Disable Link Up and Link Down notifications. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To define a load-sharing group of ports, group-id 1, master port 17 of unit 2: DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 425
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide destination port. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To configure link aggregation algorithm for mac-source-dest: DGS-3120-24TC:admin# config - D-Link DGS-3120-24PC | CLI Guide - Page 426
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show link_aggregation Command: show link_aggregation Link Aggregation Algorithm = MAC-Source-Dest Group ID : 1 Type : LACP Master Port : 1:5 Member Port : 1:5-1:7 Active Port : 7 Status - D-Link DGS-3120-24PC | CLI Guide - Page 427
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show link_aggregation Command: show link_aggregation Link Aggregation Algorithm = MAC-Source-Dest Group ID : 1 Type : LACP Master Port : 1:5 Member Port : 1:5-1:7 Active Port : Status - D-Link DGS-3120-24PC | CLI Guide - Page 428
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 42-7 show lacp_port Description This command is used LACP and all port status. Restrictions None. Example To show port lacp mode: DGS-3120-24TC:admin# show lacp_port Command: show lacp_port Port -----1 2 3 4 5 6 7 - D-Link DGS-3120-24PC | CLI Guide - Page 429
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 43 Link Layer Discovery Protocol (LLDP) Command List start to transmit LLDP packets and receive and process the LLDP packets. The specific function of each port will depend on the per-port LLDP setting. For - D-Link DGS-3120-24PC | CLI Guide - Page 430
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format enable lldp Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To enable LLDP: DGS-3120-24TC:admin# enable lldp Command: enable lldp Success. - D-Link DGS-3120-24PC | CLI Guide - Page 431
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 43-3 config lldp Description This command is used to change transmission interval: DGS-3120-24TC:admin# config lldp message_tx_interval 30 Command: config lldp message_tx_interval 30 Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 432
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters notification_interval - Specify the timer of 10 second: DGS-3120-24TC:admin# config lldp notification_interval 10 Command: config lldp notification_interval 10 Success. DGS-3120-24TC:admin# 43-5 - D-Link DGS-3120-24PC | CLI Guide - Page 433
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide packets from neighbor devices. rx_only - Configure the specified port(s) to receive LLDP packets from to the operation of the network. Such as Spanning Tree Protocol, the Link Aggregation Control Protocol, and 429 - D-Link DGS-3120-24PC | CLI Guide - Page 434
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide specific TLV data type selected will be not advertised. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To enable SNMP notifications from port 1-5: DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 435
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config lldp ports 1:1-1:5 admin_status tx_and_rx Command: config lldp ports 1:1-1:5 admin_status tx_and_rx Success. DGS-3120-24TC:admin# To enable ports 1-2 for manage address entry: DGS-3120- - D-Link DGS-3120-24PC | CLI Guide - Page 436
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config lldp ports all dot1_tlv_vlan_name vlanid 1-3 enable Command: config lldp ports all dot1_tlv_vlan_name vlanid 1-3 enable Success. DGS-3120-24TC:admin# To configure exclude the protocol - D-Link DGS-3120-24PC | CLI Guide - Page 437
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config lldp forward_message enable Command: config lldp forward_message enable Success. DGS-3120-24TC:admin# 43-7 show lldp Description This command is used to display the Switch's general LLDP - D-Link DGS-3120-24PC | CLI Guide - Page 438
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 43-8 show lldp mgt_addr Description This this configuration here. Restrictions None. Example To display management address information: DGS-3120-24TC:admin# show lldp mgt_addr ipv4 192.168.254.10 Command: show lldp - D-Link DGS-3120-24PC | CLI Guide - Page 439
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To display the LLDP port 1 TLV option configuration: DGS-3120-24TC PHY Configuration/Status Disabled Link Aggregation Disabled Maximum Frame Size Disabled DGS-3120-24TC:admin# 43-10 - D-Link DGS-3120-24PC | CLI Guide - Page 440
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide : 00-01-02-03-04-01 Port Description : D-Link DGS-3120-24TC R2.00.010 Port 1 on Unit 1 Port PVID /PHY Configuration/Status : Auto-Negotiation Support : Supported Auto-Negotiation Enabled : Enabled Auto- - D-Link DGS-3120-24PC | CLI Guide - Page 441
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Aggregation Port ID Maximum Frame Size DGS-3120-24TC:admin# : 0 : 1536 To display outbound LLDP advertisements for port 1 in normal mode: DGS-3120-24TC 01 Port Description : D-Link DGS-3120-24TC R2.00.010 Port - D-Link DGS-3120-24PC | CLI Guide - Page 442
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters - (Optional) Specified a range Restrictions None. Example To display remote table in brief mode: DGS-3120-24TC:admin# show lldp remote_ports 1:1-1:2 mode brief Command: show lldp remote_ports - D-Link DGS-3120-24PC | CLI Guide - Page 443
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Entity 3 Chassis ID Subtype Chassis ID Port ID Subtype Port ID Port Description DGS-3120-24TC : (See detail) Power Via MDI : (See detail) Link Aggregation : (See detail) Maximum Frame Size : 1536 Unknown - D-Link DGS-3120-24PC | CLI Guide - Page 444
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Power Via MDI Link Aggregation Maximum Frame Size DGS-3120-24TC:admin# : (See detail) : (See detail) : 1536 To display remote table in detailed mode: DGS-3120-24TC:admin# show lldp remote_ports 1:1 mode detailed - D-Link DGS-3120-24PC | CLI Guide - Page 445
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide PPVID Enable : Enable VLAN Name Entries Entry 1 VLAN ID VLAN pair power class : PSE : supported : enabled : uncontrollable : signal : 3 Link Aggregation Aggregation capability Aggregation status Aggregated - D-Link DGS-3120-24PC | CLI Guide - Page 446
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Unknown TLV type : 31 Unknown TLV Information Bytes : XX XX XX XX XX XX(hex) DGS-3120-24TC:admin# 43-12 show lldp statistics Description This command is used to display an overview of neighbor detection - D-Link DGS-3120-24PC | CLI Guide - Page 447
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide information for all ports will be displayed. Restrictions None. Example To display statistics information of port 1: DGS-3120-24TC:admin# show lldp statistics ports 1:1 Command: show lldp statistics ports 1:1 - D-Link DGS-3120-24PC | CLI Guide - Page 448
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config lldp_med fast_start repeat_count 5 Command: config lldp_med fast_start repeat_count 5 Success. DGS-3120-24TC:admin# 43-15 config lldp_med log state Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 449
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide state - Enable or disable the SNMP trap notification of To enable topology change notification on ports 1 to 2: DGS-3120-24TC:admin#config lldp_med notification topo_change ports 1:1-1:2 state enable Command: - D-Link DGS-3120-24PC | CLI Guide - Page 450
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator and Operator-level users can issue this command. Example To enable transmitting all capabilities on all ports: DGS-3120-24TC:admin#config lldp_med ports all med_transmit_capabilities - D-Link DGS-3120-24PC | CLI Guide - Page 451
Information: Device Class Hardware Revision Firmware Revision Software Revision Serial Number Manufacturer Name Model Name Asset ID PoE Device Type PoE PSE Power Source : Network Connectivity Device : A1 : 2.00.003 : 2.00.010 : abcd1234 : D-Link : DGS-3120-24TC Gigabit Ethernet S : : PSE Device - D-Link DGS-3120-24PC | CLI Guide - Page 452
LLDP-MED Capabilities Support: Capabilities :Support Network Policy :Support Location Identification :Not Support Extended Power Via MDI PSE :Not Support Extended Power Via MDI PD :Not Support Inventory :Support Network Policy: None Extended Power Via MDI: None DGS-3120-24TC:admin# 43 - D-Link DGS-3120-24PC | CLI Guide - Page 453
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To display remote entry information: DGS-3120-24TC:admin#show lldp_med remote_ports 1:1 Command: show lldp_med remote_ports 1:1 Port ID : 1:1 Remote Entities Count : 1 Entity 1 - D-Link DGS-3120-24PC | CLI Guide - Page 454
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Location Information Location Subtype: Power Request Inventory Management: Hardware Revision Firmware Revision Software Revision Serial Number Manufacturer Name Model Name Asset ID DGS-3120-24TC:admin# : : : High - D-Link DGS-3120-24PC | CLI Guide - Page 455
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 44 Loop Back Detection (LBD) Command List config loopdetect When the auto-recovery mechanism is disabled, a user would need to manually recover a disabled port. The default value for the recover timer is 60 - D-Link DGS-3120-24PC | CLI Guide - Page 456
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To set the auto-recover time to 0, which disables the auto-recovery mechanism, the interval to 20 seconds and specify VLAN-based mode: DGS-3120-24TC:admin# config loopdetect recover_timer 0 interval 20 mode - D-Link DGS-3120-24PC | CLI Guide - Page 457
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format enable loopdetect Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To enable the LBD function globally: DGS-3120-24TC:admin# enable - D-Link DGS-3120-24PC | CLI Guide - Page 458
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# disable loopdetect Command: disable loopdetect Success. DGS-3120-24TC:admin# 44-5 show loopdetect Description This command is used to display the LBD global configuration. Format show - D-Link DGS-3120-24PC | CLI Guide - Page 459
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show loopdetect ports {} Parameters ports - Restrictions None. Example To show the LBD settings on ports 1-9: DGS-3120-24TC:admin# show loopdetect ports 1-9 Command: show loopdetect ports 1-9 Port - D-Link DGS-3120-24PC | CLI Guide - Page 460
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To specify that traps will be sent when the loop condition is detected or cleared: DGS-3120-24TC:admin# config - D-Link DGS-3120-24PC | CLI Guide - Page 461
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 45 MAC Notification Command List enable enable mac_notification function: DGS-3120-24TC:admin# enable mac_notification Command: enable mac_notification Success. DGS-3120-24TC:admin# 45-2 disable - D-Link DGS-3120-24PC | CLI Guide - Page 462
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator and Operator-level users can issue this command. Example To disable mac_notification function: DGS-3120-24TC:admin# disable mac_notification Command: disable - D-Link DGS-3120-24PC | CLI Guide - Page 463
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 45-4 config mac_notification ports Description This notification: DGS-3120-24TC:admin# config mac_notification ports 1:7 enable Command: config mac_notification ports 1:7 enable Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 464
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show the Switch's Mac address table notification global settings: DGS-3120-24TC:admin# show mac_notification Command: show mac_notification Global Mac Notification Settings State Interval History Size - D-Link DGS-3120-24PC | CLI Guide - Page 465
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show mac_notification ports Command: show mac_notification ports Port # -----1:1 1:2 1:3 1:4 1:5 1:6 1:7 1:8 1:9 1:10 MAC Address Table Notification State Disabled Disabled Disabled - D-Link DGS-3120-24PC | CLI Guide - Page 466
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 46 MAC-based Access Control Command List enable mac_based_access_control disable mac_based_access_control config mac_based_access_control password config mac_based_access_control password_type [ - D-Link DGS-3120-24PC | CLI Guide - Page 467
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To enable the MAC-based Access Control global state: DGS-3120-24TC:admin# enable mac_based_access_control Command: enable mac_based_access_control Success. DGS-3120-24TC:admin# 46-2 disable - D-Link DGS-3120-24PC | CLI Guide - Page 468
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters password - In RADIUS mode, the Switch will DGS-3120-24TC:admin# config mac_based_access_control password switch Command: config mac_based_access_control password switch Success. DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 469
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 46-5 config mac_based_access_control method Description This : DGS-3120-24TC:admin# config mac_based_access_control method local Command: config mac_based_access_control method local Success. DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 470
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To set the MAC-based Access Control guest VLAN membership: DGS-3120-24TC:admin# config mac_based_access_control guest_vlan ports 1-8 Command: config mac_based_access_control guest_vlan ports 1-8 Success. DGS - D-Link DGS-3120-24PC | CLI Guide - Page 471
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide the entry state manually. If the DGS-3120-24TC:admin# config mac_based_access_control ports 1:1-1:8 max_users no_limit Command: config mac_based_access_control ports 1:1-1:8 max_users no_limit Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 472
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config mac_based_access_control ports 1:1-1:8 aging_time infinite block_time 120 Command: config mac_based_access_control ports 1:1-1:8 aging_time infinite block_time 120 Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 473
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format delete mac_based_access_control [guest_vlan | guest_vlanid ] Parameters guest_vlan - Specify the name of the MAC-based Access Control's guest VLAN. - Enter - D-Link DGS-3120-24PC | CLI Guide - Page 474
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To clear MAC-based Access Control clients' authentication information for all ports: DGS-3120-24TC:admin# clear mac_based_access_control auth_state ports all Command: clear mac_based_access_control - D-Link DGS-3120-24PC | CLI Guide - Page 475
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To create one MAC-based Access Control local database entry for MAC address 00-00-00-00-0001 and specify that the host will be assigned to the "default" VLAN after the host has been authorized: DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 476
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config mac_based_access_control_local mac 00-00-00-00-0001 vlan default Command: config mac_based_access_control_local mac 00-00-00-00-00-01 vlan default Success. DGS-3120-24TC by specific target - D-Link DGS-3120-24PC | CLI Guide - Page 477
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# delete mac_based_access_control_local vlan VLAN3 Command: delete mac_based_access_control_local vlan VLAN3 Success. DGS-3120-24TC:admin# 46-14 config mac_based_access_control authorization - D-Link DGS-3120-24PC | CLI Guide - Page 478
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 46-15 show mac_based_access_control Description This based Host-based Host-based Max User -------128 128 128 128 DGS-3120-24TC:admin# 46-16 show mac_based_access_control_local Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 479
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide address. - Enter the MAC address used here. vlan - (Optional) Displays MAC-based Access Control local database entries for a specific called 'default': DGS-3120-24TC:admin# show - D-Link DGS-3120-24PC | CLI Guide - Page 480
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show mac_based_access_control auth_state ports of users of the MAC-based Access Control system supports to 128: DGS-3120-24TC:admin# config mac_based_access_control max_users 128 Command: config - D-Link DGS-3120-24PC | CLI Guide - Page 481
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 46-19 config mac_based_access_control trap state Control: DGS-3120-24TC:admin# config mac_based_access_control trap state enable Command: config mac_based_access_control trap state enable Success. DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 482
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To disable log state of MAC-based Access Control: DGS-3120-24TC:admin# config mac_based_access_control log state disable Command: config mac_based_access_control log state disable Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 483
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 47 MAC-based VLAN Command List create mac_based_vlan only needs to be supported by the model which supports MAC-based VLAN. There is a global limitation of the maximum entries supported for the static MAC - D-Link DGS-3120-24PC | CLI Guide - Page 484
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# create mac_based_vlan mac_address 00-11-22-33-44-55 vlanid 100 Command: create mac_based_vlan mac_address 00-11-22-33-44-55 vlanid 100 Success. DGS-3120-24TC:admin# 47-2 delete mac_based_vlan - D-Link DGS-3120-24PC | CLI Guide - Page 485
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show mac_based_vlan {mac_address < has higher priority than manual configuration, the manual configured entry will become inactive. To display the MACbased VLAN entry: DGS-3120-24TC:admin# show mac_based_vlan - D-Link DGS-3120-24PC | CLI Guide - Page 486
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 48 Mirror Command List config mirror port - D-Link DGS-3120-24PC | CLI Guide - Page 487
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 48-2 enable mirror Description This command is command. Example To enable mirroring function: DGS-3120-24TC:admin# enable mirror Command: enable mirror Success. DGS-3120-24TC:admin# 48-3 disable mirror Description - D-Link DGS-3120-24PC | CLI Guide - Page 488
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To disable mirroring function: DGS-3120-24TC:admin# disable mirror Command: disable mirror Success. DGS-3120-24TC:admin# 48-4 show mirror Description This command is used to display the current mirror - D-Link DGS-3120-24PC | CLI Guide - Page 489
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 49 MSTP debug enhancement Command List debug stp config ports [ | all] [event | bpdu | state_machine | all] state [disable | brief | detail] debug stp show information - D-Link DGS-3120-24PC | CLI Guide - Page 490
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# debug stp config ports all all state brief Command: debug stp config ports all all state brief Warning: only support local device. Success. DGS-3120-24TC:admin# 49-2 debug stp show information - D-Link DGS-3120-24PC | CLI Guide - Page 491
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Regional Root Bridge : 32768/00-01-70-33-21- the debug STP levels on all ports: DGS-3120-24TC:admin#debug stp show flag Command: debug stp show flag Warning: only support local device. Global State: Enabled Port - D-Link DGS-3120-24PC | CLI Guide - Page 492
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 1:3 1:4 1:5 1:6 1:7 1:8 1:9 1:10 1:11 1:12 1:13 1:14 1:15 1:16 1:17 1:18 1:19 1:20 1:21 1:22 1:23 1:24 Brief Brief Brief Brief Brief Brief Brief Brief Brief Brief - D-Link DGS-3120-24PC | CLI Guide - Page 493
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# debug stp show counter ports 1:9 Command: debug stp show counter ports 1:9 STP Counters Port 1:9 : Receive: Total STP Packets : 0 Configuration BPDU : 0 TCN BPDU : 0 RSTP TC- - D-Link DGS-3120-24PC | CLI Guide - Page 494
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# debug stp clear counter ports all Command: debug stp clear counter ports all Warning: only support local device. Success. DGS-3120-24TC:admin# 49-6 debug stp state Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 495
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config stp trap {topo_change [disable | enable ] | new_root [enable To configure the sending state for STP traps: DGS-3120-24TC:admin#config stp trap new_root enable Command: config stp trap new_root enable - D-Link DGS-3120-24PC | CLI Guide - Page 496
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 50 Multicast Filter Command List create mcast_filter_profile {[ipv4 | ipv6]} profile_id profile_name config mcast_filter_profile [profile_id | profile_name ] { - D-Link DGS-3120-24PC | CLI Guide - Page 497
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# create mcast_filter_profile profile_id 2 profile_name MOD Command: create mcast_filter_profile profile_id 2 profile_name MOD Success. DGS-3120-24TC:admin# 50-2 config mcast_filter_profile - D-Link DGS-3120-24PC | CLI Guide - Page 498
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config mcast_filter_profile ipv6 [profile_id | profile_name < ::100:0:0:20 - FFF0E::100:0:0:22 to profile ID 3: DGS-3120-24TC:admin# config mcast_filter_profile profile_id 3 add FF0E::100:0:0:20 - - D-Link DGS-3120-24PC | CLI Guide - Page 499
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# delete mcast_filter_profile profile_id 3 Command: delete mcast_filter_profile profile_id 3 Success. DGS-3120-24TC:admin# To delete the multicast address profile called MOD: DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 500
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To display all the defined multicast address profiles: DGS-3120-24TC:admin# show mcast_filter_profile Command: show mcast_filter_profile Profile ID Name Multicast Addresses 1 MOD 234.1.1.1 - 238. - D-Link DGS-3120-24PC | CLI Guide - Page 501
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide all - Specify to delete all multicast 3: DGS-3120-24TC:admin# config limited_multicast_addr ports 1,3 add profile_id 2 Command: config limited_multicast_addr ports 1,3 add profile_id 2 Success. DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 502
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To configure the maximum number of multicast group that ports 1 and 3 can join to 100: DGS-3120-24TC:admin# config - D-Link DGS-3120-24PC | CLI Guide - Page 503
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show max_mcast_group ports 1:1-1:2 Command: show max_mcast_group ports 1:1-1:2 Port -----1:1 1:2 Max Multicast Group Number Infinite 100 Action --------- Drop Drop Total Entries: 2 DGS- - D-Link DGS-3120-24PC | CLI Guide - Page 504
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To show the limited multicast address range on ports 1 and 3: DGS-3120-24TC:admin# show limited_multicast_addr ports 1,3 Command: show limited_multicast_addr ports 1,3 Port : 1 Access : - D-Link DGS-3120-24PC | CLI Guide - Page 505
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config cpu_filter l3_control_pkt < DGS-3120-24TC:admin#config cpu_filter l3_control_pkt 1:1-1:2 dvmrp state enable Command: config cpu_filter l3_control_pkt 1:1-1:2 dvmrp state enable Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 506
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show cpu_filter l3_control_pkt ports 1:1-1:2 Command: show cpu_filter l3_control_pkt ports 1:1-1:2 Port ---1:1 1:2 IGMP Query ---------Disabled Disabled DVMRP -------Enabled Enabled PIM - D-Link DGS-3120-24PC | CLI Guide - Page 507
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 51 Multicast VLAN Command List create [igmp_snooping | mld_snooping] multicast_vlan {remap_priority [ | none] {replace_priority}} config igmp_snooping multicast_vlan - D-Link DGS-3120-24PC | CLI Guide - Page 508
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format create [igmp_snooping | mld_snooping] multicast_vlan < VID 2: DGS-3120-24TC:admin# create igmp_snoop multicast_vlan mv1 2 Command: create igmp_snoop multicast_vlan mv1 2 Success. DGS-3120-24TC:admin# 51 - D-Link DGS-3120-24PC | CLI Guide - Page 509
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters multicast_vlan - The name of the multicast and 3 members of the VLAN, and set the state to enable: DGS-3120-24TC:admin# config igmp_snooping multicast_vlan v1 add member_port 1,3 state enable Command: - D-Link DGS-3120-24PC | CLI Guide - Page 510
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 51-3 config mld_snooping multicast_vlan Description This command is used to add member ports and source ports to a list of multicast VLAN member ports. Member ports - D-Link DGS-3120-24PC | CLI Guide - Page 511
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User multicast_vlan v1 add member_port 1:1,1:3 state enable Success. DGS-3120-24TC:admin# 51-4 create [igmp_snooping | mld_snooping] multicast_vlan_group_profile - D-Link DGS-3120-24PC | CLI Guide - Page 512
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 51-5 config igmp_snooping multicast_vlan_group_profile Description the IGMP snooping multicast VLAN profile named "MOD": DGS-3120-24TC:admin# config igmp_snooping multicast_vlan_group_profile MOD add 225.1.1.1, 225 - D-Link DGS-3120-24PC | CLI Guide - Page 513
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config mld_snooping multicast_vlan_group_profile to an MLD snooping multicast VLAN profile with name "MOD": DGS-3120-24TC:admin# config mld_snooping multicast_vlan_group_profile MOD add FF1E::1, FF1E::10-FF1E - D-Link DGS-3120-24PC | CLI Guide - Page 514
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters igmp_snooping - Specify to delete an IGMP snooping group profile. : delete igmp_snooping multicast_vlan_group_profile profile_name MOD Success. DGS-3120-24TC:admin# 51-8 show [igmp_snooping | mld_snooping - D-Link DGS-3120-24PC | CLI Guide - Page 515
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# 2 DGS-3120-24TC:admin# 51-9 config [igmp_snooping | mld_snooping] multicast_vlan_group Description This command is used to configure the multicast group learned with the specific multicast - D-Link DGS-3120-24PC | CLI Guide - Page 516
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To add an IGMP snooping profile to a multicast VLAN group with the name "v1": DGS-3120-24TC:admin# config - D-Link DGS-3120-24PC | CLI Guide - Page 517
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 51-11 delete [igmp_snooping | mld_snooping] multicast_vlan called "v1": DGS-3120-24TC:admin# delete mld_snooping multicat_vlan v1 Command: delete mld_snooping multicat_vlan v1 Success. DGS-3120-24TC:admin# 51 - D-Link DGS-3120-24PC | CLI Guide - Page 518
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator-level users can issue this command. Example To enable the IGMP snooping multicast VLAN function globally: DGS-3120-24TC:admin# enable igmp_snooping multicast_vlan Command: enable - D-Link DGS-3120-24PC | CLI Guide - Page 519
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 51-14 config [igmp_snooping | DGS-3120-24TC:admin# config igmp_snooping multicast_vlan forward_unmatched enable Command: config igmp_snooping multicast_vlan forward_unmatched enable Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 520
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters igmp_snooping - Specify that IGMP snooping . Example To display all IGMP snooping multicast VLANs: DGS-3120-24TC:admin# show igmp_snooping multicast_vlan Command: show igmp_snooping multicast_vlan IGMP - D-Link DGS-3120-24PC | CLI Guide - Page 521
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 52 Multiple Spanning Tree Protocol (MSTP) Command List enable stp disable stp config stp {maxage | maxhops | hellotime | forwarddelay - D-Link DGS-3120-24PC | CLI Guide - Page 522
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# enable stp Command: enable stp Success. DGS-3120-24TC:admin# 52-2 disable stp Description This command is used to disable STP globally. Format disable stp Parameters None. Restrictions Only - D-Link DGS-3120-24PC | CLI Guide - Page 523
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide for STP in service provide site. It can use 802.1d STP address, or 802.1ad service provider STP address. STP: DGS-3120-24TC:admin# config stp maxage 25 Command: config stp maxage 25 Success. DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 524
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show STP: DGS-3120-24TC:admin#show stp Command: show stp STP Bridge Global Settings STP Status : Enabled STP Version : RSTP Max Age : 25 Hello Time : 2 Forward Delay : 15 Max - D-Link DGS-3120-24PC | CLI Guide - Page 525
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# create stp instance_id 2 Command: create stp instance_id 2 Success. DGS-3120-24TC:admin# 52-6 config stp instance_id Description This command is used to map or remove the VLAN range of the - D-Link DGS-3120-24PC | CLI Guide - Page 526
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide instance: DGS-3120-24TC:admin# delete stp instance_id 2 Command: delete stp instance_id 2 Success. DGS-3120-24TC:admin# - (Optional) Specify the name given for a specific MST region. - Enter the MST region - D-Link DGS-3120-24PC | CLI Guide - Page 527
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To change the name and revision level of the MST configuration identification: DGS-3120-24TC:admin# config stp mst_config_id name R&D_BlockG revision_level 1 Commands: config stp mst_config_id name R& - D-Link DGS-3120-24PC | CLI Guide - Page 528
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config stp mst_ports DGS-3120-24TC:admin# config stp mst_ports 1:1 instance_id 0 internalCost auto Command: config stp mst_ports 1:1 instance_id 0 internalCost auto Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 529
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide (Optional) To decide if this port supports the STP functionality. enable - Specify DGS-3120-24TC:admin# config stp ports 1:1 externalCost auto Command: config stp ports 1:1 externalCost auto Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 530
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show stp ports {< ports used for the configuration here. Restrictions None. Example To show STP ports: DGS-3120-24TC:admin#show stp ports Command: show stp ports MSTP Port Information Port Index : - D-Link DGS-3120-24PC | CLI Guide - Page 531
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To configure the STP instance ID: DGS-3120-24TC:admin# config stp priority 61440 instance_id 0 Command: config stp - D-Link DGS-3120-24PC | CLI Guide - Page 532
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 52-15 config stp version DGS-3120-24TC:admin# config stp version mstp Command: config stp version mstp Success. DGS-3120-24TC:admin# To config STP version with the same value of old configuration: DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 533
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters instance - Specify the MSTP instance ID. - (Optional) Enter the MSTP instance ID value here. This value must be between 0 and 15. Restrictions None. Example To show STP instance: DGS-3120- - D-Link DGS-3120-24PC | CLI Guide - Page 534
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 53 Network Load Balancing (NLB) NLB unicast MAC forwarding entry, for the product that support the VLAN information on the unicast forwarding: DGS-3120-24TC:admin#create nlb unicast_fdb 02-bf-01-01-01-01 - D-Link DGS-3120-24PC | CLI Guide - Page 535
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config nlb unicast_fdb [add | configure NLB unicast FDB entry, for the product that support the VLAN information on the unicast forwarding: DGS-3120-24TC:admin#config nlb unicast_fdb 02-BF-01-01-01- - D-Link DGS-3120-24PC | CLI Guide - Page 536
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#delete nlb unicast_fdb 02-bf-01-01-01-01 Command: delete nlb unicast_fdb 02-BF-01-01-01-01 Success. DGS-3120-24TC:admin# 53-4 create nlb multicast_fdb Description This command is used to create a - D-Link DGS-3120-24PC | CLI Guide - Page 537
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# create nlb multicast_fdb default 03-bf-01-01-01-01 Command: create nlb multicast_fdb default 03-bf-01-01-01-01 Success. DGS-3120-24TC:admin# 53-5 config nlb multicast_fdb Description This - D-Link DGS-3120-24PC | CLI Guide - Page 538
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format delete nlb multicast_fdb [ |vlanid users can issue this command. Example To delete NLB multicast FDB entry: DGS-3120-24TC:admin# delete nlb multicast_fdb default 03-bf-01-01-01-01 Command: - D-Link DGS-3120-24PC | CLI Guide - Page 539
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show nlb fdb Command: show nlb fdb MAC Address VLAN ID 03-bf-01-01-01-01 100 03-bf-01-01-01-01 1 Egress Ports 1:1-1:5,1:24,2:24 1:1-1:5,1:24,2:24 Total Entries : 2 DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 540
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 54 Network Monitoring Command List show packet ports show error ports show utilization [cpu | ports] show utilization dram {unit } show utilization - D-Link DGS-3120-24PC | CLI Guide - Page 541
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show packet ports 1:7 Command: show packet ports 1:7 Port Number : 1:7 Frame Size/Type Frame Counts Frames/sec ----------- 64 0 0 65-127 0 0 128-255 0 0 256-511 0 0 - D-Link DGS-3120-24PC | CLI Guide - Page 542
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show error ports 1:3 Command: show error ports 1:3 Port Number : 1:3 RX Frames --------- CRC Error 0 Undersize 0 Oversize 0 Fragment 0 Jabber 0 Drop Pkts 0 Symbol Error 0 - D-Link DGS-3120-24PC | CLI Guide - Page 543
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show utilization ports Command: show utilization ports Port TX/sec RX/sec Util Port TX/sec RX/sec Util 1:1 0 0 0 1:21 0 0 0 1:2 0 0 0 1:22 0 0 0 1:3 0 0 0 1:23 0 - D-Link DGS-3120-24PC | CLI Guide - Page 544
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show utilization cpu Command: show utilization cpu CPU Utilization Five seconds - 10 % One minute - 10 % Five minutes - 10 % CTRL+C ESC q Quit SPACE n Next Page p - D-Link DGS-3120-24PC | CLI Guide - Page 545
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show utilization dram Command: show used here. Restrictions None. Example To display FLASH utilization: DGS-3120-24TC:admin#show utilization flash Command: show utilization flash Unit 1 Flash - D-Link DGS-3120-24PC | CLI Guide - Page 546
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format clear counters {ports } Parameters ports - (Optional Example To clear the Switch's statistics counters: DGS-3120-24TC:admin# clear counters ports 2:7-2:9 Command: clear counters ports 2:7-2:9 Success - D-Link DGS-3120-24PC | CLI Guide - Page 547
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 55 OAM Commands (EI Mode Only) config ethernet_oam ports OAM peer. The Ethernet OAM link monitoring error frames parameter provides a mechanism to detect and indicate link faults under a variety of conditions - D-Link DGS-3120-24PC | CLI Guide - Page 548
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config ethernet_oam ports [ | all ] [mode [ to disable the OAM function. link_monitor - Used to detect and indicate link faults under a variety of conditions. error_symbol - Used to generate an - D-Link DGS-3120-24PC | CLI Guide - Page 549
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide critical_link_event -Specify critical link event. dying_gasp - An unrecoverable local failure condition has occurred. critical_event - An unspecified critical event has occurred. notify_state - Specify the event - D-Link DGS-3120-24PC | CLI Guide - Page 550
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config ethernet_oam ports 1 link_monitor error_frame threshold 2 window 1000 notify_state enable Command: config ethernet_oam ports 1 link_monitor error_frame threshold 2 window 1000 - D-Link DGS-3120-24PC | CLI Guide - Page 551
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config ethernet_oam ports 1 received_remote_loopback process Command: config ethernet_oam ports 1 received_remote_loopback process Success. DGS-3120-24TC:admin# 55-2 show ethernet_oam ports - D-Link DGS-3120-24PC | CLI Guide - Page 552
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 4. Variable: It indicates that the OAM entity can send and receive variable requests to monitor the attribute value as described in the IEEE 802.3 Clause - D-Link DGS-3120-24PC | CLI Guide - Page 553
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show ethernet_oam ports 1 Specific OAMPDUs TX : 0 Organization Specific OAMPDUs RX : 0 Unsupported OAMPDU TX : 0 Unsupported OAMPDU RX : 0 Frames Lost Due To OAM : 0 DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 554
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# clear ethernet_oam ports 1 statistics Command: clear ethernet_oam ports 1 statistics Success. DGS-3120-24TC:admin# To clear port 1 OAM events: DGS-3120-24TC:admin# clear ethernet_oam ports 1 - D-Link DGS-3120-24PC | CLI Guide - Page 555
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 56 Password Recovery Command List the password recovery mode: DGS-3120-24TC:admin# enable password_recovery Command: enable password_recovery Success. DGS-3120-24TC:admin# 56-2 disable password_recovery - D-Link DGS-3120-24PC | CLI Guide - Page 556
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format disable password_recovery Parameters None. Restrictions Only Administrator-level users can issue this command. Example To disable the password recovery mode: DGS-3120-24TC:admin# disable password_recovery - D-Link DGS-3120-24PC | CLI Guide - Page 557
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To display the password recovery state: DGS-3120-24TC:admin# show password_recovery Command: show password_recovery Running Configuration : Enabled NV-RAM Configuration : Enabled DGS-3120-24TC:admin# 553 - D-Link DGS-3120-24PC | CLI Guide - Page 558
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 57 Peripherals Command List show device_status show , the number 1, 2, 3 etc represent the fan number: DGS-3120-24TC:admin#show device_status Command: show device_status Unit 1: Internal Power: - D-Link DGS-3120-24PC | CLI Guide - Page 559
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 57-2 show environment Description This command is used to display current status of power(s) and fan(s) on the system. Format show environment Parameters None. Restrictions - D-Link DGS-3120-24PC | CLI Guide - Page 560
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show environment Command: show environment High Warning Temperature Threshold(Celsius) : 79 Low Warning Temperature Threshold(Celsius) : -10 Unit 1 Internal Power : Active External Power : - D-Link DGS-3120-24PC | CLI Guide - Page 561
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the high threshold temperature here. threshold: DGS-3120-24TC:admin# config temperature threshold high 80 Command: config temperature threshold high 80 Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 562
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 57-5 config fan trap state Description the warning fan traps state: DGS-3120-24TC:admin#config fan trap state enable Command: config fan trap state enable Success. DGS-3120-24TC:admin# 57-6 config power trap - D-Link DGS-3120-24PC | CLI Guide - Page 563
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config power trap state enable Command: config power trap state enable Success. DGS-3120-24TC:admin# 559 - D-Link DGS-3120-24PC | CLI Guide - Page 564
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 58 Ping Command List ping {times | timeout } ping6 {times | size | timeout } (EI for 4 times: DGS-3120-24TC:admin# ping 10. - D-Link DGS-3120-24PC | CLI Guide - Page 565
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 58-2 ping6 (EI Mode Only) Description . Restrictions None. Example To send ICMP echo message to "3000::1" for 4 times: DGS-3120-24TC:admin# ping6 3000::1 times 4 Command: ping6 3000::1 times 4 Reply from 3000::1, - D-Link DGS-3120-24PC | CLI Guide - Page 566
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 59 Port Security Command List config entry number; for the entire system, for a port, for a VLAN, and for a specific VLAN on a port. If any limitation is exceeded, the new entry will be discarded. The - D-Link DGS-3120-24PC | CLI Guide - Page 567
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config port_security system max_learning_addr 256 Command: config port_security system max_learning_addr 256 Success. DGS-3120-24TC user removes it manually, the VLAN Switch is reset or rebooted. - D-Link DGS-3120-24PC | CLI Guide - Page 568
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and DGS-3120-24TC:admin# 59-3 config port_security vlan Description This command is used to set the maximum number of port security entries that can be learned on a specific - D-Link DGS-3120-24PC | CLI Guide - Page 569
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure the maximum number of VLAN-based port security entries on VLAN 1 to be 64: DGS-3120-24TC:admin# config port_security vlan vlanid 1 max_learning_addr 64 Command: config port_security vlan vlanid - D-Link DGS-3120-24PC | CLI Guide - Page 570
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format clear port_security_entry {ports [ | all] {[vlan - D-Link DGS-3120-24PC | CLI Guide - Page 571
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To show all the port security entries: DGS-3120-24TC:admin# show port_security_entry Command: show port_security_entry MAC Address 00-00-00-00-00-01 VID Port Lock Mode 1 25 - D-Link DGS-3120-24PC | CLI Guide - Page 572
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show port_security Command: show port_security Port Security Trap State Port Security Log State System Maximum Address : Disabled : Disabled : 256 VLAN Configuration (Only VLANs with - D-Link DGS-3120-24PC | CLI Guide - Page 573
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 59-9 config port_security log state Description This this command. Example To enable the port security log: DGS-3120-24TC:admin#config port_security log state enable Command: config port_security log state enable - D-Link DGS-3120-24PC | CLI Guide - Page 574
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 60 Power over Ethernet (PoE) Command List config poe system's maximum power. legacy_pd - Configure legacy PDs detection status, enable for support, if set to disable, can't detect legacy PDs signal. enable - - D-Link DGS-3120-24PC | CLI Guide - Page 575
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To config PoE system-wise was setting: DGS-3120-24PC any value that the chip supported, Normally, the minimum - D-Link DGS-3120-24PC | CLI Guide - Page 576
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide device connected to this port. enable - Specify that state level users can issue this command. Example To config PoE port: DGS-3120-24PC:admin#config poe ports 1-4 state enable priority critical power_li mit class_1 - D-Link DGS-3120-24PC | CLI Guide - Page 577
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 60-3 show poe system Description the system will display the status of all supported poe units in the systems. Restrictions None. Example To display PoE system: DGS-3120-24PC:admin#show poe system units 1 Command: - D-Link DGS-3120-24PC | CLI Guide - Page 578
Switch CLI Reference Guide Format show poe ports {} Parameters - (Optional) Specified a list of ports to be displayed. If no parameter specified, the system will display the status for all ports. Restrictions None. Example To display PoE port: DGS-3120-24PC:admin#show poe - D-Link DGS-3120-24PC | CLI Guide - Page 579
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 61 Power Saving Command List specification's requirements. The power saving function is performed while no link is detected and it will not affect the port capabilities while the link is up. • When a link - D-Link DGS-3120-24PC | CLI Guide - Page 580
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Led - (Optional) Specify to configure the power saving : DGS-3120-24TC:admin#config power_saving mode port hibernation enable Command: config power_saving mode port hibernation enable Success. DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 581
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config power_saving hibernation add time_range range_1 Command: config power_saving hibernation add time_range range_1 Success. DGS-3120-24TC:admin# 61-3 config power_saving led Description This - D-Link DGS-3120-24PC | CLI Guide - Page 582
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config power_saving port [ | all] [[add | delete] time_range < range_1 Success. DGS-3120-24TC:admin# To delete a time range named "range_2" on port 1: DGS-3120-24TC:admin#config power_saving - D-Link DGS-3120-24PC | CLI Guide - Page 583
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters length_detection - (Optional) Display the length detection configuration of power saving. link_detection - (Optional) Display the link DGS-3120-24TC:admin#show power_saving Command: show power_saving Link - D-Link DGS-3120-24PC | CLI Guide - Page 584
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator and Operator-level users can issue this command. Example To disable the LED admin state: DGS-3120-24TC:admin#config led state disable Command: config led state disable Success. DGS- - D-Link DGS-3120-24PC | CLI Guide - Page 585
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 62 PPPoE Circuit ID Insertions Command List (EI Mode Only) . Example To enable the PPPoE circuit insertion state: DGS-3120-24TC:admin#config pppoe circuit_id_insertion state enable Command: config pppoe - D-Link DGS-3120-24PC | CLI Guide - Page 586
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 62-2 config pppoe circuit_id_insertion ports DGS-3120-24TC:admin#config pppoe circuit_id_insertion ports 5 state enable Command: config pppoe circuit_id_insertion ports 1:5 state enable Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 587
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions None. Example To display PPPoE circuit ID insertion status: DGS-3120-24TC:admin#show pppoe circuit_id_insertion Command: show pppoe circuit_id_insertion Global PPPoE State: Enabled DGS- - D-Link DGS-3120-24PC | CLI Guide - Page 588
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# 584 - D-Link DGS-3120-24PC | CLI Guide - Page 589
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 63 Protocol VLAN Command List create dot1v_protocol_group group_id {group_name . Example To create a protocol group: DGS-3120-24TC:admin# create dot1v_protocol_group group_id 10 group_name General_Group - D-Link DGS-3120-24PC | CLI Guide - Page 590
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 63-2 config dot1v_protocol_group add protocol Description This command To add a protocol ipv6 to protocol group 10: DGS-3120-24TC:admin# config dot1v_protocol_group group_id 10 add protocol Ethernet_2 86dd Command - D-Link DGS-3120-24PC | CLI Guide - Page 591
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters group_id - Specify the group ID to be protocol group 100: DGS-3120-24TC:admin# delete dot1v_protocol_group group_id 100 Command: delete dot1v_protocol_group group_id 100 Success. DGS-3120-24TC:admin# 63-4 - D-Link DGS-3120-24PC | CLI Guide - Page 592
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show dot1v_protocol_group group_id 10 Command: show dot1v_protocol_group group_id 10 Protocol Group ID --------100 Protocol Group Name General Group Frame Type -----------EthernetII - D-Link DGS-3120-24PC | CLI Guide - Page 593
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power port dot1v ports 1:3 add protocol_group group_id 10 vlan marketing-1 Success. DGS-3120-24TC:admin# 63-6 show port dot1v Description This command is used to display - D-Link DGS-3120-24PC | CLI Guide - Page 594
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show port dot1v ports 1:1 Command: show port dot1v ports 1:1 Port: 1:1 Protocol Group ID 1 2 3 4 VLAN Name default VLAN2 VLAN3 VLAN4 Protocol Priority Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 595
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 64 QinQ Command List (EI Mode Only) enable qinq disable qinq config qinq To run GVRP on the Switch, the administrator should enable GVRP manually. In QinQ mode, GVRP protocol will employ reserve address 01-80 - D-Link DGS-3120-24PC | CLI Guide - Page 596
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# enable qinq Command: enable qinq Success. DGS-3120-24TC:admin# 64-2 disable qinq Description This command is used to disable the QinQ. When QinQ is disabled, all dynamic learned L2 addresses - D-Link DGS-3120-24PC | CLI Guide - Page 597
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config qinq inner_tpid 0x9100 Command: config qinq inner_tpid 0x9100 Success. DGS-3120-24TC - Specify that the port is connecting to the service provider network. missdrop - (Optional) Specify the - D-Link DGS-3120-24PC | CLI Guide - Page 598
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To configure port list 1-4 as NNI port and set the TPID to 0x88A8: DGS-3120-24TC:admin# config qinq ports 1:1-1:4 - D-Link DGS-3120-24PC | CLI Guide - Page 599
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show qinq inner_tpid Parameters None. Restrictions None. Example To display the inner-TPID of a system: DGS-3120-24TC:admin# show qinq inner_tpid Command: show qinq inner_tpid Inner TPID: 0x9100 DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 600
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show qinq ports 1:1-1:2 customer VLAN ID used here. svid - Specify the service provider VLAN ID used. - Enter the service provider VLAN ID used here. priority - (Optional) - D-Link DGS-3120-24PC | CLI Guide - Page 601
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To replace the C-Tag in which the CVID is 20, with the S-Tag and the S-VID is 200 at UNI Port 1: DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 602
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# delete vlan_translation ports 1:1-1:4 Command: delete vlan_translation ports 1:1-1:4 Success. DGS-3120-24TC:admin# 64-10 show vlan_translation Description This command is used to display the - D-Link DGS-3120-24PC | CLI Guide - Page 603
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 65 Quality of Service (QoS) Command List config bandwidth_control [ | all] {rx_rate [no_limit | ] | tx_rate [ no_limit | ]} show bandwidth_control {} - D-Link DGS-3120-24PC | CLI Guide - Page 604
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure the port bandwidth: DGS-3120-24TC:admin#config bandwidth_control 1:1-1:10 tx_rate 100 the effective bandwidth for this specific port. Note that only devices that support MAC-based VLAN can - D-Link DGS-3120-24PC | CLI Guide - Page 605
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show bandwidth_control 1:1-1:10 Command: show bandwidth_control 1:1-1:10 Bandwidth Control Table Port ----1:1 1:2 1:3 1:4 1:5 1:6 1:7 1:8 1:9 1:10 RX Rate (Kbit/sec) ---------No Limit No - D-Link DGS-3120-24PC | CLI Guide - Page 606
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide receive. If the specified rate is not multiple of minimum granularity, the rate will be adjusted. Restrictions Only Administrator level can issue this command. Example - D-Link DGS-3120-24PC | CLI Guide - Page 607
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show per_queue bandwidth_control 1:10 Command: show per_queue bandwidth_control 1:10 Queue Bandwidth Control Table On Port: 1:10 Queue 0 1 2 3 4 5 6 7 Min Rate(Kbit/sec) 640 640 640 - D-Link DGS-3120-24PC | CLI Guide - Page 608
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 65-6 config scheduling_mechanism Description This command is 1:1: DGS-3120-24TC:admin# config scheduling_mechanism ports 1:1 strict Command: config scheduling_mechanism ports 1:1 strict Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 609
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters - (Optional) Specify a each CoS queue on port 1:1(take eight hardware priority queues for example): DGS-3120-24TC:admin#show scheduling 1:1 Command: show scheduling 1:1 QOS Output Scheduling On - D-Link DGS-3120-24PC | CLI Guide - Page 610
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show scheduling mechanism: DGS-3120-24TC:admin#show scheduling_mechanism Command: show scheduling_mechanism Port ----1:1 1:2 1:3 1:4 1:5 1:6 1:7 1:8 1:9 1:10 1:11 1:12 1:13 1:14 1:15 1:16 1:17 1:18 1:19 - D-Link DGS-3120-24PC | CLI Guide - Page 611
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide priority queues available. They are numbered between the 802.1p user priority: DGS-3120-24TC:admin#config 802.1p user_priority 1 3 Command: config 802.1p user_priority 1 3 Success. DGS-3120-24TC:admin# 65-10 show 802 - D-Link DGS-3120-24PC | CLI Guide - Page 612
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show 802.1p user_priority Command: show 802.1p user_priority QOS Class of Traffic: Priority-0 -> Priority-1 -> Priority-2 -> Priority-3 -> Priority-4 -> < - D-Link DGS-3120-24PC | CLI Guide - Page 613
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config 802.1p default_priority all 5 Command: config 802.1p default_priority all 5 Success. DGS-3120-24TC with MAC address. Note that only devices supporting MAC-based VLAN can provide per user - D-Link DGS-3120-24PC | CLI Guide - Page 614
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show 802.1p default_priority 1:1-1:10 Command: show 802.1p default_priority 1:1-1:10 Port ---1:1 1:2 1:3 1:4 1:5 1:6 1:7 1:8 1:9 1:10 Priority ----------5 5 5 5 5 5 5 5 5 5 Effective - D-Link DGS-3120-24PC | CLI Guide - Page 615
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format disable hol_prevention Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To disable HOL prevention on the Switch: DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 616
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show hol_prevention Command: show hol_prevention Device HOL Prevention State: Enabled DGS-3120-24TC:admin# 65-16 config dscp trust Description This command is used to configure the state of DSCP - D-Link DGS-3120-24PC | CLI Guide - Page 617
Gigabit Switch CLI Reference Guide Parameters - (Optional) A range of ports to display. If not specify the port, all ports for DSCP trust status on the Switch will be displayed. Restrictions None. Example Display DSCP trust status on ports 1:1-1:8. DGS-3120-24TC:admin#show dscp trust - D-Link DGS-3120-24PC | CLI Guide - Page 618
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Specify a list of DSCP value to be mapped to a specific DSCP. - Enter the DSCP to DSCP list here DGS-3120-24TC:admin# To configure the global mapping of the DSCP priority to priority 1: DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 619
DSCP value to be mapped to a specific DSCP. dscp - (Optional) This specifies DSCP value that will be mapped. - Enter the DSCP list here. Restrictions None. Example In case of project support per port configure, show DSCP map configuration on port 1:1. DGS-3120-24TC:admin# show dscp map - D-Link DGS-3120-24PC | CLI Guide - Page 620
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 66 Remote Switched Port ANalyzer (RSPAN) Command List enable rspan disable rspan create rspan vlan [vlan_name | vlan_id ] delete rspan vlan [vlan_name < - D-Link DGS-3120-24PC | CLI Guide - Page 621
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# enable rspan Command: enable rspan Success. DGS-3120-24TC:admin# 66-2 disable rspan Description This command is used to disable the RSPAN function. Format disable rspan Parameters None. - D-Link DGS-3120-24PC | CLI Guide - Page 622
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator and Operator-level users can issue this command. Example To create an RSPAN VLAN entry by VLAN name "v2": DGS-3120-24TC:admin# create rspan vlan vlan_name v2 Command: create rspan - D-Link DGS-3120-24PC | CLI Guide - Page 623
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# delete rspan vlan vlan_name v2 Command: delete rspan vlan vlan_name v2 Success. DGS-3120-24TC:admin# To delete an RSPAN VLAN entry by VLAN ID "3": DGS-3120-24TC:admin# delete rspan vlan vlan_id - D-Link DGS-3120-24PC | CLI Guide - Page 624
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator and Operator-level users can issue this command. Example To configure an RSPAN source entry without source target port: DGS-3120-24TC:admin# config rspan vlan vlan_name VLAN2 source - D-Link DGS-3120-24PC | CLI Guide - Page 625
Switch CLI Reference Guide - Enter the VLAN name here. vlan_id - (Optional) Specify the RSPAN VLAN by VLAN ID. - Enter the VLAN ID here. This value must be between 1 and 4094. Restrictions None. Example Display the specific settings: DGS-3120-24TC:admin#show rspan - D-Link DGS-3120-24PC | CLI Guide - Page 626
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 67 RPC PortMapper Command List config 10: DGS-3120-24TC:admin#config filter rpc_portmapper 1:1-1:10 state enable Command: config filter rpc_portmapper 1:1-1:10 state enable Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 627
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions None. Example To display the RPC portmapper state: DGS-3120-24TC:admin#show filter rpc_portmapper Command: show filter rpc_portmapper Enabled Ports: 1:1-1:10 DGS-3120-24TC:admin# 623 - D-Link DGS-3120-24PC | CLI Guide - Page 628
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 68 Safeguard Engine Command List config safeguard_engine {state [enable | disable] | utilization {rising | falling }(1) | trap_log [enable|disable] | mode [ strict | - D-Link DGS-3120-24PC | CLI Guide - Page 629
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config safeguard_engine state enable utilization rising 50 falling 30 trap_log enable Command: config safeguard_engine state enable utilization rising 50 falling 30 trap_log enable Success. DGS- - D-Link DGS-3120-24PC | CLI Guide - Page 630
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 69 SD Card Management Command List create backup [increment | reset]} config execute_config time_range config {state [enable | disable] | [increment | reset]} delete execute_config - D-Link DGS-3120-24PC | CLI Guide - Page 631
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To create a backup schedule on time range "range_1": DGS-3120-24TC:admin#create backup config time_range range_1 filename c:/bkconfi g-1 Command: create backup config time_range range_1 filename c:/bk-config - D-Link DGS-3120-24PC | CLI Guide - Page 632
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 69-3 delete backup Description This command is used to delete delete all the schedules: DGS-3120-24TC:admin# delete backup config all Command: delete backup config all Success. DGS-3120-24TC:admin# 69-4 show backup - D-Link DGS-3120-24PC | CLI Guide - Page 633
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show all backup schedules: DGS-3120-24TC:admin#show backup config {state [enable | disable] | [increment | reset]} Parameters - Enter the time range for schedule to execute - D-Link DGS-3120-24PC | CLI Guide - Page 634
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#create execute_config time_range range-1 config c:/vlanconfig state enable Command: create execute_config time_range range-1 config c:/vlan-config state enable Success. DGS-3120-24TC:admin# 69-6 - D-Link DGS-3120-24PC | CLI Guide - Page 635
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 69-7 delete execute_config Description This command is schedule of executing configuration: DGS-3120-24TC:admin# delete execute_config all Command: delete execute_config all Success. DGS-3120-24TC:admin# 69-8 show - D-Link DGS-3120-24PC | CLI Guide - Page 636
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To display all the executive schedules: DGS-3120-24TC:admin#show execute_config Command: show execute_config Time Range : range-1 Filename : c:/vlan-config Method : Reset State : Enabled Total - D-Link DGS-3120-24PC | CLI Guide - Page 637
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 70 Secure Shell (SSH) Command List config ssh algorithm [ 70-1 config ssh algorithm Description This command is used to configure SSH service algorithm. Format config ssh algorithm [3DES | AES128 | AES192 | - D-Link DGS-3120-24PC | CLI Guide - Page 638
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To enable SSH server public key algorithm: DGS-3120-24TC: enable Success. DGS-3120-24TC:admin# 70-2 show ssh algorithm Description This command is used to show the SSH service algorithm. Format show - D-Link DGS-3120-24PC | CLI Guide - Page 639
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show ssh algorithm Command: show ssh algorithm Encryption Algorithm 3DES : Enabled AES128 : Enabled AES192 : Enabled AES256 : Enabled Arcfour : Enabled Blowfish : Enabled - D-Link DGS-3120-24PC | CLI Guide - Page 640
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure user authentication method: DGS-3120-24TC:admin# config ssh authmode publickey enable Command: config ssh authmode publickey enable Success. DGS-3120-24TC:admin# 70-4 show ssh authmode - D-Link DGS-3120-24PC | CLI Guide - Page 641
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config ssh user authmode [hostbased [hostname | hostname_IP [ | ]] | password | publickey] Parameters user - Specify the user name. - D-Link DGS-3120-24PC | CLI Guide - Page 642
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show user information about SSH configuration: DGS-3120-24TC:admin# show ssh user authmode Command: show ssh user authmode Current Accounts: User Name Authentication test Public Key alpha Host - D-Link DGS-3120-24PC | CLI Guide - Page 643
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure SSH server maximum session number is 3: DGS-3120-24TC:admin# config ssh server maxsession 3 Command: config ssh server maxsession 3 Success. DGS-3120-24TC:admin# 70-8 enable ssh Description This - D-Link DGS-3120-24PC | CLI Guide - Page 644
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To disable the SSH server services: DGS-3120-24TC:admin#disable ssh Command: disable ssh Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 645
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 71 Secure Sockets Layer (SSL) Command List download ssl certificate certfilename keyfilename enable ssl {ciphersuite {RSA_with_RC4_128_MD5 | - D-Link DGS-3120-24PC | CLI Guide - Page 646
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# download ssl certificate 10.55.47.1 certfilename cert.der keyfilename pkey.der Command: download ssl certificate 10.55.47.1 certfilename cert.der keyfilename pkey.der Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 647
Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# enable ssl Command: enable ssl Success. DGS-3120-24TC:admin# Note: Web will be disabled when SSL is enabled. 71-3 disable ssl Description This command is used to disable SSL feature and supported ciphercuites. Using "disable ssl - D-Link DGS-3120-24PC | CLI Guide - Page 648
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# disable ssl Command: disable ssl Success. DGS-3120-24TC:admin# 71-4 delete ssl certificate Description This command is used to delete a certification on the Switch. Format delete ssl certificate - D-Link DGS-3120-24PC | CLI Guide - Page 649
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - (Optioanl) Specify the certification file name on the Switch. Restrictions None. Example To show SSL: DGS-3120-24TC:admin# show ssl Commands: show ssl SSL status RSA_WITH_RC4_128_MD5 - D-Link DGS-3120-24PC | CLI Guide - Page 650
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show SSL cache timeout: DGS-3120-24TC:admin# show ssl cachetimeout Commands: show ssl cachetimeout Cache timeout is 600 second(s) DGS-3120-24TC:admin# 71-7 config ssl cachetimeout Description This command - D-Link DGS-3120-24PC | CLI Guide - Page 651
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config ssl certificate chain [default | ] issue this command. Example To configure SSL chain of certifications DGS-3120-24TC:admin#config ssl certificate chain web_ca2.cer,server.crt Command: - D-Link DGS-3120-24PC | CLI Guide - Page 652
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 72 Surveillance VLAN Command List enable surveillance_vlan [ - D-Link DGS-3120-24PC | CLI Guide - Page 653
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 72-2 disable surveillance_vlan Description This command is disable the surveillance VLAN: DGS-3120-24TC:admin#disable surveillance_vlan Command: disable surveillance_vlan Success. DGS-3120-24TC:admin# 72-3 config - D-Link DGS-3120-24PC | CLI Guide - Page 654
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config surveillance_vlan priority 6 Command: config surveillance_vlan priority 6 Success. DGS-3120-24TC:admin# 72-4 config surveillance_vlan oui Description This command is used to configure the - D-Link DGS-3120-24PC | CLI Guide - Page 655
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 72-5 config surveillance_vlan ports Description This command is used to configure the surveillance VLAN state on the specific ports. Format config surveillance_vlan ports [ | all] state [enable | disable] - D-Link DGS-3120-24PC | CLI Guide - Page 656
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To set the aging time of the surveillance VLAN to 60 minutes: DGS-3120-24TC:admin#config surveillance_vlan - D-Link DGS-3120-24PC | CLI Guide - Page 657
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show surveillance_vlan {oui | ports {} | device {ports }} Parameters oui - (Optional) The OUI information of the surveillance VLAN. ports - (Optional) Specify a range of ports - D-Link DGS-3120-24PC | CLI Guide - Page 658
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 73 sFlow Command List (EI Mode Only) create sflow flow_sampler ports [ | all] analyzer_server_id {rate | maxheadersize } config sflow flow_sampler ports [< - D-Link DGS-3120-24PC | CLI Guide - Page 659
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide been sampled that will be encapsulated and forwarded to flow_sampler ports 1 analyzer_server_id 1 rate 1 maxheadersize 18 Success. DGS-3120-24TC:admin# 73-2 config sflow flow_sampler Description This command is used - D-Link DGS-3120-24PC | CLI Guide - Page 660
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example Configure the sFlow sampler the rate of port 1 to be 0: DGS-3120-24TC:admin#config sflow flow_sampler ports 1:1 rate 0 maxheadersize 18 Command: config sflow flow_sampler ports 1:1 rate 0 maxheadersize 18 - D-Link DGS-3120-24PC | CLI Guide - Page 661
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters ports - Specify the list of ports DGS-3120-24TC:admin#create sflow counter_poller ports 1:1 analyzer_server_id 1 Command: create sflow counter_poller ports 1:1 analyzer_server_id 1 Success. DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 662
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example Configure the interval of sFlow counter poller port 1 to be 0: DGS-3120-24TC:admin#config sflow counter_poller ports 1:1 interval disable Command: config sflow counter_poller ports 1:1 interval disable - D-Link DGS-3120-24PC | CLI Guide - Page 663
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format create sflow analyzer_server owner {timeout [ - D-Link DGS-3120-24PC | CLI Guide - Page 664
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config sflow analyzer_server {timeout [< .90.90.90 to be the sFlow analyzer server with the ID 1: DGS-3120-24TC:admin# config sflow analyzer_server 1 collectoraddress 10.90.90.90 Command: config - D-Link DGS-3120-24PC | CLI Guide - Page 665
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters analyzer_server - The ID of analyzer server that an analyzer server: DGS-3120-24TC:admin# delete sflow analyzer_server 1 Command: delete sflow analyzer_server 1 Success. DGS-3120-24TC:admin# 73-10 enable - D-Link DGS-3120-24PC | CLI Guide - Page 666
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 73-11 disable sflow Description This command this command. Example Disable the sFlow globally: DGS-3120-24TC:admin# disable sflow Command: disable sflow Success. DGS-3120-24TC:admin# 73-12 show sflow Description This - D-Link DGS-3120-24PC | CLI Guide - Page 667
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show the sFlow information: DGS-3120-24TC:admin#show sflow Command: show sflow sFlow Version sFlow Address sFlow State : V5 : 10.90.90.90 : Disabled DGS-3120-24TC:admin# 73-13 show sflow flow_sampler - D-Link DGS-3120-24PC | CLI Guide - Page 668
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 73-14 show sflow counter_poller Description This Analyzer Server ID 1 Polling Interval (sec Disable Total Entries: 1 DGS-3120-24TC:admin# 73-15 show sflow analyzer_server Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 669
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show the sFlow flow sampler information of ports which have been created: DGS-3120-24TC:admin#show sflow analyzer_server Command: show sflow analyzer_server sFlow Analyzer_server Information Server - D-Link DGS-3120-24PC | CLI Guide - Page 670
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 74 Show Technical Support Command List show tech_support upload tech_support_toTFTP 74-1 show tech_support Description This command is especially used by the technical support - D-Link DGS-3120-24PC | CLI Guide - Page 671
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DES-3200-28P:admin#show tech_support Command: show tech_support # DGS-3120-24TC Gigabit Ethernet Switch # Technical Support Information # # Firmware: Build 2.50.015 # Copyright(C) 2012 D-Link - D-Link DGS-3120-24PC | CLI Guide - Page 672
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide • Basic System information • System log • Running configuration • Layer 1 information Example To upload the information of technique's support: DGS-3120-24TC:admin#upload tech_support_toTFTP 10.0.0.66 tech_report.txt - D-Link DGS-3120-24PC | CLI Guide - Page 673
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 75 Simple Mail Transfer Protocol (SMTP) Command List enable . Example To enable SMTP status: DGS-3120-24TC:admin#enable smtp Command: enable smtp Success. DGS-3120-24TC:admin# 75-2 disable smtp Description - D-Link DGS-3120-24PC | CLI Guide - Page 674
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format disable smtp Parameters None. Restrictions Only Administrator-level users can issue this command. Example To disable SMTP status: DGS-3120-24TC:admin#disable smtp Command: disable smtp Success. DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 675
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure an SMTP server IP address: DGS-3120-24TC:admin#config smtp server 172.18.208.9 Command: config smtp server 172.18.208.9 Success. DGS-3120-24TC:admin# To configure an SMTP server port: DGS-3120- - D-Link DGS-3120-24PC | CLI Guide - Page 676
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show smtp Parameters None. Restrictions None. Example To display the current SMTP information: DGS-3120-24TC @dlink.com Index ----1 2 3 4 5 6 7 8 Mail Receiver Address [email protected] DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 677
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator-level users can issue this command. Example To test whether the SMTP server can be reached: DGS-3120-24TC:admin#smtp send_testmsg Command: smtp send_testmsg Subject:e-mail heading - D-Link DGS-3120-24PC | CLI Guide - Page 678
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 76 Simple Network Management Protocol (SNMP) Command v6host ] show snmp host {} show snmp v6host {} (EI Mode Only) config snmp engineID show snmp engineID - D-Link DGS-3120-24PC | CLI Guide - Page 679
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 76-1 create snmp community Description This command -only level SNMP community "System" with a "CommunityView" view: DGS-3120-24TC:admin# create snmp community System view CommunityView read_only Command: create snmp - D-Link DGS-3120-24PC | CLI Guide - Page 680
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 76-2 create snmp community_masking view Description This sensitive community:***** Enter the community again for confirmation:***** Success. DGS-3120-24TC:admin# 76-3 delete snmp community Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 681
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator-level users can issue this command. Example To delete a SNMP community "System": DGS-3120-24TC:admin# delete snmp community System Command: delete snmp community System Success. DGS - D-Link DGS-3120-24PC | CLI Guide - Page 682
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 76-5 create snmp user Description This command is used to create a new user to an SNMP group originated by this command. Format create snmp user < - D-Link DGS-3120-24PC | CLI Guide - Page 683
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# create snmp user user123 group123 encrypted by_password auth md5 12345678 priv des 12345678 Command: create snmp user user123 group123 encrypted by_password auth md5 12345678 - D-Link DGS-3120-24PC | CLI Guide - Page 684
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions None. Example To show SNMP user: DGS-3120-24TC Neither support packet authentication nor encrypting. auth_nopriv - Support packet authentication. auth_priv - Support packet - D-Link DGS-3120-24PC | CLI Guide - Page 685
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide long. Restrictions Only Administrator-level users can issue this command. Example To create SNMP group "group123": DGS-3120-24TC:admin# create snmp group group123 v3 auth_priv read_view CommunityView write_view - D-Link DGS-3120-24PC | CLI Guide - Page 686
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 76-10 show snmp groups Description This command is used to display the names of groups on the Switch and the security model, level, the - D-Link DGS-3120-24PC | CLI Guide - Page 687
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show snmp groups Command: show snmp groups Vacm Access Table Settings Group Name : public ReadView Name : CommunityView WriteView Name : Notify View Name : CommunityView Securiy - D-Link DGS-3120-24PC | CLI Guide - Page 688
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Object-Identified tree, MIB tree. "view123": DGS-3120-24TC:admin# create snmp view view123 1.3.6 view_type included Command: create snmp view view123 1.3.6 view_type included Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 689
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 76-13 show snmp view Description This command is up to 32 characters long. Restrictions None. Example To show SNMP view: DGS-3120-24TC:admin# show snmp view Command: show snmp view Vacm View Table Settings View - D-Link DGS-3120-24PC | CLI Guide - Page 690
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters host - Specify the recipient for which the traps are targeted. - The IP address of the recipient for which the traps are targeted. v6host - - D-Link DGS-3120-24PC | CLI Guide - Page 691
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To delete SNMP host "10.0.0.1": DGS-3120-24TC:admin# delete snmp host 10.0.0.1 Command: delete snmp host 10.0.0.1 Success. DGS-3120-24TC:admin# 76-16 show snmp host Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 692
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 76-17 show snmp v6host (EI Mode Only) Description This hosts will be displayed. Restrictions None. Example To show SNMP host: DGS-3120-24TC:admin# show snmp v6host Command: show snmp v6host SNMP Host Table - D-Link DGS-3120-24PC | CLI Guide - Page 693
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 76-18 config snmp engineID Description This engine ID to "1023457890": DGS-3120-24TC:admin# config snmp engineID 1023457890 Command: config snmp engineID 1023457890 Success. DGS-3120-24TC:admin# 76-19 show snmp - D-Link DGS-3120-24PC | CLI Guide - Page 694
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To show SNMP engine ID: DGS-3120-24TC:admin# show snmp engineID Command: show snmp engineID SNMP Engine ID : 1023457890 DGS-3120-24TC:admin# 76-20 enable snmp Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 695
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator and Operator-level users can issue this command. Example To disable SNMP: DGS-3120-24TC:admin# disable snmp Command: disable snmp Success. DGS-3120-24TC:admin# 76-22 - D-Link DGS-3120-24PC | CLI Guide - Page 696
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 76-23 config snmp system_location Description This location for "HQ 5F": DGS-3120-24TC:admin# config snmp system_location HQ 5F Command: config snmp system_location HQ 5F Success. DGS-3120-24TC:admin# 76-24 config - D-Link DGS-3120-24PC | CLI Guide - Page 697
Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config snmp system_contact "MIS Department II" Command: config snmp system_contact "MIS Department II" Success. DGS-3120-24TC:admin# 76-25 enable snmp traps Description This command is used to enable SNMP trap support. Format enable snmp traps - D-Link DGS-3120-24PC | CLI Guide - Page 698
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator and Operator-level users can issue this command. Example To prevent SNMP traps from being sent from the Switch: DGS-3120-24TC:admin# disable snmp traps Command: disable snmp traps - D-Link DGS-3120-24PC | CLI Guide - Page 699
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator and Operator-level users can issue this command. Example To disable SNMP authentication trap support: DGS-3120-24TC:admin# disable snmp authenticate_traps Command: - D-Link DGS-3120-24PC | CLI Guide - Page 700
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# disable snmp linkchange_traps Command: disable snmp linkchange_traps Success. DGS-3120-24TC sending of the link change trap for this port. disable - Disable sending of the link change trap for - D-Link DGS-3120-24PC | CLI Guide - Page 701
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure the sending of linkchange traps: DGS-3120-24TC:admin# config snmp linkchange_traps ports 1:1-1:4 enable Command: config snmp linkchange_traps ports 1:1-1:4 enable Success. DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 702
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters enable - Enable the trap of the state for warmstart event: DGS-3120-24TC:admin# config snmp warmstart_traps enable Command: config snmp warmstart_traps enable Success. DGS-3120-24TC:admin# 76-34 show snmp - D-Link DGS-3120-24PC | CLI Guide - Page 703
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show snmp traps Command: show snmp traps SNMP Traps Authenticate Trap Linkchange Traps Coldstart Traps Warmstart Traps : Enabled : Enabled : Enabled : Enabled : Enabled DGS-3120-24TC:admin# - D-Link DGS-3120-24PC | CLI Guide - Page 704
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show rmon Parameters None. Restrictions Only Administrator-level users can issue this command. Example To display the RMON related setting: DGS-3120-24TC:admin# show rmon Command: show rmon RMON Rising - D-Link DGS-3120-24PC | CLI Guide - Page 705
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 76-38 disable community_encryption Description This command on SNMP community string: DGS-3120-24TC:admin#disable community_encryption Command: disable community_encryption Success. DGS-3120-24TC:admin# 76-39 show - D-Link DGS-3120-24PC | CLI Guide - Page 706
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show community_encryption Command: show community_encryption SNMP Community Encryption State : Enabled DGS-3120-24TC:admin# 702 - D-Link DGS-3120-24PC | CLI Guide - Page 707
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 77 Single IP Management Command List enable sim disable sim show sim {[candidates this command. Example To enable SIM: DGS-3120-24TC:admin# enable sim Command: enable sim Success. DGS-3120-24TC:admin# 703 - D-Link DGS-3120-24PC | CLI Guide - Page 708
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 77-2 disable sim Description This DGS-3120-24TC:admin# disable sim Command: disable sim Success. DGS-3120-24TC:admin# 77-3 show sim Description This command is used to display the current information of the specific - D-Link DGS-3120-24PC | CLI Guide - Page 709
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To show the self information in detail: DGS-3120-24TC:admin#show sim Command: show sim SIM Version : VER-1.61 Firmware Version : 2.50.015 Device Name : MAC Address : 00-00-00-01-02 - D-Link DGS-3120-24PC | CLI Guide - Page 710
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show sim member Command: show sim member ID MAC Address Platform / Hold Firmware Device Name Capability Time Version 1 00-01-02-03-04-00 DES-XXXXS L2 Switch 40 1.00-B01 - D-Link DGS-3120-24PC | CLI Guide - Page 711
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show sim neighbor Command: show sim neighbor Neighbor Table Port -----23 23 24 MAC Address 00-35-26-00-11-99 00-35-26- - D-Link DGS-3120-24PC | CLI Guide - Page 712
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config sim_group [add {} | delete ] Parameters add - Specify to add a specific !!! Success. DGS-3120-24TC:admin# To delete a member: DGS-3120-24TC:admin# config - D-Link DGS-3120-24PC | CLI Guide - Page 713
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config sim [{[commander {group_name } | candidate] | dp_interval | hold_time }] Parameters commander - (Optional) Specify to transfer the role to the - D-Link DGS-3120-24PC | CLI Guide - Page 714
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config sim dp_interval 30 Command: config sim dp_interval 30 Success. DGS-3120-24TC:admin# To change the hold time of discovery protocol: DGS-3120-24TC:admin# config sim hold_time 200 Command: - D-Link DGS-3120-24PC | CLI Guide - Page 715
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# download sim_ms configuration_from_tftp 10. 1 00-01-02-03-04-00 Success DGS-3120-24TC:admin# To download firmware: DGS-3120-24TC:admin# download sim_ms firmware_from_tftp 10.55.47.1 - D-Link DGS-3120-24PC | CLI Guide - Page 716
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To upload configuration: DGS-3120-24TC:admin# upload sim_ms configuration_to_tftp 10.55.47.1 D:\configuration.txt - D-Link DGS-3120-24PC | CLI Guide - Page 717
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 78 Stacking Command List config box_priority users can issue this command. Example To configure box priority: DGS-3120-24TC:admin#config box_priority current_box_id 1 priority 1 Command: config box_priority - D-Link DGS-3120-24PC | CLI Guide - Page 718
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 78-2 config box_id be auto: DGS-3120-24TC:admin#config box_id current_box_id 1 new_box_id auto Command: config box_id current_box_id 1 new_box_id auto Success. DGS-3120-24TC:admin# down timer will be reset. 714 - D-Link DGS-3120-24PC | CLI Guide - Page 719
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Message 2: Stack Topology Status: New device down timer will be reset. It is suggested for the user not to do any command regarding read /write of flash, for example:"download firmware","save","show config in flash - D-Link DGS-3120-24PC | CLI Guide - Page 720
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show stack_information Command: show stack_information Topology My Box ID Master ID Box Count :Duplex_Chain :1 :1 :1 Force Master Role: Disabled Trap State :Enabled Log State :Enabled - D-Link DGS-3120-24PC | CLI Guide - Page 721
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show stack_device Command: show stack_device Box ID -----1 Box Type DGS-3120-24TC H/W Version ----------A1 Serial Number abcd1234 DGS-3120-24TC:admin# 78-5 config stacking_mode - D-Link DGS-3120-24PC | CLI Guide - Page 722
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To display stacking mode: DGS-3120-24TC:admin# show stacking_mode Command: show stacking_mode - D-Link DGS-3120-24PC | CLI Guide - Page 723
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config stacking force_master_role state enable Command: config stacking force_master_role state enable Success. DGS-3120-24TC:admin# 78-8 config stacking trap state Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 724
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To enable the stacking log state: DGS-3120-24TC:admin#config stacking log state enable Command: config stacking - D-Link DGS-3120-24PC | CLI Guide - Page 725
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide EI Mode Only) none - Specify to clear the configured source IP interface. Restrictions Only Administrator and Operator-level users can issue this command. Example Configure syslog source IP interface: DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 726
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config syslog source_ipif none Command: config syslog source_ipif none Success DGS-3120-24TC:admin# 79-2 show syslog source_ipif Description This command is used to display the syslog source - D-Link DGS-3120-24PC | CLI Guide - Page 727
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide EI Mode Only) none - Specify to clear the configured source IP interface. Restrictions Only Administrator and Operator-level users can issue this command. Example Configure trap source IP interface: DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 728
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example Show trap source IP interface: DGS-3120-24TC:admin# show trap source_ip Command: show trap source_ip Trap Source IP Interface Configuration: IP Interface IPv4 Address : System : None DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 729
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 80 System Log Command List clear log show log {[index | severity {module } {emergency | alert | critical | error | warning | notice | informational | debug | } | - D-Link DGS-3120-24PC | CLI Guide - Page 730
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# clear log Command: clear log Success. DGS-3120-24TC:admin# 80-2 show log Description This command is used to display the Switch's history log. Format show log {[index | severity { - D-Link DGS-3120-24PC | CLI Guide - Page 731
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show log index support the enhanced log: DGS-3120-24TC:admin#show log_software_module Command: show log_software_module CFM_EXT ERROR_LOG DHCPv6_CLIENT MSTP DHCPv6_RELAY ERPS DGS-3120-24TC - D-Link DGS-3120-24PC | CLI Guide - Page 732
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format enable syslog Parameters None. Restrictions Only Administrator and Operator-level users can issue this command. Example To enable the sending of syslog messages: DGS-3120-24TC:admin# enable syslog Command: - D-Link DGS-3120-24PC | CLI Guide - Page 733
protocol global state: DGS-3120-24TC:admin# show syslog Command: show syslog Syslog Global State: Enabled DGS-3120-24TC:admin# 80-7 create syslog host Description This command is used to create a new syslog host. The user can choose and report specific levels of messages to a specific host. When the - D-Link DGS-3120-24PC | CLI Guide - Page 734
facility local0 Success. DGS-3120-24TC:admin# 80-8 config syslog host Description This command is used to configure the syslog host configurations. The user can choose and report a specific level of messages to a specific host. When the user chooses a specific level for a specific host, messages - D-Link DGS-3120-24PC | CLI Guide - Page 735
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config syslog host [ - D-Link DGS-3120-24PC | CLI Guide - Page 736
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config syslog host all severity debug facility local0 Command: config syslog host all severity debug facility local0 Success. DGS-3120-24TC:admin# 80-9 delete syslog host Description This command - D-Link DGS-3120-24PC | CLI Guide - Page 737
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide If no parameter is specified, all hosts will be displayed. Restrictions None. Example To show the syslog host information: DGS-3120-24TC:admin#show syslog host Command: show syslog host Syslog Global State: - D-Link DGS-3120-24PC | CLI Guide - Page 738
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config log_save_timing on_demand Command: config log_save_timing on_demand Success. DGS-3120-24TC:admin# 80-12 show log_save_timing Description This command is used to show the method for saving - D-Link DGS-3120-24PC | CLI Guide - Page 739
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters unit - (Optional) Possible spoofing attack from IP: , MAC: 0A-00-00-5A-00-01, port: 1:3 DGS-3120-24TC:admin# 80-14 clear attack_log Description This command is used to clear the attack log. Format - D-Link DGS-3120-24PC | CLI Guide - Page 740
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# clear attack_log Command: clear attack_log Success. DGS-3120-24TC:admin# 736 - D-Link DGS-3120-24PC | CLI Guide - Page 741
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 81 System Severity Command List control for the system. When the user chooses a specific level to log or trap, messages at that level for trap: DGS-3120-24TC:admin#config system_severity trap warning - D-Link DGS-3120-24PC | CLI Guide - Page 742
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 81-2 show system_severity Description This command : DGS-3120-24TC:admin#show system_severity Command: show system_severity System Severity Trap : warning(4) System Severity Log : information(6) DGS-3120-24TC:admin - D-Link DGS-3120-24PC | CLI Guide - Page 743
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 82 Telnet Client Command List telnet [ | ] {tcp_port } 82-1 telnet Description This command is used to start the telnet client to connect to the specific telnet server. The - D-Link DGS-3120-24PC | CLI Guide - Page 744
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide firmware to download firmware from a of the TFTP server. (EI Mode Only) src_file - is specified, the firmware image on all units TFTP server. (EI Mode Only) src_file is specified, the firmware image on all units will - D-Link DGS-3120-24PC | CLI Guide - Page 745
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide apply the setting to the system. If Only Administrator-level users can issue this command. Example To download firmware from TFTP: DGS-3120-24TC:admin# download firmware_fromTFTP 10.54.71.1 src_file px.had Command - D-Link DGS-3120-24PC | CLI Guide - Page 746
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters cfg_toTFTP - Specify that the configuration file will be uploaded to the TFTP server. - The IP address of the TFTP server. - The IPv6 address of the TFTP server. (EI server. (EI Mode - D-Link DGS-3120-24PC | CLI Guide - Page 747
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide long. attack_log_toTFTP - Specify that the attack log will be uploaded to the TFTP server. - The IP address of the TFTP server. - The IPv6 address of the TFTP server. (EI Mode Only) dest_file - - D-Link DGS-3120-24PC | CLI Guide - Page 748
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide To upload configuration from TFTP: DGS-3120-24TC:admin#upload cfg_toTFTP 10.90.90.99 dest_file 111.cfg unit 1 src_file c:/config.cfg Command: upload cfg_toTFTP 10.90.90.99 dest_file 111.cfg unit 1 - D-Link DGS-3120-24PC | CLI Guide - Page 749
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 84 Time and SNTP Command List config sntp {primary | secondary | poll-interval } config sntp ipv6server {primary | secondary }(1) (EI Mode Only) show sntp - D-Link DGS-3120-24PC | CLI Guide - Page 750
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config sntp primary 10.1.1.1 secondary 10.1.1.2 pollinterval 30 Command: config sntp primary 10.1.1.1 secondary 10.1.1.2 poll-interval 30 Success. DGS-3120-24TC:admin# 84-2 config sntp - D-Link DGS-3120-24PC | CLI Guide - Page 751
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions None. Example To show SNTP: DGS-3120-24TC Interval : 720 sec DGS-3120-24TC:admin# 84-4 enable sntp Description This command is used to turn on SNTP support. Format enable sntp - D-Link DGS-3120-24PC | CLI Guide - Page 752
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# enable sntp Command: enable sntp Success. DGS-3120-24TC:admin# 84-5 disable sntp Description This command is used to turn off SNTP support. Format disable sntp Parameters None. Restrictions Only - D-Link DGS-3120-24PC | CLI Guide - Page 753
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator and Operator-level users can issue this command. Example To configure time: DGS-3120-24TC:admin# config time 30jun2003 16:30:30 Command: config time 30jun2003 16:30:30 Success. DGS- - D-Link DGS-3120-24PC | CLI Guide - Page 754
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 84-8 config dst Description This command is used to configure Daylight Saving Time of the device. Format config dst [disable | repeating {s_week | s_day < - D-Link DGS-3120-24PC | CLI Guide - Page 755
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - Enter the starting s_time 15:00 e_week 2 e _day wed e_mth 10 e_time 15:30 offset 30 Success. DGS-3120-24TC:admin# 84-9 show time Description This command is used to display time states. Format - D-Link DGS-3120-24PC | CLI Guide - Page 756
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show time Command: show time Current Time Source : System Clock Boot Time : 9 May 2011 06:20: To : Oct last Sun 00:00 Annual From : 29 Apr 00:00 To : 12 Oct 00:00 DGS-3120-24TC:admin# 752 - D-Link DGS-3120-24PC | CLI Guide - Page 757
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 85 Trace Route Command List traceroute {ttl } {port } {timeout } {probe } traceroute6 {ttl | - D-Link DGS-3120-24PC | CLI Guide - Page 758
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# traceroute 10.48.74.121 probe 3 Command: traceroute 10.48.74.121 probe 3 1 - D-Link DGS-3120-24PC | CLI Guide - Page 759
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# traceroute6 3000::1 probe 3 Command: traceroute6 3000::1 probe 3 1 - D-Link DGS-3120-24PC | CLI Guide - Page 760
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 86 Traffic Control Command List config traffic control [ | - (Optional) Enable or disable unknown packet storm control. ( Supported for drop mode only) enable - Specify that unicast storm control - D-Link DGS-3120-24PC | CLI Guide - Page 761
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide the Switch that will trigger the storm traffic so that the traffic control status is enabled on ports 1-12: DGS-3120-24TC:admin# config traffic control 1:1-1:12 broadcast enable action shutdown threshold 1 - D-Link DGS-3120-24PC | CLI Guide - Page 762
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters none - No trap state is specified cleared mode traffic control traps: DGS-3120-24TC:admin# config traffic trap both Command: config traffic trap both Success. DGS-3120-24TC:admin# 86-3 show traffic control - D-Link DGS-3120-24PC | CLI Guide - Page 763
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show traffic control 1:1-1:10 Command: show for shutdown mode. Since shutdown mode only support broadcast and multicast storm control, doesn't support unicast storm control. The log only generate - D-Link DGS-3120-24PC | CLI Guide - Page 764
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide disable - Neither occurred nor cleared is logged. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To configure the traffic log state on the Switch: DGS-3120-24TC: - D-Link DGS-3120-24PC | CLI Guide - Page 765
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 761 - D-Link DGS-3120-24PC | CLI Guide - Page 766
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 87 Traffic Segmentation Command List config traffic_segmentation issue this command. Example To configure traffic segmentation: DGS-3120-24TC:admin# config traffic_segmentation 1:1-1:10 forward_list 1:111:15 - D-Link DGS-3120-24PC | CLI Guide - Page 767
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show traffic_segmentation {} Parameters None. Example To display traffic segmentation table: DGS-3120-24TC:admin# show traffic_segmentation 1:1-1:10 Command: show traffic_segmentation - D-Link DGS-3120-24PC | CLI Guide - Page 768
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 88 Trusted Host Command List create address of the trusted host. - The IPv6 address of the trusted host. (EI Mode Only) network - The network address of the trusted network. The form of network - D-Link DGS-3120-24PC | CLI Guide - Page 769
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# create trusted_host 10.48.74.121 Command: create trusted_host 10.48.74.121 Success. DGS-3120-24TC - The IPv6 address of the trusted host. (EI Mode Only) - Enter the IPv6 address - D-Link DGS-3120-24PC | CLI Guide - Page 770
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format config trusted_host [ IPv6 subnet prefix of the trusted network. (EI Mode Only) - Enter the IPv6 74.121 add ssh telnet Success. DGS-3120-24TC:admin# 88-4 show trusted_host Description - D-Link DGS-3120-24PC | CLI Guide - Page 771
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To display trusted host: DGS-3120-24TC:admin#show trusted_host Command: show trusted_host Management Stations IP Address Access Interface 10.48.74.121 SNMP Telnet SSH HTTP HTTPs - D-Link DGS-3120-24PC | CLI Guide - Page 772
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 89 UDP Helper Command List enable udp_helper enable the UDP helper function: DGS-3120-24TC:admin#enable udp_helper Command: enable udp_helper Success. DGS-3120-24TC:admin# 89-2 disable udp_helper Description - D-Link DGS-3120-24PC | CLI Guide - Page 773
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To disable the UDP helper function: DGS-3120-24TC:admin#disable udp_helper Command: disable - D-Link DGS-3120-24PC | CLI Guide - Page 774
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config udp_helper udp_port add 55 Command: config udp_helper udp_port add 55 Success. DGS-3120-24TC:admin# 89-4 config udp_helper udp_port delete Description This command is used to delete a UDP - D-Link DGS-3120-24PC | CLI Guide - Page 775
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters - Enter the name of 90 Success. DGS-3120-24TC:admin# 89-6 config udp_helper delete ipif Description This command is used to delete a UDP helper server address for specific interface of the - D-Link DGS-3120-24PC | CLI Guide - Page 776
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 89-7 show udp_helper Description This command is Restrictions None. Example To display the current UDP Helper configuration: DGS-3120-24TC:admin#show udp_helper Command: show udp_helper UDP Helper Status : - D-Link DGS-3120-24PC | CLI Guide - Page 777
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 90 Unicast Routing Command List format (for example, 10.1.2.3/255.0.0.0) or in CIDR format (for example,10.1.2.3/16). (EI Mode Only) - The IP address for the next hop router. - D-Link DGS-3120-24PC | CLI Guide - Page 778
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To add a floating static route and a static multipath route: DGS-3120-24TC:admin# create iproute default 10.1.1.254 primary Command: create iproute default 10.1.1.254 primary Success. DGS-3120-24TC:admin# 90 - D-Link DGS-3120-24PC | CLI Guide - Page 779
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters - (Optional) Specify the destination network address of the route to be displayed. (EI -------Local Local Total Entries : 2 DGS-3120-24TC:admin# 90-4 show ipfdb Description This - D-Link DGS-3120-24PC | CLI Guide - Page 780
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To display network address forwarding table: DGS-3120-24TC Dynamic 1:3 Dynamic Total Entries: 3 DGS-3120-24TC:admin# 90-5 show route preference (EI Mode Only) Description This command - D-Link DGS-3120-24PC | CLI Guide - Page 781
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show route preference Command: show route preference Route Preference Settings Protocol ---------Static Default Local Preference ---------60 1 0 DGS-3120-24TC:admin# 777 - D-Link DGS-3120-24PC | CLI Guide - Page 782
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 91 VLAN Trunking Command List enable vlan_trunk To enable the VLAN Trunk: DGS-3120-24TC:admin# enable vlan_trunk Command: enable vlan_trunk Success. DGS-3120-24TC:admin# 91-2 disable vlan_trunk Description - D-Link DGS-3120-24PC | CLI Guide - Page 783
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters None. Restrictions Only Administrator and Operator-level users can issue this command. Example To disable the VLAN Trunk: DGS-3120-24TC:admin# disable vlan_trunk Command: disable vlan_trunk Success. DGS- - D-Link DGS-3120-24PC | CLI Guide - Page 784
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters - Enter a list of ports used for the 1:6-1:7 state disable Success. DGS-3120-24PC:admin# Port 6 is LA-1 member port; port 7 is LA-1 master port: DGS-3120-24TC:admin# config vlan_trunk ports - D-Link DGS-3120-24PC | CLI Guide - Page 785
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24PC:admin#config vlan_trunk ports 1:7 state disable Command: config vlan_trunk ports 1:7 state disable Success. DGS-3120-24PC:admin# Port 6, 7 have the same VLAN configuration before enabling VLAN trunk. - D-Link DGS-3120-24PC | CLI Guide - Page 786
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show vlan_trunk Command: show vlan_trunk VLAN Trunk Global Setting VLAN Trunk Status : Enabled VLAN Trunk Member Ports : 1:1-1:5 DGS-3120-24TC:admin# The following example displays the VLAN - D-Link DGS-3120-24PC | CLI Guide - Page 787
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 92 Voice VLAN Command List enable voice_vlan [ - D-Link DGS-3120-24PC | CLI Guide - Page 788
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# enable voice_vlan v2 Command: enable voice_vlan v2 Success. DGS-3120-24TC:admin# 92-2 disable voice_vlan Description The command is used to disable the voice VLAN function on a switch. When the - D-Link DGS-3120-24PC | CLI Guide - Page 789
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To set the priority of the voice VLAN to be six: DGS-3120-24TC:admin# config voice_vlan priority 6 Command: - D-Link DGS-3120-24PC | CLI Guide - Page 790
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To add a user-defined OUI for a voice device: DGS-3120-24TC auto {[tag |untag]}|manual]] Parameters ports - Specify - D-Link DGS-3120-24PC | CLI Guide - Page 791
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To configure voice VLAN ports 4-6 to enable: DGS-3120-24TC:admin#config voice_vlan ports 1:4-1:6 state enable Command: config voice_vlan ports 1:4-1:6 state enable Success. DGS-3120-24TC and reset. Format - D-Link DGS-3120-24PC | CLI Guide - Page 792
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config voice_vlan aging_time 60 Command: config voice_vlan aging_time 60 Success. DGS-3120-24TC:admin# 92-7 config voice_vlan log state Description This command is used to configure the log - D-Link DGS-3120-24PC | CLI Guide - Page 793
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To display the voice VLAN global information when voice VLAN is enabled: DGS-3120-24TC:admin#show voice_vlan Command: show voice_vlan Voice VLAN State : Enabled VLAN ID : 2 VLAN - D-Link DGS-3120-24PC | CLI Guide - Page 794
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions None. Example To display the OUI information of voice VLAN: DGS-3120-24TC:admin#show voice_vlan oui Command: show voice_vlan oui OUI Address Mask Description 00-01-E3-00-00-00 FF-FF-FF-00-00-00 - D-Link DGS-3120-24PC | CLI Guide - Page 795
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#show voice_vlan ports 1:1-1:5 Command: show voice_vlan ports 1:1-1:5 Ports ----- 1:1 1:2 1:3 1:4 1:5 Status --------- Disabled Disabled Disabled Enabled Enabled Mode Auto Untagged Auto - D-Link DGS-3120-24PC | CLI Guide - Page 796
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show voice_vlan voice_device port 00 2008-10-6 20:00 2008-10-6 20:30 Total Entries: 6 DGS-3120-24TC:admin# 92-12 show voice_vlan lldp_med voice_device Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 797
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# show voice_vlan lldp_med voice_device Command: show voice_vlan lldp_med voice_device Index : 1 Local Port : 1:1 Chassis ID Subtype : MAC Address Chassis ID : 00-E0-BB-00-00- - D-Link DGS-3120-24PC | CLI Guide - Page 798
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 93 Web-Based Access Control (WAC) Command List enable wac disable wac config wac ports [ | all] {state [enable | disable] | aging_time [infinite | ] | - D-Link DGS-3120-24PC | CLI Guide - Page 799
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# enable wac Command: enable wac Success. DGS-3120-24TC:admin# 93-2 disable wac Description This command is used to disable WAC function; all authentication entries related to WAC will be deleted. - D-Link DGS-3120-24PC | CLI Guide - Page 800
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config wac ports 1:1-1:9 state enable Command: config wac ports 1:1-1:9 state enable Success. DGS-3120-24TC added by "config radius ..." command supports the protocol. Format config wac method - D-Link DGS-3120-24PC | CLI Guide - Page 801
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Restrictions Only Administrator, Operator and Power-User level users can issue this command. Example To configure WAC auth method: DGS-3120-24TC:admin# config wac method radius Command: config wac method radius - D-Link DGS-3120-24PC | CLI Guide - Page 802
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config wac clear_default_redirpath Command: config wac clear_default_redirpath Success. DGS-3120-24TC IPv6 address of the virtual IP. (EI Mode Only) Restrictions Only Administrator, Operator and - D-Link DGS-3120-24PC | CLI Guide - Page 803
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example Set virtual IP address: DGS-3120-24TC:admin# config wac virtual_ip 1.1.1.1 Command: config wac virtual_ip 1.1.1.1 Success. DGS-3120-24TC:admin# 93-8 config wac switch_http_port Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 804
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 93-9 create wac user a case-sensitive new password:*** Enter the new password again for confirmation:*** Success. DGS-3120-24TC:admin# 93-10 delete wac user Description This command is used to delete WAC - D-Link DGS-3120-24PC | CLI Guide - Page 805
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters user - To specify the user . Example To delete a WAC local user: DGS-3120-24TC:admin# delete wac user 123 Command: delete wac user 123 Success. DGS-3120-24TC:admin# 93-11 config wac user Description This - D-Link DGS-3120-24PC | CLI Guide - Page 806
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin# config wac user Jim vlanid 3 Command: config wac user Jim vlanid 3 Enter a old password: *** Enter a case-sensitive new password: *** Enter the new password again - D-Link DGS-3120-24PC | CLI Guide - Page 807
authenticate page elements: DGS-3120-24TC:admin#config wac authentication_page element notification_line 1 C opyright @ 2011 D-Link All Rights Reserved Command: config wac authentication_page element notification_line 1 Copyright @ 2011 D-Link All Rights Reserved Success. DGS-3120-24TC:admin# 93-14 - D-Link DGS-3120-24PC | CLI Guide - Page 808
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show wac Parameters None. Restrictions None. Example Show global configuration about WAC: DGS-3120-24TC:admin#show wac Command: show wac Web-based Access Control State : Enabled Method : Local - D-Link DGS-3120-24PC | CLI Guide - Page 809
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Example To show WAC port state and other parameters: DGS-3120-24TC:admin# show wac ports 1-3 Command: show wac ports 1-3 Port State Aging Time (min) 1:1 Enabled 60 1:2 Enabled 60 1:3 Enabled 120 Idle - D-Link DGS-3120-24PC | CLI Guide - Page 810
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Format show wac auth_state ports {} Parameters ports - Specify a range of member ports to show the status. - (Optional) Enter a list of ports to display - D-Link DGS-3120-24PC | CLI Guide - Page 811
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC Total Authenticated Hosts :3 Total Blocked Hosts :2 DGS-3120-24TC:admin# 93-18 show wac authenticate_page Description This authentication page elements: DGS-3120-24TC:admin#show wac - D-Link DGS-3120-24PC | CLI Guide - Page 812
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Password Title : Password Logout Window Title : Logout From The Network Notification : Copyright @ 2011 D-Link All Rights Reserved DGS-3120-24TC:admin# 93-19 clear wac auth_state Description This command is - D-Link DGS-3120-24PC | CLI Guide - Page 813
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Chapter 94 Weighted Random Early Detection (WRED) Command List enable wred this command. Example To enable global wred state: DGS-3120-24TC:admin#enable wred Command: enable wred Success. DGS-3120-24TC:admin# 809 - D-Link DGS-3120-24PC | CLI Guide - Page 814
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 94-2 disable wred Description This command. Example To disable wred global state: DGS-3120-24TC:admin#disable wred Command: disable wred Success. DGS-3120-24TC:admin# 94-3 create wred profile Description This - D-Link DGS-3120-24PC | CLI Guide - Page 815
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#create wred profile 2 profile_name profilename Command: create wred profile 2 profile_name profilename Success. DGS-3120-24TC:admin# 94-4 config wred profile Description This command is used to - D-Link DGS-3120-24PC | CLI Guide - Page 816
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config wred profile profile_id 2 min_threshold 30 max_threshold 50 max_drop_rate 10 Command: config wred profile profile_id 2 min_threshold 30 max_threshold 50 max_drop_rate 10 Success. DGS-3120- - D-Link DGS-3120-24PC | CLI Guide - Page 817
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide DGS-3120-24TC:admin#config wred ports 1:1 cos 2 profile profile_id 2 Command: config wred ports 1:1 cos 2 profile profile_id 2 Success. DGS-3120-24TC:admin# 94-6 delete wred profile Description This command is used - D-Link DGS-3120-24PC | CLI Guide - Page 818
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide - (Optional) Enter a range of ports. Restrictions None. Example To display wred of port 1:1 and 1:2 settings: DGS-3120-24TC:admin#show wred ports 1:1-1:2 Command: show wred ports 1:1-1:2 Global WRED : - D-Link DGS-3120-24PC | CLI Guide - Page 819
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Parameters default - (Optional) Specify the be displayed. Restrictions None. Example To display the WRED profile information: DGS-3120-24TC:admin#show wred profile Command: show wred profile Total Profile Number: 2 - D-Link DGS-3120-24PC | CLI Guide - Page 820
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Appendix A Mitigating ARP Spoofing intended to introduce the ARP protocol, ARP spoofing attacks, and the countermeasures brought by D-Link's switches to thwart ARP spoofing attacks. Figure 1 In the process of ARP, PC - D-Link DGS-3120-24PC | CLI Guide - Page 821
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Table 2 Ethernet Frame Format When the Switch receives the frame, it will check the "Source Address" in the Ethernet frame's header. If the address is - D-Link DGS-3120-24PC | CLI Guide - Page 822
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Table 3 ARP Payload When PC B replies to the query, the "Destination Address" in the Ethernet frame on a LAN, modify the traffic, or stop the traffic altogether (known as a Denial of Service - DoS 818 Figure 4 - D-Link DGS-3120-24PC | CLI Guide - Page 823
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide attack). The principle of ARP spoofing is to send the fake, or spoofed ARP messages to an Ethernet network. Generally, the aim is to associate - D-Link DGS-3120-24PC | CLI Guide - Page 824
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide can be seen in Figure 5 all traffic will be then sniffed by the hacker but the users will not discover. Prevent ARP Spoofing via Packet Content ACL D-Link Packet Content ACL can be supported per switch. In other - D-Link DGS-3120-24PC | CLI Guide - Page 825
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Byte 2 6 10 14 18 22 26 30 34 38 42 46 50 54 58 62 Offset Offset Offset Offset Offset Offset Offset Offset Offset Offset - D-Link DGS-3120-24PC | CLI Guide - Page 826
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Step 4: config access_profile profile_id 2 add access_id 1 packet_content offset_chunk_1 0x806 offset_chunk_2 0xA5A offset_chunk_3 0x5A5A0000 Step save 5: Configure access profile 2. The rest of the ARP packets - D-Link DGS-3120-24PC | CLI Guide - Page 827
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Appendix B Password Recovery Procedure This chapter describes the procedure for resetting passwords on D-Link switches. Authenticating any user who tries to access networks is necessary and important. The basic - D-Link DGS-3120-24PC | CLI Guide - Page 828
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Command reset account reset password {} show account Parameters The reset account command deletes all the previously created accounts. The reset password command resets the password of the specified user - D-Link DGS-3120-24PC | CLI Guide - Page 829
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Appendix C System Log Entries The following table Power failed Redundant Power is working Side Fan failed Side Fan recovered Firmware upgraded successfully [Unit ,] Internal Power failed [Unit ,] - D-Link DGS-3120-24PC | CLI Guide - Page 830
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide unsuccessful! (Username: , IP: ) Configuration successfully downloaded Configuration successfully downloaded by console(Username: , IP: ) Informational Configuration - D-Link DGS-3120-24PC | CLI Guide - Page 831
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Interface Stacking Console Web Firmware successfully uploaded Firmware successfully uploaded by console (Username: , IP: ) Informational Firmware upload was unsuccessful Firmware . link state - D-Link DGS-3120-24PC | CLI Guide - Page 832
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Telnet SNMP STP DoS Successful login through Web(SSL) Login failed through Web(SSL) Logout through Web(SSL) Web(SSL) session timed out Successful login - D-Link DGS-3120-24PC | CLI Guide - Page 833
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide SSH AAA 1. The soure ip is same as switch's interface ip but the source mac is different 2. Source ip is the same as the switch's - D-Link DGS-3120-24PC | CLI Guide - Page 834
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Successful login through Web(SSL) authenticated by AAA none method Successful login through Telnet authenticated by AAA none method Successful login through SSH authenticated by - D-Link DGS-3120-24PC | CLI Guide - Page 835
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Successful Enable Admin through Console authenticated by AAA local_enable method Enable Admin failed through Console authenticated by AAA local_enable method Successful Enable Admin through Web - D-Link DGS-3120-24PC | CLI Guide - Page 836
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Port Security authenticated by AAA server Enable Admin failed through Console authenticated by AAA server Enable Admin failed through Console due to AAA server timeout - D-Link DGS-3120-24PC | CLI Guide - Page 837
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide RADIUS 802.1X MAC-based Access Control VID assigned from RADIUS server after RADIUS client is authenticated by RADIUS server successfully .This VID will be - D-Link DGS-3120-24PC | CLI Guide - Page 838
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide JWAC WAC IMPB IP and Password Changed When a client host authenticated successful. When a client host fails to authenticate. This log will be triggered when the - D-Link DGS-3120-24PC | CLI Guide - Page 839
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Safeguard Engine Packet Storm Loop IP address BPDU attack happened BPDU attack automatically recover BPDU attack manually recover Temperature exceeds confidence level Temperature recovers to normal. Cross-connect - D-Link DGS-3120-24PC | CLI Guide - Page 840
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Can not receive remote MEP's CCM packet alarm threshold LAC DDM exceeded or recover from DDM warning threshold Lac trunk group link down and link up log. MAC:) CFM remote down. MD Level:, VLAN:< - D-Link DGS-3120-24PC | CLI Guide - Page 841
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide SD Card Management LLDP Surveillance VLAN Execute configuration error. Schedule backup fail. Execute configuration success. Schedule backup success. LLDP-MED Topology change detected Conflict LLDP- - D-Link DGS-3120-24PC | CLI Guide - Page 842
DGS-3120-24TC) 1.3.6.1.4.1.171.11.117.1.2.2.100.1. 2.0.1(DGS-3120-24PC) 1.3.6.1.4.1.171.11.117.1.3.2.100.1. 2.0.1(DGS-3120-24SC) 1.3.6.1.4.1.171.11.117.1.4.2.100.1. 2.0.1(DGS-3120-48TC) 1.3.6.1.4.1.171.11.117.1.5.2.100.1. 2.0.1(DGS-3120-48PC) 1.3.6.1.4.1.171.11.117.1.6.2.100.1. 2.0.1(DGS-3120-24SC - D-Link DGS-3120-24PC | CLI Guide - Page 843
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide uccess interval time. Binding 1. swLoopDetectPortIndex 2. swVlanLoopDetectVID When the BPDU Protection trap is enabled, if the specific port changes from a normal state to an under attack state, a trap will be sent - D-Link DGS-3120-24PC | CLI Guide - Page 844
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide 2. swTemperSensorID 3. swTemperatureCurrent This trap is sent when the process of upgrading the firmware via SNMP has finished. Binding 1. swMultiImageVersion The trap is sent when the configuration - D-Link DGS-3120-24PC | CLI Guide - Page 845
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide swPowerRecover swUnitInsert swUnitRemove swUnitFailure swUnitTPChange swUnitRoleChange lldpRemTablesChange lldpXMedTopologyChangeDetected swDdmAlarmTrap swDdmWarningTrap dot3OamNonThresholdEvent 2. swPowerID 3. - D-Link DGS-3120-24PC | CLI Guide - Page 846
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide swSingleIPMSLinkDown in an agent role, has detected that the ifOperStatus object for one of its communication links is about to enter the down state from some other state (but not from the notPresent - D-Link DGS-3120-24PC | CLI Guide - Page 847
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide linkUp authenticationFailure newRoot topologyChange agent role, has detected that the ifOperStatus object for one of its communication links left the down state and transitioned into some other state (but not - D-Link DGS-3120-24PC | CLI Guide - Page 848
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide LLDP traps. Binding 1: alarmIndex 2: alarmVariable 3: alarmSampleType 4: alarmValue 5: alarmFallingThreshold This trap is initialed when a LLDP entry is added to or deleted from remote DB. 1.3.6.1.2.1.1.3.0 - D-Link DGS-3120-24PC | CLI Guide - Page 849
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Specific attributes are: Vendor-Specific Attribute Description Value Usage Vendor-ID Defines the vendor. 171 (DLINK lower than 0 or higher than maximum supported value, the bandwidth will be ignored. - D-Link DGS-3120-24PC | CLI Guide - Page 850
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide The parameters of the Vendor-Specific attributes are: Vendor-Specific Attribute Description Value Usage Vendor-ID Defines the vendor. 171 (DLINK) Required Vendor-Type Defines the attribute. 4 Required - D-Link DGS-3120-24PC | CLI Guide - Page 851
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide Tag field value 0x01 0x02 Others (0x00 Vendor-Specific Attribute are: RADIUS Tunnel Attribute Description Value Vendor-ID Defines the vendor. 171 (DLINK) Usage Required Vendor-Type Attribute-Specific Field - D-Link DGS-3120-24PC | CLI Guide - Page 852
xStack® DGS-3120 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide If the user has configured the ACL attribute of the RADIUS server (for example, ACL profile: create access_profile profile_id 6 profile_name 1 ethernet; ACL rule: config access_profile