TP-Link JetStream T3700G-52TQ Cli Reference Manual

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

Chapter 13 Binding Table Commands

You can bind the IP address, MAC address, VLAN and the connected Port number of the Host
together, which can be the condition for the ARP Inspection to filter the packets.

13.1 ip source binding

Description
The ip source binding command is used to bind the IP address, MAC address,
VLAN ID and the Port number together manually.
IP address, MAC address, VLAN ID and the Port number together in the
condition that you have got the related information of the Hosts in the LAN.
To delete the IP-MAC–VID-PORT entry from the binding table, please use no
ip source binding index command.
Syntax
ip source binding
ten-gigabitEthernet
no ip source binding
Parameter
sip
mac
vlan-id
port
You can manually bind the
sip mac
port
mac
—— The IP address of the Host.
—— The MAC address of the Host.
——The VLAN ID needed to be bound, ranging from 1 to 4093.
—— The number of port connected to the Host.
}
vlan
vlan-id
interface { gigabitEthernet
port
|
Command Mode
Global Configuration Mode
Example
Bind an entry with the IP 192.168.0.1, MAC 00:00:00:00:00:01, VLAN ID 2 and
the Port number 1/0/5 manually:
T3700G-52TQ(config)#ip source binding 192.168.0.1 00:00:00:00:00:01
vlan 2 interface gigabitEthernet 1/0/5
Delete the IP-MAC–VID-PORT entry with the IP 192.168.0.1, MAC
00:00:00:00:00:01, VLAN ID 2 and the Port number 1/0/5:
77
Loading...