1.4.1 Format Conventions .............................................................................................................. 18
1.4.2 Special Characters ................................................................................................................ 19
1.4.3 Parameter Format .................................................................................................................. 19
Chapter 2 Line Commands ............................................................................................. 20
2.1 line ......................................................................................................................................................... 20
3.7 end ........................................................................................................................................................ 26
3.9 history .................................................................................................................................................. 27
3.10 history clear ....................................................................................................................................... 27
Chapter 4 User Management Commands .................................................................. 29
4.1 user name (password) ................................................................................................................... 29
4.2 user name (secret) .......................................................................................................................... 30
4.3 service password-recovery ........................................................................................................ 31
4.4 show user account-list .................................................................................................................. 32
4.5 show user configuration ............................................................................................................... 33
II
Chapter 5 System Configuration Commands ........................................................... 34
5.9 ip address ........................................................................................................................................... 41
5.10 ip address-alloc ................................................................................................................................ 42
5.35 show system-info ............................................................................................................................ 58
5.36 show image-info .............................................................................................................................. 59
III
5.37 show boot ........................................................................................................................................... 59
5.38 show running-config ...................................................................................................................... 60
5.39 show startup-config ....................................................................................................................... 60
5.40 show system-time ........................................................................................................................... 61
5.41 show system-time dst ................................................................................................................... 61
5.42 show system-time ntp ................................................................................................................... 62
5.43 show cable-diagnostics interface ............................................................................................ 62
5.44 show cpu-utilization........................................................................................................................ 63
5.45 show memory-utilization .............................................................................................................. 63
8.6 show holiday ...................................................................................................................................... 71
8.7 show time-range .............................................................................................................................. 72
Chapter 9 Port Configuration Commands ................................................................. 73
9.11 show fiber-ports .............................................................................................................................. 80
IV
78
9.12 show interface status .................................................................................................................... 80
9.13 show interface counters ............................................................................................................... 81
9.14 show interface configuration ...................................................................................................... 81
Chapter 10 Port Isolation Commands ........................................................................... 83
10.1 port isolation ..................................................................................................................................... 83
10.2 show port isolation interface ...................................................................................................... 84
13.5 show etherchannel ...................................................................................................................... 102
13.6 show etherchannel load-balance ........................................................................................... 103
13.7 show lacp ......................................................................................................................................... 104
13.8 show lacp sys-
id ........................................................................................................................... 104
V
Chapter 14 MAC Address Commands ........................................................................ 106
14.1 mac address-table static .......................................................................................................... 106
14.2 no mac address-table dynamic .............................................................................................. 107
14.3 mac address-table aging-time ................................................................................................ 107
14.4 mac address-table filtering ...................................................................................................... 108
14.5 mac address-table notification ............................................................................................... 109
14.6 mac address-table max-mac-count ..................................................................................... 109
14.7 mac address-table notification (interface) ......................................................................... 111
14.8 mac address-table security ..................................................................................................... 112
14.9 mac address-table vlan-security ........................................................................................... 113
14.10 show mac address-table ........................................................................................................... 114
14.11 clear mac address-table ............................................................................................................ 114
14.12 show mac address-table aging-time .................................................................................... 115
14.13 show mac address-table max-mac-count ......................................................................... 115
14.14 show mac address-table interface ........................................................................................ 116
14.15 show mac address-table count .............................................................................................. 117
14.16 show mac address-table address ......................................................................................... 117
14.17 show mac address-table vlan .................................................................................................. 118
14.18 show mac address-table notification ................................................................................... 118
14.19 show mac address-table vlan-security ............................................................................... 119
15.2 name .................................................................................................................................................. 121
15.9 show vlan summary ..................................................................................................................... 125
15.10 show vlan brief ............................................................................................................................... 126
15.11 show vlan ......................................................................................................................................... 126
15.12 show interface switchport ........................................................................................................ 127
20.20 range ................................................................................................................................................. 162
20.21 ip igmp filter .................................................................................................................................... 162
20.22 clear ip igmp snooping statistics ........................................................................................... 163
20.23 show ip igmp snooping .............................................................................................................. 163
20.24 show ip igmp snooping interface ........................................................................................... 164
20.25 show ip igmp snooping vlan ..................................................................................................... 165
20.26 show ip igmp snooping groups ............................................................................................... 165
20.27 show ip igmp profile .................................................................................................................... 166
range ................................................................................................................................................. 180
22.2 mvr group ........................................................................................................................................ 186
22.7 mvr type ........................................................................................................................................... 190
22.10 show mvr .......................................................................................................................................... 192
22.11 show mvr interface ...................................................................................................................... 193
22.12 show mvr members ..................................................................................................................... 193
23.8 name .................................................................................................................................................. 200
24.14 show lldp .......................................................................................................................................... 224
24.15 show lldp interface ....................................................................................................................... 225
24.16 show lldp local-information interface ................................................................................... 225
24.17 show lldp neighbor-information interface .......................................................................... 226
24.18 show lldp traffic interface .......................................................................................................... 226
27.1 ip routing .......................................................................................................................................... 237
27.9 ip route .............................................................................................................................................. 242
27.12 show interface vlan ...................................................................................................................... 244
27.13 show ip interface .......................................................................................................................... 244
27.14 show ip interface brief ................................................................................................................ 245
27.15 show ip route .................................................................................................................................. 245
27.16 show ip route specify .................................................................................................................. 246
27.17 show ip route summary .............................................................................................................. 247
27.18 show ipv6 interface ..................................................................................................................... 247
27.19 show ipv6 route ............................................................................................................................. 248
27.20 show ipv6 route summary ......................................................................................................... 248
29.9 ip proxy-arp .................................................................................................................................... 261
29.10 ip local-proxy-arp ......................................................................................................................... 261
29.11 show arp ........................................................................................................................................... 262
29.12 show ip arp (interface) ................................................................................................................ 263
29.13 show ip arp summary .................................................................................................................. 263
29.14 show gratuitous-arp .................................................................................................................... 264
29.15 show ip proxy-arp ......................................................................................................................... 264
Chapter 30 DHCP Server Commands ......................................................................... 266
30.1 service dhcp server ..................................................................................................................... 266
30.2 ip dhcp server extend-option capwap-ac-ip ..................................................................... 266
30.3 ip dhcp server extend-option vendor-class-id ................................................................. 267
30.4 ip dhcp server exclude-address ............................................................................................. 268
30.5 ip dhcp server pool ...................................................................................................................... 269
30.6 ip dhcp server ping timeout ..................................................................................................... 269
30.7 ip dhcp server ping packets ..................................................................................................... 270
Chapter 37 Access Control Commands .................................................................... 325
37.1 user access-control ip-based enable .................................................................................. 325
37.2 user access-control ip-based ................................................................................................. 325
37.3 user access-control mac-based enable ............................................................................. 326
37.4 user access-control mac-based ............................................................................................ 327
37.5 user access-control port-based enable ............................................................................. 328
37.6 user access-control port-based ............................................................................................ 328
Chapter 38 HTTP and HTTPS Commands ................................................................. 330
38.1 ip http server .................................................................................................................................. 330
38.2 ip http port ....................................................................................................................................... 331
38.3 ip http max-users .......................................................................................................................... 331
38.4 ip http session timeout ............................................................................................................... 332
38.5 ip http secure-server .................................................................................................................. 333
38.6 ip http secure-port ....................................................................................................................... 333
38.7 ip http secure-protocol .............................................................................................................. 334
38.8 ip http secure-ciphersuite ........................................................................................................ 335
38.9 ip http secure-max-users .......................................................................................................... 336
38.10 ip http secure-session timeout ............................................................................................... 337
38.11 ip http secure-server download certificate ....................................................................... 337
38.12 ip http secure-server download key ..................................................................................... 338
38.13 show ip http configuration ........................................................................................................ 339
38.14 show ip http secure-server ...................................................................................................... 340
39.1 ip ssh server ................................................................................................................................... 341
39.2 ip ssh port ........................................................................................................................................ 341
39.3 ip ssh version ................................................................................................................................. 342
39.4 ip ssh algorithm ............................................................................................................................. 343
39.5 ip ssh timeout ................................................................................................................................. 343
39.6 ip ssh max-client ........................................................................................................................... 344
39.7 ip ssh download ............................................................................................................................ 345
40.3 telnet port ........................................................................................................................................ 348
40.4 show telnet-status ....................................................................................................................... 348
Chapter 41 Serial Port Commands .............................................................................. 350
42.4 show radius-server ...................................................................................................................... 354
42.5 aaa group ......................................................................................................................................... 355
42.6 server ................................................................................................................................................ 356
42.7 show aaa group ............................................................................................................................. 356
42.12 show aaa authentication ............................................................................................................ 360
42.13 show aaa accounting .................................................................................................................. 361
42.14 line telnet ......................................................................................................................................... 361
42.16 line ssh .............................................................................................................................................. 363
42.18 line console ..................................................................................................................................... 364
42.23 ip http login authentication ....................................................................................................... 367
42.24 ip http enable authentication ................................................................................................... 368
42.25 show aaa global ............................................................................................................................. 369
43.6 dot1x mab ....................................................................................................................................... 377
46.3 access-list mac ............................................................................................................................. 394
46.4 access-list ip .................................................................................................................................. 396
52.5 ipv6 dhcp filter server permit-entry ...................................................................................... 440
52.6 show ipv6 dhcp filter ................................................................................................................... 441
52.7 show ipv6 dhcp filter interface ................................................................................................ 441
52.8 show ip dhcp filter server permit-entry ............................................................................... 442
Chapter 53 DoS Defend Commands ........................................................................... 443
53.1 ip dos-prevent ............................................................................................................................... 443
53.2 ip dos-prevent type ..................................................................................................................... 443
53.3 show ip dos-prevent ................................................................................................................... 445
55.5 show dldp ........................................................................................................................................ 460
55.6 show dldp interface ..................................................................................................................... 461
56.16 rmon history ................................................................................................................................... 477
59.12 show logging local-config ......................................................................................................... 509
59.13 show logging loghost .................................................................................................................. 509
59.14 show logging buffer ..................................................................................................................... 510
59.15 show logging flash ....................................................................................................................... 510
XXII
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 T2500G-10TS
JetStream 8-Port Gigabit L2 Managed Switch with 2 SFP Slots without any explanation.
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: User Management Commands
Provide information about the commands used for user management.
Chapter 4: 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 5:EEE Configuration Commands
Provide information about the commands used for configuring EEE.
Chapter 6: SDM Template Commands
Provide information about the commands used for configuring the SDM templates.
Chapter 7: Time Range Commands
Provide information about the commands used for configuring the time range.
Chapter 8: Port Configuration Commands
Provide information about the commands used for configuring the Speed, Negotiation Mode,
and Flow Control for Ethernet ports.
Chapter 9: Port Isolation Commands
Provide information about the commands used for configuring Port Isolation function.
Chapter 10: Loopback Detection Commands
Provide information about the commands used for configuring the Loopback Detection
function.
Chapter 11: DDM Commands
Provide information about the commands used for DDM (Digital Diagnostic Monitoring)
function.
1
Chapter 12: Etherchannel Commands
Provide information about the commands used for configuring LAG (Link Aggregation Group)
and LACP (Link Aggregation Control Protocol).
Chapter 13: MAC Address Commands
Provide information about the commands used for Address configuration.
Chapter 14IEEE 802.1Q VLAN Commands
Provide information about the commands used for configuring IEEE 802.1Q VLAN.
Chapter 15: MAC-based VLAN Commands
Provide information about the commands used for configuring MAC-based VLAN.
Chapter 16: Protocol-based VLAN Commands
Provide information about the commands used for configuring Protocol VLAN.
Chapter 17: VLAN-VPN Commands
Provide information about the commands used for configuring VLAN-VPN (Virtual Private
Network) function.
Chapter 18: GVRP Commands
Provide information about the commands used for configuring GVRP (GARP VLAN registration
protocol).
Chapter 19: IGMP Snooping Commands
Provide information about the commands used for configuring the IGMP Snooping (Internet
Group Management Protocol Snooping).
Chapter 20: MLD Snooping Commands
Provide information about the commands used for configuring the MLD Snooping (Multicast
Listener Discovery Snooping).
Chapter 21: MVR Commands
Provide information about the commands used for configuring the MVR.
Chapter 22: MSTP Commands
Provide information about the commands used for configuring the MSTP (Multiple Spanning
Tree Protocol).
Chapter 23: LLDP Commands
Provide information about the commands used for configuring LLDP function.
Chapter 24: L2PT Commands
Provide information about the commands used for configuring L2PT (Layer 2 Protocol
Tunneling).
Chapter 25: PPPoE ID-Insertion Commands
Provide information about the commands used for configuring PPPoE ID-Insertion.
2
Chapter 26: DHCP Relay Commands
Provide information about the commands used for configuring the DHCP Relay function.
Chapter 27: DHCP L2 Relay Commands
Provide information about the commands used for configuring the DHCP L2 Relay function.
Chapter 28: QoS Commands
Provide information about the commands used for configuring the QoS function.
Chapter 29: Bandwidth Commands
Provide information about the commands used for configuring the Bandwidth Control.
Chapter 30: Voice VLAN Commands
Provide information about the commands used for configuring Voice VLAN.
Chapter 31: Auto VoIP Commands
Provide information about the commands used for configuring Auto VoIP.
Chapter 32: Access Control Commands
Provide information about the commands used for configuring Access Control.
Chapter 33: HTTP and HTTPS Commands
Provide information about the commands used for configuring the HTTP and HTTPS logon.
Chapter 34: SSH Commands
Provide information about the commands used for configuring and managing SSH (Security
Shell).
Chapter 35: Telnet Commands
Provide information about the commands used for configuring and managing SSH (Security
Shell).
Chapter 36: Serial Port Commands
Provide information about the commands used for configuring and managing SSH (Security
Shell).
Chapter 37: AAA Commands
Provide information about the commands used for configuring AAA (authentication,
authorization and accounting).
Chapter 38: IEEE 802.1X Commands
Provide information about the commands used for configuring IEEE 802.1X function.
Chapter 39: Port Security Commands
Provide information about the commands used for configuring Port Security.
3
Chapter 40: Port Mirroring Commands
Provide information about the commands used for configuring the Port Mirror function.
Chapter 41: ACL Commands
Provide information about the commands used for configuring the ACL (Access Control List).
Chapter 42: IPv4 IMPB 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 43: IPv6 IMPB 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 44: 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 45: 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 46: DHCPv4 Filter Commands
Provide information about the commands used for configuring the DHCPv4 Filter.
Chapter 47: DHCPv6 Filter Commands
Provide information about the commands used for configuring the DHCPv6 Filter.
Chapter 48: DoS Defend Command
Provide information about the commands used for DoS defend and detecting the DoS attack.
Chapter 49: DLDP Commands
Provide information about the commands used for configuring the DLDP (Device Link
Detection Protocol).
Chapter 50: SNMP Commands
Provide information about the commands used for configuring the SNMP (Simple Network
Management Protocol) functions.
Chapter 51: ARP Inspection Commands
Provide information about the commands used for protecting the switch from the ARP
cheating or ARP Attack.
Chapter 52: ND Detection Commands
Provide information about the commands used for configuring ND detection.
Chapter 53: System Log Commands
Provide information about the commands used for configuring system log.
4
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 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
▪ 64-bit Windows 8
▪ 32-bit Windows 8.1
5
▪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
6
▪ Stop bits: 1
▪ Flow control: none
5. Type the Username and Password in the Hyper Terminal window. The default value for
both of them are admin. Press Enter in the main window and “T2500G-10TS>” will appear
indicating that you have successfully logged in to the switch and you can use the CLI now.
Figure 1-2 Log in to the Switch
Note:
The first time you log in, change the password to better protect your network and devices.
7
Loading...
+ 504 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.