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
REV2.0.0
1910011094

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TL-SG2216 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for TP-Link TL-SG2216

  • Page 1 TL-SG2216/TL-SG2424/TL-SG2424P/TL-SG2452 Gigabit Smart Switch REV2.0.0 1910011094...
  • Page 2 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 ..................4 1.1 Accessing the CLI ....................... 4 1.1.1. Logon by Telnet ....................4 1.1.2. Logon by SSH ..................... 5 1.2 CLI Command Modes ......................11 1.3 Security Levels ........................13 1.4 Conventions ........................
  • Page 4 voice vlan ..........................26 voice vlan aging time ....................... 26 voice vlan priority ........................27 voice vlan mac-address ......................27 switchport voice vlan mode ..................... 28 switchport voice vlan security ....................29 show voice vlan ........................29 show voice vlan oui ......................... 30 show voice vlan switchport .....................
  • Page 5 show logging loghost ....................... 48 show logging buffer ......................... 49 show logging flash ........................49 Chapter 8 SSH Commands................. 51 ip ssh server ..........................51 ip ssh version .......................... 51 ip ssh timeout .......................... 52 ip ssh max-client ........................52 ip ssh download ........................
  • Page 6 contact-info ..........................72 ip management-vlan ........................ 72 ip address ..........................73 ip address-alloc dhcp ......................73 ip address-alloc bootp ......................74 reset ............................74 reboot ............................75 copy running-config startup-config ..................75 copy startup-config tftp ......................75 copy tftp startup-config ......................76 firmware upgrade ........................
  • Page 7 speed ............................91 storm-control broadcast ......................92 storm-control multicast ......................93 storm-control unicast ....................... 95 storm-control rate ........................96 bandwidth ..........................97 clear counters .......................... 97 show interface status ......................98 show interface counters ......................98 show interface description ...................... 99 show interface flowcontrol .......................
  • Page 8 loopback-detection interval ....................115 loopback-detection recovery-time ..................116 loopback-detection(interface) ....................116 loopback-detection config ...................... 117 loopback-detection recover ....................118 show loopback-detection global ..................... 118 show loopback-detection interface ..................119 Chapter 18 ACL Commands ................120 access-list create ........................120 mac access-list ........................120 access-list standard ......................
  • Page 9 power inline profile ........................ 136 power inline time-range ......................137 show power inline ........................138 show power inline configuration interface ................138 show power inline information interface ................138 show power profile ........................ 139 show power holiday ....................... 139 show power time-range ......................140 Chapter 21 MSTP Commands ................
  • Page 10 ip igmp snooping(global) ....................... 157 ip igmp snooping(interface) ....................157 ip igmp snooping immediate-leave ..................158 ip igmp snooping drop-unknown ................... 158 ip igmp snooping vlan-config ....................159 ip igmp snooping multi-vlan-config ..................160 ip igmp snooping filter add-id ....................161 ip igmp snooping filter(global) ....................
  • Page 11 ipv6 mld snooping filter(global) ..................... 179 ipv6 mld snooping filter(interface) ..................179 ipv6 mld snooping filter-mode ....................180 ipv6 mld snooping filter-id ..................... 180 ipv6 mld snooping max-group ....................181 clear ipv6 mld snooping statistics ..................181 show ipv6 mld snooping ......................182 show ipv6 mld snooping vlan ....................
  • Page 12 show snmp-server engineID ....................202 show rmon history ......................... 202 show rmon event ........................203 show rmon alarm ........................203 Chapter 25 LLDP Commands ................205 lldp ............................205 lldp hold-multiplier ......................... 205 lldp timer ..........................206 lldp med-fast-count ........................ 207 lldp receive ..........................
  • Page 13: Preface

    Guide stands TL-SG2216/TL-SG2424/TL-SG2424P/TL-SG2452 Gigabit Smart Switch. The five 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. Overview of this Guide Chapter 1: Using the CLI Provide information about how to use the CLI, CLI Command Modes, Security Levels and some Conventions.
  • Page 14 Chapter 11: System Configuration Commands Provide information about the commands used for configuring the System information and System IP, reboot and reset the switch, upgrade the switch system and commands used for cable test. Chapter 12: IPv6 Address Configuration Commands Provide information about the commands used for configuring the System IPv6 addresses.
  • Page 15 Chapter 25: LLDP Commands Provide information about the commands used for configuring LLDP function.
  • Page 16: 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 or SSH connection through an Ethernet port. 1.1.1. Logon by Telnet To log on to the switch by a Telnet connection, please take the following steps: 1.
  • Page 17: 1.1.2. Logon By Ssh

    1.1.2. Logon by SSH To log on by SSH, a Putty client software is recommended. There are two authentication modes to set up an SSH connection: Password Authentication Mode: It requires username and password, which are both admin by default. Key Authentication Mode: It requires a public key for the switch and a private key for the SSH client software.
  • Page 18 Figure 1-5 SSH Connection Config Click the Open button in the above figure to log on to the switch. Enter the login user name and password to log on the switch, and then enter enable to enter Privileged EXEC Mode, so you can continue to configure the switch.
  • Page 19 Key Authentication Mode  Select the key type and key length, and generate SSH key. Figure 1-7 Generate SSH Key Note: The key length is in the range of 256 to 3072 bits. During the key generation, randomly moving the mouse quickly can accelerate the key generation.
  • Page 20 After the key is successfully generated, please save the public key and private key to a TFTP server. Figure 1-8 Save the Generated Key Log on to the switch by Telnet and download the public key file from the TFTP server to the switch, as the following figure shows:...
  • Page 21 Figure 1-9 Download the Public Key Note: 1. The key type should accord with the type of the key file. 2. The SSH key downloading can not be interrupted. After the public key is downloaded, please log on to the interface of PuTTY and enter the IP address for login.
  • Page 22 Figure 1-10 SSH Connection Config Click Browse to download the private key file to SSH client software and click Open. Figure 1-11 Download the Private Key...
  • Page 23: 1.2 Cli Command Modes

    After successful authentication, please enter the login user name. If you log on to the switch without entering password, it indicates that the key has been successfully downloaded. Figure 1-12 Log on the Switch 1.2 CLI Command Modes The CLI is divided into different command modes: User EXEC Mode, Privileged EXEC Mode, Global Configuration Mode, Interface Configuration Mode and VLAN Configuration Mode.
  • Page 24 Accessing Logout or Access the next Mode Prompt Path mode Use the configure Use the exit or the end command command to enter or press Ctrl+Z to return to this mode from Privileged EXEC mode. Privileged EXEC Use the interface gigabitEthernet Global mode.
  • Page 25: 1.3 Security Levels

    c). Interface link-aggregation: Configure parameters for a link-aggregation, such as broadcast storm. d). Interface range link-aggregation: Configure parameters for multi-trunks. e). Interface vlan: Configure parameters for the vlan-port. VLAN Configuration Mode: In this mode, users can create a VLAN and add a specified ...
  • Page 26: 1.4.2 Special Characters

    Normal Font indicates a constant (several options are enumerated and only one can be  selected). For example: mode {dynamic | static | permanent} Italic Font indicates a variable (an actual value must be assigned). For example: bridge  aging-time aging-time 1.4.2 Special Characters You should pay attentions to the description below if the variable is a character string: These six characters ”...
  • Page 27: 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 28: Enable Password

    enable password Description The enable password command is used to set or change the password for users to access Privileged EXEC Mode from User EXEC Mode. To remove the password, please use no enable password command. This command uses the symmetric encryption.
  • Page 29: Enable Secret

    enable secret Description The enable secret command is used to set a secret password, which is using an MD5 encryption algorithm, for users to access Privileged EXEC Mode from User EXEC Mode. To return to the default configuration, please use no enable secret command.
  • Page 30: 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 31: 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 32: History Clear

    1 history history clear Description The history clear command is used to clear the commands you have entered in the current mode, therefore these commands will not be shown next time you use the history command. Syntax history clear Command Mode Privileged EXEC Mode and any Configuration Mode Example Clear the commands you have entered in the current mode:...
  • Page 33: 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 34: 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 35: 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 36: 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 37: 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 38: 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 39: 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 40: 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 41: Switchport Voice Vlan Security

    Example Configure the port 3 to operate in the auto voice VLAN mode: 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.
  • Page 42: Show Voice Vlan Oui

    Example Display the configuration information of Voice VLAN globally: TL-SG2424(config)# show voice vlan 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...
  • Page 43 Display the Voice VLAN configuration information of port 2: TL-SG2424(config)# show voice vlan switchport gigabitEthernet 1/0/2...
  • Page 44: 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 45: 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 46: 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 47: 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 48: 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 49: Chapter 6 User Management Commands

    Chapter 6 User Management Commands User Manage Commands are used to manage the user’s logging information by Web, Telnet or SSH, so as to protect the settings of the switch from being randomly changed. user name (password) Description The user name command is used to add a new user or modify the existed users’...
  • Page 50: User Name (Secret)

    User Guidelines If the password you configured here is unencrypted and the global encryption function is enabled in service password-encryption, the password in the configuration file will be displayed in the symmetric encrypted form. If you change the password of the current user in a telnet connection, the connection will be cut off and the newly configured password is required for the re-login.
  • Page 51: User Access-Control Ip-Based

    ( !$%'()*,-./[]{|} ). By default, it is empty. The password will be saved to the configuration file using the MD5 encrypted algorithm. 5 —— Indicates an MD5 encrypted password with fixed length will follow. encrypted-password —— An MD5 encrypted password with fixed length, which you can copy from another switch’s configuration file.
  • Page 52: User Access-Control Mac-Based

    Global Configuration Mode Example Enable the access-control of the user whose IP address is 192.168.0.148: TL-SG2424(config)# user access-control ip-based 192.168.0.148 255.255.255.255 user access-control mac-based Description The user access-control mac-based command is used to limit the MAC address of the users for login. Only the user with this MAC address you set here is allowed to login.
  • Page 53: User Max-Number

    user access-control port-based interface { gigabitEthernet port | range gigabitEthernet port-list } no user access-control Parameter port —— The Ethernet port number. port-list ——The list group of Ethernet ports, in the format of 1/0/1-4. You can appoint 5 ports at most. Command Mode Global Configuration Mode Example...
  • Page 54: User Idle-Timeout

    Example Configure the number of the users as Admin and Guest logging on as 5 and 3: TL-SG2424(config)# user max-num 5 3 user idle-timeout Description The user idle-timeout command is used to configure the timeout time of the switch. To restore to the default timeout time, please use no user idle-timeout command.
  • Page 55: Show User Configuration

    TL-SG2424(config)# show user account-list show user configuration Description The show user configuration command is used to display the security configuration information of the users, including access-control, max-number and the idle-timeout, etc. Syntax show user configuration Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the security configuration information of the users: TL-SG2424(config)# show user configuration...
  • Page 56: 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 57: Logging File Flash

    logging file flash Description The logging file flash command is used to store the log messages in a file in the flash on the switch. To disable the log file flash function, please use no logging file flash command. The log file flash indicates the flash sector for saving system log.
  • Page 58: Logging File Flash Level

    Command Mode Global Configuration Mode Example Specify the log file synchronization frequency as 10 hours: TL-SG2424(config)#logging file flash frequency periodic10 logging file flash level Description The logging file flash level command is used to specify the system log message severity level. Messages will a severity level equal to or higher than this value will be stored to the flash.
  • Page 59: Logging Host Index

    Syntax clear logging [ buffer | flash ] Parameter buffer | flash —The output channels: buffer and flash. Clear the information of the two channels, by default. Command Mode Global Configuration Mode Example Clear the information in the log file: TL-SG2424(config)# clear logging buffer logging host index Description...
  • Page 60: Show Logging Local-Config

    Example Enable log host 2 and set its IP address as 192.168.0.148, the level 5: TL-SG2424(config)# logging host index 2 192.168.0.148 5 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...
  • Page 61: Show Logging Buffer

    show logging buffer Description 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 62 Example Display the log information with the level marked 0~3 in the log file: TL-SG2424(config)# show logging flash level 3...
  • Page 63: 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 64: 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 65: 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 66 Syntax show ip ssh...
  • Page 67 Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the global configuration of SSH: TL-SG2424(config)# show ip ssh...
  • Page 68: 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 69: 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. Both IPv4 and IPv6 addresses are supported, for example 192.168.0.1 or fe80::1234.
  • Page 70: Show Ip Http Secure-Server

    Example Download an SSL key named ssl-key from TFTP server with the IP address of 192.168.0.146: TL-SG2424(config)# ip http secure-server download key ssl-key ip-address 192.168.0.146 Download an SSL key named ssl-key from TFTP server with the IP address of fe80::1234 TL-SG2424(config)# ip http secure-server download key ssl-key ip-address fe80::1234 show ip http secure-server...
  • Page 71: 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 72: 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 73: 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 00:1e:4b:04:01:5d vid 1 mac address-table max-mac-count Description The mac address-table max-mac-count command is used to configure the Port Security.
  • Page 74: Show Mac Address-Table

    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 TL-SG2424(config-if)# mac address-table max-mac-count max-number 30 mode static status enable...
  • Page 75: Show Mac Address-Table Max-Mac-Count Interface Gigabitethernet

    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 76: Show Mac Address-Table Count

    —— 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 count Description The show mac address-table count command is used to display the total amount of MAC address table.
  • Page 77: Show Mac Address-Table Vlan

    TL-SG2424(config)#show mac address-table address 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. Syntax show mac address-table vlan vid Parameter —— The specified VLAN id. Command Mode Privileged EXEC Mode and Any Configuration Mode Example...
  • Page 78: 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 79 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 80: System-Time Dst Predefined

    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 time configuration from the predefined mode.
  • Page 81: System-Time Dst Recurring

    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 82: Command Mode

    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 83: Hostname

    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 —— System Name. The length of the name ranges from 1 to 32 characters.
  • Page 84: Contact-Info

    —— Contact Information. It consists of 32 characters at most. It is “www.tp-link.com” by default. Command Mode Global Configuration Mode Example Configure the system contact information as www.tp-link.com: TL-SG2424(config)# contact-info www.tp-link.com ip management-vlan Description The ip management-vlan command is used to configure the IP management VLAN, through which you can log on to the switch.
  • Page 85: 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 86: 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 87: 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 88: Copy Tftp Startup-Config

    Syntax ip-address ip-addr filename name copy startup-config tftp Parameter ip-addr —— IP Address of the TFTP server. Both IPv4 and IPv6 addresses are supported, for example 192.168.0.1 or fe80::1234. name —— Specify the name for the configuration file which would be backup. Command Mode Privileged EXEC Mode Example...
  • Page 89: Firmware Upgrade

    TL-SG2424# copy tftp startup-config ip-address 192.168.0.148 filename config Download the configuration file named as config.cfg to the switch from TFTP server with the IP fe80::1234 TL-SG2424# copy tftp startup-config ip-address fe80::1234 filename config firmware upgrade Description The firmware upgrade command is used to upgrade the switch system file via the TFTP server.
  • Page 90: Tracert

    Syntax ping [ ip | ipv6 ] { ip_addr } [ -n count ] [ -l count ] [ -i count ] Parameter ip —— The type of the IP address for ping test should be IPv4. ipv6 —— The type of the IP address for ping test should be IPv6. ip_addr ——...
  • Page 91: Show System-Info

    Parameter ip —— The type of the IP address for tracert test should be IPv4. ipv6 —— The type of the IP address for tracert test should be IPv6. ip_addr —— The IP address of the destination device. If the parameter ip/ipv6 is not selected, both IPv4 and IPv6 addresses are supported, for example 192.168.0.100 or fe80::1234.
  • Page 92: Show Running-Config

    TL-SG2424# show system-info show running-config Description The show running-config command is used to display the current operating configuration of the system or of a specified port. Syntax show running-config [ interface gigabitEthernet port ] Parameter port —— The Gigabit Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example...
  • Page 93: Show System-Time Ntp

    Syntax show system-time dst Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the DST time information of the switch TL-SG2424# show system-time dst show system-time ntp Description The show system-time ntp command is used to display the NTP mode configuration information.
  • Page 94 Command Mode Privileged EXEC Mode and Any Configuration Mode Example Show the cable-diagnostics of port 3: TL-SG2424# show cable-diagnostics interface gigabitEthernet 1/0/3...
  • Page 95: Chapter 12 Ipv6 Address Configuration Commands

    Chapter 12 IPv6 Address Configuration Commands The IPv6 address configuration commands are provided in the Interface VLAN Mode. Type enable →configure→interface vlan {vlan-id} to enter the Interface Configuration Mode of the management VLAN. By default the management VLAN is VLAN1. You can use the command ip management-vlan {vlan-id} in the Global Configuration Mode to configure the management VLAN.
  • Page 96: Ipv6 Address Link-Local

    address, the manually configured ipv6 link-local address will be deleted when the autoconfigured ipv6 link-local address takes effect. Syntax ipv6 address autoconfig Configuration Mode Interface Configuration Mode (interface vlan) Example Enable the automatic configuration of the ipv6 link-local address when the management VLAN of the switch is VLAN1: TL-SG2424(config)# interface vlan 1 TL-SG2424(config-if)# ipv6 address autoconfig...
  • Page 97: Ipv6 Address Ra

    Description The ipv6 address dhcp command is used to enable the DHCPv6 Client function. When this function is enabled, the switch will try to obtain IP from DHCPv6 server. To delete the allocated IP from DHCPv6 server and disable the DHCPv6 Client function, please use no ipv6 address dhcp command.
  • Page 98: Ipv6 Address Eui-64

    ipv6 address eui-64 Description This command is used to manually configure a global IPv6 address with an extended unique identifier (EUI) in the low-order 64 bits on the interface. Specify only the network prefix. The last 64 bits are automatically computed from the switch MAC address.
  • Page 99: Show Ipv6 Interface Vlan

    Configuration Mode Interface Configuration Mode (interface vlan) Example Configure the global address 3001::1/64 on the interface: TL-SG2424(config)# interface vlan 1 TL-SG2424(config-if)# ipv6 address 3001::1/64 show ipv6 interface vlan Description This command is used to display the configured ipv6 information of the management vlan,interface, including ipv6 function status, link-local address and global address, ipv6 multicast groups etc.
  • Page 100: Chapter 13 Ethernet Configuration Commands

    Chapter 13 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 101: 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 102: 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 103: 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 104: Storm-Control Broadcast

    Configure the Speed Mode as 100Mbps for port 3: TL-SG2424(config)# interface gigabitEthernet 1/0/3 TL-SG2424(config-if)# speed 100 storm-control broadcast For TL-SG2216/TL-SG2424/TL-SG2424P: Description The storm-control broadcast command is used to enable the broadcast control function. To disable the broadcast control function, please use no storm-control broadcast command.
  • Page 105: Storm-Control Multicast

    Enable the broadcast control function for port 5: TL-SG2452(config)# interface gigabitEthernet 1/0/5 TL-SG2452(config-if)# storm-control broadcast storm-control multicast For TL-SG2216/TL-SG2424/TL-SG2424P: 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 106 Syntax storm-control multicast no storm-control multicast Parameter rate —— Specify the bandwidth for receiving multicast packets on the port. The packet traffic exceeding the bandwidth will be discarded. The value of it can be 128k | 256k| 512k|1m | 2m | 4m | 5m | 10m | 20m | 40m | 50m in bps. By default, the value is “128K”.
  • Page 107: Storm-Control Unicast

    For TL-SG2216/TL-SG2424/TL-SG2424P: Description The storm-control unicast command is used to enable the unicast control function. To disable the unicast control function, please use no storm-control unicast command. Unicast control function allows the switch to filter UL frame 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.
  • Page 108: Storm-Control Rate

    no storm-control unicast Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the unicast control function for port 5: TL-SG2452(config)# interface gigabitEthernet 1/0/5 TL-SG2452(config-if)# storm-control unicast storm-control rate This command is supported only on TL-SG2452. Description The storm-control rate command is used to configure storm control rate.
  • Page 109: Bandwidth

    bandwidth Description The bandwidth command is used to configure the bandwidth limit for an Ethernet port. To disable the bandwidth limit, please use no bandwidth command. Syntax bandwidth {[ ingress ingress-rate ] [ egress egress-rate ]} no bandwidth { all | ingress | egress } Parameter ingress-rate ——...
  • Page 110: Show Interface Status

    show interface status Description The show interface status command is used to display the connective-status of an Ethernet port. Syntax show interface [ gigabitEthernet port ] status Parameter —— port The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the connective-status of all ports: TL-SG2424(config)# show interface status...
  • Page 111: Show Interface Description

    show interface description Description The show interface description command is used to display the description of all ports or an Ethernet port. Syntax show interface [ gigabitEthernet port ] description Parameter —— port The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the description of all Ethernet ports: TL-SG2424(config)# show interface description...
  • Page 112: Show Interface Configuration

    show interface configuration Description The show interface configuration command is used to display the configurations of all ports or an Ethernet port, including Port-status, Flow Control, Negotiation Mode and Port-description. Syntax show interface [ gigabitEthernet port ] configuration Parameter —— port The Ethernet port number.
  • Page 113: Show Bandwidth

    TL-SG2424(config)# show storm-control interface range gigabitEthernet 1/0/4-7 show bandwidth Description The show bandwidth command is used to display the bandwidth-limit information of Ethernet ports. Syntax show bandwidth [interface { gigabitEthernet port | range gigabitEthernet port-list }] Parameter port —— The Ethernet port number. port-list ——...
  • Page 114: Chapter 14 Qos Commands

    Chapter 14 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 115: Qos Dscp

    Syntax qos cos no qos cos Command Mode Global Configuration Mode User Guidelines IEEE 802.1P gives the Pri field in IEEE 802.1Q tag a recommended definition. When the mapping relation between IEEE 802.1P Priority and TC egress queue is enabled, the data will be classified into the egress queue based on this mapping relation.
  • Page 116: Qos Queue Cos-Map

    0 to 7 (for TL-SG2452) or ranges from CoS 0 to CoS 7 (for TL-SG2216/TL-SG2424/TL-SG2424P) . tc-id —— The egress queue the packets with tag are mapped to. It ranges from 0 to 3, which represents TC0, TC1, TC2 and TC3 respectively.
  • Page 117: User Guidelines

    Example Map DSCP values 10-12 to TC 2: TL-SG2452(config)# qos queue dscp-map 10-12 2 For TL-SG2216/TL-SG2424/TL-SG2424P: Description The qos queue dscp-map command is used to configure the mapping relation between DSCP Priority and the CoS value. To return to the default configuration, please use no qos queue dscp-map command.
  • Page 118: Qos Queue Mode

    Syntax qos queue dscp-map { dscp-list } { cos-id } no qos queue dscp-map Parameter dscp-list —— List of DSCP value. One or several DSCP values can be typed using comma to separate. Use a hyphen to designate a range of values, for instance, 1,4-7,11 indicates choosing 1,4,5,6,7,11.
  • Page 119: Show Qos Interface

    sp —— Strict-Priority Mode. In this mode, the queue with higher priority will occupy the whole bandwidth. Packets in the queue with lower priority are sent only when the queue with higher priority is empty. wrr —— Weight Round Robin Mode. In this mode, packets in all the queues are sent in order based on the weight value for each queue.
  • Page 120: Show Qos Cos-Map

    Display the configuration of QoS for port 5: TL-SG2424# show qos interface gigabitEthernet 1/0/5 Display the configuration of QoS for ports 1-4: TL-SG2424# show qos interface range gigabitEthernet 1/0/1-4 show qos cos-map Description The show qos cos-map command is used to display the configuration of IEEE 802.1P Priority and the mapping relation between cos-id and tc-id.
  • Page 121: Show Qos Status

    Description The show qos queue mode command is used to display the schedule rule of the egress queues. Syntax show qos queue mode Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the schedule rule of the egress queues: TL-SG2424# show qos queue mode show qos status Description...
  • Page 122: Chapter 15 Port Mirror Commands

    Chapter 15 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 123: 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 124: 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 125: Chapter 16 Port Isolation Commands

    Chapter 16 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 126 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 127: Chapter 17 Loopback Detection Commands

    Chapter 17 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 128: 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 129: Loopback-Detection Config

    Example Enable the loopback detection function of ports 1-3: 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.
  • Page 130: Loopback-Detection Recover

    loopback-detection recover Description The loopback-detection recover command is used to remove the block status of selected ports, recovering the blocked ports to normal status, 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...
  • Page 131: Show Loopback-Detection Interface

    show loopback-detection interface Description The show loopback-detection interface command is used to display the configuration of loopback detection function and the status of the specified Ethernet port. Syntax show loopback-detection interface [ gigabitEthernet port ] Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example...
  • Page 132: Chapter 18 Acl Commands

    Chapter 18 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 133: 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 134: 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 135: 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 136: 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 137: 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 138: 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 139: 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 140: Chapter 19 Dhcp Filtering Commands

    Chapter 19 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 141: 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 142: Chapter 20 Poe Commands

    Chapter 20 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 143: 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 144: 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 145: 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 146: 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 147: 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 consumption ——...
  • Page 148: 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 149: 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 150: 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 151: 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 152: 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 153: Chapter 21 Mstp Commands

    Chapter 21 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 154: Spanning-Tree Common-Config

    Example Enable the STP function for port 2: TL-SG2424(config)# interface gigabitEthernet 1/0/2 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.
  • Page 155: Spanning-Tree Mode

    point-to-point —— The P2P link status, with auto, open and close options. By default, the option is auto. If the two ports in the P2P link are root port or designated port, they can transit their states to forwarding rapidly to reduce the unnecessary forward delay.
  • Page 156: Spanning-Tree Mst Configuration

    spanning-tree mst configuration Description The spanning-tree mst configuration command is used to access MST Configuration Mode from Global Configuration Mode, as to configure the VLAN-Instance mapping, region name and revision level. To return to the default configuration of the corresponding Instance, please use no spanning-tree mst configuration command.
  • Page 157: Name

    TL-SG2424(config)# spanning-tree mst configuration TL-SG2424(config-mst)# instance 1 vlan 1-100 Disable Instance 1, namely remove all the mapping VLANs 1-100: TL- SG2424(config)# spanning-tree mst configuration 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...
  • Page 158: Spanning-Tree Mst Instance

    revision —— The revision level for MST region identification, ranging from 0 to 65535. Command Mode MST Configuration Mode Example Configure the revision level of MST as 100: 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.
  • Page 159: Spanning-Tree Priority

    spanning tree instance. You can use this command to configure the parameters of the ports in different instance IDs as well as view status of the ports in the specified instance. Syntax spanning-tree mst instance instance-id {[ port-priority pri ] | [ cost cost ]} no spanning-tree mst instance instance-id Parameter instance-id ——...
  • Page 160: Spanning-Tree Tc-Defend

    Example Configure the bridge priority as 4096: TL-SG2424(config)# spanning-tree priority 4096 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.
  • Page 161: Spanning-Tree Hold-Count

    spanning-tree timer {[ forward-time forward-time ] [ hello-time hello-time ] [ max-age max-age ]} no spanning-tree timer 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.
  • Page 162: Spanning-Tree Max-Hops

    Example Configure the hold-count of STP as 8pps: 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 163: Spanning-Tree Bpduguard

    Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) 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 164: Spanning-Tree Guard Root

    no spanning-tree guard loop 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 165: Spanning-Tree Mcheck

    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. 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.
  • Page 166: 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 167: 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 168: 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 169: Chapter 22 Igmp Snooping Commands

    Chapter 22 IGMP Snooping 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 170: Ip Igmp Snooping Immediate-Leave

    Example Enable IGMP Snooping function of port 3: 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.
  • Page 171: Ip Igmp Snooping Vlan-Config

    Example Specify the operation to process unknown multicast as discard: TL-SG2424(config)# ip igmp snooping drop-unknown 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.
  • Page 172: Ip Igmp Snooping Multi-Vlan-Config

    Command Mode Global Configuration Mode 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 173: 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 174: 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 175: 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 176: 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 177: 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 178: Show Ip Igmp Snooping Multi-Vlan

    Example Display the IGMP snooping configuration information of VLAN 2: 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...
  • Page 179: Show Ip Igmp Snooping Filter

    Command Mode Privileged EXEC Mode and Any Configuration Mode 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...
  • Page 180 Example Display all the multicast filter address information: TL-SG2424(config)# show ip igmp snooping filter...
  • Page 181: Chapter 23 Mld Snooping Commands

    Chapter 23 MLD Snooping Commands MLD Snooping (Multicast Listener Discovery Snooping) is a multicast control mechanism running on Layer 2 switch. It can effectively prevent multicast groups being broadcasted in the IPv6 network. ipv6 mld snooping Description The ipv6 mld snooping command is used to enable MLD Snooping function globally.
  • Page 182: Ipv6 Mld Snooping Member-Aging-Time

    Example Specify MLD Snooping router port aging time as 100 seconds globally: TL-SG2424(config)# ipv6 mld snooping router-aging-time 100 ipv6 mld snooping member-aging-time Description The ipv6 mld snooping member-aging-time command is used to specify member port aging time globally. The default aging time is 260 seconds. To ipv6 snooping restore...
  • Page 183: Ipv6 Mld Snooping Unknown-Filter

    ipv6 mld snooping unknown-filter Description The ipv6 mld snooping unknown-filter command is used to enable the unknown multicast packets filter function. To disable this function, please use no ipv6 mld snooping unknown-filter command. By default, it is disabled. Syntax ipv6 mld snooping unknown-filter no ipv6 mld snooping unknown-filter Command Mode Global Configuration Mode...
  • Page 184: Ipv6 Mld Snooping Last-Listener Query-Count

    ipv6 mld snooping last-listener query-count Description The ipv6 mld snooping last-listener query-count command is used to specify the numbers of Specific Query Message to be sent. The default value is 2. To restore the default number, please use no ipv6 mld snooping last-listener query-count command.
  • Page 185: Ipv6 Mld Snooping Multicast-Vlan Vlan-Id

    ipv6 mld snooping multicast-vlan vlan-id Description The ipv6 mld snooping multicast-vlan vlan-id command is used to specify the multicast VLAN ID. The default multicast VLAN is VLAN1. To restore the default VLAN, please use no ipv6 mld snooping multicast-vlan vlan-id command.
  • Page 186: Ipv6 Mld Snooping Vlan Router-Aging-Time

    ipv6 mld snooping vlan router-aging-time Description The ipv6 mld snooping vlan router-aging-time command is used to specify router port aging time for a specified VLAN. If this time is set to 0, then the global router port aging time will be used. The default time is 0. To restore the default timer, please use no ipv6 mld snooping vlan router-aging-time command.
  • Page 187: Ipv6 Mld Snooping Vlan Immediate-Leave

    Example Specify the member port aging time as 100 seconds in VLAN 2: TL-SG2424(config)# ipv6 mld snooping vlan 2 member-aging-time 100 ipv6 mld snooping vlan immediate-leave Description The ipv6 mld snooping vlan immediate-leave command is used to enable the immediate leave function on a specified VLAN. To disable this funciton, please use no ipv6 mld snooping vlan immediate-leave command.
  • Page 188: Ipv6 Mld Snooping Vlan Static

    Command Mode Global Configuration Mode Example Configure the gigabitEthernet 1/0/2 as static router port in VLAN 2: TL-SG2424(config)# ipv6 mld snooping vlan 2 mrouter interface gigabitEthernet 1/0/2 ipv6 mld snooping vlan static Description The ipv6 mld snooping vlan static command is used to configure the static multicast groups.
  • Page 189: Ipv6 Mld Snooping Querier Vlan Max-Response-Time

    Syntax ipv6 mld snooping querier vlan vlan-id no ipv6 mld snooping querier vlan vlan-id Parameter vlan-id —— The VLAN that enables the MLD querier function, ranging from 1 to 4094. Command Mode Global Configuration Mode Example Enable MLD Querier function on VLAN 2: TL-SG2424(config)# ipv6 mld snooping querier vlan 2 ipv6 mld snooping querier vlan max-response-time Description...
  • Page 190: Ipv6 Mld Snooping Querier Vlan Query-Interval

    ipv6 mld snooping querier vlan query-interval Description The ipv6 mld snooping querier vlan query-interval command is used to specify the interval to send the Query Message. The default value is 25 seconds. To restore the default value, please use no ipv6 mld snooping querier vlan query-interval command.
  • Page 191: Ipv6 Mld Snooping Filter(Global)

    Example Specify the source address which sends the Query message as fe80::1234 on VLAN 2: TL-SG2424(config)# ipv6 mld snooping querier vlan 2 query-source fe80::1234 ipv6 mld snooping filter(global) Description The ipv6 mld snooping filter command is used to configure the multicast group filter entries in the format of ip-range.
  • Page 192: Ipv6 Mld Snooping Filter-Mode

    Example Enable filter function on interface gigabitEthernet 1/0/2: TL-SG2424(config)# interface gigabitEthernet 1/0/2 TL-SG2424(config-if)# ipv6 mld snooping filter ipv6 mld snooping filter-mode Description The ipv6 mld snooping filter-mode command is used to configure the filter mode of the interface. The default mode is accept. To restore the default mode, please use no ipv6 mld snooping filter-mode command.
  • Page 193: Ipv6 Mld Snooping Max-Group

    Command Mode Interface Configuration Mode Example Specify the filter id as 1 and 10 on interface gigabitEthernet 1/0/2: TL-SG2424(config)# interface gigabitEthernet 1/0/2 TL-SG2424(config-if)# ipv6 mld snooping filter-id 1,10 ipv6 mld snooping max-group Description The ipv6 mld snooping max-group command is used to specify the limit number of groups for a port to join in.
  • Page 194: Show Ipv6 Mld Snooping

    Example Clear the statistics of the MLD packets: TL-SG2424(config)# clear ipv6 mld snooping statistics show ipv6 mld snooping Description The show ipv6 mld snooping command is used to display the global configuration of MLD Snooping. Syntax show ipv6 mld snooping Command Mode Privileged EXEC Mode and Any Configuration Mode Example...
  • Page 195: Show Ipv6 Mld Snooping Static-Mcast

    show ipv6 mld snooping static-mcast Description The show ipv6 mld snooping static-mcast command is used to display the static multicast groups configured by users. Syntax show ipv6 mld snooping static-mcast Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display static multicast groups: TL-SG2424(config)# show ipv6 mld snooping static-mcast show ipv6 mld snooping group...
  • Page 196: Show Ipv6 Mld Snooping Interface

    Syntax show ipv6 mld snooping filter Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the filter entries: TL-SG2424(config)# show ipv6 mld snooping filter show ipv6 mld snooping interface Description The show ipv6 mld snooping interface command is used to display the interface information of MLD Snooping.
  • Page 197: Show Ipv6 Mld Snooping Querier

    Example Display all filter ids bounded to all interface: TL-SG2424(config)# show ipv6 mld snooping interface filter show ipv6 mld snooping querier Description The show ipv6 mld snooping querier command is used to display the Querier configuration of VLAN. Syntax show ipv6 mld snooping querier [vlan vlan-id] Parameter vlan-id ——The VLAN ID selected to display, ranging from 1 to 4094.
  • Page 198: Chapter 24 Snmp Commands

    Chapter 24 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 199: 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 200: 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 201 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 202: 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 203 ip —— The IP Address of the management Host. Both IPv4 and IPv6 addresses are supported, for example 192.168.0.100 or fe80::1234. 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.
  • Page 204: Snmp-Server Engineid

    Add a Notification entry, and configure the IP Address of the management Host as fe80::1234, the UDP port as 162, the User name of the management station as admin, the Security Model of the management station as v2c, the type of the notifications as inform, the maximum time for the switch to wait as 1000 seconds, and the retries time as 100: TL-SG2424(config)# snmp-server host fe80::1234 162 admin smode v2c...
  • Page 205: Snmp-Server Traps Snmp

    snmp-server traps snmp Description The snmp-server traps snmp command is used to enable SNMP standard traps which include four types: linkup, linkdown, warmstart and coldstart. To disable the sending of SNMP standard traps, please use no snmp-server traps snmp command. Syntax snmp-server traps snmp [ linkup | linkdown | warmstart | coldstart | auth-failure ]...
  • Page 206: Snmp-Server Traps

    snmp-server traps link-status no snmp-server traps link-status Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable SNMP link status trap for port 3: TL-SG2424(config)# interface gigabitEthernet 1/0/3 TL- SG2424(config-if)# snmp-server traps link-status 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.
  • Page 207: Snmp-Server Traps Mac

    storm-control —— Enable storm-control trap. It is sent when the multicast or broadcast rate exceeds the predefined value. spanning-tree —— Enable spanning-tree trap. It is sent when the port forwarding status changes or the port receives TCN packet or packet with TC flag.
  • Page 208: Snmp-Server Traps Vlan

    Example Enable all SNMP extended MAC address-related traps for the switch: TL-SG2424(config)# snmp-server traps mac Enable new MAC address trap only for the switch: TL-SG2424(config)# snmp-server traps mac new snmp-server traps vlan Description The snmp-server traps vlan command is used to enable SNMP extended VLAN-related traps which include two types: create and delete.
  • Page 209: Rmon Event

    history group is configured, the switch collects network statistics information periodically, based on which the management station can monitor network effectively. Syntax rmon history index interface gigabitEthernet port [ interval seconds ] [ owner owner-name ] no rmon history index Parameter index ——...
  • Page 210: Rmon Alarm

    Parameter index —— The index number of the event entry, ranging from 1 to 12. You can only select one entry for each command. user-name —— The name of the User to which the event belongs, ranging from 1 to 16 characters. By default, it is “public”. descript ——...
  • Page 211 f-hold ] [ falling-event-index f-event ] [ a-type { rise | fall | all }] [ owner owner-name ] [ interval interval ] no rmon alarm index Parameter index —— The index number of the Alarm Management entry, ranging from 1 to 12, in the format of 1-3,5.
  • Page 212: Show Snmp-Server

    Example Configure the port of entries of 1,2 and 3 as port 2, the owners as owner1 and the alarm intervals as 100 seconds TL-SG2424(config)# rmon alarm 1-3 interface gigabitEthernet 1/0/2 owner owner1 interval 100 show snmp-server Description The show snmp-server command is used to display SNMP configuration globally.
  • Page 213: Show Snmp-Server User

    Syntax show snmp-server group Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Group table: TL-SG2424# show snmp-server group 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...
  • Page 214: Show Snmp-Server Host

    show snmp-server host Description The show snmp-server host command is used to display the Host table. Syntax show snmp-server host Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Host table: 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.
  • Page 215: Show Rmon Event

    for each command. By default, the configuration of all history sample entries is displayed. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of all history sample entries: TL-SG2424# show rmon history show rmon event Description The show rmon event command is used to display the configuration of SNMP-RMON Event.
  • Page 216 for each command. By default, the configuration of all Alarm Management entries is displayed. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of the Alarm Management entry 1-2: TL-SG2424# show rmon alarm 1-2...
  • Page 217: Chapter 25 Lldp Commands

    Chapter 25 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 218: 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 219: 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 220: 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 221: 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 222: 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 223: 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 224: 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 225: Show Lldp Local-Information Interface

    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 226: 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-sg2452Tl-sg2424Tl-sg2424p

Table of Contents