T3700G-28TQ
JetStream 28-Port Gigabit Stackable L3
Managed Switch
REV1.0.1
1910011211
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 © 2015 TP-LINK TECHNOLOGIES CO., LTD. All rights
reserved.
http://www.tp-link.com
I
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 ............................................. 8
1.1.3 Logon by Telnet ................................................................................................... 8
1.1.4 Logon by SSH ................................................................................................... 13
1.2 CLI Command Modes .................................................................................................... 18
1.3 Security Levels ............................................................................................................... 21
1.4 Conventions .................................................................................................................... 21
1.4.1 Format Conventions .......................................................................................... 22
1.4.2 Special Characters ............................................................................................ 22
1.4.3 Parameter Format ............................................................................................. 22
Chapter 2 User Interface ...................................................................................... 23
enable ...................................................................................................................................... 23
service password-encryption .................................................................................................. 23
enable password ..................................................................................................................... 24
enable secret ........................................................................................................................... 25
disable ..................................................................................................................................... 26
configure .................................................................................................................................. 26
exit ........................................................................................................................................... 27
end........................................................................................................................................... 27
history ...................................................................................................................................... 28
history clear ............................................................................................................................. 28
Chapter 3 Stack .................................................................................................... 29
switch priority........................................................................................................................... 29
switch renumber ...................................................................................................................... 29
switch authentication-mode .................................................................................................... 30
switch stack-name ................................................................................................................... 31
switch stack-port...................................................................................................................... 32
show switch ............................................................................................................................. 32
Chapter 4 IEEE 802.1Q VLAN Commands .......................................................... 34
vlan .......................................................................................................................................... 34
II
interface vlan ........................................................................................................................... 35
name ....................................................................................................................................... 35
switchport mode ...................................................................................................................... 36
switchport access vlan ............................................................................................................ 36
switchport trunk allowed vlan .................................................................................................. 37
switchport general allowed vlan .............................................................................................. 38
switchport pvid ........................................................................................................................ 39
show interface switchport ........................................................................................................ 39
show vlan summary ................................................................................................................ 40
show vlan brief ........................................................................................................................ 40
show vlan ................................................................................................................................ 41
Chapter 5 MAC-based VLAN Commands ............................................................ 42
mac-vlan mac-address ............................................................................................................ 42
mac-vlan .................................................................................................................................. 43
show mac-vlan ........................................................................................................................ 43
show mac-vlan interface ......................................................................................................... 44
Chapter 6 Protocol-based VLAN Commands ....................................................... 45
protocol-vlan template ............................................................................................................. 45
protocol-vlan vlan .................................................................................................................... 46
protocol-vlan group ................................................................................................................. 46
show protocol-vlan template ................................................................................................... 47
show protocol-vlan vlan........................................................................................................... 48
Chapter 7 VLAN-VPN Commands ....................................................................... 49
dot1q-tunnel ............................................................................................................................ 49
dot1q-tunnel tpid ..................................................................................................................... 49
dot1q-tunnel mapping ............................................................................................................. 50
switchport dot1q-tunnel mapping ............................................................................................ 50
switchport dot1q-tunnel mode ................................................................................................. 51
show dot1q-tunnel ................................................................................................................... 52
show dot1q-tunnel mapping .................................................................................................... 52
show dot1q-tunnel interface .................................................................................................... 53
Chapter 8 Voice VLAN Commands ...................................................................... 54
voice vlan ................................................................................................................................ 54
voice vlan aging ...................................................................................................................... 54
voice vlan priority .................................................................................................................... 55
III
voice vlan mac-address .......................................................................................................... 56
switchport voice vlan mode ..................................................................................................... 56
switchport voice vlan security ................................................................................................. 57
show voice vlan ....................................................................................................................... 58
show voice vlan oui ................................................................................................................. 58
show voice vlan switchport ..................................................................................................... 59
Chapter 9 Private VLAN Commands .................................................................... 60
private-vlan primary ................................................................................................................. 60
private-vlan community ........................................................................................................... 60
private-vlan isolated ................................................................................................................ 61
private-vlan association........................................................................................................... 61
switchport private-vlan ............................................................................................................ 62
switchport private-vlan host-association ................................................................................. 63
switchport private-vlan mapping ............................................................................................. 63
show vlan private-vlan............................................................................................................. 64
show vlan private-vlan interface .............................................................................................. 65
Chapter 10 GVRP Commands ............................................................................... 66
gvrp.......................................................................................................................................... 66
gvrp (interface) ........................................................................................................................ 66
gvrp registration ...................................................................................................................... 67
gvrp timer ................................................................................................................................ 68
show gvrp global ..................................................................................................................... 69
show gvrp interface ................................................................................................................. 69
Chapter 11 Etherchannel Commands .................................................................... 71
channel-group ......................................................................................................................... 71
port-channel load-balance ...................................................................................................... 72
lacp system-priority ................................................................................................................. 72
lacp port-priority ...................................................................................................................... 73
show etherchannel .................................................................................................................. 74
show etherchannel load-balance ............................................................................................ 74
show lacp ................................................................................................................................ 75
show lacp sys-id ...................................................................................................................... 75
Chapter 12 User Manage Commands .................................................................... 76
user name (password) ............................................................................................................ 76
user name (secret) .................................................................................................................. 77
IV
user access-control ip-based .................................................................................................. 78
user access-control mac-based .............................................................................................. 79
user access-control port-based............................................................................................... 80
user max-number .................................................................................................................... 80
user idle-timeout ...................................................................................................................... 81
line ........................................................................................................................................... 82
password ................................................................................................................................. 82
login ......................................................................................................................................... 84
login local ................................................................................................................................ 84
show user account-list............................................................................................................. 85
show user configuration .......................................................................................................... 85
Chapter 13 Binding Table Commands .................................................................... 86
ip source binding ..................................................................................................................... 86
ip dhcp snooping ..................................................................................................................... 87
ip dhcp snooping global .......................................................................................................... 88
ip dhcp snooping information option ....................................................................................... 89
ip dhcp snooping information strategy .................................................................................... 89
ip dhcp snooping information user-defined ............................................................................. 90
ip dhcp snooping information remote-id .................................................................................. 90
ip dhcp snooping information circuit-id ................................................................................... 91
ip dhcp snooping trust ............................................................................................................. 92
ip dhcp snooping mac-verify ................................................................................................... 92
ip dhcp snooping limit rate ...................................................................................................... 93
ip dhcp snooping decline ........................................................................................................ 94
show ip source binding............................................................................................................ 94
show ip dhcp snooping............................................................................................................ 95
show ip dhcp snooping interface............................................................................................. 95
Chapter 14 ARP Inspection Commands ................................................................ 97
ip arp inspection(global) .......................................................................................................... 97
ip arp inspection trust .............................................................................................................. 97
ip arp inspection(interface) ...................................................................................................... 98
ip arp inspection limit-rate ....................................................................................................... 99
ip arp inspection recover ......................................................................................................... 99
show ip arp inspection........................................................................................................... 100
show ip arp inspection interface............................................................................................ 100
show ip arp inspection statistics ............................................................................................ 101
V
clear ip arp inspection statistics ............................................................................................ 101
Chapter 15 IP Verify Source Commands.............................................................. 103
ip verify source ...................................................................................................................... 103
show ip verify source ............................................................................................................. 104
Chapter 16 DoS Defend Command ..................................................................... 105
ip dos-prevent ....................................................................................................................... 105
ip dos-prevent type ................................................................................................................ 105
show ip dos-prevent .............................................................................................................. 106
Chapter 17 IEEE 802.1X Commands ................................................................... 107
dot1x system-auth-control ..................................................................................................... 107
dot1x auth-method ................................................................................................................ 107
dot1x guest-vlan(global) ........................................................................................................ 108
dot1x quiet-period ................................................................................................................. 109
dot1x timeout ......................................................................................................................... 109
dot1x max-reauth-req ............................................................................................................. 110
dot1x ....................................................................................................................................... 111
dot1x guest-vlan(interface) .................................................................................................... 111
dot1x port-control ................................................................................................................... 112
dot1x port-method .................................................................................................................. 113
radius ...................................................................................................................................... 113
radius server-account ............................................................................................................. 115
show dot1x global .................................................................................................................. 115
show dot1x interface .............................................................................................................. 116
show radius accounting ......................................................................................................... 116
show radius authentication .................................................................................................... 117
Chapter 18 System Log Commands ..................................................................... 118
logging buffer .......................................................................................................................... 118
logging buffer level ................................................................................................................. 118
logging file flash ..................................................................................................................... 11 9
logging file flash frequency ................................................................................................... 120
logging file flash level ............................................................................................................ 120
logging host index ................................................................................................................. 121
copy logging flash tftp ........................................................................................................... 122
clear logging .......................................................................................................................... 122
show logging local-config ...................................................................................................... 123
VI
show logging loghost ............................................................................................................. 123
show logging buffer ............................................................................................................... 124
show logging flash ................................................................................................................. 125
Chapter 19 SSH Commands ................................................................................ 126
ip ssh server .......................................................................................................................... 126
ip ssh version ........................................................................................................................ 126
ip ssh timeout ........................................................................................................................ 127
ip ssh max-client ................................................................................................................... 127
ip ssh download .................................................................................................................... 128
remove public-key ................................................................................................................. 129
show ip ssh ............................................................................................................................ 129
Chapter 20 SSL Commands ................................................................................ 130
ip http secure-server ............................................................................................................. 130
ip http secure-server download certificate ............................................................................ 130
ip http secure-server download key ...................................................................................... 131
show ip http secure-server .................................................................................................... 132
Chapter 21 MAC Address Commands ................................................................. 133
mac address-table static ....................................................................................................... 133
mac address-table aging-time ............................................................................................... 134
mac address-table filtering .................................................................................................... 134
mac address-table max-mac-count....................................................................................... 135
show mac address-table ....................................................................................................... 136
show mac address-table aging-time ..................................................................................... 137
show mac address-table max-mac-count ............................................................................. 137
show mac address-table interface ........................................................................................ 138
show mac address-table count ............................................................................................. 138
show mac address-table address ......................................................................................... 139
show mac address-table vlan ............................................................................................... 140
Chapter 22 System Configuration Commands ..................................................... 141
system-time manual .............................................................................................................. 141
system-time ntp ..................................................................................................................... 141
system-time dst predefined ................................................................................................... 143
system-time dst date ............................................................................................................. 144
system-time dst recurring ...................................................................................................... 145
hostname ............................................................................................................................... 146
VII
location .................................................................................................................................. 146
contact-info ............................................................................................................................ 147
ip address .............................................................................................................................. 148
ip address-alloc ..................................................................................................................... 148
reset ...................................................................................................................................... 149
reboot .................................................................................................................................... 150
copy running-config startup-config ........................................................................................ 150
copy running-config backup-config ....................................................................................... 151
copy running-config user-config ............................................................................................ 151
copy backup-config startup-config ........................................................................................ 152
copy startup-config backup-config ........................................................................................ 152
boot application ..................................................................................................................... 153
boot config ............................................................................................................................. 154
copy backup-config tftp ......................................................................................................... 154
copy startup-config tftp .......................................................................................................... 155
copy tftp backup-config ......................................................................................................... 156
copy tftp startup-config .......................................................................................................... 157
copy image tftp-source .......................................................................................................... 158
copy image tftp-target ........................................................................................................... 158
copy image ............................................................................................................................ 159
remove backup-image........................................................................................................... 160
remove config ........................................................................................................................ 160
firmware upgrade .................................................................................................................. 161
ping ........................................................................................................................................ 162
tracert .................................................................................................................................... 162
loopback interface ................................................................................................................. 163
show system-time ................................................................................................................. 164
show system-time dst ............................................................................................................ 164
show system-time ntp ........................................................................................................... 165
show system-info .................................................................................................................. 165
show environment ................................................................................................................. 166
show files-in-system .............................................................................................................. 166
show image-info .................................................................................................................... 167
show running-config .............................................................................................................. 168
show boot .............................................................................................................................. 168
show cable-diagnostics interface .......................................................................................... 169
show cpu-utilization ............................................................................................................... 169
show memory-utilization
....................................................................................................... 170
VIII
Chapter 23 Ethernet Configuration Commands ................................................... 171
interface fastEthernet ............................................................................................................ 171
interface range fastEthernet .................................................................................................. 171
interface gigabitEthernet ....................................................................................................... 172
interface range gigabitEthernet ............................................................................................. 172
interface ten-gigabitEthernet ................................................................................................. 173
interface range ten-gigabitEthernet ...................................................................................... 174
description ............................................................................................................................. 175
shutdown ............................................................................................................................... 175
flow-control ............................................................................................................................ 176
duplex .................................................................................................................................... 177
speed ..................................................................................................................................... 177
storm-control broadcast ........................................................................................................ 178
storm-control multicast .......................................................................................................... 179
storm-control unicast ............................................................................................................. 180
bandwidth .............................................................................................................................. 181
clear counters ........................................................................................................................ 181
show interface status ............................................................................................................ 182
show interface counters ........................................................................................................ 182
show interface configuration ................................................................................................. 183
show storm-control ................................................................................................................ 184
show bandwidth..................................................................................................................... 184
Chapter 24 QoS Commands ................................................................................ 186
qos ......................................................................................................................................... 186
qos dscp ................................................................................................................................ 187
qos queue cos-map ............................................................................................................... 187
qos queue dscp-map ............................................................................................................. 188
qos queue mode ................................................................................................................... 189
show qos interface ................................................................................................................ 190
show qos cos-map ................................................................................................................ 190
show qos dscp-map .............................................................................................................. 191
show qos queue mode .......................................................................................................... 191
show qos status..................................................................................................................... 192
Chapter 25 Port Mirror Commands ...................................................................... 193
monitor session destination interface ................................................................................... 193
monitor session source interface .......................................................................................... 194
IX
show monitor session ............................................................................................................ 195
Chapter 26 Port isolation Commands .................................................................. 196
port isolation .......................................................................................................................... 196
show port isolation ................................................................................................................ 197
Chapter 27 Loopback Detection Commands ....................................................... 198
loopback-detection(global) .................................................................................................... 198
loopback-detection interval ................................................................................................... 198
loopback-detection recovery-time ......................................................................................... 199
loopback-detection(interface) ................................................................................................ 199
loopback-detection config ..................................................................................................... 200
loopback-detection recover ................................................................................................... 201
show loopback-detection global ............................................................................................ 201
show loopback-detection interface ....................................................................................... 202
Chapter 28 ACL Commands ................................................................................ 203
time-range ............................................................................................................................. 203
absolute ................................................................................................................................. 203
periodic .................................................................................................................................. 204
holiday ................................................................................................................................... 205
holiday(global) ....................................................................................................................... 205
access-list create .................................................................................................................. 206
mac access-list ...................................................................................................................... 206
access-list standard .............................................................................................................. 207
access-list extended .............................................................................................................. 208
rule......................................................................................................................................... 209
access-list policy name ......................................................................................................... 210
access-list policy action.......................................................................................................... 211
redirect interface ................................................................................................................... 212
s-condition ............................................................................................................................. 212
s-mirror .................................................................................................................................. 213
qos-remark ............................................................................................................................ 213
access-list bind(interface) ..................................................................................................... 214
access-list bind(vlan) ............................................................................................................. 214
show time-range .................................................................................................................... 215
show holiday.......................................................................................................................... 215
show access-list .................................................................................................................... 216
show access-list policy .......................................................................................................... 216
X
show access-list bind ............................................................................................................ 217
Chapter 29 MSTP Commands ............................................................................. 218
spanning-tree(global) ............................................................................................................ 218
spanning-tree(interface) ........................................................................................................ 218
spanning-tree common-config .............................................................................................. 219
spanning-tree mode .............................................................................................................. 220
spanning-tree mst configuration ............................................................................................ 221
instance ................................................................................................................................. 221
name ..................................................................................................................................... 222
revision .................................................................................................................................. 222
spanning-tree mst instance ................................................................................................... 223
spanning-tree mst ................................................................................................................. 224
spanning-tree priority ............................................................................................................ 225
spanning-tree tc-defend ........................................................................................................ 225
spanning-tree timer ............................................................................................................... 226
spanning-tree hold-count ...................................................................................................... 227
spanning-tree max-hops ....................................................................................................... 227
spanning-tree bpdufilter ........................................................................................................ 228
spanning-tree bpduguard ...................................................................................................... 228
spanning-tree guard loop ...................................................................................................... 229
spanning-tree guard root ....................................................................................................... 229
spanning-tree guard tc .......................................................................................................... 230
spanning-tree mcheck ........................................................................................................... 231
show spanning-tree active .................................................................................................... 231
show spanning-tree bridge .................................................................................................... 232
show spanning-tree interface ................................................................................................ 232
show spanning-tree interface-security .................................................................................. 233
show spanning-tree mst ........................................................................................................ 233
Chapter 30 IGMP Snooping Commands .............................................................. 235
ip igmp snooping(global) ....................................................................................................... 235
ip igmp snooping(interface) ................................................................................................... 235
ip igmp snooping immediate-leave ....................................................................................... 236
ip igmp snooping drop-unknown ........................................................................................... 236
ip igmp snooping vlan-config ................................................................................................ 237
ip igmp snooping max-groups ............................................................................................... 238
ip igmp snooping multi-vlan-config ....................................................................................... 239
XI
ip igmp snooping querier vlan ............................................................................................... 240
ip igmp snooping querier vlan (general query) ..................................................................... 241
ip igmp snooping querier vlan (specific query) ..................................................................... 241
show ip igmp snooping.......................................................................................................... 242
show ip igmp snooping interface........................................................................................... 243
show ip igmp snooping vlan .................................................................................................. 244
show ip igmp snooping multi-vlan ......................................................................................... 244
show ip igmp snooping groups ............................................................................................. 244
show ip igmp snooping querier ............................................................................................. 245
Chapter 31 SNMP Commands ............................................................................. 247
snmp-server .......................................................................................................................... 247
snmp-server view .................................................................................................................. 247
snmp-server group ................................................................................................................ 248
snmp-server user .................................................................................................................. 249
snmp-server community ........................................................................................................ 251
snmp-server host .................................................................................................................. 252
snmp-server engineID ........................................................................................................... 253
snmp-server traps snmp ....................................................................................................... 254
snmp-server traps link-status ................................................................................................ 255
snmp-server traps ................................................................................................................. 255
snmp-server traps mac ......................................................................................................... 256
snmp-server traps vlan .......................................................................................................... 257
rmon history ........................................................................................................................... 258
rmon event ............................................................................................................................ 259
rmon alarm ............................................................................................................................ 260
rmon statistics ....................................................................................................................... 261
show snmp-server ................................................................................................................. 262
show snmp-server view......................................................................................................... 262
show snmp-server group ...................................................................................................... 263
show snmp-server user ......................................................................................................... 263
show snmp-server community .............................................................................................. 264
show snmp-server host ......................................................................................................... 264
show snmp-server engineID ................................................................................................. 264
show rmon history ................................................................................................................. 265
show rmon event ................................................................................................................... 265
show rmon alarm ................................................................................................................... 266
show rmon statistics .............................................................................................................. 266
XII
Chapter 32 LLDP Commands .............................................................................. 268
lldp ......................................................................................................................................... 268
lldp hold-multiplier ................................................................................................................. 268
lldp timer ................................................................................................................................ 269
lldp receive ............................................................................................................................ 270
lldp transmit ........................................................................................................................... 270
lldp snmp-trap ........................................................................................................................ 271
lldp tlv-select .......................................................................................................................... 271
lldp med-fast-count ................................................................................................................ 272
lldp med-status ...................................................................................................................... 273
lldp med-tlv-select ................................................................................................................. 273
lldp med-location ................................................................................................................... 274
show lldp ............................................................................................................................... 275
show lldp interface ................................................................................................................ 275
show lldp local-information interface ..................................................................................... 276
show lldp neighbor-information interface .............................................................................. 276
show lldp traffic interface ....................................................................................................... 277
Chapter 33 Cluster Commands ............................................................................ 278
cluster ndp ............................................................................................................................. 278
cluster ntdp ............................................................................................................................ 279
cluster explore ....................................................................................................................... 280
cluster .................................................................................................................................... 280
cluster ip pool ........................................................................................................................ 281
cluster commander ................................................................................................................ 281
cluster manage ...................................................................................................................... 282
cluster member ..................................................................................................................... 282
cluster candidate ................................................................................................................... 283
cluster individual .................................................................................................................... 283
cluster management-vlan ...................................................................................................... 284
clear ndp statistics ................................................................................................................. 284
show cluster ndp ................................................................................................................... 285
show cluster neighbor ........................................................................................................... 285
show cluster ntdp .................................................................................................................. 286
show cluster .......................................................................................................................... 286
show cluster member ............................................................................................................ 287
Chapter 34 Static Routes Commands .................................................................. 288
XIII
interface vlan ......................................................................................................................... 288
interface loopback ................................................................................................................. 288
switchport .............................................................................................................................. 289
shutdown ............................................................................................................................... 289
description ............................................................................................................................. 290
ip route .................................................................................................................................. 290
ip routing ................................................................................................................................ 291
show interface loopback ....................................................................................................... 292
show interface vlan ............................................................................................................... 292
show ip interface ................................................................................................................... 293
show ip interface brief ........................................................................................................... 293
show ip route ......................................................................................................................... 294
show ip route specify ............................................................................................................. 294
show ip route summary ......................................................................................................... 295
Chapter 35 DHCP Server ..................................................................................... 296
service dhcp .......................................................................................................................... 296
ip dhcp server exclude-address ............................................................................................ 296
ip dhcp server pool ................................................................................................................ 297
ip dhcp server ping timeout ................................................................................................... 297
ip dhcp server ping packets .................................................................................................. 298
network .................................................................................................................................. 298
lease ...................................................................................................................................... 299
address hardware-address ................................................................................................... 299
address client-identifier ......................................................................................................... 300
default-gateway ..................................................................................................................... 301
dns-server ............................................................................................................................. 301
show ip dhcp server status ................................................................................................... 302
show ip dhcp server statistics ............................................................................................... 302
show ip dhcp server pool ...................................................................................................... 303
show ip dhcp server excluded-address ................................................................................ 303
show ip dhcp server manual-binding .................................................................................... 304
show ip dhcp server binding ................................................................................................. 304
clear ip dhcp server statistics ................................................................................................ 304
clear ip dhcp server binding .................................................................................................. 305
Chapter 36 DHCP Relay ...................................................................................... 306
ip helper-address .................................................................................................................. 306
XIV
ip dhcp relay information ....................................................................................................... 306
ip dhcp relay information policy............................................................................................. 307
ip dhcp relay information custom .......................................................................................... 307
ip dhcp relay information circuit-id ........................................................................................ 308
ip dhcp relay information remote-id ...................................................................................... 308
show ip dhcp relay ................................................................................................................ 309
Chapter 37 Proxy ARP Commands ...................................................................... 310
ip proxy-arp ........................................................................................................................... 310
ip proxy-arp enable default-route .......................................................................................... 310
show ip proxy-arp ................................................................................................................... 311
Chapter 38 IGMP Commands .............................................................................. 312
ip igmp ................................................................................................................................... 312
ip igmp version ...................................................................................................................... 312
ip igmp last-member-query-count ......................................................................................... 313
ip igmp last-member-query-interval ...................................................................................... 313
ip igmp querier-timeout ......................................................................................................... 314
ip igmp query-interval ............................................................................................................ 315
ip igmp query-max-response-time ........................................................................................ 315
ip igmp require-router-alert ................................................................................................... 316
ip igmp robustness ................................................................................................................ 316
ip igmp send-router-alert ....................................................................................................... 317
ip igmp startup-query-interval ............................................................................................... 318
ip igmp startup-query-count .................................................................................................. 318
ip igmp static-group (interface vlan) ...................................................................................... 319
ip igmp static-group (routed port) .......................................................................................... 320
ip igmp profile ........................................................................................................................ 321
deny ....................................................................................................................................... 321
permit .................................................................................................................................... 322
range ..................................................................................................................................... 322
ip igmp filter ........................................................................................................................... 323
ip igmp max-groups ............................................................................................................... 323
show ip igmp profile .............................................................................................................. 325
show ip igmp groups ............................................................................................................. 325
show ip igmp groups interface .............................................................................................. 326
show ip igmp groups interface vlan....................................................................................... 326
show ip igmp groups static .................................................................................................... 327
XV
show ip igmp groups static interface ..................................................................................... 327
show ip igmp groups static interface vlan ............................................................................. 328
show ip igmp groups port-info (dynamic) .............................................................................. 328
show ip igmp interface .......................................................................................................... 329
show ip igmp interface vlan ................................................................................................... 330
show ip igmp interface loopback ........................................................................................... 330
Chapter 39 PIM Commands ................................................................................. 332
ip multicast-routing ................................................................................................................ 332
ip pim ..................................................................................................................................... 332
ip pim sg-expiry-timer ............................................................................................................ 333
ip pim spt-threshold infinity ................................................................................................... 333
ip pim bsr-candidate interface ............................................................................................... 334
ip pim rp-candidate interface ................................................................................................. 335
ip pim rp-address .................................................................................................................. 336
ip pim bsr-border ................................................................................................................... 336
ip pim dr-priority .................................................................................................................... 337
ip pim join-prune-interval ....................................................................................................... 337
ip pim query-interval .............................................................................................................. 338
show ip multicast ................................................................................................................... 339
show ip mroute ...................................................................................................................... 339
show ip pim interface ............................................................................................................ 340
show ip pim neighbor ............................................................................................................ 340
show ip pim bsr-router........................................................................................................... 341
show ip pim rp ....................................................................................................................... 341
show ip pim rp-hash .............................................................................................................. 342
Chapter 40 Static Multicast Routing Commands .................................................. 343
ip mroute ............................................................................................................................... 343
show ip mroute static ............................................................................................................ 344
Chapter 41 VRRP Commands ............................................................................. 345
vrrp vrid ................................................................................................................................. 345
vrrp vrid virtual-ip ................................................................................................................... 346
vrrp vrid description ............................................................................................................... 346
vrrp vrid priority ..................................................................................................................... 347
vrrp vrid timer-advertise ........................................................................................................ 347
vrrp vrid preempt-mode ......................................................................................................... 348
vrrp vrid authentication-mode ............................................................................................... 349
XVI
vrrp vrid track interface.......................................................................................................... 350
clear vrrp statistics ................................................................................................................ 351
show vrrp ............................................................................................................................... 351
show vrrp statistics ................................................................................................................ 352
Chapter 42 RIP Commands ................................................................................. 353
router rip ................................................................................................................................ 353
network .................................................................................................................................. 353
version ................................................................................................................................... 354
timer basic ............................................................................................................................. 355
distance ................................................................................................................................. 355
auto-summary ....................................................................................................................... 356
default-metric......................................................................................................................... 356
redistribute ............................................................................................................................. 357
passive-interface ................................................................................................................... 358
ip rip receive version ............................................................................................................. 358
ip rip send version ................................................................................................................. 359
ip rip v2-broadcast ................................................................................................................. 360
ip rip authentication-mode ..................................................................................................... 360
ip rip poison-reverse .............................................................................................................. 361
ip rip split-horizon .................................................................................................................. 362
show ip rip ............................................................................................................................. 362
Chapter 43 OSPF Commands ............................................................................. 364
router ospf ............................................................................................................................. 364
router-id ................................................................................................................................. 364
network .................................................................................................................................. 365
summary-address ................................................................................................................. 366
maximum-paths ..................................................................................................................... 367
redistribute ............................................................................................................................. 368
default-metric......................................................................................................................... 369
default-information originate ................................................................................................. 369
auto-cost ................................................................................................................................ 370
distance ................................................................................................................................. 371
timers throttle spf ................................................................................................................... 372
timers lsa arrival .................................................................................................................... 372
compatible rfc1583 ................................................................................................................ 373
passive-interface ................................................................................................................... 374
XVII
passive-interface range ......................................................................................................... 374
passive-interface default ....................................................................................................... 375
no area .................................................................................................................................. 376
area description ..................................................................................................................... 376
area authentication ................................................................................................................ 377
area stub ............................................................................................................................... 378
area nssa ............................................................................................................................... 378
area default-cost ................................................................................................................... 379
area range ............................................................................................................................. 380
area virtual-link ...................................................................................................................... 381
area virtual-link authentication .............................................................................................. 382
area virtual-link authentication-key ....................................................................................... 384
area virtual-link message-digest-key .................................................................................... 385
ip ospf cost ............................................................................................................................ 386
ip ospf retransmit-interval ...................................................................................................... 387
ip ospf transmit-delay ............................................................................................................ 387
ip ospf priority ........................................................................................................................ 388
ip ospf hello-interval .............................................................................................................. 388
ip ospf dead-interval .............................................................................................................. 389
ip ospf authentication ............................................................................................................ 390
ip ospf authentication-key ..................................................................................................... 390
ip ospf message-digest-key .................................................................................................. 391
ip ospf network ...................................................................................................................... 392
ip ospf database-filter all out ................................................................................................. 393
ip ospf mtu-ignore ................................................................................................................. 393
clear ip ospf ........................................................................................................................... 394
show ip ospf .......................................................................................................................... 394
show ip ospf database .......................................................................................................... 395
show ip ospf interface ........................................................................................................... 396
show ip ospf neighbor ........................................................................................................... 396
show ip ospf request-list ........................................................................................................ 397
show ip ospf retransmission-list ............................................................................................ 398
show ip ospf summary-address ............................................................................................ 398
show ip ospf virtual-links ....................................................................................................... 399
show ip ospf border-routers .................................................................................................. 399
show ip route ospf ................................................................................................................. 400
show ip ospf area database .................................................................................................. 400
show ip ospf area interface ................................................................................................... 401
XVIII
show ip ospf area neighbor ................................................................................................... 402
show ip ospf area request-list ............................................................................................... 402
show ip ospf area retransmission-list .................................................................................... 403
XIX
JetStream 28-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-28TQ
JetStream 28-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
JetStream 28-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: 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 16: DoS Defend Command
Provide information about the commands used for DoS defend and detecting the DoS attack.
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: SSL Commands
Provide information about the commands used for configuring and managing SSL (Secure
Sockets Layer).
Chapter 21: MAC Address Commands
Provide information about the commands used for 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: QoS Commands
Provide information about the commands used for configuring the QoS function.
2
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 25: Port Mirror Commands
Provide information about the commands used for configuring the Port Mirror function.
Chapter 26: Port Isolation Commands
Provide information about the commands used for configuring Port Isolation function.
Chapter 27: Loopback Detection Commands
Provide information about the commands used for configuring the Loopback Detection function.
Chapter 28: ACL Commands
Provide information about the commands used for configuring the ACL (Access Control List).
Chapter 29: MSTP Commands
Provide information about the commands used for configuring the MSTP (Multiple Spanning Tree
Protocol).
Chapter 30: IGMP Commands
Provide information about the commands used for configuring the IGMP Snooping (Internet Group
Management Protocol Snooping).
Chapter 31: SNMP Commands
Provide information about the commands used for configuring the SNMP (Simple Network
Management Protocol) functions.
Chapter 32: LLDP Commands
Provide information about the commands used for configuring LLDP function.
Chapter 33: Cluster Commands
Provide information about the commands used for configuring the Cluster Management function.
Chapter 34: Static Routes Commands
Provide information about the commands used for configuring the Static Route function.
Chatper 35: DHCP Server Commands
Provide information about the commands used for configuring the DHCP Server function.
Chapter 36: DCHP Relay Commands
Provide information about the commands used for configuring the DHCP Relay function.
Chapter 37: Proxy ARP Commands
Provide information about the commands used for configuring the Proxy ARP function.
Chapter 38: IGMP Commands
Provide information about the commands used for configuring the IGMP function.
Chapter 39: PIM Commands
Provide information about the commands used for configuring the PIM function.
3
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 40: Static Multicast Routing Commands
Provide information about the commands used for configuring the Static Multicast Routing
function.
Chapter 41: VRRP Commands
Provide information about the commands used for configuring the VRRP function.
Chapter 42: RIP Commands
Provide information about the commands used for configuring the RIP function.
Chapter 43: OSPF Commands
Provide information about the commands used for configuring the OSPF function.
4
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 1 Using the CLI
1.1 Accessing the CLI
You can log on to the switch and access the CLI by the following three methods:
1. Log on to the switch by the console port on the switch.
2. Log on to the switch remotely by a Telnet connection through an Ethernet port.
3. Log on to the switch remotely by an SSH connection through an Ethernet port.
1.1.1 Logon by a console port
To log on to the switch by the console port on the switch, please take the following steps:
1. Connect the PCs or Terminals to the console port on the switch by a provided cable.
2. Click Start → All Programs → Accessories→ Communications → Hyper Terminal to
open the Hyper Terminal as the Figure 1-1 shows.
Figure 1-1 Open
Hyper Terminal
5
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
3. The Connection Description Window will prompt as shown in Figure 1-2. Enter a name into
the Name field and click OK .
Figure 1-2 Connection Description
4. Select the port to connect in Figure 1-3, and click OK .
Figure 1-3 Select the port to connect
6
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
5. Configure the port selected in the step above as shown in Figure 1-4. Configure Bits per
second as 38400, Data bits as 8, Parity as None, Stop bits as 1, Flow control as None,
and then click OK .
Figure 1-4 Port Settings
6. The DOS prompt “T3700G-28TQ>” will appear after pressing the Enter button as shown in
Figure 1-5. It indicates that you can use the CLI now.
Figure 1-5 Log in the Switch
7
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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 on to the switch, and then follow the steps shown in Figure 1-6 to
configure the Privileged EXEC Mode password.
Figure 1-6 Configure the Privileged EXEC Mode Password
1.1.3 Logon by Telnet
For Telnet connection, after configuring the Privileged EXEC Mode Password, you should also
configure the Telnet login mode and login authentication information through console connection.
Telnet login has the following two modes. You can choose one according to your needs:
Login local Mode: It requires username and password, which are both admin by default.
Login Mode: It doesn’t require username and password, but a connection password is required.
Note:
Before Telnet login, you are required to configure Telnet login mode and login authentication
information through console connection.
8
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Login Local Mode
Firstly, configure the Telnet login mode as “login local ” in the prompted DOS screen shown in
Figure 1-7.
Figure 1-7 Configure login local mode
Now, you can logon by Telnet in login local mode.
1. Make sure the switch and the PC are in the same LAN. Click Start → Run to open the Run
window, and type cmd in the prompt Run window as Figure 1-8 and click OK .
Figure 1-8 Run Window
2. Open Telnet, then type telnet 192.168.0.1 in the command prompt shown as Figure 1-9, and
press the Enter button.
Figure 1-9 Connecting to the Switch
9
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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-10 Enter into the User EXEC Mode
Now you can manage your switch with CLI commands through Telnet connection.
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-11 Enter into the Privileged EXEC Mode
10
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Login Mode
Firstly configure the Telnet login mode as “login ” and the connection password as 456 in the
prompted DOS screen shown in Figure 1-12.
Figure 1-12 Configure login mode
Now, you can logon by Telnet in login mode :
1. Open Telnet, then type telnet 192.168.0.1 in the command prompt shown as Figure 1-13, and
press the Enter button.
Figure 1-13 Connecting to the Switch
11
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
2. You are prompted to enter the connection password 456 you have set through Console port
connection, and then you are in User EXEC Mode.
Figure 1-14 Enter into the User EXEC Mode
3. When entering enable command to access Privileged EXEC Mode, you are required to give
the password 123 you have set through Console port connection.
Figure 1-15 Enter into the Privileged EXEC Mode
Now you can manage your switch with CLI commands through Telnet connection.
Note:
You can refer to Chapter 12 User Manage Commands for detailed commands information of the
Telnet connection configuration.
12
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
1.1.4 Logon by SSH
To log on by SSH, a Putty client software is recommended. There are two authentication modes to
set up an SSH connection:
Password Authentication Mode : It requires username and password, which are both admin by
default.
Key Authentication Mode : It requires a public key for the switch and a private key for the SSH
client software. You can generate the public key and the private key through Putty Key Generator.
Note:
Before SSH login, please follow the steps shown in Figure 1-16 to enable the SSH function
through console connection.
Figure 1-16 Enable SSH function
13
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Password Authentication Mode
1. Open the software to log on 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-17 SSH Connection Config
2. Click the Open button in the above figure to log on 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-18 Log on the Switch
14
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Key Authentication Mode
1. Select the key type and key length, and generate SSH key.
Figure 1-19 Generate SSH Key
Note:
1. The key length is in the range of 256 to 3072 bits.
2. During the key generation, randomly moving the mouse quickly can accelerate the key
generation.
15
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
2. After the key is successfully generated, please save the public key and private key to a TFTP
server.
Figure 1-20 Save the Generated Key
3. Log on to the switch by the console port, and download the public key file from the TFTP
server to the switch, as the following figure shows:
Figure 1-21 Download the Public Key
Note:
1. The key type should accord with the type of the key file.
2. The SSH key downloading cannot be interrupted.
16
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
4. After the public key is downloaded, please log on to the interface of PuTTY and enter the IP
address for login.
Figure 1-22 SSH Connection Config
5. Click Browse to download the private key file to SSH client software and click Open .
Figure 1-23 Download the Private Key
17
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
After successful authentication, please enter the login user name. If you log on to the switch
without entering password, it indicates that the key has been successfully downloaded.
Figure 1-24 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
Configuration Mode, Router Configuration Mode, DHCP Configuration Mode and MST
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.
Interface Configuration Mode
Interface gigabitEthernet
Interface link-aggregation
Interface range gigabitEthernet
password
Privileged EXEC
Mode
Global Configuration
Mode
Interface range link-aggregation
Interface loopback
Interface VLAN
……
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.
18
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
command to return to User
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-28TQ>
T3700G-28TQ#
T3700G-28TQ(config)#
next mode
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
mode.
Enter the disable or exit
EXEC mode.
Enter configure
to access Global
Configuration mode.
Use the exit or the end
command or press Ctrl+Z
to return to Privileged
EXEC mode.
Use the interface
gigabitEthernet port or
interface range
gigabitEthernet port -list
command to access
interface Configuration
mode.
Use the vlan vlan-list to
access VLAN
Configuration mode.
Line
Configuration
Mode
VLAN
Configuration
Mode
Router
Configuration
Mode
Use the line vty command
from Global Configuration
mode to specify a line.
Use the vlan vlan-list
command to enter this mode
from Global Configuration
mode.
Use the router ospf process-id
to enter OSPF Router mode
from Global Configuration
mode.
Use the router rip
enter RIP Router mode from
Global Configuration mode.
T3700G-28TQ(config- line)
T3700G-28TQ(config- vlan)#
T3700-28TQ(config- router)
Use the exit command to
exit to the global
configuration mode.
Press Ctrl -Z or enter end
to return to priviledged
EXEC mode.
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 end command or
press Ctrl+Z to return to
Privileged EXEC mode.
Enter the exit or the #
command to return to
Global Configuration
mode.
19
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Mode Accessing Path Prompt
Layer 2 Interface:
Use the interface
Interface
Configuration
Mode
gigabitEthernet port or
interface range
gigabitEthernet port -list
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 vlan -id
command to enter VLAN
Interface mode from Global
Configuration mode.
Use the interface loopback id
command to enter Loopback
Interface mode from Global
Configuration mode.
T3700G-28TQ(config-if)#
T3700G-28TQ(config-if- range)#
T3700G-28TQ(config-if)#
T3700G-28TQ(config-if-range)#
next mode
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
command.
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 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 end command or
press Ctrl+Z to return to
Privileged EXEC mode.
Enter the exit or the #
command to return to
Global configuration mode.
DHCP
Configuration
Mode
MST
Configuration
Mode
Use the ip dhcp server pool
pool-name command to enter
DHCP Configuration Mode
from Global Configuration
mode.
Use the spanning- tree mst
configuration command to
enter this mode from Global
Configuration mode.
T3700-28TQ(config-dhcp)
T3700G-28TQ(config- mst)#
Note:
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
20
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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.
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.
history: Displays the commands history .
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.
21
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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 }
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
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).
22
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 2 User Interface
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-28TQ>enable
Password:
T3700G-28TQ#
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
23
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Example
Enable the global encryption function:
T3700G-28TQ(config)# service password-encryption
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 ] password | 7 encrypted-password }
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 —— Super password, a string from 1 to 31 alphanumeric 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 —— A symmetric encrypted password with fixed length,
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..
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 enable password and enable secret password are defined, only
the latest configured password will take effect.
24
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Example
Set the super password as “admin” and unencrypted to access Privileged EXEC
Mode from User EXEC Mode:
T3700G-28TQ(config)#enable password 0 admin
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 ] password | 5 encrypted-password }
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 —— Super password, a string from 1 to 31 alphanumeric 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 —— An MD5 encrypted password with fixed length, which
you can copy from another switch’s configuration file. After the 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
User Guidelines
If both the enable password and enable secret are defined, only the latest
configured password will take effect.
25
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Example
disable
Description
Syntax
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-28TQ(config)#enable secret 0 admin
The disable command is used to return to User EXEC Mode from Privileged
EXEC Mode.
disable
Command Mode
Example
configure
Description
Syntax
Privileged EXEC Mode
Return to User EXEC Mode from Privileged EXEC Mode:
T3700G-28TQ#disable
T3700G-28TQ>
The configure command is used to access Global Configuration Mode from
Privileged EXEC Mode.
configure
Command Mode
Privileged EXEC Mode
Example
Access Global Configuration Mode from Privileged EXEC Mode:
T3700G-28TQ#configure
26
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
exit
T3700G-28TQ(config)#
Description
The exit command is used to return to the previous Mode from the current
Mode.
Syntax
exit
Command Mode
Any Configuration Mode
Example
Return to Global Configuration Mode from Interface Configuration Mode, and
end
then return to Privileged EXEC Mode:
T3700G-28TQ(config-if)#exit
T3700G-28TQ(config)#exit
T3700G-28TQ#
Description
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-28TQ(config-if)#end
27
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
history
Description
Syntax
Command Mode
Example
The history command is used to show the latest 20 commands you entered in
the current mode since the switch is powered.
history
Privileged EXEC Mode and any Configuration Mode
Show the commands you have entered in the current mode:
T3700G-28TQ(config)# history
history clear
Description
The history clear 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 history command.
Syntax
history clear
Command Mode
Privileged EXEC Mode and any Configuration Mode
Example
Clear the commands you have entered in the current mode:
1 history
T3700G-28TQ(config)#history clear
28
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 3 Stack
The stack technology is to connect multiple stackable devices through their StackWise 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-28TQ switch
stacks.
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 value as 5, please use no switch priority command.
Syntax
swtich unitid priority priority
no switch unitid priority
Parameter
unitid —— Specify the member number.
priority —— Specify the member’s priority, ranging from 1 to 15.
Command Mode
Global Configuration Mode
Example
Specify the unit 1’s priority as 10 in the stack:
T3700G-28TQ(config)# switch 1 priority 10
switch renumber
Description
The switch renumber command is modify the member number of a specified
stack member.
29
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
swtich unitid renumber { newid | auto-numbering }
Parameter
unitid —— Specify the member to be renumbered.
newid —— Specify the new stack member number for the stack member.
auto-numbering—— The specified member will obtain its stack number through
auto-numbering.
Command Mode
Global Configuration Mode
Example
Modify the unit 1’s new member number as 2:
T3700G-28TQ(config)# switch 1 renumber 2
switch authentication-mode
Description
The switch authentication-mode command is used to configure the stack
authentication mode. To disable the authentication function, please use no
switch authentication-mode command.
Syntax
swtich authentication-mode { simple | md5 } { [ 0 ] password | 7
encrypted-password }
no switch authentication-mode
Parameter
simple | md5 —— Specify the stack’s authentication mode. “simple” means
authentication will be performed using a text password. “md5” means
authentication will be performed via a text password and MD5 algorithm. This
authentication mode has a higher security than Simple mode.
0 —— Specify the encryption type. 0 indicates that an unencrypted password
will follow. By default, the encryption type is 0.
30
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
password —— Super password, a string from 1 to 16 alphanumeric 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 a fixed length will follow.
encrypted-password —— A symmetric encrypted password with a fixed length,
which you can copy from another switch configuration. After the encrypted
password is configured, you should use the corresponding unencrypted
password if you re-enter this mode.
Command Mode
Global Configuration Mode
User Guidelines
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.
Example
Configure the stack’s authentication mode as md5 and the unencrypted
password as hello:
T3700G-28TQ(config)# switch authentication-mode md5 hello
switch stack-name
Description
The switch stack-name command is customize the stack’s name. To restore to
the default name “Stack”, please use no switch stack-name command.
Syntax
swtich stack-name { name }
no switch stack-name
Parameter
name —— Specify the name of the stack.
Command Mode
Global Configuration Mode
31
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Example
Specify the name of the stack as Stack1:
T3700G-28TQ(config)# switch stack-name Stack1
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.
Syntax
swtich stack-port interface ten-gigabitEthernet port
no switch stack-port interface ten-gigabitEthernet port
Parameter
port —— The stack port number.
Command Mode
Global Configuration Mode
Example
Specify the ten-gigabit port 1/1/2 as stack port when the Interface Card is
installed:
T3700G-28TQ(config)# switch stack-port interface ten-gigabitEthernet
1/1/2
show switch
Description
The show switch command is used to display the current stack’s information.
Syntax
show switch [ unitid | detail | neighbor | stack-ports ]
Parameter
unitid —— Specify the member number.
32
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
detail —— Display the detailed information of the stack, including stack member,
stack port and neighboring information.
neighbor —— Display the information of the stack neighbor.
stack-ports —— Display the information of the stack ports.
Command Mode
Privileged EXEC Mode and any Configuration Mode
Example
Display the detailed information of the current stack:
T3700G-28TQ(config)# show switch detail
33
JetStream 28-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.
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 —— VLAN ID list, ranging from 2 to 4094, in the format of 2-3, 5. It is
multi-optional.
Command Mode
Global Configuration Mode
Example
Create VLAN 2-10 and VLAN 100:
T3700G-28TQ(config)#vlan 2-10,100
Delete VLAN 2:
T3700G-28TQ(config)#no vlan 2
34
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
interface vlan
Description
The interface vlan command is used to create VLAN Interface hereafter to
access to Interface VLAN Mode.
Syntax
interface vlan vlan -id
no interface vlan vlan -id
Parameter
vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094.
Command Mode
Global Configuration Mode
Example
name
Description
Syntax
Parameter
Create VLAN Interface 2:
T3700G-28TQ(config)#interface vlan 2
The name command is used to assign a description string to a VLAN. To clear
the description, please use no name command.
name descript
no name
descript —— String to describe the VLAN, which contains 16 characters at
most.
Command Mode
VLAN Configuration Mode (VLAN)
35
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Example
Specify the description string of the VLAN 2 as “VLAN002”:
T3700G-28TQ(config)#vlan 2
T3700G-28TQ(config-vlan)#name VLAN002
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-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#switchport mode trunk
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
36
JetStream 28-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 4094.
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-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#switchport access vlan 2
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 { vlan-list | all }
no switchport trunk allowed vlan { vlan-list | all }
Parameter
vlan-list —— VLAN ID list, ranging from 2 to 4094, in the format of 2-3, 5. It is
multi-optional.
all —— Add the port to all of the existing VLANs.
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 link type of port 2 as trunk and add it to VLAN 2:
37
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
T3700G-28TQ(config)#interface gigabitEthernet 1/0/2
T3700G-28TQ(config-if)#switchport mode trunk
T3700G-28TQ(config-if)#switchport trunk allowed vlan 2
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 vlan-list { tagged | untagged }
no switchport general allowed vlan vlan -list
Parameter
vlan-list —— VLAN ID list, ranging from 2 to 4094, in the format of 2-3, 5. It is
multi-optional.
tagged | untagged —— egress-rule.
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”:
T3700G-28TQ(config)#interface gigabitEthernet 1/0/4
T3700G-28TQ(config-if)#switchport mode general
T3700G-28TQ(config-if)#switchport general allowed vlan 2 tagged
38
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
switchport pvid
Description
The switchport pvid command is used to configure the PVID for the switch
ports. To restore the PVID of the specified port as 1, please use the no
switchport pvid.
Syntax
switchport pvid vlan-id
Parameter
vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094.
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 as 1:
T3700G-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#switchport pvid 1
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 port | gigabitEthernet port |
ten-gigabitEthernet port ]
Parameter
port ——The Fast/Gigabit/Ten-Gigabit Ethernet port number.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
39
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Example
Display the detailed information of Gigabit Ethernet port 1/0/3:
T3700G-28TQ(config)#show interface switchport gigabitEthernet 1/0/3
show vlan summary
Description
The show vlan summary command is used to display the summarized
information of IEEE 802.1Q VLAN.
Syntax
show vlan summary
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the summarized information of IEEE 802.1Q VLAN:
T3700G-28TQ(config)#show vlan summary
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-28TQ(config)#show vlan brief
40
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
show vlan
Description
Syntax
Parameter
Command Mode
The show vlan command is used to display the detailed information of IEEE
802.1Q VLAN.
show vlan [ id vlan-id]
vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094. Using the
show vlan command without parameter displays the detailed information of all
the VLAN.
Privileged EXEC Mode and Any Configuration Mode
Example
Display the detailed information of VLAN 2:
T3700G-28TQ(config)#show vlan id 2
41
JetStream 28-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.
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 mac -addr vlan vlan-id [description descript ]
no mac-vlan mac-address mac -addr
Parameter
mac-addr —— MAC address, in the format of XX:XX:XX:XX:XX:XX.
vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094.
descript —— Give a description to the MAC address for identification, which
contains 8 characters at most.
Command Mode
Global Configuration Mode
Example
Create VLAN 2 with the MAC address 00:11:11:01:01:12 and the name “TP”:
T3700G-28TQ(config)#mac-vlan mac-address 00:11:11:01:01:12 vlan 2
description TP
42
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
mac-vlan
Description
The mac-vlan command is used to enable a port for the MAC-based VLAN
feature. Only the port is enabled can the configured MAC-based VLAN take
effect. To disable the MAC-based VLAN function, please use no mac-vlan
command. All the ports are disabled by default.
Syntax
mac-vlan
no mac-vlan
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Enable the Gigabit Ethernet port 1/0/3 for the MAC-based VLAN feature:
T3700G-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#mac-vlan
show mac-vlan
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.
Syntax
show mac-vlan { all | mac-address mac -addr | vlan vlan- id }
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Parameter
mac-addr —— MAC address, in the format of XX:XX:XX:XX:XX:XX.
43
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1 to 4094.
Example
Display the information of all the MAC-based VLAN entry:
T3700G-28TQ(config)#show mac-vlan all
show mac-vlan interface
Description
The show mac-vlan interface command is used to display the port state of
MAC-based VLAN.
Syntax
show mac-vlan interface
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the enable state of all the ports:
T3700G-28TQ(config)#show mac-vlan interface
44
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Chapter 6 Protocol-based VLAN Commands
Protocol VLAN (Virtual Local Area Network) is the way to classify VLANs based on Protocols. A
Protocol is relative to a single VLAN ID. The untagged packets and the priority-tagged packets
matching the protocol template will be tagged with this VLAN ID.
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 name protocol -name frame { ether_2 ether-type type
| snap ether-type type | llc dsap dsap_type ssap ssap _type }
no protocol-vlan template template-idx
Parameter
protocol-name —— Give a name for the Protocol-based VLAN Template ,
which contains 8 characters at most.
ether_2 ether-type type —— Specify the Ethernet type.
snap ether-type type —— Specify the Ethernet type.
llc dsap dsap _type ssap ssap_ type —— Specify the DSAP type and the SSAP
type.
template-idx —— The number of the Protocol-based VLAN Template. You can
get the template corresponding to the number by the show protocol -vlan
template command.
Command Mode
Global Configuration Mode
Example
Create a Protocol-based VLAN template named “TP” whose Ethernet protocol
type is 0x2024:
45
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
T3700G-28TQ(config)#protocol-vlan template name TP frame ether_2
ether-type 2024
protocol-vlan vlan
Description
The protocol-vlan vlan command is used to create a Protocol-based VLAN
entry. To delete a Protocol-based VLAN entry, please use no protocol-vlan
vlan command.
Syntax
protocol-vlan vlan vlan -id template template -idx
no protocol-vlan vlan group-idx
Parameter
vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 1-4094.
template-idx ——The number of the Protocol-based VLAN Template. You can
get the template corresponding to the number by the show protocol -vlan
template command.
group-idx ——The number of the Protocol-based VLAN entry. You can get the
Protocol-based VLAN entry corresponding to the number by the show
protocol-vlan vlan command.
Command Mode
Global Configuration Mode
Example
Create Protocol-based VLAN 2 and bind it with Protocol-based VLAN Template 3:
T3700G-28TQ(config)#protocol-vlan vlan 2 template 3
protocol-vlan group
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.
46
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
protocol-vlan group index
no protocol-vlan group index
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Parameter
index —— Specify the protocol group ID.
Example
Add Gigabit Ethernet port 20 to protocol group 1:
T3700G-28TQ(config)#interface gigabitEthernet 1/0/2 0
T3700G-28TQ(config-if)#protocol-vlan group 1
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-28TQ(config)#show protocol-vlan template
47
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display information of the Protocol-based VLAN entry:
T3700G-28TQ(config)#show protocol-vlan vlan
48
JetStream 28-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.
dot1q-tunnel
Description
The dot1q-tunnel command is used to enable the VLAN-VPN function globally.
To disable the VLAN-VPN function, please use the no dot1q-tunnel command.
Syntax
dot1q-tunnel
no dot1q-tunnel
Command Mode
Global Configuration Mode
Example
Enable the VLAN-VPN function globally:
T3700G-28TQ(config)#dot1q-tunnel
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 tpid
no dot1q-tunnel tpid
49
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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-28TQ(config)#dot1q-tunnel tpid 9100
dot1q-tunnel mapping
Description
The dot1q-tunnel mapping command is used to enable the VLAN Mapping
feature globally. To disable this function, please use the no dot1q-tunnel
mapping command. By default, the VLAN Mapping feature is disabled.
Syntax
dot1q-tunnel mapping
no dot1q-tunnel mapping
Command Mode
Global Configuration Mode
Example
Enable the VLAN mapping feature globally:
T3700G-28TQ(config)#dot1q-tunnel mapping
switchport dot1q-tunnel mapping
Description
The switchport dot1q-tunnel mapping command is used add the VLAN
Mapping entry on a specified port. To delete the VLAN Mapping entry on this
port, please use the no switchport dot1q-tunnel mapping command.
50
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
switchport dot1q-tunnel mapping c-vlan sp- vlan [ descript]
no switchport dot1q-tunnel mapping c-vlan
Parameter
c-vlan —— Customer VLAN ID, ranging from 1 to 4094.
sp-vlan —— Service Provider VLAN ID, ranging from 1 to 4094.
descript —— Give a description to the VLAN Mapping entry, which contains 15
characters at most.
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Add a VLAN Mapping entry on the Gigabit Ethernet port 1/0/3 with the Customer
VLAN as VLAN 2 and the Service Provider VLAN as VLAN 3:
T3700G-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#switchport dot1q-tunnel mapping 2 3
switchport dot1q-tunnel mode
Description
The switchport dot1q-tunnel mode command is used to configure the VPN
port’s mode. To close this VPN port, please use the no switchport
dot1q-tunnel mode command. By default, no port has been configured as the
VPN port. The VPN port mode uni and nni cannot switch to each other directly,
so please close the VPN port and switch to the other mode if needed.
Syntax
switchport dot1q-tunnel mode { uni/nni }
no switchport dot1q-tunnel mode
Parameter
uni ——The port connected to the clients.
nni ——The port connected to the ISP.
51
JetStream 28-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 Gigabit Ethernet port 1/0/3 as the VPN UNI ports:
T3700G-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#switchport dot1q-tunnel mode uni
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 global configuration information of the VLAN VPN:
T3700G-28TQ(config)#show dot1q-tunnel
show dot1q-tunnel mapping
Description
The show dot1q-tunnel mapping command is used to display the information
of VLAN Mapping entry.
Syntax
show dot1q-tunnel mapping
52
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the information of VLAN Mapping entry:
T3700G-28TQ(config)#show dot1q-tunnel mapping
show dot1q-tunnel interface
Description
The show dot1q-tunnel mapping interface command is used to display the
VLAN VPN port type.
Syntax
show dot1q-tunnel interface
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the port type of all VLAN VPN ports:
T3700G-28TQ(config)#show dot1q-tunnel interface
53
JetStream 28-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.
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 vlan-id
no voice vlan
Parameter
vlan-id —— Specify IEEE 802.1Q VLAN ID, ranging from 2 to 4094.
Command Mode
Global Configuration Mode
Example
Enable the Voice VLAN function for VLAN 10:
T3700G-28TQ(config)#voice vlan 10
voice vlan aging
Description
The voice vlan aging command is used to set the aging time for a voice VLAN.
To restore to the default aging time for the Voice VLAN, please use no voice
vlan aging command. By default, the aging time is 1440 minutes.
Syntax
voice vlan aging time
54
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
no voice vlan aging
Parameter
time —— Aging time (in minutes) to be set for the Voice VLAN. It ranges from 1
to 43200.
Command Mode
Global Configuration Mode
Example
Set the aging time for the Voice VLAN as 1 minute:
T3700G-28TQ(config)#voice vlan aging 1
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 pri
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-28TQ(config)#voice vlan priority 5
55
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
voice vlan mac-address
Description
The voice vlan mac-address command is used to create Voice VLAN OUI. To
delete the specified Voice VLAN OUI, please use no voice vlan mac-address
command.
Syntax
voice vlan mac-address mac- addr mask mask [ description descript]
no voice vlan mac-address mac -addr
Parameter
mac-addr —— The OUI address of the voice device, in the format of
XX:XX:XX:XX:XX:XX.
mask —— The OUI address mask of the voice device, in the format of
XX:XX:XX:XX:XX:XX.
descript —— Give a description to the OUI for identification which contains 16
characters at most.
Command Mode
Global Configuration Mode
Example
Create a Voice VLAN OUI described as “TP-Phone” with the OUI address
00:11:11:00:00:00 and the mask address FF:FF:FF:00:00:00:
T3700G-28TQ(config)#voice vlan mac-address 00:11:11:00:00:00 mask
FF:FF:FF:00:00:00 description TP- Phone
switchport voice vlan mode
Description
The switchport voice vlan mode command is used to configure the Voice
VLAN mode for the Ethernet port.
Syntax
switchport voice vlan mode { manual | auto }
56
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Parameter
manual | auto —— Port mode.
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 Gigabit Ethernet port 1/0/3 to operate in the auto voice VLAN
mode:
T3700G-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#switchport voice vlan mode auto
switchport voice vlan security
Description
The switchport voice vlan security command is used to enable the Voice
VLAN security feature. To disable the Voice VLAN security feature, please use
no switchport voice vlan security command.
Syntax
switchport voice vlan security
no switchport voice vlan security
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet/
interface ten-gigabitEthernet / interface range ten-gigabitEthernet)
Example
Enable the Gigabit Ethernet port 1/0/3 for Voice VLAN security feature:
T3700G-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#switchport voice vlan security
57
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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-28TQ(config)#show voice vlan
show voice vlan oui
Description
The show voice vlan oui command is used to display the configuration
information of Voice VLAN OUI.
Syntax
show voice vlan oui
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the configuration information of Voice VLAN OUI:
T3700G-28TQ(config)#show voice vlan oui
58
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
show voice vlan switchport
Description
The show voice vlan switchport command is used to display the configuration
information of all the ports or one specified port in the Voice VLAN.
Syntax
show voice vlan switchport [ fastEthernet port | gigabitEthernet port |
ten-gigabitEthernet port ]
Parameter
port ——The Fast/Gigabit/Ten-Gigabit Ethernet port number selected to display
the configuration information.
Command Mode
Privileged EXEC Mode and Any Configuration Mode
Example
Display the configuration information of Gigabit Ethernet port 1/0/1 in the Voice
VLAN:
T3700G-28TQ(config)#show voice vlan switchport gigabitEthernet 1/0/1
Display the configuration information of all the ports in the Voice VLAN:
T3700G-28TQ(config)#show voice vlan switchport
59
JetStream 28-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.
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-28TQ(config)#vlan 3
T3700G-28TQ(config-vlan)#private-vlan primary
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
60
JetStream 28-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-28TQ(config)#vlan 4
T3700G-28TQ(config-vlan)#private-vlan community
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-28TQ(config)#vlan 3
T3700G-28TQ(config-vlan)#private-vlan isolated
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 vlan_list
61
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
no private-vlan association vlan_list
Parameter
vlan_list —— Secondary VLAN ID, ranging from 2 to 4094.
Command Mode
VLAN Configuration Mode (VLAN)
Example
Associate primary VLAN 3 with community VLAN 4 as a private VLAN:
T3700G-28TQ(config)#vlan 3
T3700G-28TQ(config-vlan)#private-vlan association 4
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-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#switchport private-vlan host
62
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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 primary_vlan_id secondary_vlan_id
vlantype
no switchport private-vlan host-association
Parameter
primary-vlan-id —— Primary VLAN ID, ranging from 2 to 4094.
secondary-vlan-id —— Secondary VLAN ID, ranging from 2 to 4094.
vlantype —— Specify the type of the secondary VLAN, either community or
isolated.
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, with the type of VLAN 4 as community:
T3700G-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#switchport private-vlan host-association 3 4
community
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.
63
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
switchport private-vlan mapping primary_vlan_id secondary_vlan_id
no switchport private-vlan mapping
Parameter
primary-vlan-id —— Primary VLAN ID, ranging from 2 to 4094.
secondary-vlan-id —— Secondary VLAN ID, ranging from 2 to 4094.
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-28TQ(config)#interface gigabitEthernet 1/0/3
T3700G-28TQ(config-if)#switchport private-vlan mapping 3 4
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-28TQ(config)#show vlan private-vlan
64
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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 |
ten-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-28TQ(config)#show vlan private-vlan interface
65
JetStream 28-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.
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-28TQ(config)#gvrp
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
66
JetStream 28-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
Enable the GVRP function for Gigabit Ethernet ports 1/0/2-6:
T3700G-28TQ(config)#interface range gigabitEthernet 1/0/2-6
T3700G-28TQ(config-if-range)#gvrp
gvrp registration
Description
The gvrp registration command is used to configure the GVRP registration
type for the desired port. To restore to the default value, please use no gvrp
registration command.
Syntax
gvrp registration { normal | fixed | forbidden }
no gvrp registration
Parameter
normal | fixed | forbidden —— Registration mode. By default, the registration
mode is “normal”.
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 GVRP registration mode as “fixed” for Gigabit Ethernet ports
1/0/2-6:
T3700G-28TQ(config)#interface range gigabitEthernet 1/0/2-6
T3700G-28TQ(config-if-range)#gvrp registration fixed
67
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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 } value
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 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 1000 to
30000 centiseconds and the default value is 1000 centiseconds. The Join Timer
ranges from 20 to 1000 centiseconds and the default value is 20 centiseconds.
The Leave Timer ranges from 60 to 3000 centiseconds and the default value is
60 centiseconds.
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / 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-28TQ(config)#interface gigabitEthernet 1/0/6
T3700G-28TQ(config-if)#gvrp timer leaveall 2000
68
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
T3700G-28TQ(config-if)#no gvrp timer join
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-28TQ(config)#show gvrp global
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 [ fastEthernet port | gigabitEthernet port |
ten-gigabitEthernet port ]
Parameter
port ——The Fast/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-28TQ(config)#show gvrp interface gigabitEthernet 1/0/1
Display the GVRP configuration information of all Ethernet ports:
69
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
T3700G-28TQ(config)#show gvrp interface
70
JetStream 28-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.
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 num mode { on | active | passive }
no channel-group
Parameter
num —— The number of the EtherChannel Group, ranging from 1 to 32.
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
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:
71
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
T3700G-28TQ(config)#interface range gigabitEthernet 1/0/2 -4
T3700G-28TQ(config-if-range)#channel-group 1 mode on
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-dst-mac | src-dst-ip}
no port-channel load-balance
Parameter
src-dst-mac —— The source and destination MAC address. When this option is
selected, the Aggregate Arithmetic will be based on the source and destination
MAC addresses of the packets. The Aggregate Arithmetic for LAG is
“src-dst-mac” by default.
src-dst-ip —— The source and destination IP address. When this option is
selected, the Aggregate Arithmetic will be 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-28TQ(config)#port-channel load-balance src-dst-mac
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.
72
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Syntax
lacp system-priority pri
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-28TQ(config)#lacp system-priority 1024
lacp port-priority
Description
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 pri
no lacp port-priority
Parameter
pri —— The port priority, ranging from 0 to 65535. It is 32768 by default.
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-28TQ(config)#interface gigabitEthernet 1/0/1
T3700G-28TQ(config-if)#lacp port-priority 1024
73
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
show etherchannel
Description
The show etherchannel command is used to display the EtherChannel
information.
Syntax
show etherchannel [ channel-group-num ] { detail | summary }
Parameter
channel-group-num —— The EtherChannel Group number, ranging from 1 to
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:
T3700G-28TQ(config)#show etherchannel 1 detail
show etherchannel load-balance
Description
The show etherchannel l oad-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-28TQ(config)#show etherchannel load-balance
74
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
show lacp
Description
Syntax
Parameter
Command Mode
The show lacp command is used to display the LACP information for a
specified EtherChannel Group.
show lacp [ channel-group-num ] { internal | neighbor }
channel-group-num —— The EtherChannel Group number, ranging from 1 to
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.
Privileged EXEC Mode and Any Configuration Mode
Example
Display the internal LACP information of EtherChannel Group 1:
T3700G-28TQ(config)#show lacp 1 internal
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-28TQ(config)#show lacp sys-id
75
JetStream 28-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.
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 name [ privilege admin | guest ] password { [ 0 ] password | 7
encrypted-password }
no user name name
Parameter
name ——Type a name for users' login, which contains 16 characters at most,
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 —— Users’ login password, a string from 1 to 31 alphanumeric
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 —— A symmetric encrypted password with fixed length,
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.
76
JetStream 28-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-28TQ(config)#user name tplink privilege admin password 0 admin
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 name [ privilege admin | guest ] secret { [ 0 ] password | 5
encrypted-password }
no user name name
Parameter
name ——Type a name for users' login, which contains 16 characters at most,
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.
77
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
password ——Users’ login password, a string from 1 to 31 alphanumeric
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 —— An MD5 encrypted password with fixed length, which
you can copy from another switch’s configuration file.
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-28TQ(config)#user name tplink privilege admin secret 0 admin
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 ip -addr ip-mask
no user access-control
Parameter
ip-addr —— The source IP address. Only the users within the IP-range you set
here are allowed to login.
ip-mask ——The subnet mask of the IP address.
78
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
Command Mode
Global Configuration Mode
Example
Configure that only the user with the IP address 192.168.0.148 is allowed to
login:
T3700G-28TQ(config)#user access-control ip-based 192.168.0.148
255.255.255.255
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 mac -addr
no user access-control
Parameter
mac-addr —— The source MAC address. Only the user with this MAC Address
is allowed to login.
Command Mode
Global Configuration Mode
Example
Configure that only the user with the MAC address 00:00:13:0A:00:01 is allowed
to login:
T3700G-28TQ(config)#user access-control mac-based 00:00:13:0A:00:01
79
JetStream 28-Port Gigabit Stackable L3 Managed Switch CLI Guide
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 for login.
To cancel the user access limit, please use no user access-control command.
At most 5 ports can be configured.
Syntax
user access-control port-based interface { fastEthernet port | gigabitEthernet
port | ten-gigabitEthernet port | none}
no user access-control
Parameter
port —— The Fast/Gigabit/ten-Gigabit Ethernet port number.
none —— Set the access port list to be none.
Command Mode
Global Configuration Mode
Example
Configure that only the users connected to Gigabit Ethernet ports 2 are allowed to
login:
T3700G-28TQ(config)#user access-control port-based interface
gigabitEthernet 1/0/2
user max-number
Description
The user max-number com mand is used to configure the maximum login user
number at the same time. To cancel the limit on login number, please use no
user max-number command.
Syntax
user max-number admin -num guest-num
no user max-number
80