D-Link DGS-3120-48PC Reference Manual

Other manuals for DGS-3120-48PC: Selection Manual, Hardware Installation Manual
Manual is about: CLI Reference Guide

Summary of DGS-3120-48PC

  • Page 1

    Ll.

  • Page 2: Table Of Contents

    Xstack ® dgs-3120 series managed switch cli reference guide i table of contents chapter 1 using command line interface ............................................................................................. 1 chapter 2 basic command list ...........................................................

  • Page 3

    Xstack ® dgs-3120 series managed switch cli reference guide ii chapter 35 ipv6 neighbor discover command list (ei mode only) ................................................... 365 chapter 36 ipv6 route command list (ei mode only) ........................................................................

  • Page 4

    Xstack ® dgs-3120 series managed switch cli reference guide iii chapter 71 simple mail transfer protocol (smtp) command list ..................................................... 642 chapter 72 simple network management protocol (snmp) command list ...................................... 647 chapter ...

  • Page 5: Chapter 1

    Xstack ® dgs-3120 series managed switch cli reference guide 1 chapter 1 using command line interface the switch can be managed through the switch’s serial port, telnet, snmp or the web-based management agent. The command line interface (cli) can be used to configure and manage the switch via the ser...

  • Page 6

    Xstack ® dgs-3120 series managed switch cli reference guide 2 default ip address is 10.90.90.90. You can change the default switch ip address to meet the specification of your networking address scheme. The switch is also assigned a unique mac address by the factory. This mac address cannot be chang...

  • Page 7

    Xstack ® dgs-3120 series managed switch cli reference guide 3 there are a number of helpful features included in the cli. Entering the ? Command will display a list of all of the top-level commands. .. ? Cable_diag ports cd cfm linktrace cfm lock md cfm loopback change drive clear clear address_bind...

  • Page 8

    Xstack ® dgs-3120 series managed switch cli reference guide 4 dgs-3120-24tc:admin# config account command: config account next possible completions: dgs-3120-24tc:admin# config account in the above example, the command config account was entered without the required parameter , the cli returned the ...

  • Page 9

    Xstack ® dgs-3120 series managed switch cli reference guide 5 authen_enable authen_login authen_policy authentication authorization autoconfig bandwidth_control boot_file bpdu_protection cfm command command_history config cpu current_config device_status dhcp_local_relay dhcp_relay dot1v_protocol_gr...

  • Page 11

    Xstack ® dgs-3120 series managed switch cli reference guide 7 tab help user to select appropriate token. P display the previous page. N or space display the next page. Ctrl+c escape from displayed pages. Esc escape from displayed pages. Q escape from displayed pages. R refresh the displayed pages a ...

  • Page 13

    Xstack ® dgs-3120 series managed switch cli reference guide 9 dgs-3120-24tc:admin#show session command: show session id live time from level user --- ------------ --------------------------------------- ----- --------------- 8 00:04:17.870 serial port admin anonymous total entries: 1 ctrl+c esc q qu...

  • Page 15

    Xstack ® dgs-3120 series managed switch cli reference guide 11 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 clipaging command: enable ...

  • Page 16

    Xstack ® dgs-3120 series managed switch cli reference guide 12 format login parameters none. Restrictions none. Example to login the switch with a user name dlink: dgs-3120-24tc:admin# login command: login username:dlink password:**** dgs-3120-24tc:admin# 2-7 logout description this command is used ...

  • Page 17

    Xstack ® dgs-3120 series managed switch cli reference guide 13 dgs-3120-24tc:admin# logout command: logout ********** * logout * ********** press any key to login... Dgs-3120-24tc gigabit ethernet switch command line interface firmware: build 2.00.010 copyright(c) 2011 d-link corporation. All rights...

  • Page 18

    Xstack ® dgs-3120 series managed switch cli reference guide 14 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 command_history description the...

  • Page 19

    Xstack ® dgs-3120 series managed switch cli reference guide 15 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# 2-11 config command_h...

  • Page 20

    Xstack ® dgs-3120 series managed switch cli reference guide 16 format config greeting_message {default} parameters default - (optional) adding this parameter to the “config greeting_message” command will return the greeting message (banner) to its original factory default entry. Restrictions only ad...

  • Page 21

    Xstack ® dgs-3120 series managed switch cli reference guide 17 restrictions only administrator and operator-level users can issue this command. Example to display greeting message: dgs-3120-24tc:admin#show greeting_ message command: show greeting_message =============================================...

  • Page 23

    Xstack ® dgs-3120 series managed switch cli reference guide 19 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 description the command is used ...

  • Page 25

    Xstack ® dgs-3120 series managed switch cli reference guide 21 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 the current configuratio...

  • Page 26

    Xstack ® dgs-3120 series managed switch cli reference guide 22 dgs-3120-24tc:admin#show ports details command: show ports details port : 1:1 -------------------- port status : link down description : hardware type : gigabits ethernet mac address : 00-01-02-03-04-10 bandwidth : 1000000kbit auto-negot...

  • Page 28

    Xstack ® dgs-3120 series managed switch cli reference guide 24 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 advertisement command: create vlan...

  • Page 29

    Xstack ® dgs-3120 series managed switch cli reference guide 25 3-3 delete vlan description this command is used to delete a previously configured vlan by the name on the switch. Format delete vlan parameters vlan - the vlan name of the vlan to be deleted. - enter the vlan name here. This name can be...

  • Page 30

    Xstack ® dgs-3120 series managed switch cli reference guide 26 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 based on the name. For...

  • Page 32

    Xstack ® dgs-3120 series managed switch cli reference guide 28 parameters - a range of ports for which you want ingress checking. The port list is specified by listing the lowest switch number and the beginning port number on that switch, separated by a colon. Then highest switch number, and the hig...

  • Page 33

    Xstack ® dgs-3120 series managed switch cli reference guide 29 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 name : default vlan type : static advertisement : enabled member por...

  • Page 34

    Xstack ® dgs-3120 series managed switch cli reference guide 30 dgs-3120-24tc:admin#show vlan ports 1:6 command: show vlan ports 1:6 port vid untagged tagged dynamic forbidden ----- ---- -------- ------ ------- --------- 1:6 1 x - - - dgs-3120-24tc:admin# 3-10 show vlan vlanid description this comman...

  • Page 35

    Xstack ® dgs-3120 series managed switch cli reference guide 31 3-11 show port_vlan description this command is used to display the ports’ vlan attributes on the switch. Format show port_vlan {} parameters - (optional) specify a range of ports to be displayed. (unitid:port number). If no parameter sp...

  • Page 36

    Xstack ® dgs-3120 series managed switch cli reference guide 32 3-12 enable pvid auto assign description this command is used to enable the auto-assignment of pvid. If “auto-assign pvid” is enabled, pvid will be possibly changed by pvid or vlan configuration. When user configures a port to vlan x’s u...

  • Page 37

    Xstack ® dgs-3120 series managed switch cli reference guide 33 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 success. Dgs-3120-24tc:...

  • Page 39

    Xstack ® dgs-3120 series managed switch cli reference guide 35 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 milliseconds nni bpdu address: dot1d ...

  • Page 40

    Xstack ® dgs-3120 series managed switch cli reference guide 36 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 command: disable gvrp succe...

  • Page 41

    Xstack ® dgs-3120 series managed switch cli reference guide 37 example to associate secondary vlan to private vlan p1: 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 de...

  • Page 42

    Xstack ® dgs-3120 series managed switch cli reference guide 38 dgs-3120-24tc:admin# show private_vlan command: show private_vlan private vlan 100 ------------------ promiscuous ports: 1:1 trunk ports : 1:2 isolated ports : 1:3-1:5 isolated vlan : 20 community ports : 1:6–1:8 community vlan: 30 commu...

  • Page 44

    Xstack ® dgs-3120 series managed switch cli reference guide 40 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 success. Dgs-3120-24tc:ad...

  • Page 45

    Xstack ® dgs-3120 series managed switch cli reference guide 41 4-3 create 802.1x user description this command is used to create an 802.1x user. Format create 802.1x user parameters - enter the username to be added. This value can be up to 15 characters long. Restrictions only administrator, operato...

  • Page 46

    Xstack ® dgs-3120 series managed switch cli reference guide 42 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 parameters none. Restric...

  • Page 47

    Xstack ® dgs-3120 series managed switch cli reference guide 43 parameters local - specify the authentication protocol as local. Radius_eap - specify the authentication protocol as radius eap. Restrictions only administrator, operator and power-user level users can issue this command. Example to conf...

  • Page 48

    Xstack ® dgs-3120 series managed switch cli reference guide 44 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 forwarding of eapol pdu. ...

  • Page 50

    Xstack ® dgs-3120 series managed switch cli reference guide 46 dgs-3120-24tc:admin#show 802.1x auth_configuration ports 1:1 command: show 802.1x auth_configuration ports 1:1 port number : 1:1 capability : none admincrldir : both opencrldir : both port control : auto quietperiod : 60 sec txperiod : 3...

  • Page 51

    Xstack ® dgs-3120 series managed switch cli reference guide 47 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 config 802.1x max_user...

  • Page 53

    Xstack ® dgs-3120 series managed switch cli reference guide 49 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:admin# config 802.1x a...

  • Page 55

    Xstack ® dgs-3120 series managed switch cli reference guide 51 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 all command: config 802....

  • Page 56

    Xstack ® dgs-3120 series managed switch cli reference guide 52 format delete 802.1x guest_vlan {} parameters - (optional) enter the vlan name here. The vlan name can be up to 32 characters long. Restrictions only administrator, operator and power-user level users can issue this command. Example to d...

  • Page 57

    Xstack ® dgs-3120 series managed switch cli reference guide 53 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 show 802.1x guest_vlan de...

  • Page 59

    Xstack ® dgs-3120 series managed switch cli reference guide 55 parameters - specify to delete a radius server.Enter the radius server index. Restrictions only administrator, operator and power-user level users can issue this command. Example to delete a radius server: dgs-3120-24tc:admin# config rad...

  • Page 60

    Xstack ® dgs-3120 series managed switch cli reference guide 56 default - specify that the default timeout value will be used. Retransmit - (optional) the count for re-transmitting. The default value is 2. - enter the re-transmit value here. This value must be between 1 and 20. Default - specify that...

  • Page 61

    Xstack ® dgs-3120 series managed switch cli reference guide 57 dgs-3120-24tc:admin# show radius command: show radius index 1 ip address : 172.18.211.71 auth-port : 1812 acct-port : 1813 timeout : 5 sec retransmit : 2 key : 1234567 index 2 ip address : 172.18.211.108 auth-port : 1812 acct-port : 1813...

  • Page 62

    Xstack ® dgs-3120 series managed switch cli reference guide 58 dgs-3120-24tc:admin#show auth_statistics ports 1:1 command: show auth_statistics ports 1:1 port number : 1:1 eapolframesrx 0 eapolframestx 9 eapolstartframesrx 0 eapolreqidframestx 6 eapollogoffframesrx 0 eapolreqframestx 0 eapolrespidfr...

  • Page 63

    Xstack ® dgs-3120 series managed switch cli reference guide 59 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 successwhileauthenticating 0 timeoutswhileauthenticatin...

  • Page 64

    Xstack ® dgs-3120 series managed switch cli reference guide 60 dgs-3120-24tc:admin# show auth_session_statistics ports 1:1 command: show auth_session_statistics ports 1:1 port number : 1:1 sessionoctetsrx 0 sessionoctetstx 0 sessionframesrx 0 sessionframestx 0 sessionid sessionauthenticmethod remote...

  • Page 65

    Xstack ® dgs-3120 series managed switch cli reference guide 61 dgs-3120-24tc:admin# show auth_client command: show auth_client radiusauthclient ==> radiusauthclientinvalidserveraddresses 0 radiusauthclientidentifier radiusauthserverentry ==> radiusauthserverindex :1 radiusauthserveraddress 0.0.0.0 r...

  • Page 66

    Xstack ® dgs-3120 series managed switch cli reference guide 62 dgs-3120-24tc:admin# show acct_client command: show acct_client radiusacctclient ==> radiusacctclientinvalidserveraddresses 0 radiusacctclientidentifier radiusauthserverentry ==> radiusaccserverindex : 1 radiusaccserveraddress 0.0.0.0 ra...

  • Page 67

    Xstack ® dgs-3120 series managed switch cli reference guide 63 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 accounting service des...

  • Page 69

    Xstack ® dgs-3120 series managed switch cli reference guide 65 parameters none. Restrictions only administrator-level users can issue this command. Example to enable the password encryption: dgs-3120-24tc:admin#enable password encryption command: enable password encryption success. Dgs-3120-24tc:adm...

  • Page 70

    Xstack ® dgs-3120 series managed switch cli reference guide 66 5-3 enable authen_policy description this command is used to enable system access authentication policy. Enable system access authentication policy. When authentication is enabled, the device will adopt the login authentication method li...

  • Page 71

    Xstack ® dgs-3120 series managed switch cli reference guide 67 restrictions only administrator-level users can issue this command. Example to disable system access authentication policy: dgs-3120-24tc:admin# disable authen_policy command: disable authen_policy success. Dgs-3120-24tc:admin# 5-5 show ...

  • Page 72

    Xstack ® dgs-3120 series managed switch cli reference guide 68 format create authen_login method_list_name parameters - the user-defined method list name. This value can be up to 15 characters long. Restrictions only administrator-level users can issue this command. Example to create a user-defined ...

  • Page 73

    Xstack ® dgs-3120 series managed switch cli reference guide 69 tacacs+ - (optional) authentication by the built-in server group “tacacs+”. Radius - (optional) authentication by the built-in server group “radius”. Server_group - (optional) authentication by the user-defined server group. - enter the ...

  • Page 75

    Xstack ® dgs-3120 series managed switch cli reference guide 71 restrictions only administrator-level users can issue this command. Example to create a user-defined method list for promoting user's privilege to admin level: dgs-3120-24tc:admin# create authen_enable method_list_name enable_list_1 comm...

  • Page 76

    Xstack ® dgs-3120 series managed switch cli reference guide 72 example to configure a user-defined 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+ tac acs local_enable command: config authen_ enable me...

  • Page 78

    Xstack ® dgs-3120 series managed switch cli reference guide 74 enable - select the method list of authentication methods for promoting user's privilege to admin level. Default - default method list. Method_list_name - the user-defined method list name. - enter the method list name here. This value c...

  • Page 79

    Xstack ® dgs-3120 series managed switch cli reference guide 75 dgs-3120-24tc:admin# show authen application command: show authen application application login method list enable method list ----------- ----------------- ------------------ console default default telnet login_list_1 default ssh defau...

  • Page 81

    Xstack ® dgs-3120 series managed switch cli reference guide 77 parameters - the user-defined server group name. This value can be up to 15 characters long. Restrictions only administrator-level users can issue this command. Example to delete a user-defined authentication server group: dgs-3120-24tc:...

  • Page 82

    Xstack ® dgs-3120 series managed switch cli reference guide 78 dgs-3120-24tc:admin# show authen server_group command: show authen server_group group name ip address protocol --------------- --------------- -------- mix_1 10.1.1.222 tacacs+ 10.1.1.223 tacacs radius 10.1.1.224 radius tacacs 10.1.1.225...

  • Page 83

    Xstack ® dgs-3120 series managed switch cli reference guide 79 restrictions only administrator-level users can issue this command. Example to create a tacacs+ authentication server host, its listening port number is 15555 and timeout value is 10 seconds: dgs-3120-24tc:admin#create authen server_host...

  • Page 84

    Xstack ® dgs-3120 series managed switch cli reference guide 80 example to configure a tacacs+ authentication server host’s key value: dgs-3120-24tc:admin#config authen server_host 10.1.1.222 protocol tacacs+ key "this is a secret." command: config authen server_host 10.1.1.222 protocol tacacs+ key "...

  • Page 85

    Xstack ® dgs-3120 series managed switch cli reference guide 81 format show authen server_host parameters none. Restrictions only administrator-level users can issue this command. Example to display all authentication server hosts: dgs-3120-24tc:admin#show authen server_host command: show authen serv...

  • Page 86

    Xstack ® dgs-3120 series managed switch cli reference guide 82 dgs-3120-24tc:admin# config authen parameter response_timeout 60 command: config authen parameter response_timeout 60 success. Dgs-3120-24tc:admin# 5-25 config authen parameter attempt description this command is used to configure the ma...

  • Page 87

    Xstack ® dgs-3120 series managed switch cli reference guide 83 restrictions only administrator-level users can issue this command. Example to display the parameters of authentication: dgs-3120-24tc:admin# show authen parameter command: show authen parameter response timeout : 60 seconds user attempt...

  • Page 88

    Xstack ® dgs-3120 series managed switch cli reference guide 84 5-28 config admin local_enable description this command is used to config the local enable password of administrator level privilege. When the user chooses the “local_enable” method to promote the privilege level, the enable password of ...

  • Page 91

    Xstack ® dgs-3120 series managed switch cli reference guide 87 vlan - (optional) specify a vlan mask. Only the last 12 bits of the mask will be considered. -enter the vlan mask value here. Source_ip_mask - (optional) specify a source ip address mask. - enter the source ip address mask here. Destinat...

  • Page 92

    Xstack ® dgs-3120 series managed switch cli reference guide 88 des_port_mask - specify an ipv6 layer 4 tcp destination port mask. - enter the tcp destination port mask value here. Udp - (optional) specify that the rule applies to udp traffic. (ei mode only) src_port_mask - specify the udp source por...

  • Page 93

    Xstack ® dgs-3120 series managed switch cli reference guide 89 parameters profile_id - specify the index of the access list profile. - enter the profile id value here. This value must be between 1 and 6. Profile_name - specify the name of the profile. The maximum length is 32 characters. - enter the...

  • Page 95

    Xstack ® dgs-3120 series managed switch cli reference guide 91 - enter the destination ip address used for this configuration here. Mask - specify an additional mask parameter that can be configured. - enter the destination netmask used here. Dscp - (optional) specify the value of dscp. The dscp val...

  • Page 96

    Xstack ® dgs-3120 series managed switch cli reference guide 92 chunk 1 will be used. - enter the offset chunk 1 mask here. Offset_chunk_2 - (optional) specify the value of the packet bytes to be matched. Offset chunk 2 will be used. - enter the offset chunk 2 mask here. Offset_chunk_3 - (optional) s...

  • Page 97

    Xstack ® dgs-3120 series managed switch cli reference guide 93 vlan_id - specify the vlan id used for this configuration. - enter the vlan id used here. This value must be between 1 and 4094. Permit - specify that packets matching the access rule are permitted by the switch. Priority - (optional) sp...

  • Page 99

    Xstack ® dgs-3120 series managed switch cli reference guide 95 profile id: 2 profile name: ipv4acl type: ipv4 mask on vlan : 0xfff dscp icmp available hw entries : 255 ------------------------------------------------------------------------------ rule id : 1 ports: 1:2 match on vlan id : 1 dscp : 0 ...

  • Page 100

    Xstack ® dgs-3120 series managed switch cli reference guide 96 match on offset_chunk_1 : 0 value : 0x0000ffee mask : 0x0000ffee action: permit priority : 1 replace dscp : 1 ============================================================================== dgs-3120-24tc:admin# the following example displ...

  • Page 101

    Xstack ® dgs-3120 series managed switch cli reference guide 97 dgs-3120-24tc:admin#show access_profile profile_id 5 command: show access_profile profile_id 5 access profile table profile id: 5 profile name:5 type: user defined mask on offset_chunk_1 : 3 value : 0x0000ffff offset_chunk_2 : 5 value : ...

  • Page 102

    Xstack ® dgs-3120 series managed switch cli reference guide 98 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 is selected, the action to replace the dscp will not take effect. Format config flow_meter [pro...

  • Page 103

    Xstack ® dgs-3120 series managed switch cli reference guide 99 and 131072. Color_blind - (optional) specify the meter mode as color-blind. The default is color-blind mode. Color_aware - (optional) specify the meter mode as color-aware. The final color of the packet is determined by the initial color...

  • Page 104

    Xstack ® dgs-3120 series managed switch cli reference guide 100 disable - specify that the acl counter option will be disabled. Exceed - specify the action when a packet is mapped to the “yellow” color. Permit - permits the packet. Replace_dscp - (optional) changes the dscp of the packet. - enter th...

  • Page 105

    Xstack ® dgs-3120 series managed switch cli reference guide 101 parameters profile_id - (optional) specify the profile id. - enter the profile id used here. This value must be between 1 and 6. Profile_name - (optional) specify the name of the profile. The maximum length is 32 characters. - enter the...

  • Page 106

    Xstack ® dgs-3120 series managed switch cli reference guide 102 - enter the starting time here. (24-hr time). For example, 19:00 means 7pm. 19 is also acceptable. The time specified in the start_time parameter must be smaller than the time specified in the end_time parameter. End_time - specify the ...

  • Page 107

    Xstack ® dgs-3120 series managed switch cli reference guide 103 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 : 11:00:00 end time :...

  • Page 108

    Xstack ® dgs-3120 series managed switch cli reference guide 104 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 acces...

  • Page 110

    Xstack ® dgs-3120 series managed switch cli reference guide 106 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 specify destination ipv6 address and source ipv6 address at the s...

  • Page 111

    Xstack ® dgs-3120 series managed switch cli reference guide 107 - enter the tcp source port mask value here. Flag_mask - (optional) specify the tcp flag field mask. All - specify that the tcp flag field mask will be set to 'all'. Urg - specify that the tcp flag field mask will be set to 'urg'. Ack -...

  • Page 114

    Xstack ® dgs-3120 series managed switch cli reference guide 110 dscp - (optional) specify the value of dscp. The dscp value ranges from 0 to 63. - enter the dscp value used here. This value must be between 0 and 63. Icmp - (optional) specify that the following parameters configured will apply to the...

  • Page 115

    Xstack ® dgs-3120 series managed switch cli reference guide 111 destination_ipv6 - (optional) specify the value of ipv6 destination address. - enter the source ipv6 destination address here. Mask - specify the ipv6 destination address mask here. - enter the ipv6 destination address mask value here. ...

  • Page 116

    Xstack ® dgs-3120 series managed switch cli reference guide 112 enable - specify that the acl counter feature will be enabled. Disable - specify that the acl counter feature will be disabled. Deny - specify the packets that match the egress access rule are filtered by the switch. Time_range - (optio...

  • Page 117

    Xstack ® dgs-3120 series managed switch cli reference guide 113 parameters profile_id - (optional) specify the index of the egress access list profile. - enter the profile id here. This value must be between 1 and 4. Profile_name - (optional) specify the name of the profile. The maximum length is 32...

  • Page 118

    Xstack ® dgs-3120 series managed switch cli reference guide 114 -------------------------------------------------------------------------------- rule id : 1 (auto assign) ports: 1:3 match on dscp : 3 action: permit ================================================================================ ====...

  • Page 119

    Xstack ® dgs-3120 series managed switch cli reference guide 115 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 prof...

  • Page 120

    Xstack ® dgs-3120 series managed switch cli reference guide 116 dgs-3120-24tc:admin# show current_config egress_access_profile command: show current_config egress_access_profile #------------------------------------------------------------------------------ - # egress acl create egress_access_profil...

  • Page 121

    Xstack ® dgs-3120 series managed switch cli reference guide 117 parameters profile_id - specify the profile id. - enter the profile id used here. This value must be between 1 and 4. Profile_name - specify the name of the profile. The maximum length is 32 characters. - enter the profile name used her...

  • Page 122

    Xstack ® dgs-3120 series managed switch cli reference guide 118 replace_dscp - (optional) changes the dscp of the packet. - enter the dscp replace value here. This value must be between 0 and 63. Drop - drops the packet. Counter - (optional) specify the acl counter. This is optional. The default is ...

  • Page 123

    Xstack ® dgs-3120 series managed switch cli reference guide 119 example to configure a “two rates three color” flow meter: 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_...

  • Page 124

    Xstack ® dgs-3120 series managed switch cli reference guide 120 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...

  • Page 125

    Xstack ® dgs-3120 series managed switch cli reference guide 121 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 to a port group. Forma...

  • Page 126

    Xstack ® dgs-3120 series managed switch cli reference guide 122 parameters id - specify the port group id. - enter the port group id used here. This value must be between 1 and 64. Name - specify the port group name. - enter the port group name here. This name can be up to 16 characters long. Restri...

  • Page 127

    Xstack ® dgs-3120 series managed switch cli reference guide 123 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#.

  • Page 130

    Xstack ® dgs-3120 series managed switch cli reference guide 126 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 set the maximum amou...

  • Page 131

    Xstack ® dgs-3120 series managed switch cli reference guide 127 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# 8-6 show arpentry des...

  • Page 132

    Xstack ® dgs-3120 series managed switch cli reference guide 128 dgs-3120-24tc:admin# show arpentry command: show arpentry arp aging time : 20 interface ip address mac address type ------------- --------------- ----------------- --------------- system 10.0.0.0 ff-ff-ff-ff-ff-ff local/broadcast system...

  • Page 134

    Xstack ® dgs-3120 series managed switch cli reference guide 130 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.251 gateway_mac 00-00-00-11-11-11 ports 1:1-1...

  • Page 135: Chapter 10Asymmetric Vlan

    Xstack ® dgs-3120 series managed switch cli reference guide 131 chapter 10asymmetric vlan command list enable asymmetric_vlan disable asymmetric_vlan show asymmetric_vlan 10-1 enable asymmetric_vlan description this command is used to enable the asymmetric vlan function on the switch. Format enable ...

  • Page 136

    Xstack ® dgs-3120 series managed switch cli reference guide 132 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 asymmetric_vlan success. Dg...

  • Page 137: Command List

    Xstack ® dgs-3120 series managed switch cli reference guide 133 chapter 11auto-configuration command list enable autoconfig disable autoconfig show autoconfig 11-1 enable autoconfig description this command is used to enable auto configuration. When enabled, during power on initialization, the switc...

  • Page 138

    Xstack ® dgs-3120 series managed switch cli reference guide 134 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 autoconfig success. Dgs-...

  • Page 140

    Xstack ® dgs-3120 series managed switch cli reference guide 136 encrypt - (optional) specify the encryption applied to the account. Plain_text - select to specify the password in plain text form. Sha_1 - select to specify the password in the sha-i encrypted form. - the password for the user account....

  • Page 141

    Xstack ® dgs-3120 series managed switch cli reference guide 137 parameters - enter the user name of the account that has been defined. Encrypt - (optional) specify that the password will be encrypted. Plain_text - select to specify the password in plain text form. Sha_1 - select to specify the passw...

  • Page 142

    Xstack ® dgs-3120 series managed switch cli reference guide 138 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 access level --------------- -...

  • Page 143

    Xstack ® dgs-3120 series managed switch cli reference guide 139 12-5 show switch description this command is used to display the switch information. Format show switch parameters none. Restrictions none. Example the following is an example for display of the switch information. Dgs-3120-24tc:admin# ...

  • Page 144

    Xstack ® dgs-3120 series managed switch cli reference guide 140 12-6 enable telnet description this command is used to manage the switch via telnet based management software. Use the command to enable telnet and configure port number. Format enable telnet {} parameters - (optional) the tcp port numb...

  • Page 145

    Xstack ® dgs-3120 series managed switch cli reference guide 141 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 software. Use the comma...

  • Page 146

    Xstack ® dgs-3120 series managed switch cli reference guide 142 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 reboot description this...

  • Page 147

    Xstack ® dgs-3120 series managed switch cli reference guide 143 12-11 reset description this command is used to provide reset functions. The configuration setting will be reset to the default setting. For the “save system” command, the device will store the reset setting in the nvram and then reboot...

  • Page 148

    Xstack ® dgs-3120 series managed switch cli reference guide 144 format config firmware image {unit } boot_up parameters unit - (optional) specify which unit on the stacking system. If it is not specified, it refers to the master unit. - specify the single stack unit to apply command. - specify a fir...

  • Page 149

    Xstack ® dgs-3120 series managed switch cli reference guide 145 enable - specify that the proxy arp option will be enabled. Disable - specify that the proxy arp option will be disabled. Local - (optional) this setting controls whether the system provides the proxy reply for the arp packets destined ...

  • Page 150

    Xstack ® dgs-3120 series managed switch cli reference guide 146 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. Disable - specify tha...

  • Page 151

    Xstack ® dgs-3120 series managed switch cli reference guide 147 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) description this command...

  • Page 152

    Xstack ® dgs-3120 series managed switch cli reference guide 148 parameters ipif_name - specify the name of the ip interface. - enter the ip interface name used here. This name can be up to 12 characters long. All – specify that all the ip interfaces will be enabled. Restrictions only administrator, ...

  • Page 153

    Xstack ® dgs-3120 series managed switch cli reference guide 149 12-18 show ipif description this command is used to display an ip interface. Format show ipif {} parameters ipif_name - specify the name of the ip interface. - (optional) enter the ip interface name used here. This name can be up to 12 ...

  • Page 155

    Xstack ® dgs-3120 series managed switch cli reference guide 151 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 commands is used to displa...

  • Page 157

    Xstack ® dgs-3120 series managed switch cli reference guide 153 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:admin# 13-2 config bpd...

  • Page 159

    Xstack ® dgs-3120 series managed switch cli reference guide 155 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 for the switch. Format...

  • Page 160

    Xstack ® dgs-3120 series managed switch cli reference guide 156 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 protecti...

  • Page 162

    Xstack ® dgs-3120 series managed switch cli reference guide 158 • when the link partner is powered down with errors, this command can detect whether the error is open, short, or crosstalk. In this case this command can also detect the distance of the error • when there is no link partner with no err...

  • Page 163

    Xstack ® dgs-3120 series managed switch cli reference guide 159 example test the cable on port 1, 11, and 12: 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 type link status test result cable length (m) ------ ---------- ...

  • Page 164: Chapter 15Command Logging

    Xstack ® dgs-3120 series managed switch cli reference guide 160 chapter 15command logging command list enable command logging disable command logging show command logging 15-1 enable command logging description this command is used to enable the command logging function. Note: when the switch is und...

  • Page 165

    Xstack ® dgs-3120 series managed switch cli reference guide 161 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: disable command logging success. Dgs-3120-24tc:admin# 15-...

  • Page 167

    Xstack ® dgs-3120 series managed switch cli reference guide 163 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) description this command is...

  • Page 168

    Xstack ® dgs-3120 series managed switch cli reference guide 164 parameters vlan - assigned a vlan as guest vlan. The vlan must be an existed static vlan. - enter the vlan name here. This name can be up to 32 characters long. Vlanid - assigned a vlan as guest vlan. The vlan must be an existed static ...

  • Page 169

    Xstack ® dgs-3120 series managed switch cli reference guide 165 specified, or all vlans is disabled, means do not care which vlan the client comes from, the client will be authenticated if the client's mac(not care the vlan) is not authenticated. After the client is authenticated, the client will no...

  • Page 170

    Xstack ® dgs-3120 series managed switch cli reference guide 166 example this example displays the guest vlan setting: dgs-3120-24tc:admin# show authentication guest_vlan command: show authentication guest_vlan guest vlan vid : 1:1 guest vlan member ports : 1:4 guest vlan vid : 1:3 guest vlan member ...

  • Page 171

    Xstack ® dgs-3120 series managed switch cli reference guide 167 dgs-3120-24tc:admin# show authentication ports command: show authentication ports port methods auth mode authentication vlan(s) ---- ------------ ----------- --------------------- 1 none host-based 1,3,5,9,11,88,16 18,56 2 any port-base...

  • Page 172

    Xstack ® dgs-3120 series managed switch cli reference guide 168 format disable authorization attributes parameters none. Restrictions only administrator, operator and power-user level users can issue this command. Example this example sets authorization global state disabled: dgs-3120-24tc:admin# di...

  • Page 173

    Xstack ® dgs-3120 series managed switch cli reference guide 169 dgs-3120-24tc:admin# show authorization command: show authorization authorization for attributes: enabled. Dgs-3120-24tc:admin# 16-10 config authentication server failover description this command is used to configure authentication ser...

  • Page 174

    Xstack ® dgs-3120 series managed switch cli reference guide 170 restrictions none. Example to show authentication global configuration: dgs-3120-24tc:admin# show authentication command: show authentication authentication server failover: block. Dgs-3120-24tc:admin# show authentication command: show ...

  • Page 176

    Xstack ® dgs-3120 series managed switch cli reference guide 172 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 only for the current configuration. Modified - show only the commands which are not...

  • Page 177

    Xstack ® dgs-3120 series managed switch cli reference guide 173 example the following example illustrates how the special filters ‘modified’ and .’effective’ affect the configuration display: dgs-3120-24tc:admin# show config modified command:show config modified enable loopdetect enable ssl config i...

  • Page 178

    Xstack ® dgs-3120 series managed switch cli reference guide 174 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 description this comma...

  • Page 179

    Xstack ® dgs-3120 series managed switch cli reference guide 175 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 : /c:/config.Cfg dgs-3120-24tc...

  • Page 181

    Xstack ® dgs-3120 series managed switch cli reference guide 177.

  • Page 184

    Xstack ® dgs-3120 series managed switch cli reference guide 180 parameters - enter the maintenance domain name. This name can be up to 22 characters long. Md_index - specify the maintenance domain index. - enter the maintenance domain index value here. This value must be between 1 and 4294967295. Mi...

  • Page 185

    Xstack ® dgs-3120 series managed switch cli reference guide 181 - enter the maintenance association index value here. This value must be between 1 and 4294967295. Md - specify the maintenance domain name. - enter the maintenance domain name here. This name can be up to 22 characters long. Md_index -...

  • Page 186

    Xstack ® dgs-3120 series managed switch cli reference guide 182 be between 1 and 4294967295. Vlanid - (optional) specify the vlan identifier. Different mas must be associated with different vlans. - enter the vlan id used here. This value must be between 1 and 4094. Mip - (optional) this is the cont...

  • Page 188

    Xstack ® dgs-3120 series managed switch cli reference guide 184 • 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 of the fault occur on an mep, only the fault with th...

  • Page 189

    Xstack ® dgs-3120 series managed switch cli reference guide 185 - enter the alarm time value here. This value must be between 250 and 1000 centiseconds. Alarm_reset_time - (optional) this is the dormant duration time before a defect is triggered before the fault can be re-alarmed. The unit is centis...

  • Page 190

    Xstack ® dgs-3120 series managed switch cli reference guide 186 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. Dgs-3120-24tc:admin...

  • Page 191

    Xstack ® dgs-3120 series managed switch cli reference guide 187 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 maintenance domain. All the mep...

  • Page 192

    Xstack ® dgs-3120 series managed switch cli reference guide 188 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-24tc:admin# 19-11 di...

  • Page 193

    Xstack ® dgs-3120 series managed switch cli reference guide 189 19-12 config cfm ports description this command is used to enable or disable the cfm function on a per-port basis. By default, the cfm function is disabled on all ports. If the cfm is disabled on a port: 1. Mips are never created on tha...

  • Page 194

    Xstack ® dgs-3120 series managed switch cli reference guide 190 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 state ----- -------- 1:3 enabled 1:4 enabled 1:5 enabled 1:6 disabled dgs-3120-24tc:admin# 19-14 show cfm ...

  • Page 195

    Xstack ® dgs-3120 series managed switch cli reference guide 191 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 md name level ---------- ---------------------- -----...

  • Page 196

    Xstack ® dgs-3120 series managed switch cli reference guide 192 port : 1:2 direction : inward cfm port status : enabled mac address : 00-01-02-03-04-02 mep state : enabled ccm state : enabled pdu priority : 7 fault alarm : disabled alarm time : 250 centisecond((1/100)s) alarm reset time : 1000 centi...

  • Page 198

    Xstack ® dgs-3120 series managed switch cli reference guide 194 outward - specify that the mep direction will be outward facing. If not specified, both directions and the mip are shown. Vlanid - (optional) specify the vlan identifier. If not specified, all vlans are shown. - enter the vlan id used h...

  • Page 199

    Xstack ® dgs-3120 series managed switch cli reference guide 195 - enter the maintenance association name her. This name can be up to 22 characters long. Ma_index - specify the maintenance association index. - enter the maintenance association index value here. This value must be between 1 and 429496...

  • Page 200

    Xstack ® dgs-3120 series managed switch cli reference guide 196 - enter the mep name used here. This name can be up to 32 characters long. Mepid - specify the mep id used. - enter the mep id used here. This value must be between 1 and 8191. Md - specify the maintenance domain name. - enter the maint...

  • Page 201

    Xstack ® dgs-3120 series managed switch cli reference guide 197 - enter the mep id used here. This value must be between 1 and 8191. Md - specify the maintenance domain name. - enter the maintenance domain name her. This name can be up to 22 characters long. Md_index - specify the maintenance domain...

  • Page 202

    Xstack ® dgs-3120 series managed switch cli reference guide 198 dgs-3120-24tc:admin# show cfm linktrace mep mep1 trans_id 26 command: show cfm linktrace mep mep1 trans_id 26 transaction id: 26 from mep mep1 to 00-11-22-33-44-55 start time 2008-01-01 12:00:00 hop mepid ingress mac address egress mac ...

  • Page 203

    Xstack ® dgs-3120 series managed switch cli reference guide 199 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 command is used to show t...

  • Page 206

    Xstack ® dgs-3120 series managed switch cli reference guide 202 dgs-3120-24tc:admin# show cfm remote_mep mepname mep1 remote_mepid 2 command: show cfm remote_mep mepname mep1 remote_mepid 2 remote mepid : 2 mac address : 00-11-22-33-44-02 status : ok rdi : yes port state : blocked interface status :...

  • Page 207

    Xstack ® dgs-3120 series managed switch cli reference guide 203 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 0 0 0 0 6 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 9 0 0 0 0 0 0 0 0 10 0 0 0 0 0 0 0 0 11 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 0 0 cfm tx statistics -------------...

  • Page 209

    Xstack ® dgs-3120 series managed switch cli reference guide 205 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#config cfm trap ais ...

  • Page 211

    Xstack ® dgs-3120 series managed switch cli reference guide 207 - enter the mep id value here. This value must be between 1 and 8191. Period - (optional) the transmitting interval of ais pdu. The default period is 1 second. 1sec - specify that the transmitting interval will be set to 1 second. 1min ...

  • Page 212

    Xstack ® dgs-3120 series managed switch cli reference guide 208 characters long. Ma_index - specify the maintenance association index. - enter the maintenance association index value here. This value must between 1 and 4294967295. Mepid - the mep id in the md which sends lck frame. - enter the mep i...

  • Page 213

    Xstack ® dgs-3120 series managed switch cli reference guide 209 - enter the maintenance association index value here. This value must between 1 and 4294967295. Mepid - the mep id in the md which sends lck frame. - enter the mep id value here. This value must be between 1 and 8191. Remote_mepid - the...

  • Page 216

    Xstack ® dgs-3120 series managed switch cli reference guide 212 and 15. - enter the mask pattern offset of the frame between 0 and 15 here. Offset_16-31 - (optional) specify that the mask pattern offset of the frame will be between 16 and 31. - enter the mask pattern offset of the frame between 16 a...

  • Page 217

    Xstack ® dgs-3120 series managed switch cli reference guide 213 dgs-3120-24tc:admin#create cpu access_profile profile_id 1 ethernet vlan source_mac 00-00-00-00-00-01 destination_mac 00-00-00-00-00-02 802.1p ethernet_type command: create cpu access_profile profile_id 1 ethernet vlan source_mac 00-00-...

  • Page 219

    Xstack ® dgs-3120 series managed switch cli reference guide 215 destination_ip - (optional) specify an ip destination address. - enter the destination ip address used for this configuration here. Mask - (optional) specify the mask. - specify the mask. Dscp - (optional) specify the value of dscp, the...

  • Page 220

    Xstack ® dgs-3120 series managed switch cli reference guide 216 - enter the mask pattern offset of the frame between 16 and 31 here. Offset_32-47 - (optional) specify that the mask pattern offset of the frame will be between 32 and 47. - enter the mask pattern offset of the frame between 32 and 47 h...

  • Page 221

    Xstack ® dgs-3120 series managed switch cli reference guide 217 delete - specify to delete a rule from the profile id entered. Access_id - specify the index of access list entry. The range of this value is 1-100. - enter the access id here. This value must be between 1 and 100. Restrictions only adm...

  • Page 222

    Xstack ® dgs-3120 series managed switch cli reference guide 218 21-5 disable cpu interface filtering description this command is used to disable cpu interface filtering control. Format disable cpu_interface_filtering parameters none. Restrictions only administrator and operator-level users can issue...

  • Page 223

    Xstack ® dgs-3120 series managed switch cli reference guide 219 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 rule entries : 3 =======================...

  • Page 224

    Xstack ® dgs-3120 series managed switch cli reference guide 220 source mac : ff-ff-ff-ff-ff-ff unused rule entries: 99 -------------------------------------------------------------------------------- rule id : 1 ports: 1:1-1:24,2:1-2:24,3:1-3:24 match on source mac : 00-00-22-b0-61-51 action: deny =...

  • Page 226

    Xstack ® dgs-3120 series managed switch cli reference guide 222 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 =============...

  • Page 228

    Xstack ® dgs-3120 series managed switch cli reference guide 224 22-3 debug output description this command is used to set a specified module’s debug message output to debug buffer or local console. If the user uses the command in a telnet session, the error message also is output to the local consol...

  • Page 229

    Xstack ® dgs-3120 series managed switch cli reference guide 225 restrictions only administrator-level users can issue this command. Example to set the switch to not need a reboot when a fatal error occurs: dgs-3120-24tc:admin# debug config error_reboot disable command: debug config error_reboot disa...

  • Page 230

    Xstack ® dgs-3120 series managed switch cli reference guide 226 format debug show jwac auth_info parameters none. Restrictions only administrator, operator and power-user level users can issue this command. Example to display debug information of jwac: dgs-3120-24tc:admin#debug show jwac auth_info c...

  • Page 231

    Xstack ® dgs-3120 series managed switch cli reference guide 227 parameters none. Restrictions only administrator-level users can issue this command. Example to enabled the dhcpv6 client debug function: dgs-3120-24tc:admin#debug dhcpv6_client state enable command: debug dhcpv6_client state enable suc...

  • Page 233

    Xstack ® dgs-3120 series managed switch cli reference guide 229 example to enable dhcpv6client packet sending debug flags: dgs-3120-24tc:admin#debug dhcpv6_client packet sending state enable command: debug dhcpv6_client packet sending state enable success. Dgs-3120-24tc:admin# 22-11 debug dhcpv6_rel...

  • Page 234

    Xstack ® dgs-3120 series managed switch cli reference guide 230 parameters none. Restrictions only administrator-level users can issue this command. Example to disable dhcpv6 relay debug functions: dgs-3120-24tc:admin#debug dhcpv6_relay state disable command: debug dhcpv6_relay state disable success...

  • Page 236

    Xstack ® dgs-3120 series managed switch cli reference guide 232 example to enable debug information flag about the hop count: dgs-3120-24tc:admin#debug dhcpv6_relay hop_count state enable command: debug dhcpv6_relay hop_count state enable success. Dgs-3120-24tc:admin#.

  • Page 239

    Xstack ® dgs-3120 series managed switch cli reference guide 235 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 used to globally disa...

  • Page 240

    Xstack ® dgs-3120 series managed switch cli reference guide 236 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 : disabled dhcp/bootp local relay vid list : 1,3-4 dgs-3120-24tc:admi...

  • Page 242

    Xstack ® dgs-3120 series managed switch cli reference guide 238 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 description this comman...

  • Page 243

    Xstack ® dgs-3120 series managed switch cli reference guide 239 format config dhcp_relay add vlanid parameters vlanid - specify the vlan id list used for this configuration. - enter the vlan id list used for this configuration here. - enter the dhcp/bootp server ip address used here. Restrictions on...

  • Page 244

    Xstack ® dgs-3120 series managed switch cli reference guide 240 24-4 config dhcp_relay delete description this command is used to delete one of the ip destination addresses in the swith’s relay table. Format config dhcp_relay delete ipif parameters ipif - the name of the ip interface which contains ...

  • Page 245

    Xstack ® dgs-3120 series managed switch cli reference guide 241 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 dhcp_relay delete vlanid 2...

  • Page 246

    Xstack ® dgs-3120 series managed switch cli reference guide 242 - enter the user defined description here. This value can be up to 32 characters long. Restrictions only administrator, operator and power-user level users can issue this command. Example to configure dhcp_relay option 82: dgs-3120-24tc...

  • Page 247

    Xstack ® dgs-3120 series managed switch cli reference guide 243 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 relay function on th...

  • Page 248

    Xstack ® dgs-3120 series managed switch cli reference guide 244 parameters ipif - (optional) specify the ip interface name. - enter the ip interface name used here. This name can be up to 12 characters long. If no parameter is specified , the system will display all dhcp relay configuration. Restric...

  • Page 249

    Xstack ® dgs-3120 series managed switch cli reference guide 245 dgs-3120-24tc:admin# show dhcp_relay ipif system command: show dhcp_relay ipif system dhcp/bootp relay status : disabled dhcp/bootp hops count limit : 4 dhcp/bootp relay time threshold : 0 dhcp vendor class identifier option 60 state: d...

  • Page 250

    Xstack ® dgs-3120 series managed switch cli reference guide 246 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 dhcp_relay option_60 add d...

  • Page 251

    Xstack ® dgs-3120 series managed switch cli reference guide 247 24-12 config dhcp_relay option_60 default description this command is used to configure the dhcp relay option 60 default drop option. When there are no match servers found for the packet based on option 60, the relay servers will be det...

  • Page 253

    Xstack ® dgs-3120 series managed switch cli reference guide 249 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: string match type ip address ...

  • Page 254

    Xstack ® dgs-3120 series managed switch cli reference guide 250 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 dhcp_relay option_61 add d...

  • Page 256

    Xstack ® dgs-3120 series managed switch cli reference guide 252 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-22- 33-44-55 command:...

  • Page 257

    Xstack ® dgs-3120 series managed switch cli reference guide 253 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 relay rule ---------------------- ----------- ---------------- abc string drop abcde strin...

  • Page 259

    Xstack ® dgs-3120 series managed switch cli reference guide 255 - enter the list of ports to be configured here. All - specify that all the port will be used for this configuration. Delete permit - specify to delete a dhcp permit. Server_ip - the ip address of the dhcp server to be filtered. - enter...

  • Page 260

    Xstack ® dgs-3120 series managed switch cli reference guide 256 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:10 trap state: disabled l...

  • Page 261

    Xstack ® dgs-3120 series managed switch cli reference guide 257 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 or disable the log fun...

  • Page 263

    Xstack ® dgs-3120 series managed switch cli reference guide 259 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 command: disable dhcpv...

  • Page 264

    Xstack ® dgs-3120 series managed switch cli reference guide 260 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 dhcpv6_relay hop_count...

  • Page 265

    Xstack ® dgs-3120 series managed switch cli reference guide 261 state - enable or disable the dhcpv6 relay state of the interface. Enable - enable the dhcpv6 relay state of the interface. Disable - disable the dhcpv6 relay state of the interface. Restrictions only administrator, operator and power-u...

  • Page 266

    Xstack ® dgs-3120 series managed switch cli reference guide 262 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 ...

  • Page 268

    Xstack ® dgs-3120 series managed switch cli reference guide 264 dgs-3120-24tc:admin#config duld ports 1 state enable command: config duld ports 1:1 state enable success. Dgs-3120-24tc:admin# 27-2 show duld ports description this command is used to show unidirectional link detection information. Form...

  • Page 270

    Xstack ® dgs-3120 series managed switch cli reference guide 266 dgs-3120-24tc:admin# enable erps command: enable erps success. Dgs-3120-24tc:admin# 28-2 disable erps description this command is used to disable the global erps function on a switch. Format disable erps parameters none. Restrictions on...

  • Page 271

    Xstack ® dgs-3120 series managed switch cli reference guide 267 - 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 command: create erps raps_vlan ...

  • Page 272

    Xstack ® dgs-3120 series managed switch cli reference guide 268 28-5 config erps raps_vlan description this command is used to configure the erps r-aps vlan settings. The ring mel is one field in the r-aps pdu. Note that if cfm (connectivity fault management) and erps are used at the same time, the ...

  • Page 273

    Xstack ® dgs-3120 series managed switch cli reference guide 269 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 ring will be activat...

  • Page 274

    Xstack ® dgs-3120 series managed switch cli reference guide 270 sub_ring - specify that the sub-ring is being configured. Raps_vlan - specify the r-aps vlan. - enter the vlan id used here. Tc_propagation - specify that the topology propagation state will be configured. State - specify the topology p...

  • Page 275

    Xstack ® dgs-3120 series managed switch cli reference guide 271 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. Dgs-3120-24tc:admin...

  • Page 276

    Xstack ® dgs-3120 series managed switch cli reference guide 272 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 tc_propagation state ...

  • Page 277

    Xstack ® dgs-3120 series managed switch cli reference guide 273 parameters trap - specify to enable or disable the erps trap state. Enable - enter enable to enable the trap state. Disable - enter disable to disable the trap state. The default value is disabled. Restrictions only administrator, opera...

  • Page 278

    Xstack ® dgs-3120 series managed switch cli reference guide 274 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 status : enable...

  • Page 280

    Xstack ® dgs-3120 series managed switch cli reference guide 276 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:admin# 29-3 config f...

  • Page 281

    Xstack ® dgs-3120 series managed switch cli reference guide 277 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# 29-4 show filter extensive_netbios description this command is used to displ...

  • Page 283

    Xstack ® dgs-3120 series managed switch cli reference guide 279 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 00-00-00-00-01-02 dr...

  • Page 284

    Xstack ® dgs-3120 series managed switch cli reference guide 280 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# 30-3 create multicast_fdb description this command is used to create a static entry in the ...

  • Page 285

    Xstack ® dgs-3120 series managed switch cli reference guide 281 name length is 32. - the mac address that will be added or deleted to the forwarding table. Add - specify to add ports to the multicast forwarding table. Delete - specify to remove ports from the multicast forwarding table. - specify a ...

  • Page 286

    Xstack ® dgs-3120 series managed switch cli reference guide 282 dgs-3120-24tc:admin# config fdb aging_time 600 command: config fdb aging_time 600 success. Dgs-3120-24tc:admin# 30-6 config multicast vlan_filtering_mode description this command is used to configure the multicast packet filtering mode ...

  • Page 287

    Xstack ® dgs-3120 series managed switch cli reference guide 283 30-7 delete fdb description this command is used to delete a static entry from the forwarding database. Format delete fdb parameters - the name of the vlan on which the mac address resides. The maximum name length is 32. - the multicast...

  • Page 288

    Xstack ® dgs-3120 series managed switch cli reference guide 284 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:admin# 30-9 show mul...

  • Page 289

    Xstack ® dgs-3120 series managed switch cli reference guide 285 dgs-3120-24tc:admin#show multicast_fdb command: show multicast_fdb vlan name : default mac address : 01-00-5e-00-00-00 egress ports : 1:1-1:5 mode : static total entries: 1 dgs-3120-24tc:admin# 30-10 show fdb description this command is...

  • Page 290

    Xstack ® dgs-3120 series managed switch cli reference guide 286 dgs-3120-24tc:admin#show fdb command: show fdb unicast mac address aging time = 300 vid vlan name mac address port type status ---- -------------------------------- ----------------- ----- ------- ------- 1 default 00-01-02-03-04-00 cpu...

  • Page 291

    Xstack ® dgs-3120 series managed switch cli reference guide 287 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 multicast vlan_filtering_m...

  • Page 293

    Xstack ® dgs-3120 series managed switch cli reference guide 289 gs-3120-24tc:admin#show storage_media_info command: show storage_media_info unit drive media type size label fs type version ---- ----- ---------- -------- ----------- ------- ------- 1 c: flash 28 mb ffs ver2.1 dgs-3120-24tc:admin# 31-...

  • Page 294

    Xstack ® dgs-3120 series managed switch cli reference guide 290 parameters unit – (optional) specify a unit id if in the stacking system. If not specified, it refers to the master unit. - enter the unit id here. - (optional) enter the drive id used here. Examples are c: or d: - specify the directory...

  • Page 295

    Xstack ® dgs-3120 series managed switch cli reference guide 291 dgs-3120-24tc:admin# rd c:/abc command: rd c:/abc success. Dgs-3120-24tc:admin# 31-5 cd description this command is used to change the current directory. The current directory is changed under the current drive. If you want to change th...

  • Page 296

    Xstack ® dgs-3120 series managed switch cli reference guide 292 parameters unit - (optional) specify a unit id if in the stacking system. If not specified, it refers to the master unit. - enter the unit id here. - (optional) enter the drive id used here. Examples are c: or d: - (optional) specify th...

  • Page 297

    Xstack ® dgs-3120 series managed switch cli reference guide 293 - enter the unit id here. - (optional) enter the drive id used here. Examples are c: or d: - specified the file (in path form) to be renamed. - specified the new name of the file. Restrictions only administrator and operator-level users...

  • Page 298

    Xstack ® dgs-3120 series managed switch cli reference guide 294 dgs-3120-24tc:admin#dir command: dir directory of /unit2:/c: idx info attr size update time name --- ------- ---- -------- ------------------- ---------------- 1 drw- 0 2000/04/02 06:02:04 12 2 cfg(*) -rw- 29661 2000/04/01 05:54:38 conf...

  • Page 299

    Xstack ® dgs-3120 series managed switch cli reference guide 295 - (optional) enter the drive id used here. Examples are c: or d: - specify the file to be deleted. If it is specified in the associated form, then it is related to the current directory. Restrictions only administrator and operator-leve...

  • Page 300

    Xstack ® dgs-3120 series managed switch cli reference guide 296 31-10 move description this command is used to move a file around the file system. Files in a drive located in a unit can be moved to another drive located in another unit. Note that when a file is moved, it can be specified whether to ...

  • Page 301

    Xstack ® dgs-3120 series managed switch cli reference guide 297 format copy {{unit } } {{unit } } parameters unit - (optional) unit id in the stacking system. If not specified, it refers to the master unit. - enter the unit id here. - (optional) enter the drive id. Examples are c: or d: - specify th...

  • Page 302

    Xstack ® dgs-3120 series managed switch cli reference guide 298 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-31...

  • Page 304

    Xstack ® dgs-3120 series managed switch cli reference guide 300 that the system received a arp request packet that is sent by an ip address that match the system’s own ip address. In this case, the system knows that some body out there uses an ip address that is conflict with the system. In order to...

  • Page 305

    Xstack ® dgs-3120 series managed switch cli reference guide 301 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 gratuitous_arp learn...

  • Page 306

    Xstack ® dgs-3120 series managed switch cli reference guide 302 32-5 enable gratuitous_arp description the command is used to enable gratuitous arp trap and log state. The switch can trap and log the ip conflict event to inform the administrator. By default, trap is disabled and event log is enabled...

  • Page 307

    Xstack ® dgs-3120 series managed switch cli reference guide 303 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 trap log command: di...

  • Page 308

    Xstack ® dgs-3120 series managed switch cli reference guide 304 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 : system gratuitous arp trap : enabled gra...

  • Page 309: Command List

    Xstack ® dgs-3120 series managed switch cli reference guide 305 chapter 33igmp / mld snooping command list the internet group management protocol (igmp) is a l3 protocol used to manage the membership of internet protocol multicast groups. Igmp is used by ip hosts and adjacent multicast routers to es...

  • Page 311

    Xstack ® dgs-3120 series managed switch cli reference guide 307 parameters vlan_name - specify the name of the vlan for which igmp snooping is to be configured. - enter the vlan name here. The vlan name can be up to 32 characters long. Vlanid - specify the vlan id for which igmp snooping is to be co...

  • Page 312

    Xstack ® dgs-3120 series managed switch cli reference guide 308 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. The rate is specified in packets per second. The pac...

  • Page 313

    Xstack ® dgs-3120 series managed switch cli reference guide 309 and 25 seconds. Robustness_variable - (optional) provides fine-tuning to allow for expected packet loss on a subnet. The value of the robustness variable is used in calculating the following igmp message intervals: - enter the robustnes...

  • Page 314

    Xstack ® dgs-3120 series managed switch cli reference guide 310 33-4 config igmp access_authentication ports description this command is used to enable or disable the igmp access control function for the specified ports. If the igmp access control function is enabled and the switch receives an igmp ...

  • Page 315

    Xstack ® dgs-3120 series managed switch cli reference guide 311 delete - specify to delete the router ports. - specify a range of ports to be configured. (unitid:port number) restrictions only administrator, operator and power-user level users can issue this command. Example to set up static router ...

  • Page 316

    Xstack ® dgs-3120 series managed switch cli reference guide 312 33-7 enable igmp_snooping description this command is used to enable igmp snooping on the switch. Format enable igmp_snooping parameters none. Restrictions only administrator, operator and power-user level users can issue this command. ...

  • Page 317

    Xstack ® dgs-3120 series managed switch cli reference guide 313 example to disable igmp snooping on the switch: dgs-3120-24tc:admin# disable igmp_snooping command: disable igmp_snooping success. Dgs-3120-24tc:admin# 33-9 create igmp_snooping static_group description this command is used to create an...

  • Page 318

    Xstack ® dgs-3120 series managed switch cli reference guide 314 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# 33-10 delete igmp_snooping static_group description this comma...

  • Page 320

    Xstack ® dgs-3120 series managed switch cli reference guide 316 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 / d...

  • Page 321

    Xstack ® dgs-3120 series managed switch cli reference guide 317 vlanid - specify the vlan id to be configured. - enter the vlan id here. State - (optional) specify to enable or disable the data driven learning of an igmp snooping group. Enable - enter enable to enable the data driven learning option...

  • Page 322

    Xstack ® dgs-3120 series managed switch cli reference guide 318 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 data_driven_learning ...

  • Page 324

    Xstack ® dgs-3120 series managed switch cli reference guide 320 dgs-3120-24tc:admin#show igmp_snooping command: show igmp_snooping igmp snooping global state : enabled data driven learning max entries : 128 vlan name : default query interval : 125 max response time : 10 robustness value : 2 last mem...

  • Page 325

    Xstack ® dgs-3120 series managed switch cli reference guide 321 example to display the igmp snooping rate limit for ports 1 to 15: dgs-3120-24tc:admin# show igmp_snooping rate_limit ports 1-15 command: show igmp_snooping rate_limit ports 1-15 port rate limit -------- ----------- 1 no limit 2 100 3 n...

  • Page 326

    Xstack ® dgs-3120 series managed switch cli reference guide 322 dgs-3120-24tc:admin# show igmp_snooping group command: show igmp_snooping group source/group : 10.0.0.1/225.0.0.1 vlan name/vid : default/1 member ports : 1:5 up time : 6 expiry time : 254 filter mode : include source/group : 10.0.0.10/...

  • Page 327

    Xstack ® dgs-3120 series managed switch cli reference guide 323 member ports : 1:5 up time : 10 expiry time : 258 filter mode : exclude source/group : null/226.0.0.2 vlan name/vid : default/1 member ports : 1:5 up time : 9 expiry time : 259 filter mode : exclude source/group : null/226.0.0.3 vlan na...

  • Page 328

    Xstack ® dgs-3120 series managed switch cli reference guide 324 - enter the vlan id list here. If no parameter is specified, the system will display all current igmp snooping forwarding table entries of the switch. Restrictions none. Example to show all igmp snooping forwarding entries located on th...

  • Page 329

    Xstack ® dgs-3120 series managed switch cli reference guide 325 all - specify all vlans on which the router port resides. Static - (optional) displays router ports that have been statically configured. Dynamic - (optional) displays router ports that have been dynamically configured. Forbidden - (opt...

  • Page 330

    Xstack ® dgs-3120 series managed switch cli reference guide 326 - 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: show igmp_snooping statistics counte...

  • Page 331

    Xstack ® dgs-3120 series managed switch cli reference guide 327 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 ----------------------------------------------...

  • Page 333

    Xstack ® dgs-3120 series managed switch cli reference guide 329 1:16 disabled 1:17 disabled 1:18 disabled 1:19 disabled 1:20 disabled ctrl+c esc q quit space n next page enter next entry a all 33-23 clear igmp_snooping statistics counter description this command is used to clear the igmp snooping st...

  • Page 334

    Xstack ® dgs-3120 series managed switch cli reference guide 330 - enter the vlan name here. The vlan name can be up to 32 characters long. Vlanid - specify the id of the vlan for which mld snooping is to be configured. - enter the vlan id list here. All - specify all vlans for which mld snooping is ...

  • Page 335

    Xstack ® dgs-3120 series managed switch cli reference guide 331 - enter the vlan id list here. All - specify all vlans for which mld snooping querier is to be configured. Query_interval - specify the amount of time in seconds between general query transmissions. The default setting is 125 seconds. -...

  • Page 336

    Xstack ® dgs-3120 series managed switch cli reference guide 332 33-26 config mld_snooping router_ports description this command is used to designate a range of ports as being connected to multicast-enabled routers. This will ensure that all packets with such a router as its destination will reach th...

  • Page 337

    Xstack ® dgs-3120 series managed switch cli reference guide 333 parameters vlan - specify the name of the vlan on which the router port resides. - enter the vlan name here. The vlan name can be up to 32 characters long. Vlanid - specify the id of the vlan on which the router port resides. - enter th...

  • Page 338

    Xstack ® dgs-3120 series managed switch cli reference guide 334 example to enable mld snooping on the switch: dgs-3120-24tc:admin# enable mld_snooping command: enable mld_snooping success. Dgs-3120-24tc:admin# 33-29 disable mld_snooping description this command is used to disable mld snooping on the...

  • Page 339

    Xstack ® dgs-3120 series managed switch cli reference guide 335 parameters vlan - (optional) specify the name of the vlan for which you want to view the igmp snooping configuration. - enter the vlan name here. The vlan name can be up to 32 characters long. Vlanid - (optional) specify the id of the v...

  • Page 341

    Xstack ® dgs-3120 series managed switch cli reference guide 337 dgs-3120-24tc:admin# show mld_snooping group command: show mld_snooping group source/group : 2001::1/fe1e::1 vlan name/vid : default/1 member ports : 1-2 up time : 26 expiry time : 258 filter mode : include source/group : 2002::2/fe1e::...

  • Page 342

    Xstack ® dgs-3120 series managed switch cli reference guide 338 33-32 show mld_snooping forwarding description this command is used to display the switch’s current mld snooping forwarding table. It provides an easy way for users to check the list of ports that the multicast group that comes from spe...

  • Page 344

    Xstack ® dgs-3120 series managed switch cli reference guide 340 the static group will only take effect when mld snooping is enabled on the vlan. For those static member ports, the device needs to emulate the mld protocol operation to the querier, and forward the traffic destined to the multicast gro...

  • Page 345

    Xstack ® dgs-3120 series managed switch cli reference guide 341 long. Vlanid - specify the id of the vlan on which the static group resides. - enter the vlan id list here. - specify the multicast group ip address. Restrictions only administrator, operator and power-user level users can issue this co...

  • Page 346

    Xstack ® dgs-3120 series managed switch cli reference guide 342 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 mld_snooping static_gro...

  • Page 347

    Xstack ® dgs-3120 series managed switch cli reference guide 343 when data-driven learning is enabled for the vlan, when the switch receives the ip multicast traffic, on this vlan, an mld snooping group will be created. That is, the learning of an entry is not activated by mld membership registration...

  • Page 348

    Xstack ® dgs-3120 series managed switch cli reference guide 344 33-39 config mld_snooping data_driven_learning max_learned_entry description this command is used to configure the maximum number of groups that can be learned by data driven. When the table is full, the system will stop the learning of...

  • Page 349

    Xstack ® dgs-3120 series managed switch cli reference guide 345 parameters all - specify all vlans to which igmp snooping groups will be deleted. Vlan_name - specify the vlan name. - enter the vlan name here. Vlanid - specify the vlan id. - enter the vlan id list here. - specify the group’s ip addre...

  • Page 350

    Xstack ® dgs-3120 series managed switch cli reference guide 346 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...

  • Page 351

    Xstack ® dgs-3120 series managed switch cli reference guide 347 restrictions only administrator, operator and power-user level users can issue this command. Example to clear mld snooping statistics counter: dgs-3120-24tc:admin# clear mld_snooping statistic counter command: clear mld_snooping statist...

  • Page 352

    Xstack ® dgs-3120 series managed switch cli reference guide 348 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# 33-44 show mld_snooping rate_limit description this command is used to configure the rate ...

  • Page 354

    Xstack ® dgs-3120 series managed switch cli reference guide 350 will be applied to all ports. - enter a list of ports used for this configuration here. All - specify that all the ports will be included. Restrictions only administrator, operator and power-user level users can issue this command. Exam...

  • Page 355

    Xstack ® dgs-3120 series managed switch cli reference guide 351 enable - specify that the allow zero ip option will be enabled. Disable - specify that the allow zero ip option will be disabled. Forward_dhcppkt - (optional) by default, dhcp packets with a broadcast da will be flooded. When set to dis...

  • Page 356

    Xstack ® dgs-3120 series managed switch cli reference guide 352 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-00- 00-11 success. Dgs-3120-...

  • Page 358

    Xstack ® dgs-3120 series managed switch cli reference guide 354 example to show the impb global configuration: dgs-3120-24tc:admin#show address_binding command: show address_binding trap/log : disabled dhcp snoop : disabled function version : 3.92 dgs-3120-24tc:admin# to show the impb ports: dgs-312...

  • Page 359

    Xstack ® dgs-3120 series managed switch cli reference guide 355 parameters all - specify that all the addresses in the database that the system has auto learned and blocked to be displayed. Vlan_name - specify the name of the vlan to which the blocked mac address belongs. - enter the vlan name used....

  • Page 360

    Xstack ® dgs-3120 series managed switch cli reference guide 356 example to show impb entries: dgs-3120-24tc:admin#show address_binding ip_mac all command: show address_binding ip_mac all m(mode) - d:dhcp, s:static acl - a:active i:inactive ip address mac address m acl ports -------------------------...

  • Page 361

    Xstack ® dgs-3120 series managed switch cli reference guide 357 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: enable address_bind...

  • Page 363

    Xstack ® dgs-3120 series managed switch cli reference guide 359 example to show the dhcp snooping state: dgs-3120-24tc:admin# show address_binding dhcp_snoop command: show address_binding dhcp_snoop dhcp_snoop : disabled dgs-3120-24tc:admin# to display dhcp snooping maximun entry configuration: dgs-...

  • Page 364

    Xstack ® dgs-3120 series managed switch cli reference guide 360 - 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 dhcp_snoop binding_entry s (sta...

  • Page 365

    Xstack ® dgs-3120 series managed switch cli reference guide 361 example to set the maximum number of dhcp ipv4 snooping entries that ports 1–3 can learned to 10: dgs-3120-24tc:admin# config address_binding dhcp_snoop max_entry ports 1-3 limit 10. Command: config address_binding dhcp_snoop max_entry ...

  • Page 366

    Xstack ® dgs-3120 series managed switch cli reference guide 362 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: disable address_binding...

  • Page 368

    Xstack ® dgs-3120 series managed switch cli reference guide 364 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#.

  • Page 370

    Xstack ® dgs-3120 series managed switch cli reference guide 366 35-2 delete ipv6 neighbor_cache description this command is used to delete a neighbor cache entry or static neighbor cache entries from the address cache or all address cache entries on this ip interface. Both static and dynamic entries...

  • Page 371

    Xstack ® dgs-3120 series managed switch cli reference guide 367 - enter the ip interface name here. This name can be up to 12 characters long. All - specify that all the interface will be displayed. Ipv6address - the neighbor’s address. - enter the ipv6 address here. Static - static neighbor cache e...

  • Page 372

    Xstack ® dgs-3120 series managed switch cli reference guide 368 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-3120-24tc:admin# 35-5 s...

  • Page 374

    Xstack ® dgs-3120 series managed switch cli reference guide 370 36-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, then the interface nam...

  • Page 375

    Xstack ® dgs-3120 series managed switch cli reference guide 371 restrictions - (optional) the destination network of the route. - (optional) specify the destination 128-bit length ipv6 address to be displayed. Static - (optional) specify to display only the static route entries. Hardware - (optional...

  • Page 377

    Xstack ® dgs-3120 series managed switch cli reference guide 373 using the jwac function, pc users need to pass two stages of authentication. The first stage is to do the authentication with the quarantine server and the second stage is the authentication with the switch. For the second stage, the au...

  • Page 378

    Xstack ® dgs-3120 series managed switch cli reference guide 374 dgs-3120-24tc:admin#disable jwac command: disable jwac success. Dgs-3120-24tc:admin# 37-3 config jwac description this command is used to configure the quarantine server url. If the redirection is enabled and the redirection destination...

  • Page 379

    Xstack ® dgs-3120 series managed switch cli reference guide 375 37-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:admin#show jwac command: s...

  • Page 380

    Xstack ® dgs-3120 series managed switch cli reference guide 376 url. When redirect jwac_login_page is enabled, the unauthenticated host will be redirected to the jwac_login_page on the switch to finish authentication. When enable redirect to quarantine server is in effect, a quarantine server must b...

  • Page 381

    Xstack ® dgs-3120 series managed switch cli reference guide 377 dgs-3120-24tc:admin#disable jwac redirect command: disable jwac redirect success. Dgs-3120-24tc:admin# 37-7 config jwac redirect description this command is used to configure redirect destination and delay time before an unauthenticated...

  • Page 382

    Xstack ® dgs-3120 series managed switch cli reference guide 378 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 jwac forcible_logout com...

  • Page 383

    Xstack ® dgs-3120 series managed switch cli reference guide 379 dgs-3120-24tc:admin#disable jwac forcible_logout command: disable jwac forcible_logout success. Dgs-3120-24tc:admin# 37-10 enable jwac udp_filtering description this command is used to enable the jwac udp filtering function. When udp fi...

  • Page 384

    Xstack ® dgs-3120 series managed switch cli reference guide 380 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 success. Dgs-3120-24t...

  • Page 385

    Xstack ® dgs-3120 series managed switch cli reference guide 381 37-13 disable jwac quarantine_server_monitor description this command is used to disable jwac quarantine server monitoring. Format disable jwac quarantine_server_monitor parameters none. Restrictions only administrator, operator and pow...

  • Page 386

    Xstack ® dgs-3120 series managed switch cli reference guide 382 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:admin# 37-15 config jwac virtual_ip de...

  • Page 387

    Xstack ® dgs-3120 series managed switch cli reference guide 383 need to be able to have access to accomplish authentication. Before the client passes authentication, it should be added to the switch with its ip address. For example, the client may need to access update.Microsoft.Com or some sites of...

  • Page 389

    Xstack ® dgs-3120 series managed switch cli reference guide 385 state. Infinite - specify to indicate the idle state of the authenticated host on the port will never be checked. The default value is infinite. - specify an idle time between 1 and 1440 minutes. Block_time - if a host fails to pass the...

  • Page 390

    Xstack ® dgs-3120 series managed switch cli reference guide 386 dgs-3120-24tc:admin#show jwac ports 1-4 command: show jwac ports 1:1-1:4 port state aging time idle time block time max (min) (min) (sec) hosts ----- -------- ---------- --------- ---------- ----- 1:1 disabled 1440 infinite 60 50 1:2 di...

  • Page 391

    Xstack ® dgs-3120 series managed switch cli reference guide 387 37-21 create jwac user description this command is used to create jwac users in the local database. When “local” is chosen while configuring the jwac radius protocol, the local database will be used. Format create jwac user {vlan } para...

  • Page 392

    Xstack ® dgs-3120 series managed switch cli reference guide 388 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 password:***** enter...

  • Page 393

    Xstack ® dgs-3120 series managed switch cli reference guide 389 37-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-3120-24tc:admin#show jwac ...

  • Page 394

    Xstack ® dgs-3120 series managed switch cli reference guide 390 authenticating - (optional) specify the state of host to delete. Blocked - (optional) specify the state of host to delete. Mac_addr - delete a specified host with this mac address. - enter the mac address here. Restrictions only adminis...

  • Page 395

    Xstack ® dgs-3120 series managed switch cli reference guide 391 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. Port mac address state vid...

  • Page 396

    Xstack ® dgs-3120 series managed switch cli reference guide 392 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. Dgs-3120-24tc:admin# 37...

  • Page 399

    Xstack ® dgs-3120 series managed switch cli reference guide 395 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 : authe...

  • Page 400: List

    Xstack ® dgs-3120 series managed switch cli reference guide 396 chapter 38jumbo frame command list enable jumbo_frame disable jumbo_frame show jumbo_frame 38-1 enable jumbo_frame description this command is used to configure the jumbo frame setting as enable. Format enable jumbo_frame parameters non...

  • Page 401

    Xstack ® dgs-3120 series managed switch cli reference guide 397 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. Dgs-3120-24tc:admin# 38...

  • Page 403

    Xstack ® dgs-3120 series managed switch cli reference guide 399 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 command: disable l2p...

  • Page 404

    Xstack ® dgs-3120 series managed switch cli reference guide 400 01-00-0c-cc-cc-cd - specify the mac address as 01-00-0c-cc-cc-cd. All - all tunnel-abled layer 2 protocols will be tunneled on the ports. Threshold - (optional) specify the drop threshold for packets-per-second accepted on the uni ports...

  • Page 405

    Xstack ® dgs-3120 series managed switch cli reference guide 401 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-3120-24tc:admin#show l2p...

  • Page 407

    Xstack ® dgs-3120 series managed switch cli reference guide 403 40-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 group id. The number of link aggr...

  • Page 408

    Xstack ® dgs-3120 series managed switch cli reference guide 404 are separated by a dash. For example, 1:3 would specify switch number 1, port 3. 2:4 specifies switch number 2, port 4. 1:3-2:4 specifies all of the ports between switch 1, port 3 and switch 2, port 4 − in numerical order. - enter the l...

  • Page 409

    Xstack ® dgs-3120 series managed switch cli reference guide 405 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 link_aggregation algorithm m...

  • Page 410

    Xstack ® dgs-3120 series managed switch cli reference guide 406 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 : enabled flooding port : 7 trap...

  • Page 411

    Xstack ® dgs-3120 series managed switch cli reference guide 407 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 : disabled flooding port : 7 tra...

  • Page 412

    Xstack ® dgs-3120 series managed switch cli reference guide 408 40-7 show lacp_port description this command is used to display the current mode of lacp of the ports. Format show lacp_port parameters lacp_port - specified a range of ports to be configured. (unitid:port number). - enter the list of p...

  • Page 414

    Xstack ® dgs-3120 series managed switch cli reference guide 410 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. Dgs-3120-24tc:admin#...

  • Page 416

    Xstack ® dgs-3120 series managed switch cli reference guide 412 parameters notification_interval - specify the timer of notification interval for sending notification to configured snmp trap receiver(s). The default setting is 5 seconds. - enter the notification interval value here. This value must ...

  • Page 417

    Xstack ® dgs-3120 series managed switch cli reference guide 413 packets from neighbor devices. Rx_only - configure the specified port(s) to receive lldp packets from neighbors, but block outbound packets to neighbors. Tx_and_rx - configure the specified port(s) to both transmit and receive lldp pack...

  • Page 418

    Xstack ® dgs-3120 series managed switch cli reference guide 414 numerous vendor proprietary variations are responsible for maintaining the topology and connectivity of the network. If eapol, gvrp, stp (including mstp), and lacp protocol identity is enabled on this port and it is enabled to be advert...

  • Page 419

    Xstack ® dgs-3120 series managed switch cli reference guide 415 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-24tc:admin# config lldp...

  • Page 420

    Xstack ® dgs-3120 series managed switch cli reference guide 416 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 identity tlv from the ou...

  • Page 421

    Xstack ® dgs-3120 series managed switch cli reference guide 417 dgs-3120-24tc:admin# config lldp forward_message enable command: config lldp forward_message enable success. Dgs-3120-24tc:admin# 41-7 show lldp description this command is used to display the switch’s general lldp configuration status....

  • Page 423

    Xstack ® dgs-3120 series managed switch cli reference guide 419 restrictions none. Example to display the lldp port 1 tlv option configuration: dgs-3120-24tc:admin#show lldp ports 1:1 command: show lldp ports 1:1 port id : 1:1 ----------------------------------------------------------------- admin s...

  • Page 424

    Xstack ® dgs-3120 series managed switch cli reference guide 420 mode - (optional) specify the display mode. Brief - display the information in brief mode. Normal - display the information in normal mode. This is the default display mode. Detailed - display the information in detailed mode. Restricti...

  • Page 425

    Xstack ® dgs-3120 series managed switch cli reference guide 421 aggregation port id : 0 maximum frame size : 1536 dgs-3120-24tc:admin# to display outbound lldp advertisements for port 1 in normal mode: dgs-3120-24tc:admin#show lldp local_ports 1:1 mode normal command: show lldp local_ports 1:1 mode ...

  • Page 426

    Xstack ® dgs-3120 series managed switch cli reference guide 422 parameters - (optional) specified a range of ports to be configured. When port list is not specified, information for all ports will be displayed. Mode – (optional) specify to display the information in various modes. Brief - display th...

  • Page 427

    Xstack ® dgs-3120 series managed switch cli reference guide 423 entity 3 chassis id subtype : macaddress chassis id : 00-01-02-03-04-05 port id subtype : local port id : 2/3 port description : rmon port 2 on unit 3 dgs-3120-24tc:admin# to display remote table in normal mode: dgs-3120-24tc:admin# sho...

  • Page 428

    Xstack ® dgs-3120 series managed switch cli reference guide 424 power via mdi : (see detail) link aggregation : (see detail) maximum frame size : 1536 dgs-3120-24tc:admin# to display remote table in detailed mode: dgs-3120-24tc:admin# show lldp remote_ports 1:1 mode detailed command: show lldp remot...

  • Page 429

    Xstack ® dgs-3120 series managed switch cli reference guide 425 ppvid enable : enable vlan name entries entry 1 vlan id : 1 vlan name : v1 entry 2 vlanid : 2 vlan name : v2 entry 3 vlan id : 3 vlan name : v3 protocol identity entries entry 1 protocol index : 1 protocol id : 00 16 42 42 03 00 01 01 p...

  • Page 430

    Xstack ® dgs-3120 series managed switch cli reference guide 426 unknown tlv type : 31 unknown tlv information bytes : xx xx xx xx xx xx(hex) dgs-3120-24tc:admin# 41-12 show lldp statistics description this command is used to display an overview of neighbor detection activity on the switch. Format sh...

  • Page 431

    Xstack ® dgs-3120 series managed switch cli reference guide 427 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 port id: 1 ----------------...

  • Page 432

    Xstack ® dgs-3120 series managed switch cli reference guide 428 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# 41-15 config lldp_med log state description this command is used to configure the log state o...

  • Page 433

    Xstack ® dgs-3120 series managed switch cli reference guide 429 state - enable or disable the snmp trap notification of topology change detected state. Enable - enable the snmp trap notification of topology change detected. Disable - disable the snmp trap notification of topology change detected. Th...

  • Page 434

    Xstack ® dgs-3120 series managed switch cli reference guide 430 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 all state enable comm...

  • Page 435

    Xstack ® dgs-3120 series managed switch cli reference guide 431 41-19 show lldp_med description this command is used to display the switch’s general lldp-med configuration status. Format show lldp_med parameters none. Restrictions none. Example to display the switch’s general lldp-med configuration ...

  • Page 436

    Xstack ® dgs-3120 series managed switch cli reference guide 432 format show lldp_med local_ports {} parameters - (optional) specify a range of ports to be displayed. Restrictions none. Example to display lldp-med information currently available for populating outbound lldp-med advertisements for por...

  • Page 437

    Xstack ® dgs-3120 series managed switch cli reference guide 433 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 -------------------------------------------------------------------...

  • Page 438

    Xstack ® dgs-3120 series managed switch cli reference guide 434 location information : location subtype: civicaddress location information : extended power via mdi power device type: pd device power priority : high power source : from pse power request : 8 watts inventory management: hardware revisi...

  • Page 440

    Xstack ® dgs-3120 series managed switch cli reference guide 436 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 vlan- based command: ...

  • Page 441

    Xstack ® dgs-3120 series managed switch cli reference guide 437 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 loopdetect command: enable l...

  • Page 442

    Xstack ® dgs-3120 series managed switch cli reference guide 438 dgs-3120-24tc:admin# disable loopdetect command: disable loopdetect success. Dgs-3120-24tc:admin# 42-5 show loopdetect description this command is used to display the lbd global configuration. Format show loopdetect parameters none. Res...

  • Page 443

    Xstack ® dgs-3120 series managed switch cli reference guide 439 parameters ports - specify the range of member ports that will display the lbd settings. - enter the list of port to be configured here. If no port is specified, the configuration for all ports will be displayed. Restrictions none. Exam...

  • Page 444

    Xstack ® dgs-3120 series managed switch cli reference guide 440 example to specify that traps will be sent when the loop condition is detected or cleared: dgs-3120-24tc:admin# config loopdetect trap both command: config loopdetect trap both success. Dgs-3120-24tc:admin# 42-8 config loopdetect log de...

  • Page 446

    Xstack ® dgs-3120 series managed switch cli reference guide 442 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 mac_notification success. Dgs...

  • Page 448

    Xstack ® dgs-3120 series managed switch cli reference guide 444 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 : enabled interval : 1 history size : 500 dgs-...

  • Page 449

    Xstack ® dgs-3120 series managed switch cli reference guide 445 dgs-3120-24tc:admin# show mac_notification ports command: show mac_notification ports port # mac address table notification state ------ ------------------------------------ 1:1 disabled 1:2 disabled 1:3 disabled 1:4 disabled 1:5 disabl...

  • Page 451

    Xstack ® dgs-3120 series managed switch cli reference guide 447 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# 44-2 disable mac_based_access_control description t...

  • Page 452

    Xstack ® dgs-3120 series managed switch cli reference guide 448 parameters password - in radius mode, the switch will communicate with the radius server using this password. The maximum length of the key is 16. - enter the password used here. The default password is “default”. Restrictions only admi...

  • Page 453

    Xstack ® dgs-3120 series managed switch cli reference guide 449 44-5 config mac_based_access_control guest_vlan description this command is used to assign a specified port list to the mac-based access control guest vlan. Ports that are not contained in port list will be removed from the mac-based ac...

  • Page 454

    Xstack ® dgs-3120 series managed switch cli reference guide 450 • before the authentication process starts, the user is able to forward traffic under the guest vlan. • after the authentication process, the user will be able to access the assigned vlan. If the port authorize mode is port based mode, ...

  • Page 455

    Xstack ® dgs-3120 series managed switch cli reference guide 451 restrictions only administrator, operator and power-user level users can issue this command. Example to configure an unlimited number of maximum users for mac-based access control on ports 1 to 8: dgs-3120-24tc:admin# config mac_based_a...

  • Page 456

    Xstack ® dgs-3120 series managed switch cli reference guide 452 example to create a mac-based access control guest vlan: dgs-3120-24tc:admin# create mac_based_access_control guest_vlan vlan8 command: create mac_based_access_control guest_vlan vlan8 success. Dgs-3120-24tc:admin# 44-8 delete mac_based...

  • Page 458

    Xstack ® dgs-3120 series managed switch cli reference guide 454 parameters mac - specify the mac address that can pass local authentication. - enter the mac address used here. Vlan - (optional) specify the target vlan by using the vlan name. When this host is authorized, it will be assigned to this ...

  • Page 459

    Xstack ® dgs-3120 series managed switch cli reference guide 455 restrictions only administrator, operator and power-user level users can issue this command. Example to configure the target vlan “default” for the mac-based access control local database entry 00- 00-00-00-00-01: dgs-3120-24tc:admin# c...

  • Page 460

    Xstack ® dgs-3120 series managed switch cli reference guide 456 to delete the mac-based access control local database entry for the vlan name vlan3: 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:...

  • Page 461

    Xstack ® dgs-3120 series managed switch cli reference guide 457 dgs-3120-24tc:admin# config mac_based_access_control authorization attributes local disable command: config mac_based_access_control authorization attributes local disable success. Dgs-3120-24tc:admin# 44-14 show mac_based_access_contro...

  • Page 463

    Xstack ® dgs-3120 series managed switch cli reference guide 459 restrictions none. Example to display the mac-based access control authentication status on port 1:1-1:4 dgs-3120-24tc:admin#show mac_based_access_control auth_state ports 1:1-1:4 command: show mac_based_access_control auth_state ports ...

  • Page 464

    Xstack ® dgs-3120 series managed switch cli reference guide 460 dgs-3120-24tc:admin# config mac_based_access_control max_users 128 command: config mac_based_access_control max_users 128 success. Dgs-3120-24tc:admin# 44-18 config mac_based_access_control trap state description this command is used to...

  • Page 465

    Xstack ® dgs-3120 series managed switch cli reference guide 461 disable - disable log for mac-based access control. Restrictions only administrator, operator and power-user level users can issue this command. Example to disable log state of mac-based access control: dgs-3120-24tc:admin# config mac_b...

  • Page 467

    Xstack ® dgs-3120 series managed switch cli reference guide 463 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# 45-2 delete mac_based_vlan description this comman...

  • Page 470

    Xstack ® dgs-3120 series managed switch cli reference guide 466 46-2 enable mirror description this command is used to enable mirror function without having to modify the mirror session configuration. Format enable mirror parameters none. Restrictions only administrator and operator-level users can ...

  • Page 471

    Xstack ® dgs-3120 series managed switch cli reference guide 467 example to disable mirroring function: dgs-3120-24tc:admin# disable mirror command: disable mirror success. Dgs-3120-24tc:admin# 46-4 show mirror description this command is used to display the current mirror function state and mirror s...

  • Page 473

    Xstack ® dgs-3120 series managed switch cli reference guide 469 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# 47-2 debug stp show information description this comma...

  • Page 474

    Xstack ® dgs-3120 series managed switch cli reference guide 470 regional root bridge : 32768/00-01-70-33-21-02 internal root cost : 0 designated bridge : 32768/00-01-70-33-21-02 designated port : 0 message age : 0 max age : 20 forward delay : 15 hello time : 2 -------------------------------------- ...

  • Page 475

    Xstack ® dgs-3120 series managed switch cli reference guide 471 1:3 brief brief brief 1:4 brief brief brief 1:5 brief brief brief 1:6 brief brief brief 1:7 brief brief brief 1:8 brief brief brief 1:9 brief brief brief 1:10 brief brief brief 1:11 brief brief brief 1:12 brief brief brief 1:13 brief br...

  • Page 476

    Xstack ® dgs-3120 series managed switch cli reference guide 472 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: transmit: total stp packets : 0 total stp packets : 0 configuration ...

  • Page 477

    Xstack ® dgs-3120 series managed switch cli reference guide 473 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# 47-6 debug stp state description this command is used to enable or disab...

  • Page 480

    Xstack ® dgs-3120 series managed switch cli reference guide 476 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# 48-2 config mcast_filter_profile description this command is...

  • Page 482

    Xstack ® dgs-3120 series managed switch cli reference guide 478 profile_name - specify to display a profile based on the profile name. - enter the profile name value here. The profile name can be up to 32 characters long. Restrictions only administrator, operator and power-user level users can issue...

  • Page 483

    Xstack ® dgs-3120 series managed switch cli reference guide 479 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 ---- ---------------- ---------------- ----------------...

  • Page 484

    Xstack ® dgs-3120 series managed switch cli reference guide 480 all - specify to delete all multicast address profile.. Access - specify the access of packets matching the addresses defined in the profiles. Permit - specify that packets matching the addresses defined in the profiles will be permitte...

  • Page 485

    Xstack ® dgs-3120 series managed switch cli reference guide 481 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 max_mcast_group port...

  • Page 486

    Xstack ® dgs-3120 series managed switch cli reference guide 482 dgs-3120-24tc:admin#show max_mcast_group ports 1:1-1:2 command: show max_mcast_group ports 1:1-1:2 port max multicast group number action ------ ---------------------------- --------- 1:1 infinite drop 1:2 100 drop total entries: 2 dgs-...

  • Page 487

    Xstack ® dgs-3120 series managed switch cli reference guide 483 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 : deny profile id name mu...

  • Page 489

    Xstack ® dgs-3120 series managed switch cli reference guide 485 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 igmp query dvmrp pim ---- ---------- -------- -------- 1:1 disabled enabled disabled 1:2 disabled enabled disabl...

  • Page 492

    Xstack ® dgs-3120 series managed switch cli reference guide 488 parameters multicast_vlan - the name of the multicast vlan to be configured. - enter the vlan here. The vlan name can be up to 32 characters long. Add - specify that the entry will be added to the specified multicast vlan. Delete - spec...

  • Page 493

    Xstack ® dgs-3120 series managed switch cli reference guide 489 49-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 automatically become untagged members of the multicast vlan and source ...

  • Page 494

    Xstack ® dgs-3120 series managed switch cli reference guide 490 restrictions only administrator, operator and power-user level users can issue this command. Example to configure an mld snooping multicast vlan with the name “v1”, make ports 1 and 3 members of the vlan, and set the state to enable: dg...

  • Page 495

    Xstack ® dgs-3120 series managed switch cli reference guide 491 49-5 config igmp_snooping multicast_vlan_group_profile description this command is used to configure an igmp snooping multicast group profile on the switch and add or delete multicast addresses for the profile. Format config igmp_snoopi...

  • Page 497

    Xstack ® dgs-3120 series managed switch cli reference guide 493 parameters igmp_snooping - specify to delete an igmp snooping group profile. Mld_snooping - specify to delete an mld snooping group profile. Profile_name - specify the multicast vlan profile name. - enter the multicast vlan profile name...

  • Page 498

    Xstack ® dgs-3120 series managed switch cli reference guide 494 dgs-3120-24tc:admin# show igmp_snooping multicast_vlan_group_profile command: show igmp_snooping multicast_vlan_group_profile profile name multicast addresses --------------------- -------------------------------- mod 234.1.1.1 - 238.24...

  • Page 499

    Xstack ® dgs-3120 series managed switch cli reference guide 495 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 igmp_snooping multicast_vlan_...

  • Page 501

    Xstack ® dgs-3120 series managed switch cli reference guide 497 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 igmp_snooping multicast_v...

  • Page 503

    Xstack ® dgs-3120 series managed switch cli reference guide 499 parameters igmp_snooping - specify that igmp snooping multicast vlans will be displayed. Mld_snooping - specify that mld snooping multicast vlans will be displayed. Multicast_vlan - the name of the multicast vlan to be shown. - (optiona...

  • Page 505

    Xstack ® dgs-3120 series managed switch cli reference guide 501 dgs-3120-24tc:admin# enable stp command: enable stp success. Dgs-3120-24tc:admin# 50-2 disable stp description this command is used to disable stp globally. Format disable stp parameters none. Restrictions only administrator, operator a...

  • Page 506

    Xstack ® dgs-3120 series managed switch cli reference guide 502 - enter the maximum age value here. This value must be between 6-40. Maxhops - (optional) used to restrict the forwarded times of one bpdu. The default value is 20. - enter the maximum hops value here. This value must be between 6 and 4...

  • Page 507

    Xstack ® dgs-3120 series managed switch cli reference guide 503 restrictions none. 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 hop...

  • Page 508

    Xstack ® dgs-3120 series managed switch cli reference guide 504 dgs-3120-24tc:admin# create stp instance_id 2 command: create stp instance_id 2 success. Dgs-3120-24tc:admin# 50-6 config stp instance_id description this command is used to map or remove the vlan range of the specified mst instance for...

  • Page 509

    Xstack ® dgs-3120 series managed switch cli reference guide 505 50-7 delete stp instance_id description this command is used to delete an mst instance. Format delete stp instance_id parameters instance_id - specify the mstp instance id. Instance 0 represents for default instance, cist. - enter the m...

  • Page 510

    Xstack ® dgs-3120 series managed switch cli reference guide 506 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_blockg revision_level 1 su...

  • Page 512

    Xstack ® dgs-3120 series managed switch cli reference guide 508 hellotime - (optional) the default value is 2 . This parameter is for mstp version. For stp and rstp version, uses the per system hellotime parameter. - enter the hello time value here. This value must be between 1 and 2. Migrate - (opt...

  • Page 513

    Xstack ® dgs-3120 series managed switch cli reference guide 509 format show stp ports {} parameters ports - to show parameters of the designated port numbers, to be distinguished from showing parameters of the bridge. - (optional) enter a list of ports used for the configuration here. Restrictions n...

  • Page 514

    Xstack ® dgs-3120 series managed switch cli reference guide 510 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 priority 61440 insta...

  • Page 516

    Xstack ® dgs-3120 series managed switch cli reference guide 512 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-24tc:admin# show stp instance command...

  • Page 519

    Xstack ® dgs-3120 series managed switch cli reference guide 515 - enter the id of the vlan. - specify the mac address of the nlb unicast fdb entry to be deleted. Restrictions only administrator, operator and power-user level users can issue this command. Example to delete the nlb unicast fdb entry, ...

  • Page 520

    Xstack ® dgs-3120 series managed switch cli reference guide 516 example to create a nlb multicast fdb entry: 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# 51-5 config nlb multicast_fdb...

  • Page 522

    Xstack ® dgs-3120 series managed switch cli reference guide 518 dgs-3120-24tc:admin# show nlb fdb command: show nlb fdb mac address vlan id egress ports ----------------- ---------- ---------------------------------- 03-bf-01-01-01-01 100 1:1-1:5,1:24,2:24 03-bf-01-01-01-01 1 1:1-1:5,1:24,2:24 total...

  • Page 524

    Xstack ® dgs-3120 series managed switch cli reference guide 520 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 --------------- ----------------------...

  • Page 525

    Xstack ® dgs-3120 series managed switch cli reference guide 521 dgs-3120-24tc:admin#show error ports 1:3 command: show error ports 1:3 port number : 1:3 rx frames tx frames --------- --------- crc error 0 excessive deferral 0 undersize 0 crc error 0 oversize 0 late collision 0 fragment 0 excessive c...

  • Page 526

    Xstack ® dgs-3120 series managed switch cli reference guide 522 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 ...

  • Page 527

    Xstack ® dgs-3120 series managed switch cli reference guide 523 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 ...

  • Page 528

    Xstack ® dgs-3120 series managed switch cli reference guide 524 dgs-3120-24tc:admin#show utilization dram command: show utilization dram unit 1 dram utilization : total dram : 131072 kb used dram : 128128 kb utilization : 97 % ctrl+c esc q quit space n next page p previous page r refresh 52-5 show u...

  • Page 529

    Xstack ® dgs-3120 series managed switch cli reference guide 525 format clear counters {ports } parameters ports - (optional) specify a range of ports to be configured. The port list is specified by listing the lowest switch number and the beginning port number on that switch, separated by a colon. T...

  • Page 532

    Xstack ® dgs-3120 series managed switch cli reference guide 528 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 notification status. The...

  • Page 533

    Xstack ® dgs-3120 series managed switch cli reference guide 529 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 notify_state enable success. Dgs...

  • Page 534

    Xstack ® dgs-3120 series managed switch cli reference guide 530 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# 53-2 show ethernet_oam ports description this command ...

  • Page 535

    Xstack ® dgs-3120 series managed switch cli reference guide 531 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 30 mib. The event log displays ethernet oam event log information. The switch can ...

  • Page 536

    Xstack ® dgs-3120 series managed switch cli reference guide 532 dgs-3120-24tc:admin# show ethernet_oam ports 1 statistics command: show ethernet_oam ports 1 statistics port 1 ------------------------------------------------------------ information oampdu tx : 0 information oampdu rx : 0 unique event...

  • Page 537

    Xstack ® dgs-3120 series managed switch cli reference guide 533 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 event_log command: clear...

  • Page 539

    Xstack ® dgs-3120 series managed switch cli reference guide 535 54-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 none. Example to display the standalone device environment:.

  • Page 540

    Xstack ® dgs-3120 series managed switch cli reference guide 536 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 : fail right fan 1 : speed lo...

  • Page 541

    Xstack ® dgs-3120 series managed switch cli reference guide 537 - enter the high threshold temperature here. Low - (optional) to configure low threshold value. N is the low threshold value. - enter the low threshold temperature here. Restrictions only administrator and operator-level users can issue...

  • Page 543

    Xstack ® dgs-3120 series managed switch cli reference guide 539 dgs-3120-24tc:admin#config power trap state enable command: config power trap state enable success. Dgs-3120-24tc:admin#.

  • Page 545

    Xstack ® dgs-3120 series managed switch cli reference guide 541 55-2 ping6 (ei mode only) description this command is used to send ipv6 internet control message protocol (icmp) echo messages to a remote ipv6 address. The remote ipv6 address will then “echo” or return the message. This is used to con...

  • Page 547

    Xstack ® dgs-3120 series managed switch cli reference guide 543 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:admin# 56-2 config port_security ports description this command is used to configur...

  • Page 548

    Xstack ® dgs-3120 series managed switch cli reference guide 544 restrictions only administrator, operator and power-user level users can issue this command. Example to configure the port-based port security setting so that the maximum number of port security entries is restricted to 10, and the lock...

  • Page 549

    Xstack ® dgs-3120 series managed switch cli reference guide 545 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 1 max_learning_addr 6...

  • Page 551

    Xstack ® dgs-3120 series managed switch cli reference guide 547 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 vid port lock mode ----------------- ---- ----- --------------- 00-00-00-00-00...

  • Page 552

    Xstack ® dgs-3120 series managed switch cli reference guide 548 dgs-3120-24tc:admin#show port_security command: show port_security port security trap state : disabled port security log state : disabled system maximum address : 256 vlan configuration (only vlans with limitation are displayed) vid vla...

  • Page 553

    Xstack ® dgs-3120 series managed switch cli reference guide 549 56-9 config port_security log state description this command is used to enable or disable the port security log. When the port security log is enabled, if there is a new mac that violates the pre-defined port security configuration, the...

  • Page 555

    Xstack ® dgs-3120 series managed switch cli reference guide 551 restrictions only administrator, operator and power-user level users can issue this command. Example to config poe system-wise was setting: dgs-3120-24pc:admin# config poe system power_limit 250 power_disconnect_method deny_low_priority...

  • Page 556

    Xstack ® dgs-3120 series managed switch cli reference guide 552 device connected to this port. Enable - specify that state will be enabled. Disable - specify that state will be disabled. Time_range - (optional) specify the time range that applies to the port of the poe. If time range is configured, ...

  • Page 557

    Xstack ® dgs-3120 series managed switch cli reference guide 553 57-3 show poe system description this command is used to display the setting and actual values of the whole poe system. Format show poe system {units } parameters units - (optional) specified units that will be displayed. - enter the un...

  • Page 558

    Xstack ® dgs-3120 series managed switch cli reference guide 554 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...

  • Page 560

    Xstack ® dgs-3120 series managed switch cli reference guide 556 led - (optional) specify to configure the power saving state of port led. Port - (optional) specify to configure the power saving state of port. Hibernation - (optional) specify to configure the power saving state of system hibernation....

  • Page 561

    Xstack ® dgs-3120 series managed switch cli reference guide 557 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# 58-3 config power_saving led description this command is used to ad...

  • Page 563

    Xstack ® dgs-3120 series managed switch cli reference guide 559 parameters length_detection - (optional) display the length detection configuration of power saving. Link_detection - (optional) display the link detection configuration of power saving. Led - (optional) display the port led configurati...

  • Page 564

    Xstack ® dgs-3120 series managed switch cli reference guide 560 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-3120-24tc:admin# 58-7 s...

  • Page 566

    Xstack ® dgs-3120 series managed switch cli reference guide 562 59-2 config pppoe circuit_id_insertion ports description this command is used to configure port’s pppoe circuit id insertion function. When the port’s state and the global state are enabled, the system will insert the circuit id tag to ...

  • Page 567

    Xstack ® dgs-3120 series managed switch cli reference guide 563 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-3120-24tc:admin# 59-4...

  • Page 568

    Xstack ® dgs-3120 series managed switch cli reference guide 564 dgs-3120-24tc:admin#.

  • Page 570

    Xstack ® dgs-3120 series managed switch cli reference guide 566 60-2 config dot1v_protocol_group add protocol description this command is used to add a protocol to a protocol group. The selection of a protocol can be a pre-defined protocol type or a user defined protocol. Format config dot1v_protoco...

  • Page 571

    Xstack ® dgs-3120 series managed switch cli reference guide 567 parameters group_id - specify the group id to be deleted. - enter the group id used here. Group_name - specify the name of the group to be deleted. - enter the group name here. This name can be up to 32 characters long. All - specify th...

  • Page 572

    Xstack ® dgs-3120 series managed switch cli reference guide 568 dgs-3120-24tc:admin# show dot1v_protocol_group group_id 10 command: show dot1v_protocol_group group_id 10 protocol protocol frame type protocol group id group name value --------- --------------- ------------ ------------ 100 general gr...

  • Page 573

    Xstack ® dgs-3120 series managed switch cli reference guide 569 restrictions only administrator, operator and power-user level users can issue this command. Example the example is to assign vlan marketing-1 for untaged ipv6 packet ingress from port 3. To configure the group id 10 on port 3 to be ass...

  • Page 574

    Xstack ® dgs-3120 series managed switch cli reference guide 570 dgs-3120-24tc:admin# show port dot1v ports 1:1 command: show port dot1v ports 1:1 port: 1:1 protocol group id vlan name protocol priority ------------------- --------------------------------- ----------------- 1 default - 2 vlan2 - 3 vl...

  • Page 576

    Xstack ® dgs-3120 series managed switch cli reference guide 572 dgs-3120-24tc:admin# enable qinq command: enable qinq success. Dgs-3120-24tc:admin# 61-2 disable qinq description this command is used to disable the qinq. When qinq is disabled, all dynamic learned l2 addresses will be cleared, all dyn...

  • Page 577

    Xstack ® dgs-3120 series managed switch cli reference guide 573 parameters inner_tpid - specify the inner-tpid of the system. - enter the inner-tpid of the system here. Restrictions only administrator, operator and power-user level users can issue this command. Example to configure the inner tpid in...

  • Page 578

    Xstack ® dgs-3120 series managed switch cli reference guide 574 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 role nni outer_tpid 0x88a8 command: config qinq ports 1:1-1:4 role nni outer_tpid 0x88a8 success. Dgs-3120-24tc:ad...

  • Page 579

    Xstack ® dgs-3120 series managed switch cli reference guide 575 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:admin# 61-7 show qinq ports description this com...

  • Page 580

    Xstack ® dgs-3120 series managed switch cli reference guide 576 dgs-3120-24tc:admin# show qinq ports 1:1-1:2 command: show qinq ports 1:1-1:2 port id: 1:1 --------------------------------------------------------- role: nni miss drop: disabled outer tpid: 0x88a8 add inner tag: disabled port id: 1:2 -...

  • Page 581

    Xstack ® dgs-3120 series managed switch cli reference guide 577 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:admin# create vlan_trans...

  • Page 582

    Xstack ® dgs-3120 series managed switch cli reference guide 578 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# 61-10 show vlan_translation description this command is used to display the existing c-vlan-based vl...

  • Page 584

    Xstack ® dgs-3120 series managed switch cli reference guide 580 not exceed it.. The actual limit recognized by the device, will be displayed when the command is executed. - enter the transmitting data rate here. This value must be between 64 and 1024000. Restrictions only administrator, operator and...

  • Page 585

    Xstack ® dgs-3120 series managed switch cli reference guide 581 dgs-3120-24tc:admin#show bandwidth_control 1:1-1:10 command: show bandwidth_control 1:1-1:10 bandwidth control table port rx rate tx rate effective rx effective tx (kbit/sec) (kbit/sec) (kbit/sec) (kbit/sec) ----- ---------- ---------- ...

  • Page 586

    Xstack ® dgs-3120 series managed switch cli reference guide 582 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 to configure the ports 1:1-1:10 cos bandwidth queue 1 min rate to 13...

  • Page 587

    Xstack ® dgs-3120 series managed switch cli reference guide 583 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 min rate(kbit/sec) max rate(kbit/sec) 0 640 no limit 1 640 no limit 2 640 no limi...

  • Page 589

    Xstack ® dgs-3120 series managed switch cli reference guide 585 parameters - (optional) specify a range of ports to be displayed. If no parameter specified, system will display all ports scheduling configurations. Restrictions none. Example to display the traffic scheduling parameters for each cos q...

  • Page 590

    Xstack ® dgs-3120 series managed switch cli reference guide 586 example to show scheduling mechanism: dgs-3120-24tc:admin#show scheduling_mechanism command: show scheduling_mechanism port mode ----- ------ 1:1 strict 1:2 strict 1:3 strict 1:4 strict 1:5 strict 1:6 strict 1:7 strict 1:8 strict 1:9 st...

  • Page 591

    Xstack ® dgs-3120 series managed switch cli reference guide 587 priority queues available. They are numbered between 0 (the lowest priority) and 7 (the highest priority). Restrictions only administrator, operator and power-user level users can issue this command. Example to configure the 802.1p user...

  • Page 592

    Xstack ® dgs-3120 series managed switch cli reference guide 588 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 -> priority-5 -> priority-6 -> priority-7 -> dgs-3120-24tc:admin#...

  • Page 593

    Xstack ® dgs-3120 series managed switch cli reference guide 589 dgs-3120-24tc:admin# config 802.1p default_priority all 5 command: config 802.1p default_priority all 5 success. Dgs-3120-24tc:admin# 62-12 show 802.1p default_priority description this command is used to display the current configured ...

  • Page 594

    Xstack ® dgs-3120 series managed switch cli reference guide 590 dgs-3120-24tc:admin# show 802.1p default_priority 1:1-1:10 command: show 802.1p default_priority 1:1-1:10 port priority effective priority ---- ----------- ------------------ 1:1 5 5 1:2 5 5 1:3 5 5 1:4 5 5 1:5 5 5 1:6 5 5 1:7 5 5 1:8 5...

  • Page 595

    Xstack ® dgs-3120 series managed switch cli reference guide 591 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# disable hol_prevention com...

  • Page 596

    Xstack ® dgs-3120 series managed switch cli reference guide 592 dgs-3120-24tc:admin# show hol_prevention command: show hol_prevention device hol prevention state: enabled dgs-3120-24tc:admin# 62-16 config dscp trust description this command is used to configure the state of dscp trust per port. When...

  • Page 597

    Xstack ® dgs-3120 series managed switch cli reference guide 593 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#sh...

  • Page 598

    Xstack ® dgs-3120 series managed switch cli reference guide 594 parameters - enter the list of port used for this configuration here. All - specify that all the ports will be included in this configuration. Dscp_priority - specify a list of dscp value to be mapped to a specific priority. - enter the...

  • Page 599

    Xstack ® dgs-3120 series managed switch cli reference guide 595 dscp_dscp - specify a list of 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 config...

  • Page 601

    Xstack ® dgs-3120 series managed switch cli reference guide 597 dgs-3120-24tc:admin# enable rspan command: enable rspan success. Dgs-3120-24tc:admin# 63-2 disable rspan description this command is used to disable the rspan function. Format disable rspan parameters none. Restrictions only administrat...

  • Page 602

    Xstack ® dgs-3120 series managed switch cli reference guide 598 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 vlan vlan_name v2 succes...

  • Page 603

    Xstack ® dgs-3120 series managed switch cli reference guide 599 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 3 command: delete rsp...

  • Page 604

    Xstack ® dgs-3120 series managed switch cli reference guide 600 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 add ports 1:2-1:5 rx c...

  • Page 605

    Xstack ® dgs-3120 series managed switch cli reference guide 601 - 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 rspa...

  • Page 607

    Xstack ® dgs-3120 series managed switch cli reference guide 603 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#.

  • Page 609

    Xstack ® dgs-3120 series managed switch cli reference guide 605 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-3120-24tc:admin# 65-2...

  • Page 611

    Xstack ® dgs-3120 series managed switch cli reference guide 607 example to create a backup schedule on time range "range_1": dgs-3120-24tc:admin#create backup config time_range range_1 filename c:/bk- confi g-1 command: create backup config time_range range_1 filename c:/bk-config-1 success. Dgs-312...

  • Page 613

    Xstack ® dgs-3120 series managed switch cli reference guide 609 example to show all backup schedules: dgs-3120-24tc:admin#show backup command: show backup backup schedule entry 1 time range : range_1 type : configuration filename : c:/bk-config-1 state : disabled total entries1 dgs-3120-24tc:admin# ...

  • Page 614

    Xstack ® dgs-3120 series managed switch cli reference guide 610 dgs-3120-24tc:admin#create execute_config time_range range-1 config c:/vlan- config state enable command: create execute_config time_range range-1 config c:/vlan-config state enable success. Dgs-3120-24tc:admin# 66-6 config execute_conf...

  • Page 616

    Xstack ® dgs-3120 series managed switch cli reference guide 612 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 entries1 dgs-3120-24tc:admin# 66-9 ...

  • Page 618

    Xstack ® dgs-3120 series managed switch cli reference guide 614 example to enable ssh server public key algorithm: dgs-3120-24tc:admin#show ssh server command: show ssh server the ssh server configuration maximum session : 8 connection timeout : 120 authentication fail attempts : 2 rekey timeout : n...

  • Page 619

    Xstack ® dgs-3120 series managed switch cli reference guide 615 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 cast128 : enabled...

  • Page 620

    Xstack ® dgs-3120 series managed switch cli reference guide 616 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# 67-4 show ssh authmode description this command is us...

  • Page 622

    Xstack ® dgs-3120 series managed switch cli reference guide 618 example to show user information about ssh configuration: dgs-3120-24tc:admin# show ssh user authmode command: show ssh user authmode current accounts username authmode hostname hostip ------------- ------------- ------------ ----------...

  • Page 623

    Xstack ® dgs-3120 series managed switch cli reference guide 619 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# 67-8 enable ssh description this command is used to e...

  • Page 624

    Xstack ® dgs-3120 series managed switch cli reference guide 620 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:admin# 67-10 show ssh s...

  • Page 626

    Xstack ® dgs-3120 series managed switch cli reference guide 622 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:admin# 68-2 enable ssl de...

  • Page 627

    Xstack ® dgs-3120 series managed switch cli reference guide 623 dgs-3120-24tc:admin# enable ssl command: enable ssl success. Dgs-3120-24tc:admin# note: web will be disabled when ssl is enabled. 68-3 disable ssl description this command is used to disable ssl feature and supported ciphercuites. Using...

  • Page 628

    Xstack ® dgs-3120 series managed switch cli reference guide 624 dgs-3120-24tc:admin# disable ssl command: disable ssl success. Dgs-3120-24tc:admin# 68-4 show ssl description this command is used to display the certificate status. User must download specified certificate type according to desired key...

  • Page 629

    Xstack ® dgs-3120 series managed switch cli reference guide 625 68-5 show ssl cachetimeout description this command is used to show cahce timeout value which is designed for dlktimer library to remove the session id after expired. In order to support the resume session feature, the ssl library keep ...

  • Page 630

    Xstack ® dgs-3120 series managed switch cli reference guide 626 restrictions none. Example to configure the ssl cache timeout value to 60: dgs-3120-24tc:admin# config ssl cachetimeout 60 commands: config ssl cachetimeout 60 success. Dgs-3120-24tc:admin#.

  • Page 632

    Xstack ® dgs-3120 series managed switch cli reference guide 628 been sampled that will be encapsulated and forwarded to the server. If not specified, the default value is 128. - enter the maximum header size here. This value must be between 18 and 256. Restrictions only administrator and operator-le...

  • Page 633

    Xstack ® dgs-3120 series managed switch cli reference guide 629 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 success. Dgs-3120-24tc:...

  • Page 634

    Xstack ® dgs-3120 series managed switch cli reference guide 630 parameters ports - specify the list of ports to be configured. - enter the list of ports that will be used for this configuration here. All - specify all ports on the switch. Analyzer_server_id - the id of a analyzer server. - enter the...

  • Page 635

    Xstack ® dgs-3120 series managed switch cli reference guide 631 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 success. Dgs-3120-24tc:adm...

  • Page 638

    Xstack ® dgs-3120 series managed switch cli reference guide 634 parameters analyzer_server - the id of analyzer server that to be deleted. - enter the analyzer server id value here. This value must be between 1 and 4. Restrictions only administrator and operator-level users can issue this command. E...

  • Page 639

    Xstack ® dgs-3120 series managed switch cli reference guide 635 69-11 disable sflow description this command is used to disable the sflow function on the switch. Format disable sflow parameters none. Restrictions only administrator and operator-level users can issue this command. Example disable the...

  • Page 640

    Xstack ® dgs-3120 series managed switch cli reference guide 636 example to show the sflow information: dgs-3120-24tc:admin#show sflow command: show sflow sflow version : v5 sflow address : 10.90.90.90 sflow state : disabled dgs-3120-24tc:admin# 69-13 show sflow flow_sampler description this command ...

  • Page 641

    Xstack ® dgs-3120 series managed switch cli reference guide 637 69-14 show sflow counter_poller description this command is used to display the sflow counter pollers which have been configured for port. Format show sflow counter_poller parameters none. Restrictions none. Example to show the sflow co...

  • Page 642

    Xstack ® dgs-3120 series managed switch cli reference guide 638 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 ------------------------------ ser...

  • Page 643: Command List

    Xstack ® dgs-3120 series managed switch cli reference guide 639 chapter 70show technical support command list show tech_support upload tech_support_totftp 70-1 show tech_support description this command is especially used by the technical support personnel to dump the device overall operation inform...

  • Page 644

    Xstack ® dgs-3120 series managed switch cli reference guide 640 dgs-3120-24tc:admin# show tech_support command: show tech_support #------------------------------------------------------------------------------- # dgs-3120-24tc gigabit ethernet switch # technical support information # # firmware: bui...

  • Page 645

    Xstack ® dgs-3120 series managed switch cli reference guide 641 • system log • running configuration • layer 1 information • layer 2 information • layer 3 information • application • os status • controller’s status this command can be interrupted by ctrl - c or esc when it is executing. Format uploa...

  • Page 647

    Xstack ® dgs-3120 series managed switch cli reference guide 643 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:admin# 71-3 config sm...

  • Page 648

    Xstack ® dgs-3120 series managed switch cli reference guide 644 example to configure a 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-24tc:admin#config smtp ...

  • Page 649

    Xstack ® dgs-3120 series managed switch cli reference guide 645 format show smtp parameters none. Restrictions none. Example to display the current smtp information: dgs-3120-24tc:admin#show smtp command: show smtp smtp status : disabled smtp server address : 172.18.208.9 smtp server port : 25 self ...

  • Page 650

    Xstack ® dgs-3120 series managed switch cli reference guide 646 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 content:e-mail content s...

  • Page 652

    Xstack ® dgs-3120 series managed switch cli reference guide 648 use an snmp community string to define the relationship between the snmp manager and the agent. The community string acts like a password to permit access to the agent on the switch. You can specify one or more of the following characte...

  • Page 653

    Xstack ® dgs-3120 series managed switch cli reference guide 649 format delete snmp community parameters community - community string will be deleted. - enter the community string value here. This value can be up to 32 characters long. Restrictions only administrator-level users can issue this comman...

  • Page 654

    Xstack ® dgs-3120 series managed switch cli reference guide 650 dgs-3120-24tc:admin# show snmp community command: show snmp community snmp community table community name view name access right ------------------------------- ---------------------- ------------ private communityview read_write public...

  • Page 655

    Xstack ® dgs-3120 series managed switch cli reference guide 651 des - specify that the des encryption will be used for the privacy key. - enter the des privacy key here. This value must be 32 characters long. Restrictions only administrator-level users can issue this command. Example to create a snm...

  • Page 656

    Xstack ® dgs-3120 series managed switch cli reference guide 652 72-6 show snmp user description this command is used to display information on each snmp username in the group username table. Format show snmp user parameters none. Restrictions none. Example to show snmp user: dgs-3120-24tc:admin# sho...

  • Page 657

    Xstack ® dgs-3120 series managed switch cli reference guide 653 v2c - the second least secure of the possible security models. V3 - the most secure of the possible. Noauth_nopriv - neither support packet authentication nor encrypting. Auth_nopriv - support packet authentication. Auth_priv - support ...

  • Page 658

    Xstack ® dgs-3120 series managed switch cli reference guide 654 dgs-3120-24tc:admin# delete snmp group group123 command: delete snmp group group123 success. Dgs-3120-24tc:admin# 72-9 show snmp groups description this command is used to display the names of groups on the switch and the security model...

  • Page 659

    Xstack ® dgs-3120 series managed switch cli reference guide 655 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 model : snmpv1 securiy level : noauth...

  • Page 660

    Xstack ® dgs-3120 series managed switch cli reference guide 656 - object-identified tree, mib tree. View_type - specify the access type of the mib tree in this view. Included - includes for this view. Excluded - excluded for this view. Restrictions only administrator-level users can issue this comma...

  • Page 661

    Xstack ® dgs-3120 series managed switch cli reference guide 657 72-12 show snmp view description this command is used to display the snmp view record. Format show snmp view {} parameters view - (optional) view name of the user who likes to show. - enter the view name here. The name can be up to 32 c...

  • Page 662

    Xstack ® dgs-3120 series managed switch cli reference guide 658 parameters host - specify the recipient for which the traps are targeted. - the ip address of the recipient for which the traps are targeted. V6host - specify the ipv6 host address to which the trap packet will be sent. (ei mode only) -...

  • Page 663

    Xstack ® dgs-3120 series managed switch cli reference guide 659 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# 72-15 show snmp host description this command is used to display the recipient for w...

  • Page 664

    Xstack ® dgs-3120 series managed switch cli reference guide 660 72-16 show snmp v6host (ei mode only) description this command is used to display the recipient for which the traps are targeted. Format show snmp v6host {} parameters v6host - (optional) specify the ipv6 host address. - enter the ipv6 ...

  • Page 665

    Xstack ® dgs-3120 series managed switch cli reference guide 661 72-17 config snmp engineid description this command is used to configure a identifier for the snmp engine on the switch. Format config snmp engineid parameters engineid - identify for the snmp engine on the switch. It is octet string ty...

  • Page 666

    Xstack ® dgs-3120 series managed switch cli reference guide 662 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# 72-19 enable snmp description this command is used to enable the snm...

  • Page 667

    Xstack ® dgs-3120 series managed switch cli reference guide 663 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# 72-21 config snmp system_na...

  • Page 668

    Xstack ® dgs-3120 series managed switch cli reference guide 664 72-22 config snmp system_location description this command is used to enter a description of the location of the switch. Format config snmp system_location {} parameters system_location - a maximum of 128 characters is allowed. And null...

  • Page 669

    Xstack ® dgs-3120 series managed switch cli reference guide 665 dgs-3120-24tc:admin# config snmp system_contact "mis department ii" command: config snmp system_contact "mis department ii" success. Dgs-3120-24tc:admin# 72-24 enable snmp traps description this command is used to enable snmp trap suppo...

  • Page 670

    Xstack ® dgs-3120 series managed switch cli reference guide 666 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 success. Dgs-3120-24tc:a...

  • Page 671

    Xstack ® dgs-3120 series managed switch cli reference guide 667 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: disable snmp authentica...

  • Page 672

    Xstack ® dgs-3120 series managed switch cli reference guide 668 72-29 disable snmp linkchange_traps description this command is used to configure the sending of linkchange traps. Format disable snmp linkchange_traps parameters none. Restrictions only administrator and operator-level users can issue ...

  • Page 673

    Xstack ® dgs-3120 series managed switch cli reference guide 669 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# 72-31 config snmp cold...

  • Page 674

    Xstack ® dgs-3120 series managed switch cli reference guide 670 parameters enable - enable the trap of the warmstart event. The default state is enabled. Disable - disable the trap of the warmstart event. Restrictions only administrator-level users can issue this command. Example to configure the tr...

  • Page 675

    Xstack ® dgs-3120 series managed switch cli reference guide 671 dgs-3120-24tc:admin#show snmp traps command: show snmp traps snmp traps : enabled authenticate trap : enabled linkchange traps : enabled coldstart traps : enabled warmstart traps : enabled dgs-3120-24tc:admin# 72-34 config rmon trap des...

  • Page 676

    Xstack ® dgs-3120 series managed switch cli reference guide 672 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 alarm trap : enabled rmon f...

  • Page 678

    Xstack ® dgs-3120 series managed switch cli reference guide 674 73-2 disable sim description this command is used to disable single ip management on the switch. Format disable sim parameters none. Restrictions only administrator, operator and power-user level users can issue this command. Example to...

  • Page 679

    Xstack ® dgs-3120 series managed switch cli reference guide 675 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.00.010 device name : mac address : 00-01-02-03-04-00 capabilities : l2 platfor...

  • Page 680

    Xstack ® dgs-3120 series managed switch cli reference guide 676 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-0...

  • Page 681

    Xstack ® dgs-3120 series managed switch cli reference guide 677 dgs-3120-24tc:admin# show sim neighbor command: show sim neighbor neighbor table port mac address role ------ ------------------ --------- 23 00-35-26-00-11-99 commander 23 00-35-26-00-11-91 member 24 00-35-26-00-11-90 candidate total e...

  • Page 684

    Xstack ® dgs-3120 series managed switch cli reference guide 680 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: config sim hold_time 2...

  • Page 685

    Xstack ® dgs-3120 series managed switch cli reference guide 681 dgs-3120-24tc:admin# download sim_ms configuration_from_tftp 10.55.47.1 d:\dwl600x.Tfp members 1 commands: download sim_ms configuration_from_tftp 10.55.47.1 d:\dwl600x.Tfp members 1 this device is updating configuration. Please wait se...

  • Page 686

    Xstack ® dgs-3120 series managed switch cli reference guide 682 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 members 1 command: up...

  • Page 688

    Xstack ® dgs-3120 series managed switch cli reference guide 684 74-2 config box_id description this command is used to configure the box id. By default, the box id is automatically assigned by the system based topology election results. Administrators can assign box ids statically. The new box id wi...

  • Page 689

    Xstack ® dgs-3120 series managed switch cli reference guide 685 message 2: stack topology status: new device is detected; hot insert may happen after n seconds. When this message is shown, it means hot insert of new device is detected. The stack system will do the hot insert action after the timer r...

  • Page 690

    Xstack ® dgs-3120 series managed switch cli reference guide 686 dgs-3120-24tc:admin#show stack_information command: show stack_information topology :duplex_chain my box id :1 master id :1 box count :1 force master role: disabled trap state :enabled log state :enabled box user prio- prom runtime h/w ...

  • Page 691

    Xstack ® dgs-3120 series managed switch cli reference guide 687 dgs-3120-24tc:admin#show stack_device command: show stack_device box id box type h/w version serial number ------ ---------------- ----------- -------------------- 1 dgs-3120-24tc a1 abcd1234 dgs-3120-24tc:admin# 74-5 config stacking_mo...

  • Page 692

    Xstack ® dgs-3120 series managed switch cli reference guide 688 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 stacking mode : enabled ...

  • Page 693

    Xstack ® dgs-3120 series managed switch cli reference guide 689 dgs-3120-24tc:admin# config stacking force_master_role state enable command: config stacking force_master_role state enable success. Dgs-3120-24tc:admin# 74-8 config stacking trap state description this command is used to configure trap...

  • Page 694

    Xstack ® dgs-3120 series managed switch cli reference guide 690 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 log state enable succes...

  • Page 696

    Xstack ® dgs-3120 series managed switch cli reference guide 692 dgs-3120-24tc:admin# config syslog source_ipif none command: config syslog source_ipif none success dgs-3120-24tc:admin# 75-2 show syslog source_ipif description this command is used to display the syslog source ip interface. Format sho...

  • Page 697

    Xstack ® dgs-3120 series managed switch cli reference guide 693 parameters ipif - specify the ip interface name. If only specify this parameter, the least ipv4 address and the smallest ipv6 address of ipif_name will be used as source ip addresses. - enter the ip interface name here. This name can be...

  • Page 698

    Xstack ® dgs-3120 series managed switch cli reference guide 694 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 : system ipv4 address : none dgs-3120-24tc:admin#.

  • Page 701

    Xstack ® dgs-3120 series managed switch cli reference guide 697 dgs-3120-24tc:admin#show log index 1-3 command: show log index 1-3 index date time level log text ----- ---------- -------- ------- ---------------------------------------------- 3 2011-05-10 04:06:40 crit(2) unit 1, right side fan 2 fa...

  • Page 702

    Xstack ® dgs-3120 series managed switch cli reference guide 698 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: enable syslog success. ...

  • Page 703

    Xstack ® dgs-3120 series managed switch cli reference guide 699 76-6 show syslog description this command is used to display the syslog protocol global state. Format show syslog parameters none. Restrictions none. Example to display the syslog protocol global state: dgs-3120-24tc:admin# show syslog ...

  • Page 704

    Xstack ® dgs-3120 series managed switch cli reference guide 700 emergency - severity level 0 alert - severity level 1 critical - severity level 2 error - severity level 3 warning - severity level 4 notice - severity level 5 informational - severity level 6 debug - severity level 7 - enter the severi...

  • Page 706

    Xstack ® dgs-3120 series managed switch cli reference guide 702 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# 76-9 delete syslog host description this command is used to delete th...

  • Page 707

    Xstack ® dgs-3120 series managed switch cli reference guide 703 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: disabled host 1 ip address : ...

  • Page 708

    Xstack ® dgs-3120 series managed switch cli reference guide 704 dgs-3120-24tc:admin# config log_save_timing on_demand command: config log_save_timing on_demand success. Dgs-3120-24tc:admin# 76-12 show log_save_timing description this command is used to show the method for saving the log. Format show...

  • Page 709

    Xstack ® dgs-3120 series managed switch cli reference guide 705 parameters unit - (optional) the attack log messages on the specified unit will be displayed. If unit id is specified, then it will be referred to as the master unit. - enter the unit id value here. This value must be between 1 and n. I...

  • Page 710

    Xstack ® dgs-3120 series managed switch cli reference guide 706 dgs-3120-24tc:admin# clear attack_log command: clear attack_log success. Dgs-3120-24tc:admin#.

  • Page 712

    Xstack ® dgs-3120 series managed switch cli reference guide 708 77-2 show system_severity description this command is used to display the severity level controls for the system. Format show system_severity parameters none. Restrictions none. Example to show severity level control for system: dgs-312...

  • Page 715

    Xstack ® dgs-3120 series managed switch cli reference guide 711 restrictions 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: download firmware_fromtftp 10.54.71.1 src_fi...

  • Page 716

    Xstack ® dgs-3120 series managed switch cli reference guide 712 unit - (optional) specify which unit on the stacking system. If it is not specified, it refers to the master unit. - enter the stacking system unit id here. Src_file - (optional) used to identify the parameter “path_filename”. - the pat...

  • Page 717

    Xstack ® dgs-3120 series managed switch cli reference guide 713 - enter the unit id. Firmware_totftp – specify that the firmware file 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 - used to identify the param...

  • Page 718

    Xstack ® dgs-3120 series managed switch cli reference guide 714 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 src_file c:/config.Cfg connecting to server................... Done. Uploa...

  • Page 720

    Xstack ® dgs-3120 series managed switch cli reference guide 716 dgs-3120-24tc:admin# config sntp primary 10.1.1.1 secondary 10.1.1.2 poll- interval 30 command: config sntp primary 10.1.1.1 secondary 10.1.1.2 poll-interval 30 success. Dgs-3120-24tc:admin# 80-2 show sntp description this command is us...

  • Page 721

    Xstack ® dgs-3120 series managed switch cli reference guide 717 parameters none. Restrictions only administrator and operator-level users can issue this command. Example to enable sntp: dgs-3120-24tc:admin# enable sntp command: enable sntp success. Dgs-3120-24tc:admin# 80-4 disable sntp description ...

  • Page 722

    Xstack ® dgs-3120 series managed switch cli reference guide 718 format config time parameters - specify the system clock date. An example would look like this: '30jun2010'. - specify the system clock time. An example would look like this: '12:00:00'. Restrictions only administrator and operator-leve...

  • Page 723

    Xstack ® dgs-3120 series managed switch cli reference guide 719 example to configure time_zone: dgs-3120-24tc:admin# config time_zone operator + hour 2 min 30 command: config time_zone operator + hour 2 min 30 success. Dgs-3120-24tc:admin# 80-7 config dst description this command is used to configur...

  • Page 724

    Xstack ® dgs-3120 series managed switch cli reference guide 720 annual - set the daylight saving time to annual mode. S_date, e_date - (optional) configure the start /end date of daylight saving time. - enter the starting date of daylight saving time here. This range must be between 1 an 31. - enter...

  • Page 725

    Xstack ® dgs-3120 series managed switch cli reference guide 721 restrictions none. Example to show time: dgs-3120-24tc:admin#show time command: show time current time source : system clock boot time : 9 may 2011 06:20:55 current time : 9 may 2011 07:46:10 time zone : gmt +00:00 daylight saving time ...

  • Page 727

    Xstack ® dgs-3120 series managed switch cli reference guide 723 dgs-3120-24tc:admin# traceroute 10.48.74.121 probe 3 command: traceroute 10.48.74.121 probe 3 1 2 3 trace complete. Dgs-3120-24tc:admin# 81-2 traceroute6 (ei mode only) description this command is used to trace the ipv6 routed path betw...

  • Page 728

    Xstack ® dgs-3120 series managed switch cli reference guide 724 dgs-3120-24tc:admin# traceroute6 3000::1 probe 3 command: traceroute6 3000::1 probe 3 1 2 3 trace complete. Dgs-3120-24tc:admin# trace the ipv6 routed path between the switch and 1210:100::11 with port 40000: dgs-3120-24tc:admin# tracer...

  • Page 730

    Xstack ® dgs-3120 series managed switch cli reference guide 726 countdown - (optional) timer for shutdown mode. If a port enters the shutdown rx state and this timer runs out, port will be shutdown forever. The parameter is not applicable if “drop” (mode) is specified for the “action” parameter. - 0...

  • Page 731

    Xstack ® dgs-3120 series managed switch cli reference guide 727 example to enable both the occurred mode and cleared mode traffic control traps: dgs-3120-24tc:admin# config traffic trap both command: config traffic trap both success. Dgs-3120-24tc:admin# 82-3 show traffic control description this co...

  • Page 732

    Xstack ® dgs-3120 series managed switch cli reference guide 728 dgs-3120-24tc:admin#show traffic control 1-10 command: show traffic control 1:1-1:10 traffic control trap : [none] traffic control log : enabled traffic control auto recover time : 0 minutes port thres broadcast multicast unicast action...

  • Page 733

    Xstack ® dgs-3120 series managed switch cli reference guide 729 dgs-3120-24tc:admin# config traffic control log state enable command: config traffic control log state enable success. Dgs-3120-24tc:admin# 82-5 config traffic control auto_recover_time description this command is used to configure the ...

  • Page 735

    Xstack ® dgs-3120 series managed switch cli reference guide 731 format show traffic_segmentation {} parameters - (optional) specify a range of ports to be displayed. If no parameter is specified, the system will display all current traffic segmentation tables. Restrictions none. Example to display t...

  • Page 737

    Xstack ® dgs-3120 series managed switch cli reference guide 733 dgs-3120-24tc:admin# create trusted_host 10.48.74.121 command: create trusted_host 10.48.74.121 success. Dgs-3120-24tc:admin# 84-2 delete trusted_host description this command is used to delete a trusted host entry made using the create...

  • Page 739

    Xstack ® dgs-3120 series managed switch cli reference guide 735 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....

  • Page 741

    Xstack ® dgs-3120 series managed switch cli reference guide 737 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# 85-2 delete iproute des...

  • Page 742

    Xstack ® dgs-3120 series managed switch cli reference guide 738 parameters - (optional) specify the destination network address of the route to be displayed. (ei mode only) - (optional) specify the destination ip address of the route to be displayed. The longest prefix matched route will be displaye...

  • Page 743

    Xstack ® dgs-3120 series managed switch cli reference guide 739 restrictions none. Example to display network address forwarding table: dgs-3120-24tc:admin# show ipfdb command: show ipfdb interface ip address port learned ------------ --------------- ------ --------- system 10.1.1.101 1:3 dynamic sy...

  • Page 744

    Xstack ® dgs-3120 series managed switch cli reference guide 740 dgs-3120-24tc:admin#show route preference command: show route preference route preference settings protocol preference ---------- ---------- static 60 default 1 local 0 dgs-3120-24tc:admin#.

  • Page 746

    Xstack ® dgs-3120 series managed switch cli reference guide 742 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-3120-24tc:admin# 86-3 ...

  • Page 747

    Xstack ® dgs-3120 series managed switch cli reference guide 743 parameters - enter a list of ports used for the configuration here. All - specify that all the ports will be used for this configuration. State - specify that the port is a vlan trunk port or not. Enable - specify that the port is a vla...

  • Page 748

    Xstack ® dgs-3120 series managed switch cli reference guide 744 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. Port 6 is la-1 member ...

  • Page 749

    Xstack ® dgs-3120 series managed switch cli reference guide 745 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 vl...

  • Page 751

    Xstack ® dgs-3120 series managed switch cli reference guide 747 dgs-3120-24tc:admin# enable voice_vlan v2 command: enable voice_vlan v2 success. Dgs-3120-24tc:admin# 87-2 disable voice_vlan description the command is used to disable the voice vlan function on a switch. When the voice vlan function i...

  • Page 752

    Xstack ® dgs-3120 series managed switch cli reference guide 748 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: config voice_vlan priority ...

  • Page 753

    Xstack ® dgs-3120 series managed switch cli reference guide 749 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:admin# config voice_vlan oui add 00-0a-ob-00-00-00 ff-ff-ff-00- 00-00 comma...

  • Page 754

    Xstack ® dgs-3120 series managed switch cli reference guide 750 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:admin# to set the mode auto to voice vlan...

  • Page 755

    Xstack ® dgs-3120 series managed switch cli reference guide 751 dgs-3120-24tc:admin# config voice_vlan aging_time 60 command: config voice_vlan aging_time 60 success. Dgs-3120-24tc:admin# 87-7 config voice_vlan log state description this command is used to configure the log state for voice vlan. If ...

  • Page 756

    Xstack ® dgs-3120 series managed switch cli reference guide 752 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 name : v2 priority : 5 aging ti...

  • Page 757

    Xstack ® dgs-3120 series managed switch cli reference guide 753 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-0...

  • Page 758

    Xstack ® dgs-3120 series managed switch cli reference guide 754 dgs-3120-24tc:admin#show voice_vlan ports 1:1-1:5 command: show voice_vlan ports 1:1-1:5 ports status mode ----- --------- -------------- 1:1 disabled auto untagged 1:2 disabled auto untagged 1:3 disabled auto untagged 1:4 enabled auto ...

  • Page 759

    Xstack ® dgs-3120 series managed switch cli reference guide 755 dgs-3120-24tc:admin# show voice_vlan voice_device port 1:1-1:5 command: show voice_vlan voice_device ports 1:1-1:5 ports voice device start time last active time ----- ----------------- ---------------- ---------------- 1:1 00-e0-bb-00-...

  • Page 760

    Xstack ® dgs-3120 series managed switch cli reference guide 756 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-11 port id subtype : network address port ...

  • Page 762

    Xstack ® dgs-3120 series managed switch cli reference guide 758 dgs-3120-24tc:admin# enable wac command: enable wac success. Dgs-3120-24tc:admin# 88-2 disable wac description this command is used to disable wac function; all authentication entries related to wac will be deleted. Format disable wac p...

  • Page 763

    Xstack ® dgs-3120 series managed switch cli reference guide 759 all - configure all the switch ports’ wac state. State - (optional) to specify the port state of wac enable - specify that the port state of wac will be enabled. Disable - specify that the port state of wac will be disabled. Aging_time ...

  • Page 764

    Xstack ® dgs-3120 series managed switch cli reference guide 760 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 success. Dgs-3120-24tc:ad...

  • Page 765

    Xstack ® dgs-3120 series managed switch cli reference guide 761 88-6 config wac clear_default_redirpath description this command is used to clear the wac default redirect path. When the string is cleared, the client will not be redirected to another url after successful authentication. Format config...

  • Page 766

    Xstack ® dgs-3120 series managed switch cli reference guide 762 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# 88-8 config wac switch_http_port description this command is used to configure the h...

  • Page 767

    Xstack ® dgs-3120 series managed switch cli reference guide 763 88-9 create wac user description this command is used to create account for web-base access control. This user account is independent with login user account. If vlan is not specified, the user will not get a vlan assigned after the aut...

  • Page 768

    Xstack ® dgs-3120 series managed switch cli reference guide 764 parameters user - to specify the user name to be deleted - enter the username used here. This name can be up to 15 characters long. All_users - all user accounts in local db will be deleted. Restrictions only administrator, operator and...

  • Page 769

    Xstack ® dgs-3120 series managed switch cli reference guide 765 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 for confirmation: *** success. Dgs-3120-24tc:admin# ...

  • Page 771

    Xstack ® dgs-3120 series managed switch cli reference guide 767 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 red...

  • Page 772

    Xstack ® dgs-3120 series managed switch cli reference guide 768 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 idle time block time (min) (min) (sec) ------- ------------- ------------- ------------ -----...

  • Page 773

    Xstack ® dgs-3120 series managed switch cli reference guide 769 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 here. Restrictions none. Example supposed that port 1 is in host-based mode: 1. Mac...

  • Page 774

    Xstack ® dgs-3120 series managed switch cli reference guide 770 dgs-3120-24tc:admin#show wac auth_state ports 1:1-1:3 command: show wac auth_state ports 1:1-1:3 p:port-based pri: priority port mac address original state vid pri aging time/ idle rx vid block time time ------ -------------------- ----...

  • Page 775

    Xstack ® dgs-3120 series managed switch cli reference guide 771 password title : password logout window title : logout from the network notification : copyright @ 2011 d-link all rights reserved dgs-3120-24tc:admin# 88-19 clear wac auth_state description this command is used to clear the authenticat...

  • Page 776: Chapter 89Password Recovery

    Xstack ® dgs-3120 series managed switch cli reference guide 772 chapter 89password recovery command list enable password_recovery disable password_recovery show password_recovery 89-1 enable password_recovery description this command is used to enable the password recovery mode. Format enable passwo...

  • Page 777

    Xstack ® dgs-3120 series managed switch cli reference guide 773 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 command: disable password_recovery success. Dgs-3120-24tc...

  • Page 778: Appendix A

    Xstack ® dgs-3120 series managed switch cli reference guide 774 appendix a mitigating arp spoofing attacks using packet content acl how address resolution protocol works address resolution protocol (arp) is the standard method for finding a host’s hardware address (mac address) when only its ip addr...

  • Page 779

    Xstack ® dgs-3120 series managed switch cli reference guide 775 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 not in its forwarding table, the switch will learn pc a’s mac and the associated port...

  • Page 780

    Xstack ® dgs-3120 series managed switch cli reference guide 776 table 3 arp payload when pc b replies to the query, the “destination address” in the ethernet frame will be changed to pc a’s mac address. The “source address” will be changed to pc b’s mac address (see table 4). Table 4 ethernet frame ...

  • Page 781

    Xstack ® dgs-3120 series managed switch cli reference guide 777 denial of service – dos attack). Figure 4 the principle of arp spoofing is to send the fake, or spoofed arp messages to an ethernet network. Generally, the aim is to associate the attacker's or random mac address with the ip address of ...

  • Page 782

    Xstack ® dgs-3120 series managed switch cli reference guide 778 the hacker cheats the victim pc that it is a router and cheats the router that it is the victim. As 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 ...

  • Page 783

    Xstack ® dgs-3120 series managed switch cli reference guide 779 byte 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 byte 2 6 10 14 18 22 26 30 34 38 42 46 50 54 58 62 offset chunk offset chunk16 offset chunk17 offset chunk18 offset chunk19 offset chunk20 offset chunk21 offset chunk22 offset chunk23 of...

  • Page 784

    Xstack ® dgs-3120 series managed switch cli reference guide 780 for sender ip in arp packet. (brown in table 6, 31st and 32nd bytes) 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 configure access profile ...

  • Page 785: Appendix B

    Xstack ® dgs-3120 series managed switch cli reference guide 781 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 authentication method use...

  • Page 786

    Xstack ® dgs-3120 series managed switch cli reference guide 782 command parameters reset account the reset account command deletes all the previously created accounts. Reset password {} the reset password command resets the password of the specified user. If a username is not specified, the password...

  • Page 787: Appendix C

    Xstack ® dgs-3120 series managed switch cli reference guide 783 appendix c system log entries the following table lists all possible entries and their corresponding meanings that will appear in the system log of this switch. Category event description log information severity remark system system st...

  • Page 788

    Xstack ® dgs-3120 series managed switch cli reference guide 784 ) login by console, there will no ip information for logging. Firmware upgrade was unsuccessful [unit ,] firmware upgrade by console was unsuccessful! (username: , ip: ) warning "by console" and "ip: " are xor shown in log string, which...

  • Page 789

    Xstack ® dgs-3120 series managed switch cli reference guide 785 firmware successfully uploaded firmware successfully uploaded by console (username: , ip: ) informational "by console" and "ip: " are xor shown in log string, which means if user login by console, there will no ip information for loggin...

  • Page 790

    Xstack ® dgs-3120 series managed switch cli reference guide 786 login failed through web login failed through web (username: , ip: ) warning logout through web logout through web (username: , ip: ) informational web session timed out web session timed out (username: , ip: ) informational successful ...

  • Page 791

    Xstack ® dgs-3120 series managed switch cli reference guide 787 spanning tree port role changed spanning tree port role change (instance: , port:) -> informational spannnig tree instance created spanning tree instance created (instance:) informational spannnig tree instance deleted spanning tree ins...

  • Page 792

    Xstack ® dgs-3120 series managed switch cli reference guide 788 aaa local method method (username: ) successful login through web authenticated by aaa local method successful login through web from authenticated by aaa local method (username: ) informational login failed through web authenticated by...

  • Page 793

    Xstack ® dgs-3120 series managed switch cli reference guide 789 ) login failed through console authenticated by aaa server login failed through console authenticated by aaa server (username: ) warning there are no ip and mac if login by console. Login failed through console due to aaa server timeout...

  • Page 794

    Xstack ® dgs-3120 series managed switch cli reference guide 790 or improper configuration timeout or improper configuration (username: ) successful enable admin through console authenticated by aaa local_enable method successful enable admin through console authenticated by aaa local_enable method (...

  • Page 795

    Xstack ® dgs-3120 series managed switch cli reference guide 791 authenticated by aaa none method authenticated by aaa none method (username: ) successful enable admin through telnet authenticated by aaa none method successful enable admin through telnet from authenticated by aaa none method (usernam...

  • Page 796

    Xstack ® dgs-3120 series managed switch cli reference guide 792 server (username: ) enable admin failed through telnet due to aaa server timeout or improper configuration enable admin failed through telnet from due to aaa server timeout or improper configuration (username: ) warning successful enabl...

  • Page 797

    Xstack ® dgs-3120 series managed switch cli reference guide 793 radius server. () 802.1x 802.1x authentication failure. 802.1x authentication failure [for ] from (username: , port: , mac: ) warning 802.1x authentication successful. 802.1x authentication successful from (username: , port: , mac: ) in...

  • Page 798

    Xstack ® dgs-3120 series managed switch cli reference guide 794 the maximum user limit on whole device in 5 minutes wac when a client host authenticated successful. Wac authenticated user (username: , ip: ipv6address>, mac: , port: ) informational when a client host fails to authenticate. Wac unauth...

  • Page 799

    Xstack ® dgs-3120 series managed switch cli reference guide 795 safeguard engine safeguard engine is in normal mode [unit ] safeguard engine enters normal mode informational safeguard engine is in filtering packet mode [unit ] safeguard engine enters exhausted mode warning packet storm broadcast str...

  • Page 800

    Xstack ® dgs-3120 series managed switch cli reference guide 796 ) cfm cross-connect is detected cfm cross-connect. Vlan:, local(md level:, port , direction:) remote(mepid:, mac:) critical error cfm ccm packet is detected cfm error ccm. Md level:, vlan:, local(port , direction:) remote(mepid:, mac:) ...

  • Page 801

    Xstack ® dgs-3120 series managed switch cli reference guide 797 erps signal failure detected signal failure detected on node notice signal failure cleared signal failure cleared on node notice rpl owner conflict rpl owner conflicted on the ring warning command logging command logging : execute comma...

  • Page 802: Appendix D

    Xstack ® dgs-3120 series managed switch cli reference guide 798 appendix d trap log entries this table lists the trap logs found on the switch. Log entry description id swl2macnotification this trap indicate the mac addresses variation in the address table. Binding 1: swl2macnotifyinfo 1.3.6.1.4.1.1...

  • Page 803

    Xstack ® dgs-3120 series managed switch cli reference guide 799 action. Binding 1: swpktstormctrlportindex swpktstormcleared the trap is sent when the packet storm is cleared by packet storm mechanism. Binding 1: swpktstormctrlportindex 1.3.6.1.4.1.171.12.25.5.0.2 safeguardchgtoexhausted this trap i...

  • Page 804

    Xstack ® dgs-3120 series managed switch cli reference guide 800 binding 1. Swloopdetectportindex swvlanloopoccurred the trap is sent when a port with a vid loop occurs. Binding 1. Swloopdetectportindex 2. Swvlanloopdetectvid 1.3.6.1.4.1.171.12.41.10.0.3 swvlanlooprestart the trap is sent when a port...

  • Page 805

    Xstack ® dgs-3120 series managed switch cli reference guide 801 1. Dot1agcfmmdindex 2. Dot1agcfmmaindex 3. Dot1agcfmmepidentifier swcfmextlockoccurred a notification is generated when local mep enters lock status. Binding 1. Dot1agcfmmdindex 2. Dot1agcfmmaindex 3. Dot1agcfmmepidentifier 1.3.6.1.4.1....

  • Page 806

    Xstack ® dgs-3120 series managed switch cli reference guide 802 swpowerstatuschg power status change notification. Binding 1. Swpowerunitindex 2. Swpowerid 3. Swpowerstatus 1.3.6.1.4.1.171.12.11.2.2.2.0.1 swpowerfailure power failure notification. Binding 1. Swpowerunitindex 2. Swpowerid 3. Swpowers...

  • Page 807

    Xstack ® dgs-3120 series managed switch cli reference guide 803 1. Lldpremchassisidsubtype 2. Lldpremchassisid 3. Lldpxmedremdeviceclass dot3oamnonthresholdevent a dot3oamnonthresholdevent notification is sent when a local or remote non-threshold crossing event is detected. A local event is detected...

  • Page 808

    Xstack ® dgs-3120 series managed switch cli reference guide 804 2. Swsingleipmsmacaddr swsingleipmsnewroot the commander switch will send swsingleipmsnewroot notification to the indicated host when its member generates a new root notification. Binding 1. Swsingleipmsid 2. Swsingleipmsmacaddr 1.3.6.1...

  • Page 809

    Xstack ® dgs-3120 series managed switch cli reference guide 805 implementations of the snmpv2 must be capable of generating this trap, the snmpenableauthentraps object indicates whether this trap will be generated. Newroot the newroot trap indicates that the sending agent has become the new root of ...

  • Page 810: Appendix E

    Xstack ® dgs-3120 series managed switch cli reference guide 806 appendix e radius attributes assignment the radius attributes assignment on the switch is used in the following modules: 802.1x (port- based and host-based), mac-based access control, web-based access control (wac) and japanese web-base...

  • Page 811

    Xstack ® dgs-3120 series managed switch cli reference guide 807 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 attribute-specific field used to as...

  • Page 812

    Xstack ® dgs-3120 series managed switch cli reference guide 808 tag field value string field format note 0x01 vlan name (ascii) a tag field of greater than 0x1f is interpreted as the first octet of the following field. 0x02 vlan id (ascii) others (0x00, 0x03 ~ 0x1f, >0x1f) 1. When the switch receive...

  • Page 813

    Xstack ® dgs-3120 series managed switch cli reference guide 809 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 profile_id 6 add access_id auto_assign ethernet), a...