show lldp ............................................................................................................................... 212
show lldp interface ................................................................................................................ 212
show lldp local-information interface ..................................................................................... 213
show lldp neighbor-information interface .............................................................................. 213
show lldp traffic interface ....................................................................................................... 214
XI
Preface
This Guide is intended for network administrator to provide referenced information about CLI
(Command Line Interface). The device mentioned in this Guide stands for
TL-SG2216/TL-SG2424/TL-SG2424P/TL-SG2452 Gigabit Smart Switch.
The five devices of TL-SG2216/TL-SG2424/TL-SG2424P/TL-SG2452 are sharing this Guide. For
simplicity, we will take TL-SG2424 for example throughout this Guide.
Overview of this Guide
Chapter 1: Using the CLI
Provide information about how to use the CLI, CLI Command Modes, Security Levels and some
Conventions.
Chapter 2: User Interface
Provide information about the commands used to switch between five CLI Command Modes.
Chapter 3:IEEE 802.1Q VLAN Commands
Provide information about the commands used for configuring IEEE 802.1Q VLAN.
Chapter 4: Voice VLAN Commands
Provide information about the commands used for configuring Voice VLAN.
Chapter 5: Etherchannel Commands
Provide information about the commands used for configuring LAG (Link Aggregation Group) and
LACP (Link Aggregation Control Protocol).
Chapter 6: User Management Commands
Provide information about the commands used for user management.
Chapter 7: System Log Commands
Provide information about the commands used for configuring system log.
Chapter 8: SSH Commands
Provide information about the commands used for configuring and managing SSH (Security
Shell).
Chapter 9: SSL Commands
Provide information about the commands used for configuring and managing SSL (Secure
Sockets Layer).
Chapter 10: MAC Address Commands
Provide information about the commands used for Address configuration.
1
Chapter 11: System Configuration Commands
Provide information about the commands used for configuring the System information and System
IP, reboot and reset the switch, upgrade the switch system and commands used for cable test.
Chapter 12: IPv6 Address Configuration Commands
Provide information about the commands used for configuring the System IPv6 addresses.
Chapter 13: Ethernet Configuration Commands
Provide information about the commands used for configuring the Bandwidth Control, Negotiation
Mode, and Storm Control for enthernet ports.
Chapter 14: QoS Commands
Provide information about the commands used for configuring the QoS function.
Chapter 15: Port Mirror Commands
Provide information about the commands used for configuring the Port Mirror function.
Chapter 16: Port Isolation Commands
Provide information about the commands used for configuring Port Isolation function.
Chapter 17: Loopback Detection Commands
Provide information about the commands used for configuring the Loopback Detection function.
Chapter 18: ACL Commands
Provide information about the commands used for configuring the ACL (Access Control List).
Chapter 19: DHCP Filtering Commands
Provide information about the commands used for configuring the DHCP Filtering function.
Chapter 20: PoE Commands
Provide information about the commands used for configuring PoE function.
Chapter 21: MSTP Commands
Provide information about the commands used for configuring the MSTP (Multiple Spanning Tree
Protocol).
Chapter 22: IGMP Snooping Commands
Provide information about the commands used for configuring the IGMP Snooping (Internet Group
Management Protocol Snooping).
Chapter 23: MLD Snooping Commands
Provide information about the commands used for configuring the MLD Snooping (Multicast
Listener Discovery Snooping).
Chapter 24: SNMP Commands
Provide information about the commands used for configuring the SNMP (Simple Network
Management Protocol) functions.
2
Chapter 25: LLDP Commands
Provide information about the commands used for configuring LLDP function.
3
Chapter 1 Using the CLI
1.1 Accessing the CLI
You can log on to the switch and access the CLI by logging on to the switch remotely by a Telnet or
SSH connection through an Ethernet port.
1.1.1. Logon by Telnet
To log on to the switch by a Telnet connection, please take the following steps:
1. Click Start → Run to open the Run window, and type in telnet 192.168.0.1 in the prompt Run
window as Figure 1-1 and click OK.
Figure 1-1 Run Window
2. Type in the User name and Password (the factory default value for both of them are admin)
and press the Enter button to enter User EXEC Mode , which is shown as Figure 1-2.
Figure 1-2 Log in the Switch
3. Type in enable command to enter Privileged EXEC Mode.
Figure 1-3 Enter into Priviledged EXEC Mode
4
1.1.2. Logon by SSH
To log on by SSH, a Putty client software is recommended. There are two authentication modes to
set up an SSH connection:
Password Authentication Mode: It requires username and password, which are both admin by
default.
Key Authentication Mode: It requires a public key for the switch and a private key for the SSH
client software. You can generate the public key and the private key through Putty Key Generator.
Note:
Before SSH login, please follow the steps shown in Figure 1-4 to enable the SSH function through
Telnet connection.
Figure 1-4 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.
5
Figure 1-5 SSH Connection Config
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 enable to enter Privileged EXEC Mode, so
you can continue to configure the switch.
Figure 1-6 Log on the Switch
6
Key Authentication Mode
1. Select the key type and key length, and generate SSH key.
Figure 1-7 Generate SSH Key
Note:
1. The key length is in the range of 256 to 3072 bits.
2. During the key generation, randomly moving the mouse quickly can accelerate the key
generation.
7
2. After the key is successfully generated, please save the public key and private key to a TFTP
server.
Figure 1-8 Save the Generated Key
3. Log on to the switch by Telnet and download the public key file from the TFTP server to the
switch, as the following figure shows:
8
Figure 1-9 Download the Public Key
Note:
1. The key type should accord with the type of the key file.
2. The SSH key downloading can not be interrupted.
4. After the public key is downloaded, please log on to the interface of PuTTY and enter the IP
address for login.
9
Figure 1-10 SSH Connection Config
5. Click Browse to download the private key file to SSH client software and click Open.
Figure 1-11 Download the Private Key
10
Primary mode
once it is
command to
this mode from
command to return to User EXEC
command to
User EXEC Mode
……
VLAN Configuration Mode
6. After successful authentication, please enter the login user name. If you log on to the switch
without entering password, it indicates that the key has been successfully downloaded.
Figure 1-12 Log on the Switch
1.2 CLI Command Modes
The CLI is divided into different command modes: User EXEC Mode, Privileged EXEC Mode,
Global Configuration Mode, Interface Configuration Mode and VLAN Configuration Mode.
Interface Configuration Mode can also be divided into Interface Ethernet, Interface
link-aggregation and some other modes, which is shown as the following diagram.
Interface Configuration Mode
Interface gigabitEthernet
Interface link-aggregation
Interface range gigabitEthernet
Interface range link-aggregation
Interface vlan
Privileged EXEC
Mode
Global Configuration
Mode
The following table gives detailed information about the Accessing path, Prompt of each mode and
how to exit the current mode and access the next mode.
Mode
User EXEC
Mode
Accessing
Path
connected with the
switch.
Prompt
TL-SG2424>
Logout or Access the next
mode
Use the exit command to
disconnect the switch.
Use the enable
access Privileged EXEC mode.
Privileged
EXEC Mode
Use the enable
command to enter
User EXEC mode.
TL- SG2424#
11
Enter the disable or the exit
mode.
Enter configure
access Global Configuration mode.
this mode from
Privileged EXEC
to return to
to access interface Configuration
to access
type number
this mode from
command or press
from Global
command or press
or the #
Mode
Global
Configuration
Mode
Interface
Configuration
Mode
Accessing
Path
Use the configure
command to enter
mode.
Use the interface
command to enter
Global
Configuration
mode.
Prompt
TL- SG2424 (config)#
TL-SG2424 (config-if)#
or
TL-SG2424(config-if-range)#
Logout or Access the next
mode
Use the exit or the end command
or press Ctrl+Z
Privileged EXEC mode.
Use the interfacegigabitEthernet
portor interface range
gigabitEthernet port-list command
mode.
Use the vlan vlan-list
VLAN Configuration mode.
Use the end
Ctrl+Z to return to Privileged EXEC
mode.
Enter exit command or the #
command to return to Global
Configuration mode.
A port number must be specified in
the interface command.
VLAN
Configuration
Mode
Note:
1. The user is automatically in User EXEC Mode after the connection between the PC and the
switch is established by a Telnet/SSH connection.
2. Each command mode has its own set of specific commands. To configure some commands,
you should access the corresponding command mode firstly.
Global Configuration Mode: In this mode, global commands are provided, such as the
Interface Configuration Mode: In this mode, users can configure one or several ports,
Use the vlan
vlan-list command
to enter this mode
Configuration
mode.
TL-SG2424 (config-vlan)#
Use the end
Ctrl+Z to return to Privileged EXEC
mode.
Enter the exit command
command to return to Global
configuration mode.
Spanning Tree, Schedule Mode and so on.
different ports corresponds to different commands
a). Interface gigabitEthernet: Configure parameters for an Ethernet port, such as
Duplex-mode, flow control status.
b). Interface range gigabitEthernet: Configure parameters for several Ethernet ports.
12
c). Interface link-aggregation: Configure parameters for a link-aggregation, such as
broadcast storm.
d). Interface range link-aggregation: Configure parameters for multi-trunks.
e). Interface vlan: Configure parameters for the vlan-port.
VLAN Configuration Mode: In this mode, users can create a VLAN and add a specified
port to the VLAN.
3. Some commands are global, that means they can be performed in all modes:
show: display all information of switch, for example: statistic information, port information,
VLAN information.
history: Display the commands history.
1.3 Security Levels
This switch’s security is divided into two levels: User level and Admin level.
User level only allows users to do some simple operations in User EXEC Mode; Admin level
allows you to monitor, configure and manage the switch in Privileged EXEC Mode, Global
Configuration Mode, Interface Configuration Mode and VLAN Configuration Mode.
Users get the privilege to the User level once logging in by Telnet/SSH. However, Guest users are
restricted to access the CLI.
Users can enter Privileged EXEC mode from User EXEC mode by using the enable command. In
default case, no password is needed. In Global Configuration Mode, you can configure password
for Admin level by enable password command. Once password is configured, you are required to
enter it to access Privileged EXEC mode.
1.4 Conventions
1.4.1 Format Conventions
The following conventions are used in this Guide:
Items in square brackets [ ] are optional
Items in braces { } are required
Alternative items are grouped in braces and separated by vertical bars. For example: speed
{10 | 100 | 1000 }
Bold indicates an unalterable keyword. For example: show logging
13
Normal Font indicates a constant (several options are enumerated and only one can be
selected). For example: mode {dynamic | static | permanent}
Italic Font indicates a variable (an actual value must be assigned). For example: bridge
aging-time aging-time
1.4.2 Special Characters
You should pay attentions to the description below if the variable is a character string:
These six characters ” < > , \ & can not be input.
If a blank is contained in a character string, single or double quotation marks should be used,
for example ’hello world’, ”hello world”, and the words in the quotation marks will be identified
as a string. Otherwise, the words will be identified as several strings.
1.4.3 Parameter Format
Some parameters must be entered in special formats which are shown as follows:
MAC address must be enter in the format of xx:xx:xx:xx:xx:xx
One or several values can be typed for a port-list or a vlan-list using comma to separate. Use
a hyphen to designate a range of values, for instance,1/0/1,1/0/3-5,1/0/7 indicates choosing
port 1/0/1,1/0/3,1/0/4,1/0/5,1/0/7.
14
Chapter 2 User Interface
enable
Description
The enable command is used to access Privileged EXEC Mode from User
EXEC Mode.
Syntax
enable
Command Mode
User EXEC Mode
Example
If you have set the password to access Privileged EXEC Mode from User EXEC
Mode:
TL-SG2424>enable
Enter password:
TL-SG2424#
service password-encryption
Description
The service password-encryption command is used to encrypt the password
when the password is defined or when the configuration is written, using the
symmetric encryption algorithm. Encryption prevents the password from being
readable in the configuration file. To disable the global encryption function,
please use no service password-encryption command.
Syntax
service password-encryption
no service password-encryption
Command Mode
Global Configuration Mode
Example
Enable the global encryption function:
TL-SG2424(config)# service password-encryption
15
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
0 —— Specify the encryption type. 0 indicates that an unencrypted password
will follow. By default, the encryption type is 0.
password —— Super password, a string from 1 to 31 alphanumeric characters
or symbols. The password is case sensitive, allows digits, English letters (case
sensitive), underlines and sixteen special characters ( !$%'()*,-./[]{|} ). By default,
it is empty. The password in the configuration file will be displayed in the MD5
encrypted form.
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. After the encrypted
password is configured, you should use the corresponding unencrypted
password if you re-enter this mode.
Command Mode
Global Configuration Mode
User Guidelines
If both the enable password and enable secret are defined, you must enter the
password set in enable secret.
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-SG2424(config)#enable secret 0 admin
17
disable
Description
Syntax
Command Mode
Example
The disable command is used to return to User EXEC Mode from Privileged
EXEC Mode.
disable
Privileged EXEC Mode
Return to User EXEC Mode from Privileged EXEC Mode:
TL-SG2424# disable
TL-SG2424>
configure
Description
Syntax
Command Mode
Example
exit
The configure command is used to access Global Configuration Mode from
Privileged EXEC Mode.
configure
Privileged EXEC Mode
Access Global Configuration Mode from Privileged EXEC Mode:
TL-SG2424# configure
TL-SG2424(config)#
Description
The exit command is used to return to the previous Mode from the current
Mode.
Syntax
exit
18
end
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Return to Global Configuration Mode from Interface Configuration Mode, and
then return to Privileged EXEC Mode:
TL-SG2424(config-if)# exit
TL-SG2424(config)#exit
TL-SG2424#
Description
The end command is used to return to Privileged EXEC Mode.
Syntax
end
Command Mode
Example
history
Description
Syntax
Privileged EXEC Mode and Any Configuration Mode
Return to Privileged EXEC Mode from Interface Configuration Mode:
TL-SG2424(config-if)#end
TL-SG2424#
The history command is used to show the latest 20 commands you entered in
the current mode since the switch is powered.
history
Command Mode
Privileged EXEC Mode and any Configuration Mode
Example
Show the commands you have entered in the current mode:
TL-SG2424 (config)# history
19
history clear
Description
The history clear command is used to clear the commands you have entered in
the current mode, therefore these commands will not be shown next time you
use the history command.
Syntax
history clear
Command Mode
Privileged EXEC Mode and any Configuration Mode
Example
1 history
Clear the commands you have entered in the current mode:
TL-SG2424(config)#history clear
20
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.1Q VLAN, please use no vlan
command.
Syntax
vlan vlan-list
no 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.
Command Mode
Global Configuration Mode
Example
Create VLAN 2-10 and VLAN 100:
TL-SG2424(config)# vlan 2-10,100
Delete VLAN 2:
TL-SG2424(config)# no vlan 2
interface vlan
Description
The interface vlan command is used to create VLAN Interface and enter
Interface VLAN Mode. To delete VLAN Interface, please use no interface vlan
command.
Syntax
interface vlan vlan-id
no interface vlan vlan-id
21
Parameter
Command Mode
Example
name
Description
Syntax
vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094.
Global Configuration Mode
Create VLAN Interface 2:
TL-SG2424(config)# interface vlan 2
The name command is used to assign a description to a VLAN. To clear the
description, please use no name command.
name descript
no name
Parameter
descript ——String to describe the VLAN, which contains 16 characters at most.
Command Mode
VLAN Configuration Mode(VLAN)
Example
Specify the name of VLAN 2 as “group1”:
TL-SG2424(config)# vlan 2
TL-SG2424(config-vlan)# name group1
switchport general allowed vlan
Description
Syntax
The switchport general allowed vlan command is used to add the desired
General port to IEEE 802.1Q VLAN and specify the port’s type. To delete the
corresponding VLAN(s), please use no switchport general allowed vlan
command.
switchport general allowed vlan vlan-list { tagged | untagged }
no switchport general allowed vlan vlan-list
22
Parameter
vlan-list —— Specify IEEE 802.1Q VLAN ID list, ranging from 2 to 4094, in the
format of 2-3, 5. It is multi-optional.
tagged | untagged —— Egress rule,untagged or tagged. Tagged: All packets
forwarded by the port are tagged. The packets contain VLAN information.
Untagged: Packets forwarded by the port are untagged.
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet)
Example
Add port 4 it to VLAN 2 and configure the type of port 4 as tagged:
TL-SG2424(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 —— VLAN ID, ranging from 1 to 4094.
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet )
Example
Specify the PVID of port 2 as 2:
TL-SG2424(config)# interface gigabitEthernet 2
TL-SG2424(config-if)# switchport pvid 2
show vlan summary
Description
The show vlan summary command is used to display the summarized
information of IEEE 802.1Q VLAN.
23
Syntax
show vlan summary
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the summarized information of IEEE 802.1Q VLAN:
TL-SG2424(config)# show vlan summary
show vlan brief
Description
The show vlan brief command is used to display the brief information of IEEE
802.1Q VLAN.
Syntax
Command Mode
Example
show vlan
Description
Syntax
show vlan brief
Privileged EXEC Mode and Any Configuration Mode
Display the brief information of IEEE 802.1Q VLAN:
TL-SG2424(config)# show vlan brief
The show vlan command is used to display the information of IEEE 802.1Q
VLAN.
show vlan [ id vlan-list ]
Parameter
vlan-list —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094.It is
multi-optional. Using the show vlan command without parameter displays the
detailed information of all VLANs.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
24
Example
Display the information of vlan 5:
TL-SG2424(config)# show vlan id 5
show interface switchport
Description
The show interface switchport command is used to display the IEEE 802.1Q
VLAN configuration information of the specified port or all ports.
Syntax
show interface switchport [port]
Parameter
port —— The port number. By default, display the VLAN configuration
information of all ports.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the VLAN configuration information of all ports:
TL-SG2424(config)# show interface switchport
25
Chapter 4 Voice VLAN Commands
Voice VLANs are configured specially for voice data stream. By configuring Voice VLANs and
adding the ports with voice devices attached to voice VLANs, you can perform QoS-related
configuration for voice data, ensuring the transmission priority of voice data stream and voice
quality.
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.
Syntax
voice vlan vlan-id
no voice vlan
Parameter
vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 2 to 4094.
Command Mode
Global Configuration Mode
Example
Enable the Voice VLAN function for VLAN 10:
TL-SG2424(config)# voice vlan 10
voice vlan aging time
Description
Syntax
The voice vlan aging time command is used to set the aging time for a voice
VLAN. To restore to the default aging time for the Voice VLAN, please use no
voice vlan aging time command.
voice vlan aging time time
no voice vlan aging time
26
Parameter
time —— Aging time (in minutes) to be set for the Voice VLAN. It ranges from 1
to 43200 and the default value is 1440.
Command Mode
Global Configuration Mode
Example
Set the aging time for the Voice VLAN as 1 minute:
TL-SG2424(config)# voice vlan aging time 1
voice vlan priority
Description
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.
Syntax
voice vlan priority pri
no voice vlan priority
Parameter
pri —— Priority, ranging from 0 to 7, and the default value is 6.
Command Mode
Global Configuration Mode
Example
Configure the priority of the Voice VLAN as 5:
TL-SG2424(config)# voice vlan priority 5
voice vlan mac-address
Description
The voice vlan mac-address command is used to create Voice VLAN OUI. To
delete the specified Voice VLAN OUI, please use no voice vlan mac-address
The system-time ntp command is used to configure the time zone and the IP
address for the NTP Server. The switch will get UTC automatically if it has
connected to an NTP Server.
ip —— The type of the IP address for ping test should be IPv4.
ipv6 —— The type of the IP address for ping test should be IPv6.
ip_addr —— The IP address of the destination node for ping test. If the
parameter ip/ipv6 is not selected, both IPv4 and IPv6 addresses are supported,
for example 192.168.0.100 or fe80::1234.
-ncount —— The amount of times to send test data during Ping testing. It
ranges from 1 to 10. By default, this value is 4.
-lcount —— The size of the sending data during ping testing. It ranges from 1 to
1024 bytes. By default, this value is 64.
-icount —— The interval to send ICMP request packets. It ranges from 100 to
1000 milliseconds. By default, this value is 1000.
Command Mode
User EXEC Mode and Privileged EXEC Mode
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-SG2424# ping 192.168.0.131 –n 8 –l 512
To test the connectivity between the switch and the network device with the IP
fe80::1234, 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-SG2424# ping fe80::1234 –n 8 –l 512
tracert
Description
Syntax
The tracert command is used to test the connectivity of the gateways during its
journey from the source to destination of the test data.
tracert [ ip | ipv6 ] ip_addr[ maxHops ]
78
Parameter
ip —— The type of the IP address for tracert test should be IPv4.
ipv6 —— The type of the IP address for tracert test should be IPv6.
ip_addr —— The IP address of the destination device. If the parameter ip/ipv6 is
not selected, both IPv4 and IPv6 addresses are supported, for example
192.168.0.100 or fe80::1234.
maxHops —— The maximum number of the route hops the test data can pass
though. It ranges from 1 to 30. By default, this value is 4.
Command Mode
User EXEC Mode and Privileged EXEC Mode
Example
Test the connectivity between the switch and the network device with the IP
192.168.0.131. If the destination device has not been found after 20 maxHops,
the connection between the switch and the destination device is failed to
establish:
TL-SG2424# 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-SG2424# tracert fe80::1234 20
show system-info
Description
The show system-info command is used to display System Description,
Device Name, Device Location, System Contact, Hardware Version, Firmware
Version, System Time, Run Time and so on.
Syntax
show system-info
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the system information:
79
TL-SG2424# show system-info
show running-config
Description
The show running-config command is used to display the current operating
configuration of the system or of a specified port.
Syntax
show running-config [ interface gigabitEthernet port ]
Parameter
port —— The Gigabit Ethernet port number.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the system current operating configuration:
TL-SG2424# show running-config
show system-time
Description
The show system-time command is used to display the time information of the
switch.
Syntax
show system-time
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the time information of the switch
TL-SG2424# show system-time
show system-time dst
Description
The show system-time dst command is used to display the DST time
information of the switch.
80
Syntax
show system-time dst
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the DST time information of the switch
TL-SG2424# show system-time dst
show system-time ntp
Description
The show system-time ntp command is used to display the NTP mode
configuration information.
Syntax
show system-time ntp
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the NTP mode configuration information of the switch:
TL-SG2424# show system-time ntp
show cable-diagnostics interface gigabitEthernet
Description
The show cable-diagnostics interface gigabitEthernet command is used to
display the cable diagnostics of the connected Ethernet Port., which facilitates
you to check the connection status of the cable connected to the switch, locate
and diagnose the trouble spot of the network.
Syntax
show cable-diagnostics interface gigabitEthernet port
Parameter
port —— The number of the port which is selected for Cable test.
81
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Show the cable-diagnostics of port 3:
TL-SG2424# show cable-diagnostics interface gigabitEthernet 1/0/3
82
Chapter 12 IPv6 Address Configuration Commands
The IPv6 address configuration commands are provided in the Interface VLAN Mode. Type
enable →configure→interface vlan {vlan-id} to enter the Interface Configuration Mode of the
management VLAN. By default the management VLAN is VLAN1. You can use the command ip
management-vlan {vlan-id} in the Global Configuration Mode to configure the management
VLAN.
ipv6 enable
Description
This command is used to enable the IPv6 function globally. The IPv6 function
should be enabled before the IPv6 address configuration management. By
default it is enabled. If the IPv6 function is disabled, the corresponding IPv6
netstack and IPv6-based modules will be invalid, for example SSHv6, SSLv6,
TFTPv6 etc. To disable the IPv6 function, please use no ipv6 enable command.
Syntax
ipv6 enable
no ipv6 enable
Command Mode
Interface Configuration Mode(interface vlan)
Example
Enable the IPv6 function when the management VLAN of the switch is VLAN1:
TL-SG2424(config)# interface vlan 1
TL-SG2424(config-if)# ipv6 enable
ipv6 address autoconfig
Description
This command is used to enable the automatic configuration of the ipv6
link-local address. The switch has only one ipv6 link-local address, which can be
configured automatically or manually. The general ipv6 link-local address has
the prefix as fe80::/10. IPv6 routers cannot forward packets that have link-local
source or destination addresses to other links. The autuconfigured ipv6
link-local address is in EUI-64 format. To verify the uniqueness of the link-local
83
address, the manually configured ipv6 link-local address will be deleted when
the autoconfigured ipv6 link-local address takes effect.
Syntax
ipv6 address autoconfig
Configuration Mode
Interface Configuration Mode (interface vlan)
Example
Enable the automatic configuration of the ipv6 link-local address when the
management VLAN of the switch is VLAN1:
TL-SG2424(config)# interface vlan 1
TL-SG2424(config-if)# ipv6 address autoconfig
ipv6 address link-local
Description
The ipv6 address link-local command is used to configure the system ipv6
link-local address manually. To delete the configured link-local address, please
use no ipv6 address link-local command.
Syntax
ipv6 address ipv6-addr link-local
no ipv6 address ipv6-addr link-local
Parameter
ipv6-addr —— The link-local address of the switch. It should be a standardized
IPv6 address with the prefix fe80::/10, otherwise this command will be invalid.
Configuration Mode
Interface Configuration Mode (Interface vlan)
Example
Configure the link-local address as fe80::1234 when the management VLAN of
the switch is VLAN1:
The ipv6 address dhcp command is used to enable the DHCPv6 Client
function. When this function is enabled, the switch will try to obtain IP from
DHCPv6 server. To delete the allocated IP from DHCPv6 server and disable the
DHCPv6 Client function, please use no ipv6 address dhcp command.
Syntax
ipv6 address dhcp
no ipv6 address dhcp
Configuration Mode
Interface Configuration Mode (interface vlan)
Example
Enable the DHCP Client function when the management VLAN of the switch is
VLAN1:
TL-SG2424(config)# interface vlan 1
TL-SG2424(config-if)# ipv6 address dhcp
ipv6 address ra
Description
This command is used to configure the switch’s global IPv6 address according
to the address prefix and other configuration parameters from its received
RA(Router Advertisement) message. To disable this function, please use no
ipv6 address ra command.
Syntax
ipv6 address ra
no ipv6 address ra
Configuration Mode
Interface Configuration Mode (interface vlan)
Example
Enable the automatic ipv6 address configuration function to obtain IPv6 address
through the RA message when the management VLAN of the switch is VLAN1:
TL-SG2424(config)# interface vlan 1
TL-SG2424(config-if)# ipv6 address ra
85
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.
Syntax
ipv6 address ipv6-addr eui-64
no ipv6 address ipv6-addr eui-64
Parameter
ipv6-addr —— Global IPv6 address with 64 bits network prefix, for example
3ffe::1/64.
Configuration Mode
Interface Configuration Mode (interface vlan)
Example
Configure an EUI-64 global address on the interface with the network prefix
This command is used to manually configure a global IPv6 address on the
interface. To remove a global IPv6 address from the interface, please use no
ipv6 address command.
Syntax
ipv6 address ipv6-addr
no ipv6 address ipv6-addr
Parameter
ipv6-addr —— Global IPv6 address with network prefix, for example 3ffe::1/64.
86
Configuration Mode
Interface Configuration Mode (interface vlan)
Example
Configure the global address 3001::1/64 on the interface:
TL-SG2424(config)# interface vlan 1
TL-SG2424(config-if)# ipv6 address 3001::1/64
show ipv6 interface vlan
Description
This command is used to display the configured ipv6 information of the
management vlan,interface, including ipv6 function status, link-local address
and global address, ipv6 multicast groups etc.
Syntax
show ipv6 interface vlan vlan-id
Parameter
vlan-id—— The VLAN ID of the management VLAN.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the ipv6 information of the management vlan interface:
TL-SG2424(config)# show ipv6 interface vlan 1
87
Chapter 13 Ethernet Configuration Commands
Ethernet Configuration Commands can be used to configure the Bandwidth Control, Negotiation
Mode and Storm Control for Ethernet ports.
interface gigabitEthernet
Description
The interface gigabitEthernet command is used to enter the Interface
gigabitEthernet Configuration Mode and configure the corresponding Gigabit
Ethernet port.
Syntax
interface gigabitEthernet port
Parameter
port —— The Ethernet port number.
Command Mode
Global Configuration Mode
Example
To enter the Interface gigabitEthernet Configuration Mode and configure port 2: