TP-Link TL-SG2216 Reference Manual
TP-Link TL-SG2216 Reference Manual

TP-Link TL-SG2216 Reference Manual

Gigabit smart switch
Hide thumbs Also See for TL-SG2216:
Table of Contents

Advertisement

TL-SG2216/TL-SG2424/TL-SG2424P/TL-SG2452
Gigabit Smart Switch
REV1.2.0
1910010910

Advertisement

Table of Contents
loading

Summary of Contents for TP-Link TL-SG2216

  • Page 1 TL-SG2216/TL-SG2424/TL-SG2424P/TL-SG2452 Gigabit Smart Switch REV1.2.0 1910010910...
  • 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 in any form or by any means or used to make any derivative such as translation, transformation, or adaptation without permission from TP-LINK TECHNOLOGIES CO., LTD.
  • Page 3: Table Of Contents

    CONTENTS Preface ......................1 Chapter 1 Using the CLI ..................3 1.1 Accessing the CLI......................3 1.2 CLI Command Modes......................4 1.3 Security Levels ........................6 1.4 Conventions ........................7 1.4.1 Format Conventions ....................7 1.4.2 Special Characters ....................7 1.4.3 Parameter Format ....................7 Chapter 2 User Interface ..................
  • Page 4 show voice vlan ........................19 show voice vlan oui .......................20 show voice vlan switchport ....................20 Chapter 5 Etherchannel Commands ..............21 channel-group ........................21 port-channel load-balance .....................22 lacp system-priority .......................22 lacp port-priority........................23 show etherchannel ........................23 show etherchannel load-balance...................24 show lacp ..........................24 show lacp sys-id ........................25 Chapter 6 User Management Commands ............
  • Page 5 ip ssh download........................39 show ip ssh..........................39 Chapter 9 SSL Commands ................. 41 ip http secure-server......................41 ip http secure-server download certificate ................41 ip http secure-server download key ..................42 show ip http secure-server ....................43 Chapter 10 MAC Address Commands..............44 mac address-table static......................44 mac address-table aging-time ....................45 mac address-table filtering ....................45 mac address-table max-mac-count ..................46...
  • Page 6 copy tftp startup-config ......................61 firmware upgrade ........................62 ping ............................62 tracert ............................63 loopback interface gigabitEthernet ..................63 show system-info........................64 show system-time........................64 show system-time dst ......................65 show system-time ntp......................65 show cable-diagnostics interface gigabitEthernet..............66 Chapter 12 Ethernet Configuration Commands ..........67 interface gigabitEthernet......................67 interface range gigabitEthernet .....................67 description ..........................68 shutdown ..........................68 flow-control ..........................69...
  • Page 7 qos queue mode........................82 show qos interface ........................83 show qos cos-map ........................83 show qos dscp-map ......................84 show qos queue mode ......................84 show qos status........................85 Chapter 14 Port Mirror Commands ..............86 monitor session destination interface ..................86 monitor session source interface...................87 show monitor session ......................88 Chapter 15 Port Isolation Commands ..............
  • Page 8 Chapter 18 DHCP Filtering Commands..............104 ip dhcp filtering ........................104 ip dhcp filtering trust ......................104 show ip dhcp filtering ......................105 show ip dhcp filtering interface ....................105 Chapter 19 PoE Commands ................106 power inline consumption (global) ..................106 power profile........................106 power time-range ........................107 power holiday ........................108 absolute..........................109 periodic..........................109...
  • Page 9 spanning-tree tc-defend.......................124 spanning-tree timer......................124 spanning-tree hold-count.....................125 spanning-tree max-hops ......................126 spanning-tree bpdufilter.......................126 spanning-tree bpduguard ....................127 spanning-tree guard loop.....................127 spanning-tree guard root .....................128 spanning-tree guard tc......................128 spanning-tree mcheck ......................129 show spanning-tree active....................129 show spanning-tree bridge ....................130 show spanning-tree interface ....................130 show spanning-tree interface-security .................131 show spanning-tree mst ......................132 Chapter 21 IGMP Commands................133 ip igmp snooping(global) .....................133...
  • Page 10 snmp-server group ......................145 snmp-server user ........................146 snmp-server community ......................148 snmp-server host.........................148 snmp-server engineID ......................150 snmp-server traps snmp......................150 snmp-server traps link-status....................151 snmp-server traps........................152 snmp-server traps mac......................153 snmp-server traps vlan ......................153 rmon history.........................154 rmon event ..........................155 rmon alarm ..........................156 show snmp-server .......................157 show snmp-server view .......................158 show snmp-server group .....................158 show snmp-server user .......................159...
  • Page 11 show lldp local-information interface..................170 show lldp neighbor-information interface ................170 show lldp traffic interface .....................171...
  • Page 12: Preface

    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 are sharing this Guide. For simplicity, we will take TL-SG2424 for example throughout this Guide.
  • Page 13 IP, reboot and reset the switch, upgrade the switch system and commands used for device diagnose, including loopback test and cable test. Chapter 12: Ethernet Configuration Commands Provide information about the commands used for configuring the Bandwidth Control, Negotiation Mode, and Storm Control for enthernet ports. Chapter 13: QoS Commands Provide information about the commands used for configuring the QoS function.
  • Page 14: Chapter 1 Using The Cli

    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: Make sure the switch and the PC are in the same LAN.
  • Page 15: 1.2 Cli Command Modes

    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 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 Figure1-4. Figure 1-4 Log in the Switch 1.2 CLI Command Modes The CLI is divided into different command modes: User EXEC Mode, Privileged EXEC Mode,...
  • Page 16 The following table gives detailed information about the Accessing path, Prompt of each mode and how to exit the current mode and access the next mode. Accessing Logout or Access the next Mode Prompt Path mode Primary mode exit command User EXEC once disconnect the switch.
  • Page 17: 1.3 Security Levels

    2. Each command mode has its own set of specific commands. To configure some commands, you should access the corresponding command mode firstly. Global Configuration Mode: In this mode, global commands are provided, such as the  Spanning Tree, Schedule Mode and so on. Interface Configuration Mode: In this mode, users can configure one or several ports, ...
  • Page 18: 1.4 Conventions

    1.4 Conventions 1.4.1 Format Conventions The following conventions are used in this Guide: Items in square brackets [ ] are optional  Items in braces { } are required  Alternative items are grouped in braces and separated by vertical bars. For example: speed ...
  • Page 19: Chapter 2 User Interface

    Chapter 2 User Interface enable Description The enable command is used to access Privileged EXEC Mode from User EXEC Mode. Syntax enable Command Mode User EXEC Mode Example If you have set the password to access Privileged EXEC Mode from User EXEC Mode: TL-SG2424>enable Enter password:...
  • Page 20: Disable

    disable Description The disable command is used to return to User EXEC Mode from Privileged EXEC Mode. Syntax disable Command Mode Privileged EXEC Mode Example Return to User EXEC Mode from Privileged EXEC Mode: TL-SG2424# disable TL-SG2424> configure Description The configure command is used to access Global Configuration Mode from Privileged EXEC Mode.
  • Page 21: End

    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# Description The end command is used to return to Privileged EXEC Mode. Syntax Command Mode Privileged EXEC Mode and Any Configuration Mode...
  • Page 22: Chapter 3 Ieee 802.1Q Vlan Commands

    Chapter 3 IEEE 802.1Q VLAN Commands VLAN (Virtual Local Area Network) technology is developed for the switch to divide the LAN into multiple logical LANs flexibly. Hosts in the same VLAN can communicate with each other, regardless of their physical locations. VLAN can enhance performance by conserving bandwidth, and improve security by limiting traffic to specific domains.
  • Page 23: Name

    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 no name command.
  • Page 24: Switchport Pvid

    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 forwarded by the port are untagged.
  • Page 25: Show Vlan Brief

    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.1Q VLAN.
  • Page 26: Show Interface Switchport

    Example Display the information of vlan 5: TL-SG2424(config)# show vlan id 5 show interface switchport Description The show interface switchport command is used to display the IEEE 802.1Q VLAN configuration information of the specified port or all ports. Syntax show interface switchport [port] Parameter port ——...
  • Page 27: Chapter 4 Voice Vlan Commands

    Chapter 4 Voice VLAN Commands Voice VLANs are configured specially for voice data stream. By configuring Voice VLANs and adding the ports with voice devices attached to voice VLANs, you can perform QoS-related configuration for voice data, ensuring the transmission priority of voice data stream and voice quality.
  • Page 28: Voice Vlan Priority

    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 Description...
  • Page 29: Switchport Voice Vlan Mode

    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.
  • Page 30: Switchport Voice Vlan Security

    TL-SG2424(config)# interface gigabitEthernet 1/0/3 TL-SG2424(config-if)# switchport voice vlan mode auto switchport voice vlan security Description The switchport voice vlan security command is used to enable the Voice VLAN security feature. To disable the Voice VLAN security feature, please use no switchport voice vlan security command. Syntax switchport voice vlan security no switchport voice vlan security...
  • Page 31: Show Voice Vlan Oui

    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(config)# show voice vlan oui show voice vlan switchport Description...
  • Page 32: Chapter 5 Etherchannel Commands

    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 bandwidth of its member port.
  • Page 33: Port-Channel Load-Balance

    port-channel load-balance Description The port-channel load-balance command is used to configure the Aggregate Arithmetic for LAG. To return to the default configurations, please use no port-channel load-balance command. Syntax port-channel load-balance { src-dst-mac | src-dst-ip } no port-channel load-balance Parameter src-dst-mac ——...
  • Page 34: Lacp Port-Priority

    Command Mode Global Configuration Mode Example Configure the LACP system priority as 1024 globally: TL-SG2424(config)# lacp system-priority 1024 lacp port-priority Description The lacp port-priority command is used to configure the LACP port priority for specified ports. To return to the default configurations, please use no lacp port-priority command.
  • Page 35: Show Etherchannel Load-Balance

    Syntax show etherchannel [ channel-group-num ] { detail | summary } Parameter channel-group-num —— The EtherChannel Group number, ranging from 1 to 6. By default, it is empty, and will display the information of all EtherChannel Groups. detail —— The detailed information of EtherChannel. summary ——...
  • Page 36: Show Lacp Sys-Id

    Parameter channel-group-num —— The EtherChannel Group number, ranging from 1 to 6. By default, it is empty, and will display the information of all LACP groups. internal —— The internal LACP information. neighbor —— The neighbor LACP information. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the internal LACP information of EtherChannel Group 1:...
  • Page 37: Chapter 6 User Management Commands

    Chapter 6 User Management Commands User Management Commands are used to configure the user name and password for users to log on to the Web management page with a certain access level so as to protect the settings of the switch from being randomly changed.
  • Page 38: User Access-Control Ip-Based

    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 IP-range you set here are allowed to login. To cancel the user access limit, please use no user access-control command.
  • Page 39: User Access-Control Port-Based

    Parameter mac-addr —— The source MAC address. Only the user with this MAC Address is allowed to login. Command Mode Global Configuration Mode Example Configure that only the user whose MAC address is 00:00:13:0A:00:01 is allowed to login: TL-SG2424(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...
  • Page 40: User Max-Number

    user max-number Description The user max-number command is used to configure the number of the users logging on at the same time. To cancel the limit to the numbers of the users logging in, please use no user max-number command. Syntax user max-number admin-num guest-num no user max-number...
  • Page 41: Show User Account-List

    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 account-list command is used to display the information of the current users.
  • Page 42 Example Display the security configuration information of the users: TL-SG2424(config)# show user configuration...
  • Page 43: Chapter 7 System Log Commands

    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 configuration input to the log buffer.
  • Page 44: Logging File Flash

    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 the log file will not be lost after the switch is restarted and can be got by the show logging flash...
  • Page 45: Logging Host Index

    Command Mode Global Configuration Mode Example Clear the information in the log file: TL-SG2424(config)# clear logging buffer logging host index Description The logging host index command is used to configure the Log Host. To clear the configuration of the specified Log Host, please use no logging host index command.
  • Page 46: Show Logging Local-Config

    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 configuration of the Local Log: TL-SG2424(config)# show logging local-config...
  • Page 47: Show Logging Flash

    The show logging buffer command is used to display the log information in the log buffer according to the severity level. Syntax show logging buffer [ level level ] Parameter level —— Severity level. There are 8 severity levels marked with values 0-7. The information of levels with priority not lower than the select level will display.
  • Page 48: Chapter 8 Ssh Commands

    Chapter 8 SSH Commands SSH (Security Shell) can provide the unsecured remote management with security and powerful authentication to ensure the security of the management information. ip ssh server Description The ip ssh server command is used to enable SSH function. To disable the SSH function, please use no ip ssh server command.
  • Page 49: Ip Ssh Timeout

    Example Enable SSH v2: TL-SG2424(config)# ip ssh version v2 ip ssh timeout Description The ip ssh timeout command is used to specify the idle-timeout time of SSH. To restore to the factory defaults, please use ip ssh timeout command. Syntax ip ssh timeout value no ip ssh timeout Parameter...
  • Page 50: Ip Ssh Download

    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.
  • Page 51 Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the global configuration of SSH: TL-SG2424(config)# show ip ssh...
  • Page 52: Chapter 9 Ssl Commands

    Chapter 9 SSL Commands SSL(Secure Sockets Layer), a security protocol, is to provide a secure connection for the application layer protocol(e.g. HTTP) based on TCP. Adopting asymmetrical encryption technology, SSL uses key pair to encrypt/decrypt information. A key pair refers to a public key (contained in the certificate) and its corresponding private key.
  • Page 53: Ip Http Secure-Server Download Key

    Parameter ssl-cert —— The name of the SSL certificate which is selected to download to the switch. The length of the name ranges from 1 to 25 characters. The Certificate must be BASE64 encoded. ip-addr —— The IP address of the TFTP server. Command Mode Global Configuration Mode Example...
  • Page 54: Show Ip Http Secure-Server

    show ip http secure-server Description The show ip http secure-server command is used to display the global configuration of SSL. Syntax show ip http secure-server Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the global configuration of SSL: TL-SG2424(config)# show ip http secure-server...
  • Page 55: Chapter 10 Mac Address Commands

    Chapter 10 MAC Address Commands MAC Address configuration can improve the network security by configuring the Port Security and maintaining the address information by managing the Address Table. mac address-table static Description The mac address-table static command is used to add the static MAC address entry.
  • Page 56: Mac Address-Table Aging-Time

    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-table aging-time Parameter aging-time ——...
  • Page 57: Mac Address-Table Max-Mac-Count

    Command Mode Global Configuration Mode Example Add a filtering address entry of which VLAN ID is 1 and MAC address is 00:1e:4b:04:01:5d: TL-SG2424(config)# mac address-table filtering mac 00:1e:4b:04:01:5d vid mac address-table max-mac-count Description The mac address-table max-mac-count command is used to configure the Port Security.
  • Page 58: Show Mac Address-Table Address

    status —— Enable or disable the Port Security function for a specified port. By default, this function is disabled. Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable Port Security function for port 1, select Static mode as the learn mode, and specify the maximum number of MAC addresses that can be learned on this port as 30: TL-SG2424(config)# interface gigabitEthernet 1/0/1...
  • Page 59: Show Mac Address-Table Max-Mac-Count Interface Gigabitethernet

    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 gigabitEthernet command is used to display the security configuration of all ports or the specified port.
  • Page 60: Show Mac Address-Table Mac-Num

    Syntax show mac address-table interface gigabitEthernet port Parameter —— port The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the address configuration of port 1: TL-SG2424(config)# show mac address-table interface gigabitEthernet 1/0/1 show mac address-table mac-num Description The show mac address-table mac-num command is used to display the total amount of MAC address table.
  • Page 61: Show Mac Address-Table Vlan

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the information of the MAC address 00:00:00:00:23:00: TL-SG2424(config)#show mac address-table mac 00:00:00:00:23:00 show mac address-table vlan Description The show mac address-table vlan command is used to display the MAC address configuration of the specified vlan.
  • Page 62: Chapter 11 System Commands

    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.
  • Page 63 UTC-09:00 —— TimeZone for Alaska. UTC-08:00 —— TimeZone for Pacific Time(US Canada). UTC-07:00 —— TimeZone for Mountain Time(US Canada). UTC-06:00 —— TimeZone for Central Time(US Canada). UTC-05:00 —— TimeZone for Eastern Time(US Canada). UTC-04:30 —— TimeZone for Caracas. UTC-04:00 —— TimeZone for Atlantic Time(Canada). UTC-03:30 ——...
  • Page 64: System-Time Dst Predefined

    Command Mode Global Configuration Mode Example Configure the system time mode as NTP, the time zone is UTC-12:00, the primary NTP server is 133.100.9.2 and the secondary NTP server is 139.78.100.163, the fetching-rate is 11 hours: TL-SG2424(config)# system-time ntp UTC-12:00 133.100.9.2 139.79.100.163 system-time dst predefined Description The system-time dst predefined command is used to select a daylight saving...
  • Page 65: System-Time Dst Date

    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 time must shorter than one year, but you can configure it spanning years.
  • Page 66: System-Time Dst Recurring

    system-time dst recurring Description The system-time dst recurring command is used to configure the recurring daylight saving time. It can be configured spanning years. To disable DST function, please use no system-time dst command. Syntax system-time dst recurring {sweek} {sday} {smonth} {stime} {eweek} {eday} {emonth} {etime} [offset] no system-time dst Parameter...
  • Page 67: Hostname

    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 ——...
  • Page 68: Contact-Info

    Configure the system location as SHENZHEN: TL-SG2424(config)# location SHENSHEN contact-info Description The contact-info command is used to configure the system contact information. To clear the system contact information, please use no contact-info command. Syntax contact-info contact_info no contact-info Parameter contact_info —— Contact Information. It consists of 32 characters at most. It is “www.tp-link.com”...
  • Page 69: Ip Address

    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.
  • Page 70: Ip Address-Alloc Bootp

    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 Protocol is enabled, the switch will obtain IP address from BOOTP Server.
  • Page 71: Reboot

    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 copy running-config startup-config command is used to save the current settings.
  • Page 72: Copy Tftp Startup-Config

    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.168.0.148 and name this file config.cfg: TL-SG2424# copy startup-config tftp ip-address 192.168.0.148 filename config.cfg...
  • Page 73: Firmware Upgrade

    firmware upgrade Description The firmware upgrade command is used to upgrade the switch system file via the TFTP server. Syntax firmware upgrade ip-address ip-addr filename name Parameter ip-addr —— IP address of the TFTP server. name —— Specify the name for the firmware file. Command Mode Privileged EXEC Mode Example...
  • Page 74: Tracert

    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 connection between the switch and the network device is failed to establish: TL-SG2424# ping 192.168.0.131 –n 8 –l 512 tracert...
  • Page 75: Show System-Info

    Syntax loopback interface gigabitEthernet {port } { internal | external } Parameter port —— The Gigabit Ethernet port number. internal | external —— Loopback Type. There are two options: “internal” and “external”. Command Mode User EXEC Mode and Privileged EXEC Mode Example Do an internal-type loopback test for port 15: TL-SG2424# loopback interface gigabitEthernet 1/0/15 internal...
  • Page 76: Show System-Time Dst

    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 show system-time dst Command Mode...
  • Page 77: Show Cable-Diagnostics Interface Gigabitethernet

    show cable-diagnostics interface gigabitEthernet Description The show cable-diagnostics interface gigabitEthernet command is used to display the cable diagnostics of the connected Ethernet Port., which facilitates you to check the connection status of the cable connected to the switch, locate and diagnose the trouble spot of the network. Syntax show cable-diagnostics interface gigabitEthernet port Parameter...
  • Page 78: Chapter 12 Ethernet Configuration Commands

    Chapter 12 Ethernet Configuration Commands Ethernet Configuration Commands can be used to configure the Bandwidth Control, Negotiation Mode and Storm Control for Ethernet ports. interface gigabitEthernet Description The interface gigabitEthernet command is used to enter the Interface gigabitEthernet Configuration Mode and configure the corresponding Gigabit Ethernet port.
  • Page 79: Description

    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 Mode, and configure ports 1, 2, 3, 6, 7 and 9 at the same time by adding them to one port-list:...
  • Page 80: Flow-Control

    Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Disable port 3: TL-SG2424(config)# interface gigabitEthernet 1/0/3 TL-SG2424(config-if)# shutdown flow-control Description The flow-control command is used to enable the flow-control function for a port. To disable the flow-control function for this corresponding port, please use no flow-control command.
  • Page 81: Duplex

    Parameter rj45 | sfp —— Media type. Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Configure the media type of Combo port 22 as “SFP”: TL-SG2424 (config)# interface gigabitEthernet 1/0/22 TL-SG2424 (config-if)# media-type sfp duplex Description The duplex command is used to configure the Duplex Mode for an Ethernet port.
  • Page 82: Storm-Control Broadcast

    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).
  • Page 83: Storm-Control Multicast

    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 multicast control function, please use no storm-control multicast command.
  • Page 84: Bandwidth

    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 the port. The packet traffic exceeding the bandwidth will be discarded.
  • Page 85: Clear Counters

    Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Configure the ingress-rate as 5120Kbps and egress-rate as 1024Kbps for port TL-SG2424(config)# interface gigabitEthernet 1/0/5 TL-SG2424(config-if)# bandwidth ingress 5120 egress 1024 clear counters Description The clear counters command is used to clear the statistic information of all the Ethernet ports.
  • Page 86: Show Interface Counters

    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. Syntax show interface [ gigabitEthernet port ] counters Parameter ——...
  • Page 87: Show Interface Flowcontrol

    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. Syntax show interface [ gigabitEthernet port ] flowcontrol Parameter ——...
  • Page 88: Show Storm-Control

    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 storm-control [ interface { gigabitEthernet port | range gigabitEthernet port-list }] Parameter ——...
  • Page 89 Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the bandwidth-limit information of port 4: TL-SG2424(config)# show bandwidth interface gigabitEthernet 1/0/4...
  • Page 90: Chapter 13 Qos Commands

    Chapter 13 QoS Commands QoS (Quality of Service) function is used to optimize the network performance. It provides you with network service experience of a better quality. Description The qos command is used to configure CoS (Class of Service) based on port. To return to the default configuration, please use no qos command.
  • Page 91: Qos Queue Cos-Map

    Syntax qos dscp no qos dscp Command Mode Global Configuration Mode User Guidelines DSCP (DiffServ Code Point) is a new definition to IP ToS field given by IEEE. DSCP priorities are mapped to the corresponding 802.1p priorities. IP datagram will be classified into the egress queue based on the mapping relation between DSCP priority and CoS value.
  • Page 92: Qos Queue Dscp-Map

    User Guidelines By default, the mapping relation between tag/cos and the egress queue is: 0-TC1, 1-TC0, 2-TC0, 3-TC1, 4-TC2, 5-TC2, 6-TC3, 7-TC3 Among the priority levels TC0-TC3, the bigger value, the higher priority. Example Map CoS 5 to TC 2.: TL-SG2424(config)# qos queue cos-map 5 2 qos queue dscp-map Description...
  • Page 93: Qos Queue Mode

    User Guidelines By default, the mapping relation between tag and the egress queue is: (0-7)-CoS 0, (8-15)-CoS 1, (16-23)-CoS 2, (24-31)-CoS 3, (32-39)-CoS 4, (40-47)-CoS 5, (48-55)-CoS 6, (56-63)-CoS 7. Example Map DSCP values 10-12 to CoS 2: TL-SG2424(config)# qos queue dscp-map 10-12 2 qos queue mode Description The qos queue mode command is used to configure the Schedule Mode.
  • Page 94: Show Qos Interface

    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 Description The show qos interface command is used to display the configuration of QoS...
  • Page 95: Show Qos Dscp-Map

    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 DSCP Priority.
  • Page 96: Show Qos Status

    show qos status Description The show qos status command is used to display the status of IEEE 802.1P priority and DSCP priority. Syntax show qos status Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the status of IEEE 802.1P priority and DSCP priority: TL-SG2424# show qos status...
  • Page 97: Chapter 14 Port Mirror Commands

    Chapter 14 Port Mirror Commands Port Mirror refers to the process of forwarding copies of packets from one port to a monitoring port. Usually, the monitoring port is connected to data diagnose device, which is used to analyze the monitored packets for monitoring and troubleshooting the network. monitor session destination interface Description The monitor session destination interface command is used to configure the...
  • Page 98: Monitor Session Source Interface

    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 gigabitEthernet port-list mode no monitor session session_num source interface gigabitEthernet port-list mode...
  • Page 99: Show Monitor Session

    TL-SG2424(config)# monitor session 1 source interface gigabitEthernet 1/0/4-5,1/0/7 rx Delete port 4 in monitor session 1 and its configuration: TL-SG2424(config)# monitor session source interface gigabitEthernet 1/0/4 rx show monitor session Description The show monitor session command is used to display the configuration of port monitoring.
  • Page 100: Chapter 15 Port Isolation Commands

    Chapter 15 Port Isolation Commands Port Isolation provides a method of restricting traffic flow to improve the network security by forbidding the port to forward packets to the ports that are not on its forwarding port list. port isolation Description The port isolation command is used to configure the forward port list of a port, so that this port can only communicate with the ports on its port list.
  • Page 101 Syntax show port isolation interface [ gigabitEthernet port ] Parameter port —— The number of Ethernet port you want to show its forward port list, in the format of 1/0/2. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the forward-list of port 2: TL-SG2424# show port isolation interface gigabitEthernet 1/0/2 Display the forward-list of all Ethernet ports:...
  • Page 102: Chapter 16 Loopback Detection Commands

    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) Description The loopback-detection command is used to enable the loopback detection...
  • Page 103: Loopback-Detection Recovery-Time

    Example Specify the interval-time as 50 seconds: TL-SG2424(config)# loopback-detection interval 50 loopback-detection recovery-time Description The loopback-detection recovery-time command is used to configure the time after which the blocked port would automatically recover to normal status. Syntax loopback-detection recovery-time recovery-time Parameter recovery-time ——...
  • Page 104: Loopback-Detection Config

    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 loops. Syntax loopback-detection config [ process-mode { alert | port-based }] [ recovery-mode { auto | manual }] Parameter process-mode ——...
  • Page 105: Show Loopback-Detection Global

    Syntax loopback-detection recover Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Recover the blocked port 2 to normal status: TL-SG2424(config)# interface gigabitEthernet 1/0/2 TL-SG2424(config-if)# loopback-detection recover show loopback-detection global Description The show loopback-detection global command is used to display the global configuration of loopback detection function such as loopback detection global status, loopback detection interval and loopback detection recovery time.
  • Page 106: Command Mode

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of loopback detection function and the status of all ports: TL-SG2424# show loopback-detection interface Display the configuration of loopback detection function and the status of port 5: TL-SG2424# show loopback-detection interface gigabitEthernet 1/0/5...
  • Page 107: Chapter 17 Acl Commands

    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 the Extend-IP ACL is 200-299. Command Mode Global Configuration Mode Example...
  • Page 108: Access-List Standard

    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 conditions, which can be the source IP addresses and destination IP addresses carried in the packets.
  • Page 109: Access-List Extended

    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 destination-ip] dmask destination-ip-mask ] [ s-port s-port ] [ d-port d-port ] [ protocol protocol ] no access-list extended acl-id rule rule-id...
  • Page 110: Rule

    rule Description The rule command is used to configure MAC ACL rule. To delete the corresponding rule, please use no rule command. Syntax rule rule-id [ deny | permit ] [[ smac source-mac ] smask source-mac-mask ] [[ dmac destination-mac ] dmask destination-mac-mask ] no rule rule-id Parameter rule-id ——...
  • Page 111: Access-List Policy Action

    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 Parameter name ——...
  • Page 112: Access-List Bind(Interface)

    access-list bind(interface) Description The access-list bind command is used to bind a policy to a specified port. To cancel the bind relation, please use no access-list bind command. Syntax access-list bind policy-name no access-list bind policy-name Parameter policy-name —— The name of the policy desired to bind. Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet)
  • Page 113: Show Access-List

    TL-SG2424(config-if)# access-list bind policy1 show access-list Description The show access-list command is used to display configuration of ACL. Syntax show access-list acl-id Parameter acl-id —— The ID of the ACL selected to display the configuration. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of the MAC ACL whose ID is 20: TL-SG2424(config)# show access-list 20...
  • Page 114: Show Access-List Bind

    show access-list bind Description The show access-list bind command is used to display the configuration of Policy bind. Syntax show access-list bind Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of Policy bind: TL-SG2424(config)# show access-list bind...
  • Page 115: Chapter 18 Dhcp Filtering Commands

    Chapter 18 DHCP Filtering Commands DHCP Filtering functions to monitor the process of hosts obtaining IP addresses from DHCP Servers by configuring the desired port(s) as Trusted Port(s). Only the hosts connected to the trusted port(s) can receive DHCP packets from DHCP servers. In this way, the switch can devoid of DHCP cheating attack which will cause network confusion and security problem.
  • Page 116: Show Ip Dhcp Filtering

    Example Configure port 1 to be a trusted port: TL-SG2424(config)#interface gigabitEthernet 1/0/1 TL-SG2424(config-if)#ip dhcp filtering trust show ip dhcp filtering Description The show ip dhcp filtering command is used to display the running status of DHCP Filtering. Syntax show ip dhcp filtering Command Mode Privileged EXEC Mode and Any Configuration Mode Example...
  • Page 117: Chapter 19 Poe Commands

    Chapter 19 PoE Commands Note: Only TL-SG2424P supports PoE function. PoE (Power over Ethernet) technology describes a system to transmit electrical power along with data to remote devices over standard twisted-pair cable in an Ethernet network. It is especially useful for supplying power to IP telephones, wireless LAN access points, cameras and so on. power inline consumption (global) Description The power inline consumption command is used to configure the max power...
  • Page 118: Power Time-Range

    no power profile name Parameter name —— The PoE profile name, ranging from 1 to 16 characters. If the name being assigned contains spaces then put it inside double quotes. supply —— The PoE status of the port in the profile. By default, the PoE status is “enable”.
  • Page 119: Power Holiday

    Syntax power time-range name no power time-range name Parameter name —— The PoE time-range name, ranging from 1 to 16 characters. Command Mode Global Configuration Mode Example Create a PoE time-range named “tRange1” for the switch: TL-SG2424P(config)# power time-range tRange1 power holiday Description The power holiday command is used to create PoE holiday for the switch.
  • Page 120: Absolute

    absolute Description The absolute command is used to create an absolute mode time-range for the PoE time-range of the switch. The switch will supply power when the specified absolute time occurs. To delete the corresponding absolute mode time-range configuration, please use no absolute command. Syntax absolute start start-date end end-date no absolute...
  • Page 121: Holiday

    Parameter week-day —— Periodic Mode, with “1-7”, “daily”, “off-day” and “working-day” options. “1-7” should be entered in the format of 1-3, 7 which represent Monday, Tuesday, Wednesday and Sunday. “Daily” represents every day. “Off-day” represents weekend. “Working-day” represents working day. time-slice ——...
  • Page 122: Power Inline Consumption (Interface)

    TL-SG2424P(config-pwr-time-range)# holiday exclude power inline consumption (interface) Description The power inline consumption command is used to configure the power limit the corresponding port can supply. Syntax power inline consumption { power-limit | auto | class1 | class2 | class3 | class4 } Parameter power-limit ——The max power the port in the profile can supply, with five options: “power-limit”, “auto”, ”class1”, “class2”, “class3”...
  • Page 123: Power Inline Supply

    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-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(config-if)# power inline priority low power inline supply...
  • Page 124: Power Inline Time-Range

    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 gigabitEthernet) Example Bind the PoE profile named “IP Camera”...
  • Page 125: Show Power Inline

    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 power inline configuration interface Description...
  • Page 126: Show Power Profile

    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 defined PoE profile. Syntax show power profile Command Mode...
  • Page 127: Show Power Time-Range

    show power time-range Description The show power time-range command is used to display the configuration of PoE time-range. Syntax show power time-range Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of PoE time-range: TL-SG2424P# show power time-range...
  • Page 128: Chapter 20 Mstp Commands

    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 used to enable STP function globally.
  • Page 129: Spanning-Tree Common-Config

    TL-SG2424(config-if)# spanning-tree spanning-tree common-config Description The spanning-tree common-config command is used to configure the parameters of the ports for comparison in the CIST and the common parameters of all instances. To return to the default configuration, please use no spanning-tree common-config command. CIST (Common and Internal Spanning Tree) is the spanning tree in a switched network, connecting all devices in the network.
  • Page 130: Spanning-Tree Mode

    Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the STP function of port 1, and configure the Port Priority as 64, ExtPath Cost as 100, IntPath Cost as 100, and then enable Edge Port: TL-SG2424(config)# interface gigabitEthernet 1/0/1 TL-SG2424(config-if)# spanning-tree common-config port-priority 64 ext-cost 100 int-cost 100 portfast enable point-to-point open spanning-tree mode...
  • Page 131: Instance

    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-tree mst configuration TL-SG2424(Config-mst)# instance Description The instance command is used to configure the VLAN-Instance mapping.
  • Page 132: Name

    TL- SG2424(config-mst)# no instance 1 Remove VLANs 1-50 in mapping VLANs 1-100 for Instance 1: TL-SG2424(config)# spanning-tree mst configuration TL-SG2424(config-mst)# no instance 1 vlan 1-50 name Description The name command is used to configure the region name of MST instance. Syntax name name Parameters...
  • Page 133: Spanning-Tree Mst Instance

    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-tree mst instance command. Syntax spanning-tree mst instance instance-id priority pri no spanning-tree mst instance instance-id priority...
  • Page 134: Spanning-Tree Priority

    Parameter instance-id —— Instance ID, ranging from 1 to 8. pri —— Port Priority, which must be multiple of 16 ranging from 0 to 240. By default, it is 128. Port Priority is an important criterion on determining if the port will be chosen as the root port by the device connected to this port.
  • Page 135: Spanning-Tree Tc-Defend

    spanning-tree tc-defend Description The spanning-tree tc-defend command is used to configure the TC Protect of Spanning Tree globally. To return to the default configuration, please use no spanning-tree tc-defend command. A switch removes MAC address entries upon receiving TC-BPDUs. If a malicious user continuously sends TC-BPDUs to a switch, the switch will be busy with removing MAC address entries, which may decrease the performance and stability of the network.
  • Page 136: Spanning-Tree Hold-Count

    Parameter forward-time —— Forward Delay, which is the time for the port to transit its state after the network topology is changed. Forward Delay ranges from 4 to 30 in seconds and it is 15 by default. Otherwise, 2 * (Forward Delay - 1) >= Max Age.
  • Page 137: Spanning-Tree Max-Hops

    TL-SG2424(config)# spanning-tree hold-count 8 spanning-tree max-hops Description The spanning-tree max-hops command is used to configure the maximum number of hops that occur in a specific region before the BPDU is discarded. To return to the default configurations, please use no spanning-tree max-hops command.
  • Page 138: Spanning-Tree Bpduguard

    Example Enable the BPDU filter function for port 2: TL-SG2424(config)# interface gigabitEthernet 1/0/2 TL-SG2424(config-if)# spanning-tree bpdufilter spanning-tree bpduguard Description The spanning-tree bpduguard command is used to enable the BPDU protect function for a port. With the BPDU protect function enabled, the port will set itself automatically as ERROR-PORT when it receives BPDU packets, and the port will disable the forwarding function for a while.
  • Page 139: Spanning-Tree Guard Root

    Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the Loop Protect function for port 2: TL-SG2424(config)# interface gigabitEthernet 1/0/2 TL-SG2424(config-if)# spanning-tree guard loop spanning-tree guard root Description The spanning-tree guard root command is used to enable the Root Protect function for a port.
  • Page 140: Spanning-Tree Mcheck

    removing MAC address entries, which may decrease the performance and stability of the network. With the Protect of Spanning Tree function enabled, you can configure the number of TC-BPDUs in a required time, so as to avoid the process of removing MAC addresses frequently. Syntax spanning-tree guard tc no spanning-tree guard tc...
  • Page 141: Show Spanning-Tree Bridge

    Syntax show spanning-tree active Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the active information of spanning-tree: TL-SG2424(config)# show spanning-tree active show spanning-tree bridge Description The show spanning-tree bridge command is used to display the bridge parameters. Syntax show spanning-tree bridge [ forward-time | hello-time | hold-count | max-age | max-hops | mode | priority | state ]...
  • Page 142: Show Spanning-Tree Interface-Security

    Example Display the spanning-tree information of all ports: TL-SG2424(config)# show spanning-tree interface Display the spanning-tree information of port 2: TL-SG2424(config)# show spanning-tree interface gigabitEthernet 1/0/2 Display the spanning-tree mode information of port 2: TL-SG2424(config)# show spanning-tree interface gigabitEthernet 1/0/2 mode show spanning-tree interface-security Description The show spanning-tree interface-security command is used to display the...
  • Page 143: Show Spanning-Tree Mst

    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 show, ranging from 1 to 8. port ——...
  • Page 144: Chapter 21 Igmp Commands

    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 to configure IGMP Snooping globally. To disable the IGMP Snooping function, please use no ip igmp snooping command.
  • Page 145: Ip Igmp Snooping Immediate-Leave

    TL-SG2424(config)# interface gigabitEthernet 1/0/3 TL-SG2424(config-if)# ip igmp snooping ip igmp snooping immediate-leave Description The ip igmp snooping immediate-leave command is used to configure the Fast Leave function for port. To disable the Fast Leave function, please use no ip igmp snooping immediate-leave command. Syntax ip igmp snooping immediate-leave no ip igmp snooping immediate-leave...
  • Page 146: Ip Igmp Snooping Vlan-Config

    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 command.
  • Page 147: Ip Igmp Snooping Multi-Vlan-Config

    Example Enable the IGMP Snooping function and modify Router Port Time as 300 seconds, Member Port Time as 200 seconds for VLAN 1-3, and set the Leave time as 15 seconds for VLAN 1-2: TL-SG2424(config)# ip igmp snooping vlan-config 1-3 rtime 300 TL-SG2424(config)# ip igmp snooping vlan-config 1-3 mtime 200 TL-SG2424(config)# ip igmp snooping vlan-config 1-2 ltime 15 Add static multicast IP address 225.0.0.1, which corresponds to VLAN 2, and...
  • Page 148: Ip Igmp Snooping Filter Add-Id

    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 ——...
  • Page 149: Ip Igmp Snooping Filter(Global)

    Example Bind the filtering address ID 2-6 to port 3: TL-SG2424(config)# interface gigabitEthernet 1/0/3 TL-SG2424(config-if)# ip igmp snooping filter addr-id 2-6 ip igmp snooping filter(global) Description The ip igmp snooping filter command is used to add or modify the multicast filtering IP-range.
  • Page 150: Ip Igmp Snooping Filter Maxgroup

    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 igmp snooping filter ip igmp snooping filter maxgroup Description The ip igmp snooping filter maxgroup command is used to specify the maximum number of multicast groups for a port to join in.
  • Page 151: Show Ip Igmp Snooping

    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 will be processed.
  • Page 152: Show Ip Igmp Snooping Vlan

    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 display.
  • Page 153: Show Ip Igmp Snooping Multi-Vlan

    TL-SG2424# show ip igmp snooping vlan 2 show ip igmp snooping multi-vlan Description The show ip igmp snooping multi-vlan command is used to display the Multicast VLAN configuration. Syntax show ip igmp snooping multi-vlan Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Multicast VLAN configuration: TL-SG2424# show ip igmp snooping multi-vlan...
  • Page 154: Show Ip Igmp Snooping Filter

    Example Display the information of all IGMP snooping groups: TL-SG2424#show ip igmp snooping groups Display all the multicast entries in VLAN 5: TL-SG2424(config)#show ip igmp snooping groups vlan 5 Display the count of multicast entries in VLAN 5: TL-SG2424(config)#show ip igmp snooping groups vlan 5 count Display the dynamic multicast groups of VLAN 5 TL-SG2424(config)#show ip igmp snooping groups vlan 5 dynamic Display the static multicast groups of VLAN 5...
  • Page 155: Chapter 22 Snmp Commands

    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 command is used to enable the SNMP function. By default, it is disabled.
  • Page 156: Snmp-Server Group

    mib-oid —— MIB Object ID. It is the Object Identifier (OID) for the entry of View, ranging from 1 to 61 characters. include | exclude —— View Type, with include and exclude options. They represent the view entry can/cannot be managed by the SNMP management station individually.
  • Page 157: Snmp-Server User

    By default, the Security Level is noAuthNoPriv. There is no need to configure this in SNMP v1 Mode and SNMP v2c Mode. read-view —— Select the View to be the Read View. The management access is restricted to read-only, and changes cannot be made to the assigned SNMP View.
  • Page 158 Parameter name —— User Name, ranging from 1 to 16 characters. local | remote —— User Type, with local and remote options. Local indicates that the user is connected to a local SNMP engine, while remote means that the user is connected to a remote SNMP engine. group-name ——...
  • Page 159: Snmp-Server Community

    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 SNMP network management station, functioning as a password.
  • Page 160 udp-port —— UDP port, which is used to send notifications. The UDP port functions with the IP address for the notification sending. It ranges from 1 to 65535. user-name —— The User name of the management station. smode —— The Security Model of the management station, with v1, v2c and v3 options.
  • Page 161: Snmp-Server Engineid

    snmp-server engineID Description The snmp-server engineID command is used to configure the local and remote engineID of the switch. To restore to the default setting, please use no snmp-server engineID command. Syntax snmp-server engineID { [ local local-engineID ] [ remote remote-engineID ] } no snmp-server engineID Parameter local-engineID ——...
  • Page 162: Snmp-Server Traps Link-Status

    Syntax snmp-server traps snmp [ linkup | linkdown | warmstart | coldstart ] no snmp-server traps snmp [ linkup | linkdown | warmstart | coldstart ] Parameter linkup —— Enable linkup trap. It is sent when port status changes from linkdown to linkup.
  • Page 163: Snmp-Server Traps

    snmp-server traps Description The snmp-server traps command is used to enable SNMP extended traps. To disable the sending of SNMP extended traps, please use no snmp-server traps command. Syntax snmp-server traps { bandwidth-control | cpu | flash | ipaddr-change | lldp | loopback-detection | storm-control | spanning-tree } no snmp-server traps { bandwidth-control | cpu | flash | ipaddr-change | lldp | loopback-detection | storm-control | spanning-tree }...
  • Page 164: Snmp-Server Traps Mac

    snmp-server traps mac Description The snmp-server traps mac command is used to enable SNMP extended address-related traps which include four types: new, full, learn-mode-change and max-learned. To disable the sending of SNMP extended MAC address related traps, please use no snmp-server traps mac command.
  • Page 165: Rmon History

    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.
  • Page 166: Rmon Event

    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...
  • Page 167: Rmon Alarm

    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 owner owner1 rmon alarm...
  • Page 168: Show Snmp-Server

    last sampled value from the current value, and then comparing the difference in the values with the threshold. By default, the Sample Type is “absolute”. r-hold —— The rising counter value that triggers the Rising Threshold alarm, ranging from 1 to 65535. By default, it is 100. r-event ——...
  • Page 169: Show Snmp-Server View

    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 Command Mode Privileged EXEC Mode and Any Configuration Mode Example...
  • Page 170: Show Snmp-Server User

    show snmp-server user Description The show snmp-server user command is used to display the User table. Syntax show snmp-server user Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the User table: TL-SG2424# show snmp-server user show snmp-server community Description The show snmp-server community command is used to display the Community table.
  • Page 171: Show Snmp-Server Engineid

    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 snmp-server engineID show rmon history Description The show rmon history command is used to display the configuration of the...
  • Page 172: Show Rmon Event

    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 more than one entry for each command.
  • Page 173: Chapter 23 Lldp Commands

    Chapter 23 LLDP Commands Note: Only TL-SG2424P supports LLDP function. LLDP function enables network devices to advertise their own device information periodically to neighbors on the same LAN. The information of the LLDP devices in the LAN can be stored by its neighbor in a standard MIB, so it is possible for the information to be accessed by a Network Management System (NMS) such as SNMP.
  • Page 174: Lldp Timer

    Parameter multiplier —— Configure the Hold Multiplier parameter. It ranges from 2 to 10. By default, it is 4. Command Mode Global Configuration Mode Example Specify Hold Multiplier as 5: TL-SG2424P(config)# lldp hold-multiplier 5 lldp timer Description The lldp timer command is used to configure the parameters about transmission.
  • Page 175: Lldp Med-Fast-Count

    be sent out (the number of LLDPDUs equals this parameter). The value ranges from 1 to 10 and the default value is 3. Command Mode Global Configuration Mode Example Specify the Transmit Interval of LLDPDU as 45 seconds and Trap message to NMS as 120 seconds: TL-SG2424P(config)# lldp timer tx-interval 45 TL-SG2424P(config)# lldp timer notify-interval 120...
  • Page 176: Lldp Transmit

    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 The lldp transmit command is used to enable the designated port to transmit LLDPDU.
  • Page 177: Lldp Tlv-Select

    Syntax lldp snmp-trap no lldp snmp-trap Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the SNMP notification for port 1: TL-SG2424P(config)# interface gigabitEthernet 1/0/1 TL-SG2424P(config-if)# lldp snmp-trap lldp tlv-select Description The lldp tlv-select command is used to configure TLVs to be included in outgoing LLDPDU.
  • Page 178: Lldp Med-Location

    lldp med-location Description The lldp med-location command is used to configure the Location Identification TLV's content in outgoing LLDPDU of the port. Syntax lldp med-location { emergency-number identifier | civic-address { [ language language ] [ province-state province-state ] [ county county] [city city ] [ street street ] [ house-number house-number ] [name name ] [ postal-zipcode postal-zipcode ] [ room-number room-number ] [ post-office-box post-office-box ] [ additional additional ] [ country-code country-code ] [ what { dhcp-server |...
  • Page 179: Lldp Med-Tlv-Select

    Status will be changed to Tx&Rx. To disable the LLDP-MED feature for the corresponding port, please use no lldp med-status command. Syntax lldp med-status no lldp med-status Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the LLDP-MED feature for port 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(config-if)# lldp med-status lldp med-tlv-select...
  • Page 180: Show Lldp

    show lldp Description The show lldp command is used to display the global configuration of LLDP and LLDP-MED fast start repeat count number. Syntax show lldp Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the global configuration of LLDP and LLDP-MED fast start repeat count number: TL-SG2424P# show lldp show lldp interface...
  • Page 181 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 [ gigabitEthernet port ] Parameter port ——...
  • Page 182: Show Lldp Traffic Interface

    show lldp traffic interface Description The show lldp traffic interface command is used to display the LLDP statistic information between the local device and neighbor device of the corresponding port. By default, the LLDP statistic information of all the ports will be displayed. Syntax show lldp traffic interface [ gigabitEthernet port ] Parameter...

This manual is also suitable for:

Tl-sg2424Tl-sg2424pTl-sg2452

Table of Contents