TP-Link TL-SG2216 TL-SG2424 V1 CLI Reference Guide

TP-Link TL-SG2216 Manual

TP-Link TL-SG2216 manual content summary:

  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 1
    TL-SG2216/TL-SG2424 Gigabit Smart Switch Rev: 1.0.0 1910010667
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 2
    COPYRIGHT & TRADEMARKS Specifications are subject to change without notice. is a registered trademark of TP-LINK TECHNOLOGIES CO., LTD. Other brands and product names are trademarks or registered trademarks of their respective holders. No part of the specifications may be reproduced
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 3
    allowed vlan...13 switchport pvid...14 switchport general egress-rule 14 show vlan ...15 show interface switchport ...15 Chapter 4 LAG Commands 16 interface link-aggregation ...16 interface range link-aggregation 16 link-aggregation ...17 link-aggregation hash-algorithm 18 description ...18 II
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 4
    interface link-aggregation 19 Chapter 5 User Manage Commands 20 user add ...20 user remove ...21 user modify status ...21 user modify type ...22 user modify password...22 user access-control disable 23 user access-control ip-based 23 user access-control mac-based 24 user access-control port
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 5
    ip address...43 ip management-vlan ...43 ip dhcp-alloc ...44 ip bootp-alloc ...44 reset ...45 reboot ...45 user-config backup ...45 user-config load...46 user-config save ...46 firmware ul-rate 57 port rate-limit ...57 port rate-limit disable ingress 58 port rate-limit disable egress 58 show
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 6
    Commands 68 mirror add ...68 mirror remove group ...69 mirror remove mirrored...69 show mirror...70 Chapter 12 Port Isolation Commands 71 port isolation ...71 show port isolation...71 Chapter 13 MSTP Commands 73 spanning-tree global ...73 spanning-tree common-config 74 spanning-tree region
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 7
    -config 91 show igmp-snooping vlan-config 92 show igmp-snooping multi-vlan 92 show igmp-snooping multi-ip-list 93 show igmp-snooping filter-ip-addr 93 show igmp-snooping port-filter 93 show igmp-snooping packet-stat 94 show igmp-snooping packet-stat-clear 94 Chapter 15 SNMP Commands 95 snmp
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 8
    snmp-rmon event owner...105 snmp-rmon event enable...105 snmp-rmon alarm config...106 snmp-rmon alarm owner...107 snmp-rmon alarm enable...108 show snmp global-config ...108 show snmp view ...109 show snmp group ...109 show snmp user ...109 show snmp community ...110 show snmp destination-host 110
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 9
    Interface). The device mentioned in this Guide stands for TL-SG2216/TL-SG2424 Gigabit Smart Switch. Overview of this Guide Chapter 1: Using the CLI Provide configuring the System information and System IP, reboot and reset the switch, upgrade the switch system and other operations. Chapter
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 10
    Chapter 13: MSTP Commands Provide information about the commands used for configuring the MSTP (Multiple Spanning Tree Protocol). Chapter 14: IGMP Commands Provide information about the commands used for configuring the IGMP Snooping (Internet Group Management Protocol Snooping). Chapter 15: SNMP
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 11
    CLI 1.1 Accessing the CLI You can log on to the switch and access the CLI by logging on to the switch remotely by a Telnet through an Ethernet port. To log on to the switch by a Telnet connection, please take the following steps: 1. Make sure the switch and the PC are in the same LAN. 2. Click
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 12
    Figure 1-3, and press the Enter button. Figure 1-3 Connecting to the Switch 5. Type the User name and Password (the factory default value for both of them is admin) and press the Enter be divided into Interface Ethernet, Interface link-aggregation and some other modes, which is shown as the
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 13
    Configuration mode. TP-LINK# TP-LINK(config)# TP-LINK(config-if)# TP-LINK(config-vlan)# Use the exit command to disconnect the switch Enter the EXEC mode. Enter exit command to return to Global Configuration mode. A port number must be specified in the interface command. Use the end command or
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 14
    ports. c). Interface link-aggregation: Configure parameters for a link-aggregation, such as broadcast storm. d). Interface range link-aggregation to monitor, configure and manage the switch in Privileged EXEC Mode, Global mode by using the enable command. In default case, no password is needed. In
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 15
    Conventions 1.4.1 Format Conventions The following conventions are used in this Guide:  Items in square brackets [ ] are optional  Items xx:xx:xx:xx  One or several values can be typed for a port-list or a vlan-list using comma to separate. Use a hyphen to designate a range of values
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 16
    password,which can contains 16 characters at most, composing digits, English letters and underdashes only. By default, it is empty. Command Mode Global Configuration Mode Example Set the super password as admin to access Privileged EXEC Mode from User EXEC Mode: TP-LINK(config)# enable password
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 17
    Mode from Privileged EXEC Mode. Syntax configure Command Mode Privileged EXEC Mode Example Access Global Configuration Mode from Privileged EXEC Mode: TP-LINK# configure TP-LINK(config)# exit Description The exit command is used to return to the previous Mode from the current Mode. Syntax exit
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 18
    Mode Example Return to Global Configuration Mode from Interface Configuration Mode, and then return to Privileged EXEC Mode: TP-LINK(config-if)# exit TP-LINK(config)#exit TP-LINK# end Description The end command is used to return to Privileged EXEC Mode. Syntax end Command Mode Any Configuration
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 19
    (Virtual Local Area Network) technology is developed for the switch to divide the LAN into multiple logical LANs flexibly. Hosts Mode Global Configuration Mode Example Access VLAN Configuration Mode: TP-LINK(config)# vlan database TP-LINK(config-vlan)# vlan Description The vlan command is used to
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 20
    command. Syntax description descript no description Parameter descript --String to describe the VLAN, which contains 16 characters at most. Command Mode Interface Configuration Mode(interface vlan) Example Specify the description string of the VLAN 2 as "vlan2": TP-LINK(config)# interface vlan 2 12
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 21
    Command Mode Interface Configuration Mode ( interface ethernet / interface range ethernet ) Example Specify the Link Type of port 5 as general: TP-LINK(config)# interface ethernet 5 TP-LINK(config-if)#switchport type general switchport allowed vlan Description The switchport allowed vlan command is
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 22
    PVID for the switch ports. Syntax switchport pvid vlan-id Parameter vlan-id -- VLAN ID, ranging from 1 to 4094. Command Mode Interface Configuration Mode (interface ethernet / interface range ethernet ) Example Specify the PVID of port 2 as 2: TP-LINK(config)# interface ethernet 2 TP-LINK(config-if
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 23
    the specified port or all ports. Syntax show interface switchport [port-num] Parameter port-num -- The port number. By default, display the VLAN configuration information of all ports. Command Mode Any Configuration Mode Example Display the VLAN configuration information of all ports: TP-LINK(config
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 24
    Configuration Mode Example Access the Interface Link-aggregation Mode and configure the aggregation group 1: TP-LINK(config)# interface link-aggregation 1 TP-LINK(config-if)# interface range link-aggregation Description The interface range link-aggregation command is used to access the Interface
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 25
    the Interface range Link-aggregation Mode and configure the aggregation group 1,4-6: TP-LINK(config)# interface range link-aggregation 1,4-6 TP-LINK(config-if)# link-aggregation Description The link-aggregation command is used to add the current Ethernet port to an aggregation group. To remove
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 26
    destination MAC addresses. src_dst_ip --The source and destination IP addresses. Command Mode Global Configuration Mode Example Configure the Aggregate Arithmetic for LAG as src_dst_mac: TP-LINK(config)# link-aggregation hash-algorithm src_dst_mac description Description The description command is
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 27
    -num] Parameter group-num --The LAG number, ranging from1 to 6. By default, the LAG configuration information of all the Ethernet ports is displayed. Command Mode Any Configuration Mode Example Display the LAG configuration information of all ports: TP-LINK(config)#show interface link-aggregation 19
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 28
    certain access level so as to protect the settings of the switch from being randomly changed. user add Description The user add Type a name for users' login, which contains 16 characters at most, composing digits, English letters and : TP-LINK(config)#user add tplink password password confirm-password
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 29
    . Syntax user remove user-name Parameter user-name -- An existed user name. Command Mode Global Configuration Mode Example Delete the user named tplink: TP-LINK(config)# user remove tplink user modify status Description The user modify status command is used to modify the status of the existing user
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 30
    Mode Example Change the access level of tplink to admin: TP-LINK(config)# user modify type tplink admin user modify password Description The The old password. new-password -- The new password, which contains 16 characters at most, composing digits, English letters and underdashes only. confirm
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 31
    disable Command Mode Global Configuration Mode Example Cancel the user access-control: TP-LINK(config)# user access-control disable user access-control ip-based Description The user access-control ip-based command is used to limit the IP-range of the users for login. Only the users within the
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 32
    IP address is 192.168.0.148: TP-LINK(config)# user access-control ip- TP-LINK(config)# user access-control mac-based 00:00:13:0A:00:01 user access-control port-based Description The user access-control port-based command is used to limit the ports for login. Only the users connected to these ports
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 33
    16. Command Mode Global Configuration Mode Example Configure the number of the users as Admin and Guest logging on as 5 and 3: TP-LINK(config)# user max-num 5 3 user idle-timeout Description The user idle-timeout command is used to configure the timeout time of the switch. To restore to the default
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 34
    -timeout Parameter minutes --The timeout time, ranging from 5 to 30 in minutes. By default, the value is 10. Command Mode Global Configuration Mode Example Configure the timeout time of the switch as 15 minutes: TP-LINK(config)# user idle-timeout 15 show user account-list Description The show user
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 35
    Command Mode Any Configuration Mode Example Display the security configuration information of the users: TP-LINK(config)# show user configuration 27
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 36
    be got by show logging buffer command. It will be lost when the switch is restarted. Syntax logging local buffer {level} [ disable | enable ] . By default, it is enabled. Command Mode Global Configuration Mode Example Enable the log buffer function and set the severity as 6: TP-LINK(config)# logging
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 37
    log. The information in the log file will not be lost after the switch is restarted and can be got by the show logging flash command. Syntax logging . By default, it is enabled. Command Mode Global Configuration Mode Example Enable the log file function and set the severity as 7: TP-LINK(config)#
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 38
    Parameter idx --The index of the log host. The switch supports 4 log hosts. host-ip -- The IP for the log host. level --The severity level of By default, it is disabled. Command Mode Global Configuration Mode Example Enable the log host 2 and set the IP address 192.168.0.148, the level 5: TP-LINK(
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 39
    logging loghost [index] Parameter index --The index of the log host whose configuration will be displayed. Display the configuration of all the log hosts by default. Command Mode Any Configuration Mode Example Display the configuration of the log host 2: TP-LINK(config)# show logging loghost 2 31
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 40
    severity level value. Display all the log information in the log buffer by default. Command Mode Any Configuration Mode Example Display the log information from level 0 to level 5 in the log buffer: TP-LINK(config)# show logging buffer level 5 show logging flash level Description The show logging
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 41
    Display the log information with the level marked 0~3 in the log file: TP-LINK(config)# show logging flash level 3 33
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 42
    the learned MAC address will be out of the influence of the aging time and can only be deleted manually too. However, the learned entries will be saved even the switch is rebooted. status -- Enable or disable the Port Security function for a specified port. By default, this function is disabled. 34
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 43
    that can be learned on this port as 30: TP-LINK(config)# interface ethernet 1 TP-LINK(config-if)# bridge address port-security max-number 30 mode static or removed manually, independent of the aging time. In the stable networks, the static MAC address entries can facilitate the switch to reduce
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 44
    disabled. By default, this value is 300. Command Mode Global Configuration Mode Example Configure the aging time as 500 seconds: TP-LINK(config)# package to be forwarded. The filtering address can be added or removed manually, independent of the aging time. Syntax bridge address filtering {mac}
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 45
    Mode. Syntax show bridge port-security [port-num] Parameter port-num -- The port number of the switch. By default, the Port Security configuration of all ports is displayed. Command Mode Any Configuration Mode Example Display the Port Security configuration of port 2: TP-LINK(config)# show bridge
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 46
    Example Display the information of all Address entries: TP-LINK(config)# show bridge address all show bridge aging-time Description The show bridge aging-time aging-time Command Mode Any Configuration Mode Example Display the Aging Time of the MAC address: TP-LINK(config)# show bridge aging-time 38
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 47
    System IP, reboot and reset the switch, upgrade the switch default, it is empty. Command Mode Global Configuration Mode Example Configure the System Contact as www.tp-link.com.cn: TP-LINK(config)# system-descript contact-info www.tp-link.com.cn system-time manual Description The system-time manual
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 48
    Configure the system mode as manual, and the time is 12/20/2010 17:30:35 TP-LINK(config)# system-time manual 12/20/2010-17:30: are 4 options which are USA, Australia, European and New-Zealand respectively. The default value is European. Following are the time ranges of each option: USA First Sunday
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 49
    the daylight saving time as USA standard: TP-LINK(config)#system-time dst predefined USA system-time dst date Description The system-time dst date command is used to configure the one-off daylight saving time. The start date is in the current year by default. The time range of the daylight saving
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 50
    and the offset is 30 minutes: TP-LINK(config)# system-time dst date Apr 1 00:00 Oct 1 00:00 30 system-time dst recurring Description The system-time , HH:MM. offset -- The number of minutes to add during the daylight saving time. It is 60 minutes by default. Command Mode Global Configuration Mode 42
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 51
    Subnet Mask of the Switch. The default Subnet Mask is 255.255.255.0. gateway -- The Default Gateway of the Switch. By default, it is empty. Command Mode Global Configuration Mode Example Configure the system IP as 192.168.0.69 and the Subnet Mask as 255.255.255.0: TP-LINK(config)# ip address 192.168
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 52
    function. When this function is enabled, the switch will obtain IP from DHCP Client server. Syntax ip dhcp-alloc Command Mode Global Configuration Mode Example Enable the DHCP Client function: TP-LINK(config)# ip dhcp-alloc ip bootp-alloc Description The ip bootp-alloc command is used to obtain
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 53
    The reset command is used to reset the switch's software. After resetting, all configuration of the switch will restore to the factory defaults and your current settings will be lost. Syntax reset Command Mode Privileged EXEC Mode Example Reset the software of the Switch: TP-LINK# reset reboot
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 54
    server. Command Mode Privileged EXEC Mode Example Download the configuration file to the switch by TFTP server with the IP 192.168.0.148 and name this file config.cfg: TP-LINK# user-config load filename config.cfg ip-address 192.168.0.148 user-config save Description The user-config save command is
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 55
    Mode Privileged EXEC Mode Example Upgrade the switch system via the TFTP server with the IP 192.168.0.148: TP-LINK# firmware upgrade filename firmware.bin ip-address 192.168.0.148 ping Description The ping command is used to test the connectivity between the switch and one node of the network
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 56
    Privileged EXEC Mode Example Test the connectivity between the switch and the network device with the IP 192.168.0.131. If the destination device has not been found after 20 maxHops, the connection between the switch and the destination device is failed to establish: TP-LINK# tracert 192.168.0.131
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 57
    EXEC Mode Example Do a Internal-type loopback test for port 4: TP-LINK# loopback 4 internal show system-info Description The show system-info command is used to display System Description, Device Name, Device Location, System Contact, Hardware Version, Firmware Version, System Time, Run Time and so
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 58
    Command Mode Any Configuration Mode Example Display the IP Address of the system TP-LINK# show ip address show system-time Description The show system-time command is used to display the time information of the switch. Syntax show system-time Command Mode Any Configuration Mode Example Display
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 59
    The show system-time source command is used to display the time source of the switch. Syntax show system-time source Command Mode Any Configuration Mode Example Display the time source of the switch TP-LINK# show system-time source show system-time mode Description The show system-time mode command
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 60
    to be configured. Command Mode Global Configuration Mode Example Enter the Interface Configuration Mode and configure Ethernet port 2: TP-LINK(config)# interface ethernet 2 interface range ethernet Description The interface range ethernet command is used to enter the Interface Configuration Mode
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 61
    string -- Content of a port description, ranging from 1 to 16 characters. Command Mode Interface Configuration Mode(interface ethernet) Example Add a description Port #5 to port 5: TP-LINK(config)# interface ethernet 5 TP-LINK(config-if)# description Port #5 shutdown Description The shutdown
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 62
    the flow-control function for Ethernet port 5: TP-LINK(config)# interface ethernet 5 TP-LINK(config-if)# flow-control negotiation Description The negotiation command is used to configure the Negotiation Mode for an Ethernet port. To return to the default configuration, please use no negotiation
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 63
    Mode(interface ethernet / interface range ethernet) Example Configure the Negotiation Mode as 100M full-duplex for Ethernet port 5: TP-LINK(config)# interface ethernet 5 TP-LINK(config-if)# negotiation 100f storm-control Description The storm-control command is used to configure the Storm Control
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 64
    Mode Interface Configuration Mode(interface ethernet / interface range ethernet) Example Disable the Broadcast packets control for port 5: TP-LINK(config)# interface ethernet 5 TP-LINK(config-if)# storm-control disable bc-rate storm-control disable mc-rate Description The storm-control disable
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 65
    Mode(interface ethernet / interface range ethernet) Example Disable the UL-Frame control for port 5: TP-LINK(config)# interface ethernet 5 TP-LINK(config-if)# storm-control disable ul-rate port rate-limit Description The port rate-limit command is used to configure the Rate Limit for an Ethernet
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 66
    Configure the ingress-rate as 1Mbps and egress-rate as 10Mbps for port 5: TP-LINK(config)# interface ethernet 5 TP-LINK(config-if)# port rate-limit ingress 1024 egress 10240 port rate-limit disable ingress Description The port rate-limit disable ingress command is used to disable the ingress-rate
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 67
    interface status ethernet [port] Parameter port -- The port number selected to display the connective-status. By default, the connective-status of all ports is displayed. Command Mode Any Configuration Mode Example Display the connective-status of all Ethernet ports: TP-LINK(config)# show interface
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 68
    number selected to display the statistic information. By default, the statistic information of all ports is displayed. Command Mode Any Configuration Mode Example Display the statistic information of Ethernet port 3: TP-LINK(config)# show interface counters ethernet 3 show storm-control ethernet
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 69
    ports. Syntax show port rate-limit [port] Parameter port -- The port number selected to display the rate-limit information. By default, the rate-limit information of all ports is displayed. Command Mode Any Configuration Mode Example Display the rate-limit information of all Ethernet ports: TP-LINK
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 70
    Configure the priority of port 5 as 3: TP-LINK(config)# interface ethernet 5 TP-LINK(config-if)# qos 3 qos dot1p config Description The qos dot1p config command is used to configure the mapping relation between IEEE 802.1P Priority and Egress Queue. To return to the default configuration, please use
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 71
    are mapped based on port priority mode. Syntax qos default, the mapping relation between tag and the egress queue is: 0-TC1, 1-TC0, 2-TC0, 3-TC1, 4-TC2, 5-TC2, 6-TC3, 7-TC3 2. Among the priority levels TC0-TC3, the bigger value, the higher p r i o r i t y. Example Map tag value 0 to TC3: TP-LINK
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 72
    TP-LINK(config)# qos dscp enable qos dscp config Description The qos dscp config command is used to configure the mapping relation between DSCP Priority and 802.1P Priority. To return to the default is enabled; the untagged non-IP datagram are mapped based on port priority mode. Syntax qos dscp
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 73
    configure the Schedule Mode. To return to the default configuration, please use no qos scheduler command. When +wrr -- Strict-Priority + Weight Round Robin Mode. In this mode, the switch provides two scheduling groups, SP group and WRR group. Queues in SP group TP-LINK(config)# qos scheduler wrr 65
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 74
    -num] Parameter interface-num -- The Ethernet port selected to display the configuration. By default, information of all the ports is displayed. Command Mode Any Configuration Mode Example Display the configuration of QoS for port 5: TP-LINK# show qos port-based 5 show qos dot1p Description The show
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 75
    Syntax show qos dscp Command Mode Any Configuration Mode Example Display the configuration of DSCP Priority: TP-LINK# show qos dscp show qos scheduler Description The show qos scheduler command is used to display the schedule rule of the egress queues. Syntax show
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 76
    group. Command Mode Global Configuration Mode Example Configure port 3 as mirrored port, port 4 as mirroring port, the mirror mode as both and group number as 1 : TP-LINK(config)# mirror add 3 4 both 1 User Guidelines 1. The mirroring port is corresponding to current interface configuration mode
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 77
    be link-aggregation member. mirror remove group Description The mirror remove group command is used to remove mirror group. Syntax mirror remove group [group-num] Parameter group-num-- The group number of mirrior group. Command Mode Global Configuration Mode Example Remove mirror group 1: TP-LINK
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 78
    . Syntax show mirror [group-num] Parameter group-num -- The group number of mirrior group. Command Mode Any Configuration Mode Example Display configuration of mirror group 1: TP-LINK# show mirror 1 70
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 79
    to port 6 and port 13: TP-LINK(config)# interface range ethernet 1-2 TP-LINK(config-if)# port isolation 6,13 show port isolation Description The show port isolation command is used to display the forward portlist of a port or all ports. Syntax show port isolation [port] Parameter port -- The port
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 80
    Example Display the forward-list of port 6: TP-LINK# show port isolation 6 72
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 81
    is the interval to send BPDU packets, and used to test the links. Hello Time ranges from 1 to 10 in seconds and it is 2 by default. Otherwise, 2 * (Hello Time + 1)
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 82
    Max Hops as 15 hops: TP-LINK(config)# spanning-tree global port. By default, it is disabled. priority -- Port Priority, which must be multiple of 16 ranging from 0 to 240. By default, the port priority is 128. Port Priority is an important criterion on determining if the port connected to this port
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 83
    and then enable Edge Port: TP-LINK(config)# interface ethernet 1 TP-LINK(config-if)# spanning-tree common-config status enable pri 64 expath 100 inpath 100 edge enable spanning-tree region Description The spanning-tree region command is used to configure the region of MSTP. A switched network can be
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 84
    TP-LINK(config)# spanning-tree region r1 100 spanning-tree msti Description The spanning-tree msti command is used to configure MSTP Instance. To return to the default from 0 to 61440. By default, it is 32768. MSTI priority is an important criterion on determining if the switch will be chosen as the
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 85
    MSTI Priority as 4096: TP-LINK(config)# spanning-tree msti 1 status enable pri 4096 mapped 2-5,8 spanning-tree msti Description The spanning-tree msti command is used to configure MSTP Instance Port. To return to the default configuration of the corresponding Instance Port, please use no spanning
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 86
    TC-BPDUs received by the switch in a TC Protect Cycle. period -- TC Protect Cycle, ranging from 1 to 10 in seconds. By default, it is 5. Command Mode Global Configuration Mode Example Configure TC Threshold as 30 packets, and TC Protect Cycle as 10 seconds: TP-LINK(config)# spanning-tree tc-defend
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 87
    . By default, it is disabled. BPDU Filter is to prevent BPDUs flood in the STP network. Command Mode Interface Configuration Mode(interface ethernet / interface range ethernet) Example Enable Loop Protect, Root Protect, TC Protect, BPDU Protect, and BPDU Filter for port 2: TP-LINK(config)# interface
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 88
    of Spanning Tree: TP-LINK# show spanning-tree global-config show spanning-tree port-config Description The show spanning-tree port-config command is used to display the Port configuration of Spanning Tree. Syntax show spanning-tree port-config [port] Parameter port - - The port selected to display
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 89
    is displayed. Command Mode Any Configuration Mode Example Display the configuration of port 5: TP-LINK(config)# show spanning-tree port-config 5 show spanning-tree region Description The show spanning-tree region command is used to display the Region configuration of MSTP. Syntax show spanning-tree
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 90
    tree msti port {id} [port] Parameter id -- Instance ID, ranging from 1 to 8. port - - The port selected to display the configuration. By default, the configuration of all ports is displayed. Command Mode Any Configuration Mode Example Display the configuration of port 5 in Instance 1: TP-LINK(config
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 91
    port-defend [port] Parameter port -- The port selected to display the configuration. By default, the Port Protect configuration of all ports is displayed. Command Mode Any Configuration Mode Example Display the Port Protect configuration of port 2: TP-LINK(config)# show spanning-tree security port
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 92
    switch. By default, it is disabled. unknown-packet - - The operation for the switch to process unknown multicast, with pass and discard options. Command Mode Global Configuration Mode Example Enable IGMP Snooping function, and specify the operation to process unknown multicast as discard: TP-LINK
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 93
    for a port, the switch will immediately remove this port from the multicast group upon receiving IGMP leave messages. Command Mode Interface Configuration Mode(interface ethernet / interface range ethernet) Example Enable IGMP Snooping and Fast Leave function for port 5: TP-LINK(config)# interface
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 94
    Mode Global Configuration Mode Example Enable IGMP Snooping for VLAN 1, and configure Router Port Time as 200 seconds, Member Port Time as 100 seconds, Leave time as 10 seconds and Static Router Port as port 1: TP-LINK(config)# igmp-snooping vlan-config-add 1 rtime 200 mtime 100 ltime 10 rport
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 95
    . By default, it is 1. router-port -- Static Router Port, which is mainly used in the network with stable topology. Command Mode Global Configuration Mode Example Modify Router Port Time as 300 seconds, Member Port Time as 200 seconds, and Leave time as 15 seconds for VLAN 1: TP-LINK(config)# igmp
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 96
    , Member Port Time as 200 seconds, and Leave time as 15 seconds for VLAN 2: TP-LINK(config)# igmp-snooping multi-vlan-config enable 2 rtime 300 mtime 200 ltime 15 igmp-snooping static-entry-add Description The igmp-snooping static-entry-add command is used to create static multicast IP entry. To
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 97
    which correspond to VLAN 2, and configure the forward port as port 1: TP-LINK(config)# igmp-snooping static-entry-add 225.0.0.1 2 1 igmp-snooping filter-add Description The igmp-snooping filter-add command is used to configure the multicast IP-range desired to filter. To delete the corresponding
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 98
    10~225.0.0.12: TP-LINK(config)# igmp-snooping filter-config 20 225.0.0.10 225.0.0.12 igmp-snooping filter Description The igmp-snooping filter command is used to configure Port Filter. To return to the default configuration, please use no igmp-snooping filter command. When the switch receives IGMP
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 99
    range ethernet) Example Enable multicast filtering function for port 5, specify Action Mode as accept, bound IP-range 2, 3, 4, and specify the maximum number of multicast groups for port 5 to join in as 128: TP-LINK(config)# interface ethernet 5 TP-LINK(config-if)# igmp-snooping filter status enable
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 100
    Command Mode Any Configuration Mode Example Display the IGMP configuration of port 2: TP-LINK> show igmp-snooping port-config 2 show igmp-snooping vlan-config Description The show igmp-snooping vlan-config command is used to display the VLAN configuration of IGMP. Syntax show
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 101
    IP-Range table: TP-LINK(config)# show igmp-snooping filter-ip-addr show igmp-snooping port-filter Description The show igmp-snooping port-filter command is used to display the configuration of Multicast Port Filter. Syntax show igmp-snooping port-filter [port-num] Parameter port-num -- The port
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 102
    By default, the configuration of all ports is displayed. Command Mode Any Configuration Mode Example Display the Multicast Filter configuration of port 5: TP-LINK> show igmp-snooping port-filter 5 show igmp-snooping packet-stat Description The show igmp-snooping packet-stat command is used to
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 103
    SNMP function. By default, it is switch. Its length ranges from 10 to 64 hexadecimal characters, which must be even number meanwhile. Command Mode Global Configuration Mode Example Enable the SNMP function, and specify the Local Engine ID as 1234567890, the Remote Engine ID as 123456abcdef: TP-LINK
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 104
    used to describe the managed objects of the switch, and the MIB (Management Information Base) is name -- The entry name of View, ranging from 1 to 16 characters. Each View can include several entries with the same name. managed by the SNMP management station: TP-LINK(config)# snmp view-add view1
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 105
    Parameter name --The SNMP Group name, ranging from 1 to 16 characters. The Group Name, Security Model and Security Level compose is authenticated by USM mechanism. By default, the Security Model is v1. the assigned SNMP view generated by the Switch's SNMP agent. Command Mode Global Configuration
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 106
    TP-LINK(config)# snmp group-add group1 smode v2c ro view1 wo view1 inform view2 snmp user-add Description The snmp user-add command is used to add User. To delete the corresponding User, please use no snmp user-add command. The User in a SNMP Group can manage the switch 1 to 16 characters. default
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 107
    method is used. By default, the Privacy Mode is none. encrypt-pwd -- Privacy Password, ranging from 1 to 16 characters. Command Mode Global 11111, the Privacy Mode as DES, and the Privacy Password as 22222: TP-LINK(config)# snmp user-add admin local group2 smode v3 slev authPriv cmode MD5
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 108
    view1: TP-LINK(config)# function enabled, the switch can initiatively report to ip} {user-name} Parameter ip -- The IP Address of the management Host. udp-port -- UDP port, which is used to send notifications. The UDP port functions with the IP address for the notification sending. By default
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 109
    192.168.0.1, the UDP port as 162, the User name of the management station as admin, the Security Model of the management station as v2c, the type of the notifications as inform, the maximum time for the switch to wait as 1000 seconds, and the resending time as 100: TP-LINK(config)# snmp notify
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 110
    command. owner -- The owner of the history sample entry, ranging from 1 to 16 characters. By default, it is minitor. Command Mode Global Configuration Mode Example Configure the owner of entry 1 as owner1: TP-LINK(config)# snmp-rmon history owner 1 owner1 snmp-rmon history enable Description The
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 111
    . user -- The name of the User to which the event belongs, ranging from 1 to 16 characters. By default, it is public. Command Mode Global Configuration Mode Example Configure the user name of entry 1 as user1: TP-LINK(config)# snmp-rmon event user 1 user1 snmp-rmon event description Description 103
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 112
    each command. description -- The description of the event, ranging from 1 to 16 characters. By default, it is empty. Command Mode Global Configuration Mode Example Configure the description of entry 1 as description1: TP-LINK(config)# snmp-rmon event description 1 description1 snmp-rmon event type
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 113
    for each command. owner -- The owner of the event entry, ranging from 1 to 16 characters. By default, it is minitor. Command Mode Global Configuration Mode Example Configure the owner of entry 1 as owner1: TP-LINK(config)# snmp-rmon event owner 1 owner1 snmp-rmon event enable Description The snmp
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 114
    TP-LINK(config)# snmp-rmon event enable 1-4,8 snmp-rmon alarm config Description The snmp-rmon alarm config command is used to configure SNMP-RMON Alarm Management. To return to the default generated, which triggers the switch to act in the set By default, the option is drop. port -- The port on
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 115
    3600 in seconds. By default, it is 1800. Command Mode Global Configuration Mode Example Configure the alarm interval time of the entries 1,2,3 and 6 as 1000 seconds: TP-LINK(config)# snmp-rmon alarm config command. owner -- The owner of the entry, ranging from 1 to 16 characters. By default, 107
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 116
    to enable, ranging from 1 to 12, in the format of 1-3,5. Command Mode Global Configuration Mode Example Enable the Alarm Management entries 1,2,3,4 and 8: TP-LINK(config)# snmp-rmon alarm enable 1-4,8 show snmp global-config Description The show snmp global-config command is used to display SNMP
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 117
    show snmp view command is used to display the View table. Syntax show snmp view Command Mode Any Configuration Mode Example Display the View table: TP-LINK> show snmp view show snmp group Description The show snmp group command is used to display the Group table. Syntax show snmp group Command Mode
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 118
    is used to display the Community table. Syntax show snmp community Command Mode Any Configuration Mode Example Display the Community table: TP-LINK> show snmp community show snmp destination-host Description The show snmp destination-host command is used to display the Notification table. Syntax
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 119
    from 1 to 12. You can only select one entry for each command. By default, the configuration of all entries is displayed. Command Mode Any Configuration Mode Example Display the Event configuration of entry 2: TP-LINK> show snmp-rmon event 2 show snmp-rmon alarm Description The show snmp-rmon alarm
  • TP-Link TL-SG2216 | TL-SG2424 V1 CLI Reference Guide - Page 120
    to display the configuration, ranging from 1 to 12. You can only select one entry for each command. By default, the configuration of all entries is displayed. Command Mode Any Configuration Mode Example Display the configuration of all Alarm Management entries: TP-LINK> show snmp-rmon alarm 112
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120

TL-SG2216/TL-SG2424
Gigabit Smart Switch
Rev: 1.0.0
1910010667