TP-Link T3700G-28TQ, T3700G-52TQ REV3.0.0 CLI Reference Guide

CLI Reference Guide
T3700G-28TQ/ T3700G-52TQ
1910012359 REV3.0.0
November 2018
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
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.
http://www.tp-link.com
I
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
CONTENTS
Preface .............................................................................................................. 1
Chapter 1 Using the CLI ......................................................................................... 6
1.1 Accessing the CLI ....................................................................................................... 6
1.1.1 Logon by a console port .................................................................................... 6
1.1.2 Configuring the Privileged EXEC Mode Password ............................................ 8
1.1.3 Logon by Telnet .................................................................................................. 9
1.1.4 Logon by SSH ................................................................................................... 10
1.2 CLI Command Modes ................................................................................................ 11
1.3 Security Levels ......................................................................................................... 15
1.4 Conventions .............................................................................................................. 15
1.4.1 Format Conventions ......................................................................................... 15
1.4.2 Special Characters ........................................................................................... 16
1.4.3 Parameter Format............................................................................................. 16
Chapter 2 User Interface ..................................................................................... 17
2.1 enable ....................................................................................................................... 17
2.2 service password-encryption .................................................................................... 17
2.3 enable password....................................................................................................... 18
2.4 enable secret ............................................................................................................ 19
2.5 configure ................................................................................................................... 20
2.6 exit ............................................................................................................................ 20
2.7 end ............................................................................................................................ 21
2.8 show history .............................................................................................................. 21
2.9 clear history .............................................................................................................. 22
Chapter 3 Stack ................................................................................................... 23
3.1 boot auto-copy-sw .................................................................................................... 23
3.2 boot auto-copy-sw allow-downgrade ........................................................................ 23
3.3 boot auto-copy-sw trap ............................................................................................. 24
3.4 switch master ............................................................................................................ 24
3.5 switch standby .......................................................................................................... 25
3.6 switch priority ............................................................................................................ 25
3.7 switch renumber ....................................................................................................... 26
3.8 switch stack-port ....................................................................................................... 27
3.9 switch provision ........................................................................................................ 27
3.10 show switch .............................................................................................................. 28
II
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
3.11 show auto-copy-sw ................................................................................................... 29
3.12 clear switch-synchronization .................................................................................... 29
Chapter 4 IEEE 802.1Q VLAN Commands ........................................................... 31
4.1 vlan ........................................................................................................................... 31
4.2 interface vlan ............................................................................................................ 32
4.3 name ......................................................................................................................... 32
4.4 switchport mode ....................................................................................................... 33
4.5 switchport access vlan .............................................................................................. 33
4.6 switchport trunk allowed vlan ................................................................................... 34
4.7 switchport general allowed vlan ............................................................................... 35
4.8 switchport pvid .......................................................................................................... 36
4.9 switchport trunk native vlan ...................................................................................... 36
4.10 show interface switchport ......................................................................................... 37
4.11 show vlan summary .................................................................................................. 37
4.12 show vlan brief .......................................................................................................... 38
4.13 show vlan .................................................................................................................. 38
Chapter 5 MAC-based VLAN Commands ........................................................... 40
5.1 mac-vlan mac-address ............................................................................................. 40
5.2 show mac-vlan .......................................................................................................... 40
Chapter 6 Protocol VLAN Commands ................................................................. 42
6.1 protocol-vlan template .............................................................................................. 42
6.2 protocol-vlan vlan ..................................................................................................... 43
6.3 protocol-vlan ............................................................................................................. 43
6.4 show protocol-vlan template ..................................................................................... 44
6.5 show protocol-vlan vlan ............................................................................................ 44
Chapter 7 VLAN-VPN Commands ....................................................................... 46
7.1 dot1q-tunnel tpid ....................................................................................................... 46
7.2 switchport dot1q-tunnel mode nni ............................................................................ 46
7.3 show dot1q-tunnel .................................................................................................... 47
Chapter 8 Voice VLAN Commands ..................................................................... 48
8.1 voice vlan .................................................................................................................. 48
8.2 voice vlan (interface) ................................................................................................ 48
8.3 voice vlan priority ...................................................................................................... 49
8.4 voice vlan oui ............................................................................................................ 49
8.5 show voice vlan ........................................................................................................ 50
III
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
8.6 show voice vlan oui-table ......................................................................................... 50
8.7 show voice vlan interface ......................................................................................... 51
Chapter 9 Private VLAN Commands ................................................................... 52
9.1 private-vlan primary .................................................................................................. 52
9.2 private-vlan community............................................................................................. 52
9.3 private-vlan isolated .................................................................................................. 53
9.4 private-vlan association ............................................................................................ 53
9.5 switchport private-vlan .............................................................................................. 54
9.6 switchport private-vlan host-association .................................................................. 55
9.7 switchport private-vlan mapping ............................................................................... 55
9.8 show vlan private-vlan .............................................................................................. 56
9.9 show vlan private-vlan interface ............................................................................... 57
Chapter 10 GVRP Commands ............................................................................... 58
10.1 gvrp ........................................................................................................................... 58
10.2 gvrp (interface).......................................................................................................... 58
10.3 gvrp timer .................................................................................................................. 59
10.4 show gvrp global ....................................................................................................... 60
10.5 show gvrp interface .................................................................................................. 60
Chapter 11 Etherchannel Commands ................................................................... 62
11.1 channel-group ........................................................................................................... 62
11.2 port-channel load-balance ........................................................................................ 63
11.3 lacp system-priority ................................................................................................... 64
11.4 lacp port-priority ........................................................................................................ 64
11.5 show etherchannel ................................................................................................... 65
11.6 show etherchannel load-balance.............................................................................. 66
11.7 show lacp .................................................................................................................. 66
11.8 show lacp sys-id ....................................................................................................... 67
Chapter 12 User Manage Commands ................................................................... 68
12.1 user name (password) .............................................................................................. 68
12.2 user name (secret) ................................................................................................... 69
12.3 user access-control ip-based ................................................................................... 70
12.4 user access-control mac-based ............................................................................... 71
12.5 user access-control port-based ................................................................................ 72
12.6 media-type rj45 ......................................................................................................... 72
12.7 line ............................................................................................................................ 73
12.8 password .................................................................................................................. 74
IV
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
12.9 login local .................................................................................................................. 75
12.10 telnet ......................................................................................................................... 75
12.11 show user account-list .............................................................................................. 76
12.12 show user configuration............................................................................................ 76
12.13 show telnet-status ..................................................................................................... 77
Chapter 13 Binding Table Commands ................................................................... 78
13.1 ip source binding ...................................................................................................... 78
13.2 ip dhcp snooping ...................................................................................................... 79
13.3 ip dhcp snooping vlan ............................................................................................... 79
13.4 ip dhcp snooping information option ........................................................................ 80
13.5 ip dhcp snooping information strategy ..................................................................... 80
13.6 ip dhcp snooping information remote-id ................................................................... 81
13.7 ip dhcp snooping information circuit-id ..................................................................... 82
13.8 ip dhcp snooping trust .............................................................................................. 83
13.9 ip dhcp snooping mac-verify ..................................................................................... 83
13.10 ip dhcp snooping limit rate ........................................................................................ 84
13.11 show ip source binding ............................................................................................. 84
13.12 show ip dhcp snooping ............................................................................................. 85
13.13 show ip dhcp snooping interface .............................................................................. 85
Chapter 14 ARP Inspection Commands ................................................................ 87
14.1 ip arp inspection ....................................................................................................... 87
14.2 ip arp inspection validate .......................................................................................... 87
14.3 ip arp inspection trust ............................................................................................... 88
14.4 ip arp inspection limit-rate ........................................................................................ 89
14.5 ip arp inspection recover .......................................................................................... 90
14.6 show ip arp inspection .............................................................................................. 90
14.7 show ip arp inspection interface ............................................................................... 91
14.8 show ip arp inspection statistics ............................................................................... 91
14.9 clear ip arp inspection statistics ................................................................................ 92
Chapter 15 DoS Defend Commands ..................................................................... 93
15.1 ip dos-prevent type ................................................................................................... 93
Chapter 16 IP Verify Source Commands ............................................................... 95
16.1 ip verify source.......................................................................................................... 95
16.2 show ip verify source ................................................................................................ 96
16.3 show ip verify source interface ................................................................................. 96
V
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 17 IEEE 802.1X Commands ..................................................................... 97
17.1 dot1x system-auth-control ........................................................................................ 97
17.2 dot1x timeout quiet-period ........................................................................................ 97
17.3 dot1x timeout supplicant-timeout.............................................................................. 98
17.4 dot1x timeout tx-period ............................................................................................. 99
17.5 dot1x max-req ......................................................................................................... 100
17.6 dot1x ....................................................................................................................... 100
17.7 dot1x guest-vlan ..................................................................................................... 101
17.8 dot1x timeout guest-vlan-period ............................................................................. 102
17.9 dot1x port-control .................................................................................................... 102
17.10 dot1x port-method .................................................................................................. 103
17.11 dot1x accounting .................................................................................................... 104
17.12 show dot1x global ................................................................................................... 105
17.13 show dot1x interface ............................................................................................... 105
Chapter 18 System Log Commands ................................................................... 106
18.1 logging buffer .......................................................................................................... 106
18.2 logging buffer level ................................................................................................. 106
18.3 logging file flash ...................................................................................................... 107
18.4 logging file flash level ............................................................................................. 108
18.5 logging host ............................................................................................................ 108
18.6 logging host index ................................................................................................... 109
18.7 logging console ........................................................................................................ 110
18.8 logging console level ............................................................................................... 110
18.9 logging monitor ........................................................................................................ 111
18.10 logging monitor level ................................................................................................ 111
18.11 clear logging ............................................................................................................ 112
18.12 show logging config ................................................................................................. 113
18.13 show logging loghost ............................................................................................... 113
18.14 show logging buffer ................................................................................................. 11 4
18.15 show logging flash ................................................................................................... 11 4
Chapter 19 SSH Commands ................................................................................. 116
19.1 ip ssh server ............................................................................................................ 116
19.2 ip ssh version ........................................................................................................... 116
19.3 ip ssh algorithm ....................................................................................................... 117
19.4 ip ssh timeout........................................................................................................... 117
19.5 ip ssh max-client ...................................................................................................... 118
VI
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
19.6 ip ssh download ....................................................................................................... 119
19.7 crypto key generate ................................................................................................. 119
19.8 show ip ssh ............................................................................................................. 120
Chapter 20 HTTP and HTTPS Commands ........................................................... 121
20.1 ip http server ........................................................................................................... 121
20.2 ip http session maxsessions ................................................................................... 122
20.3 ip http session hard-timeout ................................................................................... 122
20.4 ip http session soft-timeout ..................................................................................... 123
20.5 ip http secure-server ............................................................................................... 123
20.6 ip http secure-protocol ............................................................................................ 124
20.7 ip http secure-ciphersuite ....................................................................................... 125
20.8 ip http secure-session hard-timeout ....................................................................... 125
20.9 ip http secure-session soft-timeout ......................................................................... 126
20.10 ip http secure-session maxsessions ...................................................................... 126
20.11 ip http secure-server download certificate .............................................................. 127
20.12 ip http secure-server download key ....................................................................... 128
20.13 show ip http configuration ....................................................................................... 129
20.14 show ip http secure-server ..................................................................................... 129
Chapter 21 MAC Address Commands ................................................................ 130
21.1 mac address-table static ......................................................................................... 130
21.2 mac address-table aging-time ................................................................................ 131
21.3 mac address-table filtering ..................................................................................... 131
21.4 mac address-table max-mac-count ........................................................................ 132
21.5 show mac address-table ......................................................................................... 133
21.6 show mac address-table aging-time....................................................................... 134
21.7 show mac address-table max-mac-count .............................................................. 134
21.8 show mac address-table interface .......................................................................... 135
21.9 show mac address-table count ............................................................................... 136
21.10 show mac address-table address ........................................................................... 136
21.11 show mac address-table vlan ................................................................................. 137
Chapter 22 System Configuration Commands ................................................... 139
22.1 system-time manual ............................................................................................... 139
22.2 system-time ntp ...................................................................................................... 139
22.3 system-time dst predefined .................................................................................... 141
22.4 system-time dst date .............................................................................................. 142
22.5 system-time dst recurring ....................................................................................... 143
VII
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
22.6 hostname ................................................................................................................ 144
22.7 location ................................................................................................................... 144
22.8 contact-info ............................................................................................................. 145
22.9 ip address ............................................................................................................... 146
22.10 ip address-alloc dhcp .............................................................................................. 146
22.11 reset ........................................................................................................................ 147
22.12 reboot ...................................................................................................................... 147
22.13 boot application ...................................................................................................... 148
22.14 copy running-config startup-config ......................................................................... 149
22.15 copy startup-config tftp ........................................................................................... 149
22.16 copy startup-config usb .......................................................................................... 150
22.17 copy tftp startup-config ........................................................................................... 150
22.18 copy usb ................................................................................................................. 151
22.19 remove backup-image ............................................................................................ 151
22.20 firmware upgrade .................................................................................................... 152
22.21 firmware upgrade bootloader ................................................................................. 153
22.22 firmware upgrade xmodem ..................................................................................... 153
22.23 ping ......................................................................................................................... 154
22.24 tracert ...................................................................................................................... 155
22.25 show system-time ................................................................................................... 155
22.26 show system-time detail ......................................................................................... 156
22.27 show system-time ntp ............................................................................................. 156
22.28 show system-info .................................................................................................... 157
22.29 show environment .................................................................................................. 157
22.30 show usb ................................................................................................................. 158
22.31 show files-in-usb ..................................................................................................... 158
22.32 show fiber-ports ...................................................................................................... 159
22.33 show image-info ..................................................................................................... 159
22.34 show running-config ............................................................................................... 160
22.35 show startup-config ................................................................................................ 160
22.36 show boot ............................................................................................................... 161
22.37 show cable-diagnostics interface ........................................................................... 161
22.38 show cpu-utilization ................................................................................................ 162
22.39 show memory-utilization ......................................................................................... 162
Chapter 23 Ethernet Configuration Commands .................................................. 163
23.1 interface gigabitEthernet ........................................................................................ 163
23.2 interface range gigabitEthernet .............................................................................. 163
VIII
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
23.3 interface ten-gigabitEthernet .................................................................................. 164
23.4 interface range ten-gigabitEthernet ........................................................................ 165
23.5 description .............................................................................................................. 165
23.6 shutdown ................................................................................................................ 166
23.7 flow-control ............................................................................................................. 167
23.8 duplex ..................................................................................................................... 167
23.9 jumbo ...................................................................................................................... 168
23.10 speed ...................................................................................................................... 169
23.11 storm-control ........................................................................................................... 169
23.12 bandwidth ............................................................................................................... 170
23.13 clear counters ......................................................................................................... 171
23.14 show interface status .............................................................................................. 172
23.15 show interface counters.......................................................................................... 172
23.16 show interface configuration ................................................................................... 173
23.17 show storm-control ................................................................................................. 174
23.18 show bandwidth ...................................................................................................... 174
Chapter 24 Class of Service Commands ............................................................ 176
24.1 classofservice trust ................................................................................................. 176
24.2 classofservice priority ............................................................................................. 177
24.3 classofservice queue cos-map ............................................................................... 177
24.4 classofservice queue dscp-map ............................................................................. 178
24.5 classofservice queue mode .................................................................................... 179
24.6 classofservice queue min-bandwith ....................................................................... 180
24.7 show classofservice interface ................................................................................. 181
24.8 show classofservice cos-map ................................................................................. 181
24.9 show classofservice dscp-map ............................................................................... 182
24.10 show classofservice queue mode .......................................................................... 182
24.11 show classofservice queue trust ............................................................................ 183
Chapter 25 Differentiated Services Commands ................................................. 184
25.1 diffserv .................................................................................................................... 184
25.2 class-map ............................................................................................................... 184
25.3 class-map match-all ................................................................................................ 185
25.4 class-map rename .................................................................................................. 185
25.5 match any ............................................................................................................... 186
25.6 match class-map .................................................................................................... 186
25.7 match dstl4port ....................................................................................................... 187
25.8 match srcl4port ....................................................................................................... 188
IX
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
25.9 match protocol ........................................................................................................ 188
25.10 match dstip6 ........................................................................................................... 189
25.11 match srcip6 ........................................................................................................... 189
25.12 match ip dscp.......................................................................................................... 190
25.13 match ip6flowlbl ...................................................................................................... 191
25.14 match cos ............................................................................................................... 191
25.15 match secondary-cos ............................................................................................. 192
25.16 match destination-address mac ............................................................................. 192
25.17 match source-address mac .................................................................................... 193
25.18 match dstip ............................................................................................................. 194
25.19 match srcip ............................................................................................................. 194
25.20 match ethertype ...................................................................................................... 195
25.21 match ip .................................................................................................................. 195
25.22 match vlan .............................................................................................................. 196
25.23 match secondary vlan ............................................................................................. 197
25.24 policy-map .............................................................................................................. 197
25.25 policy-map in........................................................................................................... 198
25.26 policy-map out ........................................................................................................ 198
25.27 class ........................................................................................................................ 199
25.28 assign-queue .......................................................................................................... 199
25.29 conform-color .......................................................................................................... 200
25.30 drop ......................................................................................................................... 200
25.31 mark cos ................................................................................................................. 201
25.32 mark cos-as-sec-cos .............................................................................................. 202
25.33 mirror....................................................................................................................... 202
25.34 redirect .................................................................................................................... 203
25.35 redirect lag .............................................................................................................. 203
25.36 simple ..................................................................................................................... 204
25.37 single-rate ............................................................................................................... 205
25.38 two-rate ................................................................................................................... 206
25.39 service-policy .......................................................................................................... 208
25.40 service-policy (interface)......................................................................................... 208
25.41 show diffserv ........................................................................................................... 209
25.42 show diffserv service brief ...................................................................................... 209
25.43 show diffserv service .............................................................................................. 210
25.44 show class-map ...................................................................................................... 210
25.45 show policy-map ...................................................................................................... 2 11
25.46 show policy-map interface ....................................................................................... 211
X
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
25.47 show policy-map interface lag ................................................................................ 212
Chapter 26 Port Mirror Commands ..................................................................... 213
26.1 monitor session destination interface ..................................................................... 213
26.2 monitor session source interface ............................................................................ 214
26.3 show monitor session ............................................................................................. 215
Chapter 27 Port Protection Commands .............................................................. 216
27.1 switchport protected name ..................................................................................... 216
27.2 switchport protected ............................................................................................... 216
27.3 show switchport protected ...................................................................................... 217
Chapter 28 Loopback Detection Commands ..................................................... 218
28.1 loopback-detection (global) .................................................................................... 218
28.2 loopback-detection interval ..................................................................................... 218
28.3 loopback-detection recovery-time .......................................................................... 219
28.4 loopback-detection (interface) ................................................................................ 219
28.5 loopback-detection config ....................................................................................... 220
28.6 loopback-detection recover .................................................................................... 221
28.7 show loopback-detection global ............................................................................. 221
28.8 show loopback-detection interface ......................................................................... 222
Chapter 29 ACL Commands ................................................................................ 223
29.1 time-range ............................................................................................................... 223
29.2 absolute .................................................................................................................. 223
29.3 periodic ................................................................................................................... 224
29.4 access-list create .................................................................................................... 225
29.5 mac access-list ....................................................................................................... 226
29.6 access-list standard ................................................................................................ 226
29.7 access-list extended ............................................................................................... 227
29.8 rule .......................................................................................................................... 229
29.9 access-list bind acl (interface) ................................................................................ 231
29.10 access-list bind acl (vlan) ....................................................................................... 231
29.11 access-list resequence ........................................................................................... 232
29.12 show time-range ..................................................................................................... 232
29.13 show access-list ..................................................................................................... 233
29.14 show access-list bind .............................................................................................. 233
Chapter 30 MSTP Commands ............................................................................. 234
30.1 spanning-tree (global) ............................................................................................. 234
XI
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
30.2 spanning-tree (interface) ........................................................................................ 234
30.3 spanning-tree common-config ................................................................................ 235
30.4 spanning-tree mode ................................................................................................ 236
30.5 spanning-tree mst configuration ............................................................................. 237
30.6 instance .................................................................................................................. 237
30.7 name ....................................................................................................................... 238
30.8 revision ................................................................................................................... 239
30.9 spanning-tree mst instance .................................................................................... 239
30.10 spanning-tree mst ................................................................................................... 240
30.11 spanning-tree priority .............................................................................................. 241
30.12 spanning-tree timer ................................................................................................. 241
30.13 spanning-tree hold-count ........................................................................................ 242
30.14 spanning-tree max-hops ......................................................................................... 242
30.15 spanning-tree bpdufilter .......................................................................................... 243
30.16 spanning-tree bpduguard ....................................................................................... 243
30.17 spanning-tree bpduflood ......................................................................................... 244
30.18 spanning-tree guard loop........................................................................................ 245
30.19 spanning-tree guard root ........................................................................................ 245
30.20 spanning-tree guard tc ............................................................................................ 246
30.21 spanning-tree mcheck ............................................................................................ 246
30.22 show spanning-tree active ...................................................................................... 247
30.23 show spanning-tree bridge ..................................................................................... 247
30.24 show spanning-tree interface ................................................................................. 248
30.25 show spanning-tree interface-security ................................................................... 249
30.26 show spanning-tree mst ......................................................................................... 249
Chapter 31 IGMP Snooping Commands ............................................................. 251
31.1 ip igmp snooping (global) ....................................................................................... 251
31.2 ip igmp snooping (interface) ................................................................................... 251
31.3 ip igmp snooping header-validation ....................................................................... 252
31.4 ip igmp snooping rtime ........................................................................................... 252
31.5 ip igmp snooping rtime (interface) .......................................................................... 253
31.6 ip igmp snooping mtime.......................................................................................... 254
31.7 ip igmp snooping mtime (interface) ........................................................................ 254
31.8 ip igmp snooping immediate-leave ......................................................................... 255
31.9 ip igmp snooping max-response-time .................................................................... 255
31.10 ip igmp snooping drop-unknown ............................................................................ 256
31.11 ip igmp snooping vlan-config .................................................................................. 256
XII
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
31.12 ip igmp snooping querier ........................................................................................ 258
31.13 ip igmp snooping querier address .......................................................................... 258
31.14 ip igmp snooping querier query-interval ................................................................. 259
31.15 ip igmp snooping querier timer expiry .................................................................... 259
31.16 ip igmp snooping querier version ........................................................................... 260
31.17 ip igmp snooping querier vlan ................................................................................ 260
31.18 show ip igmp snooping ........................................................................................... 261
31.19 show ip igmp snooping interface ............................................................................ 262
31.20 show ip igmp snooping vlan ................................................................................... 262
31.21 show ip igmp snooping ssm ................................................................................... 263
31.22 show ip igmp snooping querier ............................................................................... 263
31.23 show ip igmp snooping querier vlan ....................................................................... 264
31.24 show ip igmp profile ................................................................................................ 264
31.25 clear ip igmp snooping statistics ............................................................................. 265
Chapter 32 MLD Snooping Commands ............................................................... 266
32.1 ipv6 mld snooping (global) ..................................................................................... 266
32.2 ipv6 mld snooping (interface) ................................................................................. 266
32.3 ipv6 mld snooping rtime.......................................................................................... 267
32.4 ipv6 mld snooping rtime (interface) ........................................................................ 267
32.5 ipv6 mld snooping mtime ........................................................................................ 268
32.6 ipv6 mld snooping mtime (interface) ...................................................................... 268
32.7 ipv6 mld snooping immediate-leave ....................................................................... 269
32.8 ipv6 mld snooping max-response-time .................................................................. 270
32.9 ipv6 mld snooping drop-unknown .......................................................................... 270
32.10 ipv6 mld snooping vlan-config ................................................................................ 271
32.11 ipv6 mld snooping querier ...................................................................................... 272
32.12 ipv6 mld snooping querier address ........................................................................ 272
32.13 ipv6 mld snooping querier query-interval ............................................................... 273
32.14 ipv6 mld snooping querier timer expiry .................................................................. 273
32.15 ipv6 mld snooping querier vlan ............................................................................... 274
32.16 ipv6 mld profile........................................................................................................ 275
32.17 deny ........................................................................................................................ 275
32.18 permit ...................................................................................................................... 276
32.19 range ....................................................................................................................... 276
32.20 ipv6 mld filter ........................................................................................................... 277
32.21 show ipv6 mld snooping ......................................................................................... 277
32.22 show ipv6 mld snooping interface .......................................................................... 278
XIII
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
32.23 show ipv6 mld snooping vlan ................................................................................. 278
32.24 show ipv6 mld snooping ssm ................................................................................. 279
32.25 show ipv6 mld snooping querier ............................................................................. 280
32.26 show ipv6 mld snooping querier vlan ..................................................................... 280
32.27 show ipv6 mld profile .............................................................................................. 281
32.28 clear ipv6 mld snooping statistics ........................................................................... 281
Chapter 33 MVR Commands ............................................................................... 282
33.1 mvr .......................................................................................................................... 282
33.2 mvr (interface)......................................................................................................... 282
33.3 mvr mode ................................................................................................................ 283
33.4 mvr vlan .................................................................................................................. 283
33.5 mvr vlan (interface) ................................................................................................. 284
33.6 mvr group ................................................................................................................ 284
33.7 mvr type .................................................................................................................. 285
33.8 mvr immediate ........................................................................................................ 286
33.9 show mvr ................................................................................................................ 286
33.10 show mvr interface ................................................................................................. 287
33.11 show mvr members ................................................................................................ 287
33.12 show mvr traffic ....................................................................................................... 288
Chapter 34 Static Multicast MAC Address Table Commands ............................ 289
34.1 multicast mac-address-table .................................................................................. 289
34.2 show multicast mac-address-table ......................................................................... 290
Chapter 35 SNMP Commands ............................................................................. 291
35.1 snmp-server view ................................................................................................... 291
35.2 snmp-server group ................................................................................................. 292
35.3 snmp-server user .................................................................................................... 293
35.4 snmp-server community ......................................................................................... 294
35.5 snmp-server host .................................................................................................... 295
35.6 snmp-server engineID ............................................................................................ 296
35.7 snmp-server traps ................................................................................................... 297
35.8 snmp-server traps ospf all ...................................................................................... 299
35.9 snmp-server traps ospf errors ................................................................................ 299
35.10 snmp-server traps ospf lsa ..................................................................................... 300
35.11 snmp-server traps ospf overflow ............................................................................ 301
35.12 snmp-server traps ospf retransmit .......................................................................... 301
35.13 snmp-server traps ospf state-change ..................................................................... 302
XIV
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
35.14 snmp-server traps link-status ................................................................................. 303
35.15 rmon history ............................................................................................................ 303
35.16 rmon event .............................................................................................................. 304
35.17 rmon alarm .............................................................................................................. 305
35.18 show snmp-server traps global .............................................................................. 307
35.19 show snmp-server traps ospf ................................................................................. 307
35.20 show snmp-server traps port .................................................................................. 307
35.21 show snmp-server view .......................................................................................... 308
35.22 show snmp-server group ........................................................................................ 308
35.23 show snmp-server user .......................................................................................... 309
35.24 show snmp-server community ................................................................................ 309
35.25 show snmp-server host .......................................................................................... 309
35.26 show snmp-server engineID ................................................................................... 310
35.27 show rmon history .................................................................................................. 310
35.28 show rmon event ..................................................................................................... 311
35.29 show rmon alarm ..................................................................................................... 311
Chapter 36 LLDP Commands .............................................................................. 312
36.1 lldp hold-multiplier ................................................................................................... 312
36.2 lldp timer ................................................................................................................. 312
36.3 lldp receive .............................................................................................................. 313
36.4 lldp transmit ............................................................................................................ 314
36.5 lldp snmp-trap ......................................................................................................... 314
36.6 lldp tlv-select ........................................................................................................... 315
36.7 lldp med-fast-count ................................................................................................. 316
36.8 lldp med-status ....................................................................................................... 316
36.9 lldp med-tlv-select ................................................................................................... 317
36.10 show lldp ................................................................................................................. 317
36.11 show lldp interface .................................................................................................. 318
36.12 show lldp local-information interface ...................................................................... 318
36.13 show lldp neighbor-information interface ............................................................... 319
36.14 show lldp traffic interface ........................................................................................ 319
36.15 clear lldp statistics................................................................................................... 320
Chapter 37 Static Routes Commands ................................................................. 321
37.1 interface vlan .......................................................................................................... 321
37.2 interface loopback .................................................................................................. 321
37.3 interface range port-channel .................................................................................. 322
37.4 interface port-channel ............................................................................................. 322
XV
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
37.5 switchport ................................................................................................................ 323
37.6 shutdown ................................................................................................................ 323
37.7 ip route .................................................................................................................... 324
37.8 ip routing ................................................................................................................. 325
37.9 show interface vlan ................................................................................................. 325
37.10 show ip interface ..................................................................................................... 326
37.11 show ip interface brief ............................................................................................. 326
37.12 show ip route .......................................................................................................... 327
37.13 show ip route specify .............................................................................................. 327
37.14 show ip route summary .......................................................................................... 328
Chapter 38 DHCP Server Commands ................................................................. 329
38.1 service dhcp server ................................................................................................ 329
38.2 option code ............................................................................................................. 329
38.3 extend-option capwap-ac-ip ................................................................................... 330
38.4 extend-option vendor-class-id ................................................................................ 330
38.5 ip dhcp server conflict-logging ................................................................................ 331
38.6 ip dhcp server exclude-address ............................................................................. 332
38.7 ip dhcp server pool ................................................................................................. 332
38.8 ip dhcp server ping packets .................................................................................... 333
38.9 network ................................................................................................................... 333
38.10 no network .............................................................................................................. 334
38.11 lease ....................................................................................................................... 334
38.12 address hardware-address ..................................................................................... 335
38.13 address client-identifier........................................................................................... 336
38.14 default-gateway ...................................................................................................... 337
38.15 dns-server ............................................................................................................... 337
38.16 ntp-server ................................................................................................................ 338
38.17 netbios-name-server ............................................................................................... 338
38.18 netbios-node-type ................................................................................................... 339
38.19 next-server .............................................................................................................. 340
38.20 domain-name .......................................................................................................... 340
38.21 bootfile .................................................................................................................... 341
38.22 show ip dhcp server conflictLogging ...................................................................... 341
38.23 show ip dhcp server status ..................................................................................... 342
38.24 show ip dhcp server statistics ................................................................................. 342
38.25 show ip dhcp server pool ........................................................................................ 343
38.26 show ip dhcp server excluded-address .................................................................. 343
XVI
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
38.27 show ip dhcp server binding ................................................................................... 343
38.28 clear ip dhcp server conflictLogging ....................................................................... 344
38.29 clear ip dhcp server statistics ................................................................................. 344
38.30 clear ip dhcp server binding ................................................................................... 345
Chapter 39 DHCP Relay ....................................................................................... 346
39.1 service dhcp relay ................................................................................................... 346
39.2 ip helper-address .................................................................................................... 346
39.3 ip dhcp relay information ........................................................................................ 347
39.4 ip dhcp relay information policy .............................................................................. 347
39.5 ip dhcp relay information circuit-id .......................................................................... 348
39.6 ip dhcp relay information remote-id ........................................................................ 348
39.7 show ip dhcp relay .................................................................................................. 349
Chapter 40 Proxy ARP Commands ...................................................................... 350
40.1 ip proxy-arp ............................................................................................................. 350
40.2 ip local-proxy-arp .................................................................................................... 350
40.3 show ip proxy-arp ................................................................................................... 351
40.4 show ip local-proxy-arp........................................................................................... 351
Chapter 41 IGMP Commands .............................................................................. 353
41.1 ip igmp (global) ....................................................................................................... 353
41.2 ip igmp (interface) ................................................................................................... 353
41.3 ip igmp header-validation ....................................................................................... 354
41.4 ip igmp version........................................................................................................ 354
41.5 ip igmp last-member-query-count........................................................................... 355
41.6 ip igmp last-member-query-interval ........................................................................ 355
41.7 ip igmp query-interval ............................................................................................. 356
41.8 ip igmp query-max-response-time .......................................................................... 357
41.9 ip igmp robustness ................................................................................................. 357
41.10 ip igmp startup-query-interval ................................................................................. 358
41.11 ip igmp startup-query-count .................................................................................... 359
41.12 ip igmp profile ......................................................................................................... 359
41.13 deny ........................................................................................................................ 360
41.14 permit ...................................................................................................................... 360
41.15 range ....................................................................................................................... 361
41.16 ip igmp filter ............................................................................................................ 361
41.17 show ip igmp ........................................................................................................... 362
41.18 show ip igmp profile ................................................................................................ 363
XVII
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
41.19 show ip igmp groups ............................................................................................... 363
41.20 show ip igmp groups interface ................................................................................ 364
41.21 show ip igmp groups interface vlan ........................................................................ 364
41.22 show ip igmp interface ............................................................................................ 365
41.23 show ip igmp interface vlan .................................................................................... 365
Chapter 42 PIM Commands ................................................................................. 367
42.1 ip multicast-routing ................................................................................................. 367
42.2 ip pim (global) ......................................................................................................... 367
42.3 ip pim (interface) ..................................................................................................... 368
42.4 ip pim ssm ............................................................................................................... 368
42.5 ip pim bsr-candidate interface ................................................................................ 369
42.6 ip pim rp-candidate interface .................................................................................. 370
42.7 ip pim rp-address .................................................................................................... 371
42.8 ip pim bsr-border .................................................................................................... 371
42.9 ip pim dr-priority ...................................................................................................... 372
42.10 ip pim join-prune-interval ........................................................................................ 373
42.11 ip pim hello-interval ................................................................................................. 373
42.12 show ip multicast .................................................................................................... 374
42.13 show ip mroute ....................................................................................................... 374
42.14 show ip mfc ............................................................................................................. 375
42.15 show ip pim interface .............................................................................................. 375
42.16 show ip pim neighbor .............................................................................................. 376
42.17 show ip pim bsr-router ............................................................................................ 377
42.18 show ip pim rp mapping.......................................................................................... 377
42.19 show ip pim rp hash ................................................................................................ 378
42.20 show ip pim ssm ..................................................................................................... 378
42.21 show ip pim statistic ................................................................................................ 379
Chapter 43 Static Multicast Routing Commands ................................................ 380
43.1 ip mroute ................................................................................................................. 380
43.2 show ip mroute static .............................................................................................. 381
Chapter 44 VRRP Commands .............................................................................. 382
44.1 ip vrrp vrid ............................................................................................................... 382
44.2 ip vrrp vrid virtual-ip ................................................................................................ 383
44.3 ip vrrp vrid virtual-ip (secondary) ............................................................................ 383
44.4 ip vrrp vrid description ............................................................................................ 384
44.5 ip vrrp vrid priority ................................................................................................... 384
XVIII
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
44.6 ip vrrp vrid timer-advertise ...................................................................................... 385
44.7 ip vrrp vrid preempt-mode ...................................................................................... 386
44.8 ip vrrp vrid authentication-mode ............................................................................. 387
44.9 ip vrrp vrid track interface ....................................................................................... 388
44.10 clear ip vrrp statistics .............................................................................................. 388
44.11 show ip vrrp ............................................................................................................ 389
44.12 show ip vrrp statistics ............................................................................................. 390
Chapter 45 RIP Commands ................................................................................. 391
45.1 router rip ................................................................................................................. 391
45.2 network ................................................................................................................... 391
45.3 version .................................................................................................................... 392
45.4 timer basic .............................................................................................................. 393
45.5 distance .................................................................................................................. 393
45.6 auto-summary ......................................................................................................... 394
45.7 default-metric .......................................................................................................... 394
45.8 redistribute .............................................................................................................. 395
45.9 poison-reverse ........................................................................................................ 396
45.10 split-horizon ............................................................................................................ 396
45.11 ip rip receive version ............................................................................................... 397
45.12 ip rip send version .................................................................................................. 397
45.13 ip rip authentication-mode ...................................................................................... 398
45.14 show ip rip ............................................................................................................... 399
Chapter 46 OSPF Commands ............................................................................. 400
46.1 router ospf ............................................................................................................... 400
46.2 router-id .................................................................................................................. 400
46.3 network ................................................................................................................... 401
46.4 maximum-paths ...................................................................................................... 402
46.5 redistribute .............................................................................................................. 402
46.6 default-metric .......................................................................................................... 403
46.7 default-information originate ................................................................................... 404
46.8 auto-cost ................................................................................................................. 405
46.9 distance .................................................................................................................. 406
46.10 timers throttle spf .................................................................................................... 407
46.11 compatible rfc1583 ................................................................................................. 407
46.12 passive-interface..................................................................................................... 408
46.13 passive-interface default ......................................................................................... 409
46.14 no area .................................................................................................................... 409
XIX
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
46.15 area stub ................................................................................................................. 410
46.16 area nssa ................................................................................................................ 410
46.17 area default-cost ...................................................................................................... 411
46.18 area range .............................................................................................................. 412
46.19 area virtual-link ....................................................................................................... 413
46.20 area virtual-link authentication ................................................................................ 414
46.21 area virtual-link authentication-key ......................................................................... 415
46.22 area virtual-link message-digest-key ...................................................................... 416
46.23 ip ospf cost .............................................................................................................. 417
46.24 ip ospf retransmit-interval ....................................................................................... 418
46.25 ip ospf transmit-delay ............................................................................................. 418
46.26 ip ospf priority ......................................................................................................... 419
46.27 ip ospf hello-interval ................................................................................................ 420
46.28 ip ospf dead-interval ............................................................................................... 420
46.29 ip ospf authentication .............................................................................................. 421
46.30 ip ospf authentication-key ....................................................................................... 422
46.31 ip ospf message-digest-key .................................................................................... 422
46.32 ip ospf network ........................................................................................................ 423
46.33 ip ospf database-filter all out................................................................................... 424
46.34 ip ospf mtu-ignore ................................................................................................... 424
46.35 clear ip ospf ............................................................................................................ 425
46.36 show ip ospf ............................................................................................................ 425
46.37 show ip ospf database ............................................................................................ 426
46.38 show ip ospf interface ............................................................................................. 427
46.39 show ip ospf neighbor ............................................................................................. 427
46.40 show ip ospf virtual-links ......................................................................................... 428
46.41 show ip ospf border-routers .................................................................................... 428
46.42 show ip route ospf .................................................................................................. 429
46.43 show ip ospf area database.................................................................................... 429
46.44 show ip ospf area interface .................................................................................... 430
46.45 show ip ospf area neighbor .................................................................................... 431
Chapter 47 SDM Template Commands ............................................................... 432
47.1 sdm prefer ............................................................................................................... 432
47.2 show sdm prefer dual-ipv4-and-ipv6 default .......................................................... 433
47.3 show sdm prefer ipv4-routing ................................................................................. 433
Chapter 48 AAA Commands................................................................................ 434
48.1 tacacas-server host ................................................................................................ 434
XX
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
48.2 show tacacs-server ................................................................................................. 435
48.3 radius-server host ................................................................................................... 436
48.4 show radius-server ................................................................................................. 437
48.5 aaa authentication login.......................................................................................... 437
48.6 aaa authentication enable ...................................................................................... 438
48.7 aaa authentication dot1x default ............................................................................ 440
48.8 aaa accounting dot1x default ................................................................................. 440
48.9 show aaa authentication ......................................................................................... 441
48.10 show aaa accounting .............................................................................................. 441
48.11 line console ............................................................................................................. 442
48.12 login authentication (console) ................................................................................. 442
48.13 enable authentication (console) ............................................................................. 443
48.14 line telnet ................................................................................................................ 444
48.15 login authentication (telnet) .................................................................................... 444
48.16 enable authentication (telnet) ................................................................................. 445
48.17 line ssh .................................................................................................................... 445
48.18 login authentication (ssh) ....................................................................................... 446
48.19 enable authentication (ssh) .................................................................................... 447
48.20 show aaa global ...................................................................................................... 447
Chapter 49 ARP Commands ................................................................................ 449
49.1 arp ........................................................................................................................... 449
49.2 clear arp-cache ....................................................................................................... 449
49.3 arp timeout .............................................................................................................. 450
49.4 arp resptime ............................................................................................................ 450
49.5 arp retries ................................................................................................................ 451
49.6 arp dynamic-renew ................................................................................................. 452
49.7 show arp ................................................................................................................. 452
49.8 show ip arp (interface) ............................................................................................ 453
49.9 show ip arp summary ............................................................................................. 453
Chapter 50 IPv6 Address Configuration Commands .......................................... 454
50.1 ipv6 enable ............................................................................................................. 454
50.2 ipv6 address autoconfig.......................................................................................... 454
50.3 ipv6 address link-local ............................................................................................ 455
50.4 ipv6 address dhcp .................................................................................................. 456
50.5 ipv6 address ra ....................................................................................................... 456
50.6 ipv6 address eui-64 ................................................................................................ 457
50.7 ipv6 address ........................................................................................................... 458
XXI
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
50.8 ipv6 gateway ........................................................................................................... 458
50.9 show ipv6 interface ................................................................................................. 459
Chapter 51 Management Port Commands .......................................................... 460
51.1 management-port protocol ..................................................................................... 460
51.2 management-port protocol dhcp client-id ............................................................... 460
51.3 management-port ip ............................................................................................... 461
51.4 management-port ipv6 enable ................................................................................ 461
51.5 management-port ipv6 address .............................................................................. 462
51.6 management-port ipv6 address eui-64 .................................................................. 463
51.7 management-port ipv6 gateway ............................................................................. 463
51.8 management-port ipv6 address dhcp ..................................................................... 464
51.9 management-port ipv6 address autoconfig ............................................................ 464
Chapter 52 Auto VoIP Commands ...................................................................... 466
52.1 auto-voip ................................................................................................................. 466
52.2 auto-voip ................................................................................................................. 466
52.3 auto-voip dot1p ....................................................................................................... 467
52.4 auto-voip dscp ........................................................................................................ 467
52.5 auto-voip untagged ................................................................................................. 468
52.6 auto-voip none ........................................................................................................ 469
52.7 auto-voip auth ......................................................................................................... 469
52.8 auto-voip priority ..................................................................................................... 470
52.9 show auto-voip ....................................................................................................... 470
XXII
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

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 T3700G-28TQ/T3700G-52TQ. The commands in this guide apply to these models if not specially noted, and T3700G-52TQ is taken as an example model in the example commands.
Some models featured in this guide may be unavailable in your country or region. For local sales information, visit http://www.tp-link.com
Overview of this Guide
Chapter 1: Using the CLI
Provide information about how to use the CLI, CLI Command Modes, Security Levels and some
Conventions.
.
Chapter 2: User Interface
Provide information about the commands used to switch between five CLI Command Modes.
Chapter 3: Stack
Provide information about the commands used for configuring stack.
Chapter 4: IEEE 802.1Q VLAN Commands
Provide information about the commands used for configuring IEEE 802.1Q VLAN.
Chapter 5: MAC-based VLAN Commands
Provide information about the commands used for configuring MAC-based VLAN.
Chapter 6: Protocol VLAN Commands
Provide information about the commands used for configuring Protocol VLAN.
Chapter 7: VLAN-VPN Commands
Provide information about the commands used for configuring VLAN-VPN (Virtual Private
Network) function.
Chapter 8: Voice VLAN Commands
Provide information about the commands used for configuring Voice VLAN.
Chapter 9: Private VLAN Commands
Provide information about the commands used for configuring Private VLAN.
Chapter 10: GVRP Commands
Provide information about the commands used for configuring GVRP (GARP VLAN registration
protocol).
1
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 11: EtherChannel Commands
Provide information about the commands used for configuring LAG (Link Aggregation Group)
and LACP (Link Aggregation Control Protocol).
Chapter 12: User Manage Commands
Provide information about the commands used for user management.
Chapter 13: Binding Table Commands
Provide information about the commands used for binding the IP address, MAC address, VLAN
and the connected Port number of the Host together.
Chapter 14: ARP Inspection Commands
Provide information about the commands used for protecting the switch from the ARP
cheating or ARP Attack.
Chapter 15: DoS Defend Command
Provide information about the commands used for DoS defend and detecting the DoS attack.
Chapter 16: 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 17: IEEE 802.1X Commands
Provide information about the commands used for configuring IEEE 802.1X function.
Chapter 18: System Log Commands
Provide information about the commands used for configuring system log.
Chapter 19: SSH Commands
Provide information about the commands used for configuring and managing SSH (Security
Shell).
Chapter 20: HTTP and HTTPS Commands
Provide information about the commands used for configuring the HTTP and HTTPS logon.
Chapter 21: MAC Address Commands
Provide information about the commands used for MAC Address configuration.
Chapter 22: 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
device diagnose, including loopback test and cable test.
Chapter 23: Ethernet Configuration Commands
Provide information about the commands used for configuring the Bandwidth Control,
Negotiation Mode, and Storm Control for ethernet ports.
2
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 24: Class of Service Commands
Provide information about the commands used for configuring the CoS function.
Chapter 25: Differentiated Services Commands
Provide information about the commands used for configuring the Differentiated Services
(DiffServ) function.
Chapter 26: Port Mirror Commands
Provide information about the commands used for configuring the Port Mirror function.
Chapter 27: Port Isolation Commands
Provide information about the commands used for configuring Port Isolation function.
Chapter 28: Loopback Detection Commands
Provide information about the commands used for configuring the Loopback Detection
function.
Chapter 29: ACL Commands
Provide information about the commands used for configuring the ACL (Access Control List).
Chapter 30: MSTP Commands
Provide information about the commands used for configuring the MSTP (Multiple Spanning
Tree Protocol).
Chapter 31: IGMP Snooping Commands
Provide information about the commands used for configuring the IGMP Snooping (Internet
Group Management Protocol Snooping).
Chapter 32: MLD Snooping Commands
Provide information about the commands used for configuring the MLD Snooping (Multicast
Listener Discovery Snooping).
Chapter 33: MVR Commands
Provide information about the commands used for configuring the MVR (Multicast VLAN
Registration).
Chapter 34: Static multicast MAC address table Commands
Provide information about the commands used for creating static multicast entries and viewing
Multicast Forwarding Database (MFDB) table information.
Chapter 35: SNMP Commands
Provide information about the commands used for configuring the SNMP (Simple Network
Management Protocol) functions.
Chapter 36: LLDP Commands
Provide information about the commands used for configuring LLDP function.
3
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 37: Static Routes Commands
Provide information about the commands used for configuring the Static Route function.
Chatper 38: DHCP Server Commands
Provide information about the commands used for configuring the DHCP Server function.
Chapter 39: DCHP Relay Commands
Provide information about the commands used for configuring the DHCP Relay function.
Chapter 40: Proxy ARP Commands
Provide information about the commands used for configuring the Proxy ARP function.
Chapter 41: IGMP Commands
Provide information about the commands used for configuring the IGMP function.
Chapter 42: PIM Commands
Provide information about the commands used for configuring the PIM function.
Chapter 43: Static Multicast Routing Commands
Provide information about the commands used for configuring the Static Multicast Routing
function.
Chapter 44: VRRP Commands
Provide information about the commands used for configuring the VRRP function.
Chapter 45: RIP Commands
Provide information about the commands used for configuring the RIP function.
Chapter 46: OSPF Commands
Provide information about the commands used for configuring the OSPF function.
Chapter 47: SDM Template Commands
Provide information about the commands used for configuring the SDM templates.
Chapter 48: AAA Commands
Provide information about the commands used for configuring AAA (authentication,
authorization and accounting).
Chapter 49: ARP Commands
Provide information about the commands used for configuring the Address Resolution
Protocol (ARP).
Chapter 50: IPv6 Address Configuration Commands
Provide information about the commands used for configuring the System IPv6 addresses.
Chapter 51: Management Port Commands
Provide information about the commands used for configuring the management port.
4
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 52: Auto VoIP Commands
Provide information about the commands used for configuring the Auto VoIP.
5
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 1 Using the CLI

1.1 Accessing the CLI

You can log in to the switch and access the CLI by the following three methods:
1. Log in to the switch by the console port on the switch.
2. Log in to the switch remotely by a Telnet connection through an Ethernet port.
3. Log in to the switch remotely by an SSH connection through an Ethernet port.

1.1.1 Logon by a console port

Console Port
The switch has two console ports: an RJ-45 console port and a Micro-USB console port.
Console output is active on devices connected to both console ports, but console input is only
active on one console port at a time.
The Micro-USB connector takes precedence over the RJ-45 connector. When the switch
detects a valid connection on the Micro-USB console port, input from the RJ-45 console port is
immediately disabled, and input from the Micro-USB console port is enabled. Removing the
Micro-USB connection immediately reenables input from the RJ-45 console connection.
USB Console Driver
If you are using the USB port on the MAC OS X or Linux OS for console connection, there is no
need to run a USB driver.
If you are using the switch’s Micro-USB console port with the USB port of a Windows PC, a
driver for the USB port is required. The USB driver is provided on the resource CD. Follow the
InstallSheild Wizard to accomplish the installation.
The TP-Link USB Console Driver supports the following Windows operating systems:
32-bit Windows XP SP3
64-bit Windows XP
32-bit Windows Vista
64-bit Windows Vista
32-bit Windows 7
64-bit Windows 7
32-bit Windows 8
6
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
64-bit Windows 8
32-bit Windows 8.1
64-bit Windows 8.1
After the TP-Link USB Console Driver is installed, the PC’s USB port will act as RS-232 serial
port when the PC’s USB port is connected to the switch’s Micro-USB console port. And the
PC’s USB port will act as standard USB port when the PC’s USB port is unplugged from the
switch.
Logon
Take the following steps to log in to the switch by the console port.
1. Connect the PCs or Terminals to the console port on the switch by the provided cable.
2. Start the terminal emulation program (such as the HyperTerminal) on the PC.
3. Specify the connection COM port in the terminal emulation program. If the Micro-USB
Console port is used, you can view which port is assigned to the USB serial port in the
following path:
Control Panel -> Hardware and Sound -> Device Manager -> Ports ->USB Serial Port.
Figure 1-1 USB Serial Port Number
4. Configure the terminal emulation program or the terminal to use the following settings:
Baud rate: 38400 bps
Data bits: 8
Parity: none
Stop bits: 1
Flow control: none
7
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
5. The DOS prompt ”T3700G-52TQ>” will appear after pressing the Enter button as shown in
Figure 1-2. It indicates that you can use the CLI now.
Figure 1-2 Log in the Switch

1.1.2 Configuring the Privileged EXEC Mode Password

To configure the switch remotely by a Telnet or SSH connection, please set a password for
entering the Privileged EXEC Mode through the console connection first. Follow the steps in
1.1.1 Logon by a console port to log in to the switch, and then follow the steps shown in
1-3 to configure the Privileged EXEC Mode password.
Figure
Figure 1-3 Configure the Privileged EXEC Mode Password
8
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

1.1.3 Logon by Telnet

By default, you can logon by Telnet in login local mode directly.
1. Make sure the switch and the PC are in the same LAN. Click Start and type cmd in the
Search bar as Figure 1-4 and press Enter.
Figure 1-4 Run Window
2. Open Telnet, then type telnet 192.168.0.1 in the command prompt shown as Figure 1-5,
and press the Enter button.
Figure 1-5 Connecting to the Switch
3. Type the default user name and password (both of them are admin), then press the Enter
button so as to enter User EXEC Mode.
Figure 1-6 Enter into the User EXEC Mode
Now you can manage your switch with CLI commands through Telnet connection.
9
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
4. Type enable command to enter Privileged EXEC Mode. A password that you have set
through Console port connection is required. Here the password has been set as 123.
Figure 1-7 Enter into the Privileged EXEC Mode
Note:
You can refer to Chapter 12 User Manage Commands and Chapter 48 AAA Commands for
detailed commands information of the Telnet connection configuration.

1.1.4 Logon by SSH

To log on by SSH, you can set up an SSH connection through Password Authentication Mode:
Password Authentication Mode: It requires username and password, which are both admin by default.
Note:
Before SSH login, you should download or generate the SSH key file, then follow the steps
shown in Figure 1-8 to enable the SSH function through console connection. You can refer to
Chapter 19 SSH Commands for detailed commands information.
Figure 1-8 Enable SSH function
10
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Password Authentication Mode
1. Open the software to log in to the interface of PuTTY. Enter the IP address of the switch
into Host Name field; keep the default value 22 in the Port field; select SSH as the
Connection type.
Figure 1-9 SSH Connection Config
2. Click the Open button in the above figure to log in to the switch. Enter the login user name
and password to log on the switch, and then enter the Privileged EXEC Mode password, so
you can continue to configure the switch.
Figure 1-10 Log on the Switch

1.2 CLI Command Modes

The CLI is divided into different command modes: User EXEC Mode, Privileged EXEC Mode,
Global Configuration Mode, Line Configuration Mode, VLAN Configuration Mode, Interface
11
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
next mode
mode.
mode.
Configuration mode.
EXEC mode.
Configuration Mode, Router Configuration Mode, DHCP Configuration Mode, MST
Configuration Mode and Class-Map Configuration Mode. Interface Configuration Mode can
also be divided into Interface gigabitEthernet, Interface link-aggregation and some other
modes, which is shown as the following diagram.
The following table gives detailed information about the Accessing path, Prompt of each mode
and how to exit the current mode and access the next mode.
Mode Accessing Path Prompt
User EXEC Mode
Privileged EXEC Mode
Global Configuration Mode
Primary mode once it is connected with the switch.
Use the enable command to enter this mode from User EXEC mode.
Use the configure command to enter this mode from Privileged EXEC mode.
T3700G-52TQ>
T3700G-52TQ#
T3700G-52TQ(config)#
Logout or Access the
Use the exit command to disconnect the switch (except that the switch is connected through the Console port).
Use the enable command to access Privileged EXEC
Enter the disable or exit command to return to User EXEC mode.
Enter configure command to access Global Configuration
Use the exit or the end command or press Ctrl+Z to return to Privileged EXEC mode.
Use the interface
port
gigabitEthernet interface range gigabitEthernet
command to access interface Configuration mode.
Use the vlan access VLAN
vlan-list
or
port-list
to
Line Configuration Mode
Use the line vty command from Global Configuration mode to specify a line.
T3700G-52TQ(config- line)
12
Use the exit command to exit to the global configuration mode.
Press Ctrl-Z or enter end to return to priviledged
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
next mode
mode.
process
Global Configuration mode.
mode.
command.
id
Configuration mode.
pool
mode.
Mode Accessing Path Prompt
VLAN Configuration Mode
Use the vlan command to enter this mode from Global Configuration mode.
vlan-list
T3700G-52TQ(config- vlan)#
Logout or Access the
Use the end command or press Ctrl+Z to return to Privileged EXEC mode.
Enter the exit or the # command to return to Global configuration
Router Configuration Mode
Interface Configuration Mode
Use the router ospf
-id
to enter OSPF Router mode from Global Configuration mode.
Use the router rip command to enter RIP Router mode from
Layer 2 Interface:
Use the interface
gigabitEthernet interface range gigabitEthernet
command to enter this mode from Global Configuration mode.
Layer 3 Interface:
Use the no switchport command to enter Routed Port mode from Interface Configuration mode.
Use the interface vlan command to enter VLAN Interface mode from Global Configuration mode.
Use the interface loopback command to enter Loopback Interface mode from Global
port
or
port-list
vlan-id
T3700G-52TQ(config- router)
T3700G-52TQ(config-if)#
T3700G-52TQ(config-if­range)#
T3700G-52TQ(config-if)#
T3700G-52TQ(config-if-range) #
Use the end command or press Ctrl+Z to return to Privileged EXEC mode.
Enter the exit or the # command to return to Global Configuration
Use the end command or press Ctrl+Z to return to Privileged EXEC mode.
Enter the exit or the # command to return to Global Configuration mode.
A port number must be specified in the interface
Use the end command or press Ctrl+Z to return to Privileged EXEC mode.
Enter the exit or the # command to return to Global Configuration mode.
Use the ip dhcp server pool
DHCP Configuration Mode
-name
command to enter DHCP Configuration Mode from Global Configuration mode.
T3700G-52TQ(config-dhcp)
13
Use the end command or press Ctrl+Z to return to Privileged EXEC mode.
Enter the exit or the # command to return to Global Configuration
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
next mode
mode.
class
mode.
Each command mode has its own set of specific commands. To configure some
In this mode, users can configure one or several
Configure parameters for an
gigabitEthernet: Configure parameters for
Mode Accessing Path Prompt
MST Configuration Mode
Class-Map Configuration Mode
Use the spanning-tree mst configuration command to enter this mode from Global Configuration mode.
Use the class-map
-map-name
enter this mode from Global Configuration mode.
command to
T3700G-52TQ(config- mst)#
T3700G-52TQ(config- cmap)#
Note:
Logout or Access the
Use the end command or press Ctrl+Z to return to Privileged EXEC mode.
Enter the exit or the # command to return to Global configuration
Use the end command or press Ctrl+Z to return to Privileged EXEC mode.
Enter the exit or the # command to return to Global configuration
1. The user is automatically in User EXEC Mode after the connection between the PC and the
switch is established by a console port or by a telnet connection.
2.
commands, you should access the corresponding command mode firstly.
Global Configuration Mode: In this mode, global commands are provided, such as the
Spanning Tree, Schedule Mode and so on.
Interface Configuration Mode:
ports, different ports corresponds to different commands
a). Interface gigabitEthernet/ten-gigabitEthernet:
Ethernet port, such as Duplex-mode, flow control status.
b). Interface range gigabitEthernet/ten-
several Ethernet ports.
c). Interface link-aggregation: Configure parameters for a link-aggregation, such as
broadcast storm.
d). Interface range link-aggregation: Configure parameters for multi-trunks.
e). Interface Loopback: Configure the parameters of the loopback interface.
f). Interface vlan: Configure parameters for the vlan interface.
Vlan Configuration Mode: In this mode, users can create a VLAN and add a specified
port to the VLAN.
14
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
In this mode, commands for configuring the Layer 3
tic information, port
Router Configuration Mode:
functions are provided.
3. Some commands are global, that means they can be performed in all modes:
show: Displays all information of switch, for example: statis
information, VLAN information.

