Black Box LGB1110A Owner's manual

Type
Owner's manual
GIGABIT
MANAGED
ENET SWITCH
COMMAND-LINE INTERFACE (CLI) GUIDE
24/7 TECHNICAL SUPPORT AT 1.877.877.2269 OR VISIT BLACKBOX.COM
LG B1110A, L G B1126 A- R2
2
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
TABLE OF CONTENTS
ABOUT THIS GUIDE ...................................................................................................................................................................................... 4
REVISION HISTORY ..................................................................................................................................................................................... 5
1. CLI MANAGEMENT................................................................................................................................................................................... 6
1.1 Login ..................................................................................................................................................................................................................... 6
1.2 Commands of CLI................................................................................................................................................................................................ 7
1.3 Global Commands of CLI .................................................................................................................................................................................... 8
2. CLEAR OF CLI ......................................................................................................................................................................................... 12
3. CONFIGURE COMMANDS OF CLI ......................................................................................................................................................... 22
3.1 Access List ......................................................................................................................................................................................................... 63
3.2 NO ....................................................................................................................................................................................................................... 66
3.3 QoS ..................................................................................................................................................................................................................... 97
3.4 SNMP Server ................................................................................................................................................................................................... 102
3.5 Spanning Tree .................................................................................................................................................................................................. 109
4. COPY COMMANDS OF CLI .................................................................................................................................................................. 113
5. DEBUG COMMANDS OF CLI ................................................................................................................................................................ 114
6. DELETE COMMANDS OF CLI ............................................................................................................................................................... 115
7. DIR COMMANDS OF CLI ....................................................................................................................................................................... 116
8. DISABLE COMMANDS OF CLI ............................................................................................................................................................. 117
9. DO COMMANDS OF CLI ....................................................................................................................................................................... 118
10. DOT1X COMMANDS OF CLI ............................................................................................................................................................... 119
11. ENABLE OF CLI ................................................................................................................................................................................... 120
12. FIRMWARE OF CLI .............................................................................................................................................................................. 121
13. NO OF CLI ............................................................................................................................................................................................ 122
14. PING OF CLI ........................................................................................................................................................................................ 123
3
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
TABLE OF CONTENTS
15. RELOAD OF CLI ................................................................................................................................................................................... 124
16. SEND OF CLI ........................................................................................................................................................................................ 125
17. SHOW OF CLI ....................................................................................................................................................................................... 126
18. TERMINAL OF CLI .............................................................................................................................................................................. 181
19. IP OF CLI .............................................................................................................................................................................................. 183
20. TRACEROUTE ..................................................................................................................................................................................... 184
21. CLI COMMAND REFERENCES ........................................................................................................................................................... 185
21.1 Privilege Level ................................................................................................................................................................................................ 185
21.2 Command Modes .......................................................................................................................................................................................... 185
4
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
ABOUT THIS GUIDE
ABOUT THIS GUIDE
This guide gives specific information on how to operate and use the CLI management functions of the switch.
The guide is intended for use by network administrators who are responsible for operating and maintaining network equipment;
consequently, it assumes a basic working knowledge of general switch functions, the Internet Protocol (IP), and Simple Network
Management Protocol (SNMP).
5
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
REVISION HISTORY
REVISION HISTORY
Release Number: 6.38
Date: 10/19/2015
Revision: A1
ADDITIONAL DOCUMENTATION
This CLI Guide and related documents available on the Black Box web site apply to Version 6.38 of the Gigabit Managed Ethernet
Switch.
To download documentation from the Web site:
1. Go to www.blackbox.com
2. Enter the part number (LGB1110A or LGB1126A-R2) in the search box.
3. Click on the product in the “Product Results” page.
4. Click on the “Support” tab on the product page,
and select the document you wish to download.
If you have any trouble accessing the Black Box site to download the manual, you can contact our Technical Support
at 877-877-2269 or info@blackbox.com.
6
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 1: CLI MANAGEMENT
Follow these steps to connect to the network.
Using a DB9 RS-232 to RJ-45 cable, connect a terminal or terminal emulator to the Gigabit Managed Ethernet Switch to access
the command-line interface.
Attach the RJ-45 serial port on the switch’s front panel to connect to the switch for console configuration.
Attach the other end of the DB9 cable to an ASCII terminal emulator or PC Com-1, 2 port. For example, a PC runs the Microsoft
Windows HyperTerminal utility.
At the “Com Port Properties” Menu, configure the parameters as below:
Baud rate: 115200
Stop bits: 1
Data bits: 8
Parity: N
Flow control: none
1.1 LOGIN
The command-line interface (CLI) is a text-based interface. Users can access the CLI through either a direct serial connection to the
device or a Telnet session. The default user name and password to log in to the Managed Switch are listed below:
Username: admin
Password: <none>
NOTE: <NONE> MEANS AN EMPTY STRING
See the screen below.
After you login successfully, the prompt will be: <sys_name># .
If you login as an administrator, you will have privileges for setting the Managed Switch.
If you login as a guest, the prompt will be: <sys_name>>. You will not be able to set the Managed Switch while logged in as a guest.
Each CLI command has specific privileges.
7
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 1: CLI MANAGEMENT
1.2 COMMANDS OF CLI
The CLI is divided into several modes. If a user has privileges to run a particular command, the user has to run the command in the
correct mode. To see the commands of the mode, input “?” after the system prompt, then all commands will be listed in the screen.
The command modes are listed next.
TABLE 1-1. COMMAND MODES
MODE PROMPT COMMAND FUNCTION IN THIS MODE
exec <sys_name># Display current configuration, diagnostics, maintenance
config <sys_name>(config)# Configure features other than those below
Config-if <sys_name>(config-interface)# Configure ports
Config-if-vlan <sys_name>(config-if-vlan)# Configure static vlan
Config-line <sys_name>(config-line)# Line Configuration
Config-impc-profile <sys_name>(config-impc-profile)# IPMC Profile
Config-snmp-host <sys_name>(config-snmp-host)# SNMP Server Host
Config-stp-aggr <sys_name>(config-stp-aggr)# STP Aggregation
Config-dhcp-pool <sys_name>(config-dhcp-pool)# DHCP Pool Configuration
Config-rfc2544-profile <sys_name>(config-rfc2544-profile)# RFC2544 Profile
Commands reside in the corresponding mode and can run only in that mode. If a user wants to run a particular command, the
user has to change to the appropriate mode. The command modes are organized as a tree, and users start in enable mode. The
following table explains how to change from one mode to another.
TABLE 1-2. CHANGE BETWEEN COMMAND MODES
MODE ENTER MODE LEAVE MODE
exec — —
config Configure terminal exit
config-interface Interface <port-type> <port-type-list> exit
config-vlan Interface vlan <vlan_list> exit
8
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 1: CLI MANAGEMENT
1.3 GLOBAL COMMANDS OF CLI
9
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 1: CLI MANAGEMENT
EXIT
Exit from EXEC mode.
SYNTAX
Exit
PARAMETER
None
EXAMPLE
10
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 1: CLI MANAGEMENT
HELP
Description of the interactive help system.
SYNTAX
help
PARAMETER
None
EXAMPLE
11
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 1: CLI MANAGEMENT
LOGOUT
Exit from EXEC mode.
SYNTAX
logout
PARAMETER
None
END
Go back to EXEC mode.
SYNTAX
end
EXAMPLE
12
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 2. CLEAR OF CLI
TABLE 2-1. CLEAR COMMANDS
COMMAND FUNCTION
access Access management
access-list Access list
dot1x IEEE Standard for port-based Network Access Control
ip Interface Internet Protocol config commands
ipv6 IPv6 configuration commands
lacp Clear LACP statistics
lldp Clear LLDP statistics
logging Syslog
mac MAC Address Table
mvr Multicast VLAN Registration configuration
sflow Statistics flow
spanning-tree STP Bridge
statistics Clear statistics for a given interface
ACCESS
Access management
SYNTAX
clear access management statistics
PARAMETER
management Access management configuration.
statistics Statistics data.
EXAMPLE
13
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 2. CLEAR OF CLI
ACCESS LIST
Access list
SYNTAX
Clear access-list ace statistics
PARAMETER
ace Access list entry
statistics Traffic statistics
EXAMPLE
DOTX
IEEE Standard for port-based Network Access Control.
SYNTAX
Clear dot1x statistics
Clear dot1x statistics interface GigabitEthernet < PORT_TYPE_LIST>
PARAMETER
statistics Clears the statistics counters
interface Interface
GigabitEthernet 1 Gigabit Ethernet Port
PORT_TYPE_LIST Port list in 1/1-10 for Gigabitethernet
EXAMPLE
14
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 2. CLEAR OF CLI
IP
Interface Internet Protocol config commands
SYNTAX
clear ip arp
clear ip dhcp detailed statistics { server | client | snooping | relay | helper | all } [ interface ( <port_type> [ <in_port_list> ] ) ]
clear ip dhcp relay statistics
clear ip dhcp server binding <ip>
clear ip dhcp server binding { automatic | manual | expired }
clear ip dhcp server statistics
clear ip dhcp snooping statistics [ interface ( <port_type> [ <in_port_list> ] ) ]
clear ip igmp snooping [ vlan <v_vlan_list> ] statistics
clear ip statistics [ system ] [ interface vlan <v_vlan_list> ] [ icmp ] [ icmp-msg <type> ]
PARAMETER
arp Clear ARP cache
dhcp Dynamic Host Configuration Protocol
igmp Internet Group Management Protocol
statistics Traffic statistics
relay DHCP relay agent configuration
snooping DHCP snooping
interface Select an interface to configure
GigabitEthernet 1 Gigabit Ethernet Port
vlan IPv4 traffic interface
<vlan_list> VLAN identifier(s): VID
15
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 2. CLEAR OF CLI
EXAMPLE
16
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 2. CLEAR OF CLI
IPV6
IPv6 configuration commands
SYNTAX
clear ipv6 mld snooping [ vlan <v_vlan_list> ] statistics
clear ipv6 neighbors
clear ipv6 statistics [ system ] [ interface vlan <v_vlan_list> ] [ icmp ] [ icmp-msg <type> ]
PARAMETER
mld Multicast Listener Discovery
neighbors Ipv6 neighbors
statistics Traffic statistics
snooping Snooping MLD
statistics Running MLD snooping counters
vlan Ipv6 interface traffic
<vlan_list> VLAN identifier(s): VID
icmp IPv6 ICMP traffic
icmp-msg IPv6 ICMP traffic for designated message type
interface Select an interface to configure
system IPv6 system traffic
< 0–255> ICMP message type ranges from 0 to 255
EXAMPLE
17
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 2. CLEAR OF CLI
LACP
Clear LACP statistics
SYNTAX
Clear lacp statistics
PARAMETER
statistics Clear all LACP statistics
EXAMPLE
LLDP
Clear LLDP statistics
SYNTAX
Clear lldp statistics
Clear lldp statistics| begin | exclude | include >< LINE >
PARAMETER
statistics Clears LLDP statistics.
| Output modifiers
begin Begin with the line that matches
exclude Exclude lines that match
include Include lines that match
<LINE> String to match output lines
EXAMPLE
18
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 2. CLEAR OF CLI
LOGGING
Syslog
SYNTAX
clear logging [ info ] [ warning ] [ error ] [ switch <switch_list> ]
PARAMETER
error Error
info Information
warning Warning
EXAMPLE
MAC
MAC Address Table
SYNTAX
Clear mac address-table
PARAMETER
address-table
Flush MAC Address table.
EXAMPLE
19
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 2. CLEAR OF CLI
MVR
Multicast VLAN Registration configuration.
SYNTAX
clear mvr [ vlan <v_vlan_list> | name <mvr_name> ] statistics
PARAMETER
name MVR multicast name
statistics Running MVR protocol counters
vlan MVR multicast vlan
< word16> MVR multicast VLAN name
<vlan_list> MVR multicast VLAN list
EXAMPLE
20
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.87 7. 2269
1. 8 7 7. 8 7 7. 2 2 6 9 BLACKBOX.COM
CHAPTER 2. CLEAR OF CLI
SFLOW
Statistics flow
SYNTAX
clear sflow statistics { receiver [ <receiver_index_list> ] | samplers [ interface [ <samplers_list> ] ( <port_type> [ <v_port_type_list> ]
) ] }
PARAMETER
interface Interface
receiver Clear statistics for receiver.
<port_type> GigabitEthernet
<Samplers : option> runtime
<port_type_list> Port list in 1/1-10 for Gigabitethernet
EXAMPLE
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222

Black Box LGB1110A Owner's manual

Type
Owner's manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI