tp-link T2600G V2 v3 Reference Guide
![tp-link T2600G manual cover](/images/08e7d9397169e7fae1fb191e/thumbs/thumb175x175.webp)
![English English](/static/img/blank.webp)
CLI Reference Guide T2600G Series Switches
T2600G-18TS (TL-SG3216) / T2600G-28TS (TL-SG3424)
T2600G-52TS (TL-SG3452) / T2600G-28MPS (TL-SG3424P)
1910012381 REV2.2.2
March 2018
COPYRIGHT & TRADEMARKS
Specifications are subject to change without notice. is a registered trademark of
TP-Link Technologies Co., Ltd. Other brands and product names are trademarks or registered
trademarks of their respective holders.
No part of the specifications may be reproduced in any form or by any means or used to make
any derivative such as translation, transformation, or adaptation without permission from
TP-Link Technologies Co., Ltd. Copyright 2018 TP-Link Technologies Co., Ltd. All rights
reserved.
https://www.tp-link.com
I
CONTENTS
Preface ............................................................................................................................ 1
Chapter 1 Using the CLI ................................................................................................... 7
1.1 Accessing the CLI ..................................................................................................................................... 7
1.1.1 Logon by a console port ...................................................................................................... 7
1.1.2 Logon by Telnet ...................................................................................................................... 9
1.1.3 Logon by SSH ........................................................................................................................ 13
1.2 CLI Command Modes ............................................................................................................................ 21
1.3 Privilege Restrictions ............................................................................................................................. 24
1.4 Conventions .............................................................................................................................................. 24
1.4.1 Format Conventions ........................................................................................................... 24
1.4.2 Special Characters .............................................................................................................. 24
1.4.3 Parameter Format ................................................................................................................ 25
Chapter 2 User Interface .............................................................................................. 26
2.1 enable ............................................................................................................................................... 26
2.2 service password-encryption .................................................................................................. 26
2.3 enable password ........................................................................................................................... 27
2.4 enable secret ................................................................................................................................. 28
2.5 configure .......................................................................................................................................... 30
2.6 exit...................................................................................................................................................... 30
2.7 end ..................................................................................................................................................... 31
2.8 clipaging ........................................................................................................................................... 31
2.9 history ............................................................................................................................................... 32
2.10 history clear .................................................................................................................................... 33
Chapter 3 IEEE 802.1Q VLAN Commands ................................................................ 34
3.1 vlan ..................................................................................................................................................... 34
3.2 interface vlan .................................................................................................................................. 35
3.3 name .................................................................................................................................................. 35
3.4 switchport mode ........................................................................................................................... 36
3.5 switchport access vlan ............................................................................................................... 37
3.6 switchport trunk allowed vlan ................................................................................................... 38
3.7 switchport trunk allowed vlan all ............................................................................................. 39
3.8 switchport general allowed vlan .............................................................................................. 39
II
3.9 switchport pvid .............................................................................................................................. 40
3.10 show vlan summary...................................................................................................................... 41
3.11 show vlan brief ............................................................................................................................... 42
3.12 show vlan ......................................................................................................................................... 42
3.13 show interface switchport ......................................................................................................... 43
Chapter 4 MAC-based VLAN Commands ................................................................. 44
4.1 mac-vlan mac-address ............................................................................................................... 44
4.2 mac-vlan .......................................................................................................................................... 45
4.3 show mac-vlan ............................................................................................................................... 46
4.4 show mac-vlan interface ............................................................................................................ 46
Chapter 5 Protocol-based VLAN Commands ......................................................... 48
5.1 protocol-vlan template (For T2600G-18TS only) .............................................................. 48
5.2 protocol-vlan template (For other switches) ....................................................................... 49
5.3 protocol-vlan vlan ......................................................................................................................... 50
5.4 protocol-vlan group ..................................................................................................................... 51
5.5 show protocol-vlan template .................................................................................................... 52
5.6 show protocol-vlan vlan ............................................................................................................. 52
Chapter 6 VLAN-VPN Commands .............................................................................. 54
6.1 dot1q-tunnel ................................................................................................................................... 54
6.2 dot1q-tunnel tpid .......................................................................................................................... 55
6.3 dot1q-tunnel mapping ................................................................................................................ 55
6.4 switchport dot1q-tunnel missdrop ......................................................................................... 56
6.5 switchport dot1q-tunnel mapping .......................................................................................... 57
6.6 switchport dot1q-tunnel mode ................................................................................................ 58
6.7 show dot1q-tunnel ....................................................................................................................... 59
6.8 show dot1q-tunnel mapping ..................................................................................................... 59
6.9 show dot1q-tunnel interface .................................................................................................... 60
Chapter 7 Private VLAN Commands ......................................................................... 61
7.1 private-vlan primary ..................................................................................................................... 61
7.2 private-vlan community .............................................................................................................. 62
7.3 private-vlan isolated .................................................................................................................... 62
7.4 private-vlan association ............................................................................................................. 63
7.5 switchport private-vlan ............................................................................................................... 64
7.6 switchport private-vlan host-association ............................................................................ 65
7.7 switchport private-vlan mapping ............................................................................................ 66
III
7.8 show vlan private-vlan ................................................................................................................ 67
7.9 show vlan private-vlan interface .............................................................................................. 67
Chapter 8 L2PT Commands ......................................................................................... 69
8.1 l2protocol-tunnel .......................................................................................................................... 69
8.2 l2protocol-tunnel type ................................................................................................................ 70
8.3 show l2protocol-tunnel global ................................................................................................. 71
8.4 show l2protocol-tunnel interface ............................................................................................ 72
Chapter 9 GVRP Commands ........................................................................................ 74
9.1 gvrp .................................................................................................................................................... 74
9.2 gvrp (interface)............................................................................................................................... 75
9.3 gvrp registration ............................................................................................................................ 75
9.4 gvrp timer ........................................................................................................................................ 76
9.5 show gvrp interface ..................................................................................................................... 77
9.6 show gvrp global ........................................................................................................................... 78
Chapter 10 Voice VLAN Commands ............................................................................ 80
10.1 voice vlan ......................................................................................................................................... 80
10.2 voice vlan aging ............................................................................................................................. 81
10.3 voice vlan priority .......................................................................................................................... 81
10.4 voice vlan mac-address ............................................................................................................. 82
10.5 switchport voice vlan mode ...................................................................................................... 83
10.6 switchport voice vlan security ................................................................................................. 84
10.7 show voice vlan ............................................................................................................................. 85
10.8 show voice vlan oui ...................................................................................................................... 85
10.9 show voice vlan switchport ....................................................................................................... 86
Chapter 11 Etherchannel Commands ......................................................................... 87
11.1 channel-group ............................................................................................................................... 87
11.2 port-channel load-balance ........................................................................................................ 88
11.3 lacp system-priority ..................................................................................................................... 89
11.4 lacp port-priority ........................................................................................................................... 90
11.5 show etherchannel ....................................................................................................................... 91
11.6 show etherchannel load-balance ............................................................................................ 92
11.7 show lacp ......................................................................................................................................... 92
11.8 show lacp sys-id ............................................................................................................................ 93
IV
Chapter 12 User Management Commands ................................................................ 94
12.1 user name (password) ................................................................................................................. 94
12.2 user name (secret) ........................................................................................................................ 95
12.3 service password-recovery ...................................................................................................... 97
12.4 user access-control ip-based .................................................................................................. 98
12.5 user access-control mac-based ............................................................................................. 99
12.6 user access-control port-based .......................................................................................... 100
12.7 line ................................................................................................................................................... 101
12.8 password ...................................................................................................................................... 102
12.9 login ................................................................................................................................................ 103
12.10 login local ...................................................................................................................................... 104
12.11 media-type rj45 .......................................................................................................................... 105
12.12 telnet .............................................................................................................................................. 106
12.13 serial_port baud-rate ................................................................................................................ 106
12.14 show password-recovery ....................................................................................................... 107
12.15 show user account-list............................................................................................................. 108
12.16 show user configuration .......................................................................................................... 108
12.17 show telnet-status..................................................................................................................... 109
Chapter 13 HTTP and HTTPS Commands ................................................................ 110
13.1 ip http server ............................................................................................................................... 110
13.2 ip http max-users (For T2600G-18TS only) ...................................................................... 111
13.3 ip http max-users (For other switches) .............................................................................. 112
13.4 ip http session timeout ............................................................................................................ 113
13.5 ip http secure-server ................................................................................................................ 113
13.6 ip http secure-protocol............................................................................................................ 114
13.7 ip http secure-ciphersuite ...................................................................................................... 115
13.8 ip http secure-max-users ....................................................................................................... 116
13.9 ip http secure-session timeout ............................................................................................. 117
13.10 ip http secure-server download certificate ...................................................................... 117
13.11 ip http secure-server download key ................................................................................... 118
13.12 show ip http configuration ...................................................................................................... 119
13.13 show ip http secure-server .................................................................................................... 120
Chapter 14 ARP Commands ......................................................................................... 121
14.1 arp ................................................................................................................................................... 121
14.2 clear arp-cache .......................................................................................................................... 122
14.3 arp timeout ................................................................................................................................... 122
V
14.4 show arp ........................................................................................................................................ 123
14.5 show ip arp (interface) .............................................................................................................. 124
14.6 show ip arp summary................................................................................................................ 124
Chapter 15 Binding Table Commands ....................................................................... 126
15.1 ip source binding ....................................................................................................................... 126
15.2 ip dhcp snooping ....................................................................................................................... 127
15.3 ip dhcp snooping vlan .............................................................................................................. 128
15.4 ip dhcp snooping information option .................................................................................. 129
15.5 ip dhcp snooping information strategy .............................................................................. 130
15.6 ip dhcp snooping information format ................................................................................. 131
15.7 ip dhcp snooping information remote-id ........................................................................... 133
15.8 ip dhcp snooping information circuit-id ............................................................................. 132
15.9 ip dhcp snooping trust ............................................................................................................. 134
15.10 ip dhcp snooping mac-verify ................................................................................................. 135
15.11 ip dhcp snooping limit rate ..................................................................................................... 136
15.12 ip dhcp snooping decline rate ............................................................................................... 136
15.13 ip dhcp snooping max-entries .............................................................................................. 137
15.14 show ip source binding ............................................................................................................ 138
15.15 show ip dhcp snooping ............................................................................................................ 139
15.16 show ip dhcp snooping interface ......................................................................................... 139
15.17 show ip dhcp snooping information interface ................................................................. 140
Chapter 16 IPv6 Binding Table Commands .............................................................. 142
16.1 ipv6 source binding ................................................................................................................... 142
16.2 ipv6 dhcp snooping .................................................................................................................. 143
16.3 ipv6 dhcp snooping vlan ......................................................................................................... 144
16.4 ipv6 dhcp snooping trust ........................................................................................................ 145
16.5 ipv6 nd snooping ....................................................................................................................... 146
16.6 ipv6 nd snooping vlan .............................................................................................................. 146
16.7 ipv6 nd snooping max-entries ............................................................................................... 147
16.8 show ipv6 source binding ....................................................................................................... 148
16.9 show ipv6 dhcp snooping ....................................................................................................... 149
16.10 show ipv6 dhcp snooping interface .................................................................................... 149
16.11 show ipv6 nd snooping ............................................................................................................ 150
16.12 show ipv6 nd snooping interface ......................................................................................... 151
VI
Chapter 17 IP Verify Source Commands .................................................................. 152
17.1 ip verify source ........................................................................................................................... 152
17.2 show ip verify source ................................................................................................................ 153
17.3 show ip verify source interface ............................................................................................. 153
Chapter 18 IPv6 Verify Source Commands ............................................................. 155
18.1 ipv6 verify source ...................................................................................................................... 155
18.2 show ipv6 verify source ........................................................................................................... 156
18.3 show ipv6 verify source interface ........................................................................................ 156
Chapter 19 ND Detection Commands ....................................................................... 158
19.1 ipv6 nd detection ....................................................................................................................... 158
19.2 ipv6 nd detection vlan .............................................................................................................. 158
19.3 ipv6 nd detection trust ............................................................................................................. 159
19.4 show ipv6 nd detection ........................................................................................................... 160
19.5 show ipv6 nd detection interface ......................................................................................... 160
Chapter 20 ARP Inspection Commands .................................................................... 162
20.1 ip arp inspection(global) .......................................................................................................... 162
20.2 ip arp inspection trust .............................................................................................................. 162
20.3 ip arp inspection(interface)..................................................................................................... 163
20.4 ip arp inspection limit-rate ...................................................................................................... 164
20.5 ip arp inspection recover ........................................................................................................ 165
20.6 show ip arp inspection ............................................................................................................. 166
20.7 show ip arp inspection interface .......................................................................................... 166
20.8 show ip arp inspection statistics .......................................................................................... 167
20.9 clear ip arp inspection statistics ........................................................................................... 168
Chapter 21 DoS Defend Commands .......................................................................... 169
21.1 ip dos-prevent ............................................................................................................................ 169
21.2 ip dos-prevent type................................................................................................................... 170
21.3 show ip dos-prevent ................................................................................................................. 171
Chapter 22 IEEE 802.1X Commands .......................................................................... 172
22.1 dot1x system-auth-control .................................................................................................... 172
22.2 dot1x handshake ....................................................................................................................... 173
22.3 dot1x auth-method ................................................................................................................... 173
22.4 dot1x accounting ....................................................................................................................... 175
22.5 dot1x vlan-assignment ............................................................................................................ 175
VII
22.6 dot1x guest-vlan(global) .......................................................................................................... 176
22.7 dot1x quiet-period..................................................................................................................... 177
22.8 dot1x timeout supplicant-timeout ....................................................................................... 178
22.9 dot1x max-reauth-req .............................................................................................................. 179
22.10 dot1x .............................................................................................................................................. 180
22.11 dot1x guest-vlan(interface) .................................................................................................... 180
22.12 dot1x mab .................................................................................................................................... 181
22.13 dot1x port-control ..................................................................................................................... 182
22.14 dot1x port-method .................................................................................................................... 183
22.15 show dot1x global ..................................................................................................................... 184
22.16 show dot1x interface ................................................................................................................ 185
Chapter 23 PPPoE ID-Insertion Commands ............................................................ 186
23.1 pppoe id-insertion(global)....................................................................................................... 186
23.2 pppoe circuit-id(interface) ...................................................................................................... 187
23.3 pppoe circuit-id type ................................................................................................................ 187
23.4 pppoe remote-id ........................................................................................................................ 188
23.5 show pppoe id-insertion global ............................................................................................ 189
23.6 show pppoe id-insertion interface ....................................................................................... 190
Chapter 24 System Log Commands .......................................................................... 192
24.1 logging buffer .............................................................................................................................. 192
24.2 logging buffer level .................................................................................................................... 193
24.3 logging file flash ......................................................................................................................... 193
24.4 logging file flash frequency .................................................................................................... 194
24.5 logging file flash level ............................................................................................................... 195
24.6 logging host index ..................................................................................................................... 196
24.7 logging console .......................................................................................................................... 197
24.8 logging console level ................................................................................................................ 197
24.9 logging monitor .......................................................................................................................... 198
24.10 logging monitor level ................................................................................................................ 199
24.11 clear logging ................................................................................................................................ 200
24.12 show logging local-config....................................................................................................... 201
24.13 show logging loghost ............................................................................................................... 201
24.14 show logging buffer .................................................................................................................. 202
24.15 show logging flash ..................................................................................................................... 203
VIII
Chapter 25 SSH Commands ......................................................................................... 204
25.1 ip ssh server ................................................................................................................................ 204
25.2 ip ssh version .............................................................................................................................. 204
25.3 ip ssh algorithm .......................................................................................................................... 205
25.4 ip ssh timeout .............................................................................................................................. 206
25.5 ip ssh max-client ........................................................................................................................ 207
25.6 ip ssh download .......................................................................................................................... 207
25.7 remove public-key ..................................................................................................................... 208
25.8 show ip ssh................................................................................................................................... 209
Chapter 26 MAC Address Commands ....................................................................... 210
26.1 mac address-table static ........................................................................................................ 210
26.2 mac address-table aging-time .............................................................................................. 211
26.3 mac address-table filtering .................................................................................................... 212
26.4 mac address-table notification ............................................................................................. 213
26.5 mac address-table max-mac-count ................................................................................... 214
26.6 mac address-table notification (interface) ........................................................................ 215
26.7 mac address-table security ................................................................................................... 217
26.8 show mac address-table ......................................................................................................... 218
26.9 clear mac address-table ......................................................................................................... 218
26.10 show mac address-table aging-time .................................................................................. 219
26.11 show mac address-table max-mac-count ........................................................................ 220
26.12 show mac address-table interface ...................................................................................... 220
26.13 show mac address-table count ............................................................................................ 221
26.14 show mac address-table address ....................................................................................... 222
26.15 show mac address-table vlan ................................................................................................ 223
26.16 show mac address-table notification ................................................................................. 223
26.17 show mac address-table security ........................................................................................ 224
Chapter 27 System Configuration Commands ....................................................... 225
27.1 system-time manual ................................................................................................................. 225
27.2 system-time ntp ......................................................................................................................... 225
27.3 system-time dst predefined .................................................................................................. 228
27.4 system-time dst date ............................................................................................................... 229
27.5 system-time dst recurring ...................................................................................................... 230
27.6 hostname ...................................................................................................................................... 231
27.7 location .......................................................................................................................................... 232
27.8 contact-info ................................................................................................................................. 233
IX
27.9 ip address ..................................................................................................................................... 234
27.10 ip address-alloc .......................................................................................................................... 235
27.11 reset ............................................................................................................................................... 236
27.12 reboot ............................................................................................................................................ 236
27.13 reboot-schedule ........................................................................................................................ 237
27.14 copy running-config startup-config .................................................................................... 238
27.15 copy startup-config tftp .......................................................................................................... 239
27.16 copy tftp startup-config .......................................................................................................... 240
27.17 boot application ......................................................................................................................... 241
27.18 remove backup-image ............................................................................................................. 241
27.19 firmware upgrade ....................................................................................................................... 242
27.20 boot autoinstall start ................................................................................................................. 243
27.21 boot autoinstall persistent-mode ........................................................................................ 244
27.22 boot autoinstall auto-save ...................................................................................................... 245
27.23 boot autoinstall auto-reboot .................................................................................................. 245
27.24 boot autoinstall retry-count ................................................................................................... 246
27.25 show boot autoinstall ............................................................................................................... 247
27.26 show boot autoinstall downloaded-config ....................................................................... 247
27.27 ping ................................................................................................................................................. 248
27.28 tracert ............................................................................................................................................ 249
27.29 show system-info ...................................................................................................................... 250
27.30 show system-info interface ................................................................................................... 251
27.31 show image-info ......................................................................................................................... 252
27.32 show boot ..................................................................................................................................... 252
27.33 show running-config ................................................................................................................. 253
27.34 show running-config | ............................................................................................................... 253
27.35 show startup-config ................................................................................................................. 254
27.36 show system-time ..................................................................................................................... 255
27.37 show system-time dst .............................................................................................................. 255
27.38 show system-time ntp ............................................................................................................. 256
27.39 show cable-diagnostics interface gigabitEthernet ........................................................ 257
27.40 show cable-diagnostics careful interface ......................................................................... 257
27.41 show cpu-utilization .................................................................................................................. 258
27.42 show memory-utilization ......................................................................................................... 259
Chapter 28 IPv6 Address Configuration Commands ............................................ 260
28.1 ipv6 enable ................................................................................................................................... 260
28.2 ipv6 address autoconfig.......................................................................................................... 261
X
28.3 ipv6 address link-local ............................................................................................................. 261
28.4 ipv6 address dhcp ..................................................................................................................... 262
28.5 ipv6 address ra ........................................................................................................................... 263
28.6 ipv6 address eui-64 .................................................................................................................. 264
28.7 ipv6 address ................................................................................................................................ 265
28.8 show ipv6 interface ................................................................................................................... 265
Chapter 29 Ethernet Configuration Commands ..................................................... 267
29.1 interface gigabitEthernet .......................................................................