1.3 Security Levels

This switch’s security is divided into two levels: User level and Admin level.
User level only allows users to do some simple operations in User EXEC Mode; Admin level
allows you to monitor, configure and manage the switch in Privileged EXEC Mode, Global
Configuration Mode, Interface Configuration Mode and VLAN Configuration Mode.
Users get the privilege to the User level once connecting console port with the switch or
logging in by Telnet/SSH. However, Guest users are restricted to access the CLI.
Users can enter Privileged EXEC mode from User EXEC mode by using the enable command. In
Global Configuration Mode, you can configure password for Admin level by enable password
command. Once password is configured, you are required to enter it to access Privileged EXEC
mode.

1.4 Conventions

1.4.1 Format Conventions

The following conventions are used in this Guide:
Items in square brackets [ ] are optional
Items in braces { } are required
Alternative items are grouped in braces and separated by vertical bars. For example:
speed {10 | 100 | 1000 | 10000 }
Bold indicates an unalterable keyword. For example: show logging
Normal Font indicates a constant (several options are enumerated and only one can be
selected). For example: switchport type { access | trunk | general }
Italic Font indicates a variable (an actual value must be assigned). For example: bridge
aging-time
aging-time
15
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

1.4.2 Special Characters

You should pay attentions to the description below if the variable is a character string:
These six characters ” < > , \ & cannot be input.
If a blank is contained in a character string, single or double quotation marks should be
used, for example ’hello world’, ”hello world”, and the words in the quotation marks will be
identified as a string. Otherwise, the words will be identified as several strings.

1.4.3 Parameter Format

Some parameters must be entered in special formats which are shown as follows:
MAC Address must be entered in the format of xx:xx:xx:xx:xx:xx.
One or several values can be typed for a port-list or a vlan-list using comma to separate.
Use a hyphen to designate a range of values, for instance 1,3-5,7 indicates choosing
1,3,4,5,7.
The port number should format as 1/0/3, meaning unit/slot/port. The unit number
represents the unit ID of the switch in the stack. The slot number is either 0 or 1, with 0
representing ports on the front panel and 1 representing the two ports on the Interface
Card inserted into the back panel. The port number is a variable (an actual value must be
assigned).
16
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 2 User Interface

2.1 enable

Description
The enable command is used to access Privileged EXEC Mode from User
EXEC Mode.
Syntax
enable
Command Mode
User EXEC Mode
Example
If you have set the password to access Privileged EXEC Mode from User
EXEC Mode:
T3700G-52TQ>enable
Password:
T3700G-52TQ#

2.2 service password-encryption

Description
The service password-encryption command is used to encrypt the
password when the password is defined or when the configuration is written,
using the symmetric encryption algorithm. Encryption prevents the password
from being readable in the configuration file. To disable the global encryption
function, please use no service password-encryption command.
Syntax
service password-encryption
no service password-encryption
Command Mode
Global Configuration Mode
17
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Example
Enable the global encryption function:
T3700G-52TQ(config)# service password-encryption

2.3 enable password

Description
The enable password command is used to set or change the password for
users to access Privileged EXEC Mode from User EXEC Mode. To remove the
password, please use no enable password command. This command uses
the symmetric encryption.
Syntax
enable password { [ 0 ]
no enable password
Parameter
0 —— Specify the encryption type. 0 indicates that an unencrypted password
will follow. By default, the encryption type is 0.
password
characters or symbols. The password is case sensitive, allows spaces but
ignores leading spaces, and cannot contain question marks. By default, it is
empty.
7 —— Indicates a symmetric encrypted password with fixed length will follow.
encrypted-password
which you can copy from another switch’s configuration file. After the
encrypted password is configured, you should use the corresponding
unencrypted password access Privileged EXEC Mode from User EXEC Mode.
password
—— Super password, a string from 1 to 31 alphanumeric
—— A symmetric encrypted password with fixed length,
| 7
encrypted-password
}
Command Mode
Global Configuration Mode
User Guidelines
1. If the password you configured here is unencrypted and the global
encryption function is enabled in service password-encryption
password in the configuration file will be displayed in the symmetric
encrypted form.
18
, the
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
2. If both the enable password and enable secret password are defined,
only the latest configured password will take effect.
Example
Set the super password as “admin” and unencrypted to access Privileged
EXEC Mode from User EXEC Mode:
T3700G-52TQ(config)#enable password 0 admin

2.4 enable secret

Description
The enable secret command is used to set a secret password for users to
access Privileged EXEC Mode from User EXEC Mode. To return to the default
configuration, please use no enable secret command. This command uses
the MD5 encryption.
Syntax
enable secret { [ 0 ]
no enable secret
Parameter
0 —— Specify the encryption type. 0 indicates that an unencrypted password
will follow. By default, the encryption type is 0.
password
characters or symbols. The password is case sensitive, allows spaces but
ignores leading spaces, and cannot contain question marks. By default, it is
empty. The password in the configuration file will be displayed in the MD5
encrypted form.
5 —— Indicates an MD5 encrypted password with fixed length will follow.
encrypted-password
which you can copy from another switch’s configuration file. After the
password
—— Super password, a string from 1 to 31 alphanumeric
—— An MD5 encrypted password with fixed length,
| 5
encrypted-password
}
encrypted password is configured, you should use the corresponding
unencrypted password when you access Privileged EXEC Mode from User
EXEC Mode.
Command Mode
Global Configuration Mode
19
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
User Guidelines
If both the enable password and enable secret are defined, only the latest
configured password will take effect.
Example
Set the secret password as “admin” and unencrypted to access Privileged
EXEC Mode from User EXEC Mode. The password will be displayed in the
encrypted form.
T3700G-52TQ(config)#enable secret 0 admin

2.5 configure

Description
The configure command is used to access Global Configuration Mode from
Syntax
Command Mode
Example

2.6 exit

Description
Privileged EXEC Mode.
configure
Privileged EXEC Mode
Access Global Configuration Mode from Privileged EXEC Mode:
T3700G-52TQ#configure
T3700G-52TQ(config)#
The exit command is used to return to the previous Mode from the current
Mode.
Syntax
exit
20
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Example

2.7 end

Description
Any Configuration Mode
Return to Global Configuration Mode from Interface Configuration Mode, and
then return to Privileged EXEC Mode:
T3700G-52TQ(config-if)#exit
T3700G-52TQ(config)#exit
T3700G-52TQ#
The end command is used to return to Privileged EXEC Mode.
Syntax
end
Command Mode
Any Configuration Mode
Example
Return to Privileged EXEC Mode from Interface Configuration Mode:
T3700G-52TQ(config-if)#end

2.8 show history

Description
The show history command is used to show the latest 20 commands you
entered in the current mode since the switch is powered.
Syntax
show history
Command Mode
Privileged EXEC Mode and any Configuration Mode
21
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Example
Show the commands you have entered in the current mode:
T3700G-52TQ(config)# show history
1 show history

2.9 clear history

Description
The clear history command is used to clear the commands you have entered
in the current mode, therefore these commands will not be shown next time
you use the clear history command.
Syntax
clear history
Command Mode
Privileged EXEC Mode and any Configuration Mode
Example
Clear the commands you have entered in the current mode:
T3700G-52TQ(config)# clear history
22
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 3 Stack

The stack technology is to connect multiple stackable devices through their stack ports,
forming a stack which works as a unified system and presents as a single entity to the network
in Layer 2 and Layer 3 protocols. This chapter describes how to manage the T3700G-52TQ
switch stacks.

3.1 boot auto-copy-sw

Description
The boot auto-copy-sw command is used to enable stack firmware
synchronization. To disable stack firmware synchronization, please use no
boot auto-copy-sw command.
Syntax
boot auto-copy-sw
no boot auto-copy-sw
Command Mode
Global Configuration Mode
Example
Enable stack firmware synchronization:
T3700G-52TQ(config)# boot auto-copy-sw

3.2 boot auto-copy-sw allow-downgrade

Description
The boot auto-copy-sw allow-downgrade command is used to enable
downgrade of image on stack member. To disable downgrade of image on
stack member, please use no boot auto-copy-sw allow-downgrade
command.
Syntax
boot auto-copy-sw allow-downgrade
no boot auto-copy-sw allow-downgrade
23
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Global Configuration Mode
Example
Enable downgrade of image on stack member:
T3700G-52TQ(config)# boot auto-copy-sw allow-downgrade

3.3 boot auto-copy-sw trap

Description
The boot auto-copy-sw trap command is used to enable stack firmware
synchronization traps. To disable stack firmware synchronization traps on
stack member, please use no boot auto-copy-sw trap command.
Syntax
boot auto-copy-sw trap
no boot auto-copy-sw trap
Command Mode
Global Configuration Mode
Example
Enable stack firmware synchronization traps:
T3700G-52TQ(config)# boot auto-copy-sw trap

3.4 switch master

Description
The switch master command is used to set the role of a specified switch in
the stack as master.
Syntax
swtich
unitid
master
Parameter
unitid
—— Specify the member number.
24
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Global Configuration Mode
Example
Specify the unit 1’s role as master in the stack:
T3700G-52TQ(config)# switch 1 master

3.5 switch standby

Description
The switch standby command is used to set the role of a specified switch in
the stack as standby member. To cancel standby member setting, please use
no switch standby command.
Syntax
swtich
no switch standby
unitid
standby
Parameter
unitid
—— Specify the member number.
Command Mode
Global Configuration Mode
Example
Specify the unit 1’s role as standby member in the stack:
T3700G-52TQ(config)# switch 1 standby

3.6 switch priority

Description
The switch priority command is specify the stack member number and the
new priority for the stack member. To restore the priority of the specified
stack member to the default setting as unassigned, please use no switch
priority command.
25
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
swtich
no switch
unitid
unitid
priority
priority
Parameter
unitid
—— Specify the member number.
priority
—— Specify the member’s priority, ranging from 0 to 15.
Command Mode
Global Configuration Mode
Example
Specify the unit 1’s priority as 10 in the stack:
T3700G-52TQ(config)# switch 1 priority 10

3.7 switch renumber

priority
Description
The switch renumber command is modify the member number of a specified
stack member.
Syntax
swtich
unitid
Parameter
unitid
—— Specify the member to be renumbered.
newid
auto-numbering —— The specified member will obtain its stack number
through auto-numbering.
—— Specify the new stack member number for the stack member.
Command Mode
Global Configuration Mode
renumber {
newid
| auto-numbering }
Example
Modify the unit 1’s new member number as 2:
T3700G-52TQ(config)# switch 1 renumber 2
26
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

3.8 switch stack-port

Description
The switch stack-port command is used to enable the stack port. To switch
the stack port to Ethernet port, please use no switch stack-port command.
Port 1/0/25 and 1/0/26 are in Stack Port Group 1 and 1/0/27 and 1/0/28 are in
Stack Group 2. Stack feature can only be enabled in one group at a time.
Syntax
swtich stack-port interface ten-gigabitEthernet
no switch stack-port interface ten-gigabitEthernet
Parameter
port
—— The ten-gigabit port number.
Command Mode
Global Configuration Mode
Example
Specify the ten-gigabit port 1/0/28 as a stack port:
T3700G-52TQ(config)# switch stack-port interface ten-gigabitEthernet
1/0/28

3.9 switch provision

port
port
Description
The switch provision command is used to configure the provisioned stack
member. The provision configuration feature enables you to configure a new
switch in advance before it joins the stack, which means you can configure
the stack unit number and its switch type which is not currently the stack
member.
The information of the provisioned member is manually created, or
created/updated by the switch member when it joins the stack. The
provisioned configuration retains in the stack when the stack member leaves
the stack.
27
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
swtich
no switch
unitid
Parameter
unitid
—— The stack member number of the provisioned switch.
type
—— The device type of the provisioned switch.
Command Mode
Global Configuration Mode
Example
Create a provisioned switch whose stack member number is 2 and device
type is T3700G-52TQRev1:
T3700G-52TQ(config)# switch 2 provision T3700G-52TQRev1
provision
unitid
provision
type

3.10 show switch

Description
The show switch command is used to display the current stack’s information.
Syntax
show switch [
counters | synchronization ]
Parameter
unitid
—— Specify the member number.
detail —— Display the detailed information of the stack, including stack
member, stack port and neighboring information.
neighbors —— Display the information of the stack neighbor.
stack-ports —— Display the information of the stack ports.
stack-ports counters —— Display the statistic information of the stack
unitid
| detail | neighbors | stack-ports | stack-ports
ports.
synchronization ——Display the synchronization information.
28
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Privileged EXEC Mode and any Configuration Mode
Example
Display the detailed information of the current stack:
T3700G-52TQ(config)# show switch detail

3.11 show auto-copy-sw

Description
The show auto-copy-sw command is used to display the stack firmware
synchronization configuration status.
Syntax
show auto-copy-sw
Command Mode
Privileged EXEC Mode and any Configuration Mode
Example
Display the stack firmware synchronization configuration status of the
current stack:
T3700G-52TQ(config)# show auto-copy-sw

3.12 clear switch-synchronization

Description
The clear switch-synchronization command is used to clear the stack
firmware synchronization information.
Syntax
clear switch-synchronization
Command Mode
Privileged EXEC Mode and any Configuration Mode
29
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Example
Clear the stack firmware synchronization information:
T3700G-52TQ(config)# clear switch-synchronization
30
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 4 IEEE 802.1Q VLAN Commands

VLAN (Virtual Local Area Network) technology is developed for the switch to divide the LAN
into multiple logical LANs flexibly. Hosts in the same VLAN can communicate with each other,
regardless of their physical locations. VLAN can enhance performance by conserving
bandwidth, and improve security by limiting traffic to specific domains.

4.1 vlan

Description
The vlan command is used to create IEEE 802.1Q VLAN hereafter to access
to VLAN Configuration Mode. To delete the IEEE 802.1Q VLAN, please use no
vlan command.
Syntax
vlan vlan-list
no vlan vlan-list
Parameter
vlan-list
multi-optional.
—— VLAN ID list, ranging from 2 to 4093, in the format of 2-3, 5. It is
Command Mode
Global Configuration Mode
Example
Create VLAN 2-10 and VLAN 100:
T3700G-52TQ(config)#vlan 2-10,100
Delete VLAN 2:
T3700G-52TQ(config)#no vlan 2
31
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

4.2 interface vlan

Description
The interface vlan command is used to create VLAN Interface hereafter to
access to Interface VLAN Mode.
Syntax
interface vlan
no interface vlan
Parameter
vlan-id
Command Mode
Global Configuration Mode
Example
Create VLAN Interface 2:
T3700G-52TQ(config)#interface vlan 2

4.3 name

Description
vlan-id
vlan-id
—— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4093.
The name command is used to assign a description string to a VLAN. To clear
the description, please use no name command.
Syntax
name descript
no name
Parameter
descript
most.
—— String to describe the VLAN, which contains 16 characters at
Command Mode
VLAN Configuration Mode (VLAN)
32
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Example
Specify the description string of the VLAN 2 as “VLAN002”:
T3700G-52TQ(config)#vlan 2
T3700G-52TQ(config-vlan)#name VLAN002

4.4 switchport mode

Description
The switchport mode command is used to configure the Link Types for the
ports.
Syntax
switchport mode { access | trunk | general }
Parameter
access | trunk | general —— Link Types. There are three Link Types for the
ports.
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Specify the Link Type of Gigabit Ethernet port 1/0/3 as “trunk”:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/3
T3700G-52TQ(config-if)#switchport mode trunk

4.5 switchport access vlan

Description
The switchport access vlan command is used to add the desired Access
port to IEEE 802.1Q VLAN, or to remove a port from the corresponding VLAN.
Syntax
switchport access vlan
vlan-id
33
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
no switchport access vlan
Parameter
vlan-id
—— Specify IEEE 802.1Q VLAN ID, ranging from 2 to 4093.
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Configure Gigabit Ethernet port 1/0/3 whose link type is “access” to VLAN 2:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/3
T3700G-52TQ(config-if)#switchport access vlan 2

4.6 switchport trunk allowed vlan

Description
The switchport trunk allowed vlan command is used to add the desired
Trunk port to IEEE 802.1Q VLAN. To remove a Trunk port from the
corresponding VLAN, please use no switchport trunk allowed vlan
command.
Syntax
switchport trunk allowed vlan
no switchport trunk allowed vlan
Parameter
vlan-list
multi-optional.
—— VLAN ID list, ranging from 1 to 4093, in the format of 2-3, 5. It is
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
vlan-list
vlan-list
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Configure the link type of port 2 as trunk and add it to VLAN 2:
34
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
T3700G-52TQ(config)#interface gigabitEthernet 1/0/2
T3700G-52TQ(config-if)#switchport mode trunk
T3700G-52TQ(config-if)#switchport trunk allowed vlan 2

4.7 switchport general allowed vlan

Description
The switchport general allowed vlan command is used to add the desired
General port to IEEE 802.1Q VLAN, or to remove a port from the
corresponding VLAN.
Syntax
switchport general allowed vlan
no switchport general allowed vlan
Parameter
vlan-list
multi-optional.
tagged | untagged —— egress-rule.
—— VLAN ID list, ranging from 1 to 4093, in the format of 2-3, 5. It is
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Configure Gigabit Ethernet port 1/0/4 whose link type is “general” to VLAN 2
and its egress-rule as “tagged”:
vlan-list
vlan-list
{ tagged | untagged }
T3700G-52TQ(config)#interface gigabitEthernet 1/0/4
T3700G-52TQ(config-if)#switchport mode general
T3700G-52TQ(config-if)#switchport general allowed vlan 2 tagged
35
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

4.8 switchport pvid

Description
The switchport pvid command is used to configure the PVID for the switch
General ports. To restore the PVID of the specified port as 1, please use the
no switchport pvid.
Syntax
switchport pvid
Parameter
vlan-id
—— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4093.
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Specify the PVID of Gigabit Ethernet port 1/0/3 (General) as 1:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/3
T3700G-52TQ(config-if)#switchport pvid 1
vlan-id

4.9 switchport trunk native vlan

Description
The switchport trunk native vlan command is used to configure the PVID for
the switch Trunk ports. To restore the PVID of the specified port as 1, please
use the no switchport trunk native vlan.
Syntax
switchport trunk native vlan
Parameter
vlan-id
—— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4093.
vlan-id
36
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Specify the PVID of Gigabit Ethernet port 1/0/3 (Trunk) as 1:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/3
T3700G-52TQ(config-if)#switchport trunk native vlan 1

4.10 show interface switchport

Description
The show interface switchport command is used to display the information
of one or all Ethernet ports.
Syntax
show interface switchport [ fastEthernet
ten-gigabitEthernet
Parameter
port
——The Fast/Gigabit/Ten-Gigabit Ethernet port number.
lagid
——The ID of the LAG.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the detailed information of Gigabit Ethernet port 1/0/3:
T3700G-52TQ(config)#show interface switchport gigabitEthernet 1/0/3
port
| port-channel
lagid
port
| gigabitEthernet
]
port
|

4.11 show vlan summary

Description
The show vlan summary command is used to display the summarized
information of IEEE 802.1Q VLAN.
37
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
show vlan summary
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the summarized information of IEEE 802.1Q VLAN:
T3700G-52TQ(config)#show vlan summary

4.12 show vlan brief

Description
The show vlan brief command is used to display the brief information of IEEE
802.1Q VLAN.
Syntax
show vlan brief
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the brief information of IEEE 802.1Q VLAN:
T3700G-52TQ(config)#show vlan brief

4.13 show vlan

Description
The show vlan command is used to display the detailed information of IEEE
802.1Q VLAN.
Syntax
show vlan [id
vlan-id
]
38
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Parameter
vlan-id
show vlan command without parameter displays the detailed information of
all the VLAN.
—— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4093. Using the
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the detailed information of VLAN 2:
T3700G-52TQ(config)#show vlan id 2
39
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 5 MAC-based VLAN Commands

MAC VLAN (Virtual Local Area Network) is the way to classify the VLANs based on MAC
Address. A MAC address is relative to a single VLAN ID. The untagged packets and the
priority-tagged packets coming from the MAC address will be tagged with this VLAN ID.

5.1 mac-vlan mac-address

Description
The mac-vlan mac-address command is used to create a MAC-based VLAN
entry. To delete a MAC-based VLAN entry, please use the no mac-vlan
mac-address command.
Syntax
mac-vlan mac-address
no mac-vlan mac-address
Parameter
mac-addr
vlan-id
—— MAC address, in the format of XX:XX:XX:XX:XX:XX.
—— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4093.
Command Mode
Global Configuration Mode
Example
Create VLAN 2 with the MAC address 00:11:11:01:01:12 :
T3700G-52TQ(config)#mac-vlan mac-address 00:11:11:01:01:12 vlan 2

5.2 show mac-vlan

mac-addr
mac-addr
vlan
vlan-id
Description
The show mac-vlan command is used to display the information of the
MAC-based VLAN entry. MAC address and VLAN ID can be used to filter the
displayed information.
40
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
show mac-vlan { all | mac-address
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Parameter
mac-addr
vlan-id
—— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4093.
Example
Display the information of all the MAC-based VLAN entry:
T3700G-52TQ(config)#show mac-vlan all
mac-addr
—— MAC address, in the format of XX:XX:XX:XX:XX:XX.
| vlan
vlan-id
}
41
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 6 Protocol VLAN Commands

Protocol-based VLAN (Virtual Local Area Network) is the way to classify VLANs based on
Protocols. A Protocol corresponds to a VLAN ID. The untagged packets and the priority-tagged
packets matching the protocol template will be tagged with this VLAN ID.

6.1 protocol-vlan template

Description
The protocol-vlan template command is used to create Protocol-based
VLAN template. To delete Protocol-based VLAN template, please use no
protocol-vlan template command.
Syntax
protocol-vlan template
ether-type
no protocol-vlan template
Parameter
template-idx
Template , which ranges from 1 to 128. You can get the template
corresponding to the number by the show protocol-vlan template
command.
desc
—— Give a description for the Protocol-based VLAN Template , which
contains 8 characters at most.
ether-type
Command Mode
Global Configuration Mode
template-idx
template-idx
—— Give a template ID for the Protocol-based VLAN
—— Specify the Ethernet type.
name
desc
frame ether_2 ether-type
Example
Create a Protocol-based VLAN template named “Temp1” whose ID is 1 and
Ethernet protocol type is 0x0800:
T3700G-52TQ(config)#protocol-vlan template 1 name Temp1 frame
ether_2 ether-type 0800
42
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

6.2 protocol-vlan vlan

Description
The protocol-vlan vlan command is used to create a Protocol-based VLAN. To delete a Protocol-based VLAN, please use no protocol-vlan command.
Syntax
protocol-vlan vlan
no protocol-vlan vlan
Parameter
vlan-vid
template-idx
get the template corresponding to the number by the
template command.
group-idx
the Protocol-based VLAN entry corresponding to the number by the
protocol-vlan vlan command.
—— Specify IEEE 802.1Q VLAN ID, ranging from 1-4093.
Command Mode
Global Configuration Mode
Example
Create Protocol-based VLAN 2 and bind it with Protocol-based VLAN Template 3:
vlan-id
——The number of the Protocol-based VLAN Template. You can
——The number of the Protocol-based VLAN entry. You can get
template
group-idx
template-idx
show protocol-vlan
show
T3700G-52TQ(config)# protocol-vlan vlan 2 template 3

6.3 protocol-vlan

Description
The protocol-vlan command is used to add the port to a specified protocol
group. To remove the port from this protocol group, please use no
protocol-vlan group command.
Syntax
protocol-vlan group
no protocol-vlan group
index
index
43
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet/ interface ten-gigabitEthernet / interface range
ten-gigabitEthernet)
Parameter
index
—— Specify the protocol group ID.
Example
Add Gigabit Ethernet port 1/0/20 to protocol group 1:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/20
T3700G-52TQ(config-if)#protocol-vlan group 1

6.4 show protocol-vlan template

Description
The show protocol-vlan template command is used to display the information of the Protocol-based VLAN templates.
Syntax
show protocol-vlan template
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the information of the Protocol-based VLAN templates:
T3700G-52TQ(config)# show protocol-vlan template

6.5 show protocol-vlan vlan

Description
The show protocol-vlan vlan command is used to display the information about Protocol-based VLAN entry.
Syntax
show protocol-vlan vlan
44
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display information of the Protocol-based VLAN entry:
T3700G-52TQ(config)# show protocol-vlan vlan
45
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 7 VLAN-VPN Commands

VLAN-VPN (Virtual Private Network) function, the implement of a simple and flexible Layer 2
VPN technology, allows the packets with VLAN tags of private networks to be encapsulated
with VLAN tags of public networks at the network access terminal of the Internet Service
Provider. And these packets will be transmitted with double-tag across the public networks.

7.1 dot1q-tunnel tpid

Description
The dot1q-tunnel tpid command is used to configure Global TPID of the
VLAN-VPN. To restore to the default value, please use the no dot1q-tunnel
tpid command.
Syntax
dot1q-tunnel tpid
no dot1q-tunnel tpid
Parameter
tpid
—— The value of Global TPID. It must be 4 Hex integers. By default, it is
8100.
Command Mode
Global Configuration Mode
Example
Configure Global TPID of the VLAN-VPN as 0x9100:
T3700G-52TQ(config)#dot1q-tunnel tpid 9100
tpid

7.2 switchport dot1q-tunnel mode nni

Description
The switchport dot1q-tunnel mode nni command is used to configure the
VPN up-link port. To close this VPN up-link port, please use the no
switchport dot1q-tunnel mode command. By default, no port has been
configured as the VPN up-link port.
46
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
switchport dot1q-tunnel mode nni
no switchport dot1q-tunnel mode
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet/ interface ten-gigabitEthernet / interface range
ten-gigabitEthernet)
Example
Configure the Gigabit Ethernet port 1/0/3 as the VPN up-link port:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/3
T3700G-52TQ(config-if)#switchport dot1q-tunnel mode nni

7.3 show dot1q-tunnel

Description
The show dot1q-tunnel command is used to display the global configuration
information of the VLAN VPN.
Syntax
show dot1q-tunnel
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the configuration information of the VLAN VPN:
T3700G-52TQ(config)#show dot1q-tunnel
47
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 8 Voice VLAN Commands

Voice VLANs are configured specially for voice data stream. By configuring Voice VLANs and
adding the ports with voice devices attached to voice VLANs, you can perform QoS-related
configuration for voice data, ensuring the transmission priority of voice data stream and voice
quality.

8.1 voice vlan

Description
The voice vlan command is used to enable Voice VLAN function. To disable
Voice VLAN function, please use no voice vlan command.
Syntax
voice vlan
no voice vlan
vlan-id
Parameter
vlan-id
—— Specify IEEE 802.1Q VLAN ID, ranging from 2 to 4093.
Command Mode
Global Configuration Mode
Example
Enable the Voice VLAN function for VLAN 10:
T3700G-52TQ(config)#voice vlan 10

8.2 voice vlan (interface)

Description
The voice vlan command is used to enable Voice VLAN mode for the desired
port. To disable Voice VLAN mode, please use no voice vlan command.
Syntax
voice vlan
no voice vlan
48
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet / interface ten-gigabitEthernet / interface range
ten-gigabitEthernet)
Example
Enable the Voice VLAN mode for the Gigabit Ethernet port 1/0/3:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/3
T3700G-52TQ(config-if)#voice vlan

8.3 voice vlan priority

Description
The voice vlan priority command is used to configure the priority for the
Voice VLAN. To restore to the default priority, please use no voice vlan
priority command. By default, the priority value is 6.
Syntax
voice vlan priority
no voice vlan priority
Parameter
pri
—— Priority, ranging from 0 to 7.
Command Mode
Global Configuration Mode
Example
Configure the priority of the Voice VLAN as 5:
T3700G-52TQ(config)#voice vlan priority 5
pri

8.4 voice vlan oui

Description
The voice vlan oui command is used to create Voice VLAN OUI. To delete the
specified Voice VLAN OUI, please use no voice vlan oui command.
49
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
voice vlan oui
no voice vlan oui
oui-prefix
oui-prefix
Parameter
oui-prefix
XX:XX:XX.
—— The OUI address prefix of the voice device, in the format of
Command Mode
Global Configuration Mode
Example
Create a Voice VLAN OUI with the OUI address prefix 00:11:11:
T3700G-52TQ(config)#voice vlan oui 00:11:11

8.5 show voice vlan

Description
The show voice vlan command is used to display the global configuration
information of Voice VLAN.
Syntax
show voice vlan
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the configuration information of Voice VLAN globally:
T3700G-52TQ(config)#show voice vlan

8.6 show voice vlan oui-table

Description
The show voice vlan oui-table command is used to display the configuration
information of Voice VLAN OUI-Table.
50
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
show voice vlan oui-table
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the configuration information of Voice VLAN OUI-Table:
T3700G-52TQ(config)#show voice vlan oui-table

8.7 show voice vlan interface

Description
The show voice vlan interface command is used to display the configuration
information of all the ports.
Syntax
show voice vlan interface
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the configuration information of all the ports in the Voice VLAN:
T3700G-52TQ(config)#show voice vlan interface
51
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 9 Private VLAN Commands

Private VLANs are configured specially for saving VLAN resource of uplink devices and
decreasing broadcast.

9.1 private-vlan primary

Description
The private-vlan primary command is used to configure the designated
VLAN as the primary VLAN of the Private VLAN. To remove the primary VLAN
property pf the current VLAN, please use no private-vlan primary command.
Syntax
private-vlan primary
no private-vlan primary
Command Mode
VLAN Configuration Mode (VLAN)
Example
Configure the VLAN 3 as the primary VLAN of the private VLAN:
T3700G-52TQ(config)#vlan 3
T3700G-52TQ(config-vlan)#private-vlan primary

9.2 private-vlan community

Description
The private-vlan community command is used to configure the designated
VLAN as the community VLAN of the Private VLAN. To remove the
community VLAN property pf the current VLAN, please use no private-vlan
community command.
Syntax
private-vlan community
no private-vlan community
52
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
VLAN Configuration Mode (VLAN)
Example
Configure the VLAN 4 as the community VLAN of the private VLAN:
T3700G-52TQ(config)#vlan 4
T3700G-52TQ(config-vlan)#private-vlan community

9.3 private-vlan isolated

Description
The private-vlan isolated command is used to configure the designated
VLAN as the isolated VLAN of the Private VLAN. To remove the isolated VLAN
property pf the current VLAN, please use no private-vlan isolated command.
Syntax
private-vlan isolated
no private-vlan isolated
Command Mode
VLAN Configuration Mode (VLAN)
Example
Configure the VLAN 3 as the isolated VLAN of the private VLAN:
T3700G-52TQ(config)#vlan 3
T3700G-52TQ(config-vlan)#private-vlan isolated

9.4 private-vlan association

Description
The private-vlan association command is used to associate primary VLAN
with secondary VLAN. To exterminate the currently association, please use
no private-vlan association command.
Syntax
private-vlan association
no private-vlan association
vlan_list
vlan_list
53
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Parameter
vlan_list
—— Secondary VLAN ID, ranging from 2 to 4093.
Command Mode
VLAN Configuration Mode (VLAN)
Example
Associate primary VLAN 3 with community VLAN 4 as a private VLAN:
T3700G-52TQ(config)#vlan 3
T3700G-52TQ(config-vlan)#private-vlan association 4

9.5 switchport private-vlan

Description
The switchport private-vlan command is used to configure the private VLAN
mode for the switchport. To invalid the configuration, please use no
switchport private-vlan command.
Syntax
switchport private-vlan { promiscuous | host }
no switchport private-vlan
Parameter
promiscuous | host —— Configure the private VLAN mode for the switchport.
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Configure Gigabit Ethernet port 3 as “host”:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/3
T3700G-52TQ(config-if)#switchport private-vlan host
54
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

9.6 switchport private-vlan host-association

Description
The switchport private-vlan host-association command is used to add host
type port to private VLAN. To remove the port from Private VLAN, please use
no switchport private-vlan host-association command.
Syntax
switchport private-vlan host-association
secondary_vlan_id
no switchport private-vlan host-association
Parameter
primary-vlan-id
secondary-vlan-id
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Configure host type Gigabit Ethernet port 1/0/3 as a member of primary
VLAN 3 and secondary VLAN 4:
primary_vlan_id
—— Primary VLAN ID, ranging from 2 to 4093.
—— Secondary VLAN ID, ranging from 2 to 4093.
T3700G-52TQ(config)#interface gigabitEthernet 1/0/3
T3700G-52TQ(config-if)#switchport private-vlan host-association 3 4

9.7 switchport private-vlan mapping

Description
The switchport private-vlan mapping command is used to add promiscuous
type port to private VLAN. To remove the port from Private VLAN, please use
no switchport private-vlan mapping command.
Syntax
switchport private-vlan mapping
no switchport private-vlan mapping
primary_vlan_id secondary_vlan_id
55
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Parameter
primary-vlan-id
secondary-vlan-id
—— Primary VLAN ID, ranging from 2 to 4093.
—— Secondary VLAN ID, ranging from 2 to 4093.
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Configure promiscuous type Gigabit Ethernet port 1/0/3 as a member of
primary VLAN 3 and secondary VLAN 4:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/3
T3700G-52TQ(config-if)#switchport private-vlan mapping 3 4

9.8 show vlan private-vlan

Description
The show vlan private-vlan command is used to display the Private VLAN
configuration information of the switch.
Syntax
show vlan private-vlan
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the configuration information of all Private VLAN:
T3700G-52TQ(config)#show vlan private-vlan
56
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

9.9 show vlan private-vlan interface

Description
The show vlan private-vlan interface command is used to display the
Private VLAN configuration information of the specified port(s).
Syntax
show vlan private-vlan interface [ fastEthernet
port
| gigabitEthernet
port
]
Parameter
port
—— The list of Ethernet ports.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the configuration information of all the Ethernet ports:
T3700G-52TQ(config)#show vlan private-vlan interface
57
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 10 GVRP Commands

GVRP (GARP VLAN registration protocol) is an implementation of GARP (generic attribute
registration protocol). GVRP allows the switch to automatically add or remove the VLANs via
the dynamic VLAN registration information and propagate the local VLAN registration
information to other switches, without having to individually configure each VLAN.

10.1 gvrp

Description
The gvrp command is used to enable the GVRP function globally. To disable
the GVRP function, please use no gvrp command.
Syntax
gvrp
no gvrp
Command Mode
Global Configuration Mode
Example
Enable the GVRP function globally:
T3700G-52TQ(config)#gvrp

10.2 gvrp (interface)

Description
The gvrp command is used to enable the GVRP function for the desired port.
To disable it, please use no gvrp command. The GVRP feature can only be
enabled for the trunk-type ports.
Syntax
gvrp
no gvrp
58
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet / interface ten-gigabitEthernet / interface range
ten-gigabitEthernet)
Example
Enable the GVRP function for Gigabit Ethernet ports 1/0/2-6:
T3700G-52TQ(config)#interface range gigabitEthernet 1/0/2-6
T3700G-52TQ(config-if-range)#gvrp

10.3 gvrp timer

Description
The gvrp timer command is used to set a GVRP timer for the desired port. To
restore to the default setting of a GARP timer, please use no gvrp timer
command.
Syntax
gvrp timer { leaveall | join | leave }
no gvrp timer [leaveall | join | leave]
Parameter
leaveall | join | leave —— They are the three timers: leave All, join and leave.
Once the LeaveAll Timer is set, the port with GVRP enabled can send a
LeaveAll message after the timer times out, so that other GARP ports can
re-register all the attribute information. After that, the LeaveAll timer will start
to begin a new cycle. To guarantee the transmission of the Join messages, a
GARP port sends each Join message two times. The Join Timer is used to
define the interval between the two sending operations of each Join
message. Once the Leave Timer is set, the GARP port receiving a Leave
value
message will start its Leave timer, and deregister the attribute information if it
does not receive a Join message again before the timer times out.
value
——The value of the timer. The LeaveAll Timer ranges from 200 to 6000
centiseconds and the default value is 1000 centiseconds. The Join Timer
ranges from 10 to 100 centiseconds and the default value is 20 centiseconds.
The Leave Timer ranges from 20 to 600 centiseconds and the default value is
60 centiseconds.
59
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Interface Configuration Mode (interface gigabitEthernet / interface range
gigabitEthernet / interface ten-gigabitEthernet / interface range
ten-gigabitEthernet)
Example
Set the GARP leaveall timer of Gigabit Ethernet port 1/0/6 as 2000
centiseconds and restore the join timer of it to the default value:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/6
T3700G-52TQ(config-if)#gvrp timer leaveall 2000
T3700G-52TQ(config-if)#no gvrp timer join

10.4 show gvrp global

Description
The show gvrp global command is used to display the global GVRP status.
Syntax
show gvrp global
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the global GVRP status:
T3700G-52TQ(config)#show gvrp global

10.5 show gvrp interface

Description
The show gvrp interface command is used to display the GVRP
configuration information of a specified Ethernet port or of all Ethernet ports.
Syntax
show gvrp interface [gigabitEthernet
60
port
| ten-gigabitEthernet
port
]
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Parameter
port
——The Gigabit/Ten-Gigabit Ethernet port number. By default, the GVRP
configuration information of all the Ethernet ports is displayed.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the GVRP configuration information of Gigabit Ethernet port 1:
T3700G-52TQ(config)#show gvrp interface gigabitEthernet 1/0/1
Display the GVRP configuration information of all Ethernet ports:
T3700G-52TQ(config)#show gvrp interface
61
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 11 Etherchannel Commands

Etherchannel Commands are used to configure LAG and LACP function.
LAG (Link Aggregation Group) is to combine a number of ports together to make a single
high-bandwidth data path, which can highly extend the bandwidth. The bandwidth of the LAG is
the sum of bandwidth of its member port.
LACP (Link Aggregation Control Protocol) is defined in IEEE802.3ad and enables the dynamic
link aggregation and disaggregation by exchanging LACP packets with its partner. The switch
can dynamically group similarly configured ports into a single logical link, which will highly
extend the bandwidth and flexibly balance the load.

11.1 channel-group

