TL-SG5428 V1 CLI Reference Guide
Page 1
TL-SG5428 24-Port Gigabit L2 Managed Switch with 4 SFP Slots TL-SG5412F 12-Port Gigabit SFP L2 Managed Switch with 4 Combo 1000BASE-T Ports Rev: 2.0.0 1910010630
TL-SG5428 24-Port Gigabit L2 Managed Switch with 4 SFP Slots TL-SG5412F 12-Port Gigabit SFP L2 Managed Switch with 4 Combo 1000BASE-T Ports Rev: 2.0.0 1910010630
TL-SG5428 V1 CLI Reference Guide
Page 13
...LACP Commands Provide information about the commands used for configuring Voice VLAN. Preface This Guide is intended for network administrator to switch between five CLI Command Modes. Overview of this Guide stands for configuring IEEE 802.1Q VLAN. The device mentioned in...CLI Provide information about the commands used for configuring LACP (Link Aggregation Control Protocol). Chapter 3: IEEE 802.1Q VLAN Commands Provide information about the commands used for TL-SG5428/TL-SG5412F JetStream L2 Managed Switch. Chapter 6: Voice VLAN Commands Provide information about the commands ...
...LACP Commands Provide information about the commands used for configuring Voice VLAN. Preface This Guide is intended for network administrator to switch between five CLI Command Modes. Overview of this Guide stands for configuring IEEE 802.1Q VLAN. The device mentioned in...CLI Provide information about the commands used for configuring LACP (Link Aggregation Control Protocol). Chapter 3: IEEE 802.1Q VLAN Commands Provide information about the commands used for TL-SG5428/TL-SG5412F JetStream L2 Managed Switch. Chapter 6: Voice VLAN Commands Provide information about the commands ...
TL-SG5428 V1 CLI Reference Guide
Page 14
... function. Chapter 15: DoS Defend Command Provide information about the commands used for configuring the System information and System IP, reboot and reset the switch, upgrade the switch system and other operations. Chapter 21: System Commands Provide information about the commands used for DoS defend and detecting the DoS attack. Chapter 23... information about the commands used for configuring the Port isolation function. 2 Chapter 25: Port isolation Commands Provide information about the commands used for protecting the switch from the ARP cheating or ARP Attack.
... function. Chapter 15: DoS Defend Command Provide information about the commands used for configuring the System information and System IP, reboot and reset the switch, upgrade the switch system and other operations. Chapter 21: System Commands Provide information about the commands used for DoS defend and detecting the DoS attack. Chapter 23... information about the commands used for configuring the Port isolation function. 2 Chapter 25: Port isolation Commands Provide information about the commands used for protecting the switch from the ARP cheating or ARP Attack.
TL-SG5428 V1 CLI Reference Guide
Page 16
... into the Name field and click OK. 4 Chapter 1 Using the CLI 1.1 Accessing the CLI You can log on to the switch and access the CLI by the console port on the switch. 2. Log on to open the Hyper Terminal as figure1-2. Click Start → All Programs → Accessories→ Communications →... figure 1-1 shown. Connect the PCs or Terminals to the console port on the switch by the console port 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 the switch, please take the following two methods: 1. Log on to the...
... into the Name field and click OK. 4 Chapter 1 Using the CLI 1.1 Accessing the CLI You can log on to the switch and access the CLI by the console port on the switch. 2. Log on to open the Hyper Terminal as figure1-2. Click Start → All Programs → Accessories→ Communications →... figure 1-1 shown. Connect the PCs or Terminals to the console port on the switch by the console port 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 the switch, please take the following two methods: 1. Log on to the...
TL-SG5428 V1 CLI Reference Guide
Page 18
Type the User name and Password in the Switch 1.1.2 Logon by a Telnet connection, please take the following steps: 1. It indicates that you can use the CLI now. Click Start → Run to the switch by Telnet To log on to open the Run window. 6 Figure 1-5 Log in the Hyper Terminal window, the factory default value for both of them is admin. Make sure the switch and the PC are in the same LAN. 2. Figure 1-4 Port Settings 6. The DOS prompt" TP-LINK>" will appear after pressing the Enter button as figure1-5 shown.
Type the User name and Password in the Switch 1.1.2 Logon by a Telnet connection, please take the following steps: 1. It indicates that you can use the CLI now. Click Start → Run to the switch by Telnet To log on to open the Run window. 6 Figure 1-5 Log in the Hyper Terminal window, the factory default value for both of them is admin. Make sure the switch and the PC are in the same LAN. 2. Figure 1-4 Port Settings 6. The DOS prompt" TP-LINK>" will appear after pressing the Enter button as figure1-5 shown.
TL-SG5428 V1 CLI Reference Guide
Page 19
Figure 1-7 Run Window 4. Figure 1-6 Open the Run window 3. Type cmd in the command prompt shown as figure 1-7 and click OK. Figure 1-8 Connecting to the Switch 7 Type telnet 192.168.0.1 in the prompt Run window as figure1-8, and press the Enter button.
Figure 1-7 Run Window 4. Figure 1-6 Open the Run window 3. Type cmd in the command prompt shown as figure 1-7 and click OK. Figure 1-8 Connecting to the Switch 7 Type telnet 192.168.0.1 in the prompt Run window as figure1-8, and press the Enter button.
TL-SG5428 V1 CLI Reference Guide
Page 20
... Configuration Mode can use the CLI now, which is shown as figure1-9. The following diagram. Figure 1-9 Log in the Switch 1.2 CLI Command Modes The CLI is divided into Interface Ethernet, Interface link-aggregation and some other modes, which is shown as the following table gives detailed information about the Accessing path, Prompt...
... Configuration Mode can use the CLI now, which is shown as figure1-9. The following diagram. Figure 1-9 Log in the Switch 1.2 CLI Command Modes The CLI is divided into Interface Ethernet, Interface link-aggregation and some other modes, which is shown as the following table gives detailed information about the Accessing path, Prompt...
TL-SG5428 V1 CLI Reference Guide
Page 21
... ports, different ports corresponds to disconnect the switch (except that the switch is connected with the switch. Each command mode has its own set of specific commands. Use the exit command to different commands 9 Privileged EXEC Mode Use the enable command to access interface Configuration mode. TP-LINK> TP-LINK# TP-LINK(config)# Use the exit command to Global...
... ports, different ports corresponds to disconnect the switch (except that the switch is connected with the switch. Each command mode has its own set of specific commands. Use the exit command to different commands 9 Privileged EXEC Mode Use the enable command to access interface Configuration mode. TP-LINK> TP-LINK# TP-LINK(config)# Use the exit command to Global...
TL-SG5428 V1 CLI Reference Guide
Page 22
... you are required to enter it to the VLAN. 3. Interface link-aggregation: Configure parameters for Admin level by enable password command. User level only allows users to monitor, configure and manage the switch in by using the enable command. Once password is needed. Configure ...are restricted to the User level once connecting console port with the switch or logging in Privileged EXEC Mode, Global Configuration Mode, Interface Configuration Mode and VLAN Configuration Mode. Users can configure password for a link-aggregation, such as that means they can create a VLAN and add...
... you are required to enter it to the VLAN. 3. Interface link-aggregation: Configure parameters for Admin level by enable password command. User level only allows users to monitor, configure and manage the switch in by using the enable command. Once password is needed. Configure ...are restricted to the User level once connecting console port with the switch or logging in Privileged EXEC Mode, Global Configuration Mode, Interface Configuration Mode and VLAN Configuration Mode. Users can configure password for a link-aggregation, such as that means they can create a VLAN and add...
TL-SG5428 V1 CLI Reference Guide
Page 27
... logical LANs flexibly. Syntax vlan database Command Mode Global Configuration Mode Example Access VLAN Configuration Mode: TP-LINK(config)# vlan database TP-LINK(config-vlan)# vlan Description The vlan command is used to access VLAN Configuration Mode for the switch to 4094. Chapter 3 IEEE 802.1Q VLAN Commands VLAN (Virtual Local Area Network) technology is...
... logical LANs flexibly. Syntax vlan database Command Mode Global Configuration Mode Example Access VLAN Configuration Mode: TP-LINK(config)# vlan database TP-LINK(config-vlan)# vlan Description The vlan command is used to access VLAN Configuration Mode for the switch to 4094. Chapter 3 IEEE 802.1Q VLAN Commands VLAN (Virtual Local Area Network) technology is...
TL-SG5428 V1 CLI Reference Guide
Page 30
... Interface Configuration Mode (interface ethernet / interface range ethernet ) Example Specify the PVID of port 2 as 2: TP-LINK(config)# interface ethernet 2 TP-LINK(config-if)# switchport pvid 2 switchport general egress-rule Description The switchport general egress-rule command is used to ...Configuration Mode ( interface ethernet / interface range ethernet ) Example 18 Example Add port 2 to IEEE 802.1Q VLAN: TP-LINK(config)# interface ethernet 2 TP-LINK(config-if)# switchport allowed vlan add 2 switchport pvid Description The switchport pvid command is used to configure the PVID for the...
... Interface Configuration Mode (interface ethernet / interface range ethernet ) Example Specify the PVID of port 2 as 2: TP-LINK(config)# interface ethernet 2 TP-LINK(config-if)# switchport pvid 2 switchport general egress-rule Description The switchport general egress-rule command is used to ...Configuration Mode ( interface ethernet / interface range ethernet ) Example 18 Example Add port 2 to IEEE 802.1Q VLAN: TP-LINK(config)# interface ethernet 2 TP-LINK(config-if)# switchport allowed vlan add 2 switchport pvid Description The switchport pvid command is used to configure the PVID for the...
TL-SG5428 V1 CLI Reference Guide
Page 46
...port10 in the Private VLAN. Syntax show private-vlan switchport command is used to displays the configuration information of all Private VLAN: TP-LINK(config)# show private-vlan show private-vlan switchport Description The show private-vlan switchport [port-num] 34 Primary VLAN ID, ... promiscuous | host -- Secondary VLAN ID, ranging from 2 to 4094. configure the private VLAN mode for secondary VLAN: TP-LINK(config)# interface ethernet 10 TP-LINK(config-if)# switchport private-vlan promiscuous 15 150 show private-vlan Description The show private-vlan command is used to display ...
...port10 in the Private VLAN. Syntax show private-vlan switchport command is used to displays the configuration information of all Private VLAN: TP-LINK(config)# show private-vlan show private-vlan switchport Description The show private-vlan switchport [port-num] 34 Primary VLAN ID, ... promiscuous | host -- Secondary VLAN ID, ranging from 2 to 4094. configure the private VLAN mode for secondary VLAN: TP-LINK(config)# interface ethernet 10 TP-LINK(config-if)# switchport private-vlan promiscuous 15 150 show private-vlan Description The show private-vlan command is used to display ...
TL-SG5428 V1 CLI Reference Guide
Page 48
... no gvrp command. To disable the GVRP function, please use no gvrp Command Mode Global Configuration Mode Example Enable the GVRP function globally: TP-LINK(config)# gvrp gvrp (interface) Description The gvrp (interface) command is used to enable the GVRP function for the trunk-type ports. gvrp...be enabled for the desired port. To disable the GVRP function 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...
... no gvrp command. To disable the GVRP function, please use no gvrp Command Mode Global Configuration Mode Example Enable the GVRP function globally: TP-LINK(config)# gvrp gvrp (interface) Description The gvrp (interface) command is used to enable the GVRP function for the trunk-type ports. gvrp...be enabled for the desired port. To disable the GVRP function 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...
TL-SG5428 V1 CLI Reference Guide
Page 56
... and disaggregation by exchanging LACP packets with its partner. Command Mode Global Configuration Mode Example Set the system priority as1024: TP-LINK(config)# lacp system-priority 1024 lacp (interface) Description The lacp(interface) command is used to set the system priority. Syntax ...lacp system-priority value no lacp system-priority command. To restore to 65535. Chapter 10 LACP Commands LACP (Link Aggregation Control Protocol) is 32768. To disable LACP protocol, please use no lacp system-priority Parameter value -- Syntax lacp no lacp command. ...
... and disaggregation by exchanging LACP packets with its partner. Command Mode Global Configuration Mode Example Set the system priority as1024: TP-LINK(config)# lacp system-priority 1024 lacp (interface) Description The lacp(interface) command is used to set the system priority. Syntax ...lacp system-priority value no lacp system-priority command. To restore to 65535. Chapter 10 LACP Commands LACP (Link Aggregation Control Protocol) is 32768. To disable LACP protocol, please use no lacp system-priority Parameter value -- Syntax lacp no lacp command. ...
TL-SG5428 V1 CLI Reference Guide
Page 60
...guest | admin -- Guest: only can view the settings without the right to add a new user. Admin: edit, modify and view all the settings of the switch from being randomly changed. disable | enable --Enable/disable the user. Command Mode Global Configuration Mode Example Add and enable a new admin user named tplink, and...as to protect the settings of different functions. confirm-password --Type the password again. Access level. user add Description The user add command is password: TP-LINK(config)#user add tplink password password confirm-password password admin enable 48
...guest | admin -- Guest: only can view the settings without the right to add a new user. Admin: edit, modify and view all the settings of the switch from being randomly changed. disable | enable --Enable/disable the user. Command Mode Global Configuration Mode Example Add and enable a new admin user named tplink, and...as to protect the settings of different functions. confirm-password --Type the password again. Access level. user add Description The user add command is password: TP-LINK(config)#user add tplink password password confirm-password password admin enable 48
TL-SG5428 V1 CLI Reference Guide
Page 65
... on as Admin, ranging from 0 to configure the timeout time of the switch. guest-num --The maximum number of the users logging on as Guest, ranging from 1 to configure the number of the users logging on as 5 and 3: TP-LINK(config)# user max-num 5 3 user idle-timeout Description The user idle-...total number of Admin and Guest should be less than 16. Example Enable the access-control of the ports 2, port4, port5, port6, and port10: TP-LINK(config)# user access-control port-based 2,4-6,10 user max-number Description The user max-number command is used to 16. Syntax user max-number admin...
... on as Admin, ranging from 0 to configure the timeout time of the switch. guest-num --The maximum number of the users logging on as Guest, ranging from 1 to configure the number of the users logging on as 5 and 3: TP-LINK(config)# user max-num 5 3 user idle-timeout Description The user idle-...total number of Admin and Guest should be less than 16. Example Enable the access-control of the ports 2, port4, port5, port6, and port10: TP-LINK(config)# user access-control port-based 2,4-6,10 user max-number Description The user max-number command is used to 16. Syntax user max-number admin...
TL-SG5428 V1 CLI Reference Guide
Page 66
...30 in minutes. Syntax show user account-list Command Mode Any Configuration Mode Example Display the information of the current users: TP-LINK(config)# show user account-list show user account-list command is used to display the security configuration information of the current ...users. Command Mode Global Configuration Mode Example Configure the timeout time of the switch as 15 minutes: TP-LINK(config)# user idle-timeout 15 show user account-list Description The show user configuration Description The user configuration command is...
...30 in minutes. Syntax show user account-list Command Mode Any Configuration Mode Example Display the information of the current users: TP-LINK(config)# show user account-list show user account-list command is used to display the security configuration information of the current ...users. Command Mode Global Configuration Mode Example Configure the timeout time of the switch as 15 minutes: TP-LINK(config)# user idle-timeout 15 show user account-list Description The show user configuration Description The user configuration command is...
TL-SG5428 V1 CLI Reference Guide
Page 69
... Syntax dhcp-snooping no dhcp-snooping command. Command Mode Global Configuration Mode Example Delete the IP-MAC -VID-PORT entry with the index 5: TP-LINK(config)# binding-table remove index 5 dhcp-snooping Description The dhcp-snooping command is used to enable the DHCP-snooping function for automatic binding. binding...-PORT entry from DHCP server, and record the IP address, MAC address, VLAN and the connected Port number of the Host for the switch. Pay attention to be deleted. The entry number needed to that, the entry number is the actual number in the binding table not arranged...
... Syntax dhcp-snooping no dhcp-snooping command. Command Mode Global Configuration Mode Example Delete the IP-MAC -VID-PORT entry with the index 5: TP-LINK(config)# binding-table remove index 5 dhcp-snooping Description The dhcp-snooping command is used to enable the DHCP-snooping function for automatic binding. binding...-PORT entry from DHCP server, and record the IP address, MAC address, VLAN and the connected Port number of the Host for the switch. Pay attention to be deleted. The entry number needed to that, the entry number is the actual number in the binding table not arranged...
TL-SG5428 V1 CLI Reference Guide
Page 70
... to be this value if the transmission rate of the Decline packets exceeds the Decline Threshold. Example Enable the DHCP-snooping function globally: TP-LINK(config)# dhcp-snooping dhcp-snooping global Description The dhcp-snooping global command is used to specify the maximum amount of DHCP messages that can... be forwarded by the switch per second. The options are 0/5/10/15/20/25/30 (packet/second).By default, it is 0 standing for disable. The value to...
... to be this value if the transmission rate of the Decline packets exceeds the Decline Threshold. Example Enable the DHCP-snooping function globally: TP-LINK(config)# dhcp-snooping dhcp-snooping global Description The dhcp-snooping global command is used to specify the maximum amount of DHCP messages that can... be forwarded by the switch per second. The options are 0/5/10/15/20/25/30 (packet/second).By default, it is 0 standing for disable. The value to...
TL-SG5428 V1 CLI Reference Guide
Page 71
... to replace the Option 82 field of the packets with the switch defined one. To restore to the default option, please use no dhcp-snooping information enable Command Mode Global Configuration Mode Example Enable the Option 82 function of DHCP Snooping: TP-LINK(config)# dhcp-snooping information enable dhcp-snooping information strategy Description...
... to replace the Option 82 field of the packets with the switch defined one. To restore to the default option, please use no dhcp-snooping information enable Command Mode Global Configuration Mode Example Enable the Option 82 function of DHCP Snooping: TP-LINK(config)# dhcp-snooping information enable dhcp-snooping information strategy Description...