2.7 end ..................................................................................................................................................... 25
2.9 history ............................................................................................................................................... 26
2.10 history clear .................................................................................................................................... 27
3.3 name .................................................................................................................................................. 29
3.10 show vlan summary...................................................................................................................... 34
3.11 show vlan brief ............................................................................................................................... 35
3.12 show vlan ......................................................................................................................................... 35
3.13 show interface switchport ......................................................................................................... 36
p system-priority ..................................................................................................................... 75
11.5 show etherchannel ....................................................................................................................... 76
11.6 show etherchannel load-balance ............................................................................................ 77
11.7 show lacp ......................................................................................................................................... 78
11.8 show lacp sys-id ............................................................................................................................ 78
Chapter 12 User Management Commands ................................................................ 80
12.1 user name (password) ................................................................................................................. 80
IV
12.2 user name (secret) ........................................................................................................................ 81
12.3 service password-recovery ...................................................................................................... 82
12.4 user access-control ip-based .................................................................................................. 83
12.5 user access-control mac-based ............................................................................................. 84
12.6 user access-control port-based ............................................................................................. 85
12.7 line ...................................................................................................................................................... 85
12.10 login local ......................................................................................................................................... 88
12.14 show password-recovery .......................................................................................................... 91
12.15 show user account-list................................................................................................................ 91
12.16 show user configuration ............................................................................................................. 92
12.17 show telnet-status........................................................................................................................ 92
Chapter 13 HTTP and HTTPS Commands .................................................................. 94
13.1 ip http server .................................................................................................................................. 94
13.2 ip http max-users (For T2600G-18TS only) ......................................................................... 95
13.3 ip http max-users (For other switches) ................................................................................. 96
13.4 ip http session timeout ............................................................................................................... 96
13.5 ip http secure-server ................................................................................................................... 97
13.6 ip http secure-protocol............................................................................................................... 98
13.7 ip http secure-ciphersuite ......................................................................................................... 98
13.8 ip http secure-max-users .......................................................................................................... 99
13.9 ip
13.10 ip http secure-server download certificate ...................................................................... 101
13.11 ip http secure-server download key ................................................................................... 102
13.12 show ip http configuration ...................................................................................................... 103
14.4 show arp ........................................................................................................................................ 106
14.5 show ip arp (interface) .............................................................................................................. 106
V
14.6 show ip arp summary................................................................................................................ 107
22.12 dot1x mab .................................................................................................................................... 157
25.1 ip ssh server ................................................................................................................................ 177
25.2 ip ssh version .............................................................................................................................. 177
25.3 ip ssh algorithm .......................................................................................................................... 178
25.4 ip ssh timeout .............................................................................................................................. 179
25.5 ip ssh max-client ........................................................................................................................ 179
25.6 ip ssh download .......................................................................................................................... 180
25.8 show ip ssh................................................................................................................................... 181
Chapter 26 MAC Address Commands ....................................................................... 183
26.1 mac address-table static ........................................................................................................ 183
26.2 mac address-table aging-time .............................................................................................. 184
26.3 mac address-table filtering .................................................................................................... 184
26.4 mac address-table notification ............................................................................................. 185
26.5 mac address-table max-mac-count ................................................................................... 186
26.6 mac address-table notification (interface) ........................................................................ 187
26.7 mac address-table security ................................................................................................... 188
26.8 show mac address-table ......................................................................................................... 189
26.9 clear mac address-table ......................................................................................................... 190
26.10 show mac address-table aging-time .................................................................................. 190
26.11 show mac address-table max-mac-count ........................................................................ 191
26.12 show mac address-table interface ...................................................................................... 191
26.13 show mac address-table count ............................................................................................ 192
26.14 show mac address-table address ....................................................................................... 193
26.15 show mac address-table vlan ................................................................................................ 193
26.16 show mac address-table notification ................................................................................. 194
26.17 show mac address-table security ........................................................................................ 194
Chapter 27 System Configuration Commands ....................................................... 196
em-time dst date ............................................................................................................... 199
27.9 ip address ..................................................................................................................................... 203
27.10 ip address-alloc .......................................................................................................................... 204
27.29 show system-info ...................................................................................................................... 217
27.30 show system-info interface ................................................................................................... 217
27.31 show image-info ......................................................................................................................... 218
27.32 show boot ..................................................................................................................................... 218
27.33 show running-config ................................................................................................................. 219
27.34 show running-config | ............................................................................................................... 219
27.35 show startup-config ................................................................................................................. 220
27.36 show system-time ..................................................................................................................... 220
27.37 show system-time dst .............................................................................................................. 221
27.38 show system-time ntp ............................................................................................................. 221
27.39 show cable-diagnostics interface gigabitEthernet ........................................................ 222
27.40 show cable-diagnostics careful interface ......................................................................... 222
27.41 sho
w cpu-utilization .................................................................................................................. 223
27.42 show memory-utilization ......................................................................................................... 223
30.2 qos (For other switches) .......................................................................................................... 245
30.3 qos cos .......................................................................................................................................... 245
31.3 show monitor session .............................................................................................................. 257
Chapter 32 Port Isolation Commands ....................................................................... 258
32.1 port isolation................................................................................................................................ 258
32.2 show port isolation interface ................................................................................................. 259
36.8 name ............................................................................................................................................... 302
38.7 show dldp ..................................................................................................................................... 331
38.8 show dldp interface................................................................................................................... 332
39.23 range .............................................................................................................................................. 349
39.24 ip igmp filter ................................................................................................................................. 350
39.25 clear ip igmp snooping statistics ......................................................................................... 350
39.26 show ip igmp snooping ............................................................................................................ 351
39.27 show
ip igmp snooping interface ......................................................................................... 351
39.28 show ip igmp snooping vlan ................................................................................................... 352
39.29 show ip igmp snooping multi-vlan ....................................................................................... 353
39.30 show ip igmp snooping groups ............................................................................................. 353
39.31 show ip igmp snooping querier ............................................................................................. 354
39.32 show ip igmp profile .................................................................................................................. 355
40.21 range .............................................................................................................................................. 370
41.14 rmon history ................................................................................................................................ 390
42.14 show lldp ....................................................................................................................................... 409
42.15 show lldp interface .................................................................................................................... 410
42.16 show lldp local-information interface ................................................................................. 410
42.17 show lldp neighbor-information interface ......................................................................... 411
42.18 show lldp traffic interface ....................................................................................................... 411
44.8 ip route .......................................................................................................................................... 422
44.11 show interface vlan ................................................................................................................... 424
44.12 show ip interface ........................................................................................................................ 425
44.13 show ip interface brief .............................................................................................................. 426
44.14 show ip route ............................................................................................................................... 426
44.15 show ip route specify ............................................................................................................... 427
44.16 show ip route summary ........................................................................................................... 428
44.17 show ipv6 interface ................................................................................................................... 428
44.18 show
44.19 show ipv6 route summary ...................................................................................................... 429
46.5 show radius-server ................................................................................................................... 437
46.6 aaa group ...................................................................................................................................... 437
46.7 server ............................................................................................................................................. 438
46.8 show aaa group .......................................................................................................................... 439
46.13 show aaa authentication ......................................................................................................... 443
46.14 show aaa accounting ................................................................................................................ 443
46.15 line console .................................................................................................................................. 444
46.18 line telnet ...................................................................................................................................... 446
46.20 line ssh ........................................................................................................................................... 447
49.9 power inline consumption (interface) ................................................................................. 483
XX
49.10 power inline priority ................................................................................................................... 484
49.11 power inline supply .................................................................................................................... 484
49.12 power inline profile .................................................................................................................... 485
49.13 power inline time-range ........................................................................................................... 486
49.14 show power inline ...................................................................................................................... 486
49.15 show power inline configuration interface ........................................................................ 487
49.16 show power inline information interface ........................................................................... 487
49.17 show power profile .................................................................................................................... 488
49.18 show power holiday .................................................................................................................. 488
49.19 show power time-range ........................................................................................................... 489
XXI
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 T2600G-18TS/
T2600G-28TS/ T2600G-52TS/ T2600G-28MPS JetStream Gigabit L2 Managed Switch without
any explanation. The commands in this guilde apply to these models if not specially noted, and
T2600G-28TS is taken as an example model in the example commands.
Some models featured in this guide may be unavailable in your country or region. For local
sales information, visit http://www.tp-link.com.
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: MAC-based VLAN Commands
Provide information about the commands used for configuring MAC-based VLAN.
Chapter 5: Protocol VLAN Commands
Provide information about the commands used for configuring Protocol VLAN.
Chapter 6: VLAN-VPN Commands
Provide information about the commands used for configuring VLAN-VPN (Virtual Private
Network) function.
Chapter 7: Private VLAN Commands
Provide information about the commands used for configuring Private VLAN.
Chapter 8: L2PT Commands
Provide information about the commands used for configuring L2PT (Layer 2 Portocol
Tunneling).
Chapter 9: GVRP Commands
Provide information about the commands used for configuring GVRP (GARP VLAN registration
protocol).
Chapter 10: Voice VLAN Commands
Provide information about the commands used for configuring Voice VLAN.
1
Chapter 11: Etherchannel Commands
Provide information about the commands used for configuring LAG (Link Aggregation Group)
and LACP (Link Aggregation Control Protocol).
Chapter 12: User Management Commands
Provide information about the commands used for user management.
Chapter 13: HTTP and HTTPS Commands
Provide information about the commands used for configuring the HTTP and HTTPS logon.
Chapter 14: ARP Commands
Provide information about the commands used for configuring the ARP (Address Resolution
Protocol) functions.
Chapter 15: Binding Table Commands
Provide information about the commands used for binding the IP address, MAC address, VLAN
and the connected Port number of the Host together.
Chapter 16: IPv6 Binding Table Commands
Provide information about the commands used for binding the IPv6 address, MAC address,
VLAN and the connected Port number of the Host together.
Chapter 17: IP Verify Source Commands
Provide information about the commands used for guarding the IP Source by filtering the IP
packets based on the IP-MAC Binding entries.
Chapter 18: IPv6 Verify Source Commands
Provide information about the commands used for guarding the IPv6 Source by filtering the IP
packets based on the IP-MAC Binding entries.
Chapter 19: ND Detection Commands
Provide information about the commands used for congifuring ND detection.
Chapter 20: ARP Inspection Commands
Provide information about the commands used for protecting the switch from the ARP
cheating or ARP Attack.
Chapter 21: DoS Defend Command
Provide information about the commands used for DoS defend and detecting the DoS attack.
Chapter 22: IEEE 802.1X Commands
Provide information about the commands used for configuring IEEE 802.1X function.
Chapter 23 PPPoE ID Insertion Commands
Provide information about the commands used for configuring PPPoE ID Insertion.
Chapter 24: System Log Commands
Provide information about the commands used for configuring system log.
2
Chapter 25: SSH Commands
Provide information about the commands used for configuring and managing SSH (Security
Shell).
Chapter 26: MAC Address Commands
Provide information about the commands used for Address configuration.
Chapter 27: 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 28: IPv6 Address Configuration Commands
Provide information about the commands used for configuring the System IPv6 addresses.
Chapter 29: Ethernet Configuration Commands
Provide information about the commands used for configuring the Bandwidth Control,
Negotiation Mode, and Storm Control for enthernet ports.
Chapter 30: QoS Commands
Provide information about the commands used for configuring the QoS function.
Chapter 31: Port Mirror Commands
Provide information about the commands used for configuring the Port Mirror function.
Chapter 32: Port Isolation Commands
Provide information about the commands used for configuring Port Isolation function.
Chapter 33: Loopback Detection Commands
Provide information about the commands used for configuring the Loopback Detection
function.
Chapter 34: DDM Commands
Provide information about the commands used for DDM (Digtal Diagnostic Monitoring)
function.
Chapter 35: ACL Commands
Provide information about the commands used for configuring the ACL (Access Control List).
Chapter 36: MSTP Commands
Provide information about the commands used for configuring the MSTP (Multiple Spanning
Tree Protocol).
Chapter 37 Ethernet OAM Commands
Provide information about the commands used for configuring the Ethernet OAM (Operation,
Administration, and Maintenance) function.
3
Chapter 38: DLDP Commands
Provide information about the commands used for configuring the DLDP (Device Link
Detection Protocol).
Chapter 39: IGMP Snooping Commands
Provide information about the commands used for configuring the IGMP Snooping (Internet
Group Management Protocol Snooping).
Chapter 40: MLD Snooping Commands
Provide information about the commands used for configuring the MLD Snooping (Multicast
Listener Discovery Snooping).
Chapter 41: SNMP Commands
Provide information about the commands used for configuring the SNMP (Simple Network
Management Protocol) functions.
Chapter 42: LLDP Commands
Provide information about the commands used for configuring LLDP function.
Chapter 43: sFlow Commands
Provide information about the commands used for configuring the Sampled Flow function.
Chapter 44: Static Routes Commands
Provide information about the commands used for configuring the Static Route function.
Chapter 45: SDM Template Commands
Provide information about the commands used for configuring the SDM templates.
Chapter 46: AAA Commands
Provide information about the commands used for configuring AAA (authentication,
authorization and accounting).
Chapter 47: DHCP Server Commands
Provide information about the commands used for configuring the DHCP Server function.
Chapter 48: DHCP Relay Commands
Provide information about the commands used for configuring the DHCP Relay function.
Chapter 49: PoE Commands(For T2600G-28MPS only)
Provide information about the commands used for configuring PoE function.
4
Chapter 1 Using the CLI
1.1 Accessing the CLI
You can log on to the switch and access the CLI by the following three methods:
1. Log on to the switch by the console port on the switch.
2. Log on to the switch remotely by a Telnet connection through an Ethernet port.
3. Log on to the switch remotely by an SSH connection through an Ethernet port.
1.1.1 Logon by a console port
Console Port
The switch has two console ports: an RJ-45 console port and a Micro-USB console port.
Console output is active on devices connected to both console ports, but console input is only
active on one console port at a time.
The Micro-USB connector takes precedence over the RJ-45 connector. When the switch
detects a valid connection on the Micro-USB console port, input from the RJ-45 console port is
immediately disabled, and input from the Micro-USB console port is enabled. Removing the
Micro-USB connection immediately reenables input from the RJ-45 console connection.
USB Console Driver
If you are using the USB port on the MAC OS X or Linux OS for console connection, there is no
need to run a USB driver.
If you are using the switch’s Micro-USB console port with the USB port of a Windows PC, a
driver for the USB port is required. The USB driver is provided on the resource CD. Follow the
InstallSheild Wizard to accomplish the installation.
The TP-Link USB Console Driver supports the following Windows operating systems:
32-bit Windows XP SP3
64-bit Windows XP
32-bit Windows Vista
64-bit Windows Vista
32-bit Windows 7
64-bit Windows 7
32-bit Windows 8
5
64-bit Windows 8
32-bit Windows 8.1
64-bit Windows 8.1
After the TP-Link USB Console Driver is installed, the PC’s USB port will act as RS-232 serial
port when the PC’s USB port is connected to the switch’s Micro-USB console port. And the
PC’s USB port will act as standard USB port when the PC’s USB port is unplugged from the
switch.
Logon
Take the following steps to log on to the switch by the console port.
1. Connect the PCs or Terminals to the console port on the switch by the provided cable.
2. Start the terminal emulation program (such as the HyperTerminal) on the PC.
3. Specify the connection COM port in the terminal emulation program. If the Micro-USB
Console port is used, you can view which port is assigned to the USB serial port in the
following path:
Control Panel -> Hardware and Sound -> Device Manager -> Ports ->USB Serial Port.
Figure 1-1 USB Serial Port Number
4. Configure the terminal emulation program or the terminal to use the following settings:
Baud rate: 38400 bps
Data bits: 8
Parity: none
Stop bits: 1
Flow control: none
6
5. The DOS prompt ”T2600G-28TS>” will appear after pressing the Enter button as shown in
Figure 1-2. It indicates that you can use the CLI now.
Figure 1-2 Log in the Switch
1.1.2 Logon by Telnet
For Telnet connection, you should also configure the Telnet login mode and login
authentication information 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.
Login Mode: It doesn’t require username and password, but a connection password is
required.
Before Telnet login, you are required to configure Telnet login mode and login authentication
information through console connection.
7
Login Local Mode
Firstly, configure the Telnet login mode as “login local” in the prompted DOS screen shown in
Figure 1-3.
Figure 1-3 Configure login local mode
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 and type in cmd in the
Search programs and files window and press the Enter button.
Figure 1-4 Run Window
2. Type telnet 192.168.0.1 in the command prompt shown as Figure 1-5, and press the Enter
button.
Figure 1-5 Connecting to the Switch
8
3. Type the default user name and password (both of them are admin), then press the Enter
button so as to enter User EXEC Mode.
Figure 1-6 Enter into the User EXEC Mode
4. Type enable command to enter Privileged EXEC Mode.
Figure 1-7 Enter into the Priviledged EXEC Mode
Now you can manage your switch with CLI commands through Telnet connection.
Login Mode
Firstly configure the Telnet login mode as “login” and the connection password as 456 in the
prompted DOS screen shown in Figure 1-8.
Figure 1-8 Configure login mode
9
Now, you can logon by Telnet in login mode:
1. Make sure the switch and the PC are in the same LAN. Click Start and type in cmd in the
Search programs and files window and press the Enter button.
Figure 1-9 Run Window
2. Type telnet 192.168.0.1 in the command prompt shown as Figure 1-10, and press the
Enter button.
Figure 1-10 Connecting to the Switch
3. You are prompted to enter the connection password 456 you have set through Console
port connection, and then you are in User EXEC Mode.
Figure 1-11 Enter into the User EXEC Mode
10
4. Type enable command to enter Privileged EXEC Mode.
Figure 1-12 Enter into the Privileged EXEC Mode
Now you can manage your switch with CLI commands through Telnet connection.
Note:
You can refer to Chapter 11 User Management Commands for detailed commands
information of the Telnet connection configuration.
1.1.3 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-13 to enable the SSH function
through Telnet connection.
Figure 1-13 Enable SSH function
11
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.
Figure 1-14 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-15 Log on the Switch
12
Key Authentication Mode
1. Select the key type and key length, and generate SSH key.
Figure 1-16 Generate SSH Key
Note:
1. The key length is in the range of 512 to 3072 bits.
2. During the key generation, randomly moving the mouse quickly can accelerate the key
generation.
13
2. After the key is successfully generated, please save the public key and private key to a
TFTP server.
Figure 1-17 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:
Figure 1-18 Download the Public Key
14
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.
Figure 1-19 SSH Connection Config
15
5. Click Browse to download the private key file to SSH client software and click Open.
Figure 1-20 Download the Private Key
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-21 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.
16
mode.
VLAN Configuration mode.
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.
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 Accessing Path Prompt
User EXEC
Mode
Privileged
EXEC Mode
Global
Configuration
Mode
Primary mode once
it is connected with
the switch.
Use the enable
command to enter
this mode from User
EXEC mode.
Use the configure
command to enter
this mode from
Privileged EXEC
mode.
T2600G-28TS>
T2600G-28TS#
T2600G-28TS(config)#
Logout or Access the next
mode
Use the exit command to
disconnect the switch.
Use the enable command to
access Privileged EXEC mode.
Enter the disable or the exit
command to return to User
EXEC mode.
Enter configure command to
access Global Configuration
Use the exit or the end
command or press Ctrl+Z to
return to Privileged EXEC mode.
Use the interface
port
gigabitEthernet
interface range
gigabitEthernet
command to access interface
Configuration mode.
or
port-list
Interface
Configuration
Mode
Layer 2 Interface:
Use the interface
gigabitEthernet
port,
interface
port-channel
port-channel-id
interface range
gigabitEthernet
port-list
enter this mode from
Global Configuration
or
command to
T2600G-28TS (config-if)#
or
T2600G-28TS(config-if-range)#
17
Use the vlan
Use the end command or press
Ctrl+Z to return to Privileged
EXEC mode.
Enter the exit or the # command
to return to Global Configuration
mode.
A port number must be specified
in the interface command.
vlan-list
to access
Configuration mode.
list
configuration mode.
Mode Accessing Path Prompt
Layer 3 Interface:
Use the no
switchport
command to enter
Routed Port mode
from Interface
Configuration mode.
Interface
Configuration
Mode
Use the interface
vlan-id
vlan
command to enter
VLAN Interface
mode from Global
Configuration mode.
Use the interface
loopback
command to enter
Loopback Interface
mode from Global
id
T2600G-28TS (config-if)#
T2600G-28TS(config-if-range)#
or
Logout or Access the next
mode
Use the switchport command to
switch to the Layer 2 interface
mode.
Use the end command or press
Ctrl+Z to return to Privileged
EXEC mode.
Enter the exit or the # command
to return to Global Configuration
mode.
Use the end command or press
Ctrl+Z to return to Privileged
EXEC mode.
Enter the exit command or the #
command to return to Global
VLAN
Configuration
Mode
Use the vlan
command to enter
this mode from
Global Configuration
mode.
vlan-
T2600G-28TS (config-vlan)#
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
Spanning Tree, Schedule Mode and so on.
Interface Configuration Mode: In this mode, users can configure one or several ports,
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.
18
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 Privilege Restrictions
This switch’s security is divided into four privilege levels: User level, Power User level, Operator
level and Admin level. You can define username and password pairs, and assign a specific
privilege level to each pair. Different privilege levels have access to specified commands,
which is illustrated in the Privilege Requirement in each command. For details about how to
configure usename and password pairs, please refer to user name (password) and
(secret).
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.
user name
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
19
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.
20
Chapter 2 User Interface
2.1 enable
Description
The enable command is used to access Privileged EXEC Mode from User
EXEC Mode.
Syntax
enable
Command Mode
User EXEC Mode
Privilege Requirement
None.
Example
If you have set the password to access Privileged EXEC Mode from User
EXEC Mode:
T2600G-28TS>enable
Enter password:
T2600G-28TS#
2.2 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
Syntax
function, please use no service password-encryption command.
service password-encryption
no service password-encryption
21
Command Mode
Global Configuration Mode
Privilege Requirement
Only Admin level users have access to these commands.
Example
Enable the global encryption function:
T2600G-28TS(config)# service password-encryption
2.3 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 ]
no enable password
Parameter
0 —— Specify the encryption type. 0 indicates that an unencrypted password
will follow. By default, the encryption type is 0.
password
characters or symbols. The password is case sensitive, allows digits, English
letters (case sensitive), underlines and sixteen special characters
( !$%'()*,-./[]{|} ). By default, it is empty.
7 —— Indicates a symmetric encrypted password with fixed length will follow.
encrypted-password
password
—— Super password, a string from 1 to 31 alphanumeric
—— A symmetric encrypted password with fixed length,
| 7
encrypted-password
}
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
22
Privilege Requirement
Only Admin level users have access to these commands.
User Guidelines
If the password you configured here is unencrypted and the global
encryption function is enabled in service password-encryption
password in the configuration file will be displayed in the symmetric
encrypted form.
Example
Set the super password as “admin” and unencrypted to access Privileged
EXEC Mode from User EXEC Mode:
T2600G-28TS(config)#enable password 0 admin
2.4 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
, the
secret command. This command uses the MD5 encryption.
Syntax
enable secret { [ 0 ]
no enable secret
Parameter
0 —— Specify the encryption type. 0 indicates that an unencrypted password
will follow. By default, the encryption type is 0.
password
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
password
—— Super password, a string from 1 to 31 alphanumeric
—— An MD5 encrypted password with fixed length,
| 5
encrypted-password
}
which you can copy from another switch’s configuration file. After the
23
encrypted password is configured, you should use the corresponding
unencrypted password if you re-enter this mode.
Command Mode
Global Configuration Mode
Privilege Requirement
Only Admin level users have access to these commands.
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.
T2600G-28TS(config)#enable secret 0 admin
2.5 configure
Description
The configure command is used to access Global Configuration Mode from
Privileged EXEC Mode.
Syntax
configure
Command Mode
Privileged EXEC Mode
Privilege Requirement
Only Admin, Operator and Power User level users have access to these
commands.
Example
Access Global Configuration Mode from Privileged EXEC Mode:
T2600G-28TS# configure
T2600G-28TS(config)#
24
2.6 exit
Description
The exit command is used to return to the previous Mode from the current
Mode.
Syntax
exit
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Privilege Requirement
None.
Example
Return to Global Configuration Mode from Interface Configuration Mode, and
then return to Privileged EXEC Mode:
T2600G-28TS(config-if)# exit
T2600G-28TS(config)#exit
T2600G-28TS#
2.7 end
Description
The end command is used to return to Privileged EXEC Mode.
Syntax
end
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Privilege Requirement
Only Admin level users have access to these commands.
Example
Return to Privileged EXEC Mode from Interface Configuration Mode:
T2600G-28TS(config-if)#end
T2600G-28TS#
25
2.8 clipaging
Description
The clipaging command is used to enable the pause function for the screen
display. If you want to display all the related information of the switch at once
when using the show command, please use no clipaging command.
Syntax
clipaging
no clipaging
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Privilege Requirement
None.
Example
Disable the pause function for the screen display:
T2600G-28TS(config)#no clipaging
2.9 history
Description
The history command is used to show the latest 20 commands you entered
in the current mode since the switch is powered.
Syntax
history
Command Mode
Privileged EXEC Mode and any Configuration Mode
Privilege Requirement
None.
Example
Show the commands you have entered in the current mode:
T2600G-28TS (config)# history
1 history
26
2.10 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
Privilege Requirement
Only Admin, Operator and Power User level users have access to these
commands.
Example
Clear the commands you have entered in the current mode:
T2600G-28TS(config)#history clear
27
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.
3.1 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
novlan
vlan-list
Parameter
vlan-list
format of 2-3, 5. It is multi-optional.
—— Specify IEEE 802.1Q VLAN ID list, ranging from 2 to 4094, in the
Command Mode
Global Configuration Mode
Privilege Requirement
Only Admin, Operator and Power User level users have access to these
commands.
Example
Create VLAN 2-10 and VLAN 100:
T2600G-28TS(config)# vlan 2-10,100
Delete VLAN 2:
T2600G-28TS(config)# no vlan 2
28
3.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
no interface vlan
vlan-id
Parameter
vlan-id
—— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094.
Command Mode
Global Configuration Mode
Privilege Requirement
Only Admin, Operator and Power User level users have access to these
commands.
Example
Create VLAN Interface 2:
T2600G-28TS(config)# interface vlan 2
vlan-id
3.3 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
no name
Parameter
descript
most.
Command Mode
VLAN Configuration Mode(VLAN)
descript
——String to describe the VLAN, which contains 16 characters at
29
Privilege Requirement
Only Admin, Operator and Power User level users have access to these
commands.
Example
Specify the name of VLAN 2 as “group1”:
T2600G-28TS(config)# vlan 2
T2600G-28TS(config-vlan)# name group1
3.4 switchport mode
Description
The switchport mode command is used to configure the Link Types for the
ports.
Syntax
switchport mode { access | trunk | general }
Parameter
access | trunk | general —— Link Types. There are three Link Types for the
ports.
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet / interface port-channel / interface range port-channel)
Privilege Requirement
Only Admin, Operator and Power User level users have access to these
commands.
Example
Specify the Link Type of Gigabit Ethernet port 1/0/3 as “trunk”: