TL-SG3210/TL-SG3216/TL-SG3424/TL-SG3424P JetStream L2 Managed Switch 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 © 2014 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.............................................................................
show vlan summary ............................................................................................................ 30 show vlan brief.................................................................................................................... 31 show vlan ........................................................................................................................... 31 Chapter 4 MAC-based VLAN Commands ....................................................................
show etherchannel ............................................................................................................. 49 show etherchannel load-balance ........................................................................................ 49 show lacp ........................................................................................................................... 50 show lacp sys-id ........................................................................................................
ip arp inspection(global)...................................................................................................... 72 ip arp inspection trust.......................................................................................................... 72 ip arp inspection(interface).................................................................................................. 73 ip arp inspection limit-rate..........................................................................................
logging host index............................................................................................................... 92 show logging local-config.................................................................................................... 93 show logging loghost .......................................................................................................... 93 show logging buffer....................................................................................................
hostname ..........................................................................................................................115 location..............................................................................................................................115 contact-info........................................................................................................................116 ip management-vlan ....................................................................................
media-type........................................................................................................................ 135 duplex............................................................................................................................... 135 speed ............................................................................................................................... 136 storm-control broadcast .............................................................................
loopback-detection interval ............................................................................................... 157 loopback-detection recovery-time ..................................................................................... 158 loopback-detection(interface)............................................................................................ 158 loopback-detection config .................................................................................................
access-list extended ......................................................................................................... 179 rule ................................................................................................................................... 181 access-list policy name..................................................................................................... 182 access-list policy action .....................................................................................
spanning-tree mcheck ...................................................................................................... 203 show spanning-tree active ................................................................................................ 203 show spanning-tree bridge................................................................................................ 204 show spanning-tree interface............................................................................................
ipv6 mld snooping vlan member-aging-time ...................................................................... 224 ipv6 mld snooping vlan immediate-leave........................................................................... 225 ipv6 mld snooping vlan mrouter ........................................................................................ 225 ipv6 mld snooping vlan static ............................................................................................
rmon event ....................................................................................................................... 248 rmon alarm ....................................................................................................................... 249 show snmp-server ............................................................................................................ 250 show snmp-server view ..........................................................................................
show cluster ndp............................................................................................................... 270 show cluster ntdp.............................................................................................................. 271 show cluster neighbour..................................................................................................... 271 show cluster manage role................................................................................................
Preface This Guide is intended for network administrator to provide referenced information about CLI (Command Line Interface). The switch mentioned in this Guide stands for TL-SG3210/TL-SG3216/TL-SG3424/TL-SG3424P without any explanation. The commands in this guilde apply to these four models if not specially noted, and TL-SG3424 is taken as an example model in the example commands.
and record the IP address, MAC address, VLAN and the connected Port number of the Host for automatic binding. Chapter 11: ARP Inspection Commands Provide information about the commands used for protecting the switch from the ARP cheating or ARP Attack. Chapter 12: DoS Defend Command Provide information about the commands used for DoS defend and detecting the DoS attack. Chapter 13: IEEE 802.1X Commands Provide information about the commands used for configuring IEEE 802.1X function.
Chapter 25: PoE Commands Provide information about the commands used for configuring PoE function. 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 Snooping 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.
3. The Connection Description Window will prompt as Figure 1-2 shown. Enter a name into the Name field and click OK. Figure 1-2 Connection Description 4. Select the port to connect in Figure 1-3, and click OK.
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-SG3424>” 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.
Figure 1-6 Configure the Privileged EXEC Mode Password 1.1.3 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, you can choose one according to your needs: Login local Mode: It requires username and password, which are both admin by default.
Now, you can logon by Telnet in login local mode. 1. Make sure the switch and the PC are in the same LAN. Click Start → Run to open the Run window, and type cmd in the prompt Run window as Figure 1-8 and click OK. Figure 1-8 Run Window 2. Open Telnet and type telnet 192.168.0.1 in the command prompt shown as Figure 1-9, and press the Enter button. Figure 1-9 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.
4. Type enable command to enter Privileged EXEC Mode. A password that you have set through Console port connection is required. Here the password is set as 123. Figure 1-11 Enter into the Privileged EXEC Mode Login Mode Firstly enter the Privileged EXEC Mode password set in 1.1.2 Configuring the Priviledged EXEC Mode Password and configure the Telnet login mode as “login” and the connection password and 456 in the prompted DOS screen shown in Figure 1-12.
Now, you can logon by Telnet in login mode: 1. Open Telnet and type telnet 192.168.0.1 in the command prompt shown as Figure 1-13, and press the Enter button. Figure 1-13 Connecting to the Switch 2. You are prompted to enter the connection password 456 you have set through Console port connection, and then you are in 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. Figure 1-15 Enter into the Privileged EXEC Mode Now you can manage your switch with CLI commands through Telnet connection. Note: You can refer to Chapter 9 User Manage Commands for detailed commands information of the Telnet connection configuration. 1.1.4 Logon by SSH To log on by SSH, a Putty client software is recommended.
Note: Before SSH login, please follow the steps shown in Figure 1-16 to enable the SSH function through console connection. Figure 1-16 Enable SSH function Password Authentication Mode 1. Open the software to log on to the interface of PuTTY. Enter the IP address of the switch into Host Name field; keep the default value 22 in the Port field; select SSH as the Connection type.
2. Click the Open button in the above figure to log on to the switch. Enter the login user name and password to log on the switch, and then enter the Privileged EXEC Mode password, so you can continue to configure the switch. Figure 1-18 Log on the Switch Key Authentication Mode 1. Select the key type and key length, and generate SSH key. Figure 1-19 Generate SSH Key Note: 1. The key length is in the range of 256 to 3072 bits. 2.
2. After the key is successfully generated, please save the public key and private key to a TFTP server. Figure 1-20 Save the Generated Key 3. Log on to the switch by the console port, and download the public key file from the TFTP server to the switch, as the following figure shows: Figure 1-21 Download the Public Key Note: 1. The key type should accord with the type of the key file. 2. The SSH key downloading can not be interrupted.
4. After the public key is loaded, please log on to the interface of PuTTY and enter the IP address for login. Figure 1-22 SSH Connection Config 5. Click Browse to load the private key file to SSH client software and click Open.
After successful authentication, please enter the login user name. If you log on to the switch without entering password, it indicates that the key has been successfully loaded. Figure 1-24 Log on the Switch 1.2 CLI Command Modes The CLI is divided into different command modes: User EXEC Mode, Privileged EXEC Mode, Global Configuration Mode, Interface Configuration Mode and VLAN Configuration Mode.
Mode Accessing Path Global Configuration Mode Use the configure command to enter this mode from Privileged EXEC mode. Prompt Logout or Access the next mode Use the exit or the e nd command or press Ctrl+Z to return to Pri vileged EXEC mode. TL-SG3424 (config)# Use the interface gigabitEthernet port or interface range gigabitEthernet port-list command to access interface Configuration mode. Use the vlan vlan-list to access VLAN Configuration mode.
VLAN Configuration Mode: In this mode, users can create a VLAN and add a specified port to the VLAN. 3. Some commands are global, that means they can be performed in all modes: show: Displays all information of switch, for example: statistic information, port information, VLAN information. history: Displays the commands history. 1.3 Security Levels This switch’s security is divided into two levels: User level and Admin level.
Normal Font indicates a constant (several options are enumerated and only one can be selected). For example: switchport type { access | trunk | general } Italic Font indicates a variable (an actual value must be assigned). For example: bridge aging-time aging-time 1.4.2 Special Characters You should pay attentions to the description below if the variable is a character string: These six characters ” < > , \ & cannot be input.
Chapter 2 User Interface enable Description The enable command is used to access Privileged EXEC Mode from User EXEC Mode.
Example Enable the global encryption function: TL-SG3424(config)# service password-encryption enable password Description The enable password command is used to set or change the password for users to access Privileged EXEC Mode from User EXEC Mode. To remove the password, please use no enable password command. This command uses the symmetric encryption. Syntax enable password { [ 0 ] password | 7 encrypted-password } no enable password Parameter 0 —— Specify the encryption type.
Example Set the super password as “admin” and unencrypted to access Privileged EXEC Mode from User EXEC Mode: TL-SG3424(config)#enable password 0 admin enable secret Description The enable secret command is used to set a secret password, which is using an MD5 encryption algorithm, for users to access Privileged EXEC Mode from User EXEC Mode. To return to the default configuration, please use no enable secret command. This command uses the MD5 encryption.
Example Set the secret password as “admin” and unencrypted to access Privileged EXEC Mode from User EXEC Mode. The password will be displayed in the encrypted form. TL-SG3424(config)#enable secret 0 admin disable Description The disable command is used to return to User EXEC Mode from Privileged EXEC Mode.
exit Description The exit command is used to return to the previous Mode from the current Mode. Syntax exit Command Mode Any Configuration Mode Example Return to Global Configuration Mode from Interface Configuration Mode, and then return to Privileged EXEC Mode: TL-SG3424(config-if)# exit TL-SG3424(config)# exit TL-SG3424# end Description The end command is used to return to Privileged EXEC Mode.
Syntax history Command Mode Privileged EXEC Mode and any Configuration Mode Example Show the commands you have entered in the current mode: TL-SG3424 (config)# history 1 history history clear Description The history clear command is used to clear the commands you have entered in the current mode, therefore these commands will not be shown next time you use the history command.
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-SG3424(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-SG3424(config)# interface gigabitEthernet 1/0/3 TL-SG3424(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-SG3424(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-SG3424(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 MAC-based VLAN Commands MAC-based VLAN (Virtual Local Area Network) is the way to classify the VLANs based on MAC Address. A MAC address corresponds to a VLAN ID. The untagged packets and the priority-tagged packets sourced from the MAC address will be tagged with this VLAN ID. mac-vlan mac-address Description The mac-vlan mac-address command is used to create a MAC-based VLAN entry. To delete MAC-based VLAN entry, please use the no mac-vlan mac-address command.
Command Mode Privileged EXEC Mode and Any Configuration Mode Parameter mac-addr —— MAC address, in the format of XX:XX:XX:XX:XX:XX. vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094.
Chapter 5 Protocol-based 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.
protocol-vlan vlan Description The protocol-vlan vlan command is used to create a Protocol-based VLAN. To delete a Protocol-based VLAN, please use no protocol-vlan command. Syntax protocol-vlan vlan vlan-id { template template-idx } 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.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Create Protocol-based VLAN group 2 which is binding with port 3: TL-SG3424(config)# interface gigabitEthernet 1/0/3 TL-SG3424(config-if)# protocol-vlan group 2 show protocol-vlan template Description The show protocol-vlan template command is used to display the information of the Protocol-based VLAN templates.
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-SG3424(config)# voice vlan aging time 1 voice vlan priority Description The voice vlan priority command is used to configure the priority for the Voice VLAN. To restore to the default priority, please use no voice vlan priority command. By default, the priority value is 6.
Syntax voice vlan mac-address mac-addr mask mask [ description descript ] no voice vlan mac-address mac-addr Parameter mac-addr —— The OUI address of the voice device, in the format of XX:XX:XX:XX:XX:XX. mask —— The OUI address mask of the voice device, in the format of XX:XX:XX:XX:XX:XX. descript ——Give a description to the OUI for identification which contains 16 characters at most.
TL-SG3424(config)# interface gigabitEthernet 1/0/3 TL-SG3424(config-if)# switchport voice vlan mode auto switchport voice vlan security Description The switchport voice vlan security command is used to enable the Voice VLAN security feature. To disable the Voice VLAN security feature, please use no switchport voice vlan security command.
show voice vlan oui Description The show voice vlan oui command is used to display the configuration information of Voice VLAN OUI. Syntax show voice vlan oui Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration information of Voice VLAN OUI: TL-SG3424(config)# show voice vlan oui show voice vlan switchport Description The show voice vlan switchport command is used to display the Voice VLAN configuration information of all ports or a specified port.
Chapter 7 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-SG3424(config)# interface range gigabitEthernet 1/0/2-6 TL-SG3424(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: leaveall, 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-SG3424(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 8 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.
Parameter pri —— The system priority, ranging from 0 to 65535. It is 32768 by default. Command Mode Global Configuration Mode Example Configure the LACP system priority as 1024 globally: TL-SG3424(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.
show etherchannel Description The show etherchannel command is used to display the EtherChannel information. Syntax show etherchannel [ channel-group-num ] { detail | summary } Parameter channel-group-num —— The EtherChannel Group number, ranging from 1 to 8. 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.
show lacp Description The show lacp command is used to display the LACP information for a specified EtherChannel Group. Syntax show lacp [ channel-group-num ] { internal | neighbor } Parameter channel-group-num —— The EtherChannel Group number, ranging from 1 to 8. 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 9 User Manage Commands User Manage Commands are used to manage the user’s logging information by Web, Telnet or SSH, so as to protect the settings of the switch from being randomly changed. user name (password) Description The user name command is used to add a new user or modify the existed users’ information. To delete the existed users, please use no user name command. This command uses the symmetric encryption.
User Guidelines 1. If the password you configured here is unencrypted and the global encryption function is enabled in service password-encryption, the password in the configuration file will be displayed in the symmetric encrypted form. 2. If you change the password of the current user in a telnet or console connection, the connection will be cut off and the newly configured password is required for the re-login.
( !$%'()*,-./[]{|} ). By default, it is empty. The password will be saved to the configuration file using the MD5 encrypted algorithm. 5 —— Indicates an MD5 encrypted password with fixed length will follow. encrypted-password —— An MD5 encrypted password with fixed length, which you can copy from another switch’s configuration file. Command Mode Global Configuration Mode User Guidelines 1.
Command Mode Global Configuration Mode Example Enable the access-control of the user whose IP address is 192.168.0.148: TL-SG3424(config)# user access-control ip-based 192.168.0.148 255.255.255.255 user access-control mac-based Description The user access-control mac-based command is used to limit the MAC Address of the users for login. Only the user with this MAC Address you set here is allowed to login. To cancel the user access limit, please use no user access-control command.
Syntax user access-control port-based interface { gigabitEthernet port | range gigabitEthernet port-list } no user access-control Parameter port —— The Ethernet port number. port-list ——The list group of Ethernet ports, in the format of 1/0/1-4. You can appoint 5 ports at most.
Example Configure the maximum number of users’ login as Admin and Guest as 5 and 3: TL-SG3424(config)# user max-num 5 3 user idle-timeout Description The user idle-timeout command is used to configure the timeout time of the switch. To restore to the default timeout time, please use no user idle-timeout command. Syntax user idle-timeout minutes no user idle-timeout Parameter minutes ——The timeout time, ranging from 5 to 30 in minutes. The value is 10 by default.
Parameter linenum —— The number of users allowed to login through console port. Its value is 0 in general as there is only one console port on a switch. startlinenum ——The start serial number of the login user selected to configure the login mode and password, ranging from 0 to 15. 0 means the first login user number, 1 means the second, and the rest can be done in the same manner. endlinenum ——The end serial number of the login user selected to configure the login mode and password, ranging from 0 to 15.
encrypted-password —— A symmetric encrypted password with fixed length, which you can copy from another switch’s configuration file. After the encrypted password is configured, you should use the corresponding unencrypted password if you re-enter this mode.
TL-SG3424(config-line)# login Configure the login of virtual terminal connection 0-5 as login mode: TL-SG3424(config)# line vty 0 5 TL-SG3424(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.
Example Display the information of the current users: TL-SG3424(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 10 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-SG3424(config)# ip source binding host1 192.168.0.
TL-SG3424(config)#ip source binding index 1 hostname tp-link ip dhcp snooping Description The ip dhcp snooping command is used to enable DHCP-Snooping function globally. To disable DHCP-Snooping function globally, please use no ip dhcp snooping command. DHCP Snooping functions to monitor the process of the Host obtaining the IP address from DHCP server, and record the IP address, MAC address, VLAN and the connected Port number of the Host for automatic binding.
discarded. The options are 0/10/20/30/40/50 (packet/second).By default, it is 0 standing for disable. dec-threshold ——The value to specify the minimum transmission rate of the Decline packets to trigger the Decline protection for the specific port. The options are 0/5/10/15/20/25/30 (packet/second).By default, it is 0 standing for disable. dec-rate ——The value to specify the Decline Flow Control.
ip dhcp snooping information strategy Description The ip dhcp snooping information strategy command is used to select the operation for the Option 82 field of the DHCP request packets from the Host. To restore to the default option, please use no ip dhcp snooping information strategy command.
no ip dhcp snooping information remote-id Parameter string ——Enter the sub-option Remote ID, which contains 32 characters at most.
ip dhcp snooping trust Description The ip dhcp snooping trust command is used to configure a port to be a Trusted Port. Only the Trusted Port can receive the DHCP packets from DHCP servers. To turn the port back to a distrusted port, please use no ip dhcp snooping trust command.
Example Enable the MAC Verify feature for port 2: TL-SG3424(config)# interface gigabitEthernet 1/0/2 TL-SG3424(config-if)# ip dhcp snooping mac-verify ip dhcp snooping limit rate Description The ip dhcp snooping limit rate command is used to enable the Flow Control feature for the DHCP packets. The excessive DHCP packets will be discarded. To restore to the default configuration, please use no ip dhcp snooping limit rate command.
Syntax ip dhcp snooping decline no ip dhcp snooping decline Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the Decline Protect feature of port 2: TL-SG3424(config)# interface gigabitEthernet 1/0/2 TL-SG3424(config-if)# ip dhcp snooping decline show ip source binding Description The show ip source binding command is used to display the IP-MAC-VID-PORT binding table.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the running status of DHCP-Snooping: TL-SG3424# show ip dhcp snooping show ip dhcp snooping information Description The show ip dhcp snooping information command is used to display the Option 82 configuration status of DHCP-Snooping.
Example Display the DHCP-Snooping configuration of port 2: TL-SG3424# show ip dhcp snooping interface gigabitEthernet 1/0/2 71
Chapter 11 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-SG3424(config)# interface range gigabitEthernet 1/0/2-5 TL-SG3424(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-SG3424(config)# interface gigabitEthernet 1/0/5 TL-SG3424(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.
Example Display the configuration of all the ports: TL-SG3424(config)# show ip arp inspection interface Display the configuration of port 2: TL-SG3424(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 12 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 land —— Land attack. 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. blat —— Blat attack. ping-flood —— Ping flooding attack. With the ping flood attack enabled, the switch will limit automatically the forwarding speed of ping packets to 512K when attacked by ping flood. syn-flood —— SYN/SYN-ACK flooding attack.
Chapter 13 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-SG3424(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-SG3424(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-SG3424(config)# interface gigabitEthernet 1/0/1 TL-SG3424(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-SG3424(config)# interface gigabitEthernet 1/0/1 TL-SG3424(config-if)# dot1x port-method port-based radius Description The radius command is used to configure the parameters of radius.
at most. The question marks and spaces are not allowed. “encrypted-password” is a symmetric encrypted password with a fixed length, which you can copy from another switch’s configuration file. The password or encrypted-password you configured here will be displayed in the encrypted form. acct-key { [ 0 ] password | 7 encrypted-password } —— 0 and 7 are the encryption type. 0 indicates that an unencrypted password will follow. 7 indicates that a symmetric encrypted password with a fixed length will follow.
show dot1x global Description The show dot1x global command is used to display the global configuration of 801.X. Syntax show dot1x global Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of 801.X globally: TL-SG3424(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.
show radius accounting Description The show radius accounting command is used to display the configuration of the accounting server. Syntax show radius accounting Command Mode Privileged EXEC Mode and Any Configuration Modes Example Display the configuration of the accounting server: TL-SG3424(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 14 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 store the log messages in a file in the flash on the switch. To disable the log file flash function, please use no logging file flash command. The log file flash indicates the flash sector for saving system log. The information in the log file of the flash 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 Specify the log file synchronization frequency as 10 hours: TL-SG3424(config)#logging file flash frequency periodic10 logging file flash level Description The logging file flash level command is used to specify the system log message severity level. Messages will a severity level equal to or higher than this value will be stored to the flash. To restore to the default level, please use no logging file flash level command.
Syntax clear logging [ buffer | flash ] Parameter buffer | flash —The output channels: buffer and flash. Clear the information of the two channels, by default. Command Mode Global Configuration Mode Example Clear the information in the log file: TL-SG3424(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.
Example Set the IP address as 192.168.0.148, the level 5: TL-SG3424(config)# logging host index 2 192.168.0.148 5 show logging local-config Description The show logging local-config command is used to display the configuration of the Local Log including the log buffer and the log file.
show logging buffer Description The show logging buffer command is used to display the log information in the log buffer according to the severity level. Syntax show logging buffer [ level level ] Parameter level —— Severity level. There are 8 severity levels marked with values 0-7. The information of levels with priority not lower than the select level will display. Display all the log information in the log buffer by default.
Example Display the log information with the level marked 0~3 in the log file: TL-SG3424(config)# show logging flash level 3 95
Chapter 15 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-SG3424(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 120 in seconds.
Parameter num —— The maximum number of the connections to the SSH server. It ranges from 1 to 5. By default, this value is 5. Command Mode Global Configuration Mode Example Specify the maximum number of the connections to the SSH server as 3: TL-SG3424(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.
show ip ssh Description The show ip ssh command is used to display the global configuration of SSH.
Chapter 16 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. Both IPv4 and IPv6 addresses are supported, for example 192.168.0.1 or fe80::1234. Command Mode Global Configuration Mode Example Download an SSL Certificate named ssl-cert from TFTP server with the IP address of 192.168.0.
Command Mode Global Configuration Mode Example Download an SSL key named ssl-key from TFTP server with the IP address of 192.168.0.146: TL-SG3424(config)# ip http secure-server download key ssl-key ip-address 192.168.0.
Chapter 17 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.
vid —— The corresponding VLAN ID of the MAC address. It ranges from 1 to 4094. 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-SG3424(config)# mac address-table filtering 00:1e:4b:04:01:5d vid 1 mac address-table max-mac-count Description The mac address-table max-mac-count command is used to configure the Port Security.
influence of the aging time and can only be deleted manually too. However, the learned entries will be saved even the switch is rebooted. status —— Enable or disable the Port Security function for a specified port. By default, this function is disabled.
show mac address-table aging-time Description The show mac address-table aging-time command is used to display the Aging Time of the MAC address.
Display the security configuration of port 1: TL-SG3424(config)# show mac address-table max-mac-count interface gigabitEthernet 1/0/1 show mac address-table interface gigabitEthernet Description The show mac address-table interface gigabitEthernet command is used to display the address configuration of the specified port. Syntax show mac address-table interface gigabitEthernet port Parameter port —— The Ethernet port number.
show mac address-table address Description The show mac address-table address command is used to display the information of the specified MAC address. Syntax show mac address-table address mac-addr Parameter mac-addr ——The specified MAC address.
Chapter 18 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.
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-SG3424(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.
system-time dst date Description The system-time dst date command is used to specify the DST configuration in Date mode. This configuration is one-off in use. By default, the current year is used as the starting time. DST time periods should be within 12 months over one/two year.
system-time dst recurring Description The system-time dst recurring command is used to specify the DST configuration in recurring mode. This configuration is recurring in use. The time period is restricted to be within one year. Syntax system-time dst recurring { sweek } { sday } { smonth } { stime } { eweek } { eday } { emonth } { etime } [ offset ] Parameter Week to start, with the options: first, second, third, fourth, last.
hostname Description The hostname command is used to configure the system name. To clear the system name information, please use no hostname command. Syntax hostname hostname no hostname Parameter hostname —— System Name. The length of the name ranges from 1 to 32 characters. By default, it is the device name, for example “TL-SG3424”.
Example Configure the system location as SHENZHEN: TL-SG3424(config)# location SHENSHEN contact-info Description The contact-info command is used to configure the system contact information. To clear the system contact information, please use no contact-info command. Syntax contact-info contact_info no contact-info Parameter contact_info —— Contact Information. It consists of 32 characters at most. It is “www.tp-link.com” by default.
Command Mode Global Configuration Mode Example Set the VLAN6 as management VLAN: TL-SG3424(config)# ip management-vlan 6 ip address Description The ip address command is used to configure the system IP Address, Subnet Mask and Default Gateway. To restore to the factory defaults, please use no ip address command. This command should be configured in the Interface Configuration Mode of the management VLAN.
ip address-alloc dhcp Description The ip address-alloc dhcp command is used to enable the DHCP Client function. When this function is enabled, the switch will try to obtain IP from DHCP server. This command should be configured in the Interface Configuration Mode of the management VLAN.
reset Description The reset command is used to reset the switch’s software. After resetting, all configuration of the switch will restore to the factory defaults and your current settings will be lost. Syntax reset Command Mode Privileged EXEC Mode Example Reset the software of the switch: TL-SG3424# reset reboot Description The reboot command is used to reboot the switch. To avoid damage, please don’t turn off the device while rebooting.
Syntax copy running-config startup-config Command Mode Privileged EXEC Mode Example Save current settings: TL-SG3424# 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. Syntax copy startup-config tftp ip-address ip-addr filename name Parameter ip-addr —— IP Address of the TFTP server. Both IPv4 and IPv6 addresses are supported, for example 192.168.0.1 or fe80::1234.
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. Both IPv4 and IPv6 addresses are supported, for example 192.168.0.1 or fe80::1234. name —— Specify the name for the configuration file which would be downloaded.
name —— Specify the name for the firmware file. Command Mode Privileged EXEC Mode Example Upgrade the switch system file named as firmware.bin via the TFTP server with the IP address 192.168.0.148: TL-SG3424# firmware upgrade ip-address 192.168.0.148 filename firmware.bin Upgrade the switch system file named as firmware.bin via the TFTP server with the IP address fe80::1234 TL-SG3424# firmware upgrade ip-address fe80::1234 filename firmware.
Example To test the connectivity between the switch and the network device with the IP 192.168.0.131, please specify the count (-l) as 512 bytes and count (-i) as 1000 milliseconds. If there is not any response after 8 times’ Ping test, the connection between the switch and the network device is failed to establish: TL-SG3424# ping 192.168.0.
TL-SG3424# tracert 192.168.0.131 20 Test the connectivity between the switch and the network device with the IP fe80::1234. 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-SG3424# tracert fe80::1234 20 show system-time Description The show system-time command is used to display the current time system and its source.
show system-time ntp Description The show system-time ntp command is used to display the NTP mode configuration information.
Syntax show running-config [ interface gigabitEthernet port ] Parameter port —— The Gigabit Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the system current operating configuration: TL-SG3424#show running-config show cable-diagnostics interface Description The show cable-diagnostics interface command is used to display the cable diagnostics of the connected Ethernet Port.
Chapter 19 IPv6 Address Configuration Commands The IPv6 address configuration commands are provided in the Interface VLAN Mode. Type enable →configure→interface vlan {vlan-id} to enter the Interface Configuration Mode of the management VLAN. By default the management VLAN is VLAN1. You can use the command ip management-vlan {vlan-id} in the Global Configuration Mode to configure the management VLAN. ipv6 enable Description This command is used to enable the IPv6 function globally.
Syntax ipv6 address autoconfig Configuration Mode Interface Configuration Mode (interface vlan) Example Enable the automatic configuration of the ipv6 link-local address when the management VLAN of the switch is VLAN1: TL-SG3424(config)# interface vlan 1 TL-SG3424(config-if)# ipv6 address autoconfig ipv6 address link-local Description The ipv6 address link-local command is used to configure the system ipv6 link-local address manually.
server. To delete the allocated IP from DHCPv6 server and disable the DHCPv6 Client function, please use no ipv6 address dhcp command.
ipv6 address eui-64 Description This command is used to manually configure a global IPv6 address with an extended unique identifier (EUI) in the low-order 64 bits on the interface. Specify only the network prefix. The last 64 bits are automatically computed from the switch MAC address. To remove an EUI-64 IPv6 address from the interface, please use the no ipv6 address eui-64 command.
Configuration Mode Interface Configuration Mode (interface vlan) Example Configure the global address 3001::1/64 on the interface: TL-SG3424(config)# interface vlan 1 TL-SG3424(config-if)# ipv6 address 3001::1/64 show ipv6 interface vlan Description This command is used to display the configured ipv6 information of the management vlan,interface, including ipv6 function status, link-local address and global address, ipv6 multicast groups etc.
Chapter 20 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.
Command Mode Global Configuration Mode 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.
shutdown Description The shutdown command is used to disable an Ethernet port. To enable this port again, please use no shutdown command. Syntax shutdown no shutdown Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Disable port 3: TL-SG3424(config)# interface gigabitEthernet 1/0/3 TL-SG3424(config-if)# shutdown flow-control Description The flow-control command is used to enable the flow-control function for a port.
media-type Note: This command does not apply to TL-SG3210. Description The media-type command is used to configure the media type of Combo port. For a Combo port, the media type should be configured before you set its speed and mode. Syntax media-type { rj45 | sfp } Parameter rj45 | sfp —— Media type.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Configure the Duplex Mode as full-duplex for port 3: TL-SG3424(config)# interface gigabitEthernet 1/0/3 TL-SG3424(config-if)# duplex full speed Description The speed command is used to configure the Speed Mode for an Ethernet port. To return to the default configuration, please use no speed command.
broadcast in the network. If the transmission rate of the broadcast packets exceeds the set bandwidth, the packets will be automatically discarded to avoid network broadcast storm. Syntax storm-control broadcast [ rate rate ] no storm-control broadcast Parameter rate —— Specify the bandwidth for receiving broadcast packets on the port. The packet traffic exceeding the bandwidth will be discarded. The value of it can be 128k | 256k | 512k | 1m | 2m | 4m | 5m | 10m | 20m | 40m | 50m in bps.
Parameter rate —— Select the bandwidth for receiving multicast packets on the port. The packet traffic exceeding the bandwidth will be discarded. The value of it can be 128k | 256k | 512k | 1m | 2m | 4m | 5m | 10m | 20m | 40m | 50m in bps. By default, the value is “128K”.
TL-SG3424(config)# interface gigabitEthernet 1/0/5 TL-SG3424(config-if)# storm-control unicast bandwidth Description The bandwidth command is used to configure the bandwidth limit for an Ethernet port. To disable the bandwidth limit, please use no bandwidth command. Syntax bandwidth {[ ingress ingress-rate ] [ egress egress-rate ]} no bandwidth { all | ingress | egress } Parameter ingress-rate —— Specify the bandwidth for receiving packets. Range:1-100000 for the megaport, 1-1000000 for the gigaport.
clear counters Description The clear counters command is used to clear the statistic information of all the Ethernet ports. Syntax clear counters Command Mode Global Configuration Mode Example Clear the statistic information of all ports TL-SG3424(config)# clear counters show interface status Description The show interface status command is used to display the connective-status of an Ethernet port. Syntax show interface [ gigabitEthernet port ] status Parameter port —— The Ethernet port number.
show interface counters Description The show interface counters command is used to display the statistic information of all ports or an Ethernet port. Syntax show interface [ gigabitEthernet port ] counters Parameter port —— The Ethernet port number.
Display the description of port 2: TL-SG3424(config)# show interface gigabitEthernet 1/0/2 description show interface flowcontrol Description The show interface flowcontrol command is used to display the flow-control information of an Ethernet port. Syntax show interface [ gigabitEthernet port ] flowcontrol Parameter port —— The Ethernet port number.
Example Display the configurations of all Ethernet ports: TL-SG3424(config)# show interface configuration Display the configurations of port 2: TL-SG3424(config)# show interface gigabitEthernet 1/0/2 configuration show storm-control Description The show storm-control command is used to display the storm-control information of Ethernet ports. Syntax show storm-control [ interface { gigabitEthernet port | range gigabitEthernet port-list }] Parameter port —— The Ethernet port number.
Parameter port —— The Ethernet port number. port-list —— The list of the Ethernet ports.
Chapter 21 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.
qos dscp Description The qos dscp command is used to enable the mapping relation between DSCP Priority and CoS value. To disable the mapping relation, please use no qos dscp command. Syntax qos dscp no qos dscp Command Mode Global Configuration Mode User Guidelines DSCP (DiffServ Code Point) is a new definition to IP ToS field given by IEEE. DSCP priorities are mapped to the corresponding 802.1p priorities.
Parameter tag/cos-id —— The 8 priority levels defined by IEEE 802.1P or the priority level the packets with tag are mapped to, which ranges from CoS 0 to CoS 7. tc-id —— The egress queue the packets with tag are mapped to. It ranges from 0 to 3, which represents TC0, TC1, TC2, TC3 respectively. Command Mode Global Configuration Mode User Guidelines 1. By default, the mapping relation between tag/cos and the egress queue is: 0-T C1, 1-T C0, 2-T C0, 3-T C1, 4-T C2, 5-T C2, 6-T C3, 7-T C3. 2.
instance, 1,4-7,11 indicates choosing 1,4,5,6,7,11. The DSCP value ranges from 0 to 63. cos-id —— The priority level the packets with tag are mapped to, which ranges from CoS 0 to CoS 7. Command Mode Global Configuration Mode User Guidelines By default, the mapping relation between tag and the egress queue is: (0-7)-CoS 0, (8-15)-CoS 1, (16-23)-CoS 2, (24-31)-CoS 3, (32-39)-CoS 4, (40-47)-CoS 5, (48-55)-CoS 6, (56-63)-CoS 7.
sp+wrr —— Strict-Priority + Weight Round Robin Mode. In this mode, the switch provides two scheduling groups, SP group and WRR group. Queues in SP group and WRR group are scheduled strictly based on Strict-Priority mode while the queues inside WRR group follow the WRR mode. In SP + WRR mode, TC3 is the SP group; TC0, TC1 and TC2 belong to the WRR group and the weight value ratio of TC0, TC1 and TC2 is 1:2:4.
Display the configuration of QoS for ports 1-4: TL-SG3424# 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.
show qos queue mode 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-SG3424# 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 22 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.
Example Create monitor session 1, then configure port 4, 5, 7 as monitored port and enable ingress monitoring: TL-SG3424(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-SG3424(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.
Chapter 23 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.
show port isolation interface Description The show port isolation interface command is used to display the forward port list of a port. 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 24 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.
Command Mode Global Configuration Mode Example Specify the interval-time as 50 seconds: TL-SG3424(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.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the loopback detection function of ports 1-3: TL-SG3424(config)# interface range gigabitEthernet 1/0/1-3 TL-SG3424(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.
loopback-detection recover Description The loopback-detection recover command is used to remove the block status of selected ports, thus recovering the blocked ports to normal status.
show loopback-detection interface Description The show loopback-detection interface command is used to display the configuration of loopback detection function and the status of the specified Ethernet port. Syntax show loopback-detection interface [ gigabitEthernet port ] Parameter port —— The Ethernet port number.
Chapter 25 PoE Commands Note: Only TL-SG3424P supports PoE function. PoE (Power over Ethernet) technology describes a system to transmit electrical power along with data to remote devices over standard twisted-pair cable in an Ethernet network. It is especially useful for supplying power to IP telephones, wireless LAN access points, cameras and so on. power inline consumption (global) Description The power inline consumption command is used to configure the max power the PoE switch can supply globally.
Parameter deny-next-port —— When the supply power exceeds the power limit, the PD linked to the next port will be disconnected. deny-low priority —— When the supply power exceeds the power limit, the PD linked to the port with lower priority will be disconnected.
The value is in the unit of 0.1 watt. For instance, if you want to configure the max power as 5w, you should enter 50. “Auto” indicates the value is assigned automatically by the PoE switch. “Class1” represents 4w. “Class2” represents 7w. “Class3” represents 15.4w. “Class4” represents 30w.
TL-SG3424P(config)# power time-range tRange1 power holiday Description The power holiday command is used to create PoE holiday for the switch. To delete the corresponding PoE holiday configuration, please use no power holiday command. Syntax power holiday name start-date start-date end-date end-date no power holiday name Parameter name —— The PoE holiday name, ranging from 1 to 16 characters. start-date —— The start date of the PoE holiday, in the format of MM/DD, for instance, 05/01.
Syntax absolute start start-date end end-date no absolute Parameter start-date —— The start date in Absoluteness Mode, in the format of MM/DD/YYYY. end-date —— The end date in Absoluteness Mode, in the format of MM/DD/YYYY. Command Mode Power Time-range Create Configuration Mode Example Create an absolute mode time-range for the PoE of the switch and specify the date extending from May 5, 2012 through Oct.
time-slice —— Create time-slice, in the format of HH:MM-HH:MM. Command Mode Power Time-range Create Configuration Mode Example Configure the PoE time-range named “tRange2” as a periodic time-range and specify the date and time as 8:30 to 12:00 on weekends: TL-SG3424P(config)# power time-range tRange2 TL-SG3424P(config-pwr-time-range)# periodic week-date off-day time-slice1 08:30-12:00 holiday Description The holiday command is used to create holiday mode time-range for the PoE time-range of the switch.
power inline consumption(interface) Description The power inline consumption command is used to configure the power limit the corresponding port can supply. Syntax power inline consumption { power-limit | auto | class1 | class2 | class3 | class4 } Parameter power-limit —— The max power the port in the profile can supply, with five options: “power-limit”, “auto”, ”class1”, “class2”, “class3” and “class4”. “Power-limit” indicates you can manually enter a value ranging from 1 to 300.
Parameter priority —— The PoE priority of the port. The priority levels include “high”, “middle” and “low” in descending order. When the supply power exceeds the system power limit, the PD linked to the port with lower priority will be disconnected. By default, the priority level is “low”.
power inline profile Description The power inline profile command is used to bind a PoE profile to the corresponding port. To cancel the bind relation, please use no power inline profile command. Syntax power inline profile name no power inline profile Parameter name —— The name of the PoE profile to be bound to the port. If the name being assigned contains spaces then put it inside double quotes.
Command Mode Interface Configuration Mode Example Bind the PoE time-range named “tRange2" to port 2: TL-SG3424P(config)# interface gigabitEthernet 1/0/2 TL-SG3424P(config-if)# power inline time-range tRange2 show power inline Description The show power inline command is used to display the global PoE information of the system.
Example Display the PoE configuration of all ports: TL-SG3424P# show power inline configuration interface show power inline information interface Description The show power inline information command is used to display the PoE information of the certain port. Syntax show power inline information interface [ gigabitEthernet port ] Parameter port —— The Ethernet port number.
show power holiday Description The show power holiday command is used to display the defined PoE holiday. Syntax show power holiday Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the defined PoE holiday: TL-SG3424P# show power holiday show power time-range Description The show power time-range command is used to display the configuration of PoE time-range.
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.
Syntax absolute start start-date end end-date no absolute 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 tSeg1 with time from May 5, 2012 to Oct.
Command Mode Time-range Create Configuration Mode Example Configure the time-range tSeg1 with time from 8:30 to 12:00 at weekend: TL-SG3424(config)# time-range tSeg1 TL-SG3424(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.
Parameter name —— The holiday name, ranging from 1 to 16 characters. start-date —— The start date of the holiday, in the format of MM/DD, for instance, 05/01. end-date —— The end date of the holiday, in the format of MM/DD, for instance, 05/03.
mac access-list Description The mac access-list command is used to create MAC ACL. To set the detailed configurations for a specified MAC ACL, please use mac access-list command to access Mac Access-list Configuration Mode. To delete the MAC ACL, please use no mac access-list. Syntax mac access-list access-list-num no mac access-list access-list-num Parameter access-list-num —— ACL ID, ranging from 0 to 99.
rule-id —— The rule ID. deny —— The operation to discard packets. permit ——The operation to forward packets. It is the default value. source-ip —— The source IP address contained in the rule. source-ip-mask —— The source IP address mask. It is required if you typed the source IP address. destination-ip —— The destination IP address contained in the rule. destination-ip-mask —— The destination IP address mask. It is required if you typed the destination IP address.
Parameter acl-id——The desired Extended-IP ACL for configuration. rule-id —— The rule ID. deny —— The operation to discard packets. permit ——The operation to forward packets. It is the default value. source-ip —— The source IP address contained in the rule. source-ip-mask —— The source IP address mask. It is required if you typed the source IP address. destination-ip —— The destination IP address contained in the rule. destination-ip-mask —— The destination IP address mask.
rule Description The rule command is used to configure MAC ACL rule. To delete the corresponding rule, please use no rule command. Syntax rule rule-id { deny | permit } [[ smac source-mac ] smask source-mac-mask ] [[ dmac destination-mac ] dmask destination-mac-mask ] [ vid vlan-id ] [ type ethernet-type ] [ pri user-pri ] [ tseg time-segment ] no rule rule-id Parameter rule-id —— The rule ID. deny —— The operation to discard packets. permit ——The operation to forward packets. It is the default value.
to take effect is tSeg1, and the packets match this rule will be forwarded by the switch: TL-SG3424(config)# mac access-list 20 TL-SG3424(config-mac-acl)# rule 10 permit smac 00:01:3F:48:16:23 smask 11:11:11:11:11:00 vid 2 pri 5 tseg tSeg1 access-list policy name Description The access-list policy name command is used to add Policy. To delete the corresponding Policy, please use no access-list policy name command.
Syntax access-list policy action policy-name acl-id no access-list policy action policy-name acl-id Parameter policy-name —— The Policy Name, ranging from 1 to 16 characters. acl-id —— The ID of the ACL to which the above policy is applied.
redirect vlan Description The redirect vlan command is used to configure Direction function of policy action for specified VLAN. Syntax redirect vlan vlan-id Parameter vlan-id —— The VLAN ID of Redirect. The data packets matching the corresponding ACL will be forwarded in the specific VLAN. The VLAN ID ranges from 1 to 4094. Command Mode Action Configuration Mode Example Edit the actions for policy1.
Example Edit the actions for policy1. For the data packets matching ACL 120 in the policy, if the rate beyond 1000kbps, they will be discarded by the switch: TL-SG3424(config)# access-list policy action policy1 120 TL-SG3424(config-action)# s-condition rate 1000 osd discard s-mirror Description The s-mirror command is used to configure Stream Mirror function of policy action to the specified port. Syntax s-mirror interface gigabitEthernet port Parameter port —— The Mirror Port number of Stream Mirror.
Parameter dscp —— DSCP of QoS Remark. Specify the DSCP region for the data packets matching the corresponding ACL. DSCP ranges from 0 to 63. By default, it is not limited. pri —— Local Priority of QoS Remark. Specify the local priority for the data packets matching the corresponding ACL. Local Priority ranges from 0 to 3. Command Mode Action Configuration Mode Example Edit the actions for policy1.
access-list bind(vlan) Description The access-list bind command is used to bind a policy to a VLAN. 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.
show holiday Description The show holiday command is used to display the defined holiday. Syntax show holiday Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the defined holiday: TL-SG3424(config)# show holiday show access-list Description The show access-list command is used to display configuration of ACL. Syntax show access-list acl-id Parameter acl-id —— The ID of the ACL selected to display the configuration.
Syntax show access-list policy name Parameter name —— The Policy Name desired to show. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the information of a policy named policy1: TL-SG3424(config)# show access-list policy policy1 show access-list bind Description The show access-list bind command is used to display the configuration of Policy bind.
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.
Example Enable the STP function for port 2: TL-SG3424(config)# interface gigabitEthernet 1/0/2 TL-SG3424(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.
auto | open | close —— The P2P link status, with auto, open and close options. By default, the option is auto. If the two ports in the P2P link are root port or designated port, they can transit their states to forwarding rapidly to reduce the unnecessary forward delay.
spanning-tree mst configuration Description The spanning-tree mst configuration command is used to access MST Configuration Mode from Global Configuration Mode, as to configure the VLAN-Instance mapping, region name and revision level. To return to the default configuration of the corresponding Instance, please use no spanning-tree mst configuration command.
Example Map the VLANs 1-100 to Instance 1: TL-SG3424(config)# spanning-tree mst configuration TL-SG3424(config-mst)# instance 1 vlan 1-100 Disable Instance 1, namely remove all the mapping VLANs 1-100: TL- SG3424(config)# spanning-tree mst configuration TL- SG3424(config-mst)# no instance 1 Remove VLANs 1-50 in mapping VLANs 1-100 for Instance 1: TL-SG3424(config)# spanning-tree mst configuration TL-SG3424(config-mst)# no instance 1 vlan 1-50 name Description The name command is used to configure the regio
Syntax revision revision Parameters revision —— The revision level for MST region identification, ranging from 0 to 65535. Command Mode MST Configuration Mode Example Configure the revision level of MST as 100: TL-SG3424(config)# spanning-tree mst configuration TL-SG3424(config-mst)# revison 100 spanning-tree mst instance Description The spanning-tree mst instance command is used to configure the priority of MST instance.
spanning-tree mst Description The spanning-tree mst command is used to configure MST Instance Port. To return to the default configuration of the corresponding Instance Port, please use no spanning-tree mst command. A port can play different roles in different spanning tree instance. You can use this command to configure the parameters of the ports in different instance IDs as well as view status of the ports in the specified instance.
Syntax spanning-tree priority pri no spanning-tree priority Parameter pri —— Bridge priority, ranging from 0 to 61440. It is 32768 by default. Command Mode Global Configuration Mode Example Configure the bridge priority as 4096: TL-SG3424(config)# spanning-tree priority 4096 spanning-tree tc-defend Description The spanning-tree tc-defend command is used to configure the TC Protect of Spanning Tree globally. To return to the default configuration, please use no spanning-tree tc-defend command.
Example Configure TC Threshold as 30 packets and TC Protect Cycle as 10 seconds: TL-SG3424(config)# spanning-tree tc-defend threshold 30 period 10 spanning-tree timer Description The spanning-tree timer command is used to configure forward-time, hello-time and max-age of Spanning Tree. To return to the default configurations, please use no spanning-tree timer command.
spanning-tree hold-count Description The spanning-tree hold-count command is used to configure the maximum number of BPDU packets transmitted per Hello Time interval. To return to the default configurations, please use no spanning-tree hold-count command. Syntax spanning-tree hold-count value no spanning-tree hold-count Parameter value —— The maximum number of BPDU packets transmitted per Hello Time interval, ranging from 1 to 20 in pps. By default, it is 5.
Command Mode Global Configuration Mode Example Configure the max-hops of STP as 30: TL-SG3424(config)# spanning-tree max-hops 30 spanning-tree bpdufilter Description The spanning-tree bpdufilter command is used to enable the BPDU filter function for a port. With the function enabled, the port can be prevented from receiving and sending any BPDU packets. To disable the BPDU filter function, please use no spanning-tree bpdufilter command.
Syntax spanning-tree bpduguard no spanning-tree bpduguard Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the BPDU protect function for port 2: TL-SG3424(config)# interface gigabitEthernet 2 TL-SG3424(config-if)# spanning-tree bpduguard spanning-tree guard loop Description The spanning-tree guard loop command is used to enable the Loop Protect function for a port.
spanning-tree guard root Description The spanning-tree guard root command is used to enable the Root Protect function for a port. With the Root Protect function enabled, the root bridge will set itself automatically as ERROR-PORT when receiving BPDU packets with higher priority, in order to maintain the role of root ridge. To disable the Root Protect function, please use no spanning-tree guard root command.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Enable the TC Protect of Spanning Tree for port 2: TL-SG3424(config)# interface gigabitEthernet 1/0/2 TL-SG3424(config-if)# spanning-tree guard tc spanning-tree mcheck Description The spanning-tree mcheck command is used to enable MCheck.
Example Display the active information of spanning-tree: TL-SG3424(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-SG3424(config)# show spanning-tree interface Display the spanning-tree information of port 2: TL-SG3424(config)# show spanning-tree interface gigabitEthernet 1/0/2 Display the spanning-tree mode information of port 2: TL-SG3424(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 Snooping Commands IGMP Snooping (Internet Group Management Protocol Snooping) is a multicast control mechanism running on Layer 2 switch. It can effectively prevent multicast groups being broadcasted in the IPv4 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.
Example Enable IGMP Snooping function of port 3: TL-SG3424(config)# interface gigabitEthernet 1/0/3 TL-SG3424(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.
Command Mode Global Configuration Mode Example Specify the operation to process unknown multicast as discard: TL-SG3424(config)# ip igmp snooping drop-unknown ip igmp snooping vlan-config Description The ip igmp snooping vlan-config command is used to enable VLAN IGMP Snooping function or to modify IGMP Snooping parameters, and to create static multicast IP entry. To disable the VLAN IGMP Snooping function, please use no ip igmp snooping vlan-config command.
vlan-id —— The VLAN ID of the multicast IP, ranging from 1 to 4094. ip —— The static multicast IP address. port-list —— The list of Ethernet ports.
port any more. Router Port Time ranges from 60 to 600 in seconds. By default, it is 300. member-time —— Member Port Time. Within this time, if the switch does not receive IGMP report message from the member port, it will consider this port is not a member port any more. Member Port Time ranges from 60 to 600 in seconds. By default, it is 260. 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.
no ip igmp snooping filter addr-id addr-id list Parameter addr-id list —— The filtering address ID to be bound.
ip igmp snooping filter(interface) Description The ip igmp snooping filter command is used to configure Port Filter. To return to the default configuration, please use no igmp snooping filter command. When the switch receives IGMP report message, it examines the multicast filtering IP ID configured on the access port to determine if the port can join the multicast group. If the multicast IP is not filtered, the switch will add the port to the forward port list of the multicast group.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Specify the maximum number of multicast groups for ports 2-5 to join in as 10: TL-SG3424(config)# interface range gigabitEthernet 1/0/2-5 TL-SG3424(config-if-range)# ip igmp snooping filter maxgroup 10 ip igmp snooping filter mode Description The ip igmp snooping filter mode command is used to configure the Action mode for the desired port.
Syntax show ip igmp snooping Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the global configuration of IGMP: TL-SG3424# show ip igmp snooping show ip igmp snooping interface Description The show ip igmp snooping interface command is used to display the port configuration of IGMP snooping. Syntax show ip igmp snooping interface gigabitEthernet [ port | port-list ] { basic-config | filter | packet-stat } Parameter port —— The Ethernet port number.
Display the IGMP packet statistics of ports 1-4: TL-SG3424# show ip igmp snooping interface gigabitEthernet 1/0/1-4 packet-stat show ip igmp snooping vlan Description The show ip igmp snooping vlan command is used to display the VLAN configuration of IGMP snooping. Syntax show ip igmp snooping vlan [ vlan-id ] Parameter vlan-id ——The VLAN ID selected to display.
show ip igmp snooping groups Description The show ip igmp snooping groups command is used to display the information of all IGMP snooping groups. It can be extended to some other commands to display the dynamic and static multicast information of a selected VLAN. Syntax show ip igmp snooping groups [ vlan vlan-id ] [ count | dynamic | dynamic count | static | static count ] Parameter vlan-id ——The VLAN ID selected to display the information of all multicast items.
Display the count of dynamic multicast entries of VLAN 5 TL-SG3424(config)#show ip igmp snooping groups vlan 5 dynamic count Display the count of static multicast entries of VLAN 5 TL-SG3424(config)#show ip igmp snooping groups vlan 5 static count show ip igmp snooping filter Description The show ip igmp snooping filter command is used to display the Multicast Filter Address table.
Chapter 29 MLD Snooping Commands MLD Snooping (Multicast Listener Discovery Snooping) is a multicast control mechanism running on Layer 2 switch. It can effectively prevent multicast groups being broadcasted in the IPv6 network. ipv6 mld snooping Description The ipv6 mld snooping command is used to enable MLD Snooping function globally. If this function is disabled, all related MLD Snooping function would not work. To disable this function, please use no ipv6 mld snooping command.
Example Specify MLD Snooping router port aging time as 100 seconds globally: TL-SG3424(config)# ipv6 mld snooping router-aging-time 100 ipv6 mld snooping member-aging-time Description The ipv6 mld snooping member-aging-time command is used to specify member port aging time globally. The default aging time is 260 seconds. To restore the default timer, please use no ipv6 mld snooping member-aging-time command.
ipv6 mld snooping unknown-filter Description The ipv6 mld snooping unknown-filter command is used to enable the unknown multicast packets filter function. To disable this function, please use no ipv6 mld snooping unknown-filter command. By default, it is disabled.
ipv6 mld snooping last-listener query-count Description The ipv6 mld snooping last-listener query-count command is used to specify the numbers of Specific Query Message to be sent. The default value is 2. To restore the default number, please use no ipv6 mld snooping last-listener query-count command. Syntax ipv6 mld snooping last-listener query-count num no ipv6 mld snooping last-listener query-count Parameter num —— Specify the numbers of Specific Query Message to be sent, ranging from 1 to 7.
ipv6 mld snooping multicast-vlan vlan-id Description The ipv6 mld snooping multicast-vlan vlan-id command is used to specify the multicast VLAN ID. The default multicast VLAN is VLAN1. To restore the default VLAN, please use no ipv6 mld snooping multicast-vlan vlan-id command. Syntax ipv6 mld snooping multicast-vlan vlan-id vid no ipv6 mld snooping multicast-vlan vlan-id Parameter vid —— The specified IEEE 802.1Q VLAN ID, ranging from 1 to 4094.
ipv6 mld snooping vlan router-aging-time Description The ipv6 mld snooping vlan router-aging-time command is used to specify router port aging time for a specified VLAN. If this time is set to 0, then the global router port aging time will be used. The default time is 0. To restore the default timer, please use no ipv6 mld snooping vlan router-aging-time command.
Example Specify the member port aging time as 100 seconds in VLAN 2: TL-SG3424(config)# ipv6 mld snooping vlan 2 member-aging-time 100 ipv6 mld snooping vlan immediate-leave Description The ipv6 mld snooping vlan immediate-leave command is used to enable the immediate leave function on a specified VLAN. To disable this funciton, please use no ipv6 mld snooping vlan immediate-leave command. By default, it is disabled.
Command Mode Global Configuration Mode Example Configure the gigabitEthernet 1/0/2 as static router port in VLAN 2: TL-SG3424(config)# ipv6 mld snooping vlan 2 mrouter interface gigabitEthernet 1/0/2 ipv6 mld snooping vlan static Description The ipv6 mld snooping vlan static command is used to configure the static multicast groups. To disable the static multicast group, please use no ipv6 mld snooping vlan static command.
Syntax ipv6 mld snooping querier vlan vlan-id no ipv6 mld snooping querier vlan vlan-id Parameter vlan-id —— The VLAN that enables the MLD querier function, ranging from 1 to 4094. Command Mode Global Configuration Mode Example Enable MLD Querier function on VLAN 2: TL-SG3424(config)# ipv6 mld snooping querier vlan 2 ipv6 mld snooping querier vlan max-response-time Description The ipv6 mld snooping querier vlan max-response-time command is used to specify the max response time of the Query message.
ipv6 mld snooping querier vlan query-interval Description The ipv6 mld snooping querier vlan query-interval command is used to specify the interval to send the Query Message. The default value is 25 seconds. To restore the default value, please use no ipv6 mld snooping querier vlan query-interval command.
Example Specify the source address which sends the Query message as fe80::1234 on VLAN 2: TL-SG3424(config)# ipv6 mld snooping querier vlan 2 query-source fe80::1234 ipv6 mld snooping filter(global) Description The ipv6 mld snooping filter command is used to configure the multicast group filter entries in the format of ip-range. To disable the filter entry, please use no ipv6 mld snooping filter command.
Example Enable filter function on interface gigabitEthernet 1/0/2: TL-SG3424(config)# interface gigabitEthernet 1/0/2 TL-SG3424(config-if)# ipv6 mld snooping filter ipv6 mld snooping filter-mode Description The ipv6 mld snooping filter-mode command is used to configure the filter mode of the interface. The default mode is accept. To restore the default mode, please use no ipv6 mld snooping filter-mode command.
Command Mode Interface Configuration Mode Example Specify the filter id as 1 and 10 on interface gigabitEthernet 1/0/2: TL-SG3424(config)# interface gigabitEthernet 1/0/2 TL-SG3424(config-if)# ipv6 mld snooping filter-id 1,10 ipv6 mld snooping max-group Description The ipv6 mld snooping max-group command is used to specify the limit number of groups for a port to join in. The default value is 256. To restore the default value, please use no ipv6 mld snooping max-group command.
Example Clear the statistics of the MLD packets: TL-SG3424(config)# clear ipv6 mld snooping statistics show ipv6 mld snooping Description The show ipv6 mld snooping command is used to display the global configuration of MLD Snooping.
show ipv6 mld snooping static-mcast Description The show ipv6 mld snooping static-mcast command is used to display the static multicast groups configured by users. Syntax show ipv6 mld snooping static-mcast Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display static multicast groups: TL-SG3424(config)# show ipv6 mld snooping static-mcast show ipv6 mld snooping group Description The show ipv6 mld snooping group command is used to display multicast groups.
Syntax show ipv6 mld snooping filter Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the filter entries: TL-SG3424(config)# show ipv6 mld snooping filter show ipv6 mld snooping interface Description The show ipv6 mld snooping interface command is used to display the interface information of MLD Snooping. Syntax show ipv6 mld snooping interface [ gigabitEthernet port ] Parameter port —— Specify the port number.
Example Display all filter ids bounded to all interface: TL-SG3424(config)# show ipv6 mld snooping interface filter show ipv6 mld snooping querier Description The show ipv6 mld snooping querier command is used to display the Querier configuration of VLAN. Syntax show ipv6 mld snooping querier [vlan vlan-id] Parameter vlan-id ——The VLAN ID selected to display, ranging from 1 to 4094.
Chapter 30 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.
Parameter name —— The entry name of View, ranging from 1 to 16 characters. Each View includes several entries with the same name. 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.
v1 | v2c | v3 —— Security Model, with v1, v2c and v3 options. They represent SNMP v1, SNMP v2c and SNMP v3. noAuthNoPriv | authNoPriv | authPriv —— The Security Level of SNMP v3 Group. There are three options, including noAuthNoPriv (no authorization and no encryption), authNoPriv (authorization and no encryption) and authPriv (authorization and encryption). By default, the Security Level is noAuthNoPriv. There is no need to configure this in SNMP v1 Mode and SNMP v2c Mode.
Syntax snmp-server user name { local | remote } group-name [ smode { v1 | v2c | v3 }] [ slev { noAuthNoPriv | authNoPriv | authPriv }] [ cmode { none | MD5 | SHA }] [ cpwd confirm-pwd ] [ emode { none | DES }] [ epwd encrypt-pwd ] no snmp-server user name Parameter name —— User Name, ranging from 1 to 16 characters. local | remote —— User Type, with local and remote options.
Example Add Local User admin to Group group2, and configure the Security Model of the user as v3, the Security Level of the group as authPriv, the Authentication Mode of the user as MD5, the Authentication Password as 11111, the Privacy Mode as DES, and the Privacy Password as 22222: TL-SG3424(config)# snmp-server user admin local group2 smode v3 slev authPriv cmode MD5 cpwd 11111 emode DES epwd 22222 snmp-server community Description The snmp-server community command is used to add Community.
snmp-server host Description The snmp-server host command is used to add Notification. To delete the corresponding Notification, please use no snmp-server host command. Syntax snmp-server host ip udp-port user-name [ smode { v1 | v2c | v3 }] [ slev { noAuthNoPriv | authNoPriv | authPriv }] [ type { trap | inform }] [ retries retries ] [ timeout timeout ] no snmp-server host ip user-name Parameter ip —— The IP Address of the management Host. Both IPv4 and IPv6 addresses are supported, for example 192.168.
Command Mode Global Configuration Mode Example Add a Notification entry, and configure the IP Address of the management Host as 192.168.0.146, the UDP port as 162, the User name of the management station as admin, the Security Model of the management station as v2c, the type of the notifications as inform, the maximum time for the switch to wait as 1000 seconds, and the retries time as 100: TL-SG3424(config)# snmp-server host 192.168.0.
device which receives informs from the switch. Its length ranges from 10 to 64 hexadecimal characters, which must be even number meanwhile. The snmp-server engineID will be disabled if the local and remote are both not configured.
auth-failure —— Enable the auth-failure trap. It is sent when a received SNMP request fails the authentication. By default, it is enabled. Command Mode Global Configuration Mode Example Enable SNMP standard linkup trap for the switch: TL-SG3424(config)# snmp-server traps snmp linkup snmp-server traps link-status Description The snmp-server traps link-status command is used to enable SNMP link status trap for the specified port.
Syntax snmp-server traps { bandwidth-control | cpu | flash | ipaddr-change | lldp | loopback-detection | storm-control | spanning-tree | memory } no snmp-server traps { bandwidth-control | cpu | flash | ipaddr-change | lldp | loopback-detection | storm-control | spanning-tree | memory } Parameter bandwidth-control —— Enable bandwidth-control trap. It is sent when the rate limit function is enabled and the bandwidth exceeds the predefined value. cpu —— Allow CPU-related trap.
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 mac [ new | full | learn-mode-change | max-learned ] no snmp-server traps mac [ new | full | learn-mode-change | max-learned ] Parameter new —— Enable new MAC address trap. It is sent when the switch learns new MAC address including dynamic address, static address and filter address. full —— Enable MAC address table trap.
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.
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 sample port as Gi1/0/2 and the sample interval as 100 seconds for the entry 1-3: TL-SG3424(config)# rmon history 1-3 interface gigabitEthernet 1/0/2 interval 100 owner owner1 rmon event Description The rmon event command is used to configure the entries of SNMP-RMON Event.
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-SG3424(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.
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.
Syntax show snmp-server Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display SNMP configuration globally: TL-SG3424# show snmp-server show snmp-server view Description The show snmp-server view command is used to display the View table.
show snmp-server user Description The show snmp-server user command is used to display the User table. Syntax show snmp-server user Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the User table: TL-SG3424# show snmp-server user show snmp-server community Description The show snmp-server community command is used to display the Community table.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the Host table: TL-SG3424# show snmp-server host show snmp-server engineID Description The show snmp-server engineID command is used to display the engineID of the SNMP.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the configuration of all history sample entries: TL-SG3424# show rmon history show rmon event Description The show rmon event command is used to display the configuration of SNMP-RMON Event. Syntax show rmon event [ index ] Parameter index —— The index number of the entry selected to display the configuration, ranging from 1 to 12, in the format of 1-3, 5. You can select more than one entry for each command.
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 Alarm Management entries is displayed.
Chapter 31 LLDP Commands Note: Only TL-SG3424P supports LLDP function. LLDP function enables network devices to advertise their own device information periodically to neighbors on the same LAN. The information of the LLDP devices in the LAN can be stored by its neighbor in a standard MIB, so it is possible for the information to be accessed by a Network Management System (NMS) such as SNMP. lldp Description The lldp command is used to enable LLDP function.
no lldp hold-multiplier 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-SG3424P(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.
transmit interval will be shorten to a second, and several LLDPDUs will be sent out (the number of LLDPDUs equals this parameter). The value ranges from 1 to 10 and the default value is 3.
lldp receive Description The lldp receive command is used to enable the designated port to receive LLDPDU. To disable the function, please use no lldp receive command.
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.
Example Exclude “management-address” and “port-vlan-id” TLVs in LLDPDU outgoing from port 1: TL-SG3424P(config)# interface gigabitEthernet 1/0/1 TL-SG3424P(config-if)# no lldp tlv-select management-address port-vlan lldp med-location Description The lldp med-location command is used to configure the Location Identification TLV's content in outgoing LLDPDU of the port.
TL-SG3424P(config-if)# lldp med-location civic-address language English city London lldp med-status Description The lldp med-status command is used to enable the LLDP-MED feature for the corresponding port. After the LLDP-MED feature is enabled, the port's Admin Status will be changed to Tx&Rx. To disable the LLDP-MED feature for the corresponding port, please use no lldp med-status command.
Command Mode Interface Configuration Mode (interface gigabitEthernet / interface range gigabitEthernet) Example Exclude “network policy” and “inventory” TLVs in LLDPDU outgoing from port 2: TL-SG3424P(config)# interface gigabitEthernet 1/0/2 TL-SG3424P(config-if)# no lldp med-tlv-select network-policy inventory-management show lldp Description The show lldp command is used to display the global configuration of LLDP and LLDP-MED fast start repeat count number.
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-SG3424P# 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. By default, the information of all the ports will be displayed.
Parameter port —— The Ethernet port number. Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the LLDP and LLDP-MED neighbor information of port 1: TL-SG3424P# show lldp neighbor-information interface gigabitEthernet 1/0/1 show lldp traffic interface Description The show lldp traffic interface command is used to display the LLDP statistic information between the local device and neighbor device of the corresponding port.
Chapter 32 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.
Example Enable NDP function globally, and configure Aging Time as 120 seconds, Hello Time as 50 seconds: TL-SG3424(config)# cluster ndp TL-SG3424(config)# cluster ndp timer hello 50 aging 120 Change Aging Time to 80 seconds: TL-SG3424(config)# cluster ndp timer aging 80 Change Hello Time to 80 seconds: TL-SG3424(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.
packets for the first time. NTDP Hop Delay ranges from 1 to 1000 in milliseconds. By default, it is 200. port-delay value —— NTDP Port Delay, which is the time between the port forwarding NTDP request packets and its adjacent port forwarding NTDP 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.
cluster Description The cluster command is used to configure cluster function for specified ports. To return to the default configuration, please use no cluster command. Syntax cluster [ ndp { disable | enable }] [ ntdp { disable | enable }] no cluster Parameter disable | enable —— Enable/ Disable NDP function for the port. By default, it is enabled. disable | enable —— Enable/ Disable NTDP function for the port. By default, it is enabled.
Example Specify the current switch as candidate switch: TL-SG3424(config)# cluster candidate cluster individual Description The cluster individual command is used to specify the current switch as individual switch. Syntax cluster individual Command Mode Global Configuration Mode Example Specify the current switch as individual switch: TL-SG3424(config)# cluster individual show cluster ndp Description The show cluster ndp command is used to display NDP configuration of certain ports.
Display the NDP configuration of all Ethernet ports: TL-SG3424# show cluster ndp interface Display the NDP configuration of port 2: TL-SG3424# show cluster ndp interface gigabitEthernet 1/0/2 show cluster ntdp Description The show cluster ntdp command is used to display NTDP configuration or the information of device collected through NTDP. Syntax show cluster ntdp [ interface gigabitEthernet port | device-list ] Parameter port —— The Ethernet port number.
Command Mode Privileged EXEC Mode and Any Configuration Mode Example Display the cluster neighbor information: TL-SG3424# show cluster neighbour show cluster manage role Description The show cluster manage role command is used to display the cluster role of the current switch.