CTS SWH-3109 Service Manual

SWH-3109 SERIES
9 PORTS 10/100/1000BASE-T ETHERNET MANAGED SWITCH
8 PORTS 10/100/1000BASE-T AND 1 PORT 1000BASE-X OR
100/1000BASE-X UPLINK ETHERNET MANAGED SWITCH
8 PORTS 10/100/1000BASE-T AND 1 PORT 1000BASE-X OR
100/1000BASE-X UPLINK ETHERNET MANAGED SWITCH
WITH BATTERY CHARGING MODULE
Network Management
User’s Manual
Version 0.92
1
Trademarks
CTS is a registered trademark of Connection Technology Systems Inc.. Contents are subject to revision without prior notice. All other trademarks remain the properties of their owners.
Copyright Statement
Copyright 2013 Connection Technology Systems Inc.. This publication may not be reproduced as a whole or in part, in any way whatsoever unless prior consent has been obtained from Connection Technology Systems Inc..
FCC Warning
This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limitations are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures:
Reorient or relocate the receiving antenna. Increase the separation between the equipment and receiver. Connect the equipment into an outlet on a circuit different from that to which the receiver is connected. Consult your local distributors or an experienced radio/TV technician for help. Shielded interface cables must be used in order to comply with emission limits.
Changes or modifications to the equipment, which are not approved by the party responsible for compliance, could affect the user’s authority to operate the equipment.
Copyright © 2011 All Rights Reserved.
Company has an on-going policy of upgrading its products and it may be possible that information in this document is not up-to-date. Please check with your local distributors for the latest information. No part of this document can be copied or reproduced in any form without written consent from the company.
Trademarks: All trade names and trademarks are the properties of their respective companies.
2
Revision History
Version
F/W
Date
Description
0.90
1.06.05
20150316
Fisrt release
0.91
1.07.00
20150811
Add DHCP Option 60 (Section 2.5.17 &
3.4.6.1.3)
0.92
2.00.00
20160701
Add IPv6 Network Configuration (Section 3.3.1 & 2.5.6) Add Switch Port VLAN ID Status (Section 3.5.2) Remove IP Source Binding (Section
3.3.1) Add LLDP Configuration (Section
3.4.9 & 2.5.7)
3
Table of Content
1. INTRODUCTION ............................................................................................................... 7
1.1 Interfaces...................................................................................................................... 7
1.2 Management Preparations ........................................................................................... 9
1.2.1 Connecting the Managed Switch ........................................................................... 9
1.2.2 Assigning IP Addresses ....................................................................................... 10
1.3 LED Definitions ........................................................................................................... 11
1.4 Button Definitions ................................ ................................ ....................................... 11
2. Command Line Interface (CLI) ...................................................................................... 12
2.1 Remote Console Management-Telnet ........................................................................ 12
2.2 Navigating CLI ................................................................ ............................................ 13
2.2.1 General Commands ............................................................................................. 13
2.2.2 Quick Keys ........................................................................................................... 14
2.2.3 Command Format ................................................................................................ 14
2.2.4 Login Username & Password .............................................................................. 16
2.3 User Mode .................................................................................................................. 16
2.4 Privileged Mode .......................................................................................................... 17
2.4.1 Copy-cfg Command ............................................................................................. 17
2.4.2 Firmware Command ............................................................................................ 19
2.4.3 Reload Command ................................................................................................ 20
2.4.4 Write Command ................................................................................................... 20
2.4.5 Configure Command ............................................................................................ 20
2.5 Configuration Mode .................................................................................................... 20
2.5.1 Entering Interface Numbers ................................................................................. 21
2.5.2 No Command ....................................................................................................... 21
2.5.3 Show Command .................................................................................................. 21
2.5.4 Interface Command ............................................................................................. 22
2.5.5 IP Command ........................................................................................................ 23
2.5.6 IPv6 Command .................................................................................................... 25
2.5.7 LLDP Command .................................................................................................. 27
2.5.8 Loop Detection Command ................................................................................... 29
2.5.9 MAC Command ................................................................................................... 29
2.5.10 Management Command .................................................................................... 31
4
2.5.11 Mirror Command ................................................................................................ 31
2.5.12 NTP Command .................................................................................................. 31
2.5.13 QoS Command .................................................................................................. 33
2.5.14 Security Command ............................................................................................ 37
2.5.15 SNMP-Server Command ................................................................................... 39
2.5.16 Switch Command ............................................................................................... 42
2.5.17 Switch-info Command ........................................................................................ 42
2.5.18 User Command .................................................................................................. 43
2.5.19 VLAN Command ................................................................................................ 46
2.5.20 Show interface statistics Command ................................................................... 49
2.5.21 Show sfp Command ........................................................................................... 50
2.5.22 Show log Command........................................................................................... 50
2.5.23 Show default-config, running-config & start-up-config Command ...................... 50
3. WEB MANAGEMENT ..................................................................................................... 51
3.1 System Information .................................................................................................... 53
3.2 User Authentication .................................................................................................... 55
3.3 Network Management ................................................................................................ 57
3.3.1 Network Configuration ......................................................................................... 58
3.3.2 System Service Configuration .............................................................................. 60
3.3.3 Time Server Configuration ................................................................................... 60
3.3.4 Device Community ............................................................................................... 61
3.3.5 Trap Destination ................................................................................................... 62
3.3.6 Trap Configuration ............................................................................................... 63
3.4 Switch Management ................................................................................................... 64
3.4.1 Switch Configuration ............................................................................................ 65
3.4.2 Storm Control ....................................................................................................... 65
3.4.3 Port Configuration ................................................................................................ 66
3.4.4 Rate Limit Configuration ...................................................................................... 68
3.4.5 QoS Priority Configuration ................................................................................... 69
3.4.6 VLAN Configuration ............................................................................................. 71
3.4.6.1 IEEE 802.1q Tag VLAN ................................................................................. 72
3.4.6.1.1 Configure VLAN ...................................................................................... 72
3.4.6.1.2 Configure Default Port VLAN ID ............................................................. 73
3.4.6.1.3 DHCP-Option60-Based VLAN ................................................................ 74
5
3.4.6.2 Q-in-Q VLAN Configuration ........................................................................... 76
3.4.7 Port Mirroring ....................................................................................................... 77
3.4.8 IGMP Snooping.................................................................................................... 77
3.4.9 LLDP Configuration ............................................................................................. 78
3.4.10 Loop Detection ................................................................................................... 79
3.4.11 Filter Configuration............................................................................................. 80
3.5 Switch Monitor ................................ ................................ ................................ ............ 81
3.5.1 Switch Port Status ................................................................................................ 82
3.5.2 Switch Port VLAN ID Status ................................................................................. 82
3.5.3 Port Counters Rates ............................................................................................ 83
3.5.3.1 Port Traffic Statistics (Rates) ......................................................................... 84
3.5.3.2 Port Packet Error Statistics (Rates) ............................................................... 84
3.5.3.3 Port Packet Analysis Statistics (Rates) ......................................................... 85
3.5.4 Port Counters Events ........................................................................................... 87
3.5.4.1 Port Traffic Statistics (Events) ....................................................................... 87
3.5.4.2 Port Packet Error Statistics (Events) ............................................................. 88
3.5.4.3 Port Packet Analysis Statistics (Events) ........................................................ 89
3.5.5 SFP Information ................................................................................................... 91
3.5.5.1 SFP Port Info ................................................................................................. 91
3.5.5.2 SFP Port State .............................................................................................. 92
3.5.6 IGMP Snooping.................................................................................................... 92
3.5.7 LLDP Status ......................................................................................................... 93
3.5.8 Loop Detection ..................................................................................................... 93
3.5.9 MAC Address Table ............................................................................................. 94
3.6 System Utility .............................................................................................................. 95
3.6.1 Event Log ............................................................................................................. 96
3.6.2 Update ................................................................................................................. 96
3.6.3 Load Factory Settings .......................................................................................... 97
3.6.4 Load Factory Settings Except Network Configuration .......................................... 98
3.7 Save Configuration ..................................................................................................... 98
3.8 Reset System ............................................................................................................. 99
3.9 Logout ........................................................................................................................ 99
APPENDIX A: DHCP Auto-Provisioning Setup .............................................................. 100
6
1. INTRODUCTION
Smart Lighting Control
10/100/1000Mbps RJ-45 ports
10/100/1000Mbps RJ-45 ports
Smart Lighting Control
Grounding Wire
Grounding Wire
Thank you for using this Managed Switch. It employs store and forward switching mechanism, and provides low latency and faster data transmission. Moreover, it also supports advanced functions such as QoS, Q-in-Q VLAN Tunneling, Rate Limiting, IGMP Snooping, and etc.. The built-in management module allows users to configure this Switch and monitor the operation status locally or remotely through network. For detailed descriptions on how to configure the Switch, please refer to Section 2.
Internet Protocol Version 6 (IPv6)
The Managed Switch supports IPv6. With IPv6, Internet Protocol version 6, can increase the supply of packets from the IPv4 Internet Protocol version 4. Nowadays, with the development of Technology, there are more computer users (Laptops, PC, Tablet Personal Computers) and others such as smart phones, and any other devices with the need of Internet, requires large amount of packet transmission, therefore leading to more demand for packets. In order to fulfill this necessity, IPv6 provide the answer, by increase packet numbers enlarging networking system for worldwide users in good form.
1.1 Interfaces
Depending on the main device and optional accessories that you purchased, the front panel and rear panel of your Switch may look differently from model to model. Figure 1 and 2 show the front and rear panel for 9-Port 10/100/1000Base-T Ethernet Managed Switch; Figure 3 and 4 show the front and rear panel for 8-Port 10/100/1000Base-T and 1-Port 1000Base-X or 100/1000Base-X Uplink Ethernet Managed Switch with optional battery charging module.
Figure 1. Front Panel for 9-Port 10/100/1000Base-T Managed Switch
Figure 2. Rear Panel for 9-Port 10/100/1000Base-T Managed Switch
7
Figure 3. Front Panel for 8-Port 10/100/1000Base-T and 1-Port 1000Base-X or 100/1000Base-X Uplink
100/1000Mbps or 1000Mbps F/O port
Battery Charging Module (Optional)
DC Power Jack LED Indicators
Ethernet Managed Switch
Figure 4. Rear Panel for 8-Port 10/100/1000Base-T and 1-Port 1000Base-X or 100/1000Base-X Uplink
Ethernet Managed Switch with Battery Charging Module
All models have the same top, left and right panel.
Figure 5. Top Panel with LEDs
Figure 6. Left Panel
8
Figure 7. Right Panel
Reset Button
1.2 Management Preparations
The Managed Switch can be accessed through both Telnet connection and a web browser, such as Internet Explorer or Netscape, etc.. Before you can access the Managed Switch to configure it, you need to connect cables properly.
1.2.1 Connecting the Managed Switch
It is extremely important that proper cables are used with correct pin arrangements when connecting Managed Switch to other devices such as switches, hubs, workstations, etc..
1000Base-X Fiber Port or 100/1000 Base-X Fiber Port
The 1000Base-X fiber port is located at the rear panel of the Managed Switch. This port is primarily used for uplink connection and can operate at 1000M/Full or Half Duplex mode. Duplex SC or WDM Simplex SC types of connectors are available. Use proper multimode or single-mode optical fiber cable to connect this port with the other Ethernet Fiber port.
Before connecting to other switches, workstations or media converters, make sure both sides of the fiber transfer are with the same media type, for example 1000Base-X Single-mode to 1000Base-X Single-mode, 1000Base-X Multimode to 1000Base-X Multimode. Check that the fiber-optic cable type matches the fiber transfer model. To connect to 1000Base-SX transfer, use the multimode fiber cable (one side must be male duplex SC connector type). To connect to 1000Base-LX transfer, use the single­mode fiber cable (one side must be male duplex LC connector type).
10/100/1000Base-T RJ-45 Ports
The RJ-45 ports are located on the front panel of the Managed Switch. These RJ-45 ports allow users to connect their traditional copper-based Ethernet devices to the
9
network. All these ports support auto-negotiation and MDI/MDIX auto-crossover, i.e. the crossover or straight through CAT-5 cable may be used.
1.2.2 Assigning IP Addresses
IP addresses have the format n.n.n.n, for example 168.168.8.100. IP addresses are made up of two parts:
The first part (168.168.XXX.XXX in the example) indicates network address identifying
the network where the device resides. Network addresses are assigned by three allocation organizations. Depending on your location, each allocation organization assigns a globally unique network number to each network that wishes to connect to the Internet.
The second part (XXX.XXX.8.100 in the example) identifies the device within the
network. Assigning unique device numbers is your responsibility. If you are unsure of the IP addresses allocated to you, consult the allocation organization from which your IP addresses were obtained.
Remember that an address can be assigned to only one device on a network. If you connect to the outside, you must change all the arbitrary IP addresses to comply with those you have been allocated by the allocation organization. If you do not do this, your outside communications will not be connected.
A subnet mask is a filtering system for IP addresses. It allows you to further subdivide your network. You must use the proper subnet mask for a proper operation of a network with subnets defined.
10
1.3 LED Definitions
LED
Definition
Color
Operation
Power
Off
The device is powered off.
Green
The device is powered on.
System Status
Orange
The system is booting up.
Green
The system is working normally.
Orange
Blinking
The Status LED indicator will blink for 3 times when the system is set back to default factory setting
The Status LED indicator will blink for once when the system is restarted.
Battery
Charging
(For -BAT models only)
Green
The battery is fully charged.
Green Blinking
The battery is charging.
Battery
Discharging
(For -BAT models only)
Orange
The battery is installed or connected incorrectly.
Orange
Blinking
The battery is in use.
Port Link Status
Off
The port link is down.
Green
The link is up and works at 10 or 100Mbps.
Orange
The link is up and works at 1000Mbps.
Green/Orange
Blinking
The traffic is present.
Button
Operation
Smart Lighting Control Button
System Status LED and Port Link LEDs will be turned off by pressing the button. Only Power and Battery Discharging LED indicators stay on.
Reset Button
Insert a pin or paper clip to press the Reset button for 5 seconds to restart the device or for 10 seconds to reset the device to factory defaults.
1.4 Button Definitions
11
2. Command Line Interface (CLI)
This chapter guides you to use Command Line Interface (CLI) via Telnet connection, specifically in:
Configuring the system Resetting the system Upgrading newly released firmware
2.1 Remote Console Management-Telnet
You can use Command Line Interface to manage the Managed Switch via Telnet session. For first-time users, you must first assign a unique IP address to the Managed Switch before you can manage it remotely. Use any one of the RJ-45 ports on the front panel as the temporary management console port to login to the device with the default username & password and then assign the IP address using IP command in Global Configuration mode.
Follow steps described below to access the Managed Switch through Telnet session:
Step 1. Use any one of the RJ-45 ports on the front panel as a temporary management
console port to login to the Managed Switch.
Step 2. Run Telnet client and connect to 192.168.0.1. For first-time users, make sure
the IP address of your PC or workstation is assigned to an IP address between
192.168.0.2 and 192.168.0.254 with subnet mask 255.255.255.0.
Step 3. When asked for a username, enter admin. When asked for a password, leave
the password field blank and press Enter (by default, no password is required.)
Step 4. If you enter CLI successfully, the prompt display Switch> (the model name of
your device together with a greater than sign) will appear on the screen.
Step 5. Once you enter CLI successfully, you can set up the Switchs IP address,
subnet mask and the default gateway using IP command in Global Configuration mode. The telnet session will be terminated immediately once the IP address of the Switch has been changed.
Step 6. Use new IP address to login to the Managed Switch via Telnet session again.
Limitation: Only one active Telnet session can access the Managed Switch at a time.
12
2.2 Navigating CLI
Command Mode
Access Method
Prompt Displayed
Exit Method
User Mode
Login username & password
Switch>
logout
Privileged Mode
From user mode, enter the enable command
Switch#
disable, exit, logout
Configuration Mode
From the enable mode, enter the config or configure command
Switch(config)#
exit
NOTE: By default, the model name will be used for the prompt display. You can change the prompt display to the one that is ideal for your network environment using the host­name command. However, for convenience, the prompt display “Switch” will be used throughout this user’s manual.
Entering the command…
To do this…
Available Modes
help
Obtain a list of available commands in the current mode.
User Mode Privileged Mode Configuration Mode
exit
Return to the previous mode or login screen.
User Mode Privileged Mode Configuration Mode
history
List all commands that have been used.
User Mode Privileged Mode Configuration Mode
logout
Logout from the CLI or terminate Telnet session.
User Mode Privileged Mode
After you successfully access to the Managed Switch, you will be asked for a login username. Enter your authorized username and password, and then you will be directed to the User Mode. In CLI management, the User Mode only provides users with basic functions to operate the Managed Switch. If you would like to configure advanced features of the Managed Switch, such as, VLAN, QoS, and Rate limit control, you must enter the Configuration Mode. The following table provides an overview of modes available in this Managed Switch.
2.2.1 General Commands
This section introduces you some general commands that you can use in all modes, including “help”, “exit”, “history” and “logout”.
13
2.2.2 Quick Keys
Keys
Purpose
tab
Enter an unfinished command and press Tab key to complete the command.
?
Press ? key in each mode to get available commands.
Unfinished command followed by ?
Enter an unfinished command or keyword and press ? key to complete the command and get command syntax help.
Examples:
Switch#h? help Show available commands
history Show history commands
Switch#he? <cr>
Switch#help
Up arrow
Use Up arrow key to scroll through the previous entered commands, beginning with the most recent key-in commands.
Down arrow
Use Down arrow key to scroll through the previous entered commands, beginning with the commands that are entered first.
This means that you are in Global Configuration mode
This allows you to assign IP address.
Enter the IP address, subnet mask, and default gateway address.
Hostname
In CLI, there are several quick keys that you can use to perform several functions. The following table summarizes the most frequently used quick keys in CLI.
2.2.3 Command Format
While in CLI, you will see several symbols very often. As mentioned above, you might already know what >, # and (config)# represent. However, to perform what you intend the device to do, you have to enter a string of complete command correctly. For example, if you want to assign IP address for the Managed Switch, you need to enter the following command with the required parameter and IP, subnet mask and default gateway:
IP command syntax: Switch(config)#ip address [A.B.C.D] [255.X.X.X] [A.B.C.D]
Switch(config)#ip address 192.168.1.198 255.255.255.255 192.168.1.254
14
The following table lists common symbols and syntax that you will see very frequently in this
Symbols
Brief Description
>
Currently, the device is in User Mode.
#
Currently, the device is in Privileged Mode.
(config)#
Currently, the device is in Global Configuration Mode.
Syntax
Brief Description
[ ]
Brackets mean that this field is required information.
[A.B.C.D ]
Brackets represent that this is a required field. Enter an IP address or gateway address.
[255.X.X.X]
Brackets represent that this is a required field. Enter the subnet mask.
[port-based | 802.1p | dscp | vid]
There are four options that you can choose. Specify one of them.
[1-8191]
Specify a value between 1 and 8191.
[0-7] 802.1p_list [0-63] dscp_list
Specify one or more values or a range of values.
For example: specifying one value
Switch(config)#qos 802.1p-map 1 0
Switch(config)#qos dscp-map 10 3
For example: specifying three values (separated by commas)
Switch(config)#qos 802.1p-map 1,3 0
Switch(config)#qos dscp-map 10,13,15 3
For example: specifying a range of values (separating by a hyphen)
Switch(config)#qos 802.1p-map 1-3 0
Switch(config)#qos dscp-map 10-15 3
User’s Manual for your reference:
15
2.2.4 Login Username & Password
Command
Description
exit
Quit the User mode or close the terminal connection.
help
Display a list of available commands in User mode.
history
Display the command history.
logout
Logout from the Managed Switch.
enable
Enter the Privileged mode.
Default Login
After you enter Telnet session, a login prompt will appear to request a valid and authorized username and password combination. For first-time users, enter the default login username
adminand press Enter key in password field (no password is required for default setting). When system prompt shows “Switch>”, it means that the user has successfully entered the
User Mode. For security reasons, it is strongly recommended that you add a new login username and
password using User command in Configuration Mode. When you create your own login username and password, you can delete the default username (admin) to prevent unauthorized accesses.
Forgot Your Login Username & Password?
If you forgot your login username and password, you can use the “reset button” to set all configurations back to factory defaults. Once you have performed system reset to defaults, you can login with default username and password. Please note that if you use this method to gain access to the Managed Switch, all configurations saved in Flash will be lost. It is strongly recommended that a copy of configurations is backed up in your local hard-drive or file server from time to time so that previously-configured settings can be restored to the Managed Switch for use after you gain access again to the device.
2.3 User Mode
In User mode, only a limited set of commands are provided. Please note that in Use Mode, you have no authority to configure advanced settings. You need to enter Privileged mode and Configuration mode to set up advanced functions of a switch feature. For a list of commands available in User Mode, enter the question mark (?) or help command after the system prompt displays Switch>.
16
2.4 Privileged Mode
Command
Description
copy-cfg
Restore or backup configuration file via FTP or TFTP server.
configure
Enter Global Configuration mode.
disable
Exit Enable Mode and return to User Mode.
exit
Exit Enable Mode and return to User Mode.
firmware
Upgrade Firmware via FTP or TFTP server.
help
Display a list of available commands in Enable Mode.
history
Show commands that have been used.
logout
Logout from the Managed Switch.
reload
Restart the Managed Switch.
write
Save your configurations to Flash.
show
Show a list of commands or show the current setting of each listed command.
Command
Parameter
Description
Switch# copy-cfg from ftp [A.B.C.D | A:B:C:D:E:F:G:H] [file name] [user_name] [password]
[A.B.C.D |
A:B:C:D:E:F:G:H]
Enter the IP address of your FTP server.
[file_name]
Enter the configuration file name that you want to restore.
[user_name]
Enter the username for FTP server login.
[password]
Enter the password for FTP server login.
Switch# copy-cfg from tftp [A.B.C.D | A:B:C:D:E:F:G:H] [file_name]
[A.B.C.D |
A:B:C:D:E:F:G:H]
Enter the IP address of your TFTP server.
[file_name]
Enter the configuration file name that you want to restore.
Example
Switch# copy-cfg from ftp 192.168.1.198 HS_0600_file.conf misadmin1 abcxyz
Switch# copy-cfg from tftp 192.168.1.198 HS_0600_file.conf
Command / Example
Switch# copy-cfg from default
The only place where you can enter the Privileged (Enable) Mode is in User Mode. When you successfully enter Enable mode, the prompt will be changed to Switch# (the model name of your device together with a pound sign). Enter the question mark (?) or help command to view a list of commands available for use.
2.4.1 Copy-cfg Command
Use copy-cfg command to backup a configuration file via FTP or TFTP server or restore the Managed Switch back to the defaults or to the defaults without changing IP configurations.
1. Restore a configuration file via FTP or TFTP server.
2. Restore the Managed Switch back to default settings.
NOTE: There are two ways to set the Managed Switch back to the factory default settings. Users can use the copy-cfg from default command in CLI or simply press the Reset Button
17
located on the front panel to restore the device back to the initial state.
18
3. Restore the Managed Switch back to default settings but keep IP configurations.
Command / Example
Switch# copy-cfg from default keep-ip
Command
Parameter
Description
Switch# copy-cfg to ftp [A.B.C.D | A:B:C:D:E:F:G:H] [file_name] [user_name] [password]
[A.B.C.D |
A:B:C:D:E:F
:G:H]
Enter the IP address of your FTP server.
[file_name]
Enter the configuration file name that you want to backup.
[user_name]
Enter the username for FTP server login.
[password]
Enter the password for FTP server login.
Switch# copy-cfg to tftp [A.B.C.D | A:B:C:D:E:F:G:H] [file_name]
[A.B.C.D |
A:B:C:D:E:F
:G:H]
Enter the IP address of your TFTP server.
[file_name]
Enter the configuration file name that you want to backup.
Example
Switch# copy-cfg to ftp 192.168.1.198 HS_0600_file.conf misadmin1 abcxyz
Switch# copy-cfg to tftp 192.168.1.198 HS_0600_file.conf
Command
Parameter
Description
Switch# firmware upgrade ftp [A.B.C.D | A:B:C:D:E:F:G:H] [file_name] [user_name] [password]
[A.B.C.D |
A:B:C:D:E:F:G:H]
Enter the IP address of your FTP server.
[file_name]
Enter the firmware file name that you want to upgrade.
[user_name]
Enter the username for FTP server login.
[password]
Enter the password for FTP server login.
Switch# firmware upgrade tftp [A.B.C.D | A:B:C:D:E:F:G:H] [file_name]
[A.B.C.D |
A:B:C:D:E:F:G:H]
Enter the IP address of your TFTP server.
[file_name]
Enter the firmware file name that you want to upgrade.
Example
Switch# firmware upgrade ftp 192.168.1.198 HS_0600_file.bin edgeswitch10 abcxyz
Switch# firmware upgrade tftp 192.168.1.198 HS_0600_file.bin
4. Backup a configuration file to TFTP server.
2.4.2 Firmware Command
To upgrade Firmware via FTP or TFTP server.
19
2.4.3 Reload Command
Command / Example
Switch# reload
Command / Example
Switch# write
Command / Example
Switch# config Switch(config)#
Switch# configure Switch(config)#
Command
Description
exit
Exit the Configuration Mode.
help
Display a list of available commands in Configuration Mode.
history
Show commands that have been used.
ip
Set up the IP address and enable DHCP mode & IGMP snooping.
ipv6
Set up global IPv6 configuration commands.
loop-detection
Enable or disable Loop Detection function
mac
Set up each port’s MAC learning function.
management
Set up the system service type.
mirror
Set up port mirroring function.
ntp
Set up required configurations for Network Time Protocol.
qos
Set up the priority of packets within the Managed Switch.
snmp-server
Create a new SNMP community and trap destination and specify the trap types.
To restart the Managed Switch, enter the reload command.
2.4.4 Write Command
To save running configurations to startup configurations, enter the write command. All unsaved configurations will be lost when you restart the Managed Switch.
2.4.5 Configure Command
The only place where you can enter Global Configuration Mode is in Privileged Mode. You can type in configure or config for short to enter Global Configuration Mode. The display prompt will change from Switch# to Switch(config)# once you successfully enter Global Configuration Mode.
2.5 Configuration Mode
When you enter configure and press Enter in Privileged Mode, you will be directed to Global Configuration Mode where you can set up advanced switching functions, such as QoS, VLAN, and storm control security globally. Any command entered will be applied to running­configuration and the devices operation. From this level, you can also enter different sub­configuration modes to set up specific configurations for VLAN, QoS, security or interfaces.
20
switch
Enable or disable SFP and counter polling function.
switch-info
Specify company name, host name, system location, etc..
user
Create a new user account.
vlan
Set up VLAN mode and VLAN configuration.
no
Disable a command or set it back to its default setting.
interface
Set up the selected interfaces advanced features.
show
Show a list of commands or show the current setting of each listed command.
2.5.1 Entering Interface Numbers
Commands
Description
Switch(config)# interface 1 Switch(config-if-1)#
Enter a single interface. Only interface 1 will apply to commands entered.
Switch(config)# interface 1,3,5 Switch(config-if-1,3,5)#
Enter three discontinuous interfaces, separating by a comma. Interface 1, 3, 5 will apply to commands entered.
Switch(config)# interface 1-3 Switch(config-if-1-3)#
Enter three continuous interfaces. Use a hyphen to signify a range of interface numbers. In this example, interface 1, 2, and 3 will apply to commands entered.
Switch(config)# interface 1,3-5 Switch(config-if-1,3-5)#
Enter a single interface number together with a range of interface numbers. Use both commas and hyphens o signify the combination of different interface numbers. In this example, interface 1, 3, 4, 5 will apply to commands entered.
In the Global Configuration Mode, you can configure a command that is only applied to interfaces specified. For example, you can set up each interfaces VLAN assignment, speed, or duplex mode. To configure, you must first enter the interface number. There are four ways to enter your interface numbers to signify the combination of different interfaces that apply to a command or commands.
The interface command can be used together with other commands such as QoS and VLAN. Please refer to the following sections for more detailed usages.
2.5.2 No Command
Most commands that you enter in Configuration mode can be negated using no command followed by the same or original command. The purpose of no command is to disable a function, remove a command, or set the setting back to the default value. In each sub-section below, the use of no command to fulfill different purposes will be introduced.
2.5.3 Show Command
The command show is very important for network administrators to get information about the device, receive outputs to verify a commands configurations or troubleshoot a network configuration error. Show command can be used in Privileged or Configuration mode.
21
2.5.4 Interface Command
Command
Parameter
Description
Switch(config)# interface [port_list]
[port_list]
Enter several port numbers separated by commas or a range of port numbers. For example: 1,3 or 2-4
Switch(config-if-PORT-PORT)# auto-negotiation
Set the selected interfaces to auto­negotiation. When auto-negotiation is enabled, speed configuration will be ignored.
Switch(config-if-PORT-PORT)# description [description]
[description]
Specify a descriptive name for the selected interfaces.
Switch(config-if-PORT-PORT)# duplex full
Set the selected interfaces to full duplex mode.
Switch(config-if-PORT-PORT)# flowcontrol
Enable the selected interfaces flow control function.
Switch(config-if-PORT-PORT)# shutdown
Administratively disable the selected ports status.
Switch(config-if-PORT-PORT)# speed [1000 |100 | 10]
[1000 |100 |
10]
Set up the selected interfaces speed. Speed configuration only works when no auto-negotiation command is issued.
Switch(config-if-PORT-PORT)# vlan option60
Enable the ports to receive Option60 packet.
No command
Switch(config-if-PORT-PORT)# no auto­negotiation
Set auto-negotiation setting to the default setting.
Switch(config-if-PORT-PORT)# no duplex
Set the selected ports duplex mode to the default setting.
Switch(config-if-PORT-PORT)# no speed
Set the selected ports speed to the default setting.
Switch(config-if-PORT-PORT)# no flowcontrol
Set the selected ports flow control function to the default setting.
Switch(config-if-PORT-PORT)# no description
Remove the entered description name for the selected ports.
Switch(config-if-PORT-PORT)# no shutdown
Administratively enable the selected ports status.
Show command
Switch(config)# show interface status
Show each interfaces port status including media type, forwarding state, speed, duplex mode, flow control and link up/down status.
Interface command example
Switch(config)# interface 1-3
Enter port 1 to port 3s interface mode.
Switch(config-if-1-3)# auto-negotiation
Set the selected interfaces to auto­negotiation.
Use this command to set up various port configurations of discontinuous or a range of ports.
22
Switch(config-if-1-3)# duplex full
Set the selected interfaces to full duplex mode.
Switch(config-if-1-3)# speed 100
Set the selected ports speed to 100Mbps.
Switch(config-if-1-3)# shutdown
Administratively disable the selected ports status.
IP command
Parameter
Description
Switch(config)# ip address [A.B.C.D] [255.X.X.X] [A.B.C.D]
[A.B.C.D]
Enter the desired IP address for the Managed Switch.
[255.X.X.X]
Enter subnet mask of your IP address.
[A.B.C.D]
Enter the default gateway address.
Switch(config)# ip dhcp snooping
Enable DHCP Snooping function
Switch(config)# ip dhcp snooping dhcp-server [port_list]
[port_list]
Specify DHCP server trust ports.
No command
Switch(config)# no ip address
Remove the Switch’s IP address.
Show command
Switch(config)# show ip address
Show the current IP configurations or verify the configured IP settings.
IP command example
Switch(config)# ip address 192.168.1.198
255.255.255.0 192.168.1.254
Set up the Switchs IP to 192.168.1.198, subnet mask to 255.255.255.0, and default gateway to 192.168.1.254.
Command / Example
Description
Switch(config)# ip address dhcp
Enable DHCP mode.
No command
Switch(config)# no ip address dhcp
Disable DHCP mode.
Show command
Switch(config)# show ip address
Show the current IP configurations or verify the configured IP settings.
Command / Example
Parameter
Description
Switch(config)# ip dhcp snooping
Enable DHCP snooping function.
Switch(config)# ip dhcp snooping dhcp-server [port_list]
[port_list]
Specify DHCP server trust ports.
No command
Switch(config)# no ip dhcp snooping
Disable IGMP snooping function.
Switch(config)# no ip dhcp snooping dhcp-
Remove all the DHCP server trust ports
2.5.5 IP Command
Configure IP address and related settings such as DHCP snooping and IGMP snooping.
1. Set up or remove the IP address of the Managed Switch.
2. Enable the Managed Switch to automatically get IP address from the DHCP server.
3. Enable or disable DHCP snooping globally.
23
server
Show command
Switch(config)# show ip dhcp snooping
Show current DHCP snooping status including DHCP server trust ports.
Command / Example
Parameter
Description
Switch(config)# ip igmp snooping
Enable IGMP snooping function.
Switch(config)# ip igmp snooping aging-time
[1-6000] /10
sec.
Specify the IGMP querier aging time. If the switch does not receive join packets from the end device within the specified time, the entry associated with this end device will be removed from the IGMP table.
No command
Switch(config)# no ip igmp snooping
Disable IGMP snooping function.
Switch(config)# no ip igmp snooping aging time
Remove IGMP querier aging time setting.
Show command
Switch(config)# show ip igmp snooping
Show current IGMP snooping status including immediate leave function.
Switch(config)# show ip igmp snooping groups
Show IGMP group table. When IGMP Snooping is enabled, the Switch is able to read multicast group IP and the corresponding MAC address from IGMP packets that enter the device.
4. Enable or disable IGMP snooping globally.
IGMP, Internet Group Management Protocol, is a communications protocol used to manage the membership of Internet Protocol multicast groups. IGMP is used by IP hosts and adjacent multicast routers to establish multicast group memberships. It can be used for online streaming video and gaming, and allows more efficient use of resources when supporting these uses.
IGMP Snooping is the process of listening to IGMP traffic. IGMP snooping, as implied by the name, is a feature that allows the switch to listen in on the IGMP conversation between hosts and routers by processing the layer 3 packets IGMP packets sent in a multicast network.
When IGMP snooping is enabled in a switch, it analyses all the IGMP packets between hosts connected to the switch and multicast routers in the network. When a switch hears an IGMP report from a host for a given multicast group, the switch adds the hosts port number to the multicast list for that group. And, when the switch hears an IGMP Leave, it removes the hosts port from the table entry.
IGMP snooping can effectively reduce multicast traffic from streaming and other bandwidth intensive IP applications. A switch using IGMP snooping will only forward multicast traffic to the hosts interested in that traffic. This reduction of multicast traffic reduces the packet processing at the switch (at the cost of needing additional memory to handle the multicast tables), and also the workload at the end hosts since their network cards (or operating system) will not have to receive and filter all the multicast traffic generated in the network.
24
Command / Example
Description
Switch(config)# ip igmp snooping immediate­leave
Enable IGMP immediate leave function.
No command
Switch(config)# no ip igmp snooping immediate-leave
Disable IGMP immediate leave function.
Show command
Switch(config)# show ip igmp snooping
Show current IGMP snooping status including immediate leave function.
Switch(config)# show ip igmp snooping groups
Show IGMP group table.
5. Enable or disable IGMP snooping immediate-leave function.
This works only when IGMP Snooping is enabled. When Immediate Leave is enabled, the Switch immediately removes the port when it detects IGMPv1 & IGMPv2 leave message on that port.
2.5.6 IPv6 Command
Brief Introduction to IPv6 Addressing
IPv6 addresses are 128 bits long and number about 3.4×1038. IPv6 addresses are written in eight groups of four hexadecimal digits separated by colons, such as
2001:0db8:85a3:0000:0000:8a2e:0370:7334 IPv6 unicast addresses other than those that start with binary 000 are logically divided into
two parts: a 64-bit network prefix and a 64-bit interface identifier.
Stateless Autoconfiguration
IPv6 lets any host generate its own IP address and check if it's unique in the scope where it will be used. IPv6 addresses consist of two parts. The leftmost 64 bits are the subnet prefix to which the host is connected, and the rightmost 64 bits are the identifier of the host's interface on the subnet. This means that the identifier need only be unique on the subnet to which the host is connected, which makes it much easier for the host to check for uniqueness on its own.
Link local address
The first step a host takes on startup or initialization is to form a link-local address from its MAC address and the link-local prefix FE80::/10. This is done by putting the prefix into the leftmost bits and the MAC address (in EUI-64 format) into the rightmost bits, and if there are any bits left in between, those are set to zero.
25
IPv6 command
Parameter
Description
Switch(config)# ipv6 address autoconfig
Configuration of IPv6 addresses using stateless autoconfiguration.
Switch(config)# ipv6 address dhcp auto
Configure DHCPv6 function in auto mode.
Switch(config)# ipv6 address dhcp force
Configure DHCPv6 function in force mode.
Switch(config)# ipv6 address dhcp rapid­commit
Allows the two-way message exchange instead of 4-way for address assignment.
ipv6 address dhcp commands are functional only when autoconfiguration is
enabled.
Switch(config)# ipv6 address global [A:B:C:D:E:F:G:H/10~128] [A:B:C:D:E:F:G:H]
[A:B:C:D:E:F:G:H/10~128]
Specify switch IPv6 global address and prefix-length.
[A:B:C:D:E:F:G:H]
Specify switch IPv6 default gateway.
Switch(config)# ipv6 address link-local [A:B:C:D:E:F:G:H/10~128]
[A:B:C:D:E:F:G:H/10~128]
Specify switch IPv6 link-local address and prefix-length.
Switch(config)# ipv6 enable
Enable IPv6 processing.
No command
Switch(config)# no ipv6 address autoconfig
Disable IPv6 stateless autoconfig.
Switch(config)# no ipv6 address dhcp
Disable DHCPv6 function.
Switch(config)# no ipv6 address dhcp rapid-
Disable rapid-commit feature.
Global address
This is done in the same fashion as the link-local address, but instead of the link-local prefix FE80:: it will use the prefix supplied by the router and put it together with its identifier (which by default is the MAC address in EUI-64 format).
Some IPv6 addresses are reserved for special purposes, such as loopback, 6to4 tunneling, and Teredo tunneling, as outlined in RFC 5156. Also, some address ranges are considered special, such as link-local addresses for use on the local link only, Unique Local addresses (ULA), as described in RFC 4193, and solicited-node multicast addresses used in the Neighbor Discovery Protocol.
DHCPv6
IPv6 hosts may automatically generate IP addresses internally using stateless address autoconfiguration, or they may be assigned configuration data with DHCPv6.
Set up the IPv6 address of the Managed Switch or configure the Managed Switch to get an IP address automatically from DHCPv6 server.
26
commit
Switch(config)# no ipv6 address global
Clear IPv6 global address entry
Switch(config)# no ipv6 address link-local
Clear IPv6 link-local address entry
Switch(config)# no ipv6 enable
Disable IPv6 processing.
Show command
Switch(config)# show ipv6 address
Display IPv6 information of the Managed Switch.
IPv6 command example
Switch(config)# ipv6 address autoconfig
Enable Ipv6 autoconfiguration.
Switch(config)# ipv6 address dhcp auto
Enable DHCPv6 auto mode.
LLDP command
Parameter
Description
Switch(config)# lldp hold-time [1-3600]
[1-3600]
Specify the amount of time in seconds. A receiving device will keep the information sent by your device for a period of time you specify here before discarding it. The allowable hold-time value is between 1 and 3600 seconds.
Switch(config)# lldp interval [1-180]
[1-180]
Specify the time interval for updated LLDP packets to be sent. The allowable interval value is between 1 and 180 seconds.
Switch(config)# lldp packets [1-16]
[1-16]
Specify the amount of packets that are sent in each discovery. The allowable packet value is between 1 and 16 seconds.
Switch(config)# lldp tlv­select capability
Enable Capability attribute to be sent.
Switch(config)# lldp tlv­select management­address
Enable Management Address attribute to be sent. Switch(config)# lldp tlv-
select port-description
Enable Port Description attribute to be sent.
Switch(config)# lldp tlv­select system­description
Enable System Description attribute to be sent.
2.5.7 LLDP Command
LLDP stands for Link Layer Discovery Protocol and runs over data link layer. It is used for network devices to send information about themselves to other directly connected devices on the network. By using LLDP, two devices running different network layer protocols can learn information about each other. A set of attributes are used to discover neighbor devices. These attributes contains type, length, and value descriptions and are referred to TLVs. Details such as port description, system name, system description, system capabilities, and management
address can be sent and received on this Managed Switch. Use Spacebar to select “ON” if
you want to receive and send the TLV.
27
Switch(config)# lldp tlv­select system-name
Enable System Name attribute to be sent.
No command
Switch(config)# no lldp hold-time
Reset the hold-time value back to the default setting.
Switch(config)# no lldp initiated-delay
Reset the initiated-delay value back to the default setting.
Switch(config)# no lldp interval
Reset the interval value back to the default setting.
Switch(config)# no lldp packets
Reset the packets-to-be-sent value back to the default setting.
Switch(config)# no lldp tlv-select capability
Disable Capability attribute to be sent.
Switch(config)# no lldp tlv-select management-address
Disable Management Address attribute to be sent.
Switch(config)# no lldp tlv-select port­description
Disable Port Description attribute to be sent.
Switch(config)# no lldp tlv-select system-description
Disable System Description attribute to be sent.
Switch(config)# no lldp tlv-select system-name
Disable System Name attribute to be sent.
Show command
Switch(config)# show lldp
Show or verify LLDP settings.
Switch(config)# show lldp interface
Show or verify each interfaces LLDP port state.
Switch(config)# show lldp interface [port_list]
Show or verify the selected interfaces LLDP port state.
Switch(config)# show lldp status
Show current LLDP status.
LLDP command example
Description
Switch(config)# lldp hold-time 60
Set the hold-time value to 60 seconds.
Switch(config)# lldp initiated-delay 60
Set the initiated-delay value to 60 seconds
Switch(config)# lldp interval 10
Set the updated LLDP packets to be sent in very 10 seconds.
Switch(config)# lldp packets 2
Set the number of packets to be sent in each discovery to 2.
Switch(config)# lldp tlv-select capability
Enable Capability attribute to be sent.
Switch(config)# lldp tlv-select management-address
Enable Management Address attribute to be sent.
Switch(config)# lldp tlv-select port­description
Enable Port Description attribute to be sent.
Switch(config)# lldp tlv-select system­description
Enable System Description to be sent.
Switch(config)# lldp tlv-select system­name
Enable System Name to be sent.
LLDP & Interface command
Parameter
Description
Switch(config)# interface [port_list]
[port_list]
Enter several discontinuous port numbers separated by commas or a
Use Interface command to configure a group of ports LLDP settings.
28
range of ports with a hyphen. For example:1,3 or 2-4
Switch(config-if-PORT­PORT)# lldp
Enable LLDP on the selected interfaces.
No command
Switch(config-if-PORT­PORT)# no lldp
Disable LLDP on the selected interfaces.
Show command
Switch(config)# show lldp
Show or verify LLDP configurations.
Loop Detection command
Description
Switch(config)# loop-detection
Globally enable Loop Detection function. By default, this function is disabled.
Switch(config)# loop-detection unlock interval
Set up the time interval for the locked ports to be unlocked
Switch(config-if-PORT-PORT)# loop-detection
Enable Loop Detection function on the selected ports.
No command
Switch(config)# no loop-detection
Globally disable Loop Detection function.
Switch(config-if-PORT-PORT)# no loop­detection
Disable Loop Detection function on the selected physical ports.
Show command
Switch(config)# show loop-detection
Show current Loop Detection configuration.
Switch(config)# show loop-detection status
Show information concerning locked ports and locked cause.
Note: Please note that Loop Detection function is only available on LAN 1~8 port.
MAC Command
Parameter
Description
Switch(config)# mac address­table aging-time [1-800]
[1-800]
Enter aging time for MAC address table. Numbers available are from 1 to 800.
No command
2.5.8 Loop Detection Command
Enable or disable Loop Detection function. Loop Detection allows users to configure the Managed Switch to lock a port when it detects
packets that sent out on that port loop back to the switch. When loops occur, it will cause broadcast storm and affect the performance of layer two Access switch. To avoid this, Loop Detection can be enabled on LAN port of the Managed Switch. When it detects the loop, it will lock the port which receives the loop packet immediately and send out SNMP trap to inform the network administrator.
2.5.9 MAC Command
Set up MAC address table aging time. Entries in the MAC address table containing source MAC addresses and their associated ports will be deleted if they are not accessed within the specified aging time.
29
Switch(config)# no mac address-table aging­time
Set MAC address table aging time to the default value (300 seconds).
Show command
Switch(config)# show mac aging­time
Show current MAC address table aging time or verify currently configured aging time.
Switch(config)# show mac address-table
Show MAC addresses learned by the Managed Switch. Only 20 entries will be displayed at a time. If there are more than 20 entries, please issue this command again to show the following entries.
Switch(config)# show mac address-table interface [port_list]
[port_list]
Show MAC addresses learned by the selected port. Only 20 entries will be displayed at a time. If there are more than 20 entries, please issue this command again to show the following entries.
Switch(config)# show mac address-table top
Show the entries starting from the very first entry.
MAC command example
Switch(config)# mac address-table aging-time 600
Set MAC address table aging time to 600 seconds.
30
Loading...
+ 79 hidden pages