1.4 Input syntax for commands starting with the word "no"............................................................................13
Chapter 2: How to use the commands.................................................................14
2.1 Operation via console.................................................................................................................................14
2.2 Operation via configuration (config) files..................................................................................................16
4.1.4 Allow login with special password..............................................................................................29
4.2 User account maintenance..........................................................................................................................30
4.2.1 Set user password........................................................................................................................30
4.2.2 Show login user information.......................................................................................................31
4.2.3 Set banner....................................................................................................................................32
4.5 Show unit information................................................................................................................................37
4.5.1 Show inventory information........................................................................................................
4.5.2 Show operating information........................................................................................................38
4.5.3 Show currently-executing processes...........................................................................................39
4.5.4 Show technical support information............................................................................................39
4.6 Time management......................................................................................................................................40
4.6.1 Set clock manually......................................................................................................................40
4.6.2 Set time zone...............................................................................................................................40
4.6.3 Show current time........................................................................................................................41
4.6.4 Set NTP server.............................................................................................................................41
4.6.5 Synchronize time from NTP server (one-shot update)................................................................42
4.6.6 Synchronize time from NTP server (update interval).................................................................42
4.6.7 Show NTP server time synchronization settings.........................................................................43
5.1.15 Show SFP+ module status.......................................................................................................111
6 | Command Reference | TOC
5.2 Link aggregation.......................................................................................................................................112
5.3 Port authentication....................................................................................................................................122
5.4 Port security..............................................................................................................................................139
5.1.16 Set SFP+ module optical reception level monitoring..............................................................112
5.2.1 Set static logical interface..........................................................................................................112
5.2.2 Show static logical interface status............................................................................................113
5.2.3 Set LACP logical interface........................................................................................................113
5.2.4 Show LACP logical interface status..........................................................................................114
5.2.5 Set LACP system priority order................................................................................................116
5.2.6 Show LACP system priority......................................................................................................
5.2.7 Set LACP timeout......................................................................................................................117
7.9 DNS client................................................................................................................................................192
6.3.21 Set MST instance for interface................................................................................................170
6.3.22 Set interface priority for MST instance...................................................................................170
6.3.23 Set interface path cost for MST instance.................................................................................171
6.3.24 Show MST region information................................................................................................171
6.3.25 Show MSTP information.........................................................................................................172
6.3.26 Show MST instance information.............................................................................................173
6.4.1 Set loop detection function (system).........................................................................................174
6.4.2 Set loop detection function (interface)......................................................................................174
6.4.3 Set port blocking for loop detection..........................................................................................175
7.9.1 Set DNS lookup function...........................................................................................................192
7.9.2 Set DNS server list....................................................................................................................193
182
Command Reference | TOC | 9
7.9.3 Set default domain name...........................................................................................................193
7.9.4 Set search domain list................................................................................................................194
7.9.5 Show DNS client information...................................................................................................194
Chapter 8: IP multicast control.........................................................................196
8.1 IP multicast basic settings........................................................................................................................196
8.1.1 Enable/disable function to transmit IGMP/MLD query when topology changes.....................196
8.1.2 Set processing method for unknown multicast frames..............................................................196
9.1.12 Show access list applied to interface.......................................................................................217
9.1.13 Set VLAN access map and move to VLAN access map mode...............................................218
9.1.14 Set access list for VLAN access map......................................................................................218
9.1.15 Set VLAN access map filter....................................................................................................219
9.1.16 Show VLAN access map.........................................................................................................219
9.1.17 Show VLAN access map filter................................................................................................219
9.2 QoS (Quality of Service)..........................................................................................................................220
9.2.37 Set egress queue (CoS-Queue)................................................................................................246
9.2.38 Set egress queue (DSCP-Queue).............................................................................................246
9.2.39 Show policy map information.................................................................................................247
9.2.40 Show map status......................................................................................................................249
9.2.41 Set egress queue scheduling....................................................................................................250
9.2.42 Set traffic shaping (individual port)........................................................................................250
9.2.43 Set traffic-shaping (queue units).............................................................................................251
9.3.1 Set flow control (IEEE 802.3x PAUSE send/receive) (system)................................................252
9.3.2 Set flow control (IEEE 802.3x PAUSE send/receive) (interface).............................................252
9.3.3 Show flow control operating status...........................................................................................253
9.4.1 Set storm control........................................................................................................................254
9.4.2 Show storm control reception upper limit.................................................................................254
231
Preface
Introduction
•Unauthorized reproduction of this document in part or in whole is prohibited.
•The contents of this document are subject to change without notice.
Yamaha disclaims all responsibility for any damages caused by loss of data or other problems resulting from the use of this
•
product.
The warranty is limited to this physical product itself. Please be aware of these points.
•The information contained in this document has been carefully checked and is believed to be reliable. However, if you find
some of the contents to be missing or have questions regarding the contents, please contact us.
•Ethernet is a registered trademark of Fuji Xerox Corporation.
•Microsoft and Windows are registered trademarks of Microsoft Corporation USA in the United States and in other
countries.
12 | Command Reference | How to read the command reference
Chapter 1
How to read the command reference
1.1 Applicable firmware revision
This command reference applies to firmware Yamaha L2 Switch SWP2 of Rev.2.03.06.
For the latest firmware released after printing of this command reference, manuals, and items that differ, access the following
URL and see the information in the WWW server.
https://www.yamaha.com/proaudio/
1.2 How to read the command reference
This command reference describes the commands that you enter from the console of the Yamaha L2 Switch SWP2.
Each command is described by a combination of the following items.
Explains the command input syntax. Key input can use either
uppercase or lowercase characters.
Command names are shown in bold (Bold face).
[Syntax]
[Keywords]
[Parameters]
[Default setting]Indicates the factory-set state of the command.
[Input mode]Indicates the modes in which the command can be executed.
[Description]Explains the command.
[Notes]
[Examples]Provides specific examples of the command.
The parameter portion is shown in italic (Italic face).
Keywords are shown in normal characters.
Parameters that can be omitted are enclosed in square
brackets ( [ ] ).
Explains the type and significance of keywords that can be
specified for the command.
Explains the type and significance of parameters that can be
specified for the command.
Explains points that you should be aware of when using the
command.
1.3 Interface names
In the command input syntax, interface names are used to specify each interface of the switch.
The following interface names are handled by the SWP2.
Interface typePrefixDescriptionExamples
Used to specify a physical
LAN/SFP+ portport
VLAN interfacevlan
static logical interfacesa
LACP logical interfacepo
port. Specify "1" + "." + "port
number" after the port
number.
Used to specify a VLAN.
Specify vlan followed by the
"VLAN ID".
Used to specify link
aggregation that combines
multiple LAN/SFP+ port.
Specify sa or po followed by
"logical interface ID".
To specify LAN port #1:
port1.1
To specify VLAN #1: vlan1
To specify static logical
interface #1: sa1
To specify LACP logical
interface #2: po2
Command Reference | How to read the command reference | 13
1.4 Input syntax for commands starting with the word "no"
Many commands also have a form in which the command input syntax starts with the word no. If you use a syntax that with
begins with the word no, the settings of that command are deleted and returned to the default value, unless explained otherwise.
14 | Command Reference |
How to use the commands
Chapter 2
How to use the commands
The SWP2 lets you perform command operations in the following two ways.
Type of operationMethod of operationDescription
Operation via console
Operation via a config file
This chapter explains how to use each method.
•Access from a console terminal
•Access from a TELNET client
Access from a SSH client
•
•File transfer via TFTP
•File transfer via GUI operation
Issue commands one by one to
interactively make settings or perform
operations.
A file containing a set of necessary
commands (called a configuration or
"config" file) is used to specify multiple
settings, or to obtain multiple settings from
the SWP2, in a single operation.
2.1 Operation via console
2.1.1 Access from a console terminal
Use an RJ-45/DB-9 console cable when making settings from a terminal that is connected to the CONSOLE port of SWP2.
If you are using a computer as a console terminal (serial terminal), you'll need a terminal program to control the computer's
serial (COM) port. Set the communication settings of the console terminal as follows.
Setting itemValue
Baud rate9600bps
Data8-bit
Paritynone
Stop bit1-bit
Flow controlXon/Xoff
For settings related to the console terminal, use the line con command to move to line mode.
2.1.2 Access from a TELNET client
You can use a TELNET client on a computer to connect to the TELNET server of the SWP2 and control it. In order to make
settings using TELNET, you must first set up a connection environment (IP network) and then make TELNET server settings.
The IP address settings of the SWP2 are as follows.
•The default IPv4 address setting is ip address dhcp for VLAN #1.
To change the IPv4 address, use the ip address command.
•
The TELNET server settings of the SWP2 are as follows.
•With the default settings of the TELNET server function, it runs on the default port (TCP port 23) and allows access only
from VLAN #1 (vlan0.1).
•To change the reception port number, use the telnet-server command.
•Access to the TELNET server can be controlled in VLAN units, and can be specified by the telnet-server interface
command.
A virtual communication port by which a TELNET client connects is called a "virtual terminal (VTY: Virtual TYpewriter)
port." The maximum number of simultaneous TELNET client connections depends on the number of VTY ports of the SWP2.
The VTY ports of the SWP2 are as follows.
•With the default VTY port settings, eight VTY ports (ID: 0--7) can be used.
•To check the number of VTY ports, use the show running-config | include line vty command.
•To change the number of VTY ports, use the line vty command. (maximum 8 (ID: 0--7))
To make VTY port settings, use the line vty command to specify the target VTY port, and then move to line mode. ID
management for virtual terminal ports is handled within the SWP2, but since login session and ID assignments depend on the
connection timing, you should normally make the same settings for all VTY ports.
Command Reference | How to use the commands | 15
2.1.3 Access from an SSH client
You can use an SSH client on a computer to connect to the SSH server of the SWP2 and control it. In order to make settings
using SSH, you must first set up a connection environment (IP network) and then make SSH server settings.
The IP address settings of the SWP2 are as follows.
•The default IPv4 address setting is ip address dhcp for VLAN #1.
To change the IPv4 address, use the ip address command.
•
The following settings on the SWP2 must be made beforehand when accessing from an SSH client.
•Generate a host key on the SSH server using the ssh-server host key generate command.
•Enable the SSH server functions using the ssh-server command.
•Register the user name and password using the username command.
The SSH server settings of the SWP2 are as follows.
•Access to an SSH server can be controlled for each VLAN, and is set using the ssh-server interface command.
•Note that the following functions are not supported.
•SSH protocol version 1
•User authentication aside from password authentication (host response authentication, public key authentication, challengeresponse authentication, GSSAPI authentication)
•Port forwarding (X11/TCP forwarding)
•Gateway Ports (Port relay)
•Permitting blank passwords
A virtual communication port by which an SSH client connects is called a "virtual terminal (VTY: Virtual TYpewriter) port."
The maximum number of simultaneous SSH client connections depends on the number of VTY ports of the SWP2. The VTY
ports of the SWP2 are as follows.
•With the default VTY port settings, eight VTY ports (ID: 0--7) can be used.
•To check the number of VTY ports, use the show running-config | include line vty command.
•To change the number of VTY ports, use the line vty command. (maximum 8 (ID: 0--7))
To make VTY port settings, use the line vty command to specify the target VTY port, and then move to line mode. ID
management for virtual terminal ports is handled within the SWP2, but since login session and ID assignments depend on the
connection timing, you should normally make the same settings for all VTY ports.
2.1.4 Console terminal/VTY settings
The SWP2 lets you make the following settings for console terminals and VTY.
1. Timeout duration interpreted as no operation
2. Number of lines shown in one page of the terminal screen
Setting itemContent of setting
Specifies the time after which the login session is forcibly
ended when there has been no key input from the terminal.
Timeout duration interpreted as no operation
Number of lines shown in one page of the terminal screen
With the default setting, the session is forcibly disconnected
after ten minutes.
To make this setting, use the exec-timeout command of the
line mode; this takes effect from the next session.
Specifies the number of lines shown on one page of the
terminal screen.
This can be set as 0--512 lines/page, and the default setting is
24 lines/page.
When displaying in this state, 23 lines are displayed, then "--More---" is displayed and the system waits for key input.
There are two types of this setting, and they are applied to the
system starting with the upper type.
1) unprivileged EXEC mode terminal length command
2) global configuration mode service terminal-length
command
Setting 1) is a function that temporarily applies to the user
16 | Command Reference | How to use the commands
Setting itemContent of setting
2.2 Operation via configuration (config) files
A file containing a set of needed commands is called a configuration (config) file.
The settings that have been made on the SWP2 can be read as a configuration file by a host on the LAN via TFTP. A
configuration file on the host can also be loaded into the SWP2 to specify its settings.
A configuration file contains all the settings for the entire unit; it is not possible to partially read or write only the settings for a
specific area. The configuration file is a text file consisting of ASCII + line-return (CRLF or LF).
The commands and parameters in a configuration file must be in the correct syntax. If the syntax or content are incorrect, that
content is ignored and is not applied to operation.
2.2.1 Access from a TFTP client
In order to transfer a configuration file via TFTP, you must first set up a connection environment (IP network) and then make
TFTP server settings.
The IP address settings of the SWP2 are as follows.
•The default IPv4 address setting is ip address dhcp for VLAN #1.
To change the IPv4 address, use the ip address command.
•
The TFTP server settings of the SWP2 are as follows.
•With the default settings of the TFTP server function, it is running on the default port (UDP port 69) and does not allow
access from anywhere.
•To change the reception port number, use the tftp-server command.
•Access to the TFTP server can be controlled in VLAN units, and can be specified by the tftp-server interface command.
Specify the VLAN ID for which access is allowed.
who is using the terminal, and is applied as soon as the
command is executed.
Setting 2) applies starting with the next session.
2.2.2 Reading/writing a configuration file
Reading/writing a configuration file is performed by executing a TFTP command from the host on the LAN. The following
configuration files are read or written.
•Config file
Applicable config fileDescriptionRemarks
running-configSetting values for current operation
startup-config for USER modeSaved setting values
startup-config for DANTE modeSaved setting values
The command syntax used depends on the OS of that host (TFTP client). Keep the following points in mind when executing
commands.
•IP address of theSWP2
•
Use "binary mode" as the transmission mode.
•Specify the following as the remote path of the configuration file read (GET) or write (PUT) destination.
Setting values when starting up with
DIP switch #1 ON
Setting values when starting up with
DIP switch #1 OFF
config1
reconfig
•If an administrator password is set on the SWP2, you must specify the administrator password after the remote path in the
format "/PASSWORD".
startup-config for
DANTE mode
startup-config for
USER mode
✓--
-✓✓
Command Reference | How to use the commands | 17
•If you PUT (write) with "config" specified as the remote path, the changes are added or overwritten to the current operating
settings. Settings that you do not add or change will remain as the current operating settings. Since the setting values are not
saved, you must use the write command etc. if you want to save them.
•If you want to start operation in USER mode with a completely new config file, specify "reconfig" as the remote path. After
updating startup-config, the unit restarts automatically, and begins operating with the new settings.
The encrypted password (password 8 or enable password 8 command format) is not applied to the settings even if it is
•
PUT to running-config via TFTP. And, users are not actually registered when making settings for users that include
encrypted passwords (username command).
2.3 Login
When the SWP2 has finished starting up, a login screen is displayed.
If a user is configured, enter the user name and password. If a user is not configured, omit the user name by pressing the Enter
key, and enter the login password instead to log in as an unknown user.
When authentication is successful, the command prompt appears. Since no user password is specified with the default settings,
you will be able to log in without a password.
•Login screen
Username:
Password:
•Console screen following login
SWP2 Rev.2.03.01 (Fri Sep 7 00:00:00 2018)
Copyright (c) 2018 Yamaha Corporation. All Rights Reserved.
SWP2>
2.4 Command input mode
2.4.1 Command input mode basics
In order to change the settings of the SWP2 or to reference the status, you must move to the appropriate command input mode
and then execute the command. Command input mode is divided into hierarchical levels as shown below, and the commands
that can be entered in each mode are different. By noting the prompt, the user can see which mode they are currently in.
18 | Command Reference | How to use the commands
The basic commands related to moving between command input modes are described below. For commands that move from
global configuration mode mode to individual configuration mode, refer to "individual configuration mode."
•exit command
•logout command
•enable command
•disable command
•configure terminal command
•end command
2.4.2 individual configuration mode
individual configuration mode is the overall name for the mode in which you can make detailed settings for specific items such
as LAN/SFP+ port, VLAN interface, and QoS. To enter individual configuration mode, issue the command for transitioning to
the respective mode from global configuration mode.
On SWP2, individual configuration mode contains the following modes. Some of the modes within individual configuration
mode have a hierarchy. For example, policy map mode → policy map class mode.
he command prompt prefix indicates the host name. In the default state, the host name is the model name "SWP2". This
indication can be changed by using the hostname command to specify the host name. In cases where multiple SWP2 units are
used, management will be easier if separate names are assigned to each switch.
2.4.4 Executing commands of a different input mode
Because the commands that can be used on the SWP2 differ depending on the mode, you must transition to the mode in which a
command can be executed before you execute that command. The do command is provided as a way to avoid this requirement.
By using the do command you can execute priviledged EXEC mode commands from any configuration mode. This allows you
to reference the current configuration or save settings from any configuration mode without having to transition to priviledged
EXEC mode.
However, since the completion function cannot be used with do, you must enter the command that follows either in its full
spelling or in its abbreviated form.
Entry in full spelling
•
SWP2(config)#do show running-config
•Entry in abbreviated form
SWP2(config)#do sh ru
2.5 Keyboard operations when using the console
2.5.1 Basic operations for console input
The SWP2 allows the following operations in the command line.
•Moving the cursor
Keyboard operationDescription and notes
→Move right one character
←Move left one character
Command Reference | How to use the commands | 19
Press Esc, then F
Press Esc, then B
•Deleting an input character
Keyboard operationDescription and notes
Press Esc, then D
•Other
Move right one word (move to the character following the
end of the word at the cursor location)
Move left one word (move to the first character of the word
at the cursor location)
Ctrl + AMove to the beginning of the line
Ctrl + EMove to the end of the line
Backspace
Ctrl + H
Ctrl + D
Ctrl + KDelete from the cursor position until the end of the line
Ctrl + UDelete all characters that are being entered
Delete the character at the left of the cursor
Delete the character at the cursor.
If this operation is performed when the command line is
empty, the result is the same as the exit command.
Delete from the cursor position until immediately before the
first space
Keyboard operationDescription and notes
Exchange the character at the cursor position with the
Ctrl + T
Ctrl + C
Ctrl + Z
preceding character.
If the cursor is at the end of the line, exchange the preceding
character with the character that precedes it.
In unprivileged EXEC mode and priviledged EXEC mode,
discard the command being entered and move to the next
line.
In individual configuration mode, discard the command line
being entered and move to priviledged EXEC mode.
Command processing that is currently being executed will
be stopped. (ex: ping command)
Move from individual configuration mode to priviledged
EXEC mode.
This is the same operation as the end command.
2.5.2 Command help
By entering '?' in the command line you can search for the available commands or parameters.
SWP2#show vlan ?
<1-4094> VLAN id
access-map Show VLAN Access Map
brief VLAN information for all bridges (static and dynamic)
filter Show VLAN Access Map Filter
private-vlan private-vlan information
SWP2#show vlan
20 | Command Reference | How to use the commands
2.5.3 Input command completion and keyword candidate list display
If you press the "Tab" key while entering a command in the console, the command name is completed. If you press the "Tab"
key after entering a keyword, a list of keyword candidates that can be entered next is shown. The same operation can also be
performed by pressing the "Ctrl + I" key.
•Command name completion
SWP2#con "press the <Tab>key"
↓
SWP2#configure
•Keyword candidate list display
SWP2(config)#vlan "press the <Tab> key"
access-map database filter
SWP2(config)#vlan
2.5.4 Entering command abbreviations
When you enter commands or parameters in abbreviated form, and the characters you entered can be recognized
unambiguously as a command or parameter, that command is executed.
Example of entering a command abbreviation (show running-config)
SWP2# sh run
2.5.5 Command history
By using the command history function, you can easily re-execute a command that you previously input, or partially modify a
previously input command and re-execute it. Command history is shown as a history that is common to all modes.
Operation is shown below.
Keyboard operationDescription and notes
↑
Ctrl + P
↓
Ctrl + N
Move backward through command history
Move forward through command history
2.6 Commands that start with the word "show"
2.6.1 Modifiers
Modifiers send the information produced by the show command through a filter, restricting the content that is shown in the
screen and making it easier for you to see the desired information.
The SWP2 provides the following three modifiers for the show command.
ModifiersDescription
include
grep
Output only the lines that include the specified character
string
exclude
Modifiers can be used only one at a time. You cannot specify more than one modifier.
SWP2# show spanning-tree | include Role
% po1: Port Number 505 - Ifindex 4601 - Port Id 0x81f9 - Role Disabled - State
Discarding
% port1.1: Port Number 905 - Ifindex 5001 - Port Id 0x8389 - Role Disabled -
show running-config to view information that includes VLAN #1 (vlan1).
show spanning-tree to view information that includes Role.
Output only the lines that do not include the specified
character string
Command Reference | How to use the commands | 21
State Forwarding
% port1.2: Port Number 906 - Ifindex 5002 - Port Id 0x838a - Role Disabled State Forwarding
% port1.3: Port Number 907 - Ifindex 5003 - Port Id 0x838b - Role Disabled State Forwarding
% port1.4: Port Number 908 - Ifindex 5004 - Port Id 0x838c - Role Disabled State Forwarding
% port1.6: Port Number 910 - Ifindex 5006 - Port Id 0x838e - Role Disabled State Forwarding
% port1.7: Port Number 911 - Ifindex 5007 - Port Id 0x838f - Role Disabled State Forwarding
% port1.8: Port Number 912 - Ifindex 5008 - Port Id 0x8390 - Role Disabled State Forwarding
% port1.9: Port Number 913 - Ifindex 5009 - Port Id 0x8391 - Role Disabled State Forwarding
% port1.10: Port Number 914 - Ifindex 5010 - Port Id 0x8392 - Role Disabled State Forwarding
22 | Command Reference | Configuration
Chapter 3
Configuration
3.1 Manage setting values
The SWP2 uses the following configurations to manage its settings.
Types of configurationDescription
Running configuration (running-config)
Startup configuration (startup-config)
Backup configuration (backup-config)
Default configuration (default-config)
The start-up flow for the SWP2 system is as follows.
1. Reference DIP switch #1 and determine the CONFIG mode
•If DIP switch #1 is up (OFF), start up in DANTE mode
If DIP switch #1 is down (ON), start up in USER mode
•
2. Determine the startup configuration for each CONFIG mode
•For DANTE mode
•Use the default configuration that was selected according to the settings of DIP switches #2/#3
•For USER mode
•If a startup configuration for USER mode exists, use the corresponding data
•If a startup configuration for USER mode does not exist, use the default configuration that was selected according to
the settings of DIP switches #2/#3.
3. Load the startup configuration into RAM as the running configuration
•If a backup configuration exists in DANTE mode, overwrite the corresponding data onto the running configuration
If commands etc. are used to modify the settings while the SWP2 is running, the modified settings are immediately reflected in
the running configuration. After modifying the running configuration, executing the write or copy command in USER mode
will update the startup configuration. In DANTE mode, executing the backup-config command will update the backup
configuration. If you restart without saving the content that was specified or modified, the settings or modifications are lost.
Please be aware of this.
Setting values currently used for
operation. Managed in RAM.
In USER mode, setting values saved in
Flash ROM.
In DANTE mode, the same setting
values as the default configuration.
Setting values for some functions saved
in DANTE mode. Managed in Flash
ROM.
Default setting values. Managed in Flash
ROM.
Created based on the VLAN preset that
is selected by the settings of DIP
switches #2/#3 at start-up.
User operations that can be
performed
Note
Save to startup configuration (in USER
mode)
Save some functions to backup
configuration (in DANTE mode)
Note
Update by running configuration (in
USER mode)
Update by running configuration (in
DANTE mode)
No operations possible
3.2 Default setting values
On the SWP2, the VLAN preset specified by DIP switches #2/#3 will be the default setting values. The VLAN preset types for
DIP switch #2/#3 settings are as follows.
•DIP switch #2/#3 settings
Setting position
#2#3
Up (OFF)Up (OFF)
VLAN preset type
Normal
Command Reference | Configuration | 23
Setting position
#2#3
Down (ON)Up (OFF)
Up (OFF)Down (ON)B
Down (ON)Down (ON)C
The common setting values and presets are shown first, and then the specific to the presets setting values are shown.
•Settings common to all models and presets (LAN/SFP+ port)
CategorySetting itemDefault value
Common setting
L2MSL2MS filterdepends on preset
L2 switching
QoS DSCP - transmission queue ID
conversion table
Flow control (IEEE 802.3x)disabled
Speed/duplex mode settingauto
Cross/straight automatic detectionenabled
MRU1,522 Byte
Port descriptionnone
EEEdisabled
Port Modedepends on preset
Associated VLAN IDdepends on preset
Spanning treedepends on preset
Proprietary loop detectionenabled
DSCP: 8 → transmission queue: 2
Other than above → transmission
queue: 0
QoS trust modeDSCP
Traffic control
•Default settings for the Normal VLAN preset of the SWP2 (entire system)
CategorySetting itemDefault setting values
IP multicast control
•SWP2's VLAN preset Normal settings (LAN/SFP+ port)
InterfaceL2MS FilterLAG(Static)Port ModeVLANSTP
port1.1Disable-Access1(default)-
port1.2Disable-Access1(default)-
port1.3Disable-Access1(default)-
port1.4Disable-Access1(default)-
port1.5Disable-Access1(default)-
port1.6Disable-Access1(default)-
port1.7Disable-Access1(default)-
Flow control (IEEE 802.3x)disabled
Storm controldisabled
Function to transmit IGMP/MLD query
when topology changes
Enabled (wait time 5 sec)
port1.8Disable-Access1(default)-
port1.9Disable-Access1(default)-
port1.10Disable-Access1(default)-
port1.11Disable-Access1(default)✓
Command Reference | Configuration | 25
InterfaceL2MS FilterLAG(Static)Port ModeVLANSTP
port1.12Disable-Access1(default)✓
•SWP2's VLAN preset Normal settings (VLAN interface)
•VLAN #1(for Dante and Control)
IPv4 Address: DHCP
•
•IGMP Snooping: Enable
•Querier : Enable
•Query Interval : 30 sec
•Fast-Leave : Disable
•Check TTL : Disable
•Default settings for the Normal VLAN preset A of the SWP2 (entire system)
CategorySetting itemDefault setting values
IP multicast control
•SWP2's VLAN preset A settings (LAN/SFP+ port)
InterfaceL2MS FilterLAG(static)Port ModeVLANSTP
port1.1Disable-Access1(default)-
port1.2Disable-Access1(default)-
port1.3Disable-Access1(default)-
port1.4Disable-Access1(default)-
port1.5Disable-Access2-
port1.6Disable-Access2-
port1.7Disable-Access1(default)-
port1.8Disable-Access1(default)-
port1.9Disable-Access2-
port1.10Disable-Access2-
port1.11Disable
port1.12Disable
Function to transmit IGMP/MLD query
when topology changes
sa1Trunk1(native), 2✓
Enabled (wait time 5 sec)
•SWP2's VLAN preset A settings (VLAN interface)
•VLAN #1(for Dante)
IPv4 Address: DHCP
•
•IGMP Snooping: Enable
•Querier : Enable
•Query Interval : 30 sec
•Fast-Leave : Disable
•Check TTL : Disable
•VLAN #2(for Control)
•IGMP Snooping: Disable
•Default settings for the Normal VLAN preset B of the SWP2 (entire system)
CategorySetting itemDefault setting values
IP multicast control
•SWP2's VLAN preset B settings (LAN/SFP+ port)
InterfaceL2MS FilterLAG(static)Port ModeVLANSTP
port1.1Disable-Access1(default)-
port1.2Disable-Access1(default)-
Function to transmit IGMP/MLD query
when topology changes
Enabled (wait time 5 sec)
26 | Command Reference | Configuration
InterfaceL2MS FilterLAG(static)Port ModeVLANSTP
port1.3Disable-Access1(default)-
port1.4Disable-Access1(default)-
port1.5Disable-Access2-
port1.6Disable-Access2-
port1.7Disable-Access1(default)-
port1.8Disable-Access2-
port1.9Disable
port1.10Disable
port1.11Disable
port1.12Disable
•SWP2's VLAN preset B settings (VLAN interface)
•VLAN #1(for Dante)
IPv4 Address: DHCP
•
•IGMP Snooping: Enable
•Querier : Enable
•Query Interval : 30 sec
•Fast-leave : Disable
•Check TTL : Disable
•VLAN #2(for Control)
•IGMP Snooping: Disable
•SWP2's VLAN preset C settings (LAN/SFP+ port)
InterfaceL2MS FilterLAG(static)Port ModeVLANSTP
port1.1Disable-Access1(default)-
port1.2Disable-Access1(default)-
port1.3Disable-Access1(default)-
sa1Trunk1(native), 2✓
sa2Trunk1(native), 2✓
port1.4Enable-Access2-
port1.5Enable-Access2-
port1.6Enable-Access2-
port1.7Disable-Access1(default)-
port1.8Disable-Access1(default)-
port1.9Enable-Access2-
port1.10Enable-Access2-
port1.11Disable-Access1(default)-
port1.12Enable-Access2-
•SWP2's VLAN preset C settings (VLAN interface)
•VLAN #1(for Dante)
•IPv4 Address: DHCP
•IGMP Snooping: Enable
•Querier : Enable
•Query Interval : 30 sec
•Fast-leave : Disable
•Check TTL : Disable
•VLAN #2(for Control)
•IGMP Snooping: Enable
•Querier : Enable
•Query Interval : 30 sec
•Fast-leave : Disable
•Check TTL : Disable
Command Reference | Configuration | 27
28 | Command Reference |
Maintenance and operation functions
Chapter 4
Maintenance and operation functions
4.1 Passwords
4.1.1 Set password for unnamed user
[Syntax]
password password
no password
[Parameter]
password:Login password for unnamed user
Single-byte alphanumeric characters, and symbols other than the single-byte characters '|', '>', and '?'
(32 characters or less)
The first character must be a single-byte alphanumeric character
[Initial value]
no password
[Input mode]
global configuration mode
[Description]
Sets the password for logging in as an unnamed user.
If this command is executed with the "no" syntax, the unnamed user password for logging is deleted.
[Note]
If the password was encrypted by the password-encryption command, it is shown in the configuration in the form "password
8 password."
The user cannot enter the password in this form when making configuration settings from the command line.
[Example]
Specify user1234 as the unnamed user password.
SWP2(config)#password user1234
Delete the unnamed user password.
SWP2(config)#no password
4.1.2 Set administrator password
[Syntax]
enable password password
no enable password
[Parameter]
password:Administrator password
Single-byte alphanumeric characters, and symbols other than the single-byte characters '|', '>', and '?'
(32 characters or less)
The first character must be a single-byte alphanumeric character
[Initial value]
no enable password
[Input mode]
global configuration mode
Command Reference | Maintenance and operation functions | 29
[Description]
Specifies the administrator password needed to enter priviledged EXEC mode.
If this command is executed with the "no" syntax, the administrator password is deleted.
[Note]
If the password was encrypted by the password-encryption command, it is shown in the configuration in the form "enable
password 8 password."
The user cannot enter the password in this form when making configuration settings from the command line.
[Example]
Specify admin1234 as the administrator password.
SWP2(config)#enable password admin1234
Delete the administrator password.
SWP2(config)#no enable password
4.1.3 Encrypt password
[Syntax]
password-encryption switch
no password-encryption
[Parameter]
switch:Set password encryption
Setting valueDescription
enableEncrypt
disableDon't encrypt
[Initial value]
password-encryption disable
[Input mode]
global configuration mode
[Description]
Enables password encryption.
If this is enabled, the password entered by the password command, the enable paassword command, and the username
command are saved in the configuration in an encrypted form.
If this command is executed with the "no" syntax, password encryption is disabled, and the password entered by the password
command, the enable paassword command, and the username command are saved in the configuration as plaintext.
[Note]
If password encryption is changed from disabled to enabled, previously-entered passwords are converted from plaintext to an
encrypted form; however if it is changed from enabled to disabled, previously-encrypted passwords in a configuration file do
not return to plaintext.
[Example]
Enables password encryption.
SWP2(config)#password-encryption enable
Disabled password encryption.
SWP2(config)#no password-encryption
4.1.4 Allow login with special password
[Syntax]
force-password switch
no force-password
30 | Command Reference | Maintenance and operation functions
[Parameter]
switch:Allow login by special password
Setting valueDescription
enableAllow
disableDon't allow
[Initial value]
force-password enable
[Input mode]
global configuration mode
[Description]
Enable login with special password.
If this is enabled, only when logging in from a serial console, it is possible to log in using "w,lXlma" (lowercase W, comma,
lowercase L, uppercase X, and lowercase L, M, and A) instead of the specified user password.
If you login with the special password, you will be in priviledged EXEC mode.
If this command is executed with the "no" syntax, login with the special password is disabled.
word:Single-byte alphanumeric characters and single-byte symbols ( 256 characters or less)
[Initial value]
no banner motd
[Input mode]
global configuration mode
[Description]
Sets the banner that is displayed when logging in to the console.
[Example]
Set the banner display to "Hello World!".
Username:
Password:
SWP2 Rev.2.03.01 (Fri Sep 7 00:00:00 2018)
Copyright (c) 2018 Yamaha Corporation. All Rights Reserved.
SWP2>enable
SWP2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SWP2(config)#banner motd Hello World!
SWP2(config)#exit
SWP2#exit
Username:
Password:
Hello World!
SWP2>enable
SWP2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SWP2(config)#no banner motd
SWP2(config)#exit
SWP2#exit
Username:
Password:
SWP2 Rev.2.03.01 (Fri Sep 7 00:00:00 2018)
Copyright (c) 2018 Yamaha Corporation. All Rights Reserved.
Command Reference | Maintenance and operation functions | 33
SWP2>
4.3 Configuration management
4.3.1 Save running configuration
[Syntax]
copy running-config startup-config
[Input mode]
priviledged EXEC mode
[Description]
Saves the current operating settings (running configuration) as the settings for startup (startup configuration).
[Note]
The save-destination startup configuration is determined by the unit's DIP switch #1 at the time that the unit is started.
The running configuration can also be saved by executing the write command.
This command can be used to save settings only when in USER mode. When in DANTE mode, the backup-config command
can be used to save some of the settings.
[Example]
Save the running configuration.
SWP2#copy running-config startup-config
Succeeded to write configuration
SWP2#
Saves the current operating settings (running configuration) as the settings for startup (startup configuration).
[Note]
The save-destination startup configuration is determined by the unit's DIP switch #1 at the time that the unit is started.
The running configuration can also be saved by executing the copy running-config startup-config command.
This command can be used to save settings only when in USER mode. When in DANTE mode, the backup-config command
can be used to save some of the settings.
[Example]
Save the running configuration.
SWP2#write
Succeeded to write configuration.
SWP2#
4.3.3 Save certain functions to the backup configuration
[Syntax]
backup-config
[Input mode]
priviledged EXEC mode
[Description]
Backup the settings of certain functions.
This applies to the following functions.
•Settings related to IPv4 addresses
Settings related to time zone
•
•Settings related to user account
34 | Command Reference | Maintenance and operation functions
•Settings related to firmware updating
•Settings related to SYSLOG
Settings related to HTTP server functions
•
•Settings related to Telnet server functions
•Settings related to SSH server functions
•Settings related to TFTP server functions
Saves the settings of certain functions to the backup configuration.
If a backup configuration exists when the SWP2 starts in DANTE mode, those settings are restored to the running
configuration.
[Note]
This command can be used only when the configuration mode of the SWP2 is DANTE mode.
[Example]
Save the settings of the applicable functions to the backup configuration.
SWP2#backup-config
Succeeded to write backup configuration
SWP2#
Configration mode: DANTE
VLAN preset: Normal
Serial Baudrate: 9600
Boot time: 2018/10/01 06:14:46 +00:00
Current time: 2018/10/01 06:49:23 +00:00
Elapsed time from boot: 0days 00:34:41
SWP2>
4.5.3 Show currently-executing processes
[Syntax]
show process
[Input mode]
priviledged EXEC mode
[Description]
Shows all currently-executing processes.
[Example]
Show currently-executing processes.
SWP2#show process
Command Reference | Maintenance and operation functions | 39
4.5.4 Show technical support information
[Syntax]
show tech-support
[Input mode]
priviledged EXEC mode
[Description]
Shows a list of the results of executing the following commands useful for technical support.
•show running-config
show startup-config
•
•show environment
•show dipsw
•show inventory
•show boot all
•show logging
•show process
•show users
•show interface
•show frame-counter
•show vlan brief
•show spanning-tree mst detail
•show etherchannel status detail
•show loop-detect
•show mac-address-table
•show l2ms detail
•show qos queue-counters
•show ddm status
•show errdisable
•show auth status
•show auth supplicant
•show error port-led
•show ip interface brief
•show ipv6 interface brief
•show ip route
•show ip route database
•show ipv6 route
•show ipv6 route database
40 | Command Reference | Maintenance and operation functions
•show arp
•show ipv6 neighbors
show ip igmp snooping groups
•
•show ip igmp snooping interface
[Example]
Show technical support information.
SWP2#show tech-support
#
# Information for Yamaha Technical Support
#
If this command is executed with the "no" syntax, UTC is specified.
[Example]
Set the time zone to JST.
SWP2(config)#clock timezone JST
Set the time zone to UTC+9 hours.
Command Reference | Maintenance and operation functions | 41
SWP2(config)#clock timezone +9:00
4.6.3 Show current time
[Syntax]
show clock
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the current time, year, month, and date.
[Example]
Show current time.
SWP2>show clock
Thu Jan 1 00:00:00 JST 2015
4.6.4 Set NTP server
[Syntax]
ntpdate server ipv4ipv4_addr
ntpdate server ipv6ipv6_addr
ntpdate server namefqdn
no ntpdate server
[Keyword]
ipv4:Specify the NTP server by IPv4 address
ipv6:Specify the NTP server by IPv6 address
name:Specify the NTP server by host name
[Parameter]
ipv4_addr:IPv4 address of the NTP server
ipv6_addr:IPv6 address of the NTP server
If you specify an IPv6 link local address, you must also specify the output interface (fe80::X%vlanN
format)
42 | Command Reference | Maintenance and operation functions
fqdn:Host name of the NTP server
As character types, alphabetical characters (uppercase/lowercase), numerals, . (period), and - (hyphen)
can be used
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Registers the address or host name of the NTP server.
Up to two instances of this command can be set.
If this command is executed with the "no" syntax, the NTP server setting is deleted.
If time synchronization is performed with two NTP servers specified, they are queried in the order of NTP server 1 and NTP
server 2 as shown by the show ntpdate command.
The query to NTP server 2 is performed only if synchronization with NTP server 1 fails.
[Example]
Specify 192.168.1.1 as the NTP server.
SWP2(config)#ntpdate server ipv4 192.168.1.1
Specify fe80::2a0:deff:fe11:2233%vlan1 as the NTP server.
SWP2(config)#ntpdate server ipv6 fe80::2a0:deff:fe11:2233%vlan1
Specify ntp.example.com as the NTP server.
SWP2(config)#ntpdate server name ntp.example.com
4.6.5 Synchronize time from NTP server (one-shot update)
[Syntax]
ntpdate oneshot
[Input mode]
priviledged EXEC mode
[Description]
Attempts to obtain time information from the registered NTP server.
This is performed only once when this command is executed.
[Example]
Obtain time information from the NTP server.
SWP2#ntpdate oneshot
4.6.6 Synchronize time from NTP server (update interval)
[Syntax]
ntpdate interval interval-time
no ntpdate interval
[Parameter]
interval-time:<0-24>
Interval (hours) for time synchronization. If this is set to 0 hours, periodic synchronization will not
occur.
[Initial value]
ntpdate interval 1
Command Reference | Maintenance and operation functions | 43
[Input mode]
global configuration mode
[Description]
Specifies the interval (in one-hour units) at which time information is periodically obtained from the registered NTP server.
If this command is executed with the "no" syntax, the setting returns to the default.
When this command is executed, the time is updated immediately, and is subsequently updated at the specified interval.
[Example]
Request the time every two hours.
SWP2(config)#ntpdate interval 2
Disable periodic time synchronization.
SWP2(config)#ntpdate interval 0
4.6.7 Show NTP server time synchronization settings
[Syntax]
show ntpdate
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the settings that are related to time synchronization from an NTP server.
[Example]
Show time synchronization settings. *If the synchronization update interval is one hour
SWP2#show ntpdate
NTP Server 1 : ntp.nict.jp
NTP Server 2 : none
adjust time : Thu Jan 1 09:00:00 2015 + interval 1 hour
sync server : ntp.nict.jp
Show time synchronization settings. *If periodic synchronization is not being performed
SWP2#show ntpdate
NTP Server 1 : ntp.nict.jp
NTP Server 2 : none
adjust time : Thu Jan 1 09:00:00 2015
sync server : ntp.nict.jp
4.7 Terminal settings
4.7.1 Move to line mode (console terminal)
[Syntax]
line con port
[Parameter]
port:0
Serial console port number
[Initial value]
line con 0
[Input mode]
global configuration mode
[Description]
Moves to line mode in order to make console terminal settings.
44 | Command Reference | Maintenance and operation functions
[Note]
To return from line mode to global configuration mode, use the exit command. To return to priviledged EXEC mode, use the
end command.
[Example]
Move to line mode in order to make console terminal settings.
SWP2(config)#line con 0
SWP2(config-line)#
4.7.2 Set VTY port and move to line mode (VTY port)
[Syntax]
line vty port1 [
no line vty port1 [port2]
[Parameter]
port1:<0-7>
port2:<0-7>
port2]
VTY port number
Last VTY port number when specifying a range
[Initial value]
no line vty 0 7
[Input mode]
global configuration mode
[Description]
After enabling the specified VTY ports, moves to line mode for making VTY port settings.
If this command is executed with the "no" syntax, the specified VTY ports are disabled.
If you specify port2, a range of ports is specified; all VTY ports from port1 through port2 are specified. port2 must be a number
greater than port1.
[Note]
The maximum number of simultaneous Telnet client connections depends on the number of VTY ports that are enabled.
To return from line mode to global configuration mode, use the exit command. To return to priviledged EXEC mode, use the
end command.
[Example]
Enable VTY port #0 and then move to line mode.
SWP2(config)#line vty 0
SWP2(config-line)#
4.7.3 Set terminal login timeout
[Syntax]
exec-timeout min [sec]
no exec-timeout
[Parameter]
min:<0-35791>
Timeout time (minutes)
sec:<0-2147483>
Timeout time (seconds)
[Initial value]
exec-timeout 10
[Input mode]
line mode
Command Reference | Maintenance and operation functions | 45
[Description]
Sets the time after which automatic logout occurs if there has been no key input from the console terminal or VTY.
If sec is omitted, 0 is specified. If min and sec are both set to 0, automatic logout does not occur.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
After this command is executed, the setting is applied starting at the next login.
[Example]
Set the console timeout time to five minutes.
SWP2(config)#line con 0
SWP2(config-line)#exec-timeout 5 0
SWP2(config-line)#
4.7.4 Change the number of lines displayed per page for the terminal in use
[Syntax]
terminal length line
terminal no length
[Parameter]
line:<0-512>
Number of lines displayed per page on the terminal
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Changes the number of lines displayed per page for the terminal in use.
If line is set to 0, the display is not paused per page.
If the terminal no length command is executed, the number of lines is set to 24 in the case of a serial console, or to the window
size when connected in the case of VTY.
[Note]
When this command is executed, the change applies immediately.
The result of executing this command takes priority over the setting applied by the service terminal-length command.
[Example]
Change the number of lines displayed per page for the terminal in use to 100 lines.
SWP2>terminal length 100
SWP2>
4.7.5 Set the number of lines displayed per page on the terminal
[Syntax]
service terminal-length line
no service terminal-length
[Parameter]
line:<0-512>
Number of lines displayed per page on the terminal
[Initial value]
no service terminal-length
[Input mode]
global configuration mode
[Description]
Sets the number of lines displayed per page on the terminal.
If line is set to 0, the display is not paused per page.
46 | Command Reference | Maintenance and operation functions
If this command is executed with the "no" syntax, the number of lines is set to 24 in the case of a serial console, or to the
window size when connected in the case of VTY.
[Note]
After this command is executed, the setting is applied starting at the next login.
If the terminal length command is executed, the result of executing the terminal length command takes priority.
[Example]
Change the number of lines displayed per page for the terminal in use to 100 lines.
By setting this command, it will be possible to set and acquire the IP address assigned by the L2MS master to the corresponding
VLAN when operating as an L2MS slave.
If this is executed with the "no" syntax, or if the VLAN is deleted, this command also returns to the default settings.
[Example]
Set VLAN #2 as the management VLAN.
SWP2(config)#management interface vlan2
4.9 SYSLOG
4.9.1 Set log notification destination (SYSLOG server)
[Syntax]
logging host host
no logging host host
[Parameter]
host:A.B.C.D
IPv4 address of the SYSLOG server
:X:X::X:X
IPv6 address of the SYSLOG server
If you specify an IPv6 link local address, you must also specify the output interface (fe80::X%vlanN
format)
[Initial value]
no logging host
[Input mode]
global configuration mode
Command Reference | Maintenance and operation functions | 47
[Description]
Specifies the IP address of the SYSLOG server to which log notifications are sent.
Up to 2 entries can be specified.
If this command is executed with the "no" syntax, the setting returns to its default value, and notifications are not sent.
[Example]
Set the SYSLOG server IPv4 address to 192.168.100.1.
SWP2(config)#logging host 192.168.100.1
Set the SYSLOG server IPv6 address to fe80::2a0:deff:fe11:2233.
Output the debug level log to SYSLOG. If this command is executed with the "no" syntax, the log is not output.
Since enabling debug level will output a large volume of log data, you should enable this only if necessary.
If you use the logging host command to send notifications to the SYSYLOG server, you should ensure that there is sufficient
disk space on the host. With the default setting, this is not output.
[Example]
Output the debug level log to SYSLOG.
SWP2(config)#logging trap debug
4.9.3 Set log output level (informational)
[Syntax]
logging trap informational
no logging trap informational
[Initial value]
logging trap informational
[Input mode]
global configuration mode
[Description]
Outputs the informational level log to SYSLOG.
If this command is executed with the "no" syntax, the log is not output.
[Note]
This can be output to the console by executing the logging stdout info command.
[Example]
Output the informational level log to SYSLOG.
SWP2(config)#logging trap informational
4.9.4 Set log output level (error)
[Syntax]
logging trap error
48 | Command Reference | Maintenance and operation functions
no logging trap error
[Initial value]
logging trap error
[Input mode]
global configuration mode
[Description]
Outputs the error level log to SYSLOG.
If this command is executed with the "no" syntax, the log is not output.
[Example]
Output the error level log to SYSLOG.
SWP2(config)#logging trap error
4.9.5 Set log console output
[Syntax]
logging stdout info
no logging stdout info
[Initial value]
no logging stdout info
[Input mode]
global configuration mode
[Description]
Outputs the informational level SYSLOG to the console.
If this command is executed with the "no" syntax, the log is not output.
[Example]
Output the informational level SYSLOG to the console.
SWP2(config)#logging stdout info
4.9.6 Back up log
[Syntax]
save logging
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Saves all logs accumulated in RAM to Flash ROM.
Logs are accumulated in RAM, and are periodically backed up automatically to Flash ROM, but you can use this command to
back up this data manually.
[Example]
Back up the log.
SWP2#save logging
4.9.7 Clear log
[Syntax]
clear logging
[Input mode]
priviledged EXEC mode
[Description]
Clears the log.
Command Reference | Maintenance and operation functions | 49
[Example]
Clear the log.
SWP2#clear logging
4.9.8 Show log
[Syntax]
show logging [reverse]
[Keyword]
reverse:Shows the log in reverse order
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the log that records the operating status of the unit. Normally the log is shown starting with the oldest events, but the
display order is reversed if "reverse" is specified.
The log contains a maximum of 10,000 events. If this maximum number is exceeded, the oldest events are successively deleted.
In order to save more than the maximum number of logs, you must use the logging host command to forward the log to the
SYSLOG server and save it on the host.
The level of log events to be output can be specified by the logging trap command.
[Note]
Log events are accumulated in RAM, and are automatically backed up to Flash ROM at regular intervals. When the power is
turned off, log entries that are not backed up will not be saved, so you must back them up manually if you want to save the log.
The log is maintained when the reload command or a firmware update etc. cause a reboot.
[Example]
Show the log.
SWP2#show logging
4.10 SNMP
4.10.1 Set host that receives SNMP notifications
[Syntax]
snmp-server host host_addresstype version versioncommunity
snmp-server host host_addresstype version versionsecleveluser
no snmp-server host host_address
no snmp-server host host_addresstype version versioncommunity
no snmp-server host host_addresstype version versionsecleveluser
[Parameter]
host_address:Destination IPv4 address or IPv6 address for notifications
If you specify an IPv6 link local address, you must also specify the output interface (fe80::X%vlanN
format)
type:Notification message
Setting valueDescription
traps
Send notifications as traps (without response
confirmation)
informs
version:SNMP version
Send notifications as inform requests (with
response confirmation). This can be specified if
version is '2c' or '3'.
50 | Command Reference |
community:Community name (maximum 32 characters)
seclevel:Security level requested for authenticating the notification
Maintenance and operation functions
Setting valueDescription
1Use SNMPv1
2cUse SNMPv2c
3Use SNMPv3
This can be specified if version is '1' or '2c'
This can be specified only if version is '3'
Setting valueDescription
noauth
authAuthentication / No encryption (authNoPriv)
privAuthentication / Encryption (authPriv)
user:User name (maximum 32 characters)
This can be specified only if version is '3'
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Set the destination of SNMP notifications.
Up to 8 entries can be specified.
If this command is executed with the "no" syntax, the specified destination hosts are deleted.
[Note]
Note that if this is specified as an IPv6 link local address, and you add a setting that specifies a different transmitting interface
for the same address, the combination of address and transmitting interface is considered to have changed, and all settings of the
old combination are deleted. For example if there are multiple settings that specify "fe80::10%vlan1" and you newly add the
setting "fe80::10%vlan2," all settings for "fe80::10%vlan1" are deleted, and only the settings of the added "fe80::10%vlan2"
will remain.
[Example]
Using SNMPv1, set 192.168.100.11 as the destination for traps. Set "snmptrapname" as the trap community name.
No authentication / No encryption
(noAuthNoPriv)
SWP2(config)#snmp-server host 192.168.100.11 traps version 1 snmptrapname
Using SNMPv2c, set 192.168.100.12 as the destination for notifications. Specify the notification type as informs, and the
notification screen community name as "snmpinformsname".
SWP2(config)#snmp-server host 192.168.100.12 informs version 2c snmpinformsname
Using SNMPv3, set 192.168.10.13 as the destination for notifications. Set the notification type to traps, set the security level for
transmission to priv, and set the user name to "admin1".
SWP2(config)#snmp-server host 192.168.10.13 traps version 3 priv admin1
4.10.2 Set notification type to transmit
[Syntax]
snmp-server enable trap trap_type [trap_type]
no snmp-server enable trap
[Parameter]
trap_type:Type of trap
Command Reference | Maintenance and operation functions | 51
Setting valueDescription
coldstart
warmstartWhen reload command is executed
linkdownAt linkdown
linkupAt linkup
authenticationWhen authentication fails
l2msWhen L2MS slave is detected or lost
errdisableWhen ErrorDisable is detected or canceled
rmonWhen RMON event is executed
termmonitorWhen terminal monitoring is detected
bridge
all
[Initial value]
no snmp-server enable trap
[Input mode]
global configuration mode
[Description]
Specifies the type of trap notification that is sent.
If this command is executed with the "no" syntax, traps are disabled.
[Example]
Enable coldstart trap.
When the power is turned on/off, or when
firmware is updated
When spanning tree root is detected / When
topology is changed
All trap types. All of the above trap types are
specified in the config.
SWP2(config)#snmp-server enable trap coldstart
Disable traps.
SWP2(config)#no snmp-server enable trap
4.10.3 Set system contact
[Syntax]
snmp-server contact contact
no snmp-server contact
[Parameter]
contact:Name (maximum 255 characters) to register as the system contact
[Initial value]
no snmp-server contact
[Input mode]
global configuration mode
[Description]
Sets the MIB variable sysContact.
sysContact is a variable that is typically used to enter the name of the administrator or contact.
If this command is executed with the "no" syntax, the setting is deleted.
52 | Command Reference | Maintenance and operation functions
location:Name to register as the system location (255 characters or less)
[Initial value]
no snmp-server location
[Input mode]
global configuration mode
[Description]
Sets the MIB variable sysLocation.
sysLocation is a variable that is generally used to enter the installed location of the unit.
If this command is executed with the "no" syntax, the setting is deleted.
[Example]
Set the system location as "MainOffice-1F".
SWP2(config)#snmp-server location MainOffice-1F
4.10.5 Set SNMP community
[Syntax]
snmp-server community communityro_rw
no snmp-server community community
[Parameter]
community:Community name (maximum 32 characters)
ro_rw:Access restriction
Setting valueDescription
roRead only
rwWrite allowed
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Sets the SNMP community.
Up to 16 communities can be registered.
If this is executed with the "no" syntax, the specified community is deleted.
[Example]
Set the read-only community name to "public".
SWP2(config)#snmp-server community public ro
Delete the "public" community.
SWP2(config)#no snmp-server community public
4.10.6 Set SNMP view
[Syntax]
snmp-server view viewoidtype
no snmp-server view view
[Parameter]
view:View name (maximum 32 characters)
oid:MIB object ID
type:Type
Setting valueDescription
includeInclude the specified object ID in management
Command Reference | Maintenance and operation functions | 53
exclude
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Sets the SNMP MIB view.
The MIB view is the set of MIB objects to specify when allowing access rights.
Up to 16 MIB views can be registered.
The combination of the oid parameter and the type parameter indicates whether the MIB sub-tree following the specified object
ID is or is not subject to management. Taking the oid parameter and the type parameter together as one entry, you can specify
multiple entries for each MIB view, up to a maximum of 8.
When multiple entries are specified, the type parameter for the specified object ID takes priority for entries that are contained at
a lower level within the specified object ID.
If this command is executed with the "no" syntax, the MIB view is deleted. It is not possible to delete individual entries.
[Example]
Specify the "most" view which shows the internet node (1.3.6.1) and below.
Exclude the specified object ID from
management
SWP2(config)#snmp-server view most 1.3.6.1 include
Specify the "standard" view which shows the mib-2 node (1.3.6.1.2.1) and below.
SWP2(config)#snmp-server view standard 1.3.6.1.2.1 include
4.10.7 Set SNMP group
[Syntax]
snmp-server group groupseclevelreadread_view [writewrite_view]
snmp-server group groupseclevelwritewrite_view [readread_view]
no snmp-server group group
[Keyword]
read:Specify the MIB view that can be read by users belonging to this group
write:Specify the MIB view that can be written by users belonging to this group
[Parameter]
group:Group name (maximum 32 characters)
54 | Command Reference | Maintenance and operation functions
seclevel:Security level required of users belonging to this group
Setting valueDescription
noauth
authAuthentication / No encryption (authNoPriv)
privAuthentication / Encryption (authPriv)
read_view:Name of the MIB view (maximum 32 characters) that can be read by users belonging to this group
write_view:Name of the MIB view (maximum 32 characters) that can be written by users belonging to this group
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Sets the user group.
Access to MIB objects not included in the MIB view specified by this command is prohibited.
The MIB view is defined by the snmp-server view command.
The maximum number of entries is 16.
If this command is executed with the "no" syntax, the specified group setting is deleted.
[Example]
Create the user group "admins," and grant users belonging to the "admins" group full access rights to the "most" view.
No authentication / No encryption
(noAuthNoPriv)
SWP2(config)#snmp-server group admins priv read most write most
Create the user group "users," and grant users belonging to the "users" group read access rights to the "standard" view.
SWP2(config)#snmp-server group users auth read standard
4.10.8 Set SNMP user
[Syntax]
snmp-server user usergroup [authauthauth_path [privprivpriv_path]]
no snmp-server user user
[Keyword]
auth:Set the authentication algorithm
priv:Set the encryption algorithm
[Parameter]
user:User name (maximum 32 characters)
group:Group name (maximum 32 characters)
auth:Authentication algorithm
Setting valueDescription
md5HMAC-MD5-96
shaHMAC-SHA-96
auth_pass:Authentication password (8 or more characters, maximum 32 characters)
Command Reference | Maintenance and operation functions | 55
priv:Encryption algorithm
Setting valueDescription
desDES-CBC
aesAES128-CFB
priv_pass:Encryption password (8 or more characters, maximum 32 characters)
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Specifies a user.
The group name of this command specifies the name defined by the snmp-server group command; according to the security
level specified by the group setting, it specifies the algorithm and password that are used to authenticate and encrypt the content
of communication.
It is not possible to only encrypt without authentication.
The maximum number of entries is 16.
The setting as to whether authentication and encryption are used, the algorithm, and the password, must match the user setting
of the SNMP manager that is the other party.
If this command is executed with the "no" syntax, the setting of the specified user is deleted.
[Example]
Create "admin1" as a user. According to the specified group and the security level prescribed for that group, specify the
protocol (SHA, AES) and password (passwd1234) used for authentication and encryption.
SWP2(config)#snmp-server user admin1 admins auth sha passwd1234 priv aes passwd1234
Create "user1" as a user. According to the specified group and the security level prescribed for that group, specify the protocol
(SHA) and password (passwd5678) used for authentication and encryption.
SWP2(config)#snmp-server user user1 users auth sha passwd5678
4.10.9 Show SNMP community information
[Syntax]
show snmp community
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows SNMP community information.
Shows the community name, and access mode.
[Example]
Show SNMP community information.
SWP2#show snmp community
SNMP Community information
Community Name: public
Access: Read-Only
Community Name: private
Access: Read-Write
56 | Command Reference | Maintenance and operation functions
4.10.10 Show SNMP view settings
[Syntax]
show snmp view
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the contents of the SNMP view settings.
Shows the view name, object ID, and type.
[Example]
Show the contents of the SNMP view settings.
SWP2#show snmp view
SNMP View information
View Name: most
OID: 1.6.1
Type: include
View Name: standard
OID: 1.3.6.1.2.1
Type: include
4.10.11 Show SNMP group settings
[Syntax]
show snmp group
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the contents of the SNMP group settings.
Shows the group name, security level, reading view, and writing view.
[Example]
Show the contents of the SNMP group settings.
SWP2#show snmp group
SNMP Group information
Group Name: admins
Security Level: priv
Read View: most
Write View: most
Group Name: users
Security Level: auth
Read View: standard
Write View: standard
4.10.12 Show SNMP user settings
[Syntax]
show snmp user
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the contents of the SNMP user settings.
Shows the engine ID, user name, affiliated group name, authentication method, and encryption method.
[Example]
Show the contents of the SNMP user settings.
SWP2#show snmp user
SNMP User information
EngineID: 0x8000049e0300a0deaeb90e
User Name: admin1
Group Name: admins
Auth: sha
Priv: aes
User Name: user1
Group Name: users
Auth: sha
Priv: none
4.11 RMON
4.11.1 Set RMON function
[Syntax]
rmon swtich
no rmon
[Parameter]
switch:RMON function operation
Command Reference | Maintenance and operation functions | 57
Setting valueDescription
enableEnable RMON function
disableDisable RMON function
[Initial value]
rmon enable
[Input mode]
global configuration mode
[Description]
Sets the system-wide operation of the RMON function.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
If this command is used to disable the system-wide RMON function, the following RMON group operations are disabled.
•Ethernet statistical information group
•
History group
•Alarm group
•Event group
This command can be set using the private MIB ysrmonSetting (1.3.6.1.4.1.1182.3.7.1).
[Example]
Enable RMON function.
SWP2(config)#rmon enable
Disable RMON function.
SWP2(config)#rmon disable
4.11.2 Set RMON Ethernet statistical information group
[Syntax]
rmon statistics index [ownerowner]
no rmon statistics index
[Parameter]
index:<1 - 65535>
58 | Command Reference |
owner:Name of the Ethernet statistical information group owner (etherStatsOwner)
[Initial value]
none
[Input mode]
interface mode
[Description]
Enables the RMON Ethernet statistical information group setting for the applicable interface.
If this command is set, statistical information is collected, and the RMON MIB's etherStatsTable can be acquired.
This command can be specified a maximum number of eight times for the same interface.
If this command is executed with the "no" syntax, selete the setting and the collected statistical information.
[Note]
To enable the Ethernet statistical information group setting of the RMON function, it is necessary to enable the system-wide
RMON function in addition to this command.
If this command is overwritten, the previously collected statistical information is deleted, and collection is once again started.
If the system-wide RMON function is disabled, collection of statistical information is interrupted. Subsequently, if the systemwide RMON function is enabled, the previously collected statistical data is deleted, and collection is once again started.
[Example]
Enable the RMON Ethernet statistical information group settings for port1.1.
Maintenance and operation functions
Index of the Ethernet statistical information group (etherStatsIndex)
Number of history group items to maintain (historyControlBucketsRequested)
(if omitted : 50)
interval:<1 - 3600>
Interval at which to save history group items (seconds) (historyControlInterval)
(if omitted : 1800)
owner:Name of history group owner (historyControlOwner)
Maximum 127 characters
(if omitted : RMON_SNMP)
interval interval] [owner owner]
[Initial value]
none
[Input mode]
interface mode
[Description]
Enables RMON history group settings for the applicable interface.
Command Reference | Maintenance and operation functions | 59
If this command is set, it will be possible to acquire the RMON MIB's historyControlTable. After setting this command, history
information is collected at the specified interval, and the RMON MIB's etherHistoryTable can be acquired.
This command can be specified a maximum number of eight times for the same interface.
If this command is executed with the "no" syntax, delete the setting and the collected historical information.
[Note]
To enable the history group setting of the RMON function, it is necessary to enable the system-wide RMON function in
addition to this command.
If this command is overwritten, the previously collected historical information is deleted, and collection is once again started.
If the system-wide RMON function is disabled, collection of historical information is interrupted. Subsequently, if the systemwide RMON function is enabled, the previously collected historical data is deleted, and collection is once again started.
[Example]
Enable the RMON historical group settings for port1.1.
SWP2(config)#interface port1.1
SWP2(config-if)#rmon history 1
This can be specified if type is "trap" or "log-trap".
description:Description of event (eventDescription)
Maximum 127 characters
(if omitted : RMON_SNMP)
owner:Name of event group owner (eventOwner)
Maximum 127 characters
(if omitted : RMON_SNMP)
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Enables the RMON event group settings.
If this command is set, it will be possible to acquire the RMON MIB's eventTable. Use the rmon alarm command to set the
event group for this command.
If this command is executed with the "no" syntax, the setting value is deleted.
60 | Command Reference | Maintenance and operation functions
[Note]
To enable the event group setting of the RMON function, it is necessary to enable the system-wide RMON function in addition
to this command.
In order for RMON to send an SNMP trap, you must have made SNMP trap transmission settings.
[Example]
After making SNMP trap settings, enable the RMON event group setting. Set the type of event as "log-trap", and the
community name of the trap as "public".
SWP2(config)#snmp-server host 192.168.100.3 traps version 2c public
SWP2(config)#snmp-server enable trap rmon
SWP2(config)#rmon event 1 log-trap public
You can use a format that specifies either rising_threshold or falling_threshold, not both. In this case, the following values are
used for parameters whose setting is omitted.
•Use only
•falling_threshold : Same value as rising_threshold
•falling_event_index : Same value as rising_event_index
•startup : 1 (Use only upper_threshold)
•Use only falling_threshold
•rising_threshold : Same value as falling_threshold
•rising_event_index : Same value as falling_event_index
•startup : 2 (Use only lower_threshold)
If this command is set, it will be possible to acquire the RMON MIB's alarmTable.
If this command is executed with the "no" syntax, the setting value is deleted.
[Note]
To enable the alarm group setting of the RMON function, it is necessary to enable the system-wide RMON function in addition
to this command.
The MIB object specified in variable is a MIB object of the Ethernet statistical information group. If an Ethernet statistical
information group possessing the applicable index has not been created, this command returns an error.
The Ethernet statistical information group can be created by the rmon statistics command. If the Ethernet statistical
information group being used by this command is deleted, this command is also deleted.
The event index specifies the index that is set by the rmon event command. If the event group being used by this command is
deleted, this command is also deleted.
The rising_threshold value must be a higher value than the falling_threshold value.
If this command is overwritten, the previous sampling data is deleted, and sampling is once again started.
rising_threshold
62 | Command Reference | Maintenance and operation functions
If the system-wide RMON function is disabled, sampling is interrupted. Subsequently, if the system-wide RMON function is
enabled, the previous sampling data is deleted, and sampling is once again started.
[Example]
Enable the RMON alarm group settings with the following conditions.
•The MIB object to be monitored is etherStatsPkts.1.
The sampling interval is 180 seconds.
•
•The sampling type is delta.
•The upper threshold value is 3000, and the event when rising above the upper threshold value is 1.
•The lower threshold value is 2000, and the event when falling below the lower threshold value is 1.
4.15.1 Start HTTP server and change listening port number
[Syntax]
http-server enable [port]
http-server disable
no http-server
[Keyword]
enable:HTTP server is enabled
disable:HTTP server is disabled
[Parameter]
port:<1-65535>
Listening port number of the HTTP server (if omitted: 80)
[Initial value]
http-server disable
[Input mode]
global configuration mode
[Description]
Enables the HTTP server. You can also specify the listening TCP port number.
70 | Command Reference | Maintenance and operation functions
If this command is executed with the "no" syntax, the function is disabled.
[Example]
Start the HTTP server with 8080 as the listening port number.
SWP2(config)#http-server enable 8080
4.15.2 Start secure HTTP server and change listening port number
[Syntax]
http-server secure enable [port]
http-server secure disable
no http-server secure
[Keyword]
enable:Enable the secure HTTP server
disable:Disable the secure HTTP server
[Parameter]
port:<1-65535>
Listening port number of the secure HTTP server (if omitted: 443)
[Initial value]
http-server secure disable
[Input mode]
global configuration mode
[Description]
Enables the secure HTTP server. You can also specify the listening TCP port number.
If this command is executed with the "no" syntax, the function is disabled.
If the secure HTTP server is enabled, encryption is performed in software, meaning that depending on the amount of traffic, the
CPU usage rate will rise.
To avoid a high usage rate, it is desirable to avoid access by multiple users to an automatically updated web page such as the
dashboard or the LAN map.
[Example]
Start the secure HTTP server with 8080 as the listening port number.
SWP2(config)#http-server secure enable 8080
4.15.3 Show HTTP server settings
[Syntax]
show http-server
[Input mode]
priviledged EXEC mode
[Description]
Shows the settings of the HTTP server. The following items are shown.
•HTTP server function enabled/disabled status
HTTP server's listening port number
•
•VLAN interface that is permitted to access the HTTP server
•Filter that controls access to the HTTP server
•Secure HTTP server function enabled/disabled status
SWP2#show ssh-server host key fingerprint
ssh-dss
1024 MD5:XX:XX:a8:b9:51:93:9d:d2:ec:40:1a:43:66:3a:XX:XX
+---[DSA 1024]----+
| .* . |
|=*=+. o |
|E+X+ o |
| o . + = + . |
|.. ..O X . |
|oo=.B.*.o |
| o + S o |
| . o |
| E |
+------[MD5]------+
1024 SHA256:XXXXearwsCXvYTfIKrS6yYSrjMh0fW6W0Bw7aAOXXXX
+---[DSA 1024]----+
| . +E. |
| o o |
| o X S |
| + = * . |
| o . B * . |
| + o . |
| * * + |
|X+.@ +o= |
|@*o.= o. |
+----[SHA256]-----+
78 | Command Reference | Maintenance and operation functions
[Parameter]
interval:<1-2147483647>
Client alive checking interval (seconds, if omitted: 100)
count:<1-2147483647>
Maximum count for client alive checking (if omitted: 3)
[Initial value]
ssh-server client alive disable
[Input mode]
global configuration mode
[Description]
Sets whether to perform client alive checking.
A message requesting a response is sent to the client at intervals of the number of seconds specified by "interval". If there is no
response for a successive number of times specified by "count", the connection with this client is cut and the session is ended.
If this command is executed with the "no" syntax, the setting returns to the default.
4.17 SSH client
4.17.1 Start SSH client
[Syntax]
ssh [user@]
[Parameter]
user:User name used when logging in to the remote host
host:Remote host name, IPv4 address (A.B.C.D), or IPv6 address (X:X::X:X)
port:<1-65535>
[Initial value]
none
[Input mode]
priviledged EXEC mode
[Description]
Connects to the specified host via SSH.
If user is omitted, access the SSH server using the currently logged-in user name.
If user is omitted when logged in as an unnamed user, "root" is used.
[Note]
The escape character is the tilde (~). The escape character is recognized only if it is input at the beginning of the line.
If the escape character is input twice in succession at the beginning of the line, the escape character is used as input to the
server.
If the escape character followed by a period (.) is input, the connection is forcibly closed.
If the escape character followed by a question mark (?) is input, a list of escape inputs is shown.
[Example]
To the host at IPv4 address 192.168.100.1, connect via SSH using user name "uname" and port number 12345.
host [port]
If you specify an IPv6 link local address, you must also specify the output interface (fe80::X%vlanN
format)
Port number to use (if omitted: 22)
SWP2#ssh uname@192.168.100.1 12345
To the host at IPv6 address fe80::2a0:deff:fe11:2233, connect via SSH using user name "uname" and port number 12345.
If this command is executed with the "no" syntax, the SSH client is disabled.
[Example]
Enable the SSH client.
Command Reference | Maintenance and operation functions | 79
SWP2(config)#ssh-client enable
4.17.3 Clear SSH host information
[Syntax]
clear ssh host host
[Parameter]
host:Remote host name, IPv4 address (A.B.C.D), or IPv6 address (X:X::X:X)
[Input mode]
priviledged EXEC mode
[Description]
Delete the public key of the SSH server that is connected as an SSH client.
[Example]
Clear the SSH host information.
SWP2#clear ssh host 192.168.100.1
4.18 LLDP
4.18.1 Enable LLDP function
[Syntax]
lldp run
no lldp run
[Initial value]
none
[Input mode]
global configuration mode
80 | Command Reference | Maintenance and operation functions
[Description]
Enable the LLDP function for the entire system.
If this command is executed with the "no" syntax, disable the LLDP function for the entire system.
[Note]
In order to enable the LLDP function for a port, the following command must be set.
Set the set lldp enable command's type (LLDP agent mode) to "txrx", "txonly", or "rxonly" as necessary.
•lldp run (global configuration mode)
•lldp-agent (interface mode)
•set lldp enabletype (LLDP agent mode)
[Example]
Enable LLDP function transmission and reception for LAN port #1.
SWP2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#set lldp enable txrx
4.18.2 Set system description
[Syntax]
lldp system-description line
no lldp system-description
[Parameter]
line:System description text string (255 characters or less)
[Initial value]
no lldp system-description
[Input mode]
global configuration mode
[Description]
Sets the system description used by the LLDP function.
If this command is executed with the "no" syntax, the setting returns to the default.
By default, this is "model name + firmware revision".
Enables the function by which LLDP frames transmitted by specific Yamaha devices can automatically modify the settings of a
switch.
The functions that can be set are flow control, QoS, IGMP snooping, and EEE.
If this command is executed with the "no" syntax, the setting returns to the default.
This can be set only for a physical interface.
[Note]
In order to use this function, you must use the set lldp enable command to enable reception of LLDP frames.
82 | Command Reference | Maintenance and operation functions
[Example]
Enable automatic setting function by LLDP.
SWP2(config)#lldp auto-setting enable
4.18.6 Set LLDP transmission/reception mode
[Syntax]
set lldp enable type
set lldp disable
no set lldp enable
[Parameter]
type:Transmission/reception mode
Setting valueDescription
rxonlySet receive-only mode
txonlySet transmit-only mode
txrxSet transmit and receive
[Initial value]
set lldp disable
[Input mode]
LLDP agent mode
[Description]
Sets the LLDP frame transmission/reception mode for the applicable interface.
If you specify set lldp disable, LLDP frames are not transmitted or received.
If this command is executed with the "no" syntax, the setting returns to the default.
[Example]
Set the LLDP transmission/reception mode of LAN port #1 to receive-only.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#set lldp enable rxonly
4.18.7 Set type of management address
[Syntax]
set management-address-tlv type
no set management-address-tlv
[Parameter]
type:Type of management address
Setting valueDescription
ip-addressSet IP address as the management address
mac-addressSet MAC address as the management address
[Initial value]
set management-address-tlv ip-address
[Input mode]
LLDP agent mode
[Description]
Sets the type of port management address used by LLDP.
Command Reference | Maintenance and operation functions | 83
If this command is executed with the "no" syntax, the setting returns to the default.
The specified value is set in "LLDP Management Address TLV".
[Example]
Set the MAC address as the type of management address for LAN port #1.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#set management-address mac-address
4.18.8 Set basic management TLVs
[Syntax]
tlv-select basic-mgmt
no tlv-select basic-mgmt
[Initial value]
none
[Input mode]
LLDP agent mode
[Description]
Adds basic management TLVs to transmitted frames.
If this command is executed with the "no" syntax, exclude basic management TLVs from transmitted frames.
This command adds the following TLVs to LLDP frames.
<Basic management TLV>
(1) Port Description TLV : Description of port
(2) System Name TLV : Name of system
(3) System Description TLV : Description of system
(4) System Capabilities TLV : System capabilities
(5) Management Address TLV : Management address of port (MAC address or IP address)
[Example]
Add basic management TLVs to the LLDP frames that are transmitted on LAN port #1.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#tlv-select basic-mgmt
4.18.9 Set IEEE-802.1 TLV
[Syntax]
tlv-select ieee-8021-org-specific
no tlv-select ieee-8021-org-specific
[Initial value]
none
[Input mode]
LLDP agent mode
[Description]
Adds IEEE-802.1 TLVs to transmitted frames.
If this command is executed with the "no" syntax, exclude IEEE-802.1 TLVs from transmitted frames.
This command adds the following TLVs to LLDP frames.
<IEEE-802.1 TLV>
(1) Port VLAN ID : ID of port VLAN
(2) Port and Protocol VLAN ID : ID of protocool VLAN
(3) Protocol Identity : List of supported protocols
(4) Link Aggregation : Link aggregation information
(5) VLAN Name : Name of port VLAN
84 | Command Reference | Maintenance and operation functions
[Example]
Add IEEE-802.1 TLVs to the LLDP frames that are transmitted on LAN port #1.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#tlv-select ieee-8021-org-specific
4.18.10 Set IEEE-802.3 TLV
[Syntax]
tlv-select ieee-8023-org-specific
no tlv-select ieee-8023-org-specific
[Initial value]
none
[Input mode]
LLDP agent mode
[Description]
Adds IEEE-802.3 TLVs to transmitted frames.
If this command is executed with the "no" syntax, exclude IEEE-802.3 TLVs from transmitted frames.
This command adds the following TLVs to LLDP frames.
<IEEE-802.3 TLV>
(1) MAC/PHY Configuration/Status : Auto-negotiation support information
(2) Power Via MDI : PoE information (only for models with PoE function)
(3) Maximum Frame Size : Maximum frame size
[Example]
Add IEEE-802.3 TLVs to the LLDP frames that are transmitted on LAN port #1.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#tlv-select ieee-8023-org-specific
4.18.11 Set LLDP-MED TLV
[Syntax]
tlv-select med
no tlv-select med
[Initial value]
none
[Input mode]
LLDP agent mode
[Description]
If this command is executed with the "no" syntax, exclude LLDP-MED TLVs from transmitted frames.
This command adds the following TLVs to LLDP frames.
<LLDP-MED TLV>
(1) Media Capabilities : Type of LLDP-MED TLV transmitted
(2) Network Policy : Voice VLAN information (Only ports for which voice VLAN is specified)
(3) Location Identification : Location identification information
(4) Extended Power-via-MDI : Extended PoE information (only for models with PoE function)
[Note]
Location Identification TLV is set to a value of "Location".
[Example]
Add LLDP-MED TLVs to the LLDP frames that are transmitted on LAN port #1.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#tlv-select med
4.18.12 Set LLDP frame transmission interval
[Syntax]
set timer msg-tx-interval tx_interval
no set timer msg-tx-interval
[Parameter]
tx_interval:<5-3600>
LLDP frame transmission interval (seconds)
[Initial value]
set timer msg-tx-interval 30
[Input mode]
LLDP agent mode
[Description]
Sets LLDP frame transmission interval.
If this command is executed with the "no" syntax, the setting returns to the default.
[Example]
Set 60 seconds as the LLDP frame transmission interval on LAN port #1.
Command Reference | Maintenance and operation functions | 85
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#set timer msg-tx-interval 60
4.18.13 Set LLDP frame transmission interval for high speed transmission period
[Syntax]
set timer msg-fast-tx fast_tx
no set timer msg-fast-tx
[Parameter]
fast_tx:<1-3600>
LLDP frame transmission interval for high speed transmission period (seconds)
[Initial value]
set timer msg-fast-tx 1
[Input mode]
LLDP agent mode
[Description]
Sets the LLDP frame transmission interval during the high speed transmission period.
If this command is executed with the "no" syntax, the setting returns to the default.
The high speed transmission period is the period immediately after a port's connected device was newly found, and LLDP
frames are transmitted according to the following commands for making high speed transmission period settings.
•set timerx msg-fast-txfast_tx : Sets the transmission interval (seconds) during the high speed transmission period.
•set tx-fast-initvalue : Sets the number of LLDP frames transmitted during the high speed transmission period.
[Example]
Set 2 seconds as the LLDP frame transmission interval during the high speed transmission period on LAN port #1.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#set timer msg-fast-tx 2
86 | Command Reference | Maintenance and operation functions
4.18.14 Set time from LLDP frame transmission stop until re-initialization
[Syntax]
set timer reinit-delay reinit_delay
no set timer reinit-delay
[Parameter]
reinit_delay:<1-10>
Time from LLDP frame transmission stop until re-initialization (seconds)
[Initial value]
set timer reinit-delay 2
[Input mode]
LLDP agent mode
[Description]
Sets the time from when LLDP frame transmission stops until re-initialization occurs.
If this command is executed with the "no" syntax, the setting returns to the default.
[Example]
Set 10 seconds as the time from when LLDP frame transmission stops on LAN port #1 until re-initialization occurs.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#set timer reinit-delay 10
4.18.15 Set multiplier for calculating time to live (TTL) of device information
[Syntax]
set msg-tx-hold value
no set msg-tx-hold
[Parameter]
value:<1-100>
Multiplier for calculating the time to live (TTL) value of device information
[Initial value]
set msg-tx-hold 4
[Input mode]
LLDP agent mode
[Description]
Sets the multiplier for calculating the time to live (TTL) of device information.
If this command is executed with the "no" syntax, the setting returns to the default.
This setting is multiplied with the LLDP frame transmission interval (msg-tx-interval), and then increased by +1 to become the
TTL value (seconds).
The TTL value is set in "Time To Live TLV".
TTL = msg-tx-interval x msg-tx-hold + 1 (seconds)
[Example]
Set 2 as the multiplier used to calculate the time to live (TTL) for device information on LAN port #1.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#set msg-tx-hold 2
4.18.16 Set number of LLDP frames transmitted during the high speed transmission period
[Syntax]
set tx-fast-init value
Command Reference | Maintenance and operation functions | 87
no set tx-fast-init
[Parameter]
value:<1-8>
Number of LLDP frames transmitted during the high speed transmission period
[Initial value]
set tx-fast-init 4
[Input mode]
LLDP agent mode
[Description]
Sets the number of LLDP frames transmitted during the high speed transmission period.
If this command is executed with the "no" syntax, the setting returns to the default.
[Example]
Set 2 as the number of LLDP frames transmitted during the high speed transmission period on LAN port #1.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#set tx-fast-init 2
4.18.17 Set maximum number of connected devices manageable by a port
[Syntax]
set too-many-neighbors limit max_value
no set too-many-neighbors limit
[Parameter]
max_value:<1-1000>
Maximum number of connected devices manageable by a port
[Initial value]
set too-many-neighbors limit 5
[Input mode]
LLDP agent mode
[Description]
Sets the maximum number of connected devices that can be managed by a port.
If this command is executed with the "no" syntax, the setting returns to the default.
If the maximum number of connected device for a port is exceeded, LLDP frames sent from new devices are ignored.
[Note]
When this command is set, the remote device management table is cleared once when the first LLDP frame is received on the
applicable port.
[Example]
Set 10 as the maximum number of connected devices that can be managed by a port on LAN port #1.
SWP2(config)#lldp run
SWP2(config)#interface port1.1
SWP2(config-if)#lldp-agent
SWP2(lldp-agent)#set too-many-neighbors limit 10
4.18.18 Show interface status
[Syntax]
show lldp interface ifname [neighbor]
[Keyword]
neighbor:Shows information for connected devices.
88 | Command Reference | Maintenance and operation functions
[Parameter]
ifname:Interface name of the LAN/SFP+ port
Interface to show
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows LLDP information for the interface specified by ifname.
If "neighbor" is specified, information for the device connected to the interface is shown.
Reinitialisation delayTime from LLDP frame transmission stop until re-
initialization (seconds)
MED EnabledLLDP-MED TLV transmission enable/disable
Device TypeDevice type (fixed as NETWORK_CONNECTIVITY)
Total frames transmittedNumber of LLDP frames transmitted
Total entries agedNumber of devices not received for more than TTL seconds,
and deleted from management table
Total frames receivedNumber of LLDP frames received
Total frames received in errorNumber of LLDP frame reception errors
Total frames discardedNumber of LLDP frames discarded
Total discarded TLVsNumber of TLV discarded
Total unrecognised TLVsNumber of TLVs that could not be recognized
For show lldp interfaceifname neighbor
•Basic management information
Interface NameReceived interface name
System NameSystem name
System DescriptionSystem description
Port DescriptionPort description
System CapabilitiesSystem capabilities
Interface NumberingType of interface number
Interface NumberNumber of interface
OID NumberOID number
Management AddressMAC address os IP addresss
•Mandatory TLV information
CHASSIS ID TYPECHASSIS ID TLV type and value
PORT ID TYPEPORT ID TLV type and value
Command Reference | Maintenance and operation functions | 89
TTL (Time To Live)Time to maintain device information (seconds)
•8021 ORIGIN SPECIFIC TLV information
Port Vlan idID of port VLAN
PP Vlan idID of protocol VLAN
VLAN IDID of port VLAN
VLAN NameName of port VLAN
Remote Protocols AdvertisedList of supported protocols
Remote VID Usage DigesttVID Usage Digestt value
Remote Management VlanName of management VLAN
Link Aggregation StatusLink aggregation enabled/disabled
Link Aggregation Port IDID of link aggregation port
•8023 ORIGIN SPECIFIC TLV information
AutoNego SupportAuto negotiation enabled/disabled
AutoNego CapabilityCommunication methods that can be auto-negotiate
Operational MAU TypeCommunication speed and duplex mode
MDI power supportWhether PoE function is supported
PSE power pairPSE power pair
Power classPoE power supply class
Type/source/priorityPoE power supply type, source, and priority order
PD requested power valuePower requested by PD device (0.1 mW units)
PSE allocated power valuePower that can be supplied by PSE device (0.1 mW units)
Max Frame SizeMaximum frame size
•LLDP-MED TLV information (shown if LLDP-MED TLV is received)
MED CapabilitiesLLDP-MED TLV type list
MED Capabilities Dev TypeLLDP-MED media device type
MED Application TypeApplication type
MED Vlan idID of VLAN
MED Tag/UntagVLAN tagged or untagged
MED L2 PriorityL2 priority order
MED DSCP ValDSCP value priority order
MED Location Data FormatFormat of location data
Latitude ResResolution of latitude (number of significant upper bits)
LatitudeLatitude (34 bits)
Longitude ResResolution of longitude (number of significant upper bits)
LongitudeLongitude (34 bits)
ATAltitude type
1: meter
2: floor of building
Altitude ResResolution of altitude (number of significant upper bits)
AltitudeAltitude (30 bits)
90 | Command Reference | Maintenance and operation functions
DatumGeodetic datum
LCI lengthLength of location information data
WhatPlace of reference location
Country CodeCountry code
CA typeCA (Civic Address) type
MED InventoryInventory information list
Refer to RFC 3825 for details on location information.
[Example]
Show LLDP information for LAN port #1.
0: USA's World Geodetic System (WGS 84)
1: North American Datum (NAD 83)
2: Average historical minimum sea level of North American
Datum (NAD 83)
0: Location of the DHCP server
1: Position of the network element thought to be nearest the
client
2: Location of client
SWP2#show lldp interface port1.1
Agent Mode : Nearest bridge
Enable (tx/rx) : Y/Y
Message fast transmit time : 1
Message transmission interval : 30
Reinitialisation delay : 2
MED Enabled : Y
Device Type : NETWORK_CONNECTIVITY
LLDP Agent traffic statistics
Total frames transmitted : 0
Total entries aged : 0
Total frames received : 0
Total frames received in error : 0
Total frames discarded : 0
Total discarded TLVs : 0
Total unrecognised TLVs : 0
SWP2#
4.18.19 Show information for connected devices of all interfaces
[Syntax]
show lldp neighbors
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows information for connected devices of all interfaces.
(For the display format, refer to the show lldp interfaceifname neighbor command)
[Example]
Show information for connected devices.
SWP2#show lldp neighbors
Interface Name : port1.1
System Name : SWP2-10MMF
System Description : SWP2 Rev.2.03.01 (Fri Sep 7 00:00:00 2018)
Port Description : port1.3
System Capabilities : L2 Switching
Interface Numbering : 2
Interface Number : 5003
OID Number :
Management MAC Address : ac44.f230.0000
Mandatory TLVs
Command Reference | Maintenance and operation functions | 91
CHASSIS ID TYPE
IP ADDRESS : 0.0.0.0
PORT ID TYPE
INTERFACE NAME : port1.3
TTL (Time To Live) : 41
8021 ORIGIN SPECIFIC TLVs
Port Vlan id : 1
PP Vlan id : 0
Remote VLANs Configured
VLAN ID : 1
VLAN Name : default
Remote Protocols Advertised :
Multiple Spanning Tree Protocol
Remote VID Usage Digestt : 0
Remote Management Vlan : 0
Link Aggregation Status : Disabled
Link Aggregation Port ID : 0
8023 ORIGIN SPECIFIC TLVs
AutoNego Support : Supported Enabled
AutoNego Capability : 27649
Operational MAU Type : 30
Power via MDI Capability (raw data)
MDI power support : 0x0
PSE power pair : 0x0
Power class : 0x0
Type/source/priority : 0x0
PD requested power value : 0x0
PSE allocated power value : 0x0
Max Frame Size : 1522
LLDP-MED TLVs
MED Capabilities :
Capabilities
Network Policy
MED Capabilities Dev Type : End Point Class-3
MED Application Type : Reserved
MED Vlan id : 0
MED Tag/Untag : Untagged
MED L2 Priority : 0
MED DSCP Val : 0
MED Location Data Format : ECS ELIN
Latitude Res : 0
Latitude : 0
Longitude Res : 0
Longitude : 0
AT : 0
Altitude Res : 0
Altitude : 0
Datum : 0
LCI length : 0
What : 0
Country Code : 0
CA type : 0
MED Inventory
SWP2#
4.18.20 Clear LLDP frame counters
[Syntax]
clear lldp counters
[Input mode]
priviledged EXEC mode
[Description]
Clear the LLDP frame counter of all ports.
[Example]
Clear the LLDP frame counter.
SWP2>clear lldp counters
92 | Command Reference | Maintenance and operation functions
4.19 L2MS (Layer 2 management service) settings
4.19.1 Set L2MS control frame transmit/receive
[Syntax]
l2ms filter enable
l2ms filter disable
no l2ms filter
[Keyword]
enable:L2MS control frames cannot be transmitted or received
disable:L2MS control frames can be transmitted or received
[Initial value]
l2ms filter disable
[Input mode]
interface mode
[Description]
Prevents L2MS control frames from being transmitted or received.
If this command is executed with the "no" syntax, L2MS control frames can be transmitted and received.
[Note]
This command cannot be specified for the following interfaces.
•VLAN interface
A physical interface inside a logical interface
•
A physical interface inside a logical interface operates according to the setting of this command on the interface inside which it
exists. If the physical interface is inside the logical interface, the setting of the physical interface returns to the default.
Regardless of the setting of this command, L2MS control frames might not be transmitted or received if any of the following
conditions exist.
•The interface is in the Blocking status due to STP or the loop detection function
•The switchport trunk native vlan none command has been specified
•It is inside a logical interface
[Example]
Prevent port1.5 from transmitting or receiving L2MS control frames.
Whether managed by the L2MS master
MAC address of L2MS master (if managed)
•
[Note]
Information is not shown if L2MS is not operating.
Specifying "detail" is valid only if L2MS is operating as master.
[Example]
If operating as a slave, L2MS information is shown.
SWP2>show l2ms
Role : Slave
Status : Managed by Master (ac44.f23d.0bb9)
4.20 Snapshot
4.20.1 Set snapshot function
[Syntax]
snapshot enable
snapshot disable
no snapshot
[Keyword]
enable:Snapshot function is enabled
disable:Snapshot function is disable
[Initial value]
snapshot disable
[Input mode]
global configuration mode
[Description]
Enables the snapshot function.
If this command is executed with the "no" syntax, disables the snapshot function.
[Note]
This command is valid only if L2MS is operating as master.
[Example]
Enable the snapshot function.
Command Reference | Maintenance and operation functions | 93
SWP2(config)#snapshot enable
4.20.2 Set whether to include terminals in the snapshot comparison
[Syntax]
snapshot trap terminal [
no snapshot trap terminal
[Keyword]
except-wireless:Information for wirelessly connected terminals is excluded from the snapshot comparison.
[Initial value]
no snapshot trap terminal
[Input mode]
global configuration mode
[Description]
Terminal information is included in the snapshot comparison.
If the except-wireless option is specified, information for terminals that are wirelessly connected below a wireless access point
are excluded from the snapshot comparison.
If this command is executed with the "no" syntax, terminal information is excluded from the snapshot comparison.
[Note]
This command is valid only when operating as the master and the terminal-watch enable command and snapshot enable
command have also been set.
[Example]
Include terminal information in the snapshot comparison.
except-wireless]
SWP2(config)#snapshot trap terminal
94 | Command Reference |
4.20.3 Create snapshot
[Syntax]
snapshot save [after-update]
[Keyword]
after-update:After updating the network's connection state, save it as a snapshot
[Input mode]
priviledged EXEC mode
[Description]
Saves a snapshot file that is the base for the LAN map's snapshot function.
If the after-update option is not included, the network connection state currently maintained by the master is saved as the
snapshot file.
If the after-update option is included, the network connection state information is updated to the latest information, and then
saved as the snapshot file.
[Note]
If the after-update option is included, the network connection state information is updated to the latest information, but
depending on the configuration of the network, it might take some time for this update to be completed.
[Example]
After updating the network's connection state, save the snapshot file.
Maintenance and operation functions
SWP2#snapshot save after-update
4.20.4 Delete snapshot
[Syntax]
snapshot delete
[Input mode]
priviledged EXEC mode
[Description]
Deletes the snapshot file.
[Example]
Delete the snapshot file.
SWP2#snapshot delete
4.21 Firmware update
4.21.1 Set firmware update site
[Syntax]
firmware-update url url
no firmware-update url
[Parameter]
url:Single-byte alphanumeric characters and single-byte symbols (255 characters or less)
Specify the download source URL used when updating the firmware from a firmware file located on a web server.
The input syntax is "http://server IP address or hostname/pathname".
Command Reference | Maintenance and operation functions | 95
If the server's port number is other than 80, you must specify this within the URL, using the syntax "http://server IP address or
hostname:port number/path name".
[Example]
Specify http://192.168.100.1/swp2.bin as the firmware download URL.
Compares the firmware file located on the web server with the revision of the currently-running firmware, and executes the
update if rewriting is possible.
If firmware of a revision that can be rewritten exists, you will be asked for confirmation; enter "Y" if you want to update, or
enter "N" if you don't want to update.
If you specify "no-confirm," the update is executed without asking you for confirmation.
[Note]
You can use the firmware-update url command to change the download source URL.
If you execute the firmware-update revision-down enable command, it will be possible to downgrade to an older revision.
[Example]
Update the firmware using a firmware file located on a web server.
SWP2#firmware-update execute
Found the new revision firmware
Current Revision: Rev.2.03.01
New Revision: Rev.2.03.03
Downloading...
Update to this firmware? (Y/N)y
Updating...
Finish
SWP2#
4.21.3 Set firmware download timeout duration
[Syntax]
firmware-update timeout time
no firmware-update timeout
[Parameter]
time:<100-86400>
Timeout time (seconds)
[Initial value]
firmware-update timeout 300
[Input mode]
global configuration mode
[Description]
Specifies the timeout duration when downloading firmware from a web server.
If this command is executed with the "no" syntax, the setting returns to the default.
[Example]
Set the firmware download timeout duration to 120 seconds.
When using a firmware file from a web server to update the firmware, this allows the firmware to be changed to a revision that
is older than the current revision.
If this is executed with the "no" syntax, revision-down is not allowed.
hostname:Single-byte alphanumeric characters and single-byte symbols (63characters or less)
Host name
[Initial value]
hostname SWP2
[Input mode]
global configuration mode
[Description]
Specifies the host name.
The host name specified by this command is used as the command prompt. If SNMP access is possible, this is used as the value
of the MIB variable sysName.
If this command is executed with the "no" syntax, the setting returns to the default value.
[Example]
Set the host name as "yamaha."
SWP2(config)#hostname yamaha
yamaha(config)#
4.22.2 Reload system
[Syntax]
reload
[Input mode]
priviledged EXEC mode
[Description]
Reboots the system.
[Note]
If the currently-running settings (running configuration) have been changed from the settings at the time of boot (startup
configuration), reboot will discard those changes. Therefore, if necessary, you should execute the copy running-config
startup-config command or the write command before you execute the reload command.
[Example]
Reboot the system.
SWP2#reload
reboot system? (y/n): y
98 | Command Reference |
4.22.3 Initialize settings
[Syntax]
cold start
[Input mode]
priviledged EXEC mode
[Description]
Reboots with the factory settings. SYSLOG is also initialized.
[Note]
You must enter the administrator password when executing this command.
[Example]
Initialize the settings.
SWP2#cold start
Password:
4.22.4 Set default LED mode
[Syntax]
led-mode default mode
no led-mode default
[Parameter]
Maintenance and operation functions
mode:Default LED mode
Setting valueDescription
link-actLINK/ACT mode
statusSTATUS mode
vlanVLAN mode
offOFF mode
[Initial value]
led-mode default link-act
[Input mode]
global configuration mode
[Description]
Set the default LED mode.
When you execute this command, the LEDs are lit in the specified mode. The LEDs are lit in the specified mode even when a
loop is detected in STATUS mode and the loop status has been resolved.
If this command is executed with the "no" syntax, the setting returns to the default.
[Example]
Set the default LED mode to OFF mode.
SWP2(config)#led-mode default off
4.22.5 Show LED mode
[Syntax]
show led-mode
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the LED mode setting and status.
The following items are shown.
•Default LED mode setting
•Current LED mode status
[Example]
Show the LED mode setting and status.
SWP2>show led-mode
default mode : off
current mode : link-act
4.22.6 Show DIP switches status
[Syntax]
show dipsw
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Show status of the DIP switches at startup and the current status.
[Example]
Show the status of the DIP switches.
SWP2>show dipsw
DIPSW SW1 SW2 SW3 SW4
--------------------------------------
Startup status : ON OFF OFF ON
Current status : ON OFF OFF ON
Command Reference | Maintenance and operation functions | 99
4.22.7 Show port error LED status
[Syntax]
show error port-led
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the ID of ports that are generating an error, and the following error causes.
ItemDescription
loop-detected (blocking)Detected a loop, and are currently blocking
loop-detected (shutdown)Detected a loop, and are currently shutdown
sfp rx-power error (low)SFP optical reception level is below the normal range
sfp rx-power error (high)SFP optical reception level is above the normal range
[Example]
Show the port error status.
SWP2>show error port-led
ID error
-----------------------------------------
port1.1 loop-detected (blocking)
100 | Command Reference |
Interface control
Chapter 5
Interface control
5.1 Interface basic settings
5.1.1 Set description
[Syntax]
description line
no description
[Parameter]
line:Single-byte alphanumeric characters and single-byte symbols (80characters or less)
[Initial value]
no description
[Input mode]
interface mode
[Description]
Specifies a description of the applicable interface. If this command is executed with the "no" syntax, the description is deleted.
[Example]
Specify a description for LAN port #1.
Description of the applicable interface
SWP2(config)#interface port1.1
SWP2(config-if)#description Connected to rtx1210-router
5.1.2 Shutdown
[Syntax]
shutdown
no shutdown
[Initial value]
no shutdown
[Input mode]
interface mode
[Description]
Shut down the applicable interface so that it is not used.
An interface for which this command is specified will not link-up even if it is connected.
If this command is executed with the "no" syntax, the applicable interface can be used.
[Note]
This command can be specified only for LAN/SFP+ port and logical interface.
If this command is applied to logical interface, the settings of all LAN/SFP+ port units belonging to that interface are changed.