TL-SG5428 24-Port Gigabit L2 Managed Switch with 4 SFP Slots TL-SG5412F 12-Port Gigabit SFP L2 Managed Switch with 4 Combo 1000BASE-T Ports REV2.1.
COPYRIGHT & TRADEMARKS Specifications are subject to change without notice. is a registered trademark of TP-LINK TECHNOLOGIES CO., LTD. Other brands and product names are trademarks or registered trademarks of their respective holders. No part of the specifications may be reproduced in any form or by any means or used to make any derivative such as translation, transformation, or adaptation without permission from TP-LINK TECHNOLOGIES CO., LTD. Copyright © 2013 TP-LINK TECHNOLOGIES CO., LTD.
CONTENTS Preface ………………………………………………………………………………….1 Chapter 1 Using the CLI......................................................................................... 4 1.1 Accessing the CLI..............................................................................................................4 1.1.1 Logon by a console port.....................................................................................4 1.1.2 Logon by Telnet.....................................................................
protocol-vlan..........................................................................................................................25 show protocol-vlan template..................................................................................................26 show protocol-vlan vlan .........................................................................................................26 show protocol-vlan interface......................................................................................
show gvrp interface ...............................................................................................................45 Chapter 9 Etherchannel Commands .................................................................... 46 channel-group .......................................................................................................................46 port-channel load-balance .....................................................................................................
show ip dhcp snooping ..........................................................................................................67 show ip dhcp snooping information .......................................................................................67 show ip dhcp snooping interface gigabitEthernet ..................................................................68 Chapter 12 ARP Inspection Commands................................................................. 69 ip arp inspection(global) ..........
show radius accounting .........................................................................................................86 show radius authentication ....................................................................................................87 Chapter 16 System Log Commands ...................................................................... 88 logging buffer.........................................................................................................................
Chapter 20 System Configuration Commands ......................................................107 system-time manual ............................................................................................................107 system-time ntp ...................................................................................................................107 system-time dst predefined .................................................................................................
storm-control multicast ........................................................................................................128 storm-control unicast ...........................................................................................................128 storm-control rate ................................................................................................................129 bandwidth ......................................................................................................
loopback-detection(interface) ..............................................................................................148 loopback-detection config....................................................................................................149 loopback-detection recover .................................................................................................149 show loopback-detection global ..........................................................................................
revision ................................................................................................................................170 spanning-tree mst instance .................................................................................................171 spanning-tree mst................................................................................................................171 spanning-tree priority........................................................................................
Chapter 29 SNMP Commands..............................................................................193 snmp-server ........................................................................................................................193 snmp-server view ................................................................................................................193 snmp-server group ..............................................................................................................
show lldp neighbor-information interface .............................................................................216 show lldp traffic interface .....................................................................................................217 Chapter 31 Cluster Commands.............................................................................218 cluster ndp...........................................................................................................................
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-SG5428/TL-SG5412F JetStream L2 Managed Switch. 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. Chapter 2: User Interface Provide information about the commands used to switch between five CLI Command Modes. Chapter 3: IEEE 802.
Chapter 12: ARP Inspection Commands Provide information about the commands used for protecting the switch from the ARP cheating or ARP Attack. Chapter 13: IP Verify Source Commands Provide information about the commands used for guarding the IP Source by filtering the IP packets based on the IP-MAC Binding entries. Chapter 14: DoS Defend Command Provide information about the commands used for DoS defend and detecting the DoS attack. Chapter 15: IEEE 802.
Chapter 26: ACL Commands Provide information about the commands used for configuring the ACL (Access Control List). Chapter 27: MSTP Commands Provide information about the commands used for configuring the MSTP (Multiple Spanning Tree Protocol). Chapter 28: IGMP Commands Provide information about the commands used for configuring the IGMP Snooping (Internet Group Management Protocol Snooping).
Chapter 1 Using the CLI 1.1 Accessing the CLI You can log on to the switch and access the CLI by the following two methods: 1. Log on to the switch by the console port on the switch. 2. Log on to the switch remotely by a Telnet or SSH connection through an Ethernet port. 1.1.1 Logon by a console port To log on to the switch by the console port on the switch, please take the following steps: 1. Connect the PCs or Terminals to the console port on the switch by a provided cable. 2.
Figure 1-2 Connection Description 4. Select the port to connect in Figure 1-3, and click OK. Figure 1-3 Select the port to connect 5. Configure the port selected in the step above as the following Figure 1-4 shown. Configure Bits per second as 38400, Data bits as 8, Parity as None, Stop bits as 1, Flow control as None, and then click OK.
Figure 1-4 Port Settings 6. The DOS prompt ”TL-SG5428>” will appear after pressing the Enter button as Figure 1-5 shown. It indicates that you can use the CLI now. Figure 1-5 Log in the Switch 1.1.2 Logon by Telnet To successfully create Telnet connection, firstly CLI commands about configuring Telnet login mode, login authentication information and Privileged EXEC Mode password should be configured through Console connection. Telnet login has the following two modes.
Login local Mode: It requires username and password, which are both admin by default. Login Mode: It requires no username and password, but a connection password is required. Note: 1. Before Telnet login, you are required to configure Telnet login mode and login authentication information through Console connection. The relevant CLI commands should be entered in the prompted DOS screen shown in Figure 1-5 Log in the Switch. 2.
2. Open Telnet, then type telnet 192.168.0.1 in the command prompt shown as Figure 1-8, and press the Enter button. Figure 1-8 Connecting to the Switch 3. Type the default user name and password admin/admin, then press the Enter button so as to enter User EXEC Mode. Figure 1-9 Enter into the User EXEC Mode Now you can manage your switch with CLI commands through Telnet connection. 4. Type enable command to enter Privileged EXEC Mode.
Figure 1-10 Enter into the Privileged EXEC Mode Login Mode Firstly configure the Telnet login mode as “login”, and both the connection password and the Privileged EXEC Mode password as 123 in the prompted DOS screen shown in Figure 1-11. Figure 1-11 Configure login mode Now, you can logon by Telnet in login mode: 1. Open Telnet, then type telnet 192.168.0.1 in the command prompt shown as Figure 1-12, and press the Enter button.
Figure 1-12 Connecting to the Switch 2. You are prompted to enter the connection password 123 you have set through Console port connection, and then you are in User EXEC Mode. Figure 1-13 Enter into the User EXEC Mode 3. When entering enable command to access Privileged EXEC Mode, you are required to give the password 123 you have set through Console port connection.
Now you can manage your switch with CLI commands through Telnet connection. Note: You can refer to Chapter 10 User Manage Commands for detailed commands information of the Telnet connection configuration. 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.
Mode Accessing Path Interface Configuration Mode Use the interface gigabitEthernet port or interface range gigabitEthernet port-list command to enter this mode from Global Configuration mode. VLAN Configuration Mode Use the vlan vlan-list command to enter this mode from Global Configuration mode. Prompt Logout or Access the next mode TL-SG5428(config-if) # or TL-SG5428(config-ifrange)# TL-SG5428(configvlan)# Use the end command or press Ctrl+Z to return to Privileged EXEC mode.
1.3 Security Levels This switch’s security is divided into two levels: User level and Admin level. User level only allows users to do some simple operations in User EXEC Mode; Admin level allows you to monitor, configure and manage the switch in Privileged EXEC Mode, Global Configuration Mode, Interface Configuration Mode and VLAN Configuration Mode. Users get the privilege to the User level once connecting console port with the switch or logging in by Telnet.
1.4.3 Parameter Format Some parameters must be entered in special formats which are shown as follows: MAC Address must be entered in the format of xx:xx:xx:xx:xx:xx One or several values can be typed for a port-list or a vlan-list using comma to separate. Use a hyphen to designate a range of values, for instance 1, 3-5,7 indicates choosing 1,3,4,5,7. The port number should format as 1/0/3, meaning unit/slot/port.
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-SG5428> enable Enter password: TL-SG5428# enable password Description The enable password command is used to set the password for users to access Privileged EXEC Mode from User EXEC Mode.
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-SG5428# disable TL-SG5428> configure Description The configure command is used to access Global Configuration Mode from Privileged EXEC Mode.
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-SG5428 (config-if)# exit TL-SG5428(config)# exit TL-SG5428# end Description The end command is used to return to Privileged EXEC Mode.
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. vlan Description The vlan command is used to create IEEE 802.1Q VLAN and enter VLAN Configuration Mode. To delete the IEEE 802.
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-SG5428(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. Syntax name descript no name Parameter descript ——String to describe the VLAN, which contains 16 characters at most.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Specify the Link Type of port 3 as trunk: TL-SG5428(config)# interface gigabitEthernet 1/0/3 TL-SG5428(config-if)# switchport mode trunk switchport access vlan Description The switchport access vlan command is used to add the desired Access port to IEEE 802.1Q VLAN. To remove the specified port/ports from the corresponding VLAN, please use no switchport access vlan command.
no switchport trunk allowed vlan vlan-list 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.
TL-SG5428(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. Syntax switchport pvid vlan-id Parameter vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094.
show vlan brief Description The show vlan brief command is used to display the brief information of IEEE 802.1Q VLAN. Syntax show vlan brief Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the brief information of IEEE 802.1Q VLAN: TL-SG5428(config)# show vlan brief show vlan Description The show vlan command is used to display the detailed information of the specified IEEE 802.1Q VLAN. Syntax show vlan [ id vlan-list ] Parameter vlan-list —— Specify IEEE 802.
Chapter 4 Protocol VLAN Commands Protocol-based VLAN (Virtual Local Area Network) is the way to classify VLANs based on Protocols. A Protocol corresponds to a VLAN ID. The untagged packets and the priority-tagged packets matching the protocol template will be tagged with this VLAN ID. protocol-vlan template Description The protocol-vlan template command is used to create Protocol-based VLAN template. To delete Protocol-based VLAN template, please use no protocol-vlan template command.
no protocol-vlan vlan group-idx Parameter vlan-vid —— Specify IEEE 802.1Q VLAN ID, ranging from 1-4094. template-idx ——The number of the Protocol-based VLAN Template. You can get the template corresponding to the number by the show protocol-vlan template command. group-idx ——The number of the Protocol-based VLAN entry. You can get the Protocol-based VLAN entry corresponding to the number by the show protocol-vlan vlan command.
show protocol-vlan template Description The show protocol-vlan template command is used to display the information of the Protocol-based VLAN templates. Syntax show protocol-vlan template Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the information of the Protocol-based VLAN templates: TL-SG5428(config)# show protocol-vlan template show protocol-vlan vlan Description The show protocol-vlan vlan command is used to display the information about Protocol-based VLAN entry.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the port state and of Protocol-based VLAN interface: TL-SG5428(config)#show protocol-vlan interface 27
Chapter 5 VLAN-VPN Commands VLAN-VPN (Virtual Private Network) function, the implement of a simple and flexible Layer 2 VPN technology, allows the packets with VLAN tags of private networks to be encapsulated with VLAN tags of public networks at the network access terminal of the Internet Service Provider. And these packets will be transmitted with double-tag across the public networks. dot1q-tunnel Description The dot1q-tunnel command is used to enable the VLAN-VPN function globally.
8100. Command Mode Global Configuration Mode Example Configure Global TPID of the VLAN-VPN as 0x9100: TL-SG5428(config)#dot1q-tunnel tpid 9100 switchport dot1q-tunnel enable Description The switchport dot1q-tunnel enable command is used to enable the dot1q tunnel feature on specified interface(s). To disable this function on specified interface(s), please use the no switchport dot1q-tunnel enable command. By default, no interface has been configured with dot1q tunnel function.
port has been configured as the VPN Up-link port.
show dot1q-tunnel interface Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration information of of the VLAN VPN of the interfaces: TL-SG5428(config)#show dot1q-tunnel interface show dot1q-tunnel uplink Description The show dot1q-tunnel uplink command is used to display the configuration information of the VLAN VPN Up-link ports.
Chapter 6 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. voice vlan Description The voice vlan command is used to enable Voice VLAN function. To disable Voice VLAN function, please use no voice vlan command.
Parameter time ——Aging time (in minutes) to be set for the Voice VLAN. It ranges from 1 to 43200. Command Mode Global Configuration Mode Example Set the aging time for the Voice VLAN as 1 minute: TL-SG5428(config)# voice vlan aging time 1 voice vlan mac-address Description The voice vlan mac-address command is used to create Voice VLAN OUI. To delete the specified Voice VLAN OUI, please use no voice vlan mac-address command.
switchport voice vlan mode Description The switchport voice vlan mode command is used to configure the Voice VLAN mode for the Ethernet port. Syntax switchport voice vlan mode { manual | auto } Parameter manual | auto —— Port mode.
show voice vlan Description The show voice vlan command is used to display the global configuration information of Voice VLAN. Syntax show voice vlan Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration information of Voice VLAN globally: TL-SG5428(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.
show voice vlan switchport [ gigabitEthernet port ] Parameter port —— The Ethernet port number.
Chapter 7 Private VLAN Commands Private VLANs are configured specially for saving VLAN resource of uplink devices and decreasing broadcast. private-vlan primary Description The private-vlan primary command is used to configure the designated VLAN as the primary VLAN of the Private VLAN. To abolish the currently primary VLAN, please use no private-vlan primary command.
Command Mode VLAN Configuration Mode (VLAN) Example Configure the VLAN 4 as the sencondary VLAN of the private VLAN: TL-SG5428(config)#vlan 4 TL-SG5428(config-vlan)#private-vlan secondary private-vlan association Description The private-vlan association command is used to associate primary VLAN with secondary VLAN. To exterminate the currently association, please use no private-vlan association command.
Syntax switchport private-vlan { promiscuous | host } no switchport private-vlan { promiscuous | host } Parameter promiscuous | host —— Configure the private VLAN mode for the switchport.
secondary VLAN 4: TL-SG5428(config)#interface gigabitEthernet 1/0/3 TL-SG5428(config-if)#switchport private-vlan host-association 3 4 switchport private-vlan mapping Description The switchport private-vlan mapping command is used to add promiscuous type port to private VLAN. To remove the port from Private VLAN, please use no switchport private-vlan mapping command.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration information of all Private VLAN: TL-SG5428(config)#show vlan private-vlan 41
Chapter 8 GVRP Commands GVRP (GARP VLAN registration protocol) is an implementation of GARP (generic attribute registration protocol). GVRP allows the switch to automatically add or remove the VLANs via the dynamic VLAN registration information and propagate the local VLAN registration information to other switches, without having to individually configure each VLAN. gvrp(global) Description The gvrp command is used to enable the GVRP function globally.
Example Enable the GVRP function for ports 2-6: TL-SG5428(config)# interface range gigabitEthernet 1/0/2-6 TL-SG5428(config-if-range)# gvrp gvrp registration Description The gvrp registration command is used to configure the GVRP registration type on the desired port. To restore to the default value, please use no gvrp registration command. Syntax gvrp registration { normal | fixed | forbidden } no gvrp registration Parameter normal | fixed | forbidden —— Registration mode.
no gvrp timer [ leaveall | join | leave ] Parameter leaveall | join | leave —— They are the three timers: leave All、join and leave. Once the LeaveAll Timer is set, the port with GVRP enabled can send a LeaveAll message after the timer times out, so that other GARP ports can re-register all the attribute information. After that, the LeaveAll timer will start to begin a new cycle. To guarantee the transmission of the Join messages, a GARP port sends each Join message two times.
Example Display the global GVRP status: TL-SG5428(config)# show gvrp global show gvrp interface Description The show gvrp interface command is used to display the GVRP configuration information of all ports or a specified Ethernet port. Syntax show gvrp interface [ gigabitEthernet port ] Parameter port —— The Ethernet port number.
Chapter 9 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. LACP (Link Aggregation Control Protocol) is defined in IEEE802.3ad and enables the dynamic link aggregation and disaggregation by exchanging LACP packets with its partner.
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 —— The source and destination MAC address. When this option is selected, the Aggregate Arithmetic will be based on the source and destination MAC addresses of the packets.
Command Mode Global Configuration Mode Example Configure the LACP system priority as 1024 globally: TL-SG5428(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. Syntax lacp port-priority pri no lacp port-priority Parameter pri —— The port priority, ranging from 0 to 65535. It is 32768 by default.
Syntax show etherchannel [ channel-group-num ] { detail | summary } Parameter channel-group-num —— The EtherChannel Group number, ranging from 1 to 14. By default, it is empty, and will display the information of all EtherChannel Groups. detail —— The detailed information of EtherChannel. summary —— The EtherChannel information in summary.
Parameter channel-group-num —— The EtherChannel Group number, ranging from 1 to 14. By default, it is empty, and will display the information of all LACP groups. internal —— The internal LACP information. neighbor —— The neighbor LACP information.
Chapter 10 User Manage Commands User Manage Commands are used to manage the user’s logging information by Web, CLI or SSH, so as to protect the settings of the switch from being randomly changed. user name Description The user name command is used to add a new user or modify the existed user’s information. To delete the existed users, please use no user name command.
user access-control ip-based Description The user access-control ip-based command is used to limit the IP-range of the users for login. Only the users within the IP-range you set here are allowed to login. To cancel the user access limit, please use no user access-control command. Syntax user access-control ip-based ip-addr ip-mask no user access-control Parameter ip-addr —— The source IP address. Only the users within the IP-range you set here are allowed for login.
Parameter mac-addr —— The source MAC address. Only the user with this MAC Address is allowed to login. Command Mode Global Configuration Mode Example Configure that only the user whose MAC address is 00:00:13:0A:00:01 is allowed to login: TL-SG5428(config)# user access-control mac-based 00:00:13:0A:00:01 user access-control port-based Description The user access-control port-based command is used to limit the ports for login. Only the users connected to these ports you set here are allowed to login.
user max-number Description The user max-number command is used to configure the maximum login user numbers at the same time. To cancel the limit on login numbers, please use no user max-number command. Syntax user max-number admin-num guest-num no user max-number Parameter admin-num ——The maximum number of the users allowed to log on as Admin, ranging from 1 to 16. The total number of Admin and Guest should be less than 16.
Parameter minutes ——The timeout time, ranging from 5 to 30 in minutes. The value is 10 by default. Command Mode Global Configuration Mode Example Configure the timeout time of the switch as 15 minutes: TL-SG5428(config)# user idle-timeout 15 line Description The line command is used to enter the Line Configuration Mode and make related configurations for the desired user(s), including the login mode and password configurations.
TL-SG5428(config)# line vty 0 5 password Description The password command is used to configure the connection password. To clear the password, please use no password command. Syntax password password no password Parameter password —— Configure the connection password, which contains 16 characters at most, composing digits, English letters and underlines only.
Command Mode Line Configuration Mode Example Configure the login of Console port connection 0 as login mode: TL-SG5428(config)# line console 0 TL-SG5428(config-line)# login Configure the login of virtual terminal connection 0-5 as login mode: TL-SG5428(config)# line vty 0 5 TL-SG5428(config-line)# login login local Description The login local command is used to configure the login of a switch with the user name and password admin/admin.
Syntax show user account-list Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the information of the current users: TL-SG5428(config)# show user account-list show user configuration Description The user configuration command is used to display the security configuration information of the users, including access-control, max-number and the idle-timeout, etc.
Chapter 11 Binding Table Commands You can bind the IP address, MAC address, VLAN and the connected Port number of the Host together, which can be the condition for the ARP Inspection to filter the packets. ip source binding Description The ip source binding command is used to bind the IP address, MAC address, VLAN ID and the Port number together manually.
Command Mode Global Configuration Mode Example Bind an entry with the IP 192.168.0.1, MAC 00:00:00:00:00:01, VLAN ID 2 and Port number 5 manually. And then enable the entry for the ARP detection: TL-SG5428(config)# ip source binding host1 192.168.0.
ip dhcp snooping global Description The ip dhcp snooping global command is configure DHCP-Snooping globally. To restore to the default value, please use no ip dhcp snooping global command. Syntax ip dhcp snooping global [ global-rate global-rate ] [ dec-threshold dec-threshold ] [ dec-rate dec-rate ] no ip dhcp snooping global Parameter global-rate —— The value to specify the maximum amount of DHCP messages that can be forwarded by the switch per second. The excessive messages will be discarded.
ip dhcp snooping information option Description The ip dhcp snooping information option command is used to enable the Option 82 function of DHCP Snooping. To disable the Option 82 function, please use no ip dhcp snooping information option command.
Command Mode Global Configuration Mode Example Replace the Option 82 field of the packets with the switch defined one and then send out: TL-SG5428(config)# ip dhcp snooping information strategy replace ip dhcp snooping information remote-id Description The ip dhcp snooping information remote-id command is used to enable and configure the customized sub-option Remote ID for the Option 82. To return to default Remote ID for the Option 82, please use no ip dhcp snooping information remote-id command.
default Circuit ID for the Option 82, please use no ip dhcp snooping information circuit-id command. Syntax ip dhcp snooping information circuit-id string no ip dhcp snooping information circuit-id Parameter string ——Enter the sub-option Circuit ID, which contains 32 characters at most.
ip dhcp snooping mac-verify Description The ip dhcp snooping mac-verify command is used to enable the MAC Verify feature. To disable the MAC Verify feature, please use no ip dhcp snooping mac-verify command. There are two fields of the DHCP packet containing the MAC address of the Host. The MAC Verify feature is to compare the two fields and discard the packet if the two fields are different.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Set the Flow Control of port 2 as 20 pps: TL-SG5428(config)# interface gigabitEthernet 1/0/2 TL-SG5428(config-if)# ip dhcp snooping limit rate 20 ip dhcp snooping decline Description The ip dhcp snooping decline command is used to enable the Decline Protect feature. To disable the Decline Protect feature, please use no ip dhcp snooping decline command.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the IP-MAC-VID-PORT binding table: TL-SG5428(config)# show ip source binding show ip dhcp snooping Description The show ip dhcp snooping command is used to display the running status of DHCP-Snooping.
show ip dhcp snooping interface gigabitEthernet Description The show ip dhcp snooping interface gigabitEthernet command is used to display the DHCP-Snooping configuration of desired Gigabit Ethernet ports. Syntax show ip dhcp snooping interface gigabitEthernet [ port ] Parameters port ——The Ethernet port number.
Chapter 12 ARP Inspection Commands ARP (Address Resolution Protocol) Detect function is to protect the switch from the ARP cheating, such as the Network Gateway Spoofing and Man-In-The-Middle Attack, etc. ip arp inspection(global) Description The ip arp inspection command is used to enable the ARP Detection function globally. To disable the ARP Detection function, please use no ip arp detection command.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Configure the ports 2-5 as the Trusted Port: TL-SG5428(config)# interface range gigabitEthernet 1/0/2-5 TL-SG5428(config-if-range)# ip arp inspection trust ip arp inspection(interface) Description The ip arp inspection command is used to enable the ARP Defend function. To disable the ARP detection function, please use no ip arp inspection command.
ip arp inspection limit-rate Description The ip arp inspection limit-rate command is used to configure the ARP speed of a specified port. To restore to the default speed, please use no ip arp inspection limit-rate command. Syntax ip arp inspection limit-rate value no ip arp inspection limit-rate Parameter value ——The value to specify the maximum amount of the received ARP packets per second, ranging from 10 to 100 in pps(packet/second). By default, the value is 15.
Example Restore port 5 to the ARP transmit status: TL-SG5428(config)# interface gigabitEthernet 1/0/5 TL-SG5428(config-if)# ip arp inspection recover show ip arp inspection Description The show ip arp inspection command is used to display the ARP detection global configuration including the enable/disable status and the Trusted Port list.
TL-SG5428(config)# show ip arp inspection interface Display the configuration of port 2: TL-SG5428(config)# show ip arp inspection interface gigabitEthernet 1/0/2 show ip arp inspection statistics Description The show ip arp inspection statistics command is used to display the number of the illegal ARP packets received.
Chapter 13 IP Verify Source Commands IP Verify Source is to filter the IP packets based on the IP-MAC Binding entries. Only the packets matched to the IP-MAC Binding rules can be processed, which can enhance the bandwidth utility. ip verify source Description The ip verify source command is used to configure the IP Verify Source mode for a specified port. To disable the IP Verify Source function, please use no ip verify source command.
configuration information.
Chapter 14 DoS Defend Command DoS (Denial of Service) Attack is to occupy the network bandwidth maliciously by the network attackers or the evil programs sending a lot of service requests to the Host. With the DoS Defend enabled, the switch can analyze the specific field of the received packets and provide the defend measures to ensure the normal working of the local network. ip dos-prevent Description The ip dos-prevent command is used to enable the DoS defend function globally.
Parameter scan-synfin —— Scan SYNFIN attack. xma-scan —— Xma Scan attack. null-scan —— NULL Scan attack. port-less-1024 ——The SYN packets whose Source Port less than 1024. ping-flood —— Ping flooding attack. With the ping flood attack enabled, the switch will limit automatically the forwarding speed pf ping packets to 512K when attacked by ping flood. syn-flood —— SYN/SYN-ACK flooding attack.
Chapter 15 IEEE 802.1X Commands IEEE 802.1X function is to provide an access control for LAN ports via the authentication. Only the supplicant passing the authentication can access the LAN. dot1x system-auth-control Description The dot1x system-auth-control command is used to enable the IEEE 802.1X function globally. To disable the IEEE 802.1X function, please use no dot1x system-auth-control command.
pap: IEEE 802.1X authentication system uses extensible authentication protocol (EAP) to exchange information between the switch and the client. The transmission of EAP packets is terminated at the switch and the EAP packets are converted to the other protocol (such as RADIUS) packets for transmission eap-md5: IEEE 802.1X authentication system uses extensible authentication protocol (EAP) to exchange information between the switch and the client.
dot1x quiet-period Description The dot1x quiet-period command is used to enable the quiet-period function. To disable the function, please use no dot1x quiet-period command. Syntax dot1x quiet-period no dot1x quiet-period Command Mode Global Configuration Mode Example Enable the quiet-period function: TL-SG5428(config)# dot1x quiet-period dot1x timeout Description The dot1x timeout command is used to configure the quiet period and the supplicant timeout.
Example Configure the quiet period as 100 seconds: TL-SG5428(config)# dot1x timeout quiet-period 100 dot1x max-reauth-req Description The dot1x max-reauth-req command is used to configure the maximum transfer times of the repeated authentication request when the server cannot be connected. To restore to the default value, please use no dot1x max-reauth-req command.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the IEEE 802.1X function for port 1: TL-SG5428(config)# interface gigabitEthernet 1/0/1 TL-SG5428(config-if)# dot1x dot1x guest-vlan(interface) Description The dot1x guest-vlan command is used to enable the guest VLAN function for a specified port. To disable the Guest VLAN function for a specified port, please use no dot1x guest-vlan command.
Syntax dot1x port-control { auto | authorized-force | unauthorized-force } no dot1x port-control Parameter auto | authorized-force | unauthorized-force —— The Control Mode for the port. auto: In this mode, the port will normally work only after passing the 802.1X Authentication. authorized-force: In this mode, the port can work normally without passing the 802.1X Authentication. unauthorized-force: In this mode, the port is forbidden working for its fixed unauthorized status.
port-based: All the clients connected to the port can access the network on the condition that any one of the clients has passed the 802.1X Authentication. Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Configure the Control Type for port 1 as port-based: TL-SG5428(config)# interface gigabitEthernet 1/0/1 TL-SG5428(config-if)# dot1x port-method port-based radius Description The radius command is used to configure the parameters of radius.
value ——The maximum time for the switch to wait for the response before resending a request to the supplicant., ranging from 1 to 9 in second. By default, it is 3. Command Mode Global Configuration Mode Example Configure the IP address of the accounting server as 10.20.1.100 and password as tplink: TL-SG5428(config)# radius auth-pri 10.20.1.100 auth-key tplink radius server-account Description The radius server-account command is used to enable the accounting feature.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of 801.X globally: TL-SG5428(config)# show dot1x global show dot1x interface Description The show dot1x interface command is used to display all ports’ or the specified port’s configuration information of 801.X. Syntax show dot1x interface [ gigabitEthernet port ] Parameter port ——The number of the Ethernet port. Display the configuration of all the ports by default.
Command Mode Privileged EXEC Mode and Any Configuration Modes Example Display the configuration of the accounting server: TL-SG5428(config)# show radius accounting show radius authentication Description The show radius authentication command is used to display the configuration of the RADIUS authentication server.
Chapter 16 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. To disable the logging buffer function, please use no logging buffer command. Local Log is the log information saved in the switch.
logging file flash Description The logging file flash command is used to configure the level and the status of the log file input. To disable the logging file flash funtion, please use no logging file flash command. The log file indicates the flash sector for saving system log. The information in the log file will not be lost after the switch is restarted and can be got by the show logging flash command.
Command Mode Global Configuration Mode Example Clear the information in the log file: TL-SG5428(config)# clear logging buffer logging host index Description The logging host index command is used to configure the Log Host. To clear the configuration of the specified Log Host, please use no logging host index command. Log Host is to receive the system log from other devices. You can remotely monitor the settings and operation status of other devices through the log host.
show logging local-config Description The show logging local-config command is used to display the configuration of the Local Log including the log buffer and the log file. Syntax show logging local-config Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of the Local Log: TL-SG5428(config)# show logging local-config show logging loghost Description The show logging loghost command is used to display the configuration of the log host.
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. Display all the log information in the log buffer by default.
Chapter 17 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.
Example Enable SSH v2: TL-SG5428(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 value —— The Idle-timeout time. During this period, the system will automatically release the connection if there is no operation from the client. It ranges from 1 to 999 in seconds. By default, this value is 500.
Command Mode Global Configuration Mode Example Specify the maximum number of the connections to the SSH server as 3: TL-SG5428(config)# ip ssh max-client 3 ip ssh download Description The ip ssh download command is used to download the SSH key file from TFTP server. Syntax ip ssh download { v1 | v2 } key-file ip-address ip-addr Parameter v1 | v2 —— Select the type of SSH key to download, v1 represents SSH-1, v2 represents SSH-2. key-file —— The name of the key-file which is selected to download.
Example Display the global configuration of SSH: TL-SG5428(config)# show ip ssh 96
Chapter 18 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. By default the switch has a certificate (self-signed certificate) and a corresponding private key.
Parameter ssl-cert —— The name of the SSL certificate which is selected to download to the switch. The length of the name ranges from 1 to 25 characters. The certificate must be BASE64 encoded. ip-addr —— The IP address of the TFTP server. Command Mode Global Configuration Mode Example Download a SSL certificate named ssl-cert from TFTP server with the IP Address of 192.168.0.146: TL-SG5428(config)# ip http secure-server download certificate ssl-cert ip-address 192.168.0.
show ip http secure-server Description The show ip http secure-server command is used to display the global configuration of SSL.
Chapter 19 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. To remove the corresponding entry, please use no mac address-table static command. The static address can be added or removed manually, independent of the 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 —— The aging time for the dynamic address. The value of it can be 0 or ranges from 10 to 630 seconds. When 0 is entered, the Auto Aging function is disabled. It is 300 by default.
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-SG5428(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.
status —— Enable or disable the Port Security function for a specified port. By default, this function is disabled.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Aging Time of the MAC address: TL-SG5428(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.
Syntax show mac address-table interface gigabitEthernet port Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the address configuration of port 1: TL-SG5428(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.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the information of the MAC address 00:00:00:00:23:00:00: TL-SG5428(config)#show mac address-table mac 00:00:00:00:23:00: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 vid ——The specified VLAN id.
Chapter 20 System Configuration Commands System Configuration Commands can be used to configure the system information and system IP of the switch, and to reboot and reset the switch, upgrade the switch system and commands used for device diagnose, including loopback test and cable test. system-time manual Description The system-time manual command is used to configure the system time manually.
UTC-11:00 —— TimeZone for Coordinated Universal Time-11. UTC-10:00 —— TimeZone for Hawaii. 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 —— TimeZone for Newfoundland.
Command Mode Global Configuration Mode Example Configure the system time mode as NTP, the time zone is UTC-12:00, the primary NTP server is 133.100.9.2 and the secondary NTP server is 139.78.100.163, the fetching-rate is 11 hours: TL-SG5428(config)# system-time ntp UTC-12:00 133.100.9.2 139.79.100.163 11 system-time dst predefined Description The system-time dst predefined command is used to select a predefined DST configuration and the configuration can be recycled.
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. DST time periods should be within 12 months over one/two year.
Syntax system-time dst recurring { sweek } { sday } { smonth } { stime } { eweek } { eday } { emonth } { etime } [ offset ] Parameter sweek —— Week to start, with the options: first, second, third, fourth, last. sday —— Day to start, with the options: Sun, Mon, Tue, Wed, Thu, Fri, Sat. smonth—— Month to start, with options: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec. stime —— Time to start, in the format of: hh:mm.
hostname —— System Name. The length of the name ranges from 1 to 32 characters. By default, it is the device name, for example “TL-SG5428”. Command Mode Global Configuration Mode Example Configure the system name as TPLINK: TL-SG5428(config)# hostname TPLINK location Description The location command is used to configure the system location. To clear the system location information, please use no location command. Syntax location location no location Parameter location —— Device Location.
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-SG5428(config)# contact-info www.tp-link.com ip management-vlan Description The ip management-vlan command is used to configure the management VLAN, through which you can log on to the switch. By default the management VLAN is VLAN1.
Parameter ip-addr —— The system IP of the switch. The default system IP is 192.168.0.1. ip-mask —— The Subnet Mask of the switch. The default Subnet Mask is 255.255.255.0. gateway —— The Default Gateway of the switch. By default, it is empty. Command Mode Interface Configuration Mode (interface vlan) Example Configure the system IP as 192.168.0.69 and the Subnet Mask as 255.255.255.0 when the management VLAN of the switch is VLAN1: TL-SG5428(config)# interface vlan 1 TL-SG5428(config-if)# ip address 192.
BOOTP Server. This command should be configured in the Interface Configuration Mode of the management VLAN. Syntax ip address-alloc bootp Command Mode Interface Configuration Mode (interface vlan) Example Enable the BOOTP Protocol to obtain IP address from BOOTP Server when the management VLAN of the switch is VLAN1: TL-SG5428(config)# interface vlan 1 TL-SG5428(config-if)# ip address-alloc bootp reset Description The reset command is used to reset the switch’s software.
Privileged EXEC Mode Example Reboot the switch: TL-SG5428# reboot copy running-config startup-config Description The copy running-config startup-config command is used to save the current settings. Syntax copy running-config startup-config Command Mode Privileged EXEC Mode Example Save current settings: TL-SG5428# copy running-config startup-config copy startup-config tftp Description The copy startup-config tftp command is used to backup the configuration file to TFTP server.
TL-SG5428# 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. Syntax copy tftp startup-config ip-address ip-addr filename name Parameter ip-addr —— IP Address of the TFTP server. name —— Specify the name for the configuration file which would be downloaded.
Example Upgrade the switch system file named as firmware.bin via the TFTP server with the IP address 192.168.0.148: TL-SG5428# firmware upgrade firmware.bin 118 ip-address 192.168.0.
ping Description The ping command is used to test the connectivity between the switch and one node of the network. Syntax ping { ip_addr } [ -n count ] [ -l count ] [ -i count ] Parameter ip_addr —— The IP address of the destination node for ping test. -n count —— The amount of times to send test data during Ping testing. It ranges from 1 to 10. By default, this value is 4. -l count —— The size of the sending data during ping testing. It ranges from 1 to 1024 bytes. By default, this value is 64.
maxHops —— The maximum number of the route hops the test data can pass though. It ranges from 1 to 30. By default, this value is 4. Command Mode User EXEC Mode and Privileged EXEC Mode Example Test the connectivity between the switch and the network device with the IP 192.168.0.131. If the destination device has not been found after 20 maxHops, the connection between the switch and the destination device is failed to establish: TL-SG5428# tracert 192.168.0.
The show system-time command is used to display the current time system and its source. Syntax show system-time Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the time information of the switch: TL-SG5428# show system-time show system-time dst Description The show system-time dst command is used to display the DST time information of the switch.
Example Display the NTP mode configuration information of the switch: TL-SG5428# show system-time ntp show system-info Description The show system-info command is used to display system description, system name, device location, system contact, hardware version, firmware version, system time, run time and so on.
Chapter 21 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. Syntax interface gigabitEthernet port Parameter port —— The Ethernet port number.
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.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Disable port 3: TL-SG5428(config)# interface gigabitEthernet 1/0/3 TL-SG5428(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.
Parameter rj45 | sfp —— Media type. Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Configure the media type of Combo port 9T as “SFP”: TL-SG5412F(config)# interface gigabitEthernet 1/0/9 TL-SG5412F(config-if)# media-type sfp duplex Description The duplex command is used to configure the Duplex Mode for an Ethernet port. To return to the default configuration, please use no duplex command.
Syntax speed { 10 | 100 | 1000 | auto } no speed Parameter 10 | 100 | 1000 | auto —— The speed mode of the Ethernet port. There are four options: 10Mbps, 100Mbps, 1000Mbps and Auto negotiation mode (default).
storm-control multicast Description The storm-control multicast command is used to enable the multicast control function. To disable the multicast control function, please use no storm-control multicast command. Multicast control function allows the switch to filter multicast in the network. If the transmission rate of the multicast packets exceeds the set bandwidth in the storm-control rate, the packets will be automatically discarded to avoid network broadcast storm.
Enable the unicast control function for port 5: TL-SG5428(config)# interface gigabitEthernet 1/0/5 TL-SG5428(config-if)# storm-control unicast storm-control rate Description The storm-control rate command is used to configure storm control rate. To disable the storm control function, please use no storm-control rate command. Storm Control function allows the switch to filter broadcast, multicast and UL frame in the network.
no bandwidth { all | ingress | egress } Parameter ingress-rate — — Specify the bandwidth for receiving packets. Range: 1-1024000 for the gigaport. egress-rate — — Specify the bandwidth for sending packets. Range: 1-1024000 for the gigaport.
Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the connective-status of all ports: TL-SG5428(config)# show interface status Display the connective-status of port 1: TL-SG5428(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.
Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the description of all Ethernet ports: TL-SG5428(config)# show interface description Display the description of port 2: TL-SG5428(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.
Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configurations of all Ethernet ports: TL-SG5428(config)# show interface configuration Display the configurations of port 2: TL-SG5428(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.
show bandwidth [interface { gigabitEthernet port | range gigabitEthernet port-list }] Parameter port —— The Ethernet port number. port-list —— The list of the Ethernet ports.
Chapter 22 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. qos 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. Syntax qos cos-id no qos Parameter cos-id — — The priority of port. It ranges from 0 to 7, which represent CoS0-CoS7 respectively. By default, the priority is 0.
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. Example Enable the mapping relation between IEEE 802.
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 egress queue. To return to the default configuration, please use no qos queue cos-map command. When 802.1P Priority is enabled, the packets with 802.1Q tag are mapped to different priority levels based on 802.1P priority mode. The untagged packets are mapped based on port priority mode.
IEEE 802.1P priority mode if IEEE 802.1P Priority is enabled; the untagged non-IP datagram are mapped based on port priority 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. The DSCP value ranges from 0 to 63.
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. The weight value ratio of TC0, TC1, TC2 and TC3 is 1:2:4:8. sp+wrr —— Strict-Priority + Weight Round Robin Mode.
Display the configuration of QoS for port 5: TL-SG5428# show qos interface gigabitEthernet 1/0/5 Display the configuration of QoS for ports 1-4: TL-SG5428# 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. Syntax show qos cos-map Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of IEEE 802.
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-SG5428# show qos queue mode show qos status Description The show qos status command is used to display the status of IEEE 802.1P priority and DSCP priority.
Chapter 23 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 monitoring port. Each monitor session has only one monitoring port.
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 Parameter session_num —— The monitor session number, ranging from 1 to 4. port-list —— List of monitored port.
TL-SG5428(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-SG5428(config)# no monitor session 1 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. Syntax show monitor session [session_num] Parameter session_num —— The monitor session number, ranging from 1 to 4. It is optional.
Chapter 24 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. To delete the corresponding configuration, please use no port isolation command.
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.
Chapter 25 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 function globally. To disable it, please use no loopback detection command.
Example Specify the interval-time as 50 seconds: TL-SG5428(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 —— The time after which the blocked port would automatically recover to normal status, and the loopback detection would restart.
TL-SG5428(config)# interface range gigabitEthernet 1/0/1-3 TL-SG5428(Config-if-range)# loopback-detection loopback-detection config Description The loopback-detection config command is used to configure the process-mode and recovery-mode for the ports by which the switch copes with the detected loops. Syntax loopback-detection config [ process-mode { alert | port-based }] [ recovery-mode { auto | manual }] Parameter process-mode —— The mode how the switch processes the detected loops.
Syntax loopback-detection recover Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Recover the blocked port 2 to normal status: TL-SG5428(config)# interface gigabitEthernet 1/0/2 TL-SG5428(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 detect
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of loopback detection function and the status of all ports: TL-SG5428# show loopback-detection interface Display the configuration of loopback detection function and the status of port 5: TL-SG5428# show loopback-detection interface gigabitEthernet 1/0/5 151
Chapter 26 ACL Commands ACL (Access Control List) is used to filter data packets by configuring a series of match conditions, operations and time ranges. It provides a flexible and secured access control policy and facilitates you to control the network security. time-range Description The time-range command is used to add Time-Range. To delete the corresponding Time-Range, please use no time-range command.
Parameter start-date —— The start date in Absoluteness Mode, in the format of MM/DD/ YYYY. By default, it is 01/01/2000. end-date —— The end date in Absoluteness Mode, in the format of MM/DD/ YYYY. By default, it is 12/31/2000. The absoluteness mode will be disabled if the start date and end date are both in default value. Command Mode Time-range Create Configuration Mode Example Configure the time-range “tRange1” with time from May 5, 2012 to Oct.
TL-SG5428(config-time-range)# periodic week-date off-day time-slice1 08:30-12:00 holiday Description The holiday command is used to configure the time-range into Holiday Mode under Time-range Create Configuration Mode. To delete the corresponding Holiday Mode time-range, please use no holiday command.
Example Define National Day, configuring the start date as October 1st, and the end date as October 3rd: TL-SG5428(config)# holiday nationalday start-date 10/01 end-date 10/03 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.
Example Create a MAC ACL whose ID is 23: TL-SG5428(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.
255.255.255.0, the time-range for the rule to take effect is “tRange1”, and the packets match this rule will be forwarded by the switch: TL-SG5428(config)# access-list create 120 TL-SG5428(config)# access-list standard 120 rule 10 permit sip 192.168.0.100 smask 255.255.255.0 tseg tRange1 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.
Command Mode Global Configuration Mode Example Create an Extended-IP ACL whose ID is 220, and add Rule 10 for it. In the rule, the source IP address is 192.168.0.100, the source IP address mask is 255.255.255.0, the time-range for the rule to take effect is “tRange1”, and the packets match this rule will be forwarded by the switch: TL-SG5428(config)# access-list create 220 TL-SG5428(config)# access-list extended 220 rule 10 permit sip 192.168.0.100 smask 255.255.255.
user-pri —— The user priority contained in the rule, ranging from 0 to 7. By default, it is not limited. time-segment —— The time-range for the rule to take effect. By default, it is not limited. Command Mode Mac Access-list Configuration Mode Example Create a MAC ACL whose ID is 20, and add Rule 10 for it.
access-list policy action Description The access-list policy action command is used to add ACLs and create actions for the policy. To set the detailed configuration of actions for a policy, please use access-list policy action command to access Action Configuration Mode. To delete the corresponding actions, please use no access-list policy action command.
TL-SG5428(config-action)# redirect interface gigabitEthernet 1/0/2 s-condition Description The s-condition command is used to configure Stream Condition function of policy action. Syntax s-condition rate rate osd { none | discard } Parameter rate —— The rate of Stream Condition, ranging from 0 to 100000kbps. osd —— Out of Band disposal of Stream Condition. It is the disposal way of the data packets those are transmitted beyond the rate. There are two options, none and discard.
ACL 120 as port 2: TL-SG5428(config)# access-list policy action policy1 120 TL-SG5428(config-action)# s-mirror interface gigabitEthernet 1/0/2 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.
Example Bind policy1 to VLAN 2: TL-SG5428(config)# interface vlan 2 TL-SG5428(config-if)# access-list bind policy1 show time-range Description The show time-range command is used to display the configuration of Time-Range. Syntax show time-range Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of Time-Range: TL-SG5428(config)# show time-range show holiday Description The show holiday command is used to display the defined holiday.
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-SG5428(config)# show access-list 20 show access-list policy Description The show access-list policy command is used to display the information of a specified policy. Syntax show access-list policy name Parameter name —— The Policy Name desired to show.
Example Display the configuration of Policy bind: TL-SG5428(config)# show access-list bind 165
Chapter 27 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. To disable the STP function, please use no spanning-tree command.
TL-SG5428(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.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the STP function of port 1, and configure the Port Priority as 64, ExtPath Cost as 100, IntPath Cost as 100, and then enable Edge Port: TL-SG5428(config)# interface gigabitEthernet 1/0/1 TL-SG5428(config-if)# spanning-tree common-config port-priority 64 ext-cost 100 int-cost 100 portfast enable point-to-point open spanning-tree mode Description The spanning-tree mode command is used to co
default configuration of the corresponding Instance, please use no spanning-tree mst configuration command. Syntax spanning-tree mst configuration no spanning-tree mst configuration Command Mode Global Configuration Mode Example Enter into the MST configuration mode: TL-SG5428(config)# spanning-tree mst configuration TL-SG5428(Config-mst)# instance Description The instance command is used to configure the VLAN-Instance mapping.
TL- SG5428(config-mst)# no instance 1 Remove VLANs 1-50 in mapping VLANs 1-100 for Instance 1: TL-SG5428(config)# spanning-tree mst configuration TL-SG5428(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 name —— The region name, used to identify MST region. It ranges from 1 to 32 characters.
TL-SG5428(config)# spanning-tree mst configuration TL-SG5428(config-mst)# revision 100 spanning-tree mst instance Description The spanning-tree mst instance command is used to configure the priority of MST instance. To return to the default value of MST instance priority, please use no spanning-tree mst instance command. Syntax spanning-tree mst instance instance-id priority pri no spanning-tree mst instance instance-id priority Parameter instance-id —— Instance ID, ranging from 1 to 8.
Parameter instance-id —— Instance ID, ranging from 1 to 8. pri —— Port Priority, which must be multiple of 16 ranging from 0 to 240. By default, it is 128. Port Priority is an important criterion on determining if the port will be chosen as the root port by the device connected to this port. cost —— Path Cost, ranging from 0 to 200000. The lower value has the higher priority. Its default value is 0 meaning “auto”.
spanning-tree tc-defend Description The spanning-tree tc-defend command is used to configure the TC Protect of Spanning Tree globally. To return to the default configuration, please use no spanning-tree tc-defend command. A switch removes MAC address entries upon receiving TC-BPDUs. If a malicious user continuously sends TC-BPDUs to a switch, the switch will be busy with removing MAC address entries, which may decrease the performance and stability of the network.
Parameter forward-time —— Forward Delay, which is the time for the port to transit its state after the network topology is changed. Forward Delay ranges from 4 to 30 in seconds and it is 15 by default. Otherwise, 2 * (Forward Delay - 1) >= Max Age. hello-time ——Hello Time, which is the interval to send BPDU packets, and used to test the links. Hello Time ranges from 1 to 10 in seconds and it is 2 by default. Otherwise, 2 * (Hello Time + 1) <= Max Age.
TL-SG5428(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.
Example Enable the BPDU filter function for port 2: TL-SG5428(config)# interface gigabitEthernet 1/0/2 TL-SG5428(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.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the Loop Protect function for port 2: TL-SG5428(config)# interface gigabitEthernet 1/0/2 TL-SG5428(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.
removing MAC address entries, which may decrease the performance and stability of the network. With the Protect of Spanning Tree function enabled, you can configure the number of TC-BPDUs in a required time, so as to avoid the process of removing MAC addresses frequently.
Syntax show spanning-tree active Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the active information of spanning-tree: TL-SG5428(config)# show spanning-tree active show spanning-tree bridge Description The show spanning-tree bridge command is used to display the bridge parameters.
Example Display the spanning-tree information of all ports: TL-SG5428(config)# show spanning-tree interface Display the spanning-tree information of port 2: TL-SG5428(config)# show spanning-tree interface gigabitEthernet 1/0/2 Display the spanning-tree mode information of port 2: TL-SG5428(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 protect information of all ports
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 —— The Ethernet port number.
Chapter 28 IGMP Commands IGMP Snooping (Internet Group Management Protocol Snooping) is a multicast control mechanism running on Layer 2 switch. It can effectively prevent multicast groups being broadcasted in the network. ip igmp snooping(global) Description The ip igmp snooping command is used to configure IGMP Snooping globally. To disable the IGMP Snooping function, please use no ip igmp snooping command.
TL-SG5428(config)# interface gigabitEthernet 1/0/3 TL-SG5428(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.
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.
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-SG5428(config)# ip igmp snooping vlan-config 1-3 rtime 300 TL-SG5428(config)# ip igmp snooping vlan-config 1-3 mtime 200 TL-SG5428(config)# ip igmp snooping vlan-config 1-2 ltime 15 Add static multicast IP address 225.0.0.
leave-time —— Leave Time, which is the interval between the switch receiving a leave message from a host and the switch removing the host from the multicast groups. Leave Time ranges from 1 to 30 in seconds. By default, it is 1. port —— The Ethernet port number.
Example Bind the filtering address ID 2-6 to port 3: TL-SG5428(config)# interface gigabitEthernet 1/0/3 TL-SG5428(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. To delete the multicast filtering IP-range, please use no ip igmp snooping filter command.
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-SG5428(config)# interface gigabitEthernet 1/0/3 TL-SG5428(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.
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. By default, the option is “accept”.
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.
TL-SG5428# 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.
Example Display the information of all IGMP snooping groups: TL-SG5428#show ip igmp snooping groups Display all the multicast entries in VLAN 5: TL-SG5428(config)#show ip igmp snooping groups vlan 5 Display the count of multicast entries in VLAN 5: TL-SG5428(config)#show ip igmp snooping groups vlan 5 count Display the dynamic multicast groups of VLAN 5 TL-SG5428(config)#show ip igmp snooping groups vlan 5 dynamic Display the static multicast groups of VLAN 5 TL-SG5428(config)#show ip igmp snooping groups v
Chapter 29 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. To return to the default configuration, please use no snmp-server command.
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. Command Mode Global Configuration Mode 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-SG5428(config)# snmp-server view view1 1.3.6.1.6.3.
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. write-view —— Select the View to be the Write View. The management access is writing only and changes can be made to the assigned SNMP View. The View defined both as the Read View and the Write View can be read and modified.
Parameter name —— User Name, ranging from 1 to 16 characters. local | remote —— User Type, with local and remote options. Local indicates that the user is connected to a local SNMP engine, while remote means that the user is connected to a remote SNMP engine. group-name —— The Group Name of the User. The User is classified to the corresponding Group according to its Group Name, Security Model and Security Level. smode —— The Security Model of the User, with v1, v2c and v3 options.
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.
udp-port —— UDP port, which is used to send notifications. The UDP port functions with the IP address for the notification sending. It ranges from 1 to 65535. user-name —— The User name of the management station. smode —— The Security Model of the management station, with v1, v2c and v3 options. By default, the option is v1. slev —— The Security Level of SNMP v3 Group.
snmp-server engineID Description The snmp-server engineID command is used to configure the local and remote engineID of the switch. To restore to the default setting, please use no snmp-server engineID command. Syntax snmp-server engineID { [ local local-engineID ] [ remote remote-engineID ] } no snmp-server engineID Parameter local-engineID —— Local Engine ID for local clients. The Engine ID is a unique alphanumeric string used to identify the SNMP engine on the switch.
Syntax snmp-server traps snmp [ linkup | linkdown | warmstart | coldstart ] no snmp-server traps snmp [ linkup | linkdown | warmstart | coldstart ] Parameter linkup —— Enable linkup trap. It is sent when port status changes from linkdown to linkup. By default, it is enabled. linkdown ——Enable linkdown trap. It is sent when port status changes from linkup to linkdown. By default, it is enabled. warmstart —— Enable warmstart trap. It is sent upon SNMP function reboot. By default, it is enabled.
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.
snmp-server traps mac Description The snmp-server traps mac command is used to enable SNMP extended MAC address-related traps which include four types: new, full, learn-mode-change and max-learned. To disable the sending of SNMP extended MAC address related traps, please use no snmp-server traps mac command.
Syntax snmp-server traps vlan [ create | delete ] no snmp-server traps vlan [create | delete ] Parameter create —— Enable VLAN-created trap. It is sent when new VLAN is created successfully. delete —— Enable VLAN-deleted traps. It is sent when VLAN is deleted successfully.
seconds —— The interval to take samplings from the port, ranging from 10 to 3600 in seconds. By default, it is 1800. owner-name —— The owner of the history sample entry, ranging from 1 to 16 characters. By default, it is “monitor”.
Command Mode Global Configuration Mode Example Configure the 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-SG5428(config)# rmon event 1-4 user user1 description description1 type log owner owner1 rmon alarm Description The rmon alarm command is used to configure SNMP-RMON Alarm Management. To return to the default configuration, please use no rmon alarm command.
last sampled value from the current value, and then comparing the difference in the values with the threshold. By default, the Sample Type is “absolute”. r-hold —— The rising counter value that triggers the Rising Threshold alarm, ranging from 1 to 65535. By default, it is 100. r-event —— Rise Event, which is the index of the corresponding event which will be triggered if the sampled value is larger than the Rising Threshold. It ranges from 1 to 12.
show snmp-server Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display SNMP configuration globally: TL-SG5428# show snmp-server show snmp-server view Description The show snmp-server view command is used to display the View table.
Syntax show snmp-server user Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the User table: TL-SG5428# show snmp-server user show snmp-server community Description The show snmp-server community command is used to display the Community table.
Description The show snmp-server engineID command is used to display the engineID of the SNMP. Syntax show snmp-server engineID Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the engineID: TL-SG5428# show snmp-server engineID show rmon history Description The show rmon history command is used to display the configuration of the history sample entry.
show rmon event [ index ] Parameter index —— The index number of the entry selected to display the configuration, ranging from 1 to 12, in the format of 1-3, 5. You can select more than one entry for each command. By default, the configuration of all SNMP-RMON enabled entries is displayed.
Chapter 30 LLDP Commands 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. lldp Description The lldp command is used to enable LLDP function. To disable the LLDP function, please use no lldp command.
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-SG5428(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.
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-SG5428(config)# lldp timer tx-interval 45 TL-SG5428(config)# lldp timer notify-interval 120 lldp receive Description The lldp receive command is used to enable the designated port to receive LLDPDU.
no lldp transmit Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable port 1 to transmit LLDPDU: TL-SG5428(config)# interface gigabitEthernet 1/0/1 TL-SG5428(config-if)# lldp transmit lldp snmp-trap Description The lldp snmp-trap command is used to enable the port’s SNMP notification. If enabled, the port will notify the trap event to network management system. To disable the ports' SNMP notification, please use no lldp snmp-trap command.
lldp tlv-select [ port-description | system-capability | system-description | system-name | management-address | port-vlan | protocol-vlan | vlan-name | link-aggregation | mac-phy-cfg | max-frame-size | power | all ] no lldp tlv-select [ port-description | system-capability | system-description | system-name | management-address | port-vlan | protocol-vlan | vlan-name | link-aggregation | mac-phy-cfg | max-frame-size | power | all ] Command Mode Interface Configuration Mode (interface gigabitEthernet / int
ports will be displayed. 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-SG5428# show lldp interface gigabitEthernet 1/0/1 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.
default, the neighbor information of all the ports will be displayed. Syntax show lldp neighbor-information interface [ gigabitEthernet port ] Parameter port —— The Ethernet port number.
Chapter 31 Cluster Commands Cluster Management function enables a network administrator to manage the scattered devices in the network via a management device. After a commander switch is configured, management and maintenance operations intended for the member devices in a cluster is implemented by the commander device. cluster ndp Description The cluster ndp command is used to configure NDP globally. To return to the default configuration, please use no cluster ndp command.
TL-SG5428(config)# cluster ndp timer hello 50 aging 120 Change Aging Time to 80 seconds: TL-SG5428(config)# cluster ndp timer aging 80 Change Hello Time to 80 seconds: TL-SG5428(config)# cluster ndp timer hello 80 cluster ntdp Description The cluster ntdp command is used to configure NTDP globally. To return to the default configuration, please use no cluster ntdp command.
request packets over. NTDP Port Delay ranges from 1 to 100 in milliseconds. By default, it is 20. hop-value —— NTDP Hops, which is the hop count the switch topology collects. NTDP Hops ranges from 1 to 16. By default, it is 3.
Parameter ndp —— Enable/ Disable NDP function for the port. By default, it is enabled. ntdp —— Enable/ Disable NTDP function for the port. By default, it is enabled.
Syntax cluster commander name no cluster commander Parameter name —— The cluster name, ranging from 1 to 16 characters. Command Mode Global Configuration Mode Example Configure the newly created cluster name as tp: TL-SG5428(config)#cluster commander tp cluster manage Description The cluster manage command is used to configure the hold time and interval to send handshake packets of the cluster. To return to the default configuration, please use no cluster manage command.
Description The cluster member command is used to add member switch. To delete the corresponding member, please use no cluster member command. The add/delete operations of member switches should be implemented by the commander switch according to the MAC address. Syntax cluster member {mac-address mac-address} no cluster member {mac-address mac-address} Parameter mac-address —— The MAC address of the member switch desired to join in or to be deleted from the cluster.
Syntax cluster individual Command Mode Global Configuration Mode Example Specify the current switch as individual switch: TL-SG5428(config)# cluster individual show cluster ndp Description The show cluster ndp command is used to display NDP configuration of certain ports. Syntax show cluster ndp [interface [ gigabitEthernet port ]] Parameter port —— The Ethernet port number.
Parameter port —— The Ethernet port number.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the global configuration of Cluster: TL-SG5428#show cluster show cluster member Description The show cluster member command is used to display the member information.