TP-Link TL-SG2424P Reference Manual

TP-Link TL-SG2424P Reference Manual

24-port gigabit smart poe switch with 4 combo sfp slots
Hide thumbs Also See for TL-SG2424P:
Table of Contents

Advertisement

TL-SG2424P
24-Port Gigabit Smart PoE Switch with 4
Combo SFP Slots
REV1.0.0
1910010792

Advertisement

Table of Contents
loading

Summary of Contents for TP-Link TL-SG2424P

  • Page 1 TL-SG2424P 24-Port Gigabit Smart PoE Switch with 4 Combo SFP Slots REV1.0.0 1910010792...
  • 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 ..................3 1.1 Accessing the CLI......................3 1.2 CLI Command Modes......................4 1.3 Security Levels ........................6 1.4 Conventions ........................6 1.4.1 Format Conventions...................6 1.4.2 Special Characters.....................7 1.4.3 Parameter Format ....................7 Chapter 2 User Interface ..................8 enable............................8 enable password ........................8 disable .............................9...
  • Page 4 switchport voice vlan mode ....................20 switchport voice vlan security ....................21 show voice vlan ........................21 show voice vlan oui .......................22 show voice vlan switchport ....................22 Chapter 5 Etherchannel Commands ..............23 channel-group ........................23 port-channel load-balance .....................24 lacp system-priority .......................24 lacp port-priority........................25 show etherchannel ........................25 show etherchannel load-balance...................26 show lacp ..........................26...
  • Page 5 ip ssh timeout ........................40 ip ssh max-client........................40 ip ssh download........................41 show ip ssh..........................41 Chapter 9 SSL Commands ................. 43 ip http secure-server......................43 ip http secure-server download certificate ................43 ip http secure-server download key ..................44 show ip http secure-server ....................45 Chapter 10 MAC Address Commands..............46 mac address-table static......................46 mac address-table aging-time ....................46 mac address-table filtering ....................47...
  • Page 6 ping ............................61 tracert ............................62 loopback interface .........................63 show system-time........................63 show system-time dst ......................64 show system-time ntp......................64 show system-info........................65 show cable-diagnostics interface...................65 Chapter 12 Ethernet Configuration Commands ..........66 interface gigabitEthernet......................66 interface range gigabitEthernet .....................66 description ..........................67 shutdown ..........................67 flow-control ..........................68 duplex............................68 speed.............................69 storm-control broadcast......................70...
  • Page 7 show qos dscp-map ......................82 show qos queue mode ......................82 show qos status........................83 Chapter 14 Port Mirror Commands ..............84 monitor session destination interface ..................84 monitor session source interface...................85 show monitor session ......................86 Chapter 15 Port Isolation Commands ..............87 port isolation ..........................87 show port isolation interface ....................87 Chapter 16 Loopback Detection Commands............
  • Page 8 power inline supply ......................102 power inline profile ......................102 power inline time-range .......................103 show power inline........................103 show power inline configuration interface................104 show power inline information interface................104 show power profile ......................105 show power holiday ......................105 show power time-range .......................105 Chapter 19 MSTP Commands ................107 spanning-tree (global)......................107 spanning-tree (interface) .....................107 spanning-tree common-config .....................108...
  • Page 9 Chapter 20 IGMP Commands................123 ip igmp snooping (global) ....................123 ip igmp snooping (interface) ....................123 ip igmp snooping immediate-leave ..................124 ip igmp snooping drop-unknown..................124 ip igmp snooping vlan-config ....................125 ip igmp snooping multi-vlan-config ..................126 ip igmp snooping filter add-id....................127 ip igmp snooping filter (global).....................128 ip igmp snooping filter (interface) ..................128 ip igmp snooping filter maxgroup..................129 ip igmp snooping filter mode....................129...
  • Page 10 show rmon history .......................146 show rmon event .........................147 show rmon alarm.........................147 Chapter 22 LLDP Commands................149 lldp............................149 lldp hold-multiplier........................149 lldp timer..........................150 lldp med-fast-count ......................151 lldp receive ..........................151 lldp transmit .........................152 lldp snmp-trap........................152 lldp tlv-select........................153 lldp med-location .........................154 lldp med-status ........................154 lldp med-tlv-select........................155 show lldp ..........................156 show lldp interface.......................156 show lldp local-information interface..................157...
  • Page 11: 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-SG2424P 24-Port Gigabit Smart PoE Switch with 4 Combo SFP Slots. Overview of this Guide...
  • Page 12 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. Chapter 14: Port Mirror Commands Provide information about the commands used for configuring the Port Mirror function.
  • Page 13: 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 14: 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 15 Primary mode once it User EXEC disconnect the switch. is connected with the TL-SG2424P> Mode Use the enable command to switch. access Privileged EXEC mode. Enter the disable or the exit command to return to User EXEC enable Privileged mode.
  • Page 16: 1.3 Security Levels

    a). Interface gigabitEthernet: Configure parameters for an Ethernet port, such as Duplex-mode, flow control status. b). Interface range gigabitEthernet: The commands contained are the same as that of the Interface Ethernet. Configure parameters for several Ethernet ports. c). Interface link-aggregation: Configure parameters for a link-aggregation, such as broadcast storm.
  • Page 17: 1.4.2 Special Characters

    Bold indicates an unalterable keyword. For example: show logging  Normal Font indicates a constant (several options are enumerated and only one can be  selected). For example: switchport type { access | trunk | general } Italic Font indicates a variable (an actual value must be assigned). For example: bridge ...
  • Page 18: Chapter 2 User Interface

    Command Mode User EXEC Mode Example If you have set the password to access Privileged EXEC Mode from User EXEC Mode: TL-SG2424P> enable Enter password: TL-SG2424P# enable password Description The enable password command is used to set the password for users to access Privileged EXEC Mode from User EXEC Mode.
  • Page 19: Disable

    Example Set the super password as “admin” to access Privileged EXEC Mode from User EXEC Mode: TL-SG2424P(config)# enable password admin disable Description The disable command is used to return to User EXEC Mode from Privileged EXEC Mode. Syntax disable Command Mode...
  • Page 20: Exit

    Command Mode Any Configuration Mode Example Return to Global Configuration Mode from Interface Configuration Mode, and then return to Privileged EXEC Mode: TL-SG2424P (config-if)# exit TL-SG2424P(config)# exit TL-SG2424P# Description The end command is used to return to Privileged EXEC Mode.
  • Page 21: Chapter 3 Ieee 802.1Q Vlan Commands

    Example Create VLAN 2-10 and VLAN 100: TL-SG2424P(config)# vlan 2-10,100 Delete VLAN 2: TL-SG2424P(config)# no vlan 2 interface vlan Description The interface vlan command is used to create VLAN Interface and enter Interface VLAN Mode. To delete VLAN Interface, please use no interface vlan...
  • Page 22: Name

    —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094. Command Mode Global Configuration Mode Example Create VLAN Interface 2: TL-SG2424P(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 23: Switchport Access Vlan

    Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Specify the Link Type of port 3 as access and add it to VLAN 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/3 TL-SG2424P(config-if)# switchport mode access TL-SG2424P(config-if)# switchport access vlan 2...
  • Page 24: Switchport Trunk Allowed Vlan

    Specify the Link Type of port 2 as trunk and add it to VLAN 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(config-if)# switchport mode trunk TL-SG2424P(config-if)# switchport trunk allowed vlan 2 switchport general allowed vlan Description The switchport general allowed vlan command is used to add the desired General port to IEEE 802.1Q VLAN and specify the egress rule.
  • Page 25: Switchport Pvid

    Specify the Link Type of port 4 as “general”, then add it to VLAN 2 and configure the egress rule of port 4 as “tagged”: TL-SG2424P(config)# interface gigabitEthernet 1/0/4 TL-SG2424P(config-if)# switchport mode general TL-SG2424P(config-if)# switchport general allowed vlan 2 tagged switchport pvid Description The switchport pvid command is used to configure the PVID for the switch ports.
  • Page 26: Show Vlan Brief

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the summarized information of IEEE 802.1Q VLAN: TL-SG2424P(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 27 Example Display the detailed information of all VLANs: TL-SG2424P(config)# show vlan Display the detailed information of VLAN 2: TL-SG2424P(config)# show vlan id 2 Display the detailed information of VLAN 3-10: TL-SG2424P(config)# show vlan id 3-10...
  • Page 28: Chapter 4 Voice Vlan Commands

    Command Mode Global Configuration Mode Example Enable the Voice VLAN function for VLAN 10: TL-SG2424P(config)# voice vlan 10 voice vlan aging time Description The voice vlan aging time command is used to set the aging time for a voice VLAN. To restore to the default aging time for the Voice VLAN, please use no voice vlan aging time command.
  • Page 29: Voice Vlan Priority

    Command Mode Global Configuration Mode Example Set the aging time for the Voice VLAN as 1 minute: TL-SG2424P(config)# voice vlan aging time 1 voice vlan priority Description The voice vlan priority command is used to configure the priority for the Voice VLAN.
  • Page 30: Switchport Voice Vlan Mode

    Global Configuration Mode Example Create a Voice VLAN OUI described as TP-Phone with the OUI address 00:11:11:11:11:11 and the mask address FF:FF:FF:00:00:00: TL-SG2424P(config)# voice vlan mac-address 00:11:11:11:11:11 mask FF:FF:FF:00:00:00 description TP-Phone switchport voice vlan mode Description The switchport voice vlan mode command is used to configure the Voice VLAN mode for the Ethernet port.
  • Page 31: Switchport Voice Vlan Security

    TL-SG2424P(config)# interface gigabitEthernet 1/0/3 TL-SG2424P(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.
  • Page 32: Show Voice Vlan Oui

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Voice VLAN configuration information of all ports: TL-SG2424P(config)# show voice vlan switchport Display the Voice VLAN configuration information of port 2: TL-SG2424P(config)# show voice vlan switchport gigabitEthernet 1/0/2...
  • Page 33: Chapter 5 Etherchannel Commands

    Enable the passive LACP mode. Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Add ports 2-4 to EtherChannel Group 1 and enable the static LAG: TL-SG2424P(config)# interface range gigabitEthernet 1/0/2-4 TL-SG2424P(config-if-range)# channel-group 1 mode on...
  • Page 34: Port-Channel Load-Balance

    Command Mode Global Configuration Mode Example Configure the Aggregate Arithmetic for LAG as “src-dst-mac”: TL-SG2424P(config)# port-channel load-balance src-dst-mac lacp system-priority Description The lacp system-priority command is used to configure the LACP system priority globally. To return to the default configurations, please use no lacp system-priority command.
  • Page 35: Lacp Port-Priority

    Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Configure the LACP port priority as 1024 for ports 1-3: TL-SG2424P(config)# interface range gigabitEthernet 1/0/1-3 TL-SG2424P(config-if-range)# lacp port-priority 1024 Configure the LACP port priority as 2048 for port 4: TL-SG2424P(config)# interface gigabitEthernet 1/0/4...
  • Page 36: Show Etherchannel Load-Balance

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the detailed information of EtherChannel Group 1: TL-SG2424P(config)# show etherchannel 1 detail show etherchannel load-balance Description The show etherchannel load-balance command is used to display the Aggregate Arithmetic of LAG.
  • Page 37: Show Lacp Sys-Id

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the internal LACP information of EtherChannel Group 1: TL-SG2424P(config)# show lacp 1 internal show lacp sys-id Description The show lacp sys-id command is used to display the LACP system priority globally.
  • Page 38: Chapter 6 User Manage Commands

    | enable ——Enable/disable the user. The new added user is enabled by default. Command Mode Global Configuration Mode Example Add and enable a new admin user named tplink, of which the password is password: TL-SG2424P(config)# user tplink password password type admin status enable...
  • Page 39: User Access-Control Ip-Based

    ——The subnet mask of the IP address. Command Mode Global Configuration Mode Example Enable the access-control of the user whose IP address is 192.168.0.148: 192.168.0.148 TL-SG2424P(config)# user access-control ip-based 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.
  • Page 40: User Access-Control Port-Based

    ——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 Configure that only the users connected to ports 2-6 are allowed to login: TL-SG2424P(config)# user access-control port-based interface range gigabitEthernet 1/0/2-6...
  • Page 41: User Max-Number

    Global Configuration Mode Example Configure the maximum number of users’ login as Admin and Guest as 5 and 3: TL-SG2424P(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.
  • Page 42: Show User Account-List

    Command Mode Global Configuration Mode Example Configure the timeout time of the switch as 15 minutes: TL-SG2424P(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 43 Example Display the security configuration information of the users: TL-SG2424P(config)# show user configuration...
  • Page 44: Chapter 7 System Log Commands

    Only the log with the same or smaller severity level value will be output. By default, it is 7 indicating that all the log information will be saved in the log buffer. Command Mode Global Configuration Mode Example Set the severity level as 6: TL-SG2424P(config)# logging buffer 6...
  • Page 45: Logging File Flash

    Command Mode Global Configuration Mode Example Enable the log file function and set the severity as 7: TL-SG2424P(config)# logging file flash 7 clear logging Description The clear logging command is used to clear the information in the log buffer and log file.
  • Page 46: Logging Host Index

    By default, it is 6 indicating that the log information marked with 0~6 will be sent to the log host. Command Mode Global Configuration Mode Example Set the IP address as 192.168.0.148, the level 5: TL-SG2424P(config)# logging host index 2 192.168.0.148 5...
  • Page 47: Show Logging Local-Config

    1 to 4. Display the configuration of all the log hosts by default. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of the log host 2: TL-SG2424P(config)# show logging loghost 2 show logging buffer Description...
  • Page 48: Show Logging Flash

    Privileged EXEC Mode and Any Configuration Mode Example Display the log information from level 0 to level 5 in the log buffer: TL-SG2424P(config)# show logging buffer level 5 show logging flash Description The show logging flash command is used to display the log information in the log file according to the severity level.
  • Page 49: Chapter 8 Ssh Commands

    Command Mode Global Configuration Mode Example Enable the SSH function: TL-SG2424P(config)# ip ssh server ip ssh version Description The ip ssh version command is used to enable the SSH protocol version. To disable the protocol version, please use no ip ssh version command.
  • Page 50: Ip Ssh Timeout

    Example Enable SSH v2: TL-SG2424P(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...
  • Page 51: Ip Ssh Download

    Example Download a SSH-1 type key file named ssh-key from TFTP server with the IP Address 192.168.0.148: TL-SG2424P(config)# ip ssh download v1 ssh-key ip-address 192.168.0.148 show ip ssh Description The show ip ssh command is used to display the global configuration of SSH.
  • Page 52 Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the global configuration of SSH: TL-SG2424P(config)# show ip ssh...
  • Page 53: Chapter 9 Ssl Commands

    Command Mode Global Configuration Mode Example Enable the SSL function: TL-SG2424P(config)# ip http secure-server ip http secure-server download certificate Description The ip http secure-server download certificate command is used to download a certificate to the switch from TFTP server.
  • Page 54: Ip Http Secure-Server Download Key

    Global Configuration Mode Example Download a SSL Certificate named ssl-cert from TFTP server with the IP Address of 192.168.0.146: TL-SG2424P(config)# ip http secure-server download certificate ssl-cert ip-address 192.168.0.146 ip http secure-server download key Description The ip http secure-server download key command is used to download a SSL key to the switch from TFTP server.
  • Page 55: Show Ip Http Secure-Server

    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-SG2424P(config)# show ip http secure-server...
  • Page 56: Chapter 10 Mac Address Commands

    Global Configuration Mode Example Add a static Mac address entry to bind the MAC address 00:02:58:4f:6c:23, VLAN1 and port 1 together: TL-SG2424P(config)# mac address-table static mac 00:02:58:4f:6c:23 vid 1 interface gigabitEthernet 1/0/1 mac address-table aging-time Description The mac address-table aging-time command is used to configure aging time...
  • Page 57: Mac Address-Table Filtering

    Command Mode Global Configuration Mode Example Configure the aging time as 500 seconds: TL-SG2424P(config)# mac address-table aging-time 500 mac address-table filtering Description The mac address-table filtering command is used to add the filtering address entry. To delete the corresponding entry, please use no mac address-table filtering command.
  • Page 58: Mac Address-Table Max-Mac-Count

    TL-SG2424P(config)# mac address-table filtering mac 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. To return to the default configurations, please use no mac address-table max-mac-count command. Port Security is to protect the switch from the malicious MAC address attack by limiting the maximum number of the MAC addresses that can be learned on the port.
  • Page 59: Show Mac Address-Table Address

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the information of all Address entries: TL-SG2424P(config)# show mac address-table address all show mac address-table aging-time Description The show mac address-table aging-time command is used to display the Aging Time of the MAC address.
  • Page 60: Show Mac Address-Table Max-Mac-Count Interface Gigabitethernet

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the security configuration of all ports: TL-SG2424P(config)# show mac address-table max-mac-count interface gigabitEthernet Display the security configuration of port 1: TL-SG2424P(config)# show mac address-table max-mac-count interface gigabitEthernet 1/0/1...
  • Page 61: Show Mac Address-Table Mac-Num

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the address configuration of port 1: TL-SG2424P(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 62: Show Mac Address-Table Vlan

    Syntax show mac address-table vlan vid Parameter The specified VLAN id. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the MAC address configuration of vlan 1: TL-SG2424P(config)# show mac address-table vlan 1...
  • Page 63: Chapter 11 System Configuration Commands

    Command Mode Global Configuration Mode Example Configure the system time as 02/14/2012- 12:30:00: TL-SG2424P(config)# system-time manual 02/14/2012-12:30:00 system-time ntp Description The system-time ntp command is used to configure the time zone and the IP Address for the NTP Server. The switch will get GMT automatically if it has connected to a NTP Server.
  • Page 64 Global Configuration Mode Example Configure the system time mode as NTP, the time zone is GMT-12, 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-SG2424P(config)# system-time ntp GMT-12 133.100.9.2 139.79.100.163...
  • Page 65: System-Time Dst Predefined

    Command Mode Global Configuration Mode Example Configure the DST period of the switch as Europe: TL-SG2424P(config)# system-time dst predefined Europe system-time dst date Description The system-time dst date command is used to specify the DST configuration in Date mode. This configuration is one-off in use. By default, the current year is used as the starting time.
  • Page 66: System-Time Dst Recurring

    , the end time as 00:00 am on October 1 and the offset as 30 minutes: TL-SG2424P(config)# system-time dst date Apr 1 00:00 Oct 1 00:00 30 system-time dst recurring Description The system-time dst recurring command is used to specify the DST configuration in recurring mode.
  • Page 67: Hostname

    Parameter System Name. The length of the name ranges from 1 to 32 hostname characters. By default, it is the device name, for example “TL-SG2424P”. Command Mode Global Configuration Mode Example Configure the system name as TPLINK:...
  • Page 68: Location

    To clear the system contact information, please use no contact-info command. Syntax contact-info contact_info no contact-info contact_info Parameter Contact Information. It consists of 32 characters at most. It is contact_info “www.tp-link.com” by default. Command Mode Global Configuration Mode Example Configure the system contact information as www.tp-link.com:...
  • Page 69: Reset

    TL-SG2424P(config)# contact-info www.tp-link.com reset Description The reset command is used to reset the switch’s software. After resetting, all configuration of the switch will restore to the factory defaults and your current settings will be lost. Syntax reset Command Mode Privileged EXEC Mode...
  • Page 70: Copy Startup-Config Tftp

    Privileged EXEC Mode Example Backup the configuration files from TFTP server with the IP 192.168.0.148 and name this file config.cfg: TL-SG2424P# copy startup-config tftp ip-address 192.168.0.148 filename config.cfg copy tftp startup-config Description The copy tftp startup-config command is used to download the configuration file to the switch from TFTP server.
  • Page 71: Firmware Upgrade

    Privileged EXEC Mode Example Download the configuration file named as config.cfg to the switch from TFTP server with the IP 192.168.0.148: TL-SG2424P# copy startup-config tftp ip-address 192.168.0.148 filename config.cfg firmware upgrade Description The firmware upgrade command is used to upgrade the switch system file via the TFTP server.
  • Page 72: Tracert

    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-SG2424P# ping 192.168.0.131 –n 8 –l 512 tracert Description The tracert command is used to test the connectivity of the gateways during its journey from the source to destination of the test data.
  • Page 73: Loopback Interface

    Command Mode User EXEC Mode and Privileged EXEC Mode Example Do an Internal-type loopback test for port 1: TL-SG2424P# loopback interface gigabitEthernet 1/0/1 internal Do an External-type loopback test for port 1: TL-SG2424P# loopback interface gigabitEthernet 1/0/1 external show system-time...
  • Page 74: Show System-Time Dst

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the DST time information of the switch TL-SG2424P# 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 75: Show System-Info

    Parameter The number of the port which is selected for Cable test. port Command Mode Privileged EXEC Mode and Any Configuration Mode Example Show the cable-diagnostics of port 3: TL-SG2424P# show cable-diagnostics interface gigabitEthernet 1/0/3...
  • Page 76: Chapter 12 Ethernet Configuration Commands

    Command Mode Global Configuration Mode Example To enter the Interface gigabitEthernet Configuration Mode and configure port 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 interface range gigabitEthernet Description The interface range gigabitEthernet command is used to enter the interface range gigabitEthernet Configuration Mode and configure multiple Gigabit Ethernet ports at the same time.
  • Page 77: Description

    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: TL-SG2424P(config)# interface range gigabitEthernet 1/0/1-3,1/0/6-7,1/0/9 description Description The description command is used to add a description to the Ethernet port. To clear the description of the corresponding port, please use no description command.
  • Page 78: Flow-Control

    Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Disable port 3: TL-SG2424P(config)# interface gigabitEthernet 1/0/3 TL-SG2424P(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 79: Speed

    Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Configure the Duplex Mode as full-duplex for port 3: TL-SG2424P(config)# interface gigabitEthernet 1/0/3 TL-SG2424P(config-if)# duplex full speed Description The speed command is used to configure the Speed Mode for an Ethernet port.
  • Page 80: Storm-Control Broadcast

    Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the broadcast control function for port 5: TL-SG2424P(config)# interface gigabitEthernet 1/0/5 TL-SG2424P(config-if)# storm-control broadcast storm-control multicast Description The storm-control multicast command is used to enable the multicast control function.
  • Page 81: Storm-Control Unicast

    Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the multicast control function for port 5: TL-SG2424P(config)# interface gigabitEthernet 1/0/5 TL-SG2424P(config-if)# storm-control multicast storm-control unicast Description The storm-control unicast command is used to enable the unicast control function.
  • Page 82: Bandwidth

    Example Configure the ingress-rate as 5120Kbps and egress-rate as 1024Kbps for port TL-SG2424P(config)# interface gigabitEthernet 1/0/5 TL-SG2424P(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 83: Show Interface Status

    Example Display the connective-status of all ports: TL-SG2424P(config)# show interface status Display the connective-status of port 1: TL-SG2424P(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.
  • Page 84: Show Interface Description

    Example Display the description of all Ethernet ports: TL-SG2424P(config)# show interface description Display the description of port 2: TL-SG2424P(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.
  • Page 85: Show Interface Configuration

    Example Display the configurations of all Ethernet ports: TL-SG2424P(config)# show interface configuration Display the configurations of port 2: TL-SG2424P(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.
  • Page 86: Show Bandwidth

    TL-SG2424P(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 The Ethernet port number.
  • Page 87: Chapter 13 Qos Commands

    CoS value of the ingress port and the mapping relation between the CoS and TC in IEEE 802.1P. Example Configure the priority of port 5 as 3: TL-SG2424P(config)# interface gigabitEthernet 1/0/5 TL-SG2424P(config-if)# qos 3 qos dscp Description The qos dscp command is used to enable the mapping relation between DSCP Priority and CoS value.
  • Page 88: Qos Queue Cos-Map

    DSCP priority and CoS value. Example Enable the mapping relation between DSCP Priority and CoS value: TL-SG2424P(config)# qos dscp qos queue cos-map Description The qos queue cos-map command is used to configure the mapping relation between IEEE 802.1P priority tag/IEEE 802.1Q tag, CoS value and the TC...
  • Page 89: Qos Queue Dscp-Map

    Among the priority levels TC0-TC3, the bigger value, the higher priority. Example Map CoS 5 to TC 2.: TL-SG2424P(config)# qos queue cos-map 5 2 qos queue dscp-map Description The qos queue dscp-map command is used to configure the mapping relation between DSCP Priority and the CoS value.
  • Page 90: Qos Queue Mode

    (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-SG2424P(config)# qos queue dscp-map 10-12 2 qos queue mode Description The qos queue mode command is used to configure the Schedule Mode. To return to the default configuration, please use no qos queue mode command.
  • Page 91: Show Qos Interface

    Display the configuration of QoS for port 5: TL-SG2424P# show qos interface gigabitEthernet 1/0/5 Display the configuration of QoS for ports 1-4: TL-SG2424P# 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 92: Show Qos Dscp-Map

    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-SG2424P# show qos queue mode...
  • Page 93: Show Qos Status

    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-SG2424P# show qos status...
  • Page 94: Chapter 14 Port Mirror Commands

    The Ethernet port number. port Command Mode Global Configuration Mode Example Create monitor session 1 and configure port 1 as the monitoring port: TL-SG2424P(config)# monitor session destination interface gigabitEthernet 1/0/1 Delete the monitor session 1: TL-SG2424P(config)# no monitor session 1...
  • Page 95: 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 96: Show Monitor Session

    TL-SG2424P(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-SG2424P(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 97: Chapter 15 Port Isolation Commands

    Set port 1, 2, and 4 to the forward port list of port 5: TL-SG2424P(config)# interface gigabitEthernet 1/0/5 TL-SG2424P(config-if)# port isolation gi-forward-list 1/0/1-2,1/0/4 Set all Ethernet ports to forward port list of port 2, namely restore to the default setting:...
  • Page 98 1/0/2. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the forward-list of port 2: TL-SG2424P# show port isolation interface gigabitEthernet 1/0/2 Display the forward-list of all Ethernet ports: TL-SG2424P# show port isolation interface...
  • Page 99: Chapter 16 Loopback Detection Commands

    Command Mode Global Configuration Mode Example Enable the loopback detection function globally: TL-SG2424P(config)# loopback-detection loopback-detection interval Description The loopback-detection interval command is used to define the interval of sending loopback detection packets from switch ports to network, aiming at detecting network loops periodically.
  • Page 100: Loopback-Detection Recovery-Time

    Example Specify the interval-time as 50 seconds: TL-SG2424P(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...
  • Page 101: Loopback-Detection Config

    TL-SG2424P(config)# interface range gigabitEthernet 1/0/1-3 TL-SG2424P(Config-if)# 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 }]...
  • Page 102: Show Loopback-Detection Global

    Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Recover the blocked port 2 to normal status: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(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 103 Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of loopback detection function and the status of all ports: TL-SG2424P# show loopback-detection interface Display the configuration of loopback detection function and the status of port 5: TL-SG2424P# show loopback-detection interface gigabitEthernet 1/0/5...
  • Page 104: Chapter 17 Dhcp Flitering Commands

    Command Mode Global Configuration Mode Example Enable the DHCP Filtering: TL-SG2424P(config)# ip dhcp filtering ip dhcp filtering trust Description The ip dhcp filtering trust command is used to configure a port to be a Trusted Port. Only the trusted ports can receive DHCP packets from DHCP servers. To turn the port back to a distrusted port, please use no ip dhcp filtering trust command.
  • Page 105: Show Ip Dhcp Filtering

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the DHCP Filtering configuration information of all Ethernet ports: TL-SG2424P#show ip dhcp filtering interface Display the DHCP Filtering configuration information of port 5: TL-SG2424P#show ip dhcp filtering interface gigabitEthernet 1/0/5...
  • Page 106: Chapter 18 Poe Commands

    Command Mode Global Configuration Mode Example Configure the max power the PoE switch can supply as 160w: TL-SG2424P(config)# power inline consumption 160 power profile Description The power profile command is used to create a PoE profile for the switch. To delete the configured PoE profile configuration, please use no power profile command.
  • Page 107: Power Time-Range

    Example Create a PoE profile named “IP Camera” whose PoE status is “enable”, PoE priority is “low” and the power limit is “5w”: “IP Camera” supply enable priority TL-SG2424P(config)# power profile low consumption 50 power time-range Description The power time-range command is used to create PoE time-range for the switch and enter Power Time-range Create Configuration Mode.
  • Page 108: Power Holiday

    ——The end date of the PoE holiday, in the format of MM/DD, for instance, 05/01. Command Mode Global Configuration Mode Example Create a PoE holiday named “National Day”, and configure the start date as October 1st and the end date as October 3rd: TL-SG2424P(config)# power holiday NationalDay start-date 10/01 end-date 10/03...
  • Page 109: Absolute

    Create an absolute mode time-range for the PoE of the switch and specify the date extending from May 5, 2012 through Oct. 5, 2012: TL-SG2424P(config)# power time-range tRange1 TL-SG2424P(config-pwr-time-range)# absolute start 05/05/2012 end 10/05/2012 periodic Description The periodic command is used to create a periodic mode time-range for the PoE time-range of the switch.
  • Page 110: Holiday

    Example Configure the PoE time-range named “tRange2” as a periodic time-range and specify the date and time as 8:30 to 12:00 on weekends: TL-SG2424P(config)# power time-range tRange2 TL-SG2424P(config-pwr-time-range)# periodic week-date off-day time-slice1 08:30-12:00 holiday Description The holiday command is used to create holiday mode time-range for the PoE time-range of the switch.
  • Page 111: Power Inline Consumption (Interface)

    Example Configure the power limit as “5w” for port 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(config-if)# power inline consumption 50 power inline priority Description The power inline priority command is used to configure the PoE priority for the corresponding port...
  • Page 112: Power Inline Supply

    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 Description The power inline supply command is used to configure the PoE status of the corresponding port.
  • Page 113: Power Inline Time-Range

    Example Bind the PoE profile named “IP Camera” to port 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(config-if)# power inline profile “IP Camera” power inline time-range Description The power inline time-range command is used to bind a PoE time-range to the corresponding port.
  • Page 114: Show Power Inline Configuration Interface

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the PoE configuration of all ports: TL-SG2424P# show power inline configuration interface show power inline information interface Description The show power inline information command is used to display the PoE information of the certain port.
  • Page 115: Show Power Profile

    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 Privileged EXEC Mode and Any Configuration Mode...
  • Page 116 Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of PoE time-range: TL-SG2424P# show power time-range...
  • Page 117: Chapter 19 Mstp Commands

    The spanning-tree command is used to enable STP function for a port. To disable the STP function, please use no spanning-tree command. Syntax spanning-tree no spanning-tree Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the STP function for port 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/2...
  • Page 118: Spanning-Tree Common-Config

    TL-SG2424P(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 119: Spanning-Tree Mode

    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-SG2424P(config)# interface gigabitEthernet 1/0/1 TL-SG2424P(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 120: Instantce

    MST Configuration Mode Example Map the VLANs 1-100 to Instance 1: TL-SG2424P(config)# spanning-tree mst configuration TL-SG2424P(config-mst)# instance 1 vlan 1-100 Disable Instance 1, namely remove all the maping VLANs 1-100: TL- SG2424P(config)# spanning-tree mst configuration TL- SG2424P(config-mst)# no instance 1...
  • Page 121: Name

    Remove VLANs 1-50 in maping VLANs 1-100 for Instance 1: TL-SG2424P(config)# spanning-tree mst configuration TL-SG2424P(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 The region name, used to identify MST region. It ranges from 1 to name 32 characters.
  • Page 122: Spanning-Tree Mst Instance

    Command Mode Global Configuration Mode Example Enable the MST Instance 1 and configure its priority as 4096: TL-SG2424P(config)# spanning-tree mst instance 1 priority 4096 spanning-tree mst Description The spanning-tree mst command is used to configure MST Instance Port. To return to the default configuration of the corresponding Instance Port, please use no spanning-tree mst command.
  • Page 123: Spanning-Tree Priority

    Example Configure the priority of port 1 in MST Instance 1 as 64, and path cost as 2000: TL-SG2424P(config)# interface gigabitEthernet 1/0/1 TL-SG2424P(config-if)# spanning-tree mst instance 1 port-priority 64 cost 2000 spanning-tree priority Description The spanning-tree priority command is used to configure the bridge priority. To return to the default value of bridge priority, please use no spanning-tree priority command.
  • Page 124: Spanning-Tree Tc-Defend

    Command Mode Global Configuration Mode Example Configure TC Threshold as 30 packets and TC Protect Cycle as 10 seconds: TL-SG2424P(config)# spanning-tree tc-defend threshold 30 period 10 spanning-tree timer Description The spanning-tree timer command is used to configure forward-time, hello-time and max-age of Spanning Tree. To return to the default configurations, please use no spanning-tree timer command.
  • Page 125: Spanning-Tree Hold-Count

    Global Configuration Mode Example Configure forward-time, hello-time and max-age for Spanning Tree as 16 seconds, 3 seconds and 22 seconds respectively: TL-SG2424P(config)# spanning-tree timer forward-time 16 hello-time 3 max-age 22 spanning-tree hold-count Description The spanning-tree hold-count command is used to configure the maximum number of BPDU packets transmitted per Hello Time interval.
  • Page 126: Spanning-Tree Max-Hops

    TL-SG2424P(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 127: Spanning-Tree Bpduguard

    Example Enable the BPDU filter function for port 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(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 128: Spanning-Tree Guard Root

    Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the Loop Protect function for port 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(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 129: Spanning-Tree Mcheck

    Command Mode Global Configuration Mode Example Enable the TC Protect of Spanning Tree for port 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(config-if)# spanning-tree guard tc spanning-tree mcheck Description The spanning-tree mcheck command is used to enable MCheck.
  • Page 130: Show Spanning-Tree Bridge

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the active information of spanning-tree: TL-SG2424P(config)# show spanning-tree active show spanning-tree bridge Description The show spanning-tree bridge command is used to display the bridge parameters. Syntax...
  • Page 131: Show Spanning-Tree Interface-Security

    Example Display the spanning-tree information of all ports: TL-SG2424P(config)# show spanning-tree interface Display the spanning-tree information of port 2: TL-SG2424P(config)# show spanning-tree interface gigabitEthernet 1/0/2 Display the spanning-tree mode information of port 2: TL-SG2424P(config)# show spanning-tree interface gigabitEthernet 1/0/2 mode...
  • Page 132: Show Spanning-Tree Mst

    Instance ID desired to show, ranging from 1 to 8. instance-id The Ethernet port number. port Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the related information of MST Instance 1: TL-SG2424P(config)# show spanning-tree mst instance 1...
  • Page 133: Chapter 20 Igmp Commands

    Command Mode Global Configuration Mode Example Enable IGMP Snooping function: TL-SG2424P(config)# ip igmp snooping ip igmp snooping (interface) Description The ip igmp snooping command is used to enable the IGMP Snooping function for the desired port. To disable the IGMP Snooping function, please use no ip igmp snooping command.
  • Page 134: Ip Igmp Snooping Immediate-Leave

    Example Enable the Fast Leave function for port 3: TL-SG2424P(config)# interface gigabitEthernet 1/0/3 TL-SG2424P(config-if)# ip igmp snooping immediate-leave ip igmp snooping drop-unknown Description The ip igmp snooping drop-unknown command is used to process the unknown multicast as discard. To disable the operation of processing the unknown multicast as discard, please use no ip igmp snooping drop-unknown command.
  • Page 135: 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 136: Ip Igmp Snooping Multi-Vlan-Config

    Member Port Time as 200 seconds for VLAN1-3, and set the Leave time as 15 seconds for VLAN1-2: TL-SG2424P(config)# ip igmp snooping vlan-config 1-3 rtime 300 TL-SG2424P(config)# ip igmp snooping vlan-config 1-3 mtime 200 TL-SG2424P(config)# ip igmp snooping vlan-config 1-2 ltime 15 Add static multicast IP address 225.0.0.1, which correspond to VLAN 2, and...
  • Page 137: Ip Igmp Snooping Filter Add-Id

    Enable Multicast VLAN 3, and configure Router Port Time as 100 seconds, Member Port Time 100 seconds, Leave Time 3 seconds, and Static Router Port port 3: TL-SG2424P(config)# ip igmp snooping multi-vlan-config 3 rtime 100 TL-SG2424P(config)# ip igmp snooping multi-vlan-config 3 mtime 100 TL-SG2424P(config)# ip igmp snooping multi-vlan-config 3 ltime 3...
  • Page 138: Ip Igmp Snooping Filter (Global)

    Global Configuration Mode Example Modify the multicast IP-range whose ID is 3 as 225.1.1.1~226.3.2.1: TL-SG2424P(config)# ip igmp snooping filter 3 225.1.1.1 226.3.2.1 ip igmp snooping filter (interface) Description The ip igmp snooping filter command is used to configure Port Filter. To return to the default configuration, please use no igmp snooping filter command.
  • Page 139: Ip Igmp Snooping Filter Maxgroup

    Example Specify the maximum number of multicast groups for ports 2-5 to join in as 10: TL-SG2424P(config)# interface range gigabitEthernet 1/0/2-5 TL-SG2424P(config-if-range)# ip igmp snooping filter maxgroup 10 ip igmp snooping filter mode Description The ip igmp snooping filter mode command is used to configure the Action...
  • Page 140: Show Ip Igmp Snooping

    Example Specify the Action Mode as accept for port 3: TL-SG2424P(config)# interface gigabitEthernet 1/0/3 TL-SG2424P(config-if)# ip igmp snooping filter mode accept show ip igmp snooping Description The show ip igmp snooping command is used to display the global configuration of IGMP snooping.
  • Page 141: Show Ip Igmp Snooping Vlan

    Privileged EXEC Mode and Any Configuration Mode Example Display the IGMP filter configuration of all ports: TL-SG2424P# show ip igmp snooping interface gigabitEthernet filter Display the IGMP basic configuration of port 2: TL-SG2424P# show ip igmp snooping interface gigabitEthernet 1/0/2...
  • Page 142: Show Ip Igmp Snooping Multi-Vlan

    TL-SG2424P# 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...
  • Page 143: Show Ip Igmp Snooping Filter

    TL-SG2424P(config)#show ip igmp snooping groups vlan 5 static Display the count of dynamic multicast entries of VLAN 5 TL-SG2424P(config)#show ip igmp snooping groups vlan 5 dynamic count Display the count of static multicast entries of VLAN 5 TL-SG2424P(config)#show ip igmp snooping groups vlan 5 static count...
  • Page 144: Chapter 21 Snmp Commands

    Command Mode Global Configuration Mode Example Enable the SNMP function: TL-SG2424P(config)# snmp-server snmp-server view Description The snmp-server view command is used to add View. To delete the corresponding View, please use no snmp-server view command. The OID (Object Identifier) of the SNMP packets is used to describe the managed objects of the switch, and the MIB (Management Information Base) is the set of the OIDs.
  • Page 145: Snmp-Server Group

    Example Add a View named view1, configuring the OID as 1.3.6.1.6.3.20, and this OID can be managed by the SNMP management station: TL-SG2424P(config)# snmp-server view view1 1.3.6.1.6.3.20 include snmp-server group Description The snmp-server group command is used to manage and configure the SNMP group.
  • Page 146: Snmp-Server User

    View viewDefault as read-write, besides the notification messages sent by View viewDefault can be received by Management station: TL-SG2424P(config)# snmp-server group group1 smode v3 slev authNoPriv read viewDefault write viewDefault notify viewDefault Delete group 1:...
  • Page 147 Security Level of the group as authPriv, the Authentication Mode of the user as MD5, the Authentication Password as 11111, the Privacy Mode as DES, and the Privacy Password as 22222: TL-SG2424P(config)# snmp-server user admin local group2 smode v3 slev authPriv cmode MD5 cpwd 11111 emode DES epwd 22222...
  • Page 148: Snmp-Server Community

    Global Configuration Mode Example Add community public, and the community has read-write management right to View viewDefault: TL-SG2424P(config)# snmp-server community public read-write viewDefault snmp-server host Description The snmp-server host command is used to add Notification. To delete the corresponding Notification, please use no snmp-server host command.
  • Page 149 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-SG2424P(config)# snmp-server host 192.168.0.146 162 admin smode v2c type inform retries 100 timeout 1000...
  • Page 150: Snmp-Server Engineid

    Command Mode Global Configuration Mode Example Specify the local engineID as 1234567890, and the remote engineID as abcdef123456: TL-SG2424P(config)# snmp-server engineID local 1234567890 remote abcdef123456 rmon history Description The rmon history command is used to configure the history sample entry. To return to the default configuration, please use no rmon history command.
  • Page 151: Rmon Event

    Global Configuration Mode Example Configure the sample port as Gi1/0/2 and the sample interval as 100 seconds for the entry 1-3: TL-SG2424P(config)# rmon history 1-3 interface gigabitEthernet 1/0/2 interval 100 owner owner1 rmon event Description The rmon event command is used to configure the entries of SNMP-RMON Event.
  • Page 152: Rmon Alarm

    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-SG2424P(config)# rmon event 1-4 user user1 description description1 type log owner owner1 rmon alarm...
  • Page 153 f-hold ] [ falling-event-index f-event ] [ a-type { rise | fall | all }] [ owner owner-name ] [ interval interval ] no rmon alarm index Parameter The index number of the Alarm Management entry, ranging from 1 index to 12, in the format of 1-3,5.
  • Page 154: 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-SG2424P(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 155: Show Snmp-Server User

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Group table: TL-SG2424P# 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...
  • Page 156: Show Snmp-Server Host

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Host table: TL-SG2424P# 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...
  • Page 157: Show Rmon Event

    Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Event configuration of entry1-4: TL-SG2424P# show rmon event 1-4 show rmon alarm Description The show rmon alarm command is used to display the configuration of the Alarm Management entry.
  • Page 158 1 to 12, in the format of 1-3, 5. You can select more than one entry 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-SG2424P# show rmon alarm 1-2...
  • Page 159: Chapter 22 Lldp Commands

    Command Mode Global Configuration Mode Example Enable LLDP function globally: TL-SG2424P(config)# lldp lldp hold-multiplier Description The lldp hold-multiplier command is used to configure the Hold Multiplier parameter. The aging time of the local information in the neighbor device is determined by the actual TTL value used in the sending LLDPDU.
  • Page 160: Lldp Timer

    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. To return to the default configuration, please use no lldp timer command.
  • Page 161: Lldp Med-Fast-Count

    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 lldp med-fast-count Description The lldp med-fast-count command is used to configure the number of the LLDP-MED frames that will be sent out.
  • Page 162: Lldp Transmit

    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 163: Lldp Tlv-Select

    | mac-phy-cfg | max-frame-size | power | all ] Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Exclude “management-address” and “port-vlan-id” TLVs in LLDPDU outgoing from port 1: TL-SG2424P(config)# interface gigabitEthernet 1/0/1 TL-SG2424P(config-if)# no lldp tlv-select management-address port-vlan...
  • Page 164: Lldp Med-Location

    Configure the civic address in the Location Identification TLV's content in outgoing LLDPDU of port 2. Configure the language as English and city as London: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(config-if)# lldp med-location civic-address language English city London lldp med-status Description The lldp med-status command is used to enable the LLDP-MED feature for the corresponding port.
  • Page 165: Lldp Med-Tlv-Select

    { [inventory-management] [location] [network-policy] [power-management] [all] } Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Exclude “network policy” and “inventory” TLVs in LLDPDU outgoing from port 2: TL-SG2424P(config)# interface gigabitEthernet 1/0/2 TL-SG2424P(config-if)# no lldp med-tlv-select network-policy inventory-management...
  • Page 166: Show Lldp

    Syntax show lldp interface [ gigabitEthernet port ] Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the LLDP and LLDP-MED configuration of port 1: TL-SG2424P# show lldp interface gigabitEthernet 1/0/1...
  • Page 167: Show Lldp Local-Information Interface

    Privileged EXEC Mode and Any Configuration Mode Example Display the LLDP and LLDP-MED local information of port 1: TL-SG2424P# show lldp local-information interface gigabitEthernet 1/0/1 show lldp neighbor-information interface Description The show lldp neighbor-information interface command is used to display the LLDP and LLDP-MED neighbor information of the corresponding port.
  • Page 168: Show Lldp Traffic Interface

    [ gigabitEthernet port ] Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the LLDP statistic information of port 1: TL-SG2424P# show lldp traffic interface gigabitEthernet 1/0/1...

Table of Contents