Description
The channel-group command is used to add a port to the EtherChannel
Group and configure its mode. To delete the port from the EtherChannel
Group, please use no channel-group command.
Syntax
channel-group
no channel-group
Parameter
num
—— The number of the EtherChannel Group, ranging from 1 to 64.
on —— Enable the static LAG.
active —— Enable the active LACP mode.
passive —— Enable the passive LACP mode.
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
num
mode { on | active | passive }
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Add the Gigabit Ethernet port 2-4 to EtherChannel Group 1 and enable the
static LAG:
62
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
T3700G-52TQ(config)#interface range gigabitEthernet 1/0/2-4
T3700G-52TQ(config-if-range)#channel-group 1 mode on

11.2 port-channel load-balance

Description
The port-channel load-balance command is used to configure the
Aggregate Arithmetic for LAG. To return to the default configurations, please
use no port-channel load-balance command.
Syntax
port-channel load-balance {src-mac | drt-mac | src-dst-mac | src-ip | drt-ip |
src-dst-ip}
no port-channel load-balance
Parameter
src-mac —— The computation is based on the source MAC addresses of the
packets.
dst-mac —— The computation is based on the destination MAC addresses of
the packets.
src-dst-mac —— The computation is based on the source and destination
MAC addresses of the packets.
src-ip —— The computation is based on the source IP addresses of the
packets.
dst-ip —— The computation is based on the destination IP addresses of the
packets.
src-dst-ip —— The computation is based on the source and destination IP
addresses of the packets.
Command Mode
Global Configuration Mode
Example
Configure the Aggregate Arithmetic for LAG as “src-dst-mac”:
T3700G-52TQ(config)#port-channel load-balance src-dst-mac
63
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

11.3 lacp system-priority

Description
The lacp system-priority command is used to configure the LACP system
priority globally. To return to the default configurations, please use no lacp
system-priority command.
Syntax
lacp system-priority
no lacp system-priority
Parameter
pri
—— The system priority, ranging from 0 to 65535. It is 32768 by default.
Command Mode
Global Configuration Mode
Example
Configure the LACP system priority as 1024 globally:
T3700G-52TQ(config)#lacp system-priority 1024

11.4 lacp port-priority

Description
pri
The lacp port-priority command is used to configure the LACP system
priority globally. To return to the default configurations, please use no lacp
port-priority command.
Syntax
lacp port-priority
no lacp port-priority
Parameter
pri
—— The port priority, ranging from 0 to 65535. It is 32768 by default.
pri
64
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Configure the LACP port priority as 1024 for Gigabit Ethernet port 1:
T3700G-52TQ(config)#interface gigabitEthernet 1/0/1
T3700G-52TQ(config-if)#lacp port-priority 1024

11.5 show etherchannel

Description
The show etherchannel command is used to display the EtherChannel
information.
Syntax
show etherchannel [
Parameter
channel-group-num
32. By default, it is empty, and will display the information of all EtherChannel
Groups.
detail —— The detailed information of EtherChannel.
summary —— The EtherChannel information in summary.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the detailed information of EtherChannel Group 1:
channel-group-num
—— The EtherChannel Group number, ranging from 1 to
] { detail | summary }
T3700G-52TQ(config)#show etherchannel 1 detail
65
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

11.6 show etherchannel load-balance

Description
The show etherchannel load-balance command is used to display the
Aggregate Arithmetic of LAG.
Syntax
show etherchannel load-balance
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the Aggregate Arithmetic of LAG:
T3700G-52TQ(config)#show etherchannel load-balance

11.7 show lacp

Description
The show lacp command is used to display the LACP information for a
specified EtherChannel Group.
Syntax
show lacp [
Parameter
channel-group-num
32. By default, it is empty, and will display the information of all LACP groups.
internal —— The internal LACP information.
neighbor —— The neighbor LACP information.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
channel-group-num
—— The EtherChannel Group number, ranging from 1 to
] { internal
|
neighbor }
Example
Display the internal LACP information of EtherChannel Group 1:
T3700G-52TQ(config)#show lacp 1 internal
66
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

11.8 show lacp sys-id

Description
The show lacp sys-id command is used to display the LACP system priority
globally.
Syntax
show lacp sys-id
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the LACP system priority:
T3700G-52TQ(config)#show lacp sys-id
67
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

Chapter 12 User Manage Commands

User Manage Commands are used to manage the user’s logging information by Web, Telnet or
SSH, so as to protect the settings of the switch from being randomly changed.

12.1 user name (password)

Description
The user name command is used to add a new user or modify the existed
users’ information. To delete the existed users, please use no user name
command. This command uses the symmetric encryption.
Syntax
user name
encrypted-password
no user name
Parameter
name
composed of digits, English letters and under dashes only.
admin | guest —— Access level. “Admin” means that you can edit, modify and
view all the settings of different functions. “Guest” means that you can only
view the settings without the right to edit and modify. It is “admin” by default.
0 —— Specify the encryption type. 0 indicates that an unencrypted password
will follow. By default, the encryption type is 0.
password
characters or symbols. The password is case sensitive, allows spaces but
ignores leading spaces, and cannot contain question marks. By default, it is
empty.
name
[ privilege admin | guest ] password { [ 0 ]
}
password
| 7
name
——Type a name for users' login, which contains 16 characters at most,
—— Users’ login password, a string from 1 to 31 alphanumeric
7 —— Indicates a symmetric encrypted password with fixed length will follow.
encrypted-password
which you can copy from another switch’s configuration file. After the
encrypted password is configured, you should use the corresponding
unencrypted password if you re-enter this mode.
—— A symmetric encrypted password with fixed length,
68
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Global Configuration Mode
User Guidelines
1. If the password you configured here is unencrypted and the global
encryption function is enabled in service password-encryption, the
password in the configuration file will be displayed in the symmetric
encrypted form.
2. If both the user’s password and secret password are defined, only the
latest configured password will take effect.
Example
Add and enable a new admin user named “tplink”, of which the password is
“admin” and unencrypted:
T3700G-52TQ(config)#user name tplink privilege admin password 0 admin

12.2 user name (secret)

Description
The user name command is used to add a new user or modify the existed
users’ information. To delete the existed users, please use no user name
command. The password of the user configured here will be displayed in the
MD5 encrypted form in the configuration file.
Syntax
user name
encrypted-password
no user name
Parameter
name
composed of digits, English letters and under dashes only.
——Type a name for users' login, which contains 16 characters at most,
name
name
[ privilege admin | guest ] secret { [ 0 ]
}
password
| 5
admin | guest —— Access level. “Admin” means that you can edit, modify and
view all the settings of different functions. “Guest” means that you can only
view the settings without the right to edit and modify. It is “admin” by default.
0 —— Specify the encryption type. 0 indicates that an unencrypted password
will follow. By default, the encryption type is 0.
69
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
password
characters or symbols. The password is case sensitive, allows spaces but
ignores leading spaces, and cannot contain question marks. By default, it is
empty. The password in the configuration file will be displayed in the MD5
encrypted form.
5 —— Indicates an MD5 encrypted password with fixed length will follow.
——Users’ login password, a string from 1 to 31 alphanumeric
encrypted-password
which you can copy from another switch’s configuration file.
—— An MD5 encrypted password with fixed length,
Command Mode
Global Configuration Mode
User Guidelines
If both the user name’s password and secret password are defined, only the
latest configured password will take effect.
Example
Add and enable a new admin user named “tplink”, of which the password is
“admin”. The password will be displayed in the encrypted form.
T3700G-52TQ(config)#user name tplink privilege admin secret 0 admin

12.3 user access-control ip-based

Description
The user access-control ip-based command is used to limit the IP-range of
the users for login. Only the users within the IP-range you set here are
allowed to login. To cancel the user access limit, please use no user
access-control command.
Syntax
user access-control ip-based {
[ http ] [ https ] [ ping ] [ all ]
no user access-control
Parameter
ip-addr
set here are allowed for login.
ip-mask
ip-addr ip-mask }
[ snmp ] [ telnet ] [ ssh ]
—— The source IP address. Only the users within the IP-range you
—— The subnet mask of the IP address.
70
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
[ snmp ] [ telnet ] [ ssh ] [ http ] [ https ] [ ping ] [ all ] —— Specify the access
interface. These interfaces are enabled by default.
Command Mode
Global Configuration Mode
Example
Enable the access-control of the user whose IP address is 192.168.0.148:
T3700G-52TQ(config)# user access-control ip-based 192.168.0.148
255.255.255.255

12.4 user access-control mac-based

Description
The user access-control mac-based command is used to limit the MAC
address of the users for login. Only the user with this MAC address you set
here is allowed to login. To cancel the user access limit, please use no user
access-control command.
Syntax
user access-control mac-based {
[ https ] [ ping ] [ all ]
no user access-control
Parameter
mac-addr
address is allowed to login.
[ snmp ] [ telnet ] [ ssh ] [ http ] [ https ] [ ping ] [ all ] —— Specify the access
interface. These interfaces are enabled by default.
Command Mode
mac-addr }
—— The source MAC address. Only the user with this MAC
[ snmp ] [ telnet ] [ ssh ] [ http ]
Global Configuration Mode
Example
Configure that only the user whose MAC address is 00:00:13:0A:00:01 is
allowed to login:
T3700G-52TQ(config)# user access-control mac-based 00:00:13:0A:00:01
71
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

12.5 user access-control port-based

Description
The user access-control port-based command is used to limit the ports for
login. Only the users connected to these ports you set here are allowed to
login. To cancel the user access limit, please use no user access-control
command.
Syntax
user access-control port-based interface { gigabitEthernet
[ telnet ] [ ssh ] [ http ] [ https ] [ ping ] [ all ]
no user access-control
Parameter
port-list
appoint 5 ports at most.
[ snmp ] [ telnet ] [ ssh ] [ http ] [ https ] [ ping ] [ all ] —— Specify the access
interface. These interfaces are enabled by default.
——The list group of Ethernet ports, in the format of 1/0/1-4. You can
Command Mode
Global Configuration Mode
Example
Configure that only the users connected to ports 2-6 are allowed to login:
T3700G-52TQ(config)# user access-control port-based interface
port-list
} [ snmp ]
gigabitEthernet 1/0/2-6

12.6 media-type rj45

Description
The media-type rj45 command is used to configure the console media type
as RJ-45 for input. The switch has two console ports available —— an RJ-45
console port and a micro-USB console port. Console input is active on only
one console port at a time. By default, the micro-USB connector takes
precedence over the RJ-45 connector, which means that, when both the
RJ-45 console connection and micro-USB console connection are valid,
input from the RJ-45 console is disabled, and input from the micro-USB
72
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
console is enabled. To return to the default configuration, please use no
media-type rj45 command.
Syntax
media-type rj45
no media-type rj45
Command Mode
Line Configuration Mode
Example
Enable the RJ-45 console input:
T3700G-52TQ(config)# line console 0
T3700G-52TQ(config-line)# media-type rj45
Receive the micro-USB console input prior to the RJ-45 console input:

12.7 line

Description
Syntax
Parameter
T3700G-52TQ(config)# line console 0
T3700G-52TQ(config-line)# no media-type rj45
The line command is used to enter the Line Configuration Mode and make
related configurations for the desired user(s), including the login mode and
password configurations.
line [console
linenum
value is 0 in general as there is only one console port on a switch.
linenum
—— The number of users allowed to login through console port. Its
| ssh | telnet ]
Command Mode
Global Configuration Mode
Example
Enter the Console port configuration mode and configure the console port 0:
T3700G-52TQ(config)#line console 0
73
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

12.8 password

Description
The password command is used to configure the connection password. To
clear the password, please use no password command.
Syntax
password { [ 0 ]
no password
Parameter
0 —— Specify the encryption type. 0 indicates that an unencrypted password
will follow. By default, the encryption type is 0.
password
characters or symbols. The password is case sensitive, allows spaces but
ignores leading spaces, and cannot contain question marks. By default, it is
empty.
7 —— Indicates a symmetric encrypted password with fixed length will follow.
encrypted-password
which you can copy from another switch’s configuration file. After the
encrypted password is configured, you should use the corresponding
unencrypted password if you re-enter this mode.
password
| 7
encrypted-password }
—— Connection password, a string from 1 to 31 alphanumeric
—— A symmetric encrypted password with fixed length,
Command Mode
Line Configuration Mode
User Guidelines
If the password you configured here is unencrypted and the global
encryption function is enabled in service password-encryption
password in the configuration file will be displayed in the symmetric
encrypted form.
Example
Configure the connection password of Console port connection 0 as “tplink”
and unencrypted:
T3700G-52TQ(config)#line console 0
T3700G-52TQ(config-line)#password 0 tplink
, the
74
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Configure the connection password of virtual terminal connection 0-5 as
“tplink” and unencrypted:
T3700G-52TQ(config)#line vty 0 5
T3700G-52TQ(config-line)#password 0 tplink

12.9 login local

Description
The login local command is used to configure the login mode of the switch
which uses the user name and password to login.
Syntax
login local
Command Mode
Line Configuration Mode (Console)
Example
Configure the login of Console port connection 0 as login local mode:
T3700G-52TQ(config)#line console 0
T3700G-52TQ(config-line)#login local

12.10 telnet

Description
The telnet enable command is used to enable the Telnet function. To disable
the Telnet function, please use the telnet disable command. This function is
enabled by default.
Syntax
telnet enable
telnet disable
Command Mode
Global Configuration Mode
75
JetStream Gigabit Stackable L3 Managed Switch CLI Guide
Example
Disable the Telnet function:
T3700G-52TQ (config)# telnet disable

12.11 show user account-list

Description
The show user account-list command is used to display the information of
the current users.
Syntax
show user account-list
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the information of the current users:
T3700G-52TQ(config)#show user account-list

12.12 show user configuration

Description
The user configuration command is used to display the security
configuration information of the users, including access-control, max-number
and the idle-timeout, etc.
Syntax
show user configuration
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the security configuration information of the users:
T3700G-52TQ(config)#show user configuration
76
JetStream Gigabit Stackable L3 Managed Switch CLI Guide

12.13 show telnet-status

Description
The show telnet-status command is used to display the configuration
information of the Telnet function.
Syntax
show telnet-status
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display whether the Telnet function is enabled:
T3700G-52TQ(config)# show telnet-status
77
Loading...