TP-Link T3700G-28TQ CLI Reference Guide

T3700G-28TQ
JetStream 28-Port Gigabit Stackable L3 Managed Switch
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
T3700G-28TQ
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
T3700G-28TQ
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
T3700G-28TQ
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
T3700G-28TQ
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
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
T3700G-28TQ
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 AccessoriesCommunications Hyper Terminal to
open the Hyper Terminal as the Figure 1-1 shows.
Figure 1-1 Open
Hyper Terminal
5
T3700G-28TQ
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
T3700G-28TQ
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
T3700G-28TQ
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
T3700G-28TQ
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
T3700G-28TQ
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
Loading...
+ 394 hidden pages