Page 2 - COPYRIGHT & TRADEMARKS
I 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 in any for...
Page 3 - CONTENTS; Chapter 1
II CONTENTS Preface .............................................................................................................. 1 Chapter 1 Using the CLI ....................................................................................... 3 1.1 Accessing the CLI ..................................
Page 4 - Chapter 5
III show voice vlan ..................................................................................................................... 19 show voice vlan oui ............................................................................................................... 20 show voice vlan switchpo...
Page 5 - Chapter 9
IV ip ssh download..................................................................................................................... 39 show ip ssh............................................................................................................................ 39 Chapter 9 SSL Commands...
Page 12 - Preface; Overview of this Guide
1 Preface This Guide is intended for network administrator to provide referenced information about CLI (Command Line Interface). The device mentioned in this Guide stands for TL-SG2216/TL-SG2424 /TL-SG2424P/TL-SG2452 Gigabit Smart Switch. The four devices of TL-SG2216/TL-SG2424/TL-SG2424P/TL-SG2452 ...
Page 14 - Chapter 1 Using the CLI; Accessing the CLI
3 Chapter 1 Using the 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 sa...
Page 15 - CLI Command Modes
4 4. Type telnet 192.168.0.1 in the command prompt shown as 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 button, then you can use the CLI now, which is shown as...
Page 21 - end
10 Command Mode Privileged EXEC Mode and Any Configuration Mode Example Return to Global Configuration Mode from Interface Configuration Mode, and then return to Privileged EXEC Mode: TL-SG2424(config-if)# exit TL-SG2424(config)#exit TL-SG2424# end Description The end command is used to return to Pr...
Page 23 - name; switchport general allowed vlan
12 Parameter vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094. Command Mode Global Configuration Mode Example Create VLAN Interface 2: TL-SG2424(config)# interface vlan 2 name Description The name command is used to assign a description to a VLAN. To clear the description, please use n...
Page 24 - show vlan summary
13 Parameter vlan-list —— Specify IEEE 802.1Q VLAN ID list, ranging from 2 to 4094, in the format of 2-3, 5. It is multi-optional. tagged | untagged —— Egress rule , untagged or tagged. Tagged: All packets forwarded by the port are tagged. The packets contain VLAN information. Untagged: Packets forw...
Page 25 - show vlan id
14 Syntax show vlan summary Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the summarized information of IEEE 802.1Q VLAN: TL-SG2424(config)# show vlan summary show vlan brief Description The show vlan brief command is used to display the brief information of IEEE 802.1...
Page 28 - voice vlan priority; voice vlan mac-address
17 Parameter time —— Aging time (in minutes) to be set for the Voice VLAN. It ranges from 1 to 43200 and the default value is 1440. Command Mode Global Configuration Mode Example Set the aging time for the Voice VLAN as 1 minute: TL-SG2424(config)# voice vlan aging time 1 voice vlan priority Descrip...
Page 29 - switchport voice vlan mode
18 Syntax voice vlan mac-address mac-addr mask mask [ description descript ] no voice vlan mac-address mac-addr Parameter mac-addr —— The OUI address of the voice device, in the format of XX:XX:XX:XX:XX:XX. mask —— The OUI address mask of the voice device, in the format of XX:XX:XX:XX:XX:XX. descrip...
Page 31 - show voice vlan switchport
20 show voice vlan oui Description The show voice vlan oui command is used to display the configuration information of Voice VLAN OUI. Syntax show voice vlan oui Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration information of Voice VLAN OUI: TL-SG2424(co...
Page 32 - Chapter 5 Etherchannel Commands; Description; Command Mode
21 Chapter 5 Etherchannel Commands Etherchannel Commands are used to configure LAG and LACP function. LAG (Link Aggregation Group) is to combine a number of ports together to make a single high-bandwidth data path, which can highly extend the bandwidth. The bandwidth of the LAG is the sum of bandwid...
Page 41 - show user configuration
30 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: TL-SG2424(config)# user idle-timeout 15 show user account-list Description The show user accou...
Page 42 - Example
31 Example Display the security configuration information of the users: TL-SG2424(config)# show user configuration
Page 43 - Syntax
32 Chapter 7 System Log Commands The log information will record the settings and operation of the switch respectively for you to monitor operation status and diagnose malfunction. logging buffer Description The logging buffer command is used to configure the severity level and the status of the con...
Page 44 - logging file flash; clear logging
33 logging file flash Description The logging file flash command is used to configure the level and the status of the log file input. To disable the logging file flash funtion, please use no logging file flash command. The log file indicates the flash sector for saving system log. The information in...
Page 46 - show logging loghost; show logging buffer
35 show logging local-config Description The show logging local-config command is used to display the configuration of the Local Log including the log buffer and the log file. Syntax show logging local-config Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configurat...
Page 50 - show ip ssh
39 Command Mode Global Configuration Mode Example Specify the maximum number of the connections to the SSH server as 3: TL-SG2424(config)# ip ssh max-client 3 ip ssh download Description The ip ssh download command is used to download the SSH key file from TFTP server. Syntax ip ssh download { v1 | ...
Page 56 - mac address-table filtering
45 mac address-table aging-time Description The mac address-table aging-time command is used to configure aging time for the dynamic address. To return to the default configuration, please use no mac address-table aging-time command. Syntax mac address-table aging-time aging-time no mac address-tabl...
Page 59 - show mac address-table interface gigabitEthernet
48 Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Aging Time of the MAC address: TL-SG2424(config)# show mac address-table aging-time show mac address-table max-mac-count interface gigabitEthernet Description The show mac address-table max-mac-count interface gigabi...
Page 62 - Chapter 11 System Commands
51 Chapter 11 System Commands System Commands can be used to configure the System information and System IP, reboot and reset the switch, upgrade the switch system and other operations. system-time manual Description The system-time manual command is used to configure the system time manually. Synta...
Page 67 - location
56 TL-SG2424(config)# system-time dst recurring first Sun May 02:00 last Sun Oct 02:00 45 hostname Description The hostname command is used to configure the system name. To clear the system name information, please use no hostname command. Syntax hostname hostname no hostname Parameter hostname —— S...
Page 69 - ip address; ip address-alloc dhcp
58 ip address Description The ip address command is used to configure the system IP Address, Subnet Mask and Default Gateway. To restore to the factory defaults, please use no ip address command. This command should be configured in the Interface Configuration Mode of the management VLAN. Syntax ip ...
Page 70 - reset
59 Example Enable the DHCP Client function when the management VLAN of the switch is VLAN1: TL-SG2424(config)# interface vlan 1 TL-SG2424(config-if)# ip address-alloc dhcp ip address-alloc bootp Description The ip address-alloc bootp command is used to enable the BOOTP Protocol. When the BOOTP Proto...
Page 71 - copy startup-config tftp
60 TL-SG2424# reset reboot Description The reboot command is used to reboot the Switch. To avoid damage, please don’t turn off the device while rebooting. Syntax reboot Command Mode Privileged EXEC Mode Example Reboot the Switch: TL-SG2424# reboot copy running-config startup-config Description The c...
Page 72 - copy tftp startup-config
61 Syntax copy startup-config tftp ip-address ip-addr filename name Parameter ip-addr —— IP address of the TFTP server. name —— Specify the name for the configuration file which would be backup. Command Mode Privileged EXEC Mode Example Backup the configuration files to TFTP server with the IP 192.1...
Page 74 - loopback interface gigabitEthernet
63 Command Mode User EXEC Mode and Privileged EXEC Mode Example To test the connectivity between the switch and the network device with the IP 192.168.0.131, please specify the count (-l) as 512 bytes and count (-i) as 1000 milliseconds. If there is not any response after 8 times’ Ping test, the con...
Page 76 - show system-time ntp
65 Syntax show system-time Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the time information of the switch TL-SG2424# show system-time show system-time dst Description The show system-time dst command is used to display the DST time information of the switch. Syntax s...
Page 79 - description; shutdown
68 User Guidelines Command in the Interface Range gigabitEthernet Mode is executed independently on all ports in the range. It does not affect the execution on the other ports at all if the command results in an error on one port. Example To enter the Interface range gigabitEthernet Configuration Mo...
Page 82 - storm-control broadcast
71 Syntax speed { 10 | 100 | 1000 | auto } no speed Parameter 10 | 100 | 1000 | auto —— The speed mode of the Ethernet port. There are four options: 10Mbps, 100Mbps, 1000Mbps and Auto negotiation mode (default). Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range g...
Page 83 - storm-control multicast; storm-control unicast
72 Example Enable the broadcast control function for port 5: TL-SG2424(config)# interface gigabitEthernet 1/0/5 TL-SG2424(config-if)# storm-control broadcast storm-control multicast Description The storm-control multicast command is used to enable the multicast control function. To disable the multi...
Page 84 - bandwidth
73 in the network. If the transmission rate of the UL frames exceeds the set bandwidth, the packets will be automatically discarded to avoid network broadcast storm. Syntax storm-control unicast [ rate rate ] no storm-control unicast Parameter rate — — Specify the bandwidth for receiving UL-Frame on...
Page 86 - show interface counters; show interface description
75 TL-SG2424(config)# show interface status Display the connective-status of port 1: TL-SG2424(config)# show interface gigabitEthernet 1/0/1 status show interface counters Description The show interface counters command is used to display the statistic information of all ports or an Ethernet port. S...
Page 87 - show interface flowcontrol; show interface configuration
76 TL-SG2424(config)# show interface description Display the description of port 2: TL-SG2424(config)# show interface gigabitEthernet 1/0/2 description show interface flowcontrol Description The show interface flowcontrol command is used to display the flow-control information of an Ethernet port. S...
Page 88 - show bandwidth
77 TL-SG2424(config)# show interface configuration Display the configurations of port 2: TL-SG2424(config)# show interface gigabitEthernet 1/0/2 configuration show storm-control Description The show storm-control command is used to display the storm-control information of Ethernet ports. Syntax show...
Page 94 - show qos interface
83 equ —— Equal-Mode. In this mode, all the queues occupy the bandwidth equally. The weight value ratio of all the queues is 1:1:1:1. Command Mode Global Configuration Mode Example Specify the Schedule Mode as Weight Round Robin Mode: TL-SG2424(config)# qos queue mode wrr show qos interface Descript...
Page 95 - show qos queue mode
84 Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of IEEE 802.1P Priority and the mapping relation between cos-id and tc-id: TL-SG2424# show qos cos-map show qos dscp-map Description The show qos dscp-map command is used to display the configuration of...
Page 98 - monitor session source interface
87 monitor session source interface Description The monitor session source interface command is used to configure the monitored port. To delete the corresponding monitored port, please use no monitor session source interface command. Syntax monitor session session_num source interface gigabitEtherne...
Page 102 - Chapter 16 Loopback Detection Commands
91 Chapter 16 Loopback Detection Commands With loopback detection feature enabled, the switch can detect loops using loopback detection packets. When a loop is detected, the switch will display an alert or further block the corresponding port according to the configuration. loopback-detection(global...
Page 104 - loopback-detection recover
93 TL-SG2424(config)# interface range gigabitEthernet 1/0/1-3 TL-SG2424(Config-if-range)# loopback-detection loopback-detection config Description The loopback-detection config command is used to configure the process-mode and recovery-mode for the ports by which the switch copes with the detected l...
Page 107 - Chapter 17 ACL Commands
96 Chapter 17 ACL Commands access-list create Description The access-list create command is used to create standard-IP ACL and extend-IP ACL. Syntax access-list create access-list-num Parameter access-list-num — — ACL ID, ranging from 100 to 299. The ID range of Standard-IP ACL ranges is 100-199 and...
Page 108 - access-list standard
97 TL-SG2424(config)# mac access-list 23 access-list standard Description The access-list standard command is used to add Standard-IP ACL rule. To delete the corresponding rule, please use no access-list standard command. Standard-IP ACLs analyze and process data packets based on a series of match c...
Page 109 - access-list extended
98 access-list extended Description The access-list extended command is used to add Extended-IP ACL rule. To delete the corresponding rule, please use no access-list extended command. Syntax access-list extended acl-id rule rule-id [ deny | permit ] [[ sip source-ip ] smask source-ip-mask ] [[ dip d...
Page 111 - access-list policy action
100 Policy is used to control the data packets those match the corresponding ACL rules by configuring ACLs and actions together for effect. The operations here include stream mirror, stream condition, QoS Remarking and redirect. Syntax access-list policy name name no access-list policy name name Par...
Page 123 - power inline profile
112 system power limit, the PD linked to the port with lower priority will be disconnected. By default, the priority level is “low”. Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Configure the PoE priority as “low” for port 2: TL-SG24...
Page 124 - power inline time-range
113 Syntax power inline profile name no power inline profile Parameter name —— The name of the PoE profile to be bound to the port. If the name being assigned contains spaces then put it inside double quotes. Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range giga...
Page 125 - show power inline information interface
114 show power inline Description The show power inline command is used to display the global PoE information of the system. Syntax show power inline Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the PoE information of the system: TL-SG2424P# show power inline show pow...
Page 126 - show power holiday
115 Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the PoE information of all ports: TL-SG2424P# show power inline information interface show power profile Description The show power profile command is used to display the defi...
Page 128 - Chapter 20 MSTP Commands
117 Chapter 20 MSTP Commands MSTP (Multiple Spanning Tree Protocol), compatible with both STP and RSTP and subject to IEEE 802.1s, can disbranch a ring network. STP is to block redundant links and backup links as well as optimize paths. spanning-tree(global) Description The spanning-tree command is ...
Page 131 - instance
120 default configuration of the corresponding Instance, please use no spanning-tree mst configuration command. Syntax spanning-tree mst configuration no spanning-tree mst configuration Command Mode Global Configuration Mode Example Enter into the MST configuration mode: TL-SG2424(config)# spanning-...
Page 133 - spanning-tree mst instance
122 TL-SG2424(config)# spanning-tree mst configuration TL-SG2424(config-mst)# revision 100 spanning-tree mst instance Description The spanning-tree mst instance command is used to configure the priority of MST instance. To return to the default value of MST instance priority, please use no spanning-...
Page 143 - show spanning-tree mst
132 show spanning-tree mst Description The show spanning-tree mst command is used to display the related information of MST Instance. Syntax show spanning-tree mst { configuration [ digest ] | instance instance-id [ interface [ gigabitEthernet port ]]} Parameter instance-id —— Instance ID desired to...
Page 144 - Chapter 21 IGMP Commands
133 Chapter 21 IGMP Commands IGMP Snooping (Internet Group Management Protocol Snooping) is a multicast control mechanism running on Layer 2 switch. It can effectively prevent multicast groups being broadcasted in the network. ip igmp snooping(global) Description The ip igmp snooping command is used...
Page 146 - ip igmp snooping vlan-config
135 ip igmp snooping vlan-config Description The ip igmp snooping vlan-config command is used to enable VLAN IGMP Snooping function or to modify IGMP Snooping parameters, and to create static multicast IP entry. To disable the VLAN IGMP Snooping function, please use no ip igmp snooping vlan-config c...
Page 148 - ip igmp snooping filter add-id
137 leave-time —— Leave Time, which is the interval between the switch receiving a leave message from a host and the switch removing the host from the multicast groups. Leave Time ranges from 1 to 30 in seconds. By default, it is 1. port —— The Ethernet port number. Command Mode Global Configuration...
Page 150 - ip igmp snooping filter maxgroup; ip igmp snooping filter mode
139 Syntax ip igmp snooping filter no ip igmp snooping filter Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable IGMP Snooping filter function for port 3: TL-SG2424(config)# interface gigabitEthernet 1/0/3 TL-SG2424(config-if)# ip i...
Page 151 - show ip igmp snooping interface
140 Syntax ip igmp snooping filter mode mode Parameter mode —— Action Mode, with refuse and accept options. Refuse indicates only the multicast packets whose multicast IP is not in the IP-range will be processed, while accept indicates only the multicast packets whose multicast IP is in the IP-range...
Page 152 - show ip igmp snooping vlan
141 Syntax show ip igmp snooping interface gigabitEthernet [ port | port-list ] { basic-config | filter | packet-stat } Parameter port —— The Ethernet port number. port-list —— The list of Ethernet ports. basic-config | filter | packet-stat —— The related configuration information selected to displa...
Page 155 - Chapter 22 SNMP Commands
144 Chapter 22 SNMP Commands SNMP (Simple Network Management Protocol) functions are used to manage the network devices for a smooth communication, which can facilitate the network administrators to monitor the network nodes and implement the proper operation. snmp-server Description The snmp-server...
Page 159 - snmp-server community
148 snmp-server community Description The snmp-server community command is used to add Community. To delete the corresponding Community, please use no snmp-server community command. SNMP v1 and SNMP v2c adopt community name authentication. The community name can limit access to the SNMP agent from S...
Page 165 - rmon history
154 Syntax snmp-server traps vlan [ create | delete ] no snmp-server traps vlan [create | delete ] Parameter create —— Enable VLAN-created trap. It is sent when new VLAN is created successfully. delete —— Enable VLAN-deleted traps. It is sent when VLAN is deleted successfully. Command Mode Global Co...
Page 166 - rmon event
155 seconds —— The interval to take samplings from the port, ranging from 10 to 3600 in seconds. By default, it is 1800. owner-name —— The owner of the history sample entry, ranging from 1 to 16 characters. By default, it is “monitor”. Command Mode Global Configuration Mode Example Configure the sam...
Page 167 - rmon alarm
156 Command Mode Global Configuration Mode Example Configure the user name of entry 1, 2, 3 and 4 as user1, the description of the event as description1, the type of event as log and the owner of the event as owner1: TL-SG2424(config)# rmon event 1-4 user user1 description description1 type log owne...
Page 169 - show snmp-server group
158 Syntax show snmp-server Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display SNMP configuration globally: TL-SG2424# show snmp-server show snmp-server view Description The show snmp-server view command is used to display the View table. Syntax show snmp-server view Comman...
Page 171 - show rmon history
160 TL-SG2424# show snmp-server host show snmp-server engineID Description The show snmp-server engineID command is used to display the engineID of the SNMP. Syntax show snmp-server engineID Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the engineID: TL-SG2424# show sn...
Page 172 - show rmon alarm
161 show rmon event Description The show rmon event command is used to display the configuration of SNMP-RMON Event. Syntax show rmon event [ index ] Parameter index —— The index number of the entry selected to display the configuration, ranging from 1 to 12, in the format of 1-3, 5. You can select ...
Page 176 - lldp transmit
165 Syntax lldp receive no lldp receive Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable port 1 to receive LLDPDU: TL-SG2424P(config)# interface gigabitEthernet 1/0/1 TL-SG2424P(config-if)# lldp receive lldp transmit Description T...
Page 181 - show lldp local-information interface; show lldp neighbor-information interface
170 show lldp local-information interface Description The show lldp local-information interface command is used to display the LLDP and LLDP-MED local information of the corresponding port. By default, the information of all the ports will be displayed. Syntax show lldp local-information interface [...