1.4 Input syntax for commands starting with the word "no"............................................................................14
Chapter 2: How to use the commands.................................................................15
2.1 Operation via console.................................................................................................................................15
2.1.1 Access from a console terminal...................................................................................................15
2.1.2 Access from a TELNET client....................................................................................................15
2.1.3 Access from an SSH client..........................................................................................................16
4.1.4 Allow login with special password..............................................................................................27
4.2 User account maintenance..........................................................................................................................28
4.2.1 Set user password........................................................................................................................28
4.2.2 Show login user information.......................................................................................................29
4.2.3 Set banner....................................................................................................................................30
4.4.3 Set SD card boot..........................................................................................................................36
4.4.4 Show the SD card boot setting information................................................................................36
4.5 Show unit information................................................................................................................................37
4.5.1 Show inventory information........................................................................................................37
4.5.2 Show operating information........................................................................................................37
4.5.3 Show currently-executing processes...........................................................................................38
4.5.4 Show technical support information............................................................................................38
4.5.5 Save 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
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.........................................................................42
5.2 Link aggregation.......................................................................................................................................123
5.3 Port authentication....................................................................................................................................133
5.3.27 Show RADIUS server setting information..............................................................................147
5.3.28 Settings for redirect destination URL following successful Web authentication....................147
5.3.29 Clear the authentication state...................................................................................................148
5.3.30 Setting the time for clearing the authentication state (system)................................................148
5.3.31 Setting the time for clearing the authentication state (interface).............................................148
5.3.32 Locate the file for customizing the Web authentication screen...............................................149
5.3.33 Delete the file for customizing the Web authentication screen...............................................150
5.4 Port security..............................................................................................................................................150
5.4.1 Set port security function...........................................................................................................150
5.4.2 Register permitted MAC addresses...........................................................................................151
5.4.3 Set operations used for security violations................................................................................151
5.4.4 Show port security information.................................................................................................151
7.9 Set DNS lookup function..........................................................................................................................205
7.10 Set DNS server list.................................................................................................................................206
7.11 Set default domain name........................................................................................................................206
7.12 Set search domain list.............................................................................................................................207
7.13 Show DNS client information................................................................................................................207
Chapter 8: IP multicast control.........................................................................209
8.1 IP multicast basic settings........................................................................................................................209
8.1.1 Set processing method for unknown multicast frames..............................................................209
9.2 QoS (Quality of Service)..........................................................................................................................226
•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.
Command Reference | How to read the command reference | 13
Chapter 1
How to read the command reference
1.1 Applicable firmware revision
This command reference applies to firmware Yamaha Intelligent L2 Switch SWR2311P of Rev.2.02.09.
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.
http://www.rtpro.yamaha.co.jp
1.2 How to read the command reference
This command reference describes the commands that you enter from the console of the Yamaha Intelligent L2 Switch
SWR2311P.
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 SWR2311P.
Interface typePrefixDescriptionExamples
Used to specify a physical
LAN/SFP portport
VLAN interfacevlan
static logical interfacesa
LACP logical interfacepo
port. Specify "stack ID" + "."
+ "port number" after the port
number. * The SWR2311P is
fixed as stack ID=1.
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".
When specifying LAN port
#1 on LAN port stack #1 :
port1.1
To specify VLAN #1:vlan1
o specify static logical
interface #1: sa1
To specify LACP logical
interface #2: po2
14 | Command Reference |
How to read the command reference
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.
Command Reference | How to use the commands | 15
Chapter 2
How to use the commands
The SWR2311P 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
•File copy via SD card
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 SWR2311P, in a single operation.
2.1 Operation via console
2.1.1 Access from a console terminal
Use a USB cable or RJ-45/DB-9 console cable (YRC-RJ45) when making settings from a terminal that is connected to the
CONSOLE port of SWR2311P. For the USB cable connected to the mini-USB CONSOLE port, use a USB cable that supports
data communication between a USB Type A connector and a mini-USB Type B (5-pin) connector. Cables for recharging only
cannot be used. 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 SWR2311P 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 SWR2311P 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 SWR2311P 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
SWR2311P. The VTY ports of the SWR2311P 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))
16 | Command Reference |
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 SWR2311P, but since login session and ID assignments depend on
the connection timing, you should normally make the same settings for all VTY ports.
How to use the commands
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 SWR2311P 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 SWR2311P 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 SWR2311P 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 SWR2311P 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 SWR2311P. The
VTY ports of the SWR2311P 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 SWR2311P, 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 SWR2311P 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 Reference | How to use the commands | 17
Setting itemContent of setting
command
Setting 1) is a function that temporarily applies to the user
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 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 SWR2311P 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 SWR2311P 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 SWR2311P 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 SWR2311P 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.
•The reception port number cannot be changed.
•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.
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
•If an administrator password is set on the SWR2311P, you must specify the administrator password after the remote path in
the format "/PASSWORD".
18 | Command Reference |
•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.
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 SWR2311P 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
SWR2311P Rev.2.02.06 (Tue Mar 13 08:41:39 2018)
Copyright (c) 2018 Yamaha Corporation. All Rights Reserved.
How to use the commands
SWR2311P>
2.4 Command input mode
2.4.1 Command input mode basics
In order to change the settings of the SWR2311P 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.
Command Reference | How to use the commands | 19
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 SWR2311P, 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 "SWR2311P". This
indication can be changed by using the hostname command to specify the host name. In cases where multiple SWR2311P 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 SWR2311P 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
•
SWR2311P(config)#do show running-config
•
Entry in abbreviated form
SWR2311P(config)#do sh ru
20 | Command Reference |
How to use the commands
2.5 Keyboard operations when using the console
2.5.1 Basic operations for console input
The SWR2311P allows the following operations in the command line.
Moving the cursor
•
Keyboard operationDescription and notes
→Move right one character
←Move left one character
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.
SWR2311P#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
Command Reference | How to use the commands | 21
SWR2311P#show vlan
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
•
SWR2311P#con "press the <Tab>key"
↓
SWR2311P#configure
•
Keyword candidate list display
SWR2311P(config)#vlan "press the <Tab> key"
access-map database filter
SWR2311P(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)
SWR2311P# 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 SWR2311P provides the following three modifiers for the show command.
ModifiersDescription
include
grep
exclude
Modifiers can be used only one at a time. You cannot specify more than one modifier.
(Example) Using show running-config to view information that includes VLAN #1 (vlan1).
(Example) Using show spanning-tree to view information that includes Role.
SWR2311P# show spanning-tree | include Role
% po1: Port Number 505 - Ifindex 4601 - Port Id 0x81f9 - Role Disabled - State
Output only the lines that include the specified character
string
Output only the lines that do not include the specified
character string
22 | Command Reference |
Discarding
% port1.1: Port Number 905 - Ifindex 5001 - Port Id 0x8389 - Role Disabled 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
How to use the commands
Chapter 3
Configuration
3.1 Manage setting values
The SWR2311P uses the following configurations to manage its settings.
Command Reference | Configuration | 23
Types of configurationDescription
Running configuration (running-config)
Startup configuration (startup-config)
Default configuration (default-config)
The start-up flow for the SWR2311P system is as follows.
1. The setting value of the startup-config select command is referenced to determine the startup config that will be used.
If sd is selected by the startup-config select command, and an SD card is not inserted, startup config #0 is selected.
2. If the startup configuration that was selected exists, the data in question is deployed to RAM as a running configuration.
If the startup configuration file that was selected according to the setting values in the startup-config select command does
not exist in ROM, the default configuration is deployed to RAM.
If commands etc. are used to modify the settings while the SWR2311P is running, the modified settings are immediately
reflected in the running configuration. After modifying the running configuration, executing the write or copy command will
update the startup 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.
These are the saved setting values. This
manages 5 configurations in ROM and 1
configuration on an SD card. The data in
ROM to be used is determined using the
startup-config select command.
The single configuration on the SD card
is managed in the "\swr2311p\startupconfig" folder.
Default setting values. Managed in
ROM.
User operations that can be
performed
Note / Save to startup configuration
Note / Delete / Copy
No operations possible
3.2 Default setting values
The default setting values for the SWR2311P are shown in the table below.
LLDP agentTransmit/Receive modetransmit and receive
•Settings for the default VLAN (vlan1)
IPv4 Address : DHCP cliant
•
•IGMP Snooping: Enable
•Querier : Disable
•Fast-Leave : Disable
•Check TTL : Enable
Flow control (IEEE 802.3x)disabled
Storm controldisabled
Power supply operationenabled
Power supply prioritylow
26 | 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.
SWR2311P(config)#password user1234
Delete the unnamed user password.
SWR2311P(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 | 27
[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.
SWR2311P(config)#enable password admin1234
Delete the administrator password.
SWR2311P(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.
SWR2311P(config)#password-encryption enable
Disabled password encryption.
SWR2311P(config)#no password-encryption
4.1.4 Allow login with special password
[Syntax]
force-password switch
no force-password
28 | Command Reference |
[Parameter]
switch:Allow login by special password
[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:
SWR2311P Rev.2.02.06 (Tue Mar 13 08:41:39 2018)
Copyright (c) 2018 Yamaha Corporation. All Rights Reserved.
SWR2311P>enable
SWR2311P#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SWR2311P(config)#banner motd Hello World!
SWR2311P(config)#exit
SWR2311P#exit
Username:
Password:
Hello World!
SWR2311P>enable
SWR2311P#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SWR2311P(config)#no banner motd
SWR2311P(config)#exit
SWR2311P#exit
Username:
Password:
SWR2311P Rev.2.02.06 (Tue Mar 13 08:41:39 2018)
Copyright (c) 2018 Yamaha Corporation. All Rights Reserved.
Command Reference | Maintenance and operation functions | 31
SWR2311P>
4.3 Configuration management
4.3.1 Save running configuration
[Syntax]
copy running-config startup-config
[Parameter]
config_num:Configuration number
Setting valueDescription
<0-4>Startup configuration #0-#4
sdStartup config in SD card
[Input mode]
priviledged EXEC mode
[Description]
Saves the current operating settings (running configuration) as the settings for startup (startup configuration).
If config_num is omitted, it is saved in the startup config that was used for the current startup.
[Note]
The running configuration can also be saved by executing the write command.
[Example]
Save the running configuration.
[config_num]
SWR2311P#copy running-config startup-config
Succeeded to write configuration
SWR2311P#
Shows the currently-operating settings (running configuration).
If section is not specified, all settings are shown.
[Example]
Show the running configuration.
SWR2311P#show running-config
!
interface port1.1
switchport
...
!
line con 0
line vty 0 7
!
end
SWR2311P#
4.3.4 Show startup configuration
[Syntax]
show startup-config [config_num]
[Parameter]
config_num:Configuration number
Command Reference | Maintenance and operation functions | 33
Setting valueDescription
<0-4>Startup configuration #0-#4
sdStartup config in SD card
[Input mode]
priviledged EXEC mode
[Description]
Shows the startup settings (startup configuration).
If config_num is omitted, the startup config that will be used for the next startup is shown.
[Example]
Show the startup configuration on the next startup.
SWR2311P#show startup-config
!
! Last Modified: 00:00:00 JST Mon Jan 01 2018
!
interface port1.1
switchport
switchport mode access
no shutdown
!
...
!
interface vlan1
no switchport
ip address 192.168.100.240/24
no shutdown
!
clock timezone JST
!
http-server enable
http-proxy enable
!
telnet-server enable
!
line con 0
line vty 0 7
!
end
SWR2311P#
4.3.5 Erase startup configuration
[Syntax]
erase startup-config [config_num]
[Parameter]
config_num:Configuration number
Setting valueDescription
<0-4>Startup configuration #0-#4
sdStartup config in SD card
[Input mode]
priviledged EXEC mode
[Description]
Erase the settings used at startup (startup config) and the information associated with them.
If config_num is omitted, the startup config that was used for the current startup is erased.
34 | Command Reference |
[Example]
Erase the startup configuration.
SWR2311P#erase startup-config
Succeeded to erase configuration.
SWR2311P#
Maintenance and operation functions
4.3.6 Copy startup configuration
[Syntax]
copy startup-config src_config_numdst_config_num
[Parameter]
src_config_num:Copy source configuration number
dst_config_num:Copy destination configuration number
Setting valueDescription
<0-4>Startup configuration #0-#4
sdStartup config in SD card
Setting valueDescription
<0-4>Startup configuration #0-#4
sdStartup config in SD card
[Input mode]
priviledged EXEC mode
[Description]
Copy the startup settings (startup config) and the information associated with them.
[Example]
Copy startup config #0 to startup config #1.
SWR2311P#copy startup-config 0 1
Succeeded to copy configuration
SWR2311P#
4.3.7 Set description for startup config
[Syntax]
startup-config description config_numline
no startup-config description config_num
[Parameter]
config_num:<0-4>
Configuration number
line:Single-byte alphanumeric characters and single-byte symbols (63 characters or less)
Description for applicable startup config
[Input mode]
priviledged EXEC mode
[Description]
Specify a description for the applicable startup config.
If this command is executed with the "no" syntax, the description is deleted.
The description is shown at the beginning of the execution result of the show startup-config command.
If this command is executed with the "no" syntax, UTC is specified.
[Example]
Set the time zone to JST.
SWR2311P(config)#clock timezone JST
Set the time zone to UTC+9 hours.
SWR2311P(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.
SWR2311P>show clock
Thu Jan 1 00:00:00 JST 2015
4.6.4 Set NTP server
Command Reference | Maintenance and operation functions | 41
[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)
fqdn:Host name of the NTP server
[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.
SWR2311P(config)#ntpdate server ipv4 192.168.1.1
42 | Command Reference |
Specify fe80::2a0:deff:fe11:2233%vlan1 as the NTP server.
SWR2311P(config)#ntpdate server ipv6 fe80::2a0:deff:fe11:2233%vlan1
Specify ntp.example.com as the NTP server.
SWR2311P(config)#ntpdate server name ntp.example.com
Maintenance and operation functions
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.
SWR2311P#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
[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.
SWR2311P(config)#ntpdate interval 2
Disable periodic time synchronization.
SWR2311P(config)#ntpdate interval 0
4.6.7 Show NTP server time synchronization settings
[Syntax]
show ntpdate
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
Command Reference | Maintenance and operation functions | 43
[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
SWR2311P#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
SWR2311P#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.
[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.
SWR2311P(config)#line con 0
SWR2311P(config-line)#
4.7.2 Set VTY port and move to line mode (VTY port)
[Syntax]
line vty port1 [port2]
no line vty port1 [port2]
[Parameter]
port1:<0-7>
VTY port number
port2:<0-7>
Last VTY port number when specifying a range
[Initial value]
no line vty 0 7
44 | Command Reference |
[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
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.
SWR2311P(config)#line con 0
SWR2311P(config-line)#exec-timeout 5 0
SWR2311P(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
Command Reference | Maintenance and operation functions | 45
[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.
SWR2311P>terminal length 100
SWR2311P>
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.
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.
SWR2311P(config)#management interface vlan2
Maintenance and operation functions
4.9 SYSLOG
4.9.1 Set log notification destination (SYSLOG server)
[Syntax]
logging host host
no logging 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
[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.
SWR2311P(config)#logging host 192.168.100.1
Set the SYSLOG server IPv6 address to fe80::2a0:deff:fe11:2233.
Command Reference | Maintenance and operation functions | 47
[Input mode]
global configuration mode
[Description]
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.
SWR2311P(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.
SWR2311P(config)#logging trap informational
4.9.4 Set log output level (error)
[Syntax]
logging trap error
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.
SWR2311P(config)#logging trap error
4.9.5 Set log console output
[Syntax]
logging stdout info
no logging stdout info
48 | Command Reference |
[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.
SWR2311P(config)#logging stdout info
Maintenance and operation functions
4.9.6 Set log output in event units
[Syntax]
logging event type
no logging type
[Parameter]
type:Type of events specified for log output
Setting valueDescription
lan-mapLAN map
[Initial value]
no logging event lan-map
[Input mode]
global configuration mode
[Description]
Enables log output for the specified type of events.
If this command is executed with the "no" syntax, the log is not output.
[Example]
Enable log output for LAN map.
SWR2311P(config)#logging event lan-map
4.9.7 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.
If the logging backup sd enable command has been set and an SD card is inserted, the log data is saved to flash ROM and also
simultaneously saved to the SD card with the following file name.
\swr2311p\log\YYYYMMDD_syslog.txt
YYYYMMDD … Year month day that the save logging command was executed
[Example]
Back up the log.
Command Reference | Maintenance and operation functions | 49
SWR2311P#save logging
4.9.8 Set log backup to SD card
[Syntax]
logging bakcup sd enable
logging bakcup sd disable
no logging bakcup sd
[Keyword]
enable:Enable log backup to SD card
disable:Disable log backup to SD card
[Initial value]
logging backup sd disable
[Input mode]
global configuration mode
[Description]
Enables or disables backup of the log to the SD card.
If this is enabled, the log is saved on the SD card when you execute the save logging command.
If this command is executed with the "no" syntax, the setting returns to the default.
This is saved on the SD card with the following file name.
\swr2311p\log\YYYYMMDD_syslog.txt
YYYYMMDD … Year month day that the save logging command was executed
[Example]
Enable log backup to SD card.
SWR2311P(config)#logging backup sd enable
4.9.9 Clear log
[Syntax]
clear logging
[Input mode]
priviledged EXEC mode
[Description]
Clears the log.
[Example]
Clear the log.
SWR2311P#clear logging
4.9.10 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.
50 | Command Reference |
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.
SWR2311P#show logging
Maintenance and operation functions
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
informs
version:SNMP version
Setting valueDescription
1Use SNMPv1
2cUse SNMPv2c
3Use SNMPv3
community:Community name (maximum 32 characters)
Send notifications as traps (without response
confirmation)
Send notifications as inform requests (with
response confirmation). This can be specified if
version is '2c' or '3'.
This can be specified if version is '1' or '2c'
seclevel:Security level requested for authenticating the notification
This can be specified only if version is '3'
Setting valueDescription
noauth
authAuthentication / No encryption (authNoPriv)
No authentication / No encryption
(noAuthNoPriv)
Command Reference | Maintenance and operation functions | 51
Setting valueDescription
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.
SWR2311P(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".
SWR2311P(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".
SWR2311P(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
Setting valueDescription
When the power is turned on/off, when firmware
coldstart
is updated, or when the cold start command is
executed
warmstartAt restart
linkdownAt linkdown
linkupAt linkup
authenticationWhen authentication fails
l2msWhen L2MS slave is detected or lost
errdisableWhen ErrorDisable is detected or canceled
52 | Command Reference |
[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.
If this is executed with the "no" syntax, the specified community is deleted.
[Example]
Set the read-only community name to "public".
SWR2311P(config)#snmp-server community public ro
Delete the "public" community.
SWR2311P(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
54 | Command Reference |
Maintenance and operation functions
Setting valueDescription
includeInclude the specified object ID in management
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
SWR2311P(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.
SWR2311P(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)
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
No authentication / No encryption
(noAuthNoPriv)
Command Reference | Maintenance and operation functions | 55
[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.
SWR2311P(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.
SWR2311P(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)
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
56 | Command Reference |
[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.
SWR2311P(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.
Maintenance and operation functions
SWR2311P(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.
SWR2311P#show snmp community
SNMP Community information
Community Name: public
Access: Read-Only
Community Name: private
Access: Read-Write
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.
SWR2311P#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.
SWR2311P#show snmp group
SNMP Group information
Group Name: admins
Security Level: priv
Read View: most
Write View: most
Command Reference | Maintenance and operation functions | 57
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.
SWR2311P#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
58 | Command Reference |
no rmon
[Parameter]
switch:RMON function operation
[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 ysrmonStatus (1.3.6.1.4.1.1182.3.7.1).
[Example]
Enable RMON function.
Maintenance and operation functions
Setting valueDescription
enableEnable RMON function
disableDisable RMON function
SWR2311P(config)#rmon enable
Disable RMON function.
SWR2311P(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>
Index of the Ethernet statistical information group (etherStatsIndex)
owner:Name of the Ethernet statistical information group owner (etherStatsOwner)
Maximum 127 characters
(if omitted : RMON_SNMP)
[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.
Command Reference | Maintenance and operation functions | 59
[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.
rmon history index [bucketsbuckets] [intervalinterval]
no rmon history index
[Parameter]
index:<1 - 65535>
[owner owner]
Index of history group (historyControlIndex)
buckets:<1 - 65535>
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)
[Initial value]
none
[Input mode]
interface mode
[Description]
Enables RMON history group settings for the applicable interface.
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.
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#rmon history 1
60 | Command Reference |
Maintenance and operation functions
4.11.4 Set RMON event group
[Syntax]
rmon event indextypecommunity [descriptiondescription] [ownerowner]
no rmon event index
[Parameter]
index:<1 - 65535>
type:Event type (eventType)
community:Community name (eventCommunity)
Index of event group (eventIndex)
Setting valueDescription
logRecord in log
trapSend SNMP trap
log-trapRecord in log and send SNMP trap
Maximum 127 characters
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.
[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".
SWR2311P(config)#snmp-server host 192.168.100.3 traps version 2c public
SWR2311P(config)#snmp-server enable trap rmon
SWR2311P(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 rising_threshold
•
•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.
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.
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.
SWR2311P(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>
Command Reference | Maintenance and operation functions | 71
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.
SWR2311P(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
Command Reference | Maintenance and operation functions | 79
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]-----+
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
80 | Command Reference |
[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.18 SSH client
4.18.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>
Maintenance and operation functions
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)
[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.
SWR2311P#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.
SWR2311P(config)#ssh-client enable
4.18.3 Clear SSH host information
[Syntax]
clear ssh host host
[Parameter]
Command Reference | Maintenance and operation functions | 81
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.
SWR2311P#clear ssh host 192.168.100.1
4.19 LLDP
4.19.1 Enable LLDP function
[Syntax]
lldp run
no lldp run
[Initial value]
none
[Input mode]
global configuration mode
[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)
82 | Command Reference |
[Example]
Enable LLDP function transmission and reception for LAN port #1.
SWR2311P#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SWR2311P(config)#lldp run
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#lldp-agent
SWR2311P(lldp-agent)#set lldp enable txrx
4.19.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".
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.
Maintenance and operation functions
SWR2311P(config)#lldp run
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#lldp-agent
SWR2311P(config-lldp)#tlv-select ieee-8023-org-specific
4.19.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) Location Identification : Location identification information
(3) 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.
SWR2311P(config)#lldp run
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#lldp-agent
SWR2311P(config-lldp)#tlv-select med
4.19.12 Set LLDP frame transmission interval
[Syntax]
set timer msg-tx-interval tx_interval
Command Reference | Maintenance and operation functions | 87
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.
SWR2311P(config)#lldp run
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#lldp-agent
SWR2311P(config-lldp)#set timer msg-tx-interval 60
4.19.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.
SWR2311P(config)#lldp run
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#lldp-agent
SWR2311P(config-lldp)#set timer msg-fast-tx 2
4.19.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>
88 | Command Reference |
[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.
SWR2311P(config)#lldp run
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#lldp-agent
SWR2311P(config-lldp)#set timer reinit-delay 10
Maintenance and operation functions
Time from LLDP frame transmission stop until re-initialization (seconds)
4.19.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.
SWR2311P(config)#lldp run
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#lldp-agent
SWR2311P(config-lldp)#set msg-tx-hold 2
4.19.16 Set number of LLDP frames transmitted during the high speed transmission period
[Syntax]
set tx-fast-init value
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
Command Reference | Maintenance and operation functions | 89
[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.
SWR2311P(config)#lldp run
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#lldp-agent
SWR2311P(config-lldp)#set tx-fast-init 2
4.19.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.
SWR2311P(config)#lldp run
SWR2311P(config)#interface port1.1
SWR2311P(config-if)#lldp-agent
SWR2311P(config-lldp)#set too-many-neighbors limit 10
4.19.18 Show interface status
[Syntax]
show lldp interface ifname
[Keyword]
neighbor:Shows information for connected devices.
[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.
[neighbor]
90 | Command Reference |
If "neighbor" is specified, information for the device connected to the interface is shown.
Reinitialisation delayTime from LLDP frame transmission stop until re-
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,
Maintenance and operation functions
period (seconds)
initialization (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
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
Command Reference | Maintenance and operation functions | 91
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)
DatumGeodetic datum
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)
LCI lengthLength of location information data
WhatPlace of reference location
92 | Command Reference | Maintenance and operation functions
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.
SWR2311P#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
SWR2311P#
0: Location of the DHCP server
1: Position of the network element thought to be nearest the
client
2: Location of client
4.19.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.
SWR2311P#show lldp neighbors
Interface Name : port1.1
System Name : SWR2311P-10G
System Description : SWR2311P Rev.2.02.06 (Tue Mar 13 08:41:39 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
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 :
Command Reference | Maintenance and operation functions | 93
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
SWR2311P#
4.19.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.
SWR2311P>clear lldp counters
4.20 L2MS (Layer 2 management service) settings
4.20.1 Move to L2MS mode
[Syntax]
l2ms configuration
[Input mode]
global configuration mode
94 | Command Reference |
[Description]
Moves to L2MS mode in order to make L2MS settings.
[Note]
To return from L2MS mode to global configuration mode, use the exit command. To return to priviledged EXEC mode, use the
end command.
Operate as an L2MS master that sets and
controls SWR series units that are connected
subordinate to it
Be managed from a Yamaha device that is
operating as an L2MS master, such as an
SWR2311P-10G unit that is set as the L2MS
master
Command Reference | Maintenance and operation functions | 95
[Input mode]
L2MS mode
[Description]
Sets the role when using the L2MS function.
If this command is executed with the "no" syntax, operate as a slave.
[Note]
In order for a change to be applied, the system must be restarted.
If the same network includes multiple Yamaha routers or firewalls on which L2MS (switch controller function) is enabled, or
multiple SWR series units that are set to be L2MS masters, the L2MS function will not operate correctly.
Ensure that a single network has only one device that is the L2MS master.
[Example]
Use the L2MS function as master.
SWR2311P(config)#l2ms configuration
SWR2311P(config-l2ms)#l2ms enable
SWR2311P(config-l2ms)#l2ms role master
4.20.4 Set L2MS slave watch interval
[Syntax]
slave-watch interval time
no slave-watch interval
[Parameter]
time:<2-10>
Watch interval (seconds)
[Initial value]
slave-watch interval 3
[Input mode]
L2MS mode
[Description]
Specifies the time interval at which to transmit an L2MS slave query frame.
If this command is executed with the "no" syntax, the setting returns to the default.
If you set time to a high value, the query frame is transmitted less often, but it will take longer from when the L2MS slave is
connected until the L2MS master recognizes it. If you set time to a low value, the opposite will be the case; the query frame is
transmitted more often, but it will take less time from when the L2MS slave is connected until the L2MS master recognizes it.
[Note]
L2MS slave watch is performed only if L2MS is operating as master.
[Example]
Set the watch interval to five seconds.
SWR2311P(config)#l2ms configuration
SWR2311P(config-l2ms)#l2ms enable
SWR2311P(config-l2ms)#l2ms role master
SWR2311P(config-l2ms)#slave-watch interval 5
4.20.5 Set number of times that is interpreted as L2MS slave down
[Syntax]
slave-watch down-count count
no slave-watch down-count
[Parameter]
count:<2-10>
Number of times that is interpreted as down
96 | Command Reference |
[Initial value]
slave-watch down-count 3
[Input mode]
L2MS mode
[Description]
Sets the number of query frames that are transmitted without receiving a response frame from the slave until it is determined
that the L2MS slave is down.
If this command is executed with the "no" syntax, the setting returns to the default.
If the number of query frames specified by count have been transmitted without receiving a response frame from the slave, it is
determined that the corresponding L2MS slave is down.
[Note]
If the port to which the L2MS slave is connected is in a link-down state, determining that the L2MS slave is down might take a
shorter time than the setting of this command.
Slave watch is performed only if L2MS is operating as master.
[Example]
Specify "8" as the count used to determine that the slave is down.
SWR2311P(config)#l2ms configuration
SWR2311P(config-l2ms)#l2ms enable
SWR2311P(config-l2ms)#l2ms role master
SWR2311P(config-l2ms)#slave-watch down-count 8
Maintenance and operation functions
4.20.6 Set terminal management function
[Syntax]
terminal-watch enable
terminal-watch disable
no terminal-watch
[Keyword]
enable:Enable terminal management function
disable:Disable terminal management function
[Initial value]
terminal-watch disable
[Input mode]
L2MS mode
[Description]
Enables the terminal management function. If this is enabled, information about the devices existing on the network is obtained
at regular intervals.
If this command is executed with the "no" syntax, disable terminal management function.
[Note]
Terminal management is performed only if L2MS is operating as master.
[Example]
Enable the terminal management function.
SWR2311P(config)#l2ms configuration
SWR2311P(config-l2ms)#l2ms enable
SWR2311P(config-l2ms)#l2ms role master
SWR2311P(config-l2ms)#terminal-watch enable
4.20.7 Set the device information acquisition time interval
[Syntax]
terminal-watch interval time
no terminal-watch interval
Command Reference | Maintenance and operation functions | 97
[Parameter]
time:<1800-86400>
Acquisition interval (seconds)
[Initial value]
terminal-watch interval 1800
[Input mode]
L2MS mode
[Description]
Specifies the time interval at which network device information is acquired. Information for the devices existing on the network
is acquired when the time specified by time has elapsed.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
If the terminal management function is not enabled, terminal information is not acquired, regardless of the setting of this
command.
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.
Removes all L2MS slaves managed by the L2MAS master from management, and searches for L2MS slaves once again.
[Note]
This can be executed only if L2MS is operating as master.
When this command is executed, L2MS slaves that were being managed also remove themselves from the state of being
managed by the L2MS master.
After this command is executed, the timing at which L2MS slave watching resumes will depend on the time specified by the
slave-watch interval command.
[Example]
Reset L2MS slave management.
SWR2311P#l2ms reset
4.20.10 Show L2MS information
[Syntax]
show l2ms [detail]
[Keyword]
detail:Also show detailed information
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the following information according to the L2MS operating state.
•
If L2MS is operating as master
•Number of L2MS slaves being managed
•Information for the L2MS slaves being managed
•MAC address
•Model name
•Device name
•Route
•Uplink port
•Settings applied
•If L2MS is operating as master and "detail" is specified
•L2MS master information
•Number of terminals connected to the L2MS master
•Information of terminals connected to the L2MS master
•MAC address
•Ports connected
•Time at which terminal was discovered
•Number of L2MS slaves being managed
•Information for the L2MS slaves being managed
•MAC address
•Model name
•Device name
•Route
•Linked-up ports
•Uplink port
•Downlink port
Command Reference | Maintenance and operation functions | 99
•Settings applied
Number of terminals connected to the L2MS slave
•
•Information of terminals connected to the L2MS slave (in the case of a switch)
•MAC address
•Ports connected
•Time at which terminal was discovered
•Information of terminals connected to the L2MS slave (in the case of an AP)
•SSID connected
•Frequency connected
•Time at which terminal was discovered
•If L2MS is operating as slave
•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 L2Ms is operating as master, show detailed L2MS information.
SWR2311P>show l2ms detail
Role : Master
[Master]
Number of Terminals : 0
[Slave]
Number of Slaves : 2
[ac44.f230.00a5]
Model name : SWR2311P-10G
Device name : SWR2311P-10G_Z5301050WX
Route : port2.1
LinkUp : 1, 3, 9
Uplink : 1
Downlink : 3
Config : None
Appear time : Tue Mar 13 18:43:18 2018
Number of Terminals : 1
[bcae.c5a4.7fb3]
Port : 9
Appear time : Wed Mar 14 14:01:18 2018
[00a0.deae.b8bf]
Model name : SWR2311P-10G
Device name : SWR2311P-10G_S4L000401
Route : port2.1-3
LinkUp : 1
Uplink : 1
Downlink : None
Config : None
Appear time : Tue Mar 13 18:43:18 2018
Number of Terminals : 0
4.20.11 Set the device information acquisition time interval for downstream of a wireless AP
[Syntax]
wireless-terminal-watch interval time
no wireless-terminal-watch interval
[Parameter]
time:<10-86400>
Acquisition interval (seconds)
[Initial value]
wireless-terminal-watch interval 60
100 | Command Reference |
[Input mode]
L2MS mode
[Description]
Specifies the time interval at which device information for a device downstream of a wireless AP is acquired. Information for
the devices existing downstream the wireless AP is acquired when the time specified by time has elapsed.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
If device watch is not operating, device information is not acquired, regardless of the setting of this function.
[Example]
Set the device information acquisition time interval to 3,600 seconds.
Sets whether to disable or enable the event monitoring function. If enabled, event information for the L2MS slaves existing on
the network is acquired at regular intervals.
If this command is executed with the "no" syntax, the event monitoring function is enabled.
[Note]
Event monitoring is performed only if L2MS is operating as master.
[Example]
Disable the event monitoring function.
SWR2311P(config)#l2ms configuration
SWR2311P(config-l2ms)#l2ms enable
SWR2311P(config-l2ms)#l2ms role master
SWR2311P(config-l2ms)#event-watch disable
4.20.13 Set event information acquisition time interval
[Syntax]
event-watch interval time
no event-watch interval
[Parameter]
time:<60-1800>
Acquisition time interval (seconds)
[Initial value]
event-watch interval 300
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.