1.4.2 Format Conventions ........................................................................................................... 19
1.4.3 Special Characters .............................................................................................................. 19
1.4.4 Parameter Format ................................................................................................................ 19
Chapter 2 Line Commands (Only for Certain Devices) ......................................... 20
2.1 line ...................................................................................................................................................... 20
3.7 end ..................................................................................................................................................... 26
3.9 history ............................................................................................................................................... 27
3.10 history clear .................................................................................................................................... 28
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 led ....................................................................................................................................................... 41
5.10 ip address ........................................................................................................................................ 41
5.11 ip address-alloc ............................................................................................................................. 42
5.12 controller cloud-based (Only for Certain Devices)............................................................ 43
5.13 controller inform-url (Only for Certain Devices) ................................................................. 44
5.38 show system-info ......................................................................................................................... 60
5.39 show image-info ............................................................................................................................ 60
5.40 show boot ........................................................................................................................................ 61
5.41 show running-config .................................................................................................................... 61
5.42 show startup-config .................................................................................................................... 62
5.43 show system-time ........................................................................................................................ 63
5.44 show system-time dst ................................................................................................................. 63
5.45 show system-time ntp ................................................................................................................ 64
5.46 show cable-diagnostics interface........................................................................................... 64
5.47 show cpu-utilization ..................................................................................................................... 65
5.48 show memory-utilization ............................................................................................................ 65
5.49 show controller .............................................................................................................................. 66
5.50 show temperature ........................................................................................................................ 66
5.51 show voltage .................................................................................................................................. 67
8.6 show holiday ................................................................................................................................... 75
8.7 show time-range ........................................................................................................................... 76
Chapter 9 Port Configuration Commands ............................................................... 77
9.11 show fiber-ports ............................................................................................................................ 83
9.12 show interface status .................................................................................................................. 84
9.13 show interface counters ............................................................................................................ 84
9.14 show interface configuration .................................................................................................... 85
Chapter 10 Port Isolation Commands ......................................................................... 87
10.1 port isolation................................................................................................................................... 87
10.2 show port isolation interface .................................................................................................... 88
13.5 show etherchannel .................................................................................................................... 106
13.6 show etherchannel load-balance ......................................................................................... 107
13.7 show lacp ...................................................................................................................................... 108
13.8 show lacp sys-id ......................................................................................................................... 108
Chapter 14 MAC Address Commands ....................................................................... 110
14.1 mac address-table static ........................................................................................................ 110
14.2 no mac address-table dynamic ............................................................................................ 111
14.3 mac address-table aging-time .............................................................................................. 111
14.4 mac address-table filtering .................................................................................................... 112
14.5 mac address-table notification ............................................................................................. 113
14.6 mac address-table max-mac-count ................................................................................... 113
14.7 mac address-table notification (interface) ........................................................................ 115
14.8 mac address-table security ................................................................................................... 116
14.9 mac address-table vlan-security ......................................................................................... 117
14.10 show mac address-table ......................................................................................................... 118
14.11 clear mac address-table ......................................................................................................... 118
14.12 show mac address-table aging-time .................................................................................. 119
14.13 show mac address-table max-mac-count ........................................................................ 119
14.14 show mac address-table interface ...................................................................................... 120
14.15 show mac address-table count ............................................................................................ 121
14.16 show mac address-table address ....................................................................................... 121
14.17 show mac address-table vlan ................................................................................................ 122
14.18 show mac address-table notification ................................................................................. 122
14.19 show mac address-table security ........................................................................................ 123
15.2 name ............................................................................................................................................... 125
15.9 show vlan summary................................................................................................................... 129
15.10 show vlan brief ............................................................................................................................ 130
VI
15.11 show vlan ...................................................................................................................................... 130
15.12 show interface switchport ...................................................................................................... 131
21.20 range .............................................................................................................................................. 173
21.21 ip igmp filter ................................................................................................................................. 174
21.22 clear ip igmp snooping statistics ......................................................................................... 175
21.23 show ip igmp snooping ............................................................................................................ 175
21.24 show ip igmp snooping interface ......................................................................................... 176
21.25 show ip igmp snooping vlan ................................................................................................... 177
21.26 show ip igmp snooping groups ............................................................................................. 177
21.27 show ip igmp profile .................................................................................................................. 178
22.16 range .............................................................................................................................................. 192
23.2 mvr group ..................................................................................................................................... 197
23.7 mvr type ........................................................................................................................................ 201
23.10 show mvr ...................................................................................................................................... 203
23.11 show mvr interface .................................................................................................................... 204
23.12 show mvr members .................................................................................................................. 204
24.8 name ............................................................................................................................................... 211
25.14 show lldp ....................................................................................................................................... 235
25.15 show lldp interface .................................................................................................................... 235
25.16 show lldp local-information interface ................................................................................. 236
25.17 show lldp neighbor-information interface ......................................................................... 237
25.18 show lldp traffic interface ....................................................................................................... 237
Chapter 26 L2PT Commands (Only for Certain Devices) ..................................... 239
28.1 ip routing ....................................................................................................................................... 248
28.9 ip route .......................................................................................................................................... 253
28.12 show interface vlan ................................................................................................................... 255
28.13 show ip interface ........................................................................................................................ 255
XI
28.14 show ip interface brief .............................................................................................................. 256
28.15 show ip route ............................................................................................................................... 256
28.16 show ip route specify ............................................................................................................... 257
28.17 show ip route summary ........................................................................................................... 258
28.18 show ipv6 interface ................................................................................................................... 258
28.19 show ipv6 route .......................................................................................................................... 259
28.20 show ipv6 route summary ...................................................................................................... 259
30.9 ip proxy-arp.................................................................................................................................. 272
30.10 ip local-proxy-arp ...................................................................................................................... 272
30.11 show arp ........................................................................................................................................ 273
30.12 show ip arp (interface) .............................................................................................................. 274
30.13 show ip arp summary................................................................................................................ 274
30.14 show gratuitous-arp ................................................................................................................. 275
30.15 show ip proxy-arp ...................................................................................................................... 275
Chapter 31 DHCP Server Commands ........................................................................ 277
31.1 service dhcp server .................................................................................................................. 277
31.2 ip dhcp server extend-option capwap-ac-ip.................................................................... 277
31.3 ip dhcp server extend-option vendor-class-id ............................................................... 278
XII
31.4 ip dhcp server exclude-address ........................................................................................... 279
31.5 ip dhcp server pool ................................................................................................................... 279
31.6 ip dhcp server ping timeout ................................................................................................... 280
31.7 ip dhcp server ping packets ................................................................................................... 281
37.8 auto-voip data priority .............................................................................................................. 338
37.9 show auto-voip ........................................................................................................................... 338
Chapter 38 Access Control Commands ................................................................... 340
38.1 user access-control ip-based enable ................................................................................. 340
38.2 user access-control ip-based ............................................................................................... 340
38.3 user access-control mac-based enable ............................................................................ 341
38.4 user access-control mac-based .......................................................................................... 342
38.5 user access-control port-based enable ............................................................................ 343
38.6 user access-control port-based .......................................................................................... 343
Chapter 39 HTTP and HTTPS Commands ................................................................ 345
39.1 ip http server ............................................................................................................................... 345
39.2 ip http port .................................................................................................................................... 346
39.3 ip http max-users ....................................................................................................................... 346
39.4 ip http session timeout ............................................................................................................ 347
39.5 ip http secure-server ................................................................................................................ 348
39.6 ip http secure-port .................................................................................................................... 348
39.7 ip http secure-protocol............................................................................................................ 349
39.8 ip http secure-ciphersuite ...................................................................................................... 350
XV
39.9 ip http secure-max-users ....................................................................................................... 351
39.10 ip http secure-session timeout ............................................................................................. 352
39.11 ip http secure-server download certificate ...................................................................... 352
39.12 ip http secure-server download key ................................................................................... 353
39.13 show ip http configuration ...................................................................................................... 354
39.14 show ip http secure-server .................................................................................................... 355
40.1 ip ssh server ................................................................................................................................ 356
40.2 ip ssh port ..................................................................................................................................... 356
40.3 ip ssh version .............................................................................................................................. 357
40.4 ip ssh algorithm .......................................................................................................................... 358
40.5 ip ssh timeout .............................................................................................................................. 358
40.6 ip ssh max-client ........................................................................................................................ 359
40.7 ip ssh download .......................................................................................................................... 360
40.9 show ip ssh................................................................................................................................... 361
41.3 telnet port ..................................................................................................................................... 363
41.4 show telnet-status..................................................................................................................... 363
Chapter 42 Serial Port Commands ............................................................................. 365
43.4 show radius-server ................................................................................................................... 369
43.5 aaa group ...................................................................................................................................... 370
43.6 server ............................................................................................................................................. 370
43.7 show aaa group .......................................................................................................................... 371
43.12 show aaa authentication ......................................................................................................... 375
43.13 show aaa accounting ................................................................................................................ 376
43.14 line telnet ...................................................................................................................................... 376
43.16 line ssh ........................................................................................................................................... 377
43.18 line console .................................................................................................................................. 379
44.6 dot1x mab .................................................................................................................................... 392
47.4 access-list mac .......................................................................................................................... 410
47.5 access-list ip ............................................................................................................................... 411
57.7 show dldp ..................................................................................................................................... 485
57.8 show dldp interface................................................................................................................... 486
58.17 rmon history ................................................................................................................................ 503
62.12 show logging local-config....................................................................................................... 544
62.13 show logging loghost ............................................................................................................... 544
62.14 show logging buffer .................................................................................................................. 545
62.15 show logging flash ..................................................................................................................... 545
XXIII
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 JetStream Switch
without any explanation. Some models featured in this guide may be unavailable in your country
or region. For local sales information, visit https://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: Line Commands (Only for Certain Devices)
Provide information about the commands used to make related configurations for the desired
users and set the priority of the console media type.
Chapter 3: User Interface
Provide information about the commands used to switch between five CLI Command Modes.
Chapter 4: User Management Commands
Provide information about the commands used for user management.
Chapter 5: 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 6:EEE Configuration Commands
Provide information about the commands used for configuring EEE.
Chapter 7: SDM Template Commands
Provide information about the commands used for configuring the SDM templates.
Chapter 8: Time Range Commands
Provide information about the commands used for configuring the time range.
Chapter 9: Port Configuration Commands
Provide information about the commands used for configuring the Speed, Negotiation Mode,
and Flow Control for Ethernet ports.
Chapter 10: Port Isolation Commands
Provide information about the commands used for configuring Port Isolation function.
1
Chapter 11: Loopback Detection Commands
Provide information about the commands used for configuring the Loopback Detection
function.
Chapter 12: DDM Commands (Only for Certain Devices)
Provide information about the commands used for DDM (Digital Diagnostic Monitoring)
function.
Chapter 13: Etherchannel Commands
Provide information about the commands used for configuring LAG (Link Aggregation Group)
and LACP (Link Aggregation Control Protocol).
Chapter 14: MAC Address Commands
Provide information about the commands used for Address configuration.
Chapter 15:IEEE 802.1Q VLAN Commands
Provide information about the commands used for configuring IEEE 802.1Q VLAN.
Chapter 16: MAC-based VLAN Commands
Provide information about the commands used for configuring MAC-based VLAN.
Chapter 17: Protocol-based VLAN Commands
Provide information about the commands used for configuring Protocol VLAN.
Chapter 18: Private VLAN Commands (Only for Certain Devices)
Provide information about the commands used for configuring Private VLAN.
Chapter 19: VLAN-VPN Commands (Only for Certain Devices)
Provide information about the commands used for configuring VLAN-VPN (Virtual Private
Network) function.
Chapter 20: GVRP Commands
Provide information about the commands used for configuring GVRP (GARP VLAN registration
protocol).
Chapter 21: IGMP Snooping Commands
Provide information about the commands used for configuring the IGMP Snooping (Internet
Group Management Protocol Snooping).
Chapter 22: MLD Snooping Commands
Provide information about the commands used for configuring the MLD Snooping (Multicast
Listener Discovery Snooping).
Chapter 23: MVR Commands
Provide information about the commands used for configuring the MVR.
2
Chapter 24: MSTP Commands
Provide information about the commands used for configuring the MSTP (Multiple Spanning
Tree Protocol).
Chapter 25: LLDP Commands
Provide information about the commands used for configuring LLDP function.
Chapter 26: L2PT Commands (Only for Certain Devices)
Provide information about the commands used for configuring L2PT (Layer 2 Protocol
Tunneling).
Chapter 27: PPPoE ID-Insertion Commands (Only for Certain Devices)
Provide information about the commands used for configuring PPPoE ID-Insertion.
Chapter 28: Static Routes Commands
Provide information about the commands used for configuring the Static Route function.
Chapter 29: IPv6 Address Configuration Commands
Provide information about the commands used for configuring the System IPv6 addresses.
Chapter 30: ARP Commands
Provide information about the commands used for configuring the ARP (Address Resolution
Protocol) functions.
Chapter 31: DHCP Server Commands
Provide information about the commands used for configuring the DHCP Server function.
Chapter 32: DHCP Relay Commands
Provide information about the commands used for configuring the DHCP Relay function.
Chapter 33: DHCP L2 Relay Commands
Provide information about the commands used for configuring the DHCP L2 Relay function.
Chapter 34: QoS Commands
Provide information about the commands used for configuring the QoS function.
Chapter 35: Bandwidth Commands
Provide information about the commands used for configuring the Bandwidth Control.
Chapter 36: Voice VLAN Commands
Provide information about the commands used for configuring Voice VLAN.
Chapter 37 Auto VoIP Commands
Provide information about the commands used for configuring Auto VoIP.
Chapter 38: Access Control Commands
Provide information about the commands used for configuring Access Control.
3
Chapter 39: HTTP and HTTPS Commands
Provide information about the commands used for configuring the HTTP and HTTPS logon.
Chapter 40: SSH Commands
Provide information about the commands used for configuring and managing SSH (Security
Shell).
Chapter 41: Telnet Commands
Provide information about the commands used for configuring and managing SSH (Security
Shell).
Chapter 42: Serial Port Commands (Only for Certain Devices)
Provide information about the commands used for configuring and managing SSH (Security
Shell).
Chapter 43: AAA Commands
Provide information about the commands used for configuring AAA (authentication,
authorization and accounting).
Chapter 44: IEEE 802.1X Commands
Provide information about the commands used for configuring IEEE 802.1X function.
Chapter 45: Port Security Commands
Provide information about the commands used for configuring Port Security.
Chapter 46: Port Mirroring Commands
Provide information about the commands used for configuring the Port Mirror function.
Chapter 47: ACL Commands
Provide information about the commands used for configuring the ACL (Access Control List).
Chapter 48: 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 49: 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 50: 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 51: 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.
4
Chapter 52: DHCPv4 Filter Commands
Provide information about the commands used for configuring the DHCPv4 Filter.
Chapter 53: DHCPv6 Filter Commands
Provide information about the commands used for configuring the DHCPv6 Filter.
Chapter 54: DoS Defend Command
Provide information about the commands used for DoS defend and detecting the DoS attack.
Chapter 55: sFlow Commands (Only for Certain Devices)
Provide information about the commands used for configuring the Sampled Flow function.
Chapter 56: Ethernet OAM Commands (Only for Certain Devices)
Provide information about the commands used for configuring the Ethernet OAM (Operation,
Administration, and Maintenance) function.
Chapter 57: DLDP Commands
Provide information about the commands used for configuring the DLDP (Device Link
Detection Protocol).
Chapter 58: SNMP Commands
Provide information about the commands used for configuring the SNMP (Simple Network
Management Protocol) functions.
Chapter 59: PoE Commands (Only for Certain Devices)
Provide information about the commands used for configuring PoE function.
Chapter 60: ARP Inspection Commands
Provide information about the commands used for protecting the switch from the ARP
cheating or ARP Attack.
Chapter 61: ND Detection Commands
Provide information about the commands used for configuring ND detection.
Chapter 62: System Log Commands
Provide information about the commands used for configuring system log.
5
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
Note: Console port is only available on certain devices.
■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
6
Loading...
+ 540 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.