S3900 Command Manual PDF
S3900 Command Manual PDF
S3900 Command Manual PDF
Release 1510
BOM 3119A050
Huawei Technologies Co., Ltd. provides customers with comprehensive technical support
and service. If you purchase the products from the sales agent of Huawei Technologies Co.,
Ltd., please contact our sales agent. If you purchase the products from Huawei
Technologies Co., Ltd. directly, Please feel free to contact our local office, customer care
center or company headquarters.
Website: http://www.huawei.com
Trademarks
All other trademarks and trade names mentioned in this manual are the property of
their respective holders.
Notice
The information in this manual is subject to change without notice. Every effort has
been made in the preparation of this manual to ensure accuracy of the contents,
but all statements, information, and recommendations in this manual do not
constitute the warranty of any kind, express or implied.
Release Notes
Related Manuals
Manual Content
Quidway S3900 Series Ethernet
It provides information for the system installation.
Switches Installation Manual
Quidway S3900 Series Ethernet It is used for assisting the users in data
Switches Operation Manual configurations and typical applications.
Organization
Intended Audience
Conventions
I. General conventions
Convention Description
Arial Normal paragraphs are in Arial.
Convention Description
Convention Description
Button names and menu items are in Boldface. For
Boldface
example, click OK.
Multi-level menus are in bold and separated by forward
/
slashes. For example, select the File/Create/Folder menu.
Format Description
Press the key with the key name inside angle brackets. For
<Key>
example, <Enter>, <Tab>, <Backspace>, or <A>.
Press the keys concurrently. For example, <Ctrl+Alt+A>
<Key1+Key2>
means the three keys should be pressed concurrently.
Press the keys in turn. For example, <Alt, A> means the
<Key1, Key2>
two keys should be pressed in turn.
Action Description
Press and hold the primary mouse button (left mouse
Select
button by default).
Select and release the primary mouse button without
Click
moving the pointer.
Press the primary mouse button twice continuously and
Double-Click
quickly without moving the pointer.
Press and hold the primary mouse button and move the
Drag
pointer to a certain position.
VI. Symbols
Eye-catching symbols are also used in the manual to highlight the points worthy of
special attention during the operation. They are defined as follows:
Table of Contents
i
Command Manual - CLI
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 CLI Configuration Commands
Syntax
View
System view
Parameter
Description
Use the command-privilege level command to set the level of the specified
command in a specified view.
Use the undo command-privilege view command to restore the level of the specified
command in the specified view to the default.
Commands fall into four command levels: visit, monitor, system, and manage, which
are identified as 0, 1, 2, and 3 respectively. The administrator can change the level of a
command to enable users of specific level to utilize the command.
By default, the ping, tracert, and telnet commands are at the visit level (level 0); the
display and debugging commands are at the monitor level (level 1); all configuration
commands are at the system level (level 2); and FTP/TFTP/XModem and file system
related commands are at the manage level (level 3).
Example
1-1
Command Manual - CLI
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 CLI Configuration Commands
Syntax
display history-command
View
Any view
Parameter
None
Description
Use the display history-command command to display history commands. All the
history commands are saved in the history command cache. When the history
command cache is full, the old information in it will be overlaid.
Related command: history-command max-size.
Example
1.1.3 super
Syntax
super [ level ]
View
User view
Parameter
level: User level. This argument ranges from 0 to 3 and defaults to 3. If you execute
this command with the level argument not provided, this command switches the
current user level to level 3.
Description
Use the super command to switch the current user level to the one identified by the
level argument. If a password is previously set by using the super password [ level
level ] { simple | cipher } password command, you need to provide the password as
1-2
Command Manual - CLI
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 CLI Configuration Commands
well to switch to the higher user level. You will remain in the original user level if you
fail to provide the correct password.
Note that:
z Users logging into a switch also fall into four levels, each of which corresponding
to one of the command levels. Users at a specific level can only use the
commands at the same level and the commands at the lower levels.
z You can specify an AUX user to provide a password when he switches from a
lower user level to a higher user level and specify the password by using the
super password [ level level ] { simple | cipher } password command. With a
password configured, an AUX user remains in the original user level if the
password provided is incorrect when the AUX user attempts to switch to a higher
user level. If the password is not configured, an AUX user can switch to a higher
user level directly.
z A password is necessary for a VTY user to switch to a higher user level. You can
use the super password [ level level ] { simple | cipher } password command to
set the password. With the password not configured, a VTY user is prompted the
message reading “Password is not set” and remains in the previous level.
z An AUX user or a VTY user can switch to a lower user level directly regardless of
the password.
Related command: super password.
Example
Syntax
View
System view
Parameter
level: User level. This argument ranges from 1 to 3 and defaults to 3. If you execute
this command with the level argument not provided, this command sets the password
to switch to level 3.
simple: Specifies to provide the password in plain text.
cipher: Specifies to provide the password in encrypted text.
1-3
Command Manual - CLI
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 CLI Configuration Commands
password: Password to be set. If you specify the simple keyword, provide this
argument in plain text. If you specify the cipher keyword, you can provide this
argument in either encrypted text or plain text. In this case, a password containing no
more than 16 characters (such as 123) is regarded to be in plain text and is converted
to the corresponding 24-character encrypted form ( such
as !TP<\*EMUHL,408`W7TH!Q!!) automatically. You can also provide a 24-character
encrypted password directly if you are aware of the actual password.
Description
Use the super password command to set the password for users to switch to a higher
user level. To prevent unauthorized accesses, you can use this command to require
users to provide the password when they switch to a higher user level. For security
purpose, the password a user enters when switching to a higher user level is not
displayed. A user will remain at the original user level if the user has tried three times
to enter the correct password but fails to do this.
Use the undo super password command to cancel the configuration.
Note that no matter what form of the password (plain text or encrypted text) is in, the
password entered for verification must be in plain text.
Example
# Set the password to switch from the current user level to user level 3 to “zbr”.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] super password level 3 simple zbr
1-4
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Syntax
View
Parameter
Description
1-1
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Note:
To improve security and avoid malicious attack to the unused SOCKETs, TCP 23 and
TCP 22 ports for Telnet and SSH services respectively will be enabled or disabled after
corresponding configurations.
z If the authentication mode is none, TCP 23 will be enabled, and TCP 22 will be
disabled.
z If the authentication mode is password, and the corresponding password has been
set, TCP 23 will be enabled, and TCP 22 will be disabled.
z If the authentication mode is scheme, there are three scenarios: when the
supported protocol is specified as telnet, TCP 23 will be enabled; when the
supported protocol is specified as ssh, TCP 22 will be enabled; when the supported
protocol is specified as all, both the TCP 23 and TCP 22 port will be enabled.
Example
# Configure to authenticate users using the local password on the AUX interface.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] user-interface aux 0
[Quidway-ui-aux0] authentication-mode password
Syntax
View
Parameter
Description
Use the auto-execute command command to set the command that is executed
automatically after a user logs in.
Use the undo auto-execute command command to disable the specified command
from being automatically executed.
Normally, the telnet command is specified to be executed automatically to enable the
user to Telnet to a specific network device automatically.
1-2
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Caution:
z The auto-execute command command may cause you unable to perform common
configuration in the user interface, so use it with caution.
z Before executing the auto-execute command command and save your
configuration, make sure you can log into the switch in other modes and cancel the
configuration.
Example
1.1.3 databits
Syntax
databits { 7 | 8 }
undo databits
View
Parameter
Description
Use the databits command to set the databits for the user interface.
Use the undo databits command to revert to the default data bits.
Execute these two commands in AUX user interface view only.
The default data bits is 8.
1-3
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Example
Syntax
View
Any view
Parameter
None
Description
Use the display telnet-server source-ip command to display the source IP address
configured for the switch operating as the Telnet server. If the source interface is also
configured for the switch, this command displays the IP address of the source interface.
If no source IP address is specified, 0.0.0.0 is displayed.
Example
# Display the source IP address configured for the switch operating as the Telnet
server.
<Quidway> display telnet-server source-ip
The source IP you specified is 192.168.1.1
Syntax
View
Any view
Parameter
None
1-4
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Description
Use the display telnet source-ip command to display the source IP address
configured for the switch operating as the Telnet client. If the source interface is also
configured for the switch, this command displays the IP address of the source interface.
If no source address is configured, 0.0.0.0 is displayed.
Example
# Display the source IP address configured for the switch operating as the Telnet client.
<Quidway> display telnet source-ip
The source IP you specified is 192.168.1.1
Syntax
View
Any view
Parameter
Description
Use the display user-interface command to display the information about a specified
user interface or all user interfaces. If the summary keyword is not specified, this
command displays user interface type, absolute/relative user interface number,
transmission speed, available command level, authentication mode, and physical
position. If the summary keyword is specified, this command displays the number and
type of the user interfaces, including those that are in use and those that are not in use.
Example
1-5
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Filed Description
+ The user interface is in use.
Syntax
1-6
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
View
Any view
Parameter
Description
Use the display users command to display the information about user interfaces. If
you do not specify the all keyword, only the information about the current user interface
is displayed.
Example
Field Description
The information is about the current user interface, and the
F
current user interface operates in asynchronous mode.
The numbers in the left sub-column are the absolute user
UI interface indexes, and those in the right sub-column are the
relative user interface indexes.
Delay The period (in seconds) the user interface idles for.
Type User type
1-7
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Syntax
View
User view
Parameter
Description
Use the free user-interface command to release a specified user interface. If you
execute this command, the corresponding user interface will be disconnected.
Note that the current user interface cannot be released.
Example
[OK]
After you execute this command, user interface VTY 0 will be disconnected. The user in
it must log in again to connect to the switch.
1.1.9 header
Syntax
View
System view
Parameter
Incoming: Sets the login banner for users that log in through modems. If you specify to
authenticate login users, the banner appears after a user passes the authentication.
(The session does not appear in this case.)
1-8
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
login: Sets the login banner. The banner set by this keyword is valid only when users
are authenticated before they log into the switch and appears while the switch prompts
for user name and password.
shell: Sets the session banner, which appears after a session is established. If you
specify to authenticate login users, the banner appears after a user passes the
authentication.
text: Banner to be displayed. If no keyword is specified, this argument is the login
banner. You can provide this argument in two ways. One is to enter the banner in the
same line as the command (A command line can accept up to 254 characters.) The
other is to enter the banner in multiple lines (you can start a new line by pressing
<Enter>,) where you can enter a banner that can contain up to 2000 characters
(including the invisible characters). Note that the first character is the beginning
character and the end character of the banner. After entering the end character, you
can press <Enter> to exit the interaction.
Description
Use the header command to set the banners that are displayed when a user logs into a
switch. The login banner is displayed on the terminal when the connection is
established. And the session banner is displayed on the terminal if a user successfully
logs in.
Use the undo header command to disable displaying a specific banner or all banners.
Note that if you specify any one of the three keywords without providing the text
argument, the specified keyword will be regarded as the login information.
You can specify the banner in the following three ways, each of which requires that the
first character and the last character of the banner be the same.
z Enter the banner in multiple lines. If you only type one character in the first line of a
banner, the character and the last character do not act as part of the banner. The
following gives an example of this way.
[Quidway] header shell 0
Input banner text, and quit with the character '0'.
Welcome!0
When you log in the next time, “Welcome!” is displayed as the banner. The beginning
character and the end character (character 0) do not appear.
z Enter the banner in multiple lines. If you type multiple characters in the first line of
a banner and the beginning and the end characters of the banner in this line are
not the same, the beginning character is part of the banner. The following is an
example.
[Quidway] header shell hello
Input banner text, and quit with the character 'h'.
my friend !
1-9
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
When you log in the next time, “hello” and “my friend !“ is displayed respectively in two
lines as the banner. The beginning character “h” appears in the banner.
z Enter the banner in a single line. You can also specify the banner in a single line. In
this case, the banner does contain the beginning and the end character. The
following is an example.
[Quidway] header shell 0welcome,my friend!0
When you log in the next time, “welcome, my friend!” is displayed as the banner.
Example
(Make sure the beginning and end characters of the banner are the same.)
When you log in the next time, the session banner appears on the terminal as the
following:
[Quidway] quit
<Quidway> quit
Please press ENTER
SHELL: Hello! Welcome
(The beginning and end characters of the banner are not displayed.)
<Quidway>
Continue entering the banner and end the banner with the character identical with the
beginning character of the banner.
Hello! Welcome %
(Press <Enter>.)
[Quidway]
When you log in the next time, the session banner appears on the terminal as the
following:
1-10
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
[Quidway] quit
<Quidway> quit
Please press ENTER
%SHELL:
Syntax
View
Parameter
value: Size of the history command buffer. This argument ranges from 0 to 256 and
defaults to 10. That is, the history command buffer can store 10 commands by default.
Description
Use the history-command max-size command to set the size of the history command
buffer.
Use the undo history-command max-size command to revert to the default history
command buffer size.
Example
# Set the size of the history command buffer of AUX 0 to 20 to enable it to store up to 20
commands.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] user-interface aux 0
[Quidway-ui-aux0] history-command max-size 20
1.1.11 idle-timeout
Syntax
1-11
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
View
Parameter
Description
Use the idle-timeout command to set the timeout time. The connection to a user
interface is terminated if no operation is performed in the user interface within the
timeout time.
Use the undo idle-timeout command to revert to the default timeout time.
You can use the idle-timeout 0 command to disable the timeout function.
The default timeout time is 10 minutes.
Example
Syntax
ip http shutdown
undo ip http shutdown
View
System view
Parameter
None
Description
Use the ip http shutdown command to shut down the Web server.
Use the undo ip http shutdown command to launch the Web server.
By default, the Web server is launched.
1-12
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Note:
To improve security and avoid malicious attack to the unused SOCKETs, TCP 80 port
for HTTP service will be enabled or disabled after corresponding configurations.
If you use the undo ip http shutdown command to enable the Web Server, TCP 80
will be enabled; if you use the ip http shutdown command to disabled the Web Server,
TCP 80 will be disabled.
Caution:
After the Web file is upgraded, you need to reboot and then specify the new Web file in
the Boot menu. Otherwise, you cannot use the Web Server normally.
Example
1.1.13 lock
Syntax
lock
View
User view
Parameter
None
Description
Use the lock command to lock the current user interface to prevent unauthorized
operations in the user interface.
1-13
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Example
1.1.14 parity
Syntax
View
Parameter
Description
Use the parity command to set the check mode of the user interface.
Use the undo parity command to revert to the default check mode.
Use these two commands in AUX user interface view only.
No check is performed by default.
Example
1-14
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Syntax
View
Parameter
Description
Use the protocol inbound command to specify the protocols supported by the user
interface.
Both Telnet protocol and SSH protocol are supported by default.
Related command: user-interface vty.
Note:
To improve security and avoid malicious attack to the unused SOCKETs, TCP 23 and
TCP 22 ports for Telnet and SSH services respectively will be enabled or disabled after
corresponding configurations.
z If the authentication mode is none, TCP 23 will be enabled, and TCP 22 will be
disabled.
z If the authentication mode is password, and the corresponding password has been
set, TCP 23 will be enabled, and TCP 22 will be disabled.
z If the authentication mode is scheme, there are three scenarios: when the
supported protocol is specified as telnet, TCP 23 will be enabled; when the
supported protocol is specified as ssh, TCP 22 will be enabled; when the supported
protocol is specified as all, both the TCP 23 and TCP 22 port will be enabled.
Example
1-15
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
1.1.16 screen-length
Syntax
screen-length screen-length
undo screen-length
View
Parameter
screen-length: Number of lines the screen can contain. This argument ranges from 0 to
512 and defaults to 24.
Description
Use the screen-length command to set the number of lines the terminal screen can
contain.
Use the undo screen-length command to revert to the default number of lines.
By default, the terminal screen can contain up to 24 lines.
You can use the screen-length 0 command to disable the function to display
information in pages.
Example
# Set the number of lines the terminal screen can contain to 20.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] user-interface aux0
[Quidway-ui-aux0] screen-length 20
1.1.17 send
Syntax
View
User view
Parameter
1-16
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Description
Use the send command to send messages to a specified user interface or all user
interfaces.
Example
1.1.18 service-type
Syntax
View
Parameter
Description
Use the service-type command to specify the login type and the corresponding
available command level.
Use the undo service-type command to cancel login type configuration.
Commands fall into four command levels: access, monitor, system, and administration,
which are described as follows:
z Access level: Commands of this level are used to diagnose network and change
the language mode of user interface, such as the ping, tracert, and
1-17
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Example
# Configure commands of level 0 are available to the users logging in using the user
name of “zbr”.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] local-user zbr
[Quidway-luser-zbr] service-type telnet level 0
# To verify the above configuration, you can quit the system, log in again using the user
name of “zbr”, and then list the available commands, as listed in the following.
[Quidway] quit
<Quidway> ?
1-18
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Syntax
View
Parameter
cipher: Specifies to display the local password in encrypted text when you display the
current configuration.
simple: Specifies to display the local password in plain text when you display the
current configuration.
password: Password. The password must be in plain text if you specify the simple
keyword in the set authentication password command. If you specify the cipher
keyword, the password can be in either encrypted text or plain text. When you enter the
password in plain text containing up to 16 characters (such as 123), the system
converts the password to the corresponding 24-character encrypted password (such
as !TP<\*EMUHL,408`W7TH!Q!!). Make sure you are aware of the corresponding plain
password if you enter the password in ciphered text (such
as !TP<\*EMUHL,408`W7TH!Q!!).
Description
Use the set authentication password command to set the local password.
Use the undo set authentication password command to remove the local password.
Note that only plain text passwords are expected when users are authenticated.
Note:
By default, modem users and Telnet users need to provide their passwords to log in. If
no password is set, the “Login password has not been set !” message appears on the
terminal when users log in.
Example
1-19
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
1.1.20 shell
Syntax
shell
undo shell
View
Parameter
None
Description
Use the shell command to make terminal services available for the user interface.
Use the undo shell command to make terminal services unavailable to the user
interface.
By default, terminal services are available in all user interfaces.
Note the following when using the undo shell command:
z This command is available in all user interfaces except the AUX (Console) user
interface.
z This command is unavailable in the current user interface.
z This command prompts for confirmation when being executed in any valid user
interface.
Example
# Log into user interface 0 and make terminal services unavailable in VTY 0 through
VTY 4.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] user-interface vty 0 4
[Quidway-ui-vty0-4] undo shell
1.1.21 speed
Syntax
speed speed-value
undo speed
1-20
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
View
Parameter
speed-value: Transmission speed (in bps). This argument can be 300, 600, 1200, 2400,
4800, 9600, 19,200, 38,400, 57,600, and 115,200 and defaults to 9,600.
Description
Use the speed command to set the transmission speed of the user interface.
Use the undo speed command to revert to the default transmission speed.
Use these two commands in the AUX user interface view only.
Example
# Set the transmission speed of the AUX user interface to 115,200 bps.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] user-interface aux 0
[Quidway-ui-aux0] speed 115200
1.1.22 stopbits
Syntax
stopbits { 1 | 1.5 | 2 }
undo stopbits
View
Parameter
Description
Use the stopbits command to set the stop bits of the user interface.
Use the undo stopbits command to revert to the default stop bits.
Use these two commands in the AUX user interface only.
By default, the stop bits is 1.
1-21
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Note:
Changing the value of the stop bits does not affect the communications.
Example
1.1.23 sysname
Syntax
sysname string
undo sysname
View
System view
Parameter
string: Domain name of the switch. This argument can contain 1 to 30 characters and
defaults to “Quidway”.
Description
Use the sysname command to set a domain name for the switch.
Use the undo sysname command to revert to the default domain name.
The CLI prompt reflects the domain name of a switch. For example, if the domain name
of a switch is “Quidway”, then the prompt of user view is <Quidway>.
Example
1-22
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
1.1.24 telnet
Syntax
View
User view
Parameter
hostname: Host name of the remote switch. You can use the ip host command to
assign a host name to a switch.
ip-address: IP address of the remote switch.
service-port: TCP port number of the port that provides Telnet service on the switch.
This argument ranges from 0 to 65,535.
Description
Use the telnet command to Telnet to another switch from the current switch to manage
the former remotely. You can terminate a Telnet connection by pressing <Ctrl + K> or by
executing the quit command.
The default TCP port number is 23.
Related command: display tcp status, and ip host.
Example
# Telnet to the switch with the host name of Quidway2 and IP address of 129.102.0.1
from the current switch (with the host name of Quidway1).
<Quidway1> telnet 129.102.0.1
<Quidway2>
Syntax
View
System view
1-23
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Parameter
Description
Example
Syntax
View
System view
Parameter
Description
Use the telnet-server source-ip command to specify the source IP address for a
Telnet server. If the IP address specified by the ip-address argument in the command is
not an IP address of the device, your configuration fails.
Use the undo telnet-server source-ip command to cancel the source IP address
configuration. After that, you can access the Telnet server from Telnet client using the
IP address determined by the system.
Example
1-24
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] telnet-server source-ip 192.168.1.1
Syntax
View
System view
Parameter
Description
Use the telnet source-interface command to specify the source interface for a Telnet
client. If the interface specified does not exist, your configuration fails.
Use the undo telnet source-interface command to clear the source interface
configuration. After that, you can access the Telnet server from Telnet client using the
IP address determined by the system.
Example
Syntax
View
System view
Parameter
1-25
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Description
Use the telnet source-ip command to specify the source IP address for a Telnet client.
If the IP address specified is not an IP address of the device, your configuration fails.
Use the undo telnet source-ip command to clear the source IP address configuration.
After that, you can access the Telnet server from Telnet client using the IP address
determined by the system.
Example
1.1.29 user-interface
Syntax
View
System view
Parameter
Description
Use the user-interface command to enter one or more user interface views to perform
configuration.
Example
1-26
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Login Commands
Syntax
View
Parameter
Description
Use the user privilege level command to configure the command level available to the
users logging into the user interface.
Use the undo user privilege level command to revert to the default command level.
By default, the commands of level 3 are available to the users logging into the AUX user
interface. The commands of level 0 are available to the users logging into VTY user
interfaces.
Example
# Configure that commands of level 0 are available to the users logging into VTY 0.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] user-interface vty 0
[Quidway-ui-vty0] user privilege level 0
# You can verify the above configuration by Telneting to VTY 0 and displaying the
available commands, as listed in the following.
<Quidway> ?
User view commands:
cluster Run cluster command
language-mode Specify the language environment
nslookup Query Internet name servers
ping Ping function
quit Exit from current command view
super Set the current user priority level
telnet Establish one Telnet connection
tracert Trace route function
undo Cancel current setting
1-27
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 Commands for User Control
Syntax
View
Parameter
Description
Example
# Apply ACL 2000 to filter users Telneting to the current switch (assuming that ACL
2,000 already exists.)
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] user-interface vty 0 4
[Quidway-ui-vty0-4] acl 2000 inbound
Syntax
2-1
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 Commands for User Control
View
User view
Parameter
Description
Use the free web-users command to disconnect a specified Web user or all Web users
by force.
Example
Syntax
View
System view
Parameter
Description
Use the ip http acl command to apply an ACL to filter Web users.
Use the undo ip http acl command to disable the switch from filtering Web users using
the ACL.
By default, the switch does not use the ACL to filter Web users.
Example
# Apply ACL 2000 to filter Web users (assuming that ACL 2,000 already exists.)
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ip http acl 2000
2-2
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 Commands for User Control
Syntax
View
System view
Parameter
read: Specifies that the community has read-only permission in the specified view.
Write: Specifies that the community has read/write permission in the specified view.
community-name: Community name.
mib-view: Sets the name of the MIB view accessible to the community.
view-name: MIB view name.
acl acl-number: Specifies the ACL number. The acl-number argument ranges from
2,000 to 2,999.
Description
Use the snmp-agent community command to set a community name and to enable
users to access the switch through SNMP. You can also optionally use this command to
apply an ACL to filter network management users.
Use the undo snmp-agent community command to cancel community-related
configuration for the specified community.
By default, SNMPv1 and SNMPv2c access a switch by community names.
Example
# Set the community name to “h123”, enable users to access the switch in the name of
the community (with read-only permission), and apply ACL 2,000 to filter network
management users (assuming that ACL 2000 already exists.)
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] snmp-agent community read h123 acl 2000
Syntax
2-3
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 Commands for User Control
View
System view
Parameter
Description
Use the snmp-agent group command to create a SNMP group. You can also
optionally use this command to apply an ACL to filter network management users.
Use the undo snmp-agent group command to remove a specified SNMP group.
By default, the snmp-agent group v3 group-name command is provided without the
authentication and privacy keyword. That is, the switch does not authenticate or
encrypt the specified group.
Example
# Create a SNMP group named “h123” and apply ACL 2001 to filter network
management users (assuming that ACL 2001 already exists).
2-4
Command Manual – Login
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 Commands for User Control
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] snmp-agent group v1 h123 acl 2001
2-5
Command Manual – Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
File path and file name can be represented in one of the following ways:
z In universal resource locator (URL) format and starting with “unit [No.]>flash:/” ( [No.]
represents the unit ID of the switch). This method is used to specify a file on a
specified unit. For example, if the unit ID of the switch is 1, the URL of the file named
text.txt in the root directory of the switch is unit1>flash:/text.txt;
z URL starting with “flash:/”. This method can be used to specify the files saved in the
flash of the current unit;
z Inputting the path name or file name directly. This method can be used to specify the
path to go to or a file in the current work directory.
Syntax
View
Any view
Parameter
1-1
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1-2
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
1-3
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
interface Ethernet1/0/2
voice vlan enable
#
interface Ethernet1/0/3
port link-type hybrid
port hybrid vlan 1 3 untagged
voice vlan enable
port hybrid protocol-vlan vlan 3 1
port hybrid protocol-vlan vlan 3 2
#
interface Ethernet1/0/4
mirroring-group 1 monitor-port
#
interface Ethernet1/0/5
port link-type trunk
port trunk permit vlan 1 25
#
interface Ethernet1/0/6
#
interface Ethernet1/0/7
#
interface Ethernet1/0/8
#
interface Ethernet1/0/9
voice vlan enable
#
interface Ethernet1/0/10
port link-type hybrid
port hybrid vlan 1 3 to 4 untagged
port hybrid protocol-vlan vlan 4 0
lacp enable
#
interface Ethernet1/0/11
#
interface Ethernet1/0/12
#
interface Ethernet1/0/13
#
interface Ethernet1/0/14
#
interface Ethernet1/0/15
#
interface Ethernet1/0/16
1-4
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
#
interface Ethernet1/0/17
#
interface Ethernet1/0/18
#
interface Ethernet1/0/19
#
interface Ethernet1/0/20
port access vlan 2
#
interface Ethernet1/0/21
#
interface Ethernet1/0/22
#
interface Ethernet1/0/23
#
interface Ethernet1/0/24
#
interface GigabitEthernet1/1/1
#
interface GigabitEthernet1/1/2
#
interface GigabitEthernet1/1/3
#
interface GigabitEthernet1/1/4
#
undo irf-fabric authentication-mode
#
interface NULL0
#
user-interface aux 0 4
idle-timeout 0 0
user-interface aux 5 7
user-interface vty 0 4
authentication-mode none
user privilege level 3
set authentication password simple 1
#
return
# Display the lines that include the stings matching “10*” in the configuration
information. (The character “*” means that the character 0 in the string before it can
appear multiple times or does not appear.)
1-5
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1-6
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Use the display saved-configuration command to display the content of the primary
configuration file in the Flash of a switch.
Related command: save, reset saved-configuration, display
current-configuration.
Example
1-7
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1-8
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
#
interface Ethernet1/0/19
#
interface Ethernet1/0/20
#
interface Ethernet1/0/21
#
interface Ethernet1/0/22
#
interface Ethernet1/0/23
#
interface Ethernet1/0/24
#
interface GigabitEthernet1/1/1
#
interface GigabitEthernet1/1/2
#
interface GigabitEthernet1/1/3
#
interface GigabitEthernet1/1/4
#TOPOLOGYCFG. MUST NOT DELETE
#
undo irf-fabric authentication-mode
#GLBCFG. MUST NOT DELETE
#
interface NULL0
#
user-interface aux 0 4
idle-timeout 0 0
user-interface aux 5 7
user-interface vty 0 4
authentication-mode none
user privilege level 3
set authentication password simple 1
#
return
The configurations are listed in this order: global configuration, port configuration, and
user interface configuration.
1-9
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Use the display startup command to display the startup configuration of a switch,
including the name of the current startup configuration file, the names of the primary
startup configuration file and secondary startup configuration file to be used when the
switch starts the next time, and so on.
Related command: startup saved-configuration.
Example
Syntax
View
Any view
Parameter
1-10
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the display this command to display the current configuration performed in the
current view. To verify the configuration performed in a view, you can use this command
to display the parameters that are valid in the current view.
Parameters that are the same as the default are not displayed. And parameters
corresponding to the functions that do not take effect are not displayed either.
When you execute this command in different interface views, the configurations
performed in the corresponding interfaces are displayed. When you execute this
command in different protocol views, the configurations performed in the corresponding
protocol views are displayed. And when you execute this command in different protocol
sub-views, the configurations performed in the corresponding protocol sub-views are
displayed.
Related command: save, reset saved-configuration, display saved-configuration,
and display current-configuration.
Example
# Display the configuration parameters that take effect in AUX 0 interface view.
[Quidway-ui-aux0] display this
#
user-interface aux 0 4
idle-timeout 0 0
user-interface aux 5 7
user-interface vty 0
authentication-mode none
user privilege level 3
set authentication password simple 123
idle-timeout 0 0
user-interface vty 1 4
authentication-mode none
user privilege level 3
set authentication password simple 1
idle-timeout 0 0
#
return
Syntax
1-11
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
User view
Parameter
Description
Caution:
Example
1-12
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1.1.6 save
Syntax
View
Any view
Parameter
cfgfile: Path name or file name of a configuration file in the Flash, a string comprising 5
to 56 characters.
safely: Saves the current configuration in the safe mode. Although the saving process
in the safe mode is slow, the configuration can be saved to the Flash even if the device
restarts or is powered off when the saving operation is being processed.
backup: Saves the configuration to the secondary configuration file.
main: Saves the configuration to the primary configuration file.
Description
Use the save command to save the current configuration to a configuration file in the
Flash.
If you execute this command with neither the backup nor the main keyword specified,
the current configuration is saved in the primary configuration file.
The safely keyword determines the way to save the current configuration, as described
in the following.
z If you execute this command with the safely keyword not specified, the system
saves the current configuration in the fast mode. In this mode, the configuration
gets lost if the device restarts or is powered off when the saving operation is being
processed.
z If you execute this command with the safely keyword specified, the system saves
the current configuration in the safe mode. Although this mode takes more time
than the fast mode, the configuration can be saved to the Flash even if the device
restarts or is powered off when the saving operation is being processed.
The fast mode is recommended under the circumstances where the power systems are
reliable, while the safe mode is recommended when power system is unreliable or you
are performing a remote maintenance operation.
1-13
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
z If you execute the save command with the cfgfile argument not specified, the
current configuration is saved in the configuration file with which the device latest
starts. If the device starts using the default configuration, the current configuration is
saved in the default configuration file.
z To make a switch to adopt the current configuration when it starts the next time,
save the current configuration using the save command before restarting the
switch.
Example
1-14
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
User view
Parameter
cfgfile: Path name or file name of a configuration file in the Flash, a string comprising 5
to 56 characters. Note that the current configuration file is saved in the root directory of
the Flash.
backup: Specifies the configuration file to be the primary configuration file.
main: Specifies the configuration file to be the secondary configuration file.
unit unit-id: Specifies the unit ID of a switch.
Description
Caution:
To make a switch to start without loading the configuration file, do not execute the save
command after executing the undo startup saved-configuration command.
1-15
Command Manual – Configuration File Management Chapter 1 Configuration File Management
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Configure the configuration file named vrpcfg.cfg as the primary configuration file of
the switches in the Fabric.
<Quidway> startup saved-configuration vrpcfg.cfg main
Please wait......Done!
%Apr 2 02:55:10:025 2000 Quidway CFM/3/CFM_LOG:- 1 -Unit1 set the
configuration
successfully.
<Quidway>
%Apr 2 02:55:10:134 2000 Quidway CFM/3/CFM_LOG:- 1 -Unit2 set the
configuration
successfully.
# Configure the configuration file named 123.cfg as the secondary configuration file of
Unit1.
<Quidway> startup saved-configuration unit1>flash:/123.cfg backup
Please wait......Done!
%Apr 2 02:55:54:797 2000 Quidway CFM/3/CFM_LOG:- 1 –Unit1 set the
configuration
successfully.
1-16
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
Syntax
description text
undo description
View
Parameter
Description
Use the description command to assign a description string to the current VLAN or
VLAN interface.
Use the undo description command to restore the default description string.
By default, the description string of the current VLAN is its VLAN ID, such as “VLAN
0001”; the description string of the current VLAN interface is its name, such as
“Vlan-interface 1 Interface”.
Related command: display vlan, and display interface Vlan-interface.
Example
Syntax
1-1
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
View
Any view
Parameter
Description
Use the display interface Vlan-interface command to display the information about
the VLAN interface, including:
z Physical state and link state of the VLAN interface
z Format of the sent frames
z MAC address, IP address and subnet mask of the VLAN interface
z Description string and MTU of the VLAN interface
If the vlan-id argument is specified, the information about the specified VLAN interface
is displayed; if the vlan-id argument is not specified, the information about all the
created VLAN interfaces is displayed.
Related command: interface Vlan-interface.
Example
Table 1-1 Description on the fields of the display interface Vlan-interface command
Field Description
Vlan-interface2 current state Current state of the VLAN interface
Line protocol current state Current state of the Line protocol
IP Sending Frames' Format Format of the frames that IP sends
MAC address corresponding to the VLAN
Hardware address
interface
IP address corresponding to the VLAN
Internet Address
interface
Description Description on the VLAN interface
1-2
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
Field Description
The Maximum Transmit Unit Maximum transmission unit
Syntax
View
Any view
Parameter
Description
Use the display vlan command to display the information about the specified VLANs
or all VLANs.
If the vlan-id argument or the all keyword is specified, the information about the
specified VLANs or the all VLANs is displayed, including:
z VLAN ID
z VLAN type (dynamic or static)
z Whether the routing function is enabled (If yes, the primary IP address and mask
are displayed)
z VLAN description
z Member ports
If no argument/keyword is specified, this command displays the VLAN IDs of all the
existing VLANs. If the dynamic or static keyword is specified, this command displays
the amount and VLAN IDs of the existing VLANs that are created dynamically or
statically.
Related command: vlan.
Example
1-3
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
VLAN ID: 1
VLAN Type: static
Route Interface: not configured
IP Address: 192.168.0.39
Subnet Mask: 255.255.255.0
Description: VLAN 0001
Name: VLAN 0001
Tagged Ports: none
Untagged Ports:
Ethernet1/0/1 Ethernet1/0/2 Ethernet1/0/3
Ethernet1/0/4 Ethernet1/0/5 Ethernet1/0/6
Ethernet1/0/7 Ethernet1/0/8 Ethernet1/0/9
Ethernet1/0/10 Ethernet1/0/11 Ethernet1/0/12
Ethernet1/0/13 Ethernet1/0/14 Ethernet1/0/15
Ethernet1/0/16 Ethernet1/0/17 Ethernet1/0/18
Ethernet1/0/19 Ethernet1/0/20 Ethernet1/0/21
Ethernet1/0/22 Ethernet1/0/23 Ethernet1/0/24
Field Description
VLAN ID VLAN ID
Untagged Ports The ports that do not tag packets when sending packets
Syntax
View
System view
1-4
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
Parameter
Description
Use the interface Vlan-interface command to create a VLAN interface or enter VLAN
interface view.
Use the undo interface Vlan-interface command to delete the VLAN interface.
Related command: display interface Vlan-interface.
Example
1.1.5 name
Syntax
name text
undo name
View
VLAN view
Parameter
text: String that refers to the name of the current VLAN, in the range of 1 character to 32
characters. It can contain special characters and space.
Parameter
Example
1-5
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
1.1.6 shutdown
Syntax
shutdown
undo shutdown
View
Parameter
None
Description
Example
# Disable Vlan-interface2.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 2
[Quidway-Vlan-interface2] shutdown
1.1.7 vlan
Syntax
vlan vlan-id
undo vlan vlan-id1
1-6
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
View
System view
Parameter
vlan-id: ID of the VLAN which you want to create and whose view you want to enter.
This argument ranges from 1 to 4,094.
Description
Use the vlan command to enter VLAN view. If the VLAN identified by the vlan-id
argument does not exist, this command creates the VLAN and then enters VLAN view.
Use the undo vlan command to remove a VLAN.
Caution:
Example
# Remove VLAN 5.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] undo vlan 5
1.1.8 vlan to
Syntax
1-7
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
View
System view
Parameter
Description
Caution:
The undo vlan to command or the undo vlan all command cannot be used to remove
the VLANs kept by the protocol, the Voice VLANs, the default VLANs (VLAN 1), the
management VLANs and the probe VLANs for remote mirroring.
Example
1-8
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
1(default), 5
Syntax
port interface-list
undo port interface-list
View
VLAN view
Parameter
interface-list: List of Ethernet ports to be added to or removed from a VLAN. You need
to provide this argument in the form of interface-list = { interface-type interface-number
[ to interface-type interface-number ] } &<1-10>, where:
z interface-type is port type and interface-number is port number.
z The port number to the right of the to keyword must be larger than or equal to the
one to the left of the keyword.
z &<1-10> means that you can provide this argument repeatedly for up to 10 times.
Parameter
Caution:
The port command is only applicable to access ports. To add trunk ports and hybrid
ports to a VLAN, you can use the port trunk permit vlan and port hybrid vlan
commands in Ethernet port view. For the configuration procedure, refer to the section
“Port Basic Configuration” in Quidway S3900 Series Ethernet Switches – Operation
Manual.
Example
1-9
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
Syntax
View
Any view
Parameter
port number of the protocol to be displayed. If you do not use the to keyword, only one
port is specified. If you use the to keyword, multiple contiguous ports are specified. The
interface-type argument refers to the port type and the interface-number argument
Description
Use the display protocol-vlan interface command to display the protocol information
and protocol indexes configured for specified ports.
Example
# Display protocol information and protocol index configured for Ethernet1/0/1 and
Ethernet1/0/2 ports.
<Quidway> display protocol-vlan interface Ethernet1/0/1 to Ethernet1/0/2
Interface: Ethernet1/0/1
VLAN ID Protocol-Index Protocol-type
50 0 ip
80 1 ip
100 0 ip
100 1 ipx ethernetii
Interface: Ethernet1/0/2
VLAN ID Protocol-Index Protocol-type
1-10
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
50 1 ipx raw
80 2 at
100 3 snap etype 0x0abc
100 4 llc dsap 0xac ssap 0xbd
Syntax
View
Any view
Parameter
Description
Use the display protocol-vlan vlan command to display the protocol information and
protocol indexes configured for specified VLANs.
Related command: display vlan.
Example
# Display the protocol information and protocol indexes configured for VLAN 10
through VLAN 20.
<Quidway> display protocol-vlan vlan 10 to 20
VLAN ID: 10
VLAN Type: Protocol-based VLAN
Protocol-Index Protocol-Type
0 ip
1 ip
2 ipx ethernetii
3 at
VLAN ID: 15
VLAN Type: Protocol-based VLAN
Protocol-Index Protocol-Type
0 ip
1 snap etype 0x0abcd
1-11
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
Syntax
View
Parameter
Description
Use the port hybrid protocol-vlan vlan command to associate a port with the
protocol-based VLAN.
Use the undo port hybrid protocol-vlan vlan command to remove the association
between the specified protocol-based VLAN and a port.
Note:
z The port hybrid protocol-vlan vlan command can be executed on hybrid ports
only.
z Before you associate a port with the protocol-based VLAN, make sure the port
belongs to the protocol-based VLAN.
z When the undo port hybrid protocol-vlan vlan command is being executed, the
switch will prompt operation failure if the index of the specified protocol to be
removed does not exist. If a part of the specified protocol indexes to be removed do
not exist, the switch will remove the existing indexes when it prompts errors.
Example
1-12
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
1.3.4 protocol-vlan
Syntax
View
VLAN view
Parameter
1-13
Command Manual – VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN Configuration Commands
Note:
When you use the mode keyword to configure protocol-based VLANs, if you set the
etype arguments of Ethernet II or SNAP packets to 0x0800, 0x089b, and 0x8137, the
matched packets have the same format as that of IP, IPX, and Appletalk packets
respectively. In order that two commands do not configure the same protocol
repetitively, the switch will prompt you that you cannot specify the etype arguments of
Ethernet II and SNAP packets to 0x0800, 0x089b, and 0x8137.
Description
Use the protocol-vlan command to configure the protocol template used for
classifying protocol-based VLANs.
Use the undo protocol-vlan command to disable the configuration.
Related command: display protocol-vlan vlan.
Example
[Quidway] vlan 3
[Quidway-vlan3] protocol-vlan ip
Caution:
Because the IP protocol is closely associated with the ARP protocol, you are
recommended to configure the ARP protocol type when configuring the IP protocol type
and associate the two protocol types with the same port, in case that ARP packets and
IP packets are not assigned to the same VLAN, which will cause IP address resolution
failure.
# Configure an ARP protocol template. The code for the ARP protocol is 0x0806.
1-14
Command Manual – IP Address and IP Performance
Confiugration
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – IP Address and Performance
Confiugration
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IP Address Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display ip interface command to display information about one specific or all
interfaces.
Example
1-1
Command Manual – IP Address and Performance
Confiugration
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IP Address Configuration Commands
Router advert: 0
Router solicit: 0
Time exceed: 0
IP header bad: 0
Timestamp request: 0
Timestamp reply: 0
Information request: 0
Information reply: 0
Netmask request: 0
Netmask reply: 0
Unknown type: 0
Field Description
1-2
Command Manual – IP Address and Performance
Confiugration
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IP Address Configuration Commands
Field Description
1.1.2 ip address
Syntax
View
Parameter
1-3
Command Manual – IP Address and Performance
Confiugration
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IP Address Configuration Commands
Description
Use the ip address command to specify an IP address and mask for a VLAN or
loopback interface.
Use the undo ip address command to remove an IP address and mask of a VLAN or
loopback interface.
By default, a VLAN or loopback interface has no IP address.
Generally, it is enough to configure one IP address for an interface. However, you can
configure up to five IP addresses for an interface so that it can be connected to several
subnets. Among these IP addresses, one is the primary IP address and all the others
are secondary ones. The relationship between the primary address and the secondary
addresses is as follows:
z When you configure a primary IP address for an interface which already has a
primary IP address, the new address will replace the old one.
z If you execute the undo ip address command without any parameter, the switch
deletes both primary and secondary IP addresses of the interface. The undo ip
address ip-address { mask | mask-length } command is used to delete the
primary IP address. The undo ip address ip-address { mask | mask-length } sub
command is used to delete secondary IP addresses.
Note that a VLAN interface cannot be configured with a secondary IP address if the
interface has been configured to obtain an IP address by BOOTP or DHCP.
Related command: display ip interface.
Example
# Specify the IP address and subnet mask of VLAN interface 1 to 129.12.0.1 and
255.255.255.0 respectively.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway]interface Vlan-interface 1
[Quidway-Vlan-interface1] ip address 129.12.0.1 255.255.255.0
1-4
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Syntax
display fib
View
Any view
Parameter
None
Description
Use the display fib command to view the summary of the forwarding information base
(FIB). Each line indicates an FIB entry. The information includes: destination
address/mask length, next hop, current flag, timestamp, and output interface.
Example
Field Description
2-1
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Field Description
Flags:
U: A route is up and available.
G: Gateway route
H: Local host route
B: Blackhole route
Flag
D: Dynamic route
S: Static route
R: Rejected route
E: Multi-path equal-cost route
L: Route generated by ARP or ESIS
TimeStamp Timestamp
Syntax
View
Any view
Parameter
2-2
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Description
Use the display fib ip-address command to view the FIB entries matching the
destination IP address. Each line indicates an FIB entry. The information includes:
destination address/mask length, next hop, current flag, timestamp, and outbound
interface.
Example
# View the FIB entries whose destination addresses match 12.158.10.0 in the natural
mask range.
<Quidway>display fib 12.158.10.0
Route Entry Count: 1
Flag:
U:Usable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Reject E:Equal cost multi-path L:Generated by ARP or ESIS
Destination/Mask Nexthop Flag TimeStamp Interface
12.158.10.0/24 12.158.10.1 U t[85391] Vlan-interface10
# Display the FIB entries whose destination addresses are in the range of
12.158.10.0/24 to 12.158.10.6/24.
<Quidway>display fib 12.158.10.0 255.255.255.0 12.158.10.6 255.255.255.0
Route Entry Count: 1
Flag:
U:Usable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Reject E:Equal cost multi-path L:Generated by ARP or ESIS
Destination/Mask Nexthop Flag TimeStamp Interface
12.158.10.0/24 12.158.10.1 U t[85391] Vlan-interface10
Syntax
View
Any view
Parameter
2-3
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Description
Use the display fib acl command to view the FIB entries matching a specific ACL. For
ACL, refer to the ACL module of this manual.
Example
Syntax
View
Any view
2-4
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Parameter
begin: Displays the FIB entries from the first one containing the string identified by the
argument text.
exclude: Displays only those FIB entries excluding the character string text.
include: Display only those FIB entries containing the character string text.
text: Character string.
Description
Use the display fib | command to view the FIB entries output from the buffer
according to the regular expression and are related to the specific character string. For
the format of the regular expression, refer to the Configuration File Management
module of this manual.
Example
# View the lines starting from the first one containing the string 169.254.0.0.
<Quidway> display fib | begin 169.254.0.0
169.254.0.0/16 2.1.1.1 U t[0] Vlan-interface1
2.0.0.0/16 2.1.1.1 U t[0] Vlan-interface1
Syntax
View
Any view
Parameter
Description
Use the display fib ip-prefix command to view the FIB entries matching a specific
prefix list. For the prefix list, refer to IP Routing Policy Configuration of the Routing
Protocol module of this manual.
Example# View the prefix list abc.
<Quidway>display ip ip-prefix abc
name index conditions ip-prefix / mask GE LE
abc 10 permit 211.71.75.0/24 -- --
2-5
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display fib statistics command to view the total number of FIB entries.
Example
2-6
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display icmp statistics command to view the statistics about ICMP packets.
Related command: display ip interface and reset ip statistics.
Example
Table 2-2 Description on the fields of the display icmp statistics command
Field Description
2-7
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Field Description
Syntax
View
Any view
Parameter
Description
Use the display ip socket command to display the information of the current socket.
2-8
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Example
Field Description
Task Task ID
socketid Socket ID
2-9
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Field Description
Syntax
display ip statistics
View
Any view
Parameter
None
Description
Use the display ip statistics command to view the statistics about IP packets.
Related command: display ip interface and reset ip statistics.
Example
Field Description
2-10
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Field Description
Syntax
2-11
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
View
Any view
Parameter
None
Description
Use the display tcp statistics command to view the statistics about TCP packets.
Related command: display tcp status and reset tcp statistics.
Example
Sent packets:
Total: 665
urgent packets: 0
control packets: 5 (including 1 RST)
window probe packets: 0, window update packets: 2
data packets: 618 (8770 bytes) data packets retransmitted: 0 (0 bytes)
ACK-only packets: 40 (28 delayed)
2-12
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Table 2-5 Description on the fields of the display tcp statistics command
Field Description
2-13
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Field Description
Syntax
View
Any view
Parameter
None
Description
Use the display tcp status command to view the state of all the TCP connections so
that you can monitor TCP connections in real time.
2-14
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Example
Table 2-6 Description on the fields of the display tcp status command
Field Description
Syntax
View
Any view
Parameter
None
Description
Use the display udp statistics command to view the statistics about UDP packets.
Related command: reset udp statistics.
Example
2-15
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Total: 26320
checksum error: 0
shorter than header: 0, data length larger than packet: 0
no socket on port: 0
total broadcast or multicast packets : 25006
no socket broadcast or multicast packets: 24989
not delivered, input socket full: 0
input packets missing pcb cache: 1314
Sent packets:
Total: 7187
Table 2-7 Description on the fields of the display udp statistics command
Field Description
data length larger than Number of packets whose lengths are larger
packet than the packets
Sent
Total Total number of transmitted UDP packets
packet:
2-16
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
2.1.13 ip forward-broadcast
Syntax
ip forward-broadcast
undo ip forward-broadcast
View
System view
Parameter
None
Description
Example
Syntax
reset ip statistics
View
User view
Parameter
None
Description
Use the reset ip statistics command to clear the statistics about IP packets.
Related command: display ip interface and display ip statistics.
2-17
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Example
Syntax
View
User view
Parameter
None
Description
Use the reset tcp statistics command to clear the statistics about TCP packets.
Related command: display tcp statistics.
Example
Syntax
View
User view
Parameter
None
Description
Use the reset udp statistics command to clear the statistics about UDP packets.
Example
2-18
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Syntax
View
System view
Parameter
time-value: TCP finwait timer value, in seconds, with the value ranging from 76 to
3600.
Description
Use the tcp timer fin-timeout command to configure the TCP finwait timer.
Use the undo tcp timer fin-timeout command to restore the default value of the TCP
finwait timer.
The default value is 675 seconds.
When the TCP connection state changes from FIN_WAIT_1 to FIN_WAIT_2, the
finwait timer is enabled. If the switch does not receive FIN packets before finwait timer
time outs, the TCP connection will be terminated.
Related command: tcp timer syn-timeout and tcp window.
Example
# Configure the default value of the TCP finwait timer to 800 seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] tcp timer fin-timeout 800
Syntax
View
System view
Parameter
time-value: TCP synwait timer value, in seconds, with the value ranging from 2 to 600.
2-19
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
Description
Use the tcp timer syn-timeout command to configure the TCP synwait timer.
Use the undo tcp timer syn-timeout command to restore the default value of the
TCP synwait timer.
The default value is 75 seconds.
When sending the SYN packet, TCP starts the synwait timer. If the response packet is
not received before synwait times out, the TCP connection will be terminated.
Related command: tcp timer fin-timeout and tcp window.
Example
Syntax
View
System view
Parameter
window-size: The size of the transmission and receiving buffers measured in kilobytes
(KB), whose value ranges from 1 to 32.
Description
Use the tcp window command to configure the size of the transmission and receiving
buffers of the connection-oriented socket.
Use the undo tcp window command to restore the default size of the transmission
and receiving buffers of the connection-oriented socket.
By default, the size of the transmission and receiving buffers is 8 KB.
Related command: tcp timer fin-timeout and tcp timer syn-timeout.
Example
2-20
Command Manual – IP Address and Confiugration
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 2 IP Performance Configuration Commands
2-21
Command Manual - Management VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
description text
undo description
View
Parameter
Description
Example
# Configure VLAN 2 to be the management VLAN and specify the description string of
the VLAN 2 interface to be RESEARCH.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] vlan 2
[Quidway-vlan2] quit
[Quidway] management-vlan 2
[Quidway] interface Vlan-interface 2
[Quidway-Vlan-interface2] description RESEARCH
1-1
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Use the display interface Vlan-interface command to display the information about
the management VLAN interface, including the physical and link status, the format of
the sent frames, the MAC address, IP address (and subnet mask), description string
and MTU (maximum transmit unit) of the management VLAN.
Related command: interface Vlan-interface.
Example
# Display the information about the management VLAN interface. (Assume that VLAN
1 is the management VLAN.)
<Quidway> display interface Vlan-interface 1
Vlan-interface1 current state : DOWN
Line protocol current state : DOWN
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is
00e0-fc07-4101
Internet Address is 192.168.0.39/24 Primary
Description : HUAWEI, Quidway Series, Vlan-interface1 Interface
The Maximum Transmit Unit is 1500
Table 1-1 Description on the fields of the display interface Vlan-interface command
Field Description
Vlan-interface current state Current state of Vlan-interface1
Line protocol current state Current state of the line protocol
IP Sending Frames' Format Format of the frames that IP sends
MAC address corresponding to the
Hardware address
management VLAN interface
Internet Address Primary Primary IP address
Description VLAN interface description
1-2
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
The Maximum Transmit Unit The maximum transmit unit (MTU)
Syntax
display ip host
View
Any view
Parameter
None
Description
Use the display ip host command to display the names of all the hosts and their IP
addresses.
Example
Field Description
Host Host name
Age Valid duration of the host address
Flag. Only the static flag, namely, the
Flags host name configured manually is
supported currently
Address Host IP address
Syntax
1-3
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Any view
Parameter
Description
Use the display ip interface Vlan-interface command to display the information about
a specified interface.
Example
1-4
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Vlan-interface1 current state Current state of Vlan-interface1
Line protocol current state Current state of the line protocol
Internet Address IP address
Broadcast address Broadcast address
The Maximum Transmit Unit The maximum transmit unit (MTU)
IP input packets : 0, bytes : 0,
multicasts : 0 The number of input/output unicast
packets, bytes and multicast packets is
IP output packets : 0, bytes : 0, 0 respectively
multicasts : 0
TTL invalid packet number Number of TTL invalid packets received
ICMP packet input number: 0
Echo reply: 0
Unreachable: 0
Source quench: 0
Routing redirect: 0 The total number of ICMP packets
received, including echo reply packets,
Echo request: 0
unreachable packets, source quench
Router advert: 0 packets, routing redirect packets, echo
Router solicit: 0 request packets, router advert packets,
router solicit packets, time exceed
Time exceed: 0
packets, IP header bad packets,
IP header bad: 0 timestamp request packets, timestamp
Timestamp request: 0 reply packets, information request
packets, information reply packets,
Timestamp reply: 0
netmask request packets, netmask reply
Information request: 0 packets, and unknown type packets
Information reply: 0
Netmask request: 0
Netmask reply: 0
Unknown type: 0
Syntax
display ip routing-table
View
Any view
1-5
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
None
Description
Use the display ip routing-table command to display the summary information about
the routing table.
This command displays the summary information about a routing table, with the items
of a routing entry contained in one line. The information displayed includes destination
IP address/mask length, protocol, preference, cost, next hop and outbound interface.
The display ip routing-table command only displays the routes currently in use, that is,
the optimal routes.
Example
Field Description
Destination/Mask Destination IP address/mask length
Protocol Routing protocol that discovers the route
Syntax
1-6
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Any view
Parameter
acl-number: Number of a basic access control list (ACL), in the range of 2000 to 2999.
verbose: Displays the detailed information about the active and inactive routes filtered
by the specified ACL. If you do not specify this keyword, the summary information about
the active routes filtered by the specified ACL is displayed.
Description
Use the display ip routing-table acl command to display the routes permitted by the
specified basic ACL.
As this command displays the routes filtered by a basic ACL, you can use it to trace
routing policies.
Example
# Display the summary information about the active routes permitted by ACL 2000.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255
[Quidway-acl-basic-2000] rule deny source any
[Quidway-acl-basic-2000] display ip routing-table acl 2000
Routes matched by access-list 2000:
Summary count: 2
Destination/Mask Protocol Pre Cost Nexthop Interface
10.1.1.0/24 DIRECT 0 0 10.1.1.2 Vlan-interface1
10.1.1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0
Summary count: 2
1-7
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Vlinkindex: 0
State: <Int ActiveU Retain Unicast>
Age: 7:24 Cost: 0/0 tag: 0
Table 1-5 Description on the fields of the display ip routing-table acl command
Field Description
Destination Destination address
Mask Mask
Protocol Routing protocol that discovers the route
Preference Route preference
1-8
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Descriptions on the route state are as follows:
ActiveU Valid unicast route. “U” stands for unicast.
Blackhole route is the same as reject route except that a
router drops a packet traveling along a blackhole route
Blackhole
without sending ICMP unreachable messages to the
source of the packets.
Delete The route is deleted.
Gateway The route is not a direct route.
The route is a hidden route. For routes that are
temporarily unavailable for some reasons (such as the
Hidden
policy configured or the interface is down), you can hide
them for later use.
The route is held down. Holddown is a kind of route
advertisement policy used in some D-V (distance vector)
routing protocols (such as RIP) to avoid the propagation
Holddown
of some incorrect routes and improve the transmission
speed of route-unreachable information. For details,
refer to corresponding routing protocols.
1-9
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Use the display ip routing-table ip-address command to display the information about
the routes leading to the destination.
The output information of this command differs with the arguments/keywords specified
as follows:
z display ip routing-table ip-address
For the destination address ip-address, if there are some routes matched within the
natural mask range, all subnet routes will be displayed. Otherwise, only the active
routes which match ip-address longest will be displayed.
z display ip routing-table ip-address mask
Only the routes which match exactly the specified destination address and mask are
displayed.
z display ip routing-table ip-address longer-match
All routes with destination addresses matched within the natural mask range will be
displayed.
z display ip routing-table ip_address mask longer-match
All routes with destination addresses matched within the specified mask range will be
displayed.
1-10
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Display the detailed information of the routes with destination addresses matched
within the natural mask range.
<Quidway> display ip routing-table 169.0.0.0 verbose
Routing Tables:
Generate Default: no
+ = Active Route, - = Last Active, # = Both * = Next hop in use
Summary count:2
**Destination: 169.0.0.0 Mask: 255.0.0.0
Protocol: #Static Preference: 60
*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Cost: 0/0 Tag: 0
**Destination: 169.0.0.0 Mask: 255.254.0.0
Protocol: #Static Preference: 60
*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Cost: 0/0 Tag: 0
1-11
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Example
# Display the information about the routes with their destinations within the range of
1.1.1.0 to 2.2.2.0.
<Quidway> display ip routing-table 1.1.1.0 24 2.2.2.0 24
Routing tables:
Summary count: 3
Destination/Mask Protocol Pre Cost Nexthop Interface
1.1.1.0/24 DIRECT 0 0 1.1.1.1 Vlan-interface1
1-12
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Use the display ip routing-table ip-prefix command to display the information about
the routes matching a specified IP prefix list.
You can use this command to trace routing policies and display the routes matching a
specified IP prefix list.
If the specified IP prefix list does not exist, the detailed information about all the active
and inactive routes is displayed when you execute this command with the verbose
keyword specified, and only the summary information about all the active routes is
displayed if you execute this command with the verbose keyword not specified.
Example
# Display the summary information about the active routes matching the IP prefix list
named abc2.
[Quidway] display ip routing-table ip-prefix abc2
Routes matched by ip-prefix abc2:
Summary count: 2
Destination/Mask Protocol Pre Cost Nexthop Interface
10.1.1.0/24 DIRECT 0 0 10.1.1.2 Vlan-interface1
10.1.1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0
1-13
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Summary count: 2
**Destination: 10.1.1.0 Mask: 255.255.255.0
Protocol: #DIRECT Preference: 0
*NextHop: 10.1.1.2 Interface: 10.1.1.2(Vlan-interface1)
Vlinkindex: 0
State: <Int ActiveU Retain Unicast>
Age: 3:23:44 Cost: 0/0 Tag: 0
Syntax
View
Any view
Parameter
Description
Use the display ip routing-table protocol command to display the information about
specific routes.
1-14
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
The information about the OSPF protocol cannot be displayed on S3900-SI series
switches.
Example
Syntax
View
Any view
1-15
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
None
Description
Use the display ip routing-table radix command to display the information about the
routes in a routing table in a hierarchical way.
Example
+--8+--{127.0.0.0
+-32+--{127.0.0.1
Table 1-6 Description on the fields of the display ip routing-table radix command
Field Description
INET Address family
Inodes Number of nodes
Syntax
View
Any view
Parameter
None
Description
1-16
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
Field Description
Routing protocol: O_ASE indicates OSPF_ASE routes,
Proto O_NSSA indicates OSPF NSSA routes, and AGGRE
indicates the aggregated routes.
route Total number of routes
active Number of the active routes that are in currently in use
Number of the routes that are added to the routing table after
added
the switch starts or the routing table is cleared last time
Number of the routes with deleted flags (this type of routes
deleted
will be freed after a period of time)
Total Total number of various routes
Syntax
View
Any view
Parameter
None
1-17
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
Destinations: 2 Routes: 2
Holddown: 0 Delete: 0 Hidden: 0
The statistics of the routing table are displayed first, and then the detailed descriptions
of each route. Table 1-5 describes the route states and Table 1-8 describes the
statistics information about the routing table.
Table 1-8 Description on the fields of the display ip routing-table verbose command
Field Description
Holddown Number of the routes that are held down
Delete Number of the deleted routes
Hidden Number of the hidden routes
1-18
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
System view
Parameter
Description
Example
1.1.15 ip address
Syntax
1-19
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Parameter
Description
Example
# Assign an IP address (and the mask) to the management VLAN interface. (Assume
that VLAN 1 is the management VLAN.)
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] ip address 192.168.0.39 255.255.255.0
1.1.16 ip host
Syntax
View
System view
Parameter
1-20
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the ip host command to configure a host name and the corresponding IP address
for a switch.
Use the undo ip host command to remove the host name and the corresponding IP
address of a switch.
By default, the host name and the corresponding IP address of a switch are null.
Related command: display ip host.
Example
1.1.17 ip route-static
Syntax
View
System view
Parameter
1-21
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
1.1.18 management-vlan
Syntax
management-vlan vlan-id
undo management-vlan
View
System view
Parameter
1-22
Command Manual - Management VLAN Chapter 1 Management VLAN Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
1.1.19 shutdown
Syntax
shutdown
undo shutdown
View
Parameter
None
Description
Example
# Bring up the management VLAN interface. (Assume that VLAN 1 is the management
VLAN.)
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] undo shutdown
1-23
Command Manual - Management VLAN Chapter 2 DHCP/BOOTP Client
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration
Syntax
View
User view
Parameter
all: Enables all types of debugging for dynamic host configuration protocol (DHCP) or
bootstrap protocol (BOOTP) client.
error: Enables debugging for DHCP/BOOTP client error messages (including the
information about unidentified packets).
event: Enables debugging for DHCP/BOOTP client events (including address
allocation and data update).
packet: Enables debugging for packets received/transmitted by a DHCP/BOOTP
client.
Description
Use the debugging dhcp client command to enable debugging for the DHCP/BOOTP
client.
Use the undo debugging dhcp client command to disable debugging output.
By default, debugging for DHCP/BOOTP client is disabled.
Disable debugging as soon as debugging is over, because debugging occupies plenty
of system resources.
Example
2-1
Command Manual - Management VLAN Chapter 2 DHCP/BOOTP Client
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration
Syntax
View
User view
Parameter
None
Description
Use the debugging dhcp irf xha command to enable the hot backup debugging for
the DHCP/BOOTP client.
Use the undo debugging dhcp irf xha command to disable the hot backup debugging
for the DHCP/BOOTP client.
The hot backup debugging for the DHCP/BOOTP client is disabled by default.
Example
Syntax
View
Any view
Parameter
verbose: Displays the detailed the DHCP client information about address allocation.
Description
Use the display dhcp client command to display the DHCP client-related information.
Example
2-2
Command Manual - Management VLAN Chapter 2 DHCP/BOOTP Client
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration
Vlan-interface1:
Current machine state: BOUND
Alloced IP: 169.254.0.2 255.255.0.0
Alloced lease: 86400 seconds, T1: 43200 seconds, T2: 75600 seconds
Lease from 2002.09.20 01:05:03 to 2002.09.21 01:05:03
Server IP: 169.254.0.1
Transaction ID = 0x3d8a7431
Default router: 2.2.2.2
DNS server: 1.1.1.1
Domain name: huawei-3com.com
Client ID: 00e0-fc0a-c3ef
Next timeout will happen after 0 days 11 hours 56 minutes 1 seconds.
Table 2-1 Description on the fields of the display dhcp client command
Field Description
VLAN interface operating as a DHCP client to obtain an
Vlan-interface1
IP address dynamically
Current machine state The state of the client state machine
Alloced IP IP address allocated to the DHCP client
lease Lease period
2-3
Command Manual - Management VLAN Chapter 2 DHCP/BOOTP Client
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration
Syntax
ip address dhcp-alloc
undo ip address dhcp-alloc
View
Parameter
None
Description
Example
Syntax
View
Any view
Parameter
2-4
Command Manual - Management VLAN Chapter 2 DHCP/BOOTP Client
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration
Description
Use the display bootp client command to display BOOTP client-related information,
including the MAC address of the BOOTP client and the IP address obtained.
Example
Table 2-2 Description on the fields of the display bootp client command
Field Description
Management VLAN interface 1 is configured to obtain
Vlan-interface1
an IP address through BOOTP.
Allocated IP IP address allocated to VLAN interface 1
Transaction ID Value of the XID field in BOOTP packets
Syntax
ip address bootp-alloc
undo ip address bootp-alloc
View
Parameter
None
Description
2-5
Command Manual - Management VLAN Chapter 2 DHCP/BOOTP Client
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration
Example
2-6
Command Manual – Voice VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Voice VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Voice VLAN Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display voice error-info command to display the ports on which the voice
VLAN function fails to be enabled.
Note:
When the number of ACL applied to a port reaches to its upper limit, the voice VLAN
function can not be enabled on the port.
Example
# Display the ports on which the voice VLAN function fails to be enabled.
<Quidway> display voice vlan error-info
Fail to apply voice VLAN ACL rules to the following port(s):
Ethernet1/0/10 Ethernet1/0/15
Syntax
View
Any view
1-1
Command Manual – Voice VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Voice VLAN Configuration Commands
Parameter
None
Description
Use the display voice vlan oui command to display the currently supported OUI
addresses and the related information.
Related command: voice vlan voice, vlan enable.
Example
# Display the OUI addresses and the related information of the voice VLAN.
<Quidway> display voice vlan oui
Oui Address Mask Description
0003-6b00-0000 ffff-ff00-0000 Cisco phone
00ef-e200-0000 ffff-ff00-0000 H3C Aolynk phone
00d0-1e00-0000 ffff-ff00-0000 Pingtel phone
00e0-7500-0000 ffff-ff00-0000 Polycom phone
00e0-bb00-0000 ffff-ff00-0000 3Com phone
Syntax
View
Any view
Parameter
None
Description
Use the display voice vlan status command to display voice VLAN-related
information, including voice VLAN operation mode, port mode (manual mode or
automatic mode), and so on.
Related command: voice vlan, voice vlan enable.
Example
1-2
Command Manual – Voice VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Voice VLAN Configuration Commands
Table 1-1 Description on the fields of the display voice vlan status command
Field Description
The status of global voice VLAN function:
Voice Vlan status
enabled/disabled
The VLAN which is currently enabled with voice
Voice Vlan ID
VLAN function.
The status of voice VLAN security mode:
Voice Vlan security mode
enabled/disabled.
Voice Vlan aging time The voice VLAN aging time
Caution:
The “Current voice vlan enable port mode” field lists the ports with the voice VLAN
function enabled. Note that a port listed in this field may not currently operate in a voice
VLAN. To check the ports operating in the current voice VLAN, use the display vlan
command, which is described in section 0“
display vlan”.
Syntax
View
Any view
Parameter
vlan-id: Voice VLAN ID in the range of 1 to 4094. VLAN 1 can not be enabled with voice
VLAN function.
1-3
Command Manual – Voice VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Voice VLAN Configuration Commands
Description
Use the display vlan command to display the ports in the current voice VLAN.
Related command: voice vlan.
Example
# Display the ports included in the current voice VLAN, assuming that the current voice
VLAN is VLAN 6.
<Quidway> display vlan 6
VLAN ID: 6
VLAN Type: static
Route Interface: not configured
Description: VLAN 0006
Name: VLAN 0006
Tagged Ports:
Ethernet1/0/5
Untagged Ports:
Ethernet1/0/6
The output indicates that Ethernet1/0/5 and Ethernet1/0/6 ports are in the current voice
VLAN.
Syntax
View
System view
Parameter
vlan-id: ID of the VLAN that needs to be enabled with the voice VLAN function, ranging
from 2 to 4094.
Description
Use the voice vlan command to enable the voice VLAN function globally.
Use the undo voice vlan enable command to disable the voice VLAN function
globally.
1-4
Command Manual – Voice VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Voice VLAN Configuration Commands
Caution:
z When you are enabling voice VLAN function for a specified VLAN, the specified
VLAN must exist, otherwise, your configuration fails.
z If you want to delete a VLAN with voice VLAN function enabled, you must disable
the voice VLAN function first.
z The voice VLAN function can be enabled for only one VLAN at the same time.
Example
# Create VLAN 2, and enable the voice VLAN function for it.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] vlan 2
[Quidway-vlan2] quit
[Quidway] voice vlan 2 enable
# After the voice function of VLAN2 is enabled, if you enable the voice VLAN function
for other VLANs, the system will prompt that your configuration fails.
[Quidway] voice vlan 4 enable
Can't change voice vlan configuration when other voice vlan is running
Syntax
View
System view
Parameter
minutes: Aging time (in minutes) to be set for a voice VLAN. This argument ranges from
5 to 43,200 and defaults to 1,440.
Description
Use the voice vlan aging command to set the aging time for a voice VLAN.
Use the undo voice vlan aging command to restore the default aging time for a voice
VLAN.
1-5
Command Manual – Voice VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Voice VLAN Configuration Commands
Example
Syntax
View
Parameter
None
Description
Use the voice vlan enable command to enable the voice VLAN function for a port.
Use the undo voice vlan enable command to disable the voice VLAN function for a
port.
The voice VLAN function takes effect on a port only when it is enabled in both system
view and port view. Note that the operation to enable the voice VLAN function for a port
is independent of that to enable the function globally.
Related command: display voice vlan status.
Example
1-6
Command Manual – Voice VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Voice VLAN Configuration Commands
Syntax
View
System view
Parameter
oui: MAC address to be set. You need to provide this argument in the format of H-H-H.
oui-mask: MAC address mask in the format of H-H-H. This argument specifies the valid
bits of the MAC address.
text: Description string of the MAC address. This argument can contain 1 to 30
characters.
Description
Use the voice vlan mac-address command to set a MAC address used for a voice
VLAN to identify voice devices.
Use the undo voice vlan mac-address command to disable a MAC address from
being used to identify voice devices.
A switch can use up to 16 MAC addresses to identify voice devices, including the five
default OUI addresses (as listed in Table 1-2). When the number of MAC addresses
reaches 16, you will fail to add new MAC addresses.
Example
# Set 00aa-bb00-0000 as an OUI address, with the description string being “ABC”.
<Quidway> system-view
1-7
Command Manual – Voice VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Voice VLAN Configuration Commands
Syntax
View
Parameter
None
Description
Use the voice vlan mode auto command to configure an Ethernet port to operate in
the automatic voice VLAN mode.
Use the undo voice vlan mode auto command to configure an Ethernet port to
operate in the manual voice VLAN mode.
By default, an Ethernet port operates in the automatic voice VLAN mode.
Related command: display voice vlan status.
Example
Syntax
View
System view
1-8
Command Manual – Voice VLAN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Voice VLAN Configuration Commands
Parameter
None
Description
Use the voice vlan security enable command to enable the voice VLAN security
mode.
Use the undo voice vlan security enable command to disable the voice VLAN
security mode.
In the voice VLAN security mode, the ports in a voice VLAN and with voice devices
attached to can only forward voice data. Data packets with their MAC addresses not
among the OUI addresses that can be identified by the system will be dropped. This
mode has no effects on other VLANs.
By default, the voice VLAN security mode is enabled.
Related command: display voice vlan status.
Example
1-9
Command Manual – GVRP
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – GVRP
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 1 GVRP Configuration Commands
Syntax
View
Any view
Parameter
interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing
this argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index lists for this argument.
Description
Use the display garp statistics command to display the GARP statistics of specified
ports or all ports.
This command displays the following information:
z Number of the GMRP packets received
z Number of the GVRP packets received
z Number of the GMRP packets transmitted
z Number of the GVRP packets transmitted
z Number of the packets discarded
Example
1-1
Command Manual – GVRP
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 1 GVRP Configuration Commands
Syntax
View
Any view
Parameter
interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing
this argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index lists for this argument.
Description
Use the display garp timer command to display the settings of the GARP timers on
specified ports or all ports.
This command displays the settings of the following timers:
z Join timer
z Leave timer
z LeaveAll timer
z Hold timer
Related command: garp timer, garp timer leaveall.
Example
Syntax
1-2
Command Manual – GVRP
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 1 GVRP Configuration Commands
View
Parameter
hold: Sets the GARP Hold timer. When a GARP entity receives a piece of registration
information, it does not send out a Join message immediately. Instead, to save the
bandwidth resources, it starts the Hold timer, puts all registration information it receives
before the timer times out into one Join message and sends out the message after the
timer times out.
join: Sets the GARP Join timer. To transmit the Join messages reliably to other entities,
a GARP entity sends each Join message two times. The Join timer is used to define the
interval between the two sending operations of each Join message.
leave: Sets the GARP Leave timer. When a GARP entity expects to deregister a piece
of attribute information, it sends out a Leave message. Any GARP entity receiving this
message starts its Leave timer, and deregisters the attribute information if it does not
receives a Join message again before the timer times out.
timer-value: Timeout time (in centiseconds) of the GARP timer (Hold, Join or Leave) to
be set. This argument needs to be a multiple of 5. By default, it is 10, 20, and 60 for
Hold, Join and Leave timers respectively.
Description
Use the garp timer command to set a GARP timer (that is, the Hold timer, the Join timer,
or the Leaver timer) for an Ethernet port.
Use the undo garp timer command to restore the default setting of a GARP timer.
The timeout ranges of the timers vary depending on the timeout values you set for other
timers. If you want to set the timeout time of a timer to a value out of the current range,
you can set the timeout time of the associated timer to another value to change the
timeout range of this timer.
The following table describes the relations between the timers:
1-3
Command Manual – GVRP
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 1 GVRP Configuration Commands
Example
Syntax
View
System view
Parameter
timer-value: Setting (in centiseconds) of the GARP LeaveAll timer. You need to set this
argument with the Leave timer settings of other Ethernet ports as references. That is,
this argument needs to be larger than the Leave timer settings of any Ethernet ports.
Also note that this argument needs to be a multiple of 5 and cannot be larger than
32,765.
1-4
Command Manual – GVRP
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 1 GVRP Configuration Commands
By default, the LeaveAll timer is set to 1,000 centiseconds (that is, 10 seconds).
Description
Use the garp timer leaveall command to set the GARP LeaveAll timer.
Use the undo garp timer leaveall command to restore the default setting of the GARP
LeaveAll timer.
Once a GARP entity starts up, it starts the LeaveAll timer, and sends out a LeaveALL
message after the timer times out, so that other GARP entities can re-register all the
attribute information on this entity. After that, the entity restarts the LeaveAll timer to
begin a new cycle.
Related command: display garp timer.
Example
Syntax
View
User view
Parameter
interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing
this argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index lists for this argument.
Description
Use the reset garp statistics command to clear the GARP statistics (such as the
information about the packets received/sent/discarded by GVRP/GMRP) on specified
or all ports.
Executing the reset garp statistics command without any parameter clears the GARP
statistics of all ports.
Related command: display garp statistics.
1-5
Command Manual – GVRP
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 1 GVRP Configuration Commands
Example
Syntax
View
Any view
Parameter
interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing
this argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index lists for this argument.
Description
Use the display gvrp statistics command to display the GVRP statistics of specified
or all trunk ports.
This command displays the following information:
z GVRP status
z Number of the GVRP entries that fail to be registered
z Source MAC address of the previous GVRP PDU
z GVRP registration type of a port
Example
# Display the GVRP statistics of port Ethernet1/0/1, assuming that the port is a trunk
port.
<Quidway> display gvrp statistics interface Ethernet1/0/1
GVRP statistics on port Ethernet1/0/1
1-6
Command Manual – GVRP
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 1 GVRP Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display gvrp status command to display the global GVRP status (enabled or
disabled).
Example
1.2.3 gvrp
Syntax
gvrp
undo gvrp
View
Parameter
None
Description
Use the gvrp command to enable GVRP globally (in system view) or for a port (in
Ethernet port view).
Use the undo gvrp command to disable GVRP globally (in system view) or on a port (in
Ethernet port view).
By default, GVRP is disabled both globally and on ports.
Note that:
1-7
Command Manual – GVRP
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 1 GVRP Configuration Commands
z To enable GVRP for a port, you need to enable GVRP globally first.
z GVRP is disabled on any ports if GVRP is disabled globally. In this case, you
cannot enable GVRP for a port.
z You can enable/disable GVRP only on trunk ports.
z After you enable GVRP on a trunk port, you cannot change the port to other types.
Related command: display gvrp status.
Example
Syntax
View
Parameter
fixed: Allows the manual creation and registration of VLANs on the current port, and
inhibits the dynamic registration and deregistration of VLANs on the current port.
forbidden: Deregisters all the VLANs except VLAN 1 on the current port, and inhibits
the creation and registration of any other VLAN on the current port.
normal: Allows both manual and dynamic creation, registration, and Deregistration of
VLANs on the current port.
Description
Use the gvrp registration command to configure the GVRP registration type on a port.
Use the undo gvrp registration command to restore the default GVRP registration
type on a port.
By default, the registration type is normal.
Note that these commands can be operated only on trunk ports.
Related command: display gvrp statistics
1-8
Command Manual – GVRP
Quidway S3900 Series Ethernet Switches-Release
1510 Chapter 1 GVRP Configuration Commands
Example
1-9
Command Manual – Port BasicConfiguration
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1.1.2 broadcast-suppression
Syntax
View
Parameter
ratio: Maximum ratio of the received broadcast traffic to the total bandwidth on an
Ethernet port. The value ranges from 1 to 100 (in step of 1) and defaults to 100. The
smaller the ratio is, the less broadcast traffic is allowed.
max-pps: Maximum number of broadcast packets allowed to be received per second
on an Ethernet port (in pps).
z In system view, the max-pps argument is in the range of 1 to 262,143.
z In Ethernet port view, the max-pps argument is in the range of 1 to 148,810.
Description
1-1
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
The global broadcast suppression setting configured by the broadcast-suppression
command in system view takes effect on all Ethernet ports in the system except for the
reflection ports, stack ports and ports having their own broadcast suppression settings.
Example
# Allow incoming broadcast traffic on the Ethernet1/0/1 port to occupy at most 20% of
the bandwidth on the port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface ethernet 1/0/1
[Quidway-Ethernet1/0/1] broadcast-suppression 20
# Set the maximum number of broadcast packets that can be received per second by
the Ethernet1/0/1 port to 1000 pps.
[Quidway-Ethernet1/0/1] broadcast-suppression pps 1000
Syntax
View
System view
Parameter
1-2
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the copy configuration command to copy the configuration on a port to some
other ports to keep consistent configuration on them.
Note:
z If you specify a source aggregation group ID, the system uses the port with the
smallest port number in the aggregation group as the source.
z If you specify a destination aggregation group ID, the configuration of the source
port will be copied to all ports in the aggregation group and all ports in the group will
have the same configuration as that of the source port.
Example
1-3
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
z Any aggregation group port you input in the destination port list will be removed from
the list and the copy command will not take effect on the port. If you want an
aggregation group port to have the same configuration with the source port, you can
specify the aggregation group of the port as the destination (with the
destination-agg-id argument).
z Any voice-VLAN-enabled port you input in the destination port list will be removed
from the list.
1.1.4 description
Syntax
description text
undo description
View
Parameter
Description
Example
1-4
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Note:
For details about regular expression, refer to the “Configuration File Management”
module in this manual.
Description
Use the display brief interface command to display the brief configuration information
about one or all interfaces, including: interface type, link state, link rate, duplex attribute,
link type, default VLAN ID and description string.
This command is similar to the display interface command, but the information it
displays is briefer.
Note:
Currently, for the port types other than Ethernet port, this command only displays the
link state, and shows "--" in all other configuration information fields.
1-5
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
Table 1-1 Description on the fields of the display brief interface command
Field Description
Interface Port type
Syntax
View
Any view
Parameter
1-6
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
1-7
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Current Ethernet port status: up or
Ethernet1/0/1 current state
down
IP Sending Frames' Format Ethernet frame format
Hardware address Port hardware address
Media type Media type
Port hardware type Port hardware type
100Mbps-speed mode, full-duplex mode Current speed mode and duplex mode
Link speed type is force link, link duplex Link speed and duplex status ( force or
type is force link auto-negotiation)
Flow-control is enabled Status of flow-control on the port
Maximum frame length allowed on the
The Maximum Frame Length
port
Broadcast suppression ratio on the
Broadcast MAX-ratio
port
Unknown unicast suppression ratio on
Unicast MAX-ratio
the port
Multicast MAX-ratio Multicast suppression ratio on the port
Whether Jumbo frame is allowed on
Allow jumbo frame to pass
the port.
PVID Default VLAN ID of the port
Mdi type Network cable type
Port link-type Port link type
Identify the VLANs whose packets will
Tagged VLAN ID
be forwarded with tags on the port.
Identify the VLANs whose packets will
Untagged VLAN ID
be forwarded without tags on the port.
Last 300 seconds input: 0 packets/sec 0
bytes/sec Rate and number of incoming and
outgoing packets in the last 300
Last 300 seconds output: 0 packets/sec 0 seconds
bytes/sec
1-8
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Input(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, - pauses
Input(normal): - packets, - bytes
- broadcasts, - multicasts, - pauses
Input: 0 input errors, 0 runts, 0 giants, -
throttles, 0 CRC
0 frame, - overruns, 0 aborts, 0 Statistics on the incoming and
ignored, - parity errors outgoing packets and errors on the
Output(total): 0 packets, 0 bytes port
0 broadcasts, 0 multicasts, 0 pauses The “-” indicates that the statistical
item is not supported.
Output(normal): - packets, - bytes
- broadcasts, - multicasts, - pauses
Output: 0 output errors, - underruns, -
buffer failures
0 aborts, 0 deferred, 0 collisions, 0
late collisions
0 lost carrier, - no carrier
Syntax
display loopback-detection
View
Any view
Parameter
None
Description
Example
1-9
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Port Ethernet1/0/1 Loopback detection is enabled on the
loopback-detection is running Ethernet1/0/1.
system Loopback-detection is
Loopback detection is enabled globally.
running
Time interval for loopback detection is 30
Detection interval time is 30 seconds
seconds.
There is no port existing loopback link No loopback port exists.
Syntax
View
Any view
Parameter
Description
Example
1-10
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Wave Length(nm) : -
Vendor Name : 3Com
Serial Number : L1RP3N0067090
3C Number :
Transfer Distance(m)
9um Fiber : 0
50um Fiber : 550
62.5um Fiber : 270
Copper Line : 0
Syntax
View
Any view
Parameter
Description
Use the display port command to check whether there are hybrid or trunk ports in the
current system and display such ports (if available).
Example
The above information shows the current system has two hybrid ports: Ethernet1/0/1
and Ethernet1/0/2.
Syntax
View
Any view
1-11
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
Description
Use the display unit command to display information about the ports on a specified
unit.
Example
1-12
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Aux1/0/0 The description string of the AUX port is "Aux
Description : Aux Interface Interface".
1.1.11 duplex
Syntax
View
Parameter
Description
Use the duplex command to set the duplex mode of the current port.
Use the undo duplex command to restore the default duplex mode, that is,
auto-negotiation.
By default, the port is in auto-negotiation mode.
Related command: speed.
Example
1-13
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1.1.12 flow-control
Syntax
flow-control
undo flow-control
View
Parameter
None
Description
Use the flow-control command to enable flow control on the current Ethernet port.
Use the undo flow-control command to disable flow control on the port.
Suppose flow control is enabled on both the local and peer switches. When congestion
occurs on the local switch,
z the local switch sends a message to notify the peer switch of stopping sending
packets to itself temporarily,
z the peer switch will stop sending packets to the local switch temporarily when it
receives the message; and vice versa. By this way, packet loss is avoided and the
network service operates normally.
By default, flow control is disabled on a port.
Example
Syntax
flow-interval interval
undo flow-interval
1-14
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Parameter
Interval: Interval (in seconds) to perform statistics on port information. This argument
ranges from 5 to 300 (in step of 5) and is 300 by default.
Description
Use the flow-interval command to set the interval to perform statistics on port
information.
Use the undo flow-interval command to restore the default interval.
By default, this interval is 300 seconds.
When you use the display interface interface-type interface-number command to
display the information of a port, the system performs statistical analysis on the traffic
flow passing through the port during the specified interval and displays the average
rates in the interval. For example, if you set the interval to 100 seconds, the displayed
information is as follows:
Last 100 seconds input: 0 packets/sec 0 bytes/sec
Last 100 seconds output: 0 packets/sec 0 bytes/sec
Example
# Set the interval to perform statistics on the Ethernet1/0/1 port to 100 seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface ethernet 1/0/1
[Quidway-Ethernet1/0/1] flow-interval 100
Syntax
View
System view
Parameter
None
1-15
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the giant-frame statistics enable command to enable the giant-frame statistics
function.
Use the undo giant-frame statistics enable command to disable the giant-frame
statistics function.
By default, the giant-frame statistics function is not enabled.
Example
1.1.15 interface
Syntax
View
System view
Parameter
1-16
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the interface command to enter Ethernet port view. To configure parameters for a
port, you must enter the port view first.
Example
Syntax
jumboframe enable
undo jumboframe enable
View
Parameter
None
Description
Use the jumboframe enable command to allow jumbo frames that are not larger than
9216 bytes to pass through the current Ethernet port.
1-17
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Use the undo jumboframe enable command to allow frames that are not larger than
1536 bytes to pass through the current Ethernet port.
By default, frames that are not larger than 9216 bytes are allowed to pass through the
Ethernet port.
Example
# Allow frames that are not larger than 9216 bytes to pass through
GigabitEthernet1/0/1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface ethernet 1/0/1
[Quidway-Ethernet1/0/1] jumboframe enable
1.1.17 loopback
Syntax
View
Parameter
external: Performs external loop test. In the external loop test, self-loop headers
(which are made from four cores of the 8-core cables) must be used on the port of the
switch. The external loop test can locate the hardware failures on the port.
internal: Performs internal loop test. In the internal loop test, self loop is established in
the switching chip to locate the chip failure which is related to the port.
Description
Use the loopback command to perform a loopback test on the current Ethernet port to
check whether the Ethernet port works normally. The loopback test terminates
automatically after running for a specific period.
By default, no loopback test is performed on the Ethernet port.
Example
1-18
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
[Quidway-Ethernet1/0/1]
Syntax
View
Parameter
None
Description
Example
1-19
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
loopback-detection enable
undo loopback-detection enable
View
Parameter
None
Description
Example
Syntax
1-20
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
System view
Parameter
time: Time interval for loopback detection, in the range of 5 to 300 (in seconds). It is 30
seconds by default.
Description
Use the loopback-detection interval-time command to set time interval for loopback
detection.
Use the undo loopback-detection interval-time command to restore the default time
interval.
Example
Syntax
View
Parameter
None
Description
1-21
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Configure the system to run loopback detection on all VLANs of the Ethernet1/0/1
port (suppose it is a trunk or hybrid port).
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface ethernet 1/0/1
[Quidway-Ethernet1/0/1] port link-type trunk
[Quidway-Ethernet1/0/1] loopback-detection per-vlan enable
[Quidway-Ethernet1/0/1]
1.1.22 mdi
Syntax
View
Parameter
Description
Example
1-22
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1.1.23 multicast-suppression
Syntax
View
Parameter
ratio: Maximum ratio of received multicast traffic to the total bandwidth on the Ethernet
port. The value ranges from 1 to 100 (in step of 1) and defaults to 100. The smaller the
ratio is, the less multicast traffic is allowed to be received.
max-pps: Maximum number of multicast packets allowed to be received per second on
the Ethernet port (in pps). The value ranges from 1 to 148,810.
Description
Example
# Allow the incoming multicast traffic on the Ethernet1/0/1 port to occupy at most 20%
of the bandwidth on the port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface ethernet 1/0/1
[Quidway-Ethernet1/0/1] multicast-suppression 20
# Set the maximum number of multicast packets that can be received per second by the
Ethernet1/0/1 port to 1000 pps.
[Quidway-Ethernet1/0/1] multicast-suppression pps 1000
1-23
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Parameter
Caution:
All access ports belong to VLAN 1, which is the default VLAN of the system, so you are
not allowed to add an access port to VLAN 1 or remove an access port from VLAN 1.
Otherwise, the system will prompt: “Can't delete ports from or add ports to the default
VLAN!”.
Description
Use the port access vlan command to add the access port into the specified VLAN.
Use the undo port access vlan command to remove the access port from the
specified VLAN.
You must specify the ID of an existing VLAN in the command.
Example
1-24
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Parameter
Description
Use the port hybrid pvid vlan command to set the default VLAN ID for the hybrid port.
Use the undo port hybrid pvid command to restore the default VLAN ID of the port.
Related command: port link-type.
Caution:
You are recommended to set the default VLAN ID of the local hybrid or trunk ports to
the same value as that of the hybrid or trunk ports on the peer switch. Otherwise,
packet forwarding may fail on the ports.
Example
Syntax
View
1-25
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
vlan-id-list: VLAN range to which the hybrid port will be added. vlan-id-list = [ vlan-id1
[ to vlan-id2 ] ]&<1-10>, where, vlan-id is in the range of 1 to 4094 and can be discrete,
and &<1-10> means you can input up to ten VLAN IDs/ID ranges.
tagged: Keeps VLAN tags when the packets of the specified VLANs are forwarded on
this port.
untagged: Keeps no VLAN tags when the packets of the specified VLANs are
forwarded on this port.
Description
Use the port hybrid vlan command to add the hybrid port into specified VLANs.
Use the undo port hybrid vlan command to remove the hybrid port from specified
VLANs.
A hybrid port can belong to multiple VLANs. When you use the command several times,
all VLAN specified in the commands will be allowed to pass the port.
The VLAN specified by the vlan-id argument must be existing. Otherwise, this
command is invalid. Related command: port link-type.
Example
# Add the hybrid port Ethernet1/0/1 to VLAN 2, VLAN 4 and VLAN 50 through VLAN
100, with tags assigned to their packets.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] vlan 2
[Quidway-vlan2] quit
[Quidway] interface ethernet 1/0/1
[Quidway-Ethernet1/0/1] port link-type hybrid
[Quidway-Ethernet1/0/1] port hybrid vlan 2 4 50 to 100 tagged
Operation complete, except these VLAN(s):
Non-existent VLAN(s)
Syntax
View
1-26
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
Description
Use the port link-type command to set the link type of the current Ethernet port.
Use the undo port link-type command to restore the default link type.
By default, the link type of any port is access.
Pay attention to the following:
z The four types of ports can co-exist on the same Ethernet switch. However, the
trunk, hybrid and fabric ports cannot be directly switched between the three types
(trunk, hybrid and fabric). To set a trunk/hybrid/fabric port to another type (different
from access), you must first set the port to an access port and then set the access
port to the required type. For example, a trunk port cannot be set to a hybrid port
directly. You must set the trunk port to an access port and then set it to a hybrid
port.
z If you set a fabric port to an access port after the IRF stack is formed, the stack will
be split and the system will prompt “Warning! This operation maybe split the
fabric.” For details about fabric port, refer to module “IRF Fabric” in this manual.
Example
Syntax
View
1-27
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
vlan-id-list: VLAN range to which the trunk port will be added. vlan-id-list = [ vlan-id1 [ to
vlan-id2 ] ]&<1-10>, where, vlan-id is in the range of 1 to 4094 and can be discrete, and
&<1-10> means you can input up to ten VLAN IDs/ID ranges.
all: Adds the trunk port into all VLANs.
Description
Use the port trunk permit vlan command to add the trunk port into the specified
VLAN.
Use the undo port trunk permit vlan command to remove the hybrid port from the
specified VLAN.
A trunk port can belong to multiple VLANs. When you use the command several times,
all VLAN specified in the commands will be allowed to pass the port.
Related command: port link-type.
Example
# Add the trunk port Ethernet1/0/1 to VLAN 2, VLAN 4 and VLAN 50 through VLAN
100.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface ethernet1/0/1
[Quidway-Ethernet1/0/1] port link-type trunk
[Quidway-Ethernet1/0/1] port trunk permit vlan 2 4 50 to 100
Please wait... Done.
Syntax
View
Parameter
Description
Use the port trunk pvid vlan command to set the default VLAN ID for the trunk port.
Use the undo port trunk pvid command to restore the default setting.
1-28
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
To guarantee the proper packet transmission, the default VLAN ID of the local trunk port
must be identical with that of the trunk port on the peer switch connected with the local
trunk port.
Related command: port link-type.
Example
Syntax
View
User view
Parameter
Description
Use the reset counters interface command to clear the statistics of the port, preparing
for a new statistics collection.
z If you specify neither port type nor port number, the command clears statistics of
all ports.
z If specify only port type, the command clears statistics of all ports of this type.
z If specify both port type and port number, the command clears statistics of the
specified port.
The statistics of the 802.1x-enabled ports cannot be cleared.
Example
1-29
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1.1.31 shutdown
Syntax
shutdown
undo shutdown
View
Parameter
None
Description
Example
# Enable Ethernet1/0/1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface ethernet 1/0/1
[Quidway-Ethernet1/0/1] shutdown
[Quidway-Ethernet1/0/1] undo shutdown
1.1.32 speed
Syntax
View
Parameter
1-30
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
1.1.33 unicast-suppression
Syntax
View
Parameter
ratio: Maximum ratio of received unknown unicast traffic to the total bandwidth on the
Ethernet port. The value ranges from 1 to 100 (in step of 1) and defaults to 100. The
smaller the ratio is, the lesser unknown unicast traffic is allowed to be received.
max-pps: Maximum number of unknown unicast packets allowed to be received per
second on the Ethernet port (in pps). The value ranges from 1 to 148,810.
Description
Use the unicast-suppression command to limit the unknown unicast traffic allowed to
be received on the current port.
Use the undo broadcast-suppression command to restore the default unknown
unicast suppression setting on the port.
When incoming unknown unicast traffic exceeds the unknown unicast traffic threshold
you set, the system drops the packets exceeding the threshold to reduce the unknown
unicast traffic ratio to the reasonable range, so as to keep normal network service.
1-31
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Allow unknown incoming unicast traffic on the Ethernet1/0/1 port to occupy at most
20% of the bandwidth on the port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface ethernet 1/0/1
[Quidway-Ethernet1/0/1] unicast-suppression 20
# Set the maximum number of unknown unicast packets that can be received per
second by the Ethernet1/0/1 port to 1000 pps.
[Quidway-Ethernet1/0/1] unicast-suppression pps 1000
1.1.34 virtual-cable-test
Syntax
virtual-cable-test
View
Parameter
None
Description
Use the virtual-cable-test command to enable the system to test the cable connected
to a specific port and to display the results. The system can test these attributes of the
cable:
z Cable status, including normal, abnormal, abnormal-open, abnormal-short and
failure
z Cable length
Note:
z If the cable is in normal state, the displayed length value is the total length of the
cable.
z If the cable is in any other state, the displayed length value is the length from the
port to the faulty point.
1-32
Command Manual – Port Basic Configuration Chapter 1 Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
z Pair skew
z Pair swap
z Pair polarity
z Insertion loss
z Return loss
z Near-end crosstalk
By default, the system does not test the cable connected to the Ethernet port.
Note:
The combo port does not support the virtual-cable-test command.
Example
1-33
Command Manual – Link Aggregation
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Link Aggregation Chapter 1 Link Aggregation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Use the display link-aggregation interface command to display the link aggregation
details about a specified port or port range, including:
z Link aggregation group ID, port priority, operation key and protocol status flag of
the port at the local end,
z Device ID, port number, port priority, operation key and protocol status flag at the
remote end, and,
z LACP protocol packet statistics.
Note that, for a manual aggregation group, value 0 is displayed for all the above items
of the remote end (which does not indicate the real information of the remote end),
since information about the remote end cannot be obtained for a manual aggregation
group.
Example
1-1
Command Manual – Link Aggregation Chapter 1 Link Aggregation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Syntax
View
Any view
Parameter
None
1-2
Command Manual – Link Aggregation Chapter 1 Link Aggregation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
Field Description
Aggregation
Aggregation group type
Group Type
AL ID Aggregation group ID
1-3
Command Manual – Link Aggregation Chapter 1 Link Aggregation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Syntax
View
Any view
Parameter
agg-id: Aggregation group ID, which ranges from 1 to 416 and must be the ID of an
existing aggregation group.
Description
Use the display link-aggregation verbose command to display the details about a
specified aggregation group, including:
z Aggregation group ID, aggregation group type, load sharing type, aggregation
group description string, and device ID;
z Local end details: local port, port status, port priority, operation key and protocol
status flag;
z Remote end details: local port, remote port index, remote port priority, operation
key, device ID and protocol status flag.
Note that, for a manual aggregation group, value 0 is displayed for all the above items
of the remote end (which does not indicate the real information of the remote end),
since information about the remote end cannot be obtained for a manual aggregation
group.
Example
1-4
Command Manual – Link Aggregation Chapter 1 Link Aggregation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Remote:
Actor Partner Priority Key SystemID Flag
--------------------------------------------------------------------------
Ethernet1/0/4 0 32768 0 0x8000,0000-0000-0000 {DEF}
Ethernet1/0/5 0 32768 0 0x8000,0000-0000-0000 {DEF}
Field Description
System ID Device ID
Syntax
View
Any view
Parameter
None
1-5
Command Manual – Link Aggregation Chapter 1 Link Aggregation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the display lacp system-id command to display the device ID of the local system,
including the system priority and the MAC address.
Related command: link-aggregation.
Example
Table 1-4 Description on the fields of the display lacp system-id command
Field Description
Syntax
lacp enable
undo lacp enable
View
Parameter
None
Description
Example
1-6
Command Manual – Link Aggregation Chapter 1 Link Aggregation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Parameter
Description
Use the lacp port-priority command to set the priority of the current port.
Use the undo lacp port-priority command to restore the default port priority.
Related command: display link-aggregation verbose, and display
link-aggregation interface.
Example
Syntax
View
System view
Parameter
Description
1-7
Command Manual – Link Aggregation Chapter 1 Link Aggregation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
Syntax
View
System view
Parameter
Description
Use the link-aggregation group agg-id description command to set a description for
an aggregation group.
Use the undo link-aggregation group agg-id description command to remove the
description of the aggregation group.
Note:
If you have saved the current configuration with the save command, after system
reboot, the manual and static aggregation groups and their descriptions still exist, but
the dynamic aggregation groups and their descriptions disappear.
Example
1-8
Command Manual – Link Aggregation Chapter 1 Link Aggregation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
System view
Parameter
Description
Use the link-aggregation group agg-id mode command to create a manual or static
aggregation group.
Use the undo link-aggregation group command to remove an aggregation group.
Related command: display link-aggregation summary.
Example
Syntax
View
Parameter
1-9
Command Manual – Link Aggregation Chapter 1 Link Aggregation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the port link-aggregation group command to add the current Ethernet port to a
manual or static aggregation group.
Use the undo port link-aggregation group command to remove the current Ethernet
port from the aggregation group.
Related command: display link-aggregation verbose.
Example
Syntax
View
User view
Parameter
Description
Use the reset lacp statistics command to clear LACP statistics on specified port(s),
or on all ports if no port is specified.
Related command: display link-aggregation interface.
Example
1-10
Command Manual - Port Isolation
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual - Port Isolation Chapter 1 Port Isolation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
None
Description
Use the display isolate port command to display the information about the Ethernet
ports added to an isolation group.
Example
# Display the information about the Ethernet ports added to the isolation group.
<Quidway> display isolate port
Isolated port(s) on UNIT 1:
Ethernet1/0/2, Ethernet1/0/3, Ethernet1/0/4
The information above shows that Ethernet1/0/2, Ethernet1/0/3, and Ethernet1/04 are
in the isolation group.
Syntax
port isolate
undo port isolate
View
Parameter
None
1-1
Command Manual - Port Isolation Chapter 1 Port Isolation Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the port isolate command to add an Ethernet port to the isolation group.
Use the undo port isolate command to remove an Ethernet port from the isolation
group.
Note:
When the port isolate command or undo port isolate command is executed, the
other ports which are in the same aggregation group with the current port in the local
unit will be added to or removed from the isolation group together at the same time.
Example
1-2
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Syntax
View
Any view
Parameter
Description
Use the display mac-address security command to display the information about
Security MAC address, including the MAC address learned by the port, VLAN ID of the
port, current port state, port number, and MAC address aging time.
By checking the output of this command, you can verify the current configuration.
Example
Syntax
1-1
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
View
Any view
Parameter
interface-list: Specifies an Ethernet port list, which can contain multiple Ethernet ports.
The interface-list argument is in the format of { interface-type interface-number [ to
interface-type interface-number ] } & <1-10>, where interface-type represents the port
type, interface-number represents the port number, and & <1-10> means that you can
provide up to 10 port indexes/port index lists for this argument.
Description
Use the display port-security command to display the information about port security
configuration (including global configuration and all or specific port configuration).
By checking the output of this command, you can verify the current configuration.
Caution:
z This command will display global and all ports' security configuration information if
the interface-list argument is not specified.
z This command will display global and particular port's security configuration
information if the interface-list argument is specified.
Example
1-2
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Ethernet1/0/1 is link-down
Port mode is noRestriction
NeedtoKnow mode is needtoknowonly
Intrusion mode is disableport
Max mac-address num is 100
Stored mac-address num is 0
Authorization is permit
Field Description
The port security function is enabled on
Equipment port security is enabled
the switch.
The sending of address-learning trap
AddressLearn trap is Enabled
information is enabled.
The sending of intrusion-detection trap
Intrusion trap is Enabled
information is enabled.
The sending of 802.1x user logon
Dot1x logon trap is Enabled (authentication success) trap
information is enabled.
The sending of 802.1x user logoff trap
Dot1x logoff trap is Enabled
information is enabled.
The sending of 802.1x user
Dot1x logfailure trap is Enabled authentication failure trap information is
enabled.
The sending of RALM logon trap
RALM logon trap is Enabled
information is enabled.
The sending of RALM logoff trap
RALM logoff trap is Enabled
information is enabled.
The sending of RALM logfailure trap
RALM logfailure trap is Enabled
information is enabled.
Vlan id assigned is NULL The delivered VLAN ID is Null.
The temporary port-disabling time is 20
Disableport Timeout: 20 s
seconds.
OUI value The OUI value
The link state of the port Ethernet 1/0/1
Ethernet1/0/1 is link-down
is "down".
The security mode of the port is
Port mode is Userlogin
Userlogin.
NeedtoKnow mode is disabled The NTK mode is disabled.
1-3
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Field Description
Intrusion mode is The intrusion detection mode is
disableportTemporarily disableportTemporarily.
The maximum number of MAC
Max mac-address num is not configured addresses allowed to access the port is
not configured here.
The number of stored MAC address is
Stored mac-address num is 0
zero.
Authorization information delivered by
Authorization is permit the RADIUS server will be applied on the
port.
Syntax
View
Parameter
Note:
You may configure the parameter interface interface-type interface-number if the
command is run under system view.
Description
Use the mac-address security command to add Security MAC address manually.
Use the undo mac-address security command to delete Security MAC address.
By default, no Security MAC address is added.
1-4
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Note:
You can add Security MAC address only when the port-security is enabled globally and
the port-security port-mode autolearn command is configured on the port.
Example
# Configure the maximum number of MAC addresses allowed to access the port to 100.
[Quidway-Ethernet1/0/1] port-security max-mac-count 100
Syntax
port-security enable
undo port-security enable
View
System view
Parameter
None
Description
1-5
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Caution:
To avoid confliction, the following limitation on the 802.1x and the MAC address
authentication will be taken after port security is enabled:
z The access control mode (set by the dot1x port-control command) automatically
changes to auto.
z The dot1x, dot1x port-method, dot1x port-control and mac-authentication
commands cannot be used.
Example
Syntax
View
Parameter
disableport: Permanently disables the port and the sending of trap messages.
disableport-temporarily: Temporarily disables the port before re-enabling the port
after a prescribed period, and sending trap messages.
blockmac: Discards packets with illegal source MAC addresses and sends trap
information.
1-6
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Note:
You can use the port-security timer disableport command to set the time period
during which the port is disconnected in the disableport-temporarily mode
Description
Note:
By checking the source MAC addresses or the username and password for 802.1x
authentication in the inbound packets through a given port, intrusion protection detects
illegal packets and events and takes actions accordingly. These include disconnecting
ports temporarily/permanently and filtering packets with the MAC address, thereby
ensuring port security.
Intrusion Protection is enabled in the following cases:
z With MAC address learning disabled, the port receives the packets whose source
address is an unknown MAC address.
z When the number of MAC addresses that can be received through the port reaches
the preset maximum value, the port receives the packets whose source address is
an unknown MAC address.
z The user fails to pass 802.1x authentication or MAC address authentication.
After you have issued the intrusion-mode blockmac command, you can only use the
display port-security command to display blocked MAC addresses, which cannot be
configured as static MAC addresses again.
Example
1-7
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
# Set the action mode of the Intrusion Protection feature on Ethernet1/0/1 port to
disableport.
[Quidway-Ethernet1/0/1] port-security intrusion-mode disableport
Syntax
View
Parameter
None
Description
Example
# Configure not to apply the authorization information delivered by the RADIUS server
on the port Ethernet1/0/2.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet1/0/2
[Quidway-Ethernet1/0/2] port-security authorization ignore
1-8
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Syntax
View
Parameter
Description
Use the port-security max-mac-count command to set the maximum number of MAC
addresses allowed to access the port. The number is the sum of the following:
z Number of MAC addresses that pass 802.1x authentication
z Number of MAC addresses that pass MAC address authentication
z Number of Security MAC addresses
Use the undo port-security max-mac-count command to cancel this limit.
By default, there is no limit on the number of MAC addresses allowed to access the
port.
Example
# Set the maximum number of MAC addresses allowed to access the port to 100.
[Quidway-Ethernet1/0/1] port-security max-mac-count 100
Syntax
1-9
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
View
Parameter
Description
Use the port-security ntk-mode command to set the packet transmission mode when
the NTK feature is enabled.
Use the undo port-security ntk-mode command to cancel the packet transmission
mode that has been set.
Table 1-2 shows the modes in which the NTK feature is enabled.
Note:
By checking the destination MAC addresses of the data frames to be sent from a port,
this feature ensures that only successfully authenticated devices can obtain data
frames from the port so as to prevent illegal devices from filching network data.
Example
# Set the packet transmission mode of the NTK feature to ntk-withbroadcasts on the
current port.
[Quidway-Ethernet1/0/1] port-security ntk-mode ntk-withbroadcasts
1-10
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Syntax
View
System view
Parameter
OUI-value: OUI value. You can input a complete MAC address (hexadecimal) for this
argument and the system will calculate the OUI value from your input.
index-value: OUI index, ranging from 1 to 16.
Note:
z The organizationally unique identifiers (OUIs) are assigned by IEEE to different
equipment providers. Each OUI uniquely identifies an equipment provider in the
world and is the higher 24 bits of MAC address.
z You need only to input a complete hexadecimal MAC address for providing the
OUI-value argument in this command, and the system will automatically convert the
address to binary format and then take the higher 24 bits of the resulting binary data
as the OUI value.
Description
Use the port-security oui command to set an OUI value for authentication.
Use the undo port-security oui command to cancel an OUI value setting.
Caution:
The OUI value set by this command takes effect only when the security mode of the
port is set to userlogin-withoui (by the port-security port-mode command).
1-11
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Example
# Set an OUI value by specifying the MAC address 00ef-ec00-0000, and set the OUI
index to 5
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] port-security oui 00ef-ec00-0000 index 5
Syntax
View
Parameter
mode: Security mode of the port. See Table 1-2 for the values of this argument..
Description
Use the port-security port-mode command to set the security mode of the port.
Use the undo port-security port-mode command to restore the normal operating
mode of the port
Port Security mainly functions to define various security modes that allow devices to
learn legal source MAC addresses for network management. Any packet whose source
MAC address a device cannot learn in a security mode is considered illegal.
Table 1-2 details the available security modes:
Security
Description Feature
mode
In this mode, the learned MAC addresses will
change to Security MAC addresses. In the autolearn
and secure
This security mode will automatically change to
mode, the
the secure mode after the number of Security
device enables
MAC addresses from this port has reached that
the NTK and
autolearn configured with the port-security max mac
Intrusion
count command.
Protection
After this, new Security MAC address cannot be features upon
added. Only the packets whose source MAC detecting an
address is the Security MAC address can pass illegal packet.
the port.
1-12
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Security
Description Feature
mode
In this mode, the system is disabled from learning
MAC addresses from this port.
secure Only the packets whose original MAC addresses
are the configured static MAC addresses can
pass the port.
In this mode, the
NTK and
In this mode, port-based 802.1x authentication is Intrusion
userlogin
performed for connected users. Protection
features are not
enabled.
The port is enabled only after the access user
passes the 802.1x authentication. Even after the
port is enabled, only the packets of the In these modes,
successfully authenticated user can pass through the device
the port. enables the NTK
userlogin- In this mode, only one 802.1x-authenticated user and Intrusion
secure is allowed to access the port. Protection
When the port changes from the normal mode to features upon
this security mode, the system automatically detecting an
removes the existing dynamic MAC address illegal packet.
entries and authenticated MAC address entries
on the port.
This mode is similar to the userlogin-secure
mode, except that there can be one OUI-carrying
MAC address being successfully authenticated in
addition to the single 802.1x-authenticated user
userlogin- who is allowed to access the port.
withoui
When the port changes from the normal mode to
this security mode, the system automatically
removes the existing dynamic/authenticated MAC
address entries on the port.
1-13
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Security
Description Feature
mode
This mode is similar to the
userlogin-
userlogin-secure-or-mac mode, except that
secure-or-
there can be more than one 802.1x-authenticated
mac-ext
user on the port.
This mode is similar to the
userlogin-
userlogin-secure-else-mac mode, except that
secure-els
there can be more than one 802.1x-authenticated
e-mac-ext
user on the port.
Example
Syntax
View
System view
Parameter
timer: This argument ranges from 20 to 300 and defaults to 20 (in seconds)
Description
Use the port-security timer disableport command to set the time during which the
system temporarily disables a port.
Use undo port-security timer disableport command restore the default time.
1-14
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Note:
The time set by the port-security timer disableport command takes effect when the
disableport-temporarily mode is set by the port-security intrusion-mode
command.
Example
# Set the time during which the system temporarily disables a port to 50 seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] port-security timer disableport 50
Syntax
View
System view
Parameter
1-15
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Port Security Commands
Note:
RADIUS authenticated login using MAC-address (RALM) refers to MAC
address–based RADIUS authentication.
Description
Use the port-security trap command to enable the sending of the specified type(s) of
trap messages.
Use the undo port-security trap command to disable the sending of the specified
type(s) of trap messages.
By default, the system disables the sending of any types of trap messages.
Note:
This command is designed based on the Device Tracking feature. The Device Tracking
feature enables the switch to send trap messages in case special data packets
(generated by special actions such as illegal intrusion, and abnormal user logon/logoff)
pass through a port for the convenience of network administrator to monitor these
special actions.
When you use the display port-security command to view global information, the
system will display the trap messages enabled.
Related command: display port-security.
Example
1-16
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 Port Binding Commands
Syntax
View
System view
Parameter
Description
Use the am user-bind interface command to bind the MAC and IP addresses of a
legal user to a specified port.
Use the undo am user-bind interface command to cancel the binding.
After such a binding operation, only the valid user's packets can pass through the port.
Note:
The system allows only one binding operation for the same MAC address.
Example
# Bind the legal user whose MAC address is 00e0-fc00-5101 and IP address is
10.153.1.1 to Ethernet1/0/1 port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
2-1
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 Port Binding Commands
2.1.2 am user-bind
Syntax
View
Parameter
Description
Use the am user-bind command to bind the MAC and IP addresses of a legal user to
the current port.
Use the undo am user-bind command to cancel the binding.
After such a binding operation, only the valid user's packets can pass through the port.
Note:
The system allows only one binding operation for the same MAC address.
Example
# Bind the legal user whose MAC address is 00e0-fc00-5102 and whose IP address is
10.153.1.2 to Ethernet1/0/2 port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet1/0/2
[Quidway-Ethernet1/0/2] am user-bind mac-addr 00e0-fc00-5102 ip-addr
10.153.1.2
2-2
Command Manual – Port Security & Port Binding
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 Port Binding Commands
Syntax
View
Any view
Parameter
Description
Use the display am user-bind command to display the information about port binding.
By checking the output of this command, you can verify the current configuration.
Example
Total: 2 found.
The display shows that the following MAC addresses and IP addresses are bound to
two ports on Unit 1:
z MAC address 00e0-fc00-5101 and IP address 10.153.1.1 are bound to
Ethernet1/0/1.
z MAC address 00e0-fc00-5102 and IP address 10.153.1.2 are bound to
Ethernet1/0/2.
2-3
Command Manual - DLDP
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual - DLDP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DLDP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display dldp command to display the DLDP configuration information of the
specified Unit or the specified port.
The configuration information includes the following:
z The configuration information of the DLDP-enabled port includes the interval,
authentication mode, password, DLDP operating mode, and handling mode when
a unidirectional link is found.
z The status information includes the neighbor status, local port status and link
status
z The neighbor table includes the MAC address, port ID, neighbor status and aging
time items.
Example
1-1
Command Manual - DLDP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DLDP Configuration Commands
interface GigabitEthernet1/1/1
dldp port state : advertisement
dldp link state : up
The neighbor number of the port is 1.
neighbor mac address : 00e0-fc27-750d
neighbor port index : 98
neighbor state : two way
neighbor aged time : 24
1.1.2 dldp
Syntax
View
Parameter
None
Description
In system view:
Use the dldp enable command to enable DLDP globally on all optical ports of the
switch.
Use the dldp disable command to disable DLDP globally on all optical ports of the
switch.
In Ethernet port view:
Use the dldp enable command to enable DLDP on the current port.
Use the dldp disable command to disable DLDP on the current port.
The commands can apply to a non-optical port as well as an optical port.
By default, DLDP is disabled.
Note:
When you use the dldp enable/dldp disable commands in system view to
enable/disable DLDP globally on all optical ports of the switch, these commands are
only valid for the existing optical ports on the device, however, they are not valid for
those added subsequently.
1-2
Command Manual - DLDP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DLDP Configuration Commands
Example
Syntax
View
System view
Parameter
Description
Use the dldp authentication-mode command to set the DLDP authentication mode
and password for the ports of the local and peer devices.
Use the undo dldp authentication-mode to cancel the DLDP authentication mode
and password for the ports of the local and peer devices.
By default, authentication mode is none.
Note that:
When you configure the DLDP authentication mode and authentication password,
make sure the same DLDP authentication mode and password are set for the ports of
the local and peer devices, which are connected with the optical fiber cable or copper
twisted pair. Otherwise, DLDP authentication fails. DLDP cannot work when DLDP
authentication fails.
1-3
Command Manual - DLDP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DLDP Configuration Commands
Example
# Set the DLDP authentication mode and password for the ports connected with fiber
cables or copper twisted pairs between Quidway A and Quidway B to plain text and abc
respectively.
z Configure Quidway A:
<QuidwayA> system-view
System View: return to User View with Ctrl+Z.
[QuidwayA] dldp authentication-mode simple abc
z Configure Quidway B:
<QuidwayB> system-view
System View: return to User View with Ctrl+Z.
[QuidwayB] dldp authentication-mode simple abc
Syntax
View
System view
Parameter
Integer: Interval of sending DLDP packets, in the range of 5 seconds to 100 seconds. It
is 10 seconds by default.
Description
Use the dldp interval command to set the interval of sending advertisement packets
when all the DLDP-enabled ports are in the Advertisement status.
Use the undo dldp interval command to restore the interval to the default value 10
seconds.
By default, the interval of sending advertisement packets is 10 seconds.
Note that:
z The interval you define is applicable to all DLDP-enabled ports.
z The interval must be shorter than one-third of the STP convergence time. If too
long an interval is set, an STP loop may occur before DLDP shuts down
unidirectional links. On the contrary, if too short an interval is set, network traffic
increases, and port bandwidth is reduced. Generally, the STP convergence time is
30 seconds.
1-4
Command Manual - DLDP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DLDP Configuration Commands
Example
# Set the interval of sending advertisement packets to 20 seconds when all the
DLDP-enabled ports are in the Advertisement status.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] dldp interval 20
Syntax
dldp reset
View
Parameter
None
Description
In system view:
Use the dldp reset command to reset the DLDP status of all the ports disabled by
DLDP.
In Ethernet port view:
Use the dldp reset command to reset the DLDP status of the current port disabled by
DLDP.
After the dldp reset command is executed, the DLDP status of these ports changes
from disable to active and DLDP restarts to probe the link status of the fiber cables or
copper twisted pairs.
Related command: dldp, and dldp unidirectional-shutdown.
Example
Syntax
1-5
Command Manual - DLDP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DLDP Configuration Commands
View
System view
Parameter
auto: In this mode, when DLDP finds an unidirectional link or finds (in the enhanced
mode) that the peer port is down , it automatically disables the corresponding port.
manual: In this mode, when DLDP finds an unidirectional link or finds (in the enhanced
mode) that the peer port is down, instead of disabling the port automatically, it prompts
the user to disable the port manually and stops the DLDP packets sending/receiving on
the port at the same time.
Description
Use the dldp unidirectional-shutdown command to set the DLDP handling mode
when a unidirectional link is found.
Use the dldp unidirectional-shutdown command to restore the default setting.
By default, the operating mode of DLDP after unidirectional links are found is auto..
Related command: dldp work-mode.
Example
Syntax
View
System view
Parameter
enhance: Configures DLDP to work in enhanced mode. In this mode, DLDP probes
actively whether neighbors exist when neighbor tables are aging.
1-6
Command Manual - DLDP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DLDP Configuration Commands
normal: Configures DLDP to work in normal mode. In this mode, DLDP does not probe
actively whether neighbors exist when neighbor tables are aging.
Description
Use the dldp work-mode command to set the DLDP operating mode.
Use the undo dldp work-mode command to restore the default DLDP operating
mode.
By default, DLDP works in normal mode.
Note:
z When the DLDP protocol works in normal mode, the system can identify only one
type of unidirectional links: cross-connected fibers.
z When the DLDP protocol works in enhanced mode, the system can identify two
types of unidirectional links: the first type is the fiber which is cross connected, and
the second type is the fiber which is not connected or the fiber which is
disconnected.
Example
Syntax
View
System view
Parameter
delaydown-time: Delaydown timer to be set (in seconds). This argument ranges from 1
to 5. By default, the delaydown timer expires after 1 second it is triggered.
Description
1-7
Command Manual - DLDP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DLDP Configuration Commands
Use the undo dldp delaydown-timer command to restore the default delaydown timer
setting.
Example
1-8
Command Manual – MAC Address Table
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – MAC Address Table Chapter 1 MAC Address Table Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
This chapter describes the management of static, dynamic, and blackhole MAC
address entries. For information about the management of multicast MAC address
entries, refer to the section related to multicast protocol in Quidway S3900 Series
Ethernet Switches Command Manual.
Syntax
View
Any view
Parameter
None
Description
Use the display mac-address aging-time command to display the aging time of the
dynamic MAC address entries in the MAC address table.
Related command: mac-address, mac-address timer, display mac-address.
Example
The output information indicates that the aging time of the dynamic MAC address
entries is 300 seconds.
<Quidway> display mac-address aging-time
1-1
Command Manual – MAC Address Table Chapter 1 MAC Address Table Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
The output information indicates that dynamic MAC address entries do not age out.
Syntax
View
Any view
Parameter
Value Description
Displays information about a specified
mac-address [ vlan vlan-id ]
MAC address entry.
{ static | dynamic | blackhole }
Displays information about dynamic,
[ interface interface-type
static, or blackhole MAC address
interface-number ] [ vlan vlan-id ]
entries.
[ count ]
Displays information about the MAC
interface interface-type
address entries concerning a specified
interface-number [ vlan vlan-id ] [ count ]
port.
Displays information about the MAC
vlan vlan-id [ count ] address entries concerning a specified
VLAN.
Displays the total number of the MAC
count address entries maintained by the
switch.
1-2
Command Manual – MAC Address Table Chapter 1 MAC Address Table Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the display mac-address command to display information about MAC address
entries in a MAC address table, including: MAC address, VLAN and port corresponding
to the MAC address, the type (static or dynamic) of a MAC address entry, aging time
and so on.
Example
Field Description
MAC ADDR MAC address
ID of the VLAN to which the network
VLAN ID device identified by the MAC address
belongs
The state of the MAC address. The
STATE value of this field can be “Static”,
“Learned”, and so on.
Port index (including port type and port
PORT INDEX
number)
1-3
Command Manual – MAC Address Table Chapter 1 MAC Address Table Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Indicates whether a MAC address entry
AGING TIME(s)
is aging
1.1.3 mac-address
Syntax
z In system view:
mac-address { static | dynamic | blackhole } mac-address interface interface-type
interface-number vlan vlan-id
undo mac-address [ mac-address-attribute ]
z In port view:
mac-address { static | dynamic | blackhole } mac-address vlan vlan-id
undo mac-address { static | dynamic | blackhole } mac-address vlan vlan-id
View
Parameter
static: Specifies that the MAC address entry to be added/updated is of static type.
dynamic: Specifies that the MAC address entry to be added/updated is of dynamic
type.
blackhole: Specifies the MAC address entry to be added/updated is of blackhole type.
mac-address: MAC address.
interface-type: Port type.
interface-number: Port number.
vlan-id: VLAN ID. This argument ranges from 1 to 4,094.
mac-address-attribute: String used to specify the MAC address entries to be removed,
as described in Table 1-3.
Value Description
{ static | dynamic | blackhole } Removes the static, dynamic, or
interface interface-type blackhole MAC address entries
interface-number concerning a specified port.
Removes the static, dynamic, or
{ static | dynamic | blackhole } vlan
blackhole MAC address entries
vlan-id
concerning a specified VLAN.
1-4
Command Manual – MAC Address Table Chapter 1 MAC Address Table Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Value Description
{ static | dynamic | blackhole }
Removes a specified static, dynamic, or
mac-address [ interface interface-type
blackhole MAC address entry.
interface-number ] vlan vlan-id
Description
Example
Syntax
1-5
Command Manual – MAC Address Table Chapter 1 MAC Address Table Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Parameter
count: Maximum number of MAC addresses a port can learn. This argument ranges
from 0 to 4,096. A value of 0 disables the port from learning MAC addresses.
Description
Use the mac-address max-mac-count command to set the maximum number of MAC
addresses an Ethernet port can learn.
Use the undo mac-address max-mac-count command to cancel the limitation on the
number of MAC addresses an Ethernet port can learn.
By default, the number of MAC addresses an Ethernet port can learn is unlimited.
When you use the mac-address max-mac-count command, the port stops learning
MAC addresses after the number of MAC addresses it learned reaches the value of the
count argument you provided. You can use the undo command to cancel this limit so
that the port can learn an unlimited number of MAC addresses. By default, the port
learns an unlimited number of MAC addresses.
Related command: mac-address, mac-address timer.
Example
# Set the maximum number of MAC addresses Ethernet1/0/3 port can learn to 600.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/3
[Quidway-Ethernet1/0/3] mac-address max-mac-count 600
Syntax
View
System view
Parameter
aging age: Specifies the aging time (in seconds) for layer 2 dynamic MAC address
entries. The age argument ranges from 10 to 1000000 and defaults to 300.
no-aging: Specifies not to age dynamic MAC address entries.
1-6
Command Manual – MAC Address Table Chapter 1 MAC Address Table Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the mac-address timer command to set the aging time for dynamic MAC address
entries.
Use the undo mac-address timer command to restore the default aging time.
Set the aging time of dynamic MAC address entries as required but ensure that the
aging time does not decrease the layer 2 packet forwarding performance of the switch.
z If the aging time is too short, the MAC address entries that are still valid may be
removed. Upon receiving a packet destined for a MAC address that is already
removed, the switch broadcasts the packet through all its ports in the VLAN which
the packet belongs to. This decreases the operating performance of the switch.
z If the aging time is too long, MAC address entries may still exist even if they turn
invalid. This causes the switch to be unable to update its MAC address table in
time. In this case, the MAC address table cannot reflect the position changes of
network devices in time.
Example
1-7
Command Manual – Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Auto Detect Configuration Commands
Syntax
detect-group group-number
undo detect-group group-number
View
System view
Parameter
Description
Use the detect-group command to create a detecting group and enter detecting
group view.
Use the undo detect-group command to remove a detecting group.
Example
1.1.2 detect-list
Syntax
View
1-1
Command Manual – Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Auto Detect Configuration Commands
Parameter
Description
Example
# Add the IP address of 202.13.1.55 to detecting group 10, with list-number set to 1,
the next hop IP address set to 1.2.3.4.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] detect-group 10
[Quidway-detect-group-10] detect-list 1 ip address 202.13.1.55 nexthop
1.2.3.4
Syntax
View
Any view
Parameter
1-2
Command Manual – Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Auto Detect Configuration Commands
Description
Example
Field Description
detect-group 1 Detecting group number 1
detect loop time(s): 15 Detecting interval is 15 seconds.
1-3
Command Manual – Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Auto Detect Configuration Commands
1.1.4 option
Syntax
option [ and | or ]
undo option
View
Parameter
and: Specifies the detecting result is reachable only when all the IP addresses
contained in the detecting group are reachable.
or: Specifies the detecting result is reachable if one of the IP addresses contained in
the detecting group is reachable.
Description
Use the option command to specify the way to generate detecting results.
Use the undo option command to restore the default way to generate detecting
results.
By default, the and keyword is specified.
When a detecting operation is being carried out, the switch detects each IP address
contained in the detecting group in an ascending order by the list-number values of
the IP addresses.
z If you specify the and keyword, the switch returns unreachable as the detecting
result when the switch fails to ping an IP address contained in the detecting
group and stops detecting.
z If you specify the or keyword, the switch returns reachable as the detecting
result if the switch succeeds in pinging an IP address contained in the detecting
group and stops detecting.
Example
1-4
Command Manual – Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Auto Detect Configuration Commands
1.1.5 retry
Syntax
retry retry-times
View
Parameter
retry-times: Retry times during a detect operation. This argument ranges from 0 to 10
and defaults to 2.
Description
Use the retry command to set the maximum retry times during a detect operation.
Example
Syntax
View
Parameter
seconds: Detecting interval. This argument ranges form 1 to 86,400 (in seconds) and
defaults to 15.
Description
Use the timer loop command to set the detecting interval, that is, the frequency to
perform auto detect operations.
Example
1-5
Command Manual – Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Auto Detect Configuration Commands
Syntax
View
Parameter
seconds: Timeout time of detect operations. This argument ranges from 1 to 30 (in
seconds) and defaults to 2.
Description
Use the timer wait command to set the timeout time for detect operations.
Example
1-6
Command Manual – Auto Detect Chapter 2 Commands for Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Implementation
Note:
z Refer to the Routing Protocol chapter in this manual for information about static
routing.
z Refer to the VRRP chapter in this manual for information about VRRP.
Syntax
View
System view
Parameter
2-1
Command Manual – Auto Detect Chapter 2 Commands for Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Implementation
blackhole: Specifies the route to be a blackhole route. If you specify this keyword when
executing this command, all outbound interfaces of the static route are the Null 0
interfaces regardless of the next hop. In addition, the system discards any packet
transmitted along this route without informing the source.
group-number: Detecting group number ranging from 1 to 25.
Description
Use the ip route-static command to configure a static route, whose validity depends
on detecting results as follows:
z The route is valid when the detecting result is reachable.
z The route is invalid when the detecting result is unreachable.
Use the undo ip route-static command to remove an existing static route.
Example
# Configure a static route to 192.168.0.5/24 with 192.168.0.2 as the next hop. The route
is to be enabled when the result of detecting group 10 is reachable.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ip route-static 192.168.0.5 24 192.168.0.2 detect-group 10
Syntax
View
Parameter
Description
Use the standby detect-group command to enable the VLAN interface backup
function by using the auto detect function.
Use the undo standby detect-group command to disable the VLAN interface backup
function.
You can enable VLAN interface backup function according to auto detecting results in
the following ways:
z Enable the primary interface when the result of the detecting group is reachable.
2-2
Command Manual – Auto Detect Chapter 2 Commands for Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Implementation
z Enable the secondary interface when the result of the detecting group is
unreachable.
z When the link between the primary VLAN interface and the destination comes
back up, that is, the result of the detecting group is reachable again, the system
enables the primary VLAN interface and shuts down the secondary.
Example
Syntax
View
Parameter
Description
Use the vrrp vrid command to enable the auto detect function when employing VRRP.
Use the undo vrrp vrid command to disable the auto detect function when employing
VRRP.
You can control the priority of a VRRP backup group according to the result of a
detecting group to enable automatic switch between the primary switch and the
secondary switch. That is,
z Decrease the priority of a backup group when the result of the detecting group is
unreachable.
z Restore the priority of a backup group when the result of the detecting group is
reachable.
2-3
Command Manual – Auto Detect Chapter 2 Commands for Auto Detect
Quidway S3900 Series Ethernet Switches-Release 1510 Implementation
Note:
Currently, auto detect in VRRP is only supported in S3900-EI series switches.
Example
# Specify to decrease the priority of backup group 1 by 20 when the result of detecting
group 10 is unreachable.
[Quidway] interface vlan-interface 2
[Quidway-Vlan-interface2] vrrp vrid 1 track detect-group 10 reduced 20
2-4
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
active region-configuration
View
Parameter
None
Description
Example
1-1
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
bpdu-drop any
undo bpdu-drop any
View
Parameter
None
Description
Use the bpdu-drop any command to configure the BPDU packets drop function on an
Ethernet port.
Use the undo bpdu-drop any command to disable the BPDU packets drop function on
an Ethernet port.
By default, the BPDU packets drop function is disabled on a port.
In an STP-enabled network, someone may ceaselessly send BPDU packets to a switch
for malicious purpose. The switch forwards BPDU packets to other switches by
receiving them, making the STP calculation occurs constantly. Those result in high
CPU consumption, error protocol state of BPDU packets, and so on.
To avoid those problems, you can enable the BPDU packets drop function on the
Ethernet port of the switch. With this function enabled, the port will neither receive nor
forward the BPDU packets, so as to avoid the BPDU packets attack and ensure correct
STP calculation.
Example
Syntax
check region-configuration
View
1-2
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Parameter
None
Description
Use the check region-configuration command to display the current MST region
configuration (maybe inactivated), including region name, revision level, and VLAN
mapping table.
MSTP-enabled switches are in the same region only when they have the same MST
region-related configuration. A switch cannot be in a respected region if any one of the
above three MST region-related settings does not be consistent with that of another
switch in the region.
You can use this command to find the MST region the switch currently belongs to or
check to see whether or not the MST region-related configuration is correct.
Related command: instance, region-name, revision-level, vlan-mapping modulo,
and active region-configuration.
Example
Field Description
Format selector The selector specified by MSTP
Region name The name of the MST region
Revision level The revision level of the MST region
Spanning tree instance-to-VLAN mappings in the
Instance Vlans Mapped
MST region
1-3
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
View
Any view
Parameter
instance-id: ID of the spanning tree instance ranging from 0 to 16. A value of 0 specifies
the common and internal spanning tree (CIST).
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
Slot slot-number: Specifies a slot, the STP-related information about which is to be
displayed.
brief: Displays only port state and protection measures taken on the port.
Description
Use the display stp command to display the state and statistical information about one
or all spanning trees.
The state and statistical information about MSTP can be used to analyze and maintain
the topology of a network. It also can be used to make MSTP operating properly.
z If neither spanning tree instance nor port list is specified, the command displays
spanning tree information about all spanning tree instances on all ports in order of
port number.
z If only a spanning tree instance is specified, the command displays information
about the specified spanning tree instance on all ports in the order of the port
number.
z If only a port list is specified, the command displays information about all spanning
tree instances on these ports in the order of the port number.
z If both a spanning tree instance and a port list are specified, the command
displays spanning tree information about the specified spanning tree instance and
the specified ports in order of spanning tree instance ID.
MSTP state information includes:
z Global CIST parameters: Protocol operation mode, switch priority in the CIST
instance, MAC address, Hello time, Max age, Forward delay, Max hops, the
common root of the CIST, the external path cost for the switch to reach the CIST
common root, region root, the internal path cost for the switch to reach the region
1-4
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
root, CIST root port of the switch, the state of the BPDU (bridge protocol data unit)
protection function (enabled or disabled), and the state of the digest snooping
feature (enabled or disabled).
z CIST port parameters: Port protocol, port role, port priority, path cost, designated
bridge, designated port, edge port/non-edge port, whether or not the link on the
port is a point-to-point link, the maximum transmitting speed, type of the enabled
protection function, state of the digest snooping feature (enabled or disabled),
VLAN mappings, Hello time, Max age, Forward delay, Message-age time, and
Remaining-hops.
z Global MSTI parameters: MSTI instance ID, bridge priority of the instance, region
root, internal path cost, MSTI root port, and master bridge.
z MSTI port parameters: Port state, role, priority, path cost, designated bridge,
designated port, and Remaining Hops.
The statistical information includes: the numbers of the TCN BPDUs, the configuration
BPDUs, the RST BPDUs, and the MST BPDUs transmitted/received by each port.
Related command: reset stp.
Example
Field Description
MSTID ID of a spanning tree instance in the MST region
Port Port index
Role Port role
STP State STP state on the port, which can be forwarding and discarding.
Protection Protection type of the port
Syntax
1-5
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
View
Any view
Parameter
None
Description
Use the display stp region-configuration command to display the activated MST
region configuration, including the region name, region revision level, and spanning
tree instance-to-VLAN mappings configured for the switch.
Related command: stp region-configuration.
Example
Table 1-3 Description on the fields of the display stp region-configuration command
Field Description
Format selector The selector specified by MSTP
Region name The name of the MST region
Revision level The revision level of the MST region
Spanning tree instance-to-VLAN mappings in the
Instance Vlans Mapped
MST region
1.1.6 instance
Syntax
1-6
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
View
Parameter
Description
Use the instance command to map specified VLANs to a specified spanning tree
instance.
Use the undo instance command to remove the mappings from the specified VLANs
to the specified spanning tree instance and remap the specified VLANs to the CIST
(spanning tree instance 0). If you specify no VLAN in the undo instance command, all
VLANs that are mapped to the specified spanning tree instance are remapped to the
CIST.
By default, all VLANs are mapped to the CIST.
VLAN-to-spanning tree instance mappings are recorded in the VLAN mapping table of
an MSTP switch. So these two commands are actually used to manipulate the VLAN
mapping table. You can add/remove a VLAN to/from the VLAN mapping table of a
specific spanning tree instance by using these two commands.
Note that a VLAN cannot be mapped to multiple spanning tree instances at the same
time. A VLAN-to-spanning tree instance mapping is automatically removed if you map
the VLAN to another spanning tree instance.
Related command: region-name, revision-level, vlan-mapping modulo, check
region-configuration, and active region-configuration.
Example
1-7
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
1.1.7 region-name
Syntax
region-name name
undo region-name
View
Parameter
name: MST region name to be set for the switch, a string of 1 to 32 characters.
Description
Use the region-name command to set an MST region name for a switch.
Use the undo region-name command to revert to the default MST region name.
The default MST region name of a switch is its MAC address.
MST region name, along with VLAN mapping table and MSTP revision level,
determines the MST region which a switch belongs to.
Related command: instance, revision-level, check region-configuration,
vlan-mapping modulo, and active region-configuration.
Example
Syntax
View
User view
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
1-8
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Description
Use the reset stp command to clear spanning tree-related statistics on Ethernet ports.
The spanning tree statistics include the numbers of the TCN BPDUs, configuration
BPDUs, RST BPDUs, and MST BPDUs sent/received through one or more specified
ports or all ports (note that STP BPDUs and TCN BPDUs are counted only for CISTs.)
This command clears the spanning tree-related statistics on specified ports if you
specify the interface-list argument. If you do not specify the interface-list argument, this
command clears the spanning tree-related statistics on all ports.
Related command: display stp.
Example
1.1.9 revision-level
Syntax
revision-level level
undo revision-level
View
Parameter
level: MSTP revision level to be set for the switch. This argument ranges from 0 to
65,535. By default, the MSTP revision level of a switch is 0.
Description
Use the revision-level command to set the MSTP revision level for a switch.
Use the undo revision-level command to revert to the default revision level.
MSTP revision level, along with MST region name and VLAN mapping table,
determines the MST region which a switch belongs to.
Related command: instance, region-name, check region-configuration,
vlan-mapping modulo, and active region-configuration.
1-9
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Example
1.1.10 stp
Syntax
View
Parameter
Description
Example
1-10
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
stp bpdu-protection
undo stp bpdu-protection
View
System view
Parameter
None
Description
Use the stp bpdu-protection command to enable the BPDU protection function.
Use the undo stp bpdu-protection command to revert to the default state of the
BPDU protection function.
By default, the BPDU protection function is disabled.
Normally, the access ports of the devices operating on the access layer directly connect
to terminals (such as PCs) or file servers. These ports are usually configured as edge
ports to achieve rapid transition. But they resume non-edge ports automatically upon
receiving configuration BPDUs, which causes spanning trees regeneration and
network topology jitter.
Normally, no configuration BPDU will reach edge ports. But malicious users can attack
a network by sending configuration BPDUs deliberately to edge ports to cause network
jitter. You can prevent this type of attacks by utilizing the BPDU protection function.
With this function enabled on a switch, the switch shuts down the edge ports that
receive configuration BPDUs and then reports these cases to the administrator. If a port
is shut down, only the administrator can restore it.
Example
1-11
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Caution:
As Gigabit ports of an S3900 series switch cannot be shut down, the BPDU protection
function is not applicable to these ports even if you enable the BPDU protection
function and specify these ports to be MSTP edge ports.
Syntax
View
System view
Parameter
bridgenum: Network diameter to be set for a switched network. This argument ranges
from 2 to 7 and defaults to 7.
Description
Use the stp bridge-diameter command to set the network diameter of a switched
network. The network diameter of a switched network is represented by the maximum
possible number of switches between any two terminals in a switched network.
Use the undo stp bridge-diameter command to revert to the default network diameter.
After you configure the network diameter of a switched network, MSTP adjusts its Hello
time, Forward delay, and Max age settings accordingly. With the network diameter set
to 7 (the default), the three time-relate settings, Hello time, Forward delay, and Max age,
are set to their defaults as well.
The stp bridge-diameter command only applies to CIST; it is invalid for MSTIs.
Related command: stp timer forward-delay, stp timer hello, and stp timer max-age.
Example
1-12
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
View
Parameter
Description
Use the stp compliance command to set the MSTP packet format of a port.
Use the undo stp compliance command to restore the default MSTP packet format.
By default, the MSTP packet format is legacy.
z With the MSTP packet format set to auto, the port automatically determines the
format of the packets to be transmitted according to that of the received MSTP
packets. If the format of the received packets changes repeatedly, MSTP will shut
down the corresponding port to prevent network storm. A port shut down in this
way can only be enabled again by the network administrator.
z With the MSTP packet format set to legacy, the port only processes and
transmits MSTP packets in legacy format. If packets in dot1s format are received,
the corresponding ports are set as discarding ports to prevent network storm.
z With the MSTP packet format set to dot1s, the port only processes and transmits
MSTP packets in dot1s format. If packets in legacy format are received, the
corresponding ports are set as discarding ports to prevent network storm.
z All the ports in an aggregation group use the same MSTP packet format.
Example
1-13
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
stp config-digest-snooping
undo stp config-digest-snooping
View
Parameter
None
Description
Use the stp config-digest-snooping command to enable the digest snooping feature.
Use the undo stp config-digest-snooping command to disable the digest snooping
feature.
The digest snooping feature is disabled by default.
According to IEEE 802.1s, two connected switches can interwork with each other
through MSTIs in an MST region only when the two switches have the same MST
region-related configuration. With MSTP employed, interconnected switches determine
whether or not they are in the same MST region by checking the configuration IDs of
the BPDUs between them. (A configuration ID contains information such as region ID
and configuration digest.)
As some partners' switches adopt proprietary spanning tree protocols, they cannot
interwork with other switches in an MST region even if they are configured with the
same MST region-related settings as other switches in the MST region.
This kind of problems can be overcome by implementing the digest snooping feature. If
a switch port is connected to a partner's switch that has the same MST region-related
settings but adopts a proprietary spanning tree protocol, you can enable digest
snooping on the port. Then the switch regards the peer switch connected to the port as
in the same region and records the configuration digests carried in the BPDUs received
from the switch, which will be put in the BPDUs to be send to the peer switch.. In this
way, the switch can interwork with the partners' switches in an MST region.
1-14
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Note:
z The digest snooping feature is needed only when your S3900 series switch is
connected to partner's proprietary protocol-adopted switches.
z To enable the digest snooping feature successfully, you must first enable it on all the
switch ports that connect to partner's proprietary protocol-adopted switches and
then enable it globally.
z To enable the digest snooping feature, the interconnected switches must be
configured with exactly the same MST settings.
z The digest snooping feature must be enabled on all the switch ports that connect to
partners' proprietary protocol-adopted switches in the same MST region.
z With the digest snooping feature enabled, the VLAN-to-MSTI mapping cannot be
modified.
z The digest snooping feature is not applicable to MST region edge ports.
Example
Syntax
View
Parameter
1-15
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Description
Use the stp cost command to set the path cost of the current port in a specified
spanning tree instance.
Use the undo stp cost command to revert to the default path cost of the current port in
the specified spanning tree instance.
By default, a switch automatically calculates the path costs of a port in different
spanning tree instances based on a specified standard.
If you specify the instance-id argument to be 0 or do not specify this argument, the stp
cost command sets the path cost of the port on CIST.
The path costs of a port in spanning tree instances affect the roles of the ports in the
spanning tree instances. By configuring different path costs for the same port in
different MSTIs, you can make flows of different VLANs traveling along different
physical links, so as to achieve VLAN-based load balancing. Changing the path cost of
a port in a spanning tree instance may change the role of the port in the instance and
put it in state transition.
Related command: stp interface cost.
Example
# Set the path cost of Ethernet1/0/3 port in spanning tree instance 2 to 200.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface ethernet1/0/3
[Quidway-Ethernet1/0/3] stp instance 2 cost 200
Syntax
View
Parameter
Description
Use the stp edged-port enable command to configure the current Ethernet port as an
edge port.
1-16
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Use the stp edged-port disable command to configure the current Ethernet port as a
non-edge port.
Use the undo stp edged-port command to restore the current Ethernet port to its
default state.
By default, all Ethernet ports of a switch are non-edge ports.
An edge port is a port that is directly connected to a user terminal instead of another
switch or a network segment. Rapid transition is applied to edge ports because, on
these ports, no loops can be incurred by network topology changes. You can enable a
port to transit to the forwarding state rapidly by setting it to an edge port. And you are
recommended to configure the Ethernet ports directly connected to user terminals as
edge ports to enable them to transit to the forwarding state rapidly.
Normally, configuration BPDUs cannot reach an edge port because the port is not
connected to another switch. But when the BPDU protection function is disabled on an
edge port, configuration BPDUs sent deliberately by a malicious user may reach the
port. If an edge port receives a BPDU, it turns to a non-edge port.
Related command: stp interface edged-port.
Caution:
Among loop prevention function, root protection function and edge port setting, only
one can be valid on a port at one time.
Example
Syntax
View
System view
1-17
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
enable: Enables MSTP on the specified ports.
disable: Disables MSTP on the specified ports.
Description
Use the stp interface command to enable or disable MSTP on specified ports in
system view.
By default, MSTP is enabled on the ports of a switch if MSTP is globally enabled on the
switch, and is disabled on the ports if MSTP is globally disabled.
An MSTP-disabled port does not participate in any calculation of spanning tree and is
always in forwarding state.
Caution:
Example
Syntax
View
System view
1-18
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the format of interface-list ={ interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
Description
1-19
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Note:
z The digest snooping feature is needed only when your S3900 series switch is
connected to partner's proprietary protocol-adopted switches.
z To enable the digest snooping feature successfully, you must first enable it on all the
ports of your S3900 series switch that are connected to partner's proprietary
protocol-adopted switches and then enable it globally.
z To enable the digest snooping feature, the interconnected switches must be
configured with exactly the same MST region-related configuration.
z The digest snooping feature must be enabled on all the ports of your S3900 series
switch that are connected to partners' proprietary protocol-adopted switches in the
same MST region.
z With the digest snooping feature enabled, the VLAN-to-MSTI mapping cannot be
modified.
z The digest snooping feature is not applicable to MST region edge ports.
Example
Syntax
View
System view
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
instance-id: Spanning tree instance ID ranging from 0 to 16. A value of 0 specifies the
CIST.
cost: Port path cost to be set. This argument ranges from 1 to 200,000,000.
1-20
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Description
Use the stp interface cost command to set the path cost(s) of the specified port(s) in a
specified spanning tree instance in system view.
Use the undo stp interface cost command to revert to the default path cost(s) of the
specified port(s) in the specified spanning tree instance in system view.
By default, a switch automatically calculates the path costs of a port in different
spanning tree instances based on a specified standard.
If you specify the instance-id argument to be 0 or do not specify this argument, the stp
interface cost command sets the path cost(s) of the specified port(s) in the CIST.
The path costs of a port in spanning tree instances affect the roles of the ports in the
spanning tree instances. By configuring different path costs for the same port in
different MSTIs, you can make flows of different VLANs traveling along different
physical links, so as to achieve VLAN-based load balancing. Changing the path cost of
a port in a spanning tree instance may change the role of the port in the instance and
put it in state transition.
The default port path cost differs with port speed. Refer to Table 1-4 for details.
Related command: stp cost.
Example
# Set the path cost of Ethernet1/0/3 port in spanning tree instance 2 to 400 in system
view.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] stp instance 2 interface Ethernet 1/0/3 cost 400
Syntax
View
System view
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
enable: Configures the specified Ethernet ports to be edge ports.
1-21
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Description
Use the stp interface edged-port enable command to configure the specified
Ethernet port(s) as edge ports in system view.
Use the stp interface edged-port disable command to configure the specified
Ethernet port(s) as non-edge ports in system view.
Use the undo stp interface edged-port command to restore the specified Ethernet
port(s) to their default states.
By default, all Ethernet ports of a switch are non-edge ports.
An edge port is a port that is directly connected to a user terminal instead of another
switch or a network segment. Rapid transition is applied to edge ports because, on
these ports, no loops can be incurred by network topology changes. You can enable a
port to transit to the forwarding state rapidly by setting it to an edge port. And you are
recommended to configure the Ethernet ports directly connected to user terminals as
edge ports to enable them to transit to the forwarding state rapidly.
Normally, configuration BPDUs cannot reach an edge port because the port is not
connected to another switch. But when the BPDU protection function is disabled on an
edge port, configuration BPDUs sent deliberately by a malicious user may reach the
port. If an edge port receives a BPDU, it turns to a non-edge port.
Related command: stp edged-port.
Caution:
Among loop prevention function, root protection function and edge port setting, only
one can be valid on a port at one time.
Example
Syntax
1-22
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
View
System view
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
Description
Use the stp interface loop-protection command to enable the loop prevention
function in system view.
Use the undo stp interface loop-protection command to revert to the default state of
the loop prevention function in system view.
The loop prevention function is disabled by default.
Related command: stp loop-protection.
Caution:
Among loop prevention function, root protection function and edge port setting, only
one can be valid on the same port.
Example
Syntax
View
System view
1-23
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
Description
Use the stp interface mcheck command to perform the mCheck operation on
specified port(s) in system view.
A port on an MSTP-enabled switch toggles to the STP-/RSTP-compatible mode
automatically if an STP-/RSTP-enabled switch is connected to it. But when the
STP-/RSTP-enabled switch is disconnected from the port, the port cannot toggle back
to the MSTP mode automatically. In this case, you can force the port to toggle to the
MSTP mode by performing the mCheck operation on the port.
Related command: stp mcheck, and stp mode.
Example
Syntax
View
System view
Parameter
Description
Use the stp interface no-agreement-check command to enable the rapid transition
feature on a specified port.
Use the undo stp interface no-agreement-check command to disable the rapid
transition feature on a specified port.
1-24
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Note:
z The rapid transition feature can be enabled on root ports or alternate ports only.
z If you configure the rapid transition feature on the designated port, the feature does
not take effect on the port.
Example
Syntax
View
System view
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
1-25
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Description
Use the stp interface point-to-point command to specify whether the links connected
to the specified Ethernet ports are point-to-point links in system view.
Use the undo stp interface point-to-point command to restore the links connected to
the specified ports to their default link types, which are automatically determined by
MSTP.
If no keyword is specified in the stp interface point-to-point command, the auto
keyword is used by default, and so MSTP automatically determines the types of the
links connected to the specified ports.
The rapid transition feature is not applicable to ports on non-point-to-point links.
If an Ethernet port is the master port of an aggregated port or operates in full-duplex
mode, the link connected to the port is a point-to-point link.
You are recommended to let MSTP automatically determine the link types.
These two commands only apply to CIST and MSTIs. If you configure the link to which
a port is connected to be a point-to-point link (or a non-point-to-point link), the
configuration applies to all spanning tree instances (that is, the port is configured to
connect to a point-to-point link (or a non-point-to-point link) in all spanning tree
instances). If the actual physical link is not a point-to-point link and you configure the
link to which the port is connected to be a point-to-point link, loops may temporarily
occur.
Related command: stp point-to-point.
Example
1-26
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
View
System view
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
instance-id: Spanning tree instance ID ranging from 0 to 16. A value of 0 specifies the
CIST.
priority: Port priority to be set. This argument ranges from 0 to 240 and must be a
multiple of 16 (such as 0, 16, and 32). The default port priority of a port in any spanning
tree instance is 128.
Description
Use the stp interface port priority command to set a port priority for the specified
ports in the specified spanning tree instance.
Use the undo stp interface port priority command to restore the specified ports to the
default port priority in the specified spanning tree instance.
If you specify the instance-id argument to be 0, these two commands apply to the port
priorities on the CIST. The role a port plays in a spanning tree instance is determined by
the port priority in the instance. A port on an MSTP-enabled switch can have different
port priorities and play different roles in different MSTIs. This enables packets of
different VLANs to be forwarded along different physical paths, so as to achieve load
balancing by VLANs. Changing port priorities results in port roles being re-determined
and may cause state transitions.
Related command: stp port priority.
Example
# Set the port priority of Ethernet1/0/3 port (with regard to spanning tree instance 2) to
16.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] stp interface Ethernet 1/0/3 instance 2 port priority 16
1-27
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
View
System view
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
Description
Use the stp interface root-protection command to enable the root protection function
on specified port(s).
Use the undo stp interface root-protection command to restore the root protection
function to the default state on specified port(s).
By default, the root protection function is disabled.
Configuration errors or attacks may result in configuration BPDUs with their priorities
higher than that of a root bridge, which causes new root bridge to be elected and
network topology jitter to occur. In this case, flows that should travel along high-speed
links may be led to low-speed links, and network congestion may occur.
You can avoid this by utilizing the root protection function. Ports with this function
enabled can only be kept as designated ports in all spanning tree instances. When a
port of this type receives configuration BPDUs with higher priorities, it changes to
Discarding state (rather than becomes a non-designated port) and stops forwarding
packets (as if it is disconnected from the link). It resumes the normal state if it does not
receive any configuration BPDUs with higher priorities for a specified period.
Related command: stp root-protection.
Caution:
Among loop prevention function, root protection function and edge port setting, only
one can be valid on a port at one time.
1-28
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Example
Syntax
View
System view
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
packetnum: Also known as maximum transmitting speed, the maximum number of
configuration BPDUs a port can send in each Hello time. This argument ranges from 1
to 255 and defaults to 10.
Description
Use the stp interface transmit-limit command to set the maximum number of
configuration BPDUs each specified port can send in each Hello time.
Use the undo stp interface transmit-limit command to revert to the default maximum
number.
The larger the packetnum argument is, the more packets a port can transmit in each
Hello time. Configure the packetnum argument to a proper value to limit the number of
BPDUs a port can send in each Hello time to avoid MSTP from occupying too much
network resources when network topology jitter occur.
Related command: stp transmit-limit.
Example
1-29
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
stp loop-protection
undo stp loop-protection
View
Parameter
None
Description
Use the stp loop-protection command to enable the loop prevention function on the
current port.
Use the undo stp loop-protection command to restore the loop prevention function to
the default state on the current port.
By default, the loop prevention function is disabled.
A switch maintains the states of the root port and other blocked ports by receiving and
processing BPDUs from the upstream switch. These BPDUs may get lost because of
network congestions and link failures. If a switch does not receive BPDUs from the
upstream switch for a certain period, the switch selects a new root port; the original root
port becomes a designated port; and the blocked ports transit to forwarding state. This
may cause loops in the network.
The loop prevention function suppresses loops. With this function enabled, if link
congestions or link failures happen, a root port becomes a designated port, and the port
state becomes discarding. The blocked port also becomes designated port and the port
state becomes discarding (do not forward packets), and thereby loops can be
prevented.
Example
1-30
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
View
System view
Parameter
hops: Maximum hops to be set. This argument ranges from 1 to 40. The default
maximum hops value of an MST region is 20.
Description
Use the stp max-hops command to set the maximum hops for the MST region the
current switch belongs to.
Use the undo stp max-hops command to revert to the default maximum hops.
The maximum hops values configured on the region roots of the CIST and MSTIs in an
MST region limit the size of the MST region.
A configuration BPDU contains a field that maintains the remaining hops of the
configuration BPDU. And a switch discards the configuration BPDUs whose remaining
hops are 0. After a configuration BPDU reaches a root bridge of a spanning tree in a
MST region, the value of the remaining hops field in the configuration BPDU is
decreased by 1 every time the configuration BPDU passes a switch. Such a
mechanism disables the switches that are beyond the maximum hops from
participating in spanning tree generation, and thus limits the size of an MST region.
With such a mechanism, the maximum hops configured on the switch operating as the
root bridge of the CIST or an MSTI in a MST region becomes the network diameter of
the spanning tree, which limits the size of the spanning tree in the current MST region.
The switches that are not root bridges in the MST region adopt the maximum hops
settings of their root bridges.
Example
1-31
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
stp mcheck
View
Parameter
None
Description
Use the stp mcheck command to perform the mCheck operation on the current port.
When a port on an MSTP-enabled upstream switch connects with an STP enabled
downstream switch, the port transits to the STP-compatible mode. But when the STP
enabled downstream switch is then replaced by an MSTP-enabled switch, the port
cannot automatically transit to the MSTP mode but remains in the STP-compatible
mode. In this case, you can force the port to transit to the MSTP mode by performing
the mCheck operation on the port.
Similarly, when a port on an RSTP-enabled upstream switch connects with an
STP-enabled downstream switch, the port transits to the STP-compatible mode. But
when the STP enabled downstream switch is then replaced by an MSTP-enabled
switch, the port cannot automatically transit to the MSTP mode but remains in the
STP-compatible mode. In this case, you can force the port to transit to the MSTP mode
by performing the mCheck operation on the port.
Related command: stp mode, stp interface mcheck.
Example
Syntax
1-32
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
View
System view
Parameter
Description
Use the stp mode command to set the MSTP operation mode.
Use the undo stp mode command to revert to the default MSTP operation mode.
By default, a switch operates in MSTP mode.
To make a switch compatible with STP/RSTP, MSTP provides following three operation
modes:
STP-compatible mode, where a switch sends out STP BPDU packets
RSTP-compatible mode, where a switch sends out RSTP BPDU packets
MSTP mode, where a switch sends out MSTP BPDU packets
Related command: stp mcheck, stp, stp interface, and stp interface mcheck.
Example
Syntax
stp no-agreement-check
undo stp no-agreement-check
View
Parameter
None
1-33
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Description
Use the stp no-agreement-check command to enable the rapid transition feature for a
port.
Use the stp no-agreement-check command to disable the rapid transition feature.
By default, the rapid transition feature is disabled on a port.
Some manufactures' switches adopt proprietary spanning tree protocols that are
similar to RSTP in the way to implement rapid transition on designated ports. When a
switch of this kind operates as the upstream switch of an S3900 series switch running
MSTP, the upstream designated port fails to change their states rapidly.
The rapid transition feature aims to resolve this problem. When an S3900 series switch
running MSTP is connected in the upstream direction to a manufacture's switch running
proprietary spanning tree protocol, you can enable the rapid transition feature on the
ports of the S3900 series switch operating as the downstream switch. Among these
ports, those operating as the root ports will then send agreement packets to their
upstream ports after they receive proposal packets from the upstream designated ports,
instead of waiting for agreement packets from the upstream switch. This enables
designated ports of the upstream switch to change their states rapidly.
Related command: stp interface no-agreement-check.
Note:
z The rapid transition feature can be enabled on root ports or alternate ports only.
z If you configure the rapid transition feature on the designated port, the feature does
not take effect on the port.
Example
Syntax
1-34
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
View
System view
Parameter
dot1d-1998: Uses the IEEE 802.1D-1998 standard to calculate the default path costs
of ports.
dot1t: Uses the IEEE 802.1t standard to calculate the default path costs of ports.
legacy: Uses the proprietary standard to calculate the default path costs of ports.
Description
Use the stp pathcost-standard command to set the standard to be used to calculate
the default path costs of the links connected to the switch.
Use the undo stp pathcost-standard command to specify to use the default standard.
By default, a switch uses the IEEE 802.1t standard to calculate the default path costs of
ports.
Transm Standard
Operation mode
ission 802.1D-1998 IEEE 802.1t defined by
(half-/full-duplex)
speed Private
0 - 65,535 200,000,000 200,000
Half-duplex/Full-duplex 100 200,000 2,000
10 Aggregated link 2 ports 95 1,000,000 1,800
Mbps Aggregated link 3 ports 95 666,666 1,600
Aggregated link 4 ports 95 500,000 1,400
Half-duplex/Full-duplex 19 200,000 200
100 Aggregated link 2 ports 15 100,000 180
Mbps Aggregated link 3 ports 15 66,666 160
Aggregated link 4 ports 15 50,000 140
Full-duplex 4 200,000 20
1,000 Aggregated link 2 ports 3 10,000 18
Mbps Aggregated link 3 ports 3 6,666 16
Aggregated link 4 ports 3 5,000 14
Full-duplex 2 200,000 2
10 Aggregated link 2 ports 1 1,000 1
Gbps Aggregated link 3 ports 1 666 1
Aggregated link 4 ports 1 500 1
1-35
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Normally, when a port operates in full-duplex mode, the corresponding path cost is
slightly less than that when the port operates in half-duplex mode.
When calculating the path cost of an aggregated link, the 802.1D-1998 standard does
not take the number of the ports on the aggregated link into account, whereas the
802.1T standard does. The following formula is used to calculate the path cost of an
aggregated link:
Path cost = 200,000 / link transmission speed,
Where the link transmission speed is the sum of the speeds of the unblocked ports on
the aggregated link, which is measured in 100 Kbps.
Example
# Configure to use the IEEE 802.1D-1998 standard to calculate the default path costs
of ports.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] stp pathcost-standard dot1d-1998
# Configure to use the IEEE 802.1t standard to calculate the default path costs of ports.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] stp pathcost-standard dot1t
Syntax
View
Parameter
force-true: Specifies that the link connected to the current Ethernet port is a
point-to-point link.
force-false: Specifies that the link connected to the current Ethernet port is not a
point-to-point link.
auto: Specifies to automatically determine whether or not the link connected to the
current Ethernet port is a point-to-point link.
1-36
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Description
Use the stp point-to-point command to specify whether the link connected to the
current Ethernet port is a point-to-point link.
Use the undo stp point-to-point command to restore the link connected to the current
Ethernet port to its default link type, which is automatically determined by MSTP.
If no keyword is specified in the stp point-to-point command, the auto keyword is
used by default, and so MSTP automatically determines the type of the link connected
to the current port.
The rapid transition feature is not applicable to ports on non-point-to-point links.
If an Ethernet port is the master port of an aggregation port or operates in full-duplex
mode, the link connected to the port is a point-to-point link.
You are recommended to let MSTP automatically determine the link types of ports.
These two commands only apply to CISTs and MSTIs. If you configure the link to which
a port is connected is a point-to-point link (or a non-point-to-point link), the configuration
applies to all spanning tree instances (that is, the port is configured to connect to a
point-to-point link [or a non-point-to-point link] in all spanning tree instances). If the
actual physical link is not a point-to-point link and you configure the link to which the
port is connected to be a point-to-point link, loops may temporarily occur.
Related command: stp interface point-to-point.
Example
Syntax
View
Parameter
instance-id: Spanning tree instance ID ranging from 0 to 16. A value of 0 specifies the
CIST.
1-37
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
port priority priority: Sets the port priority. The priority argument ranges from 0 to 240
and must be a multiple of 16 (such as 0, 16, and 32). The default port priority of a port in
any spanning tree instance is 128.
Description
Use the stp port priority command to set the port priority of the current port in the
specified spanning tree instance.
Use the undo stp port priority command to restore the current port to the default port
priority in the specified spanning tree instance.
If you specify the instance-id argument to be 0 or do not specify the argument, these
two commands apply to the port priorities on the CIST. The role a port plays in a
spanning tree instance is determined by the port priority in the instance. A port on a
MSTP-enabled switch can have different port priorities and play different roles in
different MSTIs. This enables packets of different VLANs to be forwarded along
different physical paths, so as to achieve load balancing by VLANs. Changing port
priorities result in port roles being re-determined and may cause state transitions.
Related command: stp interface port priority.
Example
# Set the port priority of Ethernet1/0/3 port in spanning tree instance 2 to 16.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet1/0/3
[Quidway-Ethernet1/0/3] stp instance 2 port priority 16
Syntax
View
System view
Parameter
instance-id: Spanning tree instance ID ranging from 0 to 16. A value of 0 specifies the
CIST.
priority: Switch priority to be set. This argument ranges from 0 to 61,440 and must be a
multiple of 4,096 (such as 0, 4,096, and 8,192). There are totally 16 available switch
priorities.
1-38
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Description
Use the stp priority command to set the priority of the switch in the specified spanning
tree instance.
Use the undo stp priority command to restore the switch to the default priority in the
specified spanning tree instance.
The default priority of a switch is 32,768.
The priorities of switches are used for spanning tree generation. Switch priorities are
spanning tree-specific. That is, you can set different priorities for the same switch in
different spanning tree instances.
If you do not specify the instance-id argument, the two commands apply to the CIST.
Example
Syntax
stp region-configuration
undo stp region-configuration
View
System view
Parameter
None
Description
1-39
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
And you can modify the three settings after entering MST region view by using the stp
region-configuration command.
Example
Syntax
View
System view
Parameter
instance-id: Spanning tree instance ID ranging from 0 to 16. A value of 0 specifies the
CIST.
bridgenum: Network diameter of the specified spanning tree. This argument ranges
from 2 to 7 and defaults to 7.
centi-seconds: Hello time (in centiseconds) of the specified spanning tree. This
argument ranges from 100 to 1,000 and defaults to 200.
Description
Use the stp root primary command to configure the current switch as the root bridge
of a specified spanning tree instance.
Use the undo stp root command to cancel the current configuration.
By default, a switch is not configured as a root bridge.
If you do not specify the instance-id argument, these two commands apply to the CIST.
You can specify the current switch as the root bridge of a spanning tree instance
regardless of the priority of the switch. You can also specify the network diameter of the
switched network by using the stp root primary command. The switch will then figure
out the following three time parameters: Hello time, Forward delay, and Max age. As
the Hello time figured out by the network diameter is not always the optimal one, you
can set it manually through the hello-time centi-seconds parameter. Normally, you are
1-40
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
recommended to set the network diameter and leave the Forward delay and Max age
parameters being automatically determined by the network diameter you set.
Caution:
z You can configure only one root bridge for a spanning tree instance and can
configure one or more secondary root bridges for a spanning tree instance.
Configuring multiple root bridges for a spanning tree instance causes unpredictable
spanning tree computing results.
z Once a switch is configured as the root bridge or a secondary root bridge, its priority
cannot be modified.
Example
# Configure the current switch as the root bridge of spanning tree instance 1, setting the
network diameter of the switched network to 4, and the Hello time to 500 centiseconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] stp instance 1 root primary bridge-diameter 4 hello-time 500
Syntax
View
System view
Parameter
instance-id: Spanning tree instance ID ranging from 0 to 16. A value of 0 specifies the
CIST.
bridgenum: Network diameter of the specified spanning tree. This argument ranges
from 2 to 7 and defaults to 7.
centi-seconds: Hello time in centiseconds of the specified spanning tree. This argument
ranges from 100 to 1,000 and defaults to 200.
1-41
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Description
Use the stp root secondary command to configure the current switch as a secondary
root bridge of a specified spanning tree instance.
Use the undo stp root command to cancel the current configuration.
By default, a switch does not operate as a secondary root bridge.
If you do not specify the instance-id argument, these two commands apply to the CIST.
You can configure one or more secondary root bridges for a spanning tree instance. If
the switch operating as the root bridge fails or is turned off, the secondary root bridge
with the least MAC address becomes the root bridge.
You can also specify the network diameter and the Hello time of the switch that you are
configuring as a secondary root bridge. The switch will then figures out the other two
time parameters: Forward delay and Max age. You can configure only one root bridge
for a spanning tree instance but you can configure one or more secondary root bridges
for a spanning tree instance. Once a switch is configured as the root bridge or a
secondary root bridge, its priority cannot be modified.
Example
# Configure the current switch as a secondary root bridge of spanning tree instance 4,
setting the network diameter of the switched network to 5 and the Hello time to 300
centiseconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] stp instance 4 root secondary bridge-diameter 5 hello-time 300
Syntax
stp root-protection
undo stp root-protection
View
Parameter
None
Description
Use the stp root-protection command to enable the root protection function on the
current port.
1-42
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Use the undo stp root-protection command to restore the root protection function to
the default state on the current port.
By default, the root protection function is disabled.
Configuration errors or attacks may result in configuration BPDUs with their priorities
higher than that of a root bridge, which causes new root bridge to be elected and
network topology jitter to occur. In this case, flows that are to travel along high-speed
links may be led to low-speed links, and network congestion may occur.
You can avoid this by utilizing the root protection function. Ports with this function
enabled can only be kept as designated ports in all spanning tree instances. When a
port of this type receives configuration BPDUs with higher priorities, it changes to
Discarding state (rather than becomes a non-designated port) and stops forwarding
packets (as if it is disconnected from the link). It resumes the normal state if it does not
receive any configuration BPDUs with higher priorities for a specified period.
Related command: stp interface root-protection.
Example
Syntax
View
System view
Parameter
None
Description
Use the stp tc-protection enable command to enable the TC-BPDU prevention
function.
Use the stp tc-protection disable command to disable the TC-BPDU prevention
function.
By default, the TC-BPDU prevention function is enabled.
1-43
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
A switch removes MAC address entries and ARP entries upon receiving TC-BPDUs. If
a malicious user sends a large amount of TC-BPDUs to a switch in a short period, the
switch may busy itself in removing MAC address entries and ARP entries, which may
decreases the performance and stability of the switch.
With the TC-BPDU prevention function enabled, a switch performs only one removing
operation in a specified period (it is 10 seconds by default) after it receives a TC-BPDU.
The switch also checks to see if other TC-BPDUs arrive in this period and performs
another removing operation in the next period if a TC-BPDU is received. Such a
mechanism prevents a switch from being busying itself in performing removing
operations.
Example
Syntax
View
System view
Parameter
Description
Use the stp timer forward-delay command to set the Forward delay of the switch.
Use the undo stp timer forward-delay command to revert to the default Forward
delay.
To prevent the occurrence of temporary loops, when a port changes its state from
discarding to forwarding, it undergoes an intermediate state and waits for a specific
period to synchronize with the remote switches. This state transition period is
determined by the Forward delay configured on the root bridge.
The Forward delay setting configured on a root bridge applies to all switches operating
in the same spanning tree instance.
1-44
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
As for the configuration of the three time-related parameters (that is, the Hello time,
Forward delay, and Max age parameters), the following formulas must be met to
prevent network jitter.
2 x (Forward delay – 1 second) >= Max age
Max age >= 2 x (Hello time + 1 second)
You are recommended to specify the network diameter of the switched network and the
Hello time by using the stp root primary or stp root secondary command. After that,
the three proper time-related parameters are automatically determined.
Related command: stp timer hello, stp timer max-age, and stp bridge-diameter.
Example
Syntax
View
System view
Parameter
centi-seconds: Hello time in centiseconds to be set. This argument ranges from 100 to
1,000 and defaults to 200.
Description
Use the stp timer hello command to set the Hello time of the switch.
Use the undo stp timer hello command to revert to the default Hello time.
A root bridge regularly sends out configuration BPDUs to maintain the existing
spanning trees. The Hello time is used to set the sending interval. When a switch
becomes a root bridge, it regularly sends BPDUs at the interval specified by the hello
time you have configured on it. While, the other none-root-bridge switches listen to the
BPDUs; if they do not receive a BPDU in a specific period, spanning trees will be
regenerated.
1-45
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
As for the configuration of the three time-related parameters (that is, the Hello time,
Forward delay, and Max age parameters), the following formulas must be met to
prevent network jitter.
2 * (Forward delay – 1 second) >= Max age
Max age >= 2 * (Hello time + 1 second)
You are recommended to specify the network diameter of the switched network and the
Hello time by using the stp root primary or stp root secondary command. After that,
the three proper time-related parameters are automatically determined.
Related command: stp timer forward-delay, stp timer max-age, and stp
bridge-diameter.
Example
Syntax
View
System view
Parameter
centi-seconds: Max age in centiseconds to be set. This argument ranges from 600 to
4,000 and defaults to 2,000.
Description
Use the stp timer max-age command to set the Max age of the switch.
Use the undo stp timer max-age command to revert to the default Max age.
MSTP is capable of detecting link problems and automatically restoring redundant links
to forwarding state. In CIST, switches use the Max age parameter to judge whether or
not a received configuration BPDU times out. And spanning trees will be regenerated if
a configuration BPDU received by a port times out.
The Max age is meaningless to MSTIs. The Max age configured for the root bridge of
the CIST applies to all switches operating on the CIST, including the root bridge.
1-46
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
As for the configuration of the three time-related parameters (that is, the Hello time,
Forward delay, and Max age parameters), the following formulas must be met to
prevent network jitter.
2 * (Forward delay – 1 second) >= Max age,
Max age >= 2 * (Hello time + 1 second).
You are recommended to specify the network diameter of the switched network and the
Hello time parameter by using the stp root primary or stp root secondary command.
After that, the three proper time-related parameters are automatically determined.
Related command: stp timer forward-delay, stp timer hello, and stp
bridge-diameter.
Example
Syntax
View
System view
Parameter
number: Hello time factor. This argument ranges from 1 to 10 and defaults to 3.
Description
Use the stp timer-factor command to set the timeout time of MSTP protocol packets
on a switch in the form of a multiple of the Hello time. For example, with the number
argument set to 3, the timeout time is three times of the Hello time.
Use the undo stp timer-factor command to revert to the default Hello time factor.
A switch regularly sends protocol packets to its neighboring devices at the interval
specified by the Hello time parameter to test the links. Normally, a switch regards its
upstream switch faulty if the former does receive any protocol packets from the latter in
a period three times of the Hello time and then initiates the spanning tree regeneration
process.
1-47
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Example
Syntax
View
Parameter
Description
Use the stp transmit-limit command to set the maximum number of configuration
BPDUs the current port can transmit in each Hello time.
Use the undo stp transmit-limit command to revert to the default maximum number.
A larger number configured by the stp transmit-limit command allows more
configuration BPDUs can be transmitted in each Hello time, which may occupy more
switch resources. So configure it to a proper value to avoid MSTP from occupying too
many network resources.
Related command: stp interface transmit-limit.
Example
# Set the maximum number of configuration BPDUs that can be transmitted by the
Ethernet1/0/1 port in each Hello time to 15.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] stp transmit-limit 15
1-48
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
Syntax
View
Parameter
Description
Use the vlan-mapping modulo command to map VLANs to specific spanning tree
instances.
By default, all VLANs in a network are mapped to the CIST (spanning tree instance 0).
MSTP uses a VLAN mapping table to describe VLAN-to-spanning-tree-instance
mappings. You can use this command to establish the VLAN mapping table and to map
VLANs to specific spanning tree instances.
Note that a VLAN cannot be mapped to multiple different spanning tree instances at the
same time. A VLAN-to-spanning-tree-instance mapping becomes invalid when you
map the VLAN to another spanning tree instance.
Note:
You can map VLANs to specific spanning tree instances quickly by using the
vlan-mapping modulo modulo command. The ID of the spanning tree instance to
which a VLAN is mapped can be figured out by using the following expression:
(VLAN ID-1) % modulo + 1,
Where (VLAN ID-1) % modulo yields the module of (VLAN ID-1) with regards to modulo.
For example, if you set the modulo argument to 16, then VLAN 1 is mapped to spanning
tree instance 1, VLAN 2 is mapped to spanning tree instance 2, …, VLAN 16 is mapped
to spanning tree instance 16, VLAN 17 is mapped to spanning tree instance 1, and so
on.
Example
# Map VLANs to spanning tree instances, with the modulo being 16.
<Quidway> system-view
1-49
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 MSTP Configuration Commands
1-50
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 BPDU Tunnel Configuration Commands
Syntax
vlan-vpn tunnel
undo vlan-vpn tunnel
View
System view
Parameter
None
Description
Use the vlan-vpn tunnel command to enable the BPDU Tunnel function for a switch.
Use the undo vlan-vpn tunnel command to disable the BPDU Tunnel function.
The BPDU Tunnel function enables BPDUs to be transparently transmitted between
geographically dispersed user networks through specified VLAN VPNs in operator’s
networks, through which spanning trees can be generated across these user networks
and are independent of those of the operator’s network.
By default, the BPDU Tunnel function is disabled.
Note:
z The BPDU Tunnel function can only be enabled on devices with STP employed.
z The BPDU Tunnel function can only be enabled on access ports.
z To enable the BPDU Tunnel function, make sure the links between operator’s
networks are trunk links.
z If a fabric port exists on a switch, you cannot enable the VLAN-VPN function for any
port of the switch.
z As the VLAN-VPN function is unavailable on ports with 802.1x, GVRP, GMRP, STP,
or NTDP employed, the BPDU Tunnel function is not applicable to these ports.
2-1
Command Manual – MSTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 BPDU Tunnel Configuration Commands
Example
2-2
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
iii
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
When running a routing protocol, the Ethernet switch also functions as a router. The
words “router” and the router icons covered in the following text represent routers in
common sense and Ethernet switches running a routing protocol. To improve
readability, this will not be mentioned again in this manual.
This manual deals with the S3900-EI series switches. The ospf, ospf-ase, and
ospf-nssa commands are supported by the S3900-EI series, but not supported by any
other S3900 switch. This will not be mentioned again in this manual.
Syntax
display ip routing-table
View
Any view
Parameter
None
Description
Use the display ip routing-table command to display the routing table summary.
This command displays the summary of the routing table. Each line represents one
route, containing destination address/mask length, protocol, preference, cost, next hop,
and output interface.
This command displays only the currently used routes, that is, the optimal routes.
Example
1-1
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Destination/Mask Destination address/mask length
Syntax
View
Any view
Parameter
acl-number: Basic access control list (ACL) number, ranging from 2000 to 2999.
verbose: With this argument, this command displays the verbose information of both
active and inactive routes that filtered through the specified ACL. Without this argument,
this command only displays the summary of the active routes that filtered through the
specified ACL.
1-2
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the display ip routing-table acl command to display the routes that filtered
through a specific basic ACL.
This command is used to track and display the results of route policy. It displays and
only displays the routes that filtered through the basic ACL you specified by an ACL
number.
Example
# Display the summary of the active routes that filtered through basic acl 2000.
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255
[Quidway-acl-basic-2000] rule deny source any
[Quidway-acl-basic-2000] display ip routing-table acl 2000
Routes matched by access-list 2000:
Summary count: 2
Destination/Mask Protocol Pre Cost Nexthop Interface
10.1.1.0/24 DIRECT 0 0 10.1.1.2 Vlan-interface1
10.1.1.2/32 DIRECT 0 0 127.0.0.1
InLoopBack0
1-3
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Table 1-2 Description on the fields of the display ip routing-table acl command
Field Description
Destination Destination address
Mask Mask
Protocol Routing protocol
Preference Routing preference
Nexthop Next hop address
Output interface, through which the data packets destined for the
Interface
destination network segment are sent
State Route state description:
This is an active unicast route.
ActiveU
"U" means "unicast".
1-4
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
The routing protocol does not
redistribute NoAdvise route
NoAdvise
when it redistributes routes
based on the policy.
Normally, the routing protocol
selects the route with the
highest preference from its
routing table, places it in its core
NotInstall routing table, and redistributes
it. Although the NotInstall route
cannot be placed in the core
routing table, it is possibly that it
is selected and redistributed.
Unlike the normal routes, the
Reject route will discard the
packets that select it as their
Reject route, and the router will send
ICMP unreachable message to
the source end. Reject route is
usually used for the network test
When the routes from the
routing table are deleted, the
routes with Retain flag will not
Retain be deleted. Using this function
you can set Retain flag for some
static routes, so that they can
exist in the core routing table.
The route with Static flag will not
be cleared from the routing table
after you save it and reboot the
Static
router. Generally, the static
route configured manually in the
router belongs to a Static route.
Unicast Unicast route
Age Time to live, in the format of hour/minute/second (hh:mm:ss).
Cost Value of the cost
Syntax
View
Any view
1-5
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
Description
Example
# There is a corresponding route in the natural mask range. Display the summary.
<Quidway> display ip routing-table 169.0.0.0
Destination/Mask Protocol Pre Cost Nexthop Interface
169.0.0.0/16 Static 60 0 2.1.1.1 LoopBack1
1-6
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
# There are corresponding routes in the natural mask range. Display detailed
information.
<Quidway> display ip routing-table 169.0.0.0 verbose
Routing tables:
+ = Active Route, - = Last Active, # = Both * = Next hop in use
Summary count: 1
**Destination: 169.0.0.0 Mask: 255.255.255.0
Protocol: #STATIC Preference: 60
*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Gateway Static Unicast>
Age: 4:49 Cost: 0/0 Tag: 0
# There is no corresponding route in the natural mask range (only the longest matched
route is displayed). Display the detailed information.
<Quidway> display ip routing-table 169.253.0.0 verbose
Routing Tables:
+ = Active Route, - = Last Active, # = Both * = Next hop in use
Summary count:1
**Destination: 169.0.0.0 Mask: 255.0.0.0
Protocol: #Static Preference: -60
*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Static Unicast>
Age: 3:47 Cost: 0/0 Tag: 0
Syntax
View
Any view
Parameter
1-7
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
ip-address2 ANDed with mask2 specifies the end. This command displays the route in
this address range.
mask1, mask2: IP address mask, length in dotted decimal notation or expressed as an
integer. It ranges from 0 to 32 when expressed as an integer.
verbose: With the verbose argument provided, this command displays the verbose
information of both active and inactive routes. Without this argument provided, this
command displays the summary of active routes only.
Description
Example
Syntax
View
Any view
Parameter
1-8
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the display ip routing-table ip-prefix command to display the routes that filtered
through a specific ip-prefix list.
This command is mainly used to track and display the results of route policy. It displays
and only displays the routes that filtered through the ip-prefix list you specified.
If the specified ip-prefix list does not exist, with the verbose argument provided, this
command displays the verbose information of all active and inactive routes; without the
verbose argument provided, this command display the summary of active routes only.
Example
# Display the summary of the active route that filtered through ip-prefix list abc2, which
permits the routes with a prefix of 10.1.1.0 and a mask length ranging 24 to 32.
[Quidway] ip ip-prefix abc2 permit 10.1.1.0 24 less-equal 32
[Quidway] display ip routing-table ip-prefix abc2
Routes matched by ip-prefix abc2:
Summary count: 2
Destination/Mask Protocol Pre Cost Nexthop Interface
10.1.1.0/24 DIRECT 0 0 10.1.1.2 Vlan-interface1
10.1.1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0
1-9
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
protocol: You can provide one of the following values for this argument.
z direct: Displays direct-connect route information
z static: Displays static route information.
z ospf: Displays OSPF route information.
z ospf-ase: Displays OSPF ASE route information.
z ospf-nssa: Displays OSPF NSSA route information.
z rip: Displays RIP route information.
inactive: With this argument provided, this command displays the inactive route
information. Without this argument provided, this command displays both active and
inactive route information.
verbose: With this argument provided, this command displays the verbose route
information. Without this argument provided, this command displays route summary
only.
Description
Use the display ip routing-table protocol command to display the route information
of a specific protocol.
Example
1-10
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
None
Description
Use the display ip routing-table radix command to display the route information in a
tree structure.
Example
1-11
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Table 1-3 Description on the fields of the display ip routing-table radix command
Field Description
INET Address suite
inodes Number of nodes
routes Number of routes
Syntax
View
Any view
Parameter
None
Description
Use the display ip routing-table statistics command to display the integrated routing
information.
The integrated routing information includes the total number of routes, the number of
active routes, the number of routes added by protocols, and the number of routes
deleted.
Example
1-12
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Routing protocol. O_ASE stands for
OSPF_ASE routes; O_NSSA stands for
Proto
OSPF NSSA routes; AGGRE stands for
aggregated routes.
route Number of routes
active Number of active routes
Number of routes added after the router
added is rebooted or the routing table is cleared
last time.
Number of routes deleted (Such routes
deleted
will be freed in a period of time)
Total number of the different kinds of
Total
routes.
Syntax
View
Any view
Parameter
None
Description
Use the display ip routing-table verbose command to display the verbose routing
table information.
With the verbose argument provided, this command displays the verbose routing table
information. The descriptor describing the route state will be displayed first. Then, the
statistics of the entire routing table will be output. Finally, the verbose description of
each route will be output.
The display ip routing-table verbose command can display all current routes,
including inactive routes and invalid routes.
Example
1-13
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
First, display statistics of the whole routing table. Then, output detailed information of
every route entry in turn. Table 1-2 shows the meaning of route status. Table 1-5 shows
routing table statistics.
Table 1-5 Description on the fields of the display ip routing-table verbose command
Field Description
Holddown Number of held-down routes
Delete Number of deleted routes
Syntax
View
System view
1-14
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
None
Description
Use the delete static-routes all command to delete all static routes.
The system will request your confirmation before it deletes all the configured static
routes.
Related command: ip route-static and display ip routing-table.
Example
1.2.2 ip route-static
Syntax
View
System view
Parameter
1-15
Command Manual – Routing Protocol Chapter 1 Static Route Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
preference-value: Preference level of the route, in the range from 1 to 255. The default
preference is 60.
reject: Indicates an unreachable route. If a static route to a destination has the "reject"
attribute, all the IP packets destined for this destination will be discarded, and the
source host will be informed that the destination is unreachable.
blackhole: Indicates a blackhole route. If a static route to a destination has the
“blackhole” attribute, the outgoing interface of this route is the Null 0 interface
regardless of the next hop address, and all the IP packet addresses destined for this
destination are dropped without the source host being notified.
description text: Provides a description for the current route.
detect-group group number: Specifies a detect group.
Description
Example
1-16
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Note:
When running a routing protocol, the Ethernet switch also functions as a router. The
word “router” and the router icons covered in the following text represent routers in
common sense and Ethernet switches running a routing protocol. To improve
readability, this will not be mentioned again in this manual.
Syntax
checkzero
undo checkzero
View
RIP view
Parameter
None
Description
Use the checkzero command to enable zero field check of RIP-1 packets.
Use the undo checkzero command to disable zero field check.
By default, RIP-1 performs zero field check.
According to the protocol (RFC 1058) specifications, some fields in RIP-1 packets must
be zero and these fields are called zero fields. You can use the checkzero command to
enable/disable zero field check of RIP-1 packets. When zero field check is enabled, if
an incoming RIP-1 packet has a non-zero zero field, the packet will be rejected.
This command does not apply to RIP-2 packets because they have no zero fields.
Example
2-1
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Syntax
View
RIP view
Parameter
Description
Use the default cost command to set the default routing cost of imported routes.
Use the undo default cost command to restore the default value.
If no routing cost is specified when you use the import-route command to import
routes from another routing protocol, the routes will be imported with the default routing
cost specified with the default cost command.
Related command: import-route.
Example
# Set the default routing cost of the routes imported from other routing protocols to 3.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rip
[Quidway-rip] default cost 3
Syntax
display rip
View
Any view
Parameter
None
2-2
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Description
Use the display rip command to display the current RIP operation state and RIP
configuration.
Example
Field Description
RIP is running RIP is active.
Checkzero is on Zero field checking is enabled.
Syntax
2-3
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
View
Any view
Parameter
View
Description
Use the display rip interface command to display RIP interface information.
Example
Table 2-2 Description on the fields of the display rip interface command
Field Description
IP address of the interface running RIP (You need to
Address use the network command to enable the network
segment on which the address resides.)
Name of the interface running RIP. The IP address of
Interface
the interface corresponds to that in the Address field.
Ver Version of RIP running on the interface
Additional routing metric added when a route is
MetrIn/Out
received/sent
Indicates whether to allow the interface to receive RIP
Input
packets ("on" means yes; "off" means no).
Indicates whether to allow the interface to send RIP
Output
packets ("on" means yes; "off" means no).
Indicates whether split horizon is enabled ("on" means
Split-horizon
yes; "off" means no)
Syntax
2-4
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
View
Any view
Parameter
None
Description
Use the display rip routing command to display RIP routing information.
Example
Table 2-3 Description on the fields of the display rip routing command
Field Description
Destination/Mask Destination address/Mask
Cost Cost
NextHop Net hop address
Amount of time that elapsed after the route is
Age
advertised
SourceGateway Gateway originating the route
Indicates whether to allow the interface to send
Output
RIP packets ("on" means yes; "off" means no).
Indicates whether split horizon is enabled ("on"
Split-horizon
means yes; "off" means no)
Syntax
2-5
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
View
RIP view
Parameter
acl-number: Number of the basic or advanced ACL used to filter routing information by
destination address.
ip-prefix-name: Name of the address ip-prefix list used to filter routing information by
destination address.
route-policy-name: Name of the route-policy used to filter routing information. A
route-policy can enable RIP to determine which routes are to be sent/received based
on such fields as acl/cost/interface/ip/ip-prefix/tag.
routing-protocol: Routing protocol whose routing information is to be filtered. Currently,
this can be direct, ospf, ospf-ase, ospf-nssa, or static.
Description
Use the filter-policy export command to enable RIP to filter the routing information to
be advertised.
Use the undo filter-policy export command to cancel the filtering of the routing
information to be advertised.
By default, RIP does not filter routing information before advertising.
Related command: acl, filter-policy import, ip ip-prefix.
Example
# Configure to filter route information by ACL 2000 before the information is advertised.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rip
[Quidway-rip] filter-policy 2000 export
Syntax
2-6
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
View
RIP view
Parameter
Description
Use the filter-policy gateway command to enable RIP to filter received routing
information by a specified address so that the routing information advertised by the
address can pass the filter.
Use the undo filter-policy gateway command to disable the above filtering.
Use the filter-policy import command to enable RIP to filter the received global
routing information.
Use the undo filter-policy import command to disable the above filtering.
By default, RIP does not filter the received routing information.
You can control the range of routes received by RIP by specifying an ACL and ip-prefix
list.
Related command: acl, filter-policy export, ip ip-prefix.
Example
2-7
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
2.1.8 host-route
Syntax
host-route
undo host-route
View
RIP view
Parameter
None
Description
Example
2.1.9 import-route
Syntax
View
RIP view
Parameter
protocol: Source routing protocol whose routes will be imported by RIP. At present, RIP
can import the following types of routes: direct, ospf, ospf-ase, ospf-nssa and static.
2-8
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Description
Use the import-route command to import the routes of another protocol into RIP.
Use the undo import-route command to cancel the routes imported from another
protocol.
By default, RIP does not import routes from other protocols.
The import-route command is used to import the routes of another protocol with a
specified cost.. RIP regards the imported routes as its own routes and transmits them
with the specified cost. This command can greatly enhance the capability of RIP to
obtain routes, thereby improving RIP performance.
If the cost value is not specified, routes will be imported with the default routing cost
(set by the default cost command, ranging from 1 to 16). If the cost of an imported
route is 16, RIP marks the route as HOLD DOWN (however, the route can still be used
to forward packets), and continues to announce the route with this cost to other routers
running RIP until the Garbage Collection timer times out (the timeout time defaults to
120 seconds).
Related command: default cost.
Example
# Set the default cost and import OSPF routes with the default cost.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rip
[Quidway-rip] default cost 3
[Quidway-rip] import-route ospf
2.1.10 network
Syntax
network network-address
undo network network-address
2-9
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
View
RIP view
Parameter
Description
Example
2.1.11 peer
Syntax
peer ip-address
2-10
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
View
RIP view
Parameter
ip-address: IP address of the interface on the peer router with which routing information
needs to be exchanged, in dotted decimal notation.
Description
Use the peer command to configure the destination address of the peer device with
which routing information should be exchanged in unicast mode.
Use the undo peer command to cancel a unicast address.
By default, RIP does not send packets to any address in unicast mode.
This command is used to for non-broadcast networks to which protocol packets cannot
be sent in broadcast mode. And you are not recommended to use this command in
normal situation.
Example
2.1.12 preference
Syntax
preference value
undo preference
View
RIP view
Parameter
value: Preference level, ranging from 1 to 255. By default, the value is 100.
Description
2-11
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Every routing protocol has its own preference. Its default value is determined by the
specific routing policy. The preferences of routing protocols will finally determine which
routing algorithm's routes will be selected as the optimal routes in the IP routing table.
You can use this command to modify the RIP preference manually.
Example
2.1.13 reset
Syntax
reset
View
RIP view
Parameter
None
Description
Use the reset command to reset the system configuration parameters of RIP.
When you need to re-configure the parameters of RIP, you can use this command to
restore the default setting.
Example
2.1.14 rip
Syntax
rip
undo rip
2-12
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
View
System view
Parameter
None
Description
Use the rip command to enable RIP and enter RIP view.
Use the undo rip command to disable RIP.
By default, the system does not run RIP.
RIP must be enabled before you can enter the RIP view and configure various RIP
global parameters. You can, however, configure the interface-based parameters
regardless of whether RIP is enabled.
Note:
Note that the interface parameters configured previously would be invalid when RIP is
disabled.
Example
Syntax
View
Interface view
Parameter
2-13
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Description
Example
# Specify the interface Vlan-interface 10 to use the simple authentication with the
authentication key of aaa.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] rip version 2
[Quidway-Vlan-interface10] rip authentication-mode simple aaa
# Specify Vlan-interface 10 to use the MD5 cipher text authentication, with the
authentication key of aaa and the packet format of rfc2453.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] rip version 2
[Quidway-Vlan-interface10] rip authentication-mode md5 rfc2453 aaa
2-14
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Syntax
rip input
undo rip input
View
Interface view
Parameter
None
Description
Use the rip input command to enable an interface to receive RIP packets.
Use the undo rip input command to disable an interface from receiving RIP packets.
By default, all interfaces, except loopback interfaces, can receive RIP packets.
This command is used in cooperation with another two commands: rip output and rip
work. Functionally, rip work is equivalent to rip input & rip output. The latter two
control the receipt and the transmission of RIP packets respectively on an interface.
The former command equals the functional combination of the latter two commands.
Related command: rip output, rip work.
Example
Syntax
View
Interface view
2-15
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Parameter
value: Additional route metric added when receiving a RIP route, ranging from 0 to 16.
By default, the value is 0.
Description
Use the rip metricin command to configure the additional route metric added to the
RIP routes received on an interface.
Use the undo rip metricin command to restore the default value of this additional route
metric.
Related command: rip metricout.
Example
# Set the additional route metric added to RIP routes received on Vlan-interface 10 to 2.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] rip metricin 2
Syntax
View
Interface view
Parameter
value: Additional route metric added when transmitting a RIP route, ranging from 1 to
16. By default, the value is 1.
2-16
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Description
Use the rip metricout command to configure the additional route metric added to the
RIP routes to be transmitted on an interface.
Use the undo rip metricout command to restore the default value of this additional
route metric.
Note:
The metricout configuration only applies to the RIP routes learnt by the router and
those generated by the router itself. It does not apply to any route imported to RIP by
any other routing protocol.
Example
# Set the additional route metric added to the RIP routes to be transmitted on
Vlan-interface 10 to 2.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] rip metricout 2
Syntax
rip output
undo rip output
View
Interface view
Parameter
None
Description
Use the rip output command to enable an interface to transmit RIP packets.
Use the undo rip output command to disable an interface from transmitting RIP
packets.
2-17
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
By default, all interfaces except loopback interfaces are enabled to transmit RIP
packets to the external.
This command is used in cooperation with another two commands: rip input and rip
work . Functionally, rip work is equivalent to rip input & rip output. The latter two
control the receipt and the transmission of RIP packets respectively on an interface.
The former command equals the functional combination of the latter two commands.
Related command: rip input, rip work.
Example
Syntax
rip split-horizon
undo rip split-horizon
View
Interface view
Parameter
None
Description
Use the rip split-horizon command to configure an interface to use split horizon when
transmitting RIP packets.
Use the undo rip split-horizon command to configure an interface not to use split
horizon when transmitting RIP packets.
By default, an interface is enabled to use split horizon when transmitting RIP packets.
Normally, split horizon is necessary for avoiding route loop. Only in some special cases
does split horizon need to be disabled to ensure the correct execution of the protocol.
So, disable split horizon only when necessary.
Example
# Specify the interface Vlan-interface 10 not to use split horizon when processing RIP
packets.
2-18
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] undo rip split-horizon
Syntax
View
Interface view
Parameter
Description
Use the rip version command to specify the version of RIP packets on an interface.
Use the undo rip version command to restore the default RIP packet version on the
interface.
By default, the interface RIP version is RIP-1. RIP-1 transmits packets in broadcast
mode, while RIP-2 transmits packets in multicast mode by default.
When running RIP-1, the interface only receives and transmits RIP-1 broadcast
packets, and receives RIP-2 broadcast packets, but does not receive RIP-2 multicast
packets. When running RIP-2 in broadcast mode, the interface receives and transmits
RIP-2 broadcast packets, receives RIP-1 broadcast packets. When running RIP-2 in
multicast mode, the interface only receives and transmits RIP-2 multicast packets,
receives RIP-2 broadcast packets, but does not receive RIP-1 broadcast packets.
Example
2-19
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Syntax
rip work
undo rip work
View
Interface view
Parameter
None
Description
Use the rip work command to enable RIP to transmit and receive RIP packets on an
interface.
Use the undo rip work command to disable RIP from transmitting and receiving RIP
packets on an interface.
By default, RIP is enabled from transmitting and receiving RIP packets on an interface.
This command is used in cooperation with rip input, rip output and network
commands.
Related command: network, rip input, rip output.
Example
# Disable RIP from transmitting and receiving RIP packets on the interface
Vlan-interface 10.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] undo rip work
2.1.23 summary
Syntax
summary
undo summary
View
RIP view
2-20
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Parameter
None
Description
Example
# Set RIP version on the interface Vlan-interface 10 as RIP-2 and disable route
aggregation.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] rip version 2
[Quidway-Vlan-interface10] quit
[Quidway] rip
[Quidway-rip] undo summary
2.1.24 timers
Syntax
View
RIP view
Parameter
update-timer: Value of the Period Update timer, ranging from 1 to 3,600 seconds. By
default, it is 30 seconds.
timeout-timer: Value of the Timeout timer, ranging from 1 to 3,600 seconds. By default,
it is 180 seconds.
2-21
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Description
Use the timers command to modify the values of the three RIP timers: Period Update,
Timeout, and Garbage-collection (which is usually set to a value four times that of the
Period Update timer).
Use the undo timers command to restore the default settings.
By default, the Period Update, Timeout, and Garbage-collection timers are 30 seconds,
180 seconds, and 120 seconds, respectively.
Generally, it is regarded that the value of the Garbage-collection timer is fixed at four
times that of the Period Update timer. Adjusting the Period Update timer will affect the
Garbage-collection timer.
The modification of RIP timers is validated immediately.
Related command: display rip.
Example
# Set the values of the Period Update timer and the Timeout timer of RIP to 10 seconds
and 30 seconds respectively.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rip
[Quidway-rip] timers update 10 timeout 30
2.1.25 traffic-share-across-interface
Syntax
traffic-share-across-interface
undo traffic-share-across-interface
View
RIP view
Parameter
None
Description
2-22
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RIP Configuration Commands
Example
2-23
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Note:
Among S3900 Series Ethernet Switches, only S3900-EI series support OSPF protocol.
Note:
When running a routing protocol, the Ethernet switch also functions as a router. The
words “router” and the router icons covered in the following text represent routers in
common sense and Ethernet switches running a routing protocol. To improve
readability, this will not be mentioned again in this manual.
Syntax
View
Parameter
Description
Use the abr-summary command to enable route aggregation on an area border router
(ABR).
3-1
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Example
# Aggregate the routes in the two network segments, 36.42.10.0 and 36.42.110.0, in
OSPF area 1 into one summary route 36.42.0.0 and transmit it to other areas.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] area 1
[Quidway-ospf-1-area-0.0.0.1] network 36.42.10.0 0.0.0.255
[Quidway-ospf-1-area-0.0.0.1] network 36.42.110.0 0.0.0.255
[Quidway-ospf-1-area-0.0.0.1] abr-summary 36.42.0.0 255.255.0.0
3.1.2 area
Syntax
area area-id
undo area area-id
View
OSPF view
Parameter
Description
Example
3-2
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
[Quidway] ospf 1
[Quidway-ospf-1] area 0
[Quidway-ospf-1-area-0.0.0.0]
3.1.3 asbr-summary
Syntax
View
OSPF view
Parameter
Description
Example
3-3
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
[Quidway] ospf 1
[Quidway-ospf-1] asbr-summary 10.2.0.0 255.255.0.0 not-advertise
3.1.4 authentication-mode
Syntax
View
Parameter
Description
Use the authentication-mode command to configure one area of OSPF to support the
authentication attribute.
Use the undo authentication-mode command to cancel the authentication attribute of
this area.
By default, an area does not support authentication attribute.
All the routers in one area must use the same authentication mode (no authentication,
simple text authentication, or MD5 cipher text authentication). If the mode of supporting
authentication is configured, all routers on the same segment must use the same
authentication key.
Use the ospf authentication-mode simple command to configure a simple text
authentication key.
Use the ospf authentication-mode md5 command to configure the MD5 cipher text
authentication key if the area is configured to support MD5 cipher text authentication
mode.
Related command: ospf authentication-mode.
Example
3-4
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Syntax
View
OSPF view
Parameter
value: Default routing cost of external route imported by OSPF, ranging from 0 to
16,777,214. By default, its value is 1.
Description
Use the default cost command to configure the default cost for OSPF to import
external routes.
Use the undo default cost command to restore the default routing cost of external
routes to its default value.
Since OSPF can import external routing information and propagate the information to
the entire autonomous system, routing cost of external routes can influence route
selection and calculation. Therefore, it is necessary to specify the default routing cost
for the protocol to import external routes.
Example
# Specify the default routing cost for OSPF to import external routes as 10.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] default cost 10
Syntax
View
OSPF view
3-5
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Parameter
Description
Use the default interval command to configure the default interval for OSPF to import
external routes.
Use the undo default interval command to restore the default value of the default
interval of importing external routes.
OSPF can import external routing information and propagate it to the entire
autonomous system. However, importing routes too often greatly affects the
performance of the device. Therefore, it is necessary to specify the default interval for
the protocol to import external routes.
Example
# Specify the default interval for OSPF to import external routes as 10 seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] default interval 10
Syntax
View
OSPF view
Parameter
routes: Default limit on the number of external routes imported in a unit time. It ranges
from 200 to 2147483647 and defaults to1000.
Description
Use the default limit command to configure the default limit on the number of routes
imported by OSPF in a unit time.
Use the undo default limit command to restore the default value.
OSPF can import external routing information and advertise them to the whole AS.
Importing too many external routes at a time greatly affects the performance of the
3-6
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
device. Therefore, it is necessary to limit the number of external routes imported during
each import interval.
Related command: default interval.
Example
# Specify the default limit on the number of external routes imported by OSPF in each
import interval as 200.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] default limit 200
Syntax
View
OSPF view
Parameter
Description
Use the default tag command to configure the default tag of OSPF when it imports an
external route.
Use the undo default tag command to restore the default tag of OSPF when it imports
the external route.
When OSPF imports a route found by another routing protocol in the router and uses it
as the external routing information of its own autonomous system, some additional
parameters are required, including the default cost and the default tag of the route.
Related command: default type.
Example
# Set the default tag of OSPF imported external route of the autonomous system as 10.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] default tag 10
3-7
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Syntax
default type { 1 | 2 }
undo default type
View
OSPF view
Parameter
Description
Use the default type command to configure the default type when OSPF imports
external routes.
Use the undo default type command to restore the default type when OSPF imports
external routes.
By default, the external routes of type 2 are imported.
OSPF specifies the two types of external routing information. You can use the
command described in this section to specify the default type when external routes are
imported.
Related command: default tag.
Example
3.1.10 default-cost
Syntax
default-cost value
undo default-cost
View
3-8
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Parameter
value: Cost value of the default route transmitted by OSPF to the STUB or NSSA area.
It ranges from 0 to 16,777,214 and defaults to 1.
Description
Use the default-cost command to configure the cost of the default route transmitted by
OSPF to the STUB or NSSA area.
Use the undo default-cost command to restore the default cost of the default route
transmitted by OSPF to the STUB or NSSA area.
This command only applies to an ABR in a STUB area or NSSA area.
To configure a STUB area, you need to use the stub and default-cost commands.
You must use the stub command on all the routers connected to a STUB area to
configure the area with the STUB attribute.
Use the default-cost command to configure the cost of the default route transmitted by
an ABR to the STUB area or NSSA area.
Related command: stub, nssa.
Example
# Set area 1 as the STUB area and the cost of the default route transmitted to this
STUB area to 60.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] area 1
[Quidway-ospf-1-area-0.0.0.1] network 20.0.0.0 0.255.255.255
[Quidway-ospf-1-area-0.0.0.1] stub
[Quidway-ospf-1-area-0.0.0.1] default-cost 60
3.1.11 default-route-advertise
Syntax
View
OSPF view
3-9
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Parameter
always: Generates an ase lsa describing the default route and advertises it if the local
router is not configured with the default route. If this keyword is not provided, the local
router must be configured with the default route before it can import the ase lsa, which
generates the default route.
cost value: Specifies the cost value of this ase lsa. The value of value ranges from 0 to
16777214 and defaults to 1.
type type-value: Specifies the cost type of this ase lsa. The value of type-value ranges
from 1 to 2 and defaults 2.
route-policy route-policy-name: If the default route matches the route-policy specified
by route-policy-name, the route-policy will affect the value in ase lsa. The
route-policy-name argument is a string containing 1 to 19 characters.
Description
Use the default-route-advertise command to import the default route to OSPF route
area.
Use the undo default-route-advertise command to cancel the import of the default
route.
By default, OSPF does not import the default route.
The import-route command cannot import the default route. To import the default route
to the route area, the default-route-advertise command must be used. If the local
router is not configured with the default route, the keyword always should be specified
so that ase lsa of the default route is generated.
Related command: import-route.
Example
# The ase lsa of the default route is generated only if the local router has the default
route.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] default-route-advertise
# The ase lsa of default route will be generated and advertised to OSPF route area
even the local router has no default route.
[Quidway-ospf-1] default-route-advertise always
3-10
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Syntax
View
Any view
Description
Use the display debugging ospf command to display the debugging states of OSPF
processes.
Example
Syntax
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes .
Description
Use the display ospf abr-asbr command to display the information about the ABR and
ASBR of OSPF.
Example
3-11
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Table 3-1 Description on the fields of the display ospf abr-asbr command
Field Description
Destination Router ID of the ABR or ASBR
Area where the router is connected to
Area
the ASBR
Cost Routing overhead value of the route
Nexthop Nexthop address to the destination
Interface Local output interface
Syntax
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
ip-address: Matched IP address, in dotted decimal notation.
mask: IP address mask, in dotted decimal notation.
Description
Use the display ospf asbr-summary command to display the summary information of
OSPF imported route.
If you do not specify an IP address or mask, the summary information of all OSPF
imported routes will be displayed.
Related command: asbr-summary .
Example
3-12
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Summary Address
net : 168.10.0.0
mask : 255.254.0.0
tag : 1
status : Advertise
The Count of Route is 0
Summary Address
net : 1.1.0.0
mask : 255.255.0.0
tag : 100
status : DoNotAdvertise
The Count of Route is 0
Table 3-2 Description on the fields of the display ospf asbr-summary command.
Field Description
net Destination network segment
mask Mask
tag Tag
Status information, which takes one of the following two values:
Syntax
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes .
Description
Use the display ospf brief command to display brief OSPF information.
3-13
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Example
Area 0.0.0.0:
Authtype: none Flags: <>
SPF scheduled: <>
Interface: 201.1.1.4 (Vlan-interface1)
Cost: 1 State: DR Type: Broadcast
Priority: 1
Designated Router: 201.1.1.4
Backup Designated Router: 201.1.1.3
Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1
Table 3-3 Description on the fields of the display ospf brief command
Field Description
RouterID Router ID of the router
Border routers for connection to the area, including
Border Router
ASBRs and ABRs
spf-schedule-interval Interval of SPF schedule
Authtype Authentication type of OSPF
Routing preference of OSPF. The internal route of OSPF
includes intra/inter area route, and its default routing
Routing preference
preference is 10, while that of the external route of OSPF
is 150 by default
Default ASE Default ASE parameters of OSPF, including metric, type
parameters and tag
SPF computation
SPF computation count since OSPF is enabled
count
Area Count Areas for connection to this router
Nssa Area Count Number of NSSA areas
SPF scheduled SPF scheduled (flag)
3-14
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Field Description
Interface Name of interface belonging to this area
Cost Cost of routes
State State information
Type Network type of OSPF interface
Priority Priority
Designated Router IP address of designated router (DR)
Backup Designated
IP address of backup designated router (BDR)
Router
OSPF timers, defined as follows:
Hello Interval of hello packet
Timers Dead Interval of dead neighbors
Poll Interval of poll
Syntax
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes .
Description
Use the display ospf cumulative command to display cumulative OSPF statistics.
Example
3-15
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Area 0.0.0.0:
Neighbors: 1 Interfaces: 1
Spf: 54 Checksum Sum F020
rtr: 2 net: 0 sumasb: 0 sumnet: 1
Area 0.0.0.1:
Neighbors: 0 Interfaces: 1
Spf: 19 Checksum Sum 14EAD
rtr: 1 net: 0 sumasb: 1 sumnet: 1
Routing Table:
Intra Area: 2 Inter Area: 0 ASE: 1
Table 3-4 Description on the fields of the display ospf cumulative command
Field Description
Type Type of input/output OSPF packet
IO Statistics Input Number of received packets
Output Number of transmitted packets
ASE Number of all ASE LSAs
checksum sum Checksum of ASE LSA
originated Number of originated LSAs
LSAs Number of received LSAs generated by other
received
routers
Router Number of all Router LSAs
3-16
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Field Description
rtr, net, sumasb,
Number of all LSAs in this area
sumnet
Intra Area Number of intra-area routes
Routing Table Inter Area Number of inter-area routes
ASE Number of external routes
Syntax
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
Description
Use the display ospf error command to display OSPF error information.
Example
3-17
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Table 3-5 Description on the fields of the display ospf error command
Field Description
IP: received my own packet Received my own packet
OSPF: wrong packet type OSPF packet type error
OSPF: wrong version OSPF version error
OSPF: wrong checksum OSPF checksum error
3-18
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Field Description
Database description (DD) packet: asynchronous
DD: neighbor state low
neighbor state
DD: unknown LSA type DD packet: unknown LSA type
DD: router id confusion DD packet: router id unidentifiable
DD: extern option mismatch DD packet: external route flag error
Link state acknowledgment (LS ACK) packet:
LS ACK: neighbor state low
asynchronous neighbor state
LS ACK: wrong ack Link state acknowledgment packet: ack error
Link state acknowledgment packet: ack
LS ACK: duplicate ack
duplication
Link state acknowledgment packet: unknown LSA
LS ACK: unknown LSA type
type
LS REQ: neighbor state low Link state request (LS REQ) packet
LS REQ: empty request Link state request packet: empty request
LS REQ: wrong request Link state request packet: erroneous request
Link state update packet: asynchronous neighbor
LS UPD: neighbor state low
state
LS UPD: newer self-generate Link state update packet: newer LSA generated by
LSA itself
LS UPD: LSA checksum
Link state update packet: LSA checksum error
wrong
LS UPD:received less recent Link state update packet: received less recent
LSA LSA
LS UPD: unknown LSA type Link state update packet: unknown LSA type
LS UPD: LSA length wrong Link state update packet: LSA length error
OSPF routing: next hop not
Next hop of OSPF routing does not exist
exist
DD: MTU option mismatch MTU option of DD packet is mismatched
ROUTETYPE: wrong type
Route type: the value of the type is wrong
value
Syntax
3-19
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
interface-type interface-number: Interface type and interface number.
Description
Use the display ospf interface command to display the OSPF interface information.
Example
Table 3-6 Description on the fields of the display ospf interface command
Field Description
Cost Cost of the interface
State State of the interface state machine
Type Network type of OSPF
Priority Priority of DR for interface election
Designated Router DR on the network in which the interface resides
Backup Designated Router BDR on the network in which the interface resides
OSPF timers, defined as follows:
Hello Interval of hello packet
Timers Dead Interval of dead neighbors
Poll Interval of poll
Retransmit Interval of retransmitting LSA
Transmit Delay Delay time of transmitting LSA
3-20
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Syntax
display ospf [ process-id ] [ area-id ] lsdb [ brief | [ asbr | ase | network | nssa |
router | summary [ ip-address ] ] [ originate-router ip-address | self-originate ] ]
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
area-id: OSPF area ID, which can be a decimal integer (ranging from 0 to 4294967295)
or in the form of an IP address.
brief: Displays brief database information.
asbr: Displays the database information about Type-4 LSAs (summary-Asbr-LSAs)
advertised by ASBR routers.
ase: Displays the database information about the Type-5 LSAs (AS-external-LSAs).
This argument is unavailable if you have provided a value for area-id.
network: Displays the database information about the Type-2 LSAs (network-LSAs).
nssa: Displays the database information about the Type-7 LSAs
(NSSA-external-LSAs).
router: Displays the database information about the Type-1 LSAs (router-LSAs).
summary: Displays the database information about the Type-3 LSAs
(summary-net-LSAs).
ip-address: Link state identifier (in the form of an IP address).
originate-router ip-address: Specifies the IP address of the router advertising the
LSAs.
self-originate: Displays the database information about the LSAs generated by the
local router (self-originate LSAs).
Description
Use the display ospf lsdb command to display the database information about OSPF
connecting state.
Example
3-21
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Table 3-7 Description on the fields of the display ospf lsdb command
Field Description
Type Type of the LSA
3-22
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
len: 36
seq#: 80000001
chksum: 0xfcaf
Options: (DC)
Net mask:255.255.0.0
Tos 0 metric: 1
E type : 2
Forwarding Address: 0.0.0.0
Tag: 1
Table 3-8 Description on the fields of the display ospf lsdb ase command
Field Description
type Type of the LSA
ls id Link state ID of the LSA
Router ID of the router that advertises
adv rtr
the LSA
ls age Age of the LSA
len Length of the LSA
Syntax
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
3-23
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Description
Use the display ospf nexthop command to display the OSPF next-hop information.
Example
Table 3-9 Description on the fields of the display ospf nexthop command
Field Description
Address Address of next hop
Type Type of next hop
Reference count of the next hop,
Refcount namely, number of routes using the next
hop
IP address of the interface to the next
Intf Addr
hop
Intf Name Interface to the next hop
Syntax
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
Description
Use the display ospf peer command to display the information about OSPF peer.
3-24
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Use the display ospf peer brief command to display the brief information, including
router ID, interface, and state, about every OSPF peer.
Use the display ospf peer statistics command to display the statistics of every OSPF
peer, namely, the number of peers in various states in every area.
Example
Table 3-10 Description on the fields of the display ospf peer command
Field Description
RouterID Router ID of neighbor router
Address of the interface, through which
Address neighbor router communicates with the
router
State State of adjacency relation
Master/Slave mode formed by
Mode
negotiation in exchanging DD packet
Priority Priority of DR/BDR for neighbor election
DR IP address of the interface of elected DR
IP address of the interface of elected
BDR
BDR
If no hello packet is received from the
Dead timer expires in 31s peer within this interval, the peer will be
considered to be invalid.
Neighbor has been up for 01:14:14 Time of neighbor connection
3-25
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Table 3-11 Description on the fields of the display ospf peer brief command
Field Description
Router ID Router ID of neighbor router
Address of the interface adjacent to the
Address
neighbor router
Pri Priority of neighbor router
Dead time, in seconds, of neighbor
DeadTime(s)
router
Type and number of the local router
Interface interface connected to the neighbor
router
Area ID Down Attempt Init 2-Way ExStart Exchange Loading Full Total
0.0.0.1 0 0 0 0 0 0 0 1 1
Total 0 0 0 0 0 0 0 1 1
Table 3-12 Description on the fields of the display ospf peer statistics command
Field Description
Area ID Area ID
Initial state for OSPF to establish
neighbor relation, which indicates that
Down OSPF router does not receive the
message from a certain neighbor router
within a period of time
3-26
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Field Description
It is enabled in an NBMA environment,
such as Frame Relay, X.25 or ATM. It
indicates that OSPF router does not
receive the message from a certain
Attempt
neighbor router within a period of time,
but still attempts to send Hello packet to
the adjacent routers for their
communications with a lower frequency.
It indicates that OSPF router has
received Hello packet from a neighbor
router, but its IP address is not
Init
contained in the Hello packet. Therefore,
a two-way communication between
them has not been established.
It indicates that a two-way
communication between OSPF router
2-Way and neighbor router has been
established. DR and BDR can be
selected in this state (or higher state).
In this state, the router determines the
sequence number of initial database
ExStart description (DD) packet used for data
exchange, so that it can obtain the latest
link state information
It indicates that OSPF router sends DD
Exchange packet to its neighbor routers to
exchange link state information
Syntax
3-27
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
Description
Use the display ospf request-queue command to display the information about the
OSPF request-queue.
Example
Table 3-13 Description on the fields of the display ospf request-queue command
Field Description
RouterID Router ID of neighbor router
Address of the interface, through which
Address neighbor routers communicate with the
router
Address of the interface on the network
Interface
segment
Area Area number of OSPF
LSID:1.1.1.3 Link State ID of the LSA
Router ID of the router that advertised
AdvRouter
the LSA
Sequence number of the LSA, used to
Sequence
discover old and repeated LSAs
Age Age of the LSA
Syntax
3-28
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
Description
Use the display ospf retrans-queue command to display the information about the
OSPF retransmission queue.
Example
Table 3-14 Description on the fields of the display ospf retrans-queue command
Field Description
RouterID Router ID of neighbor router
Address of the interface, through which
Address neighbor routers communicate with the
router
Address of the interface on the network
Interface
segment
Area Area number of OSPF
Type Type of the LSA
LSID Link State ID of the LSA
Router ID of the router that advertises
AdvRouter
the LSA
3-29
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Syntax
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
Description
Use the display ospf routing command to display the information about OSPF routing
table.
Example
Total Nets: 2
Intra Area: 2 Inter Area: 0 ASE: 0 NSSA: 0
Table 3-15 Description on the fields of the display ospf routing command
Field Description
Destination Destination network segment
Cost Cost of route
3-30
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Field Description
ASE Number of external routes
NSSA Number of NSSA routes
Syntax
View
Any view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
Description
Use the display ospf vlink command to display the information about OSPF virtual
links.
Example
Table 3-16 Description on the fields of the display ospf vlink command
Field Description
Virtual-link
Router ID of virtual-link neighbor router
Neighbor-id
State State
Interface IP address of the interface on the virtual link
Cost Route cost of the interface
Type Type: virtual link
3-31
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Field Description
ID of transit area that the virtual link passes, and it cannot be
Transit Area
backbone area, STUB area, or NSSA area
OSPF timers, defined as follows:
Hello Interval of hello packet
Timers Dead Interval of dead neighbors
Poll Interval of poll
Syntax
View
OSPF view
Parameter
Description
Use the filter-policy export command to configure the rule for filtering the advertised
routing information by OSPF.
Use the undo filter-policy export command to cancel the filtering rule configured.
By default, no filtering of the advertised routing information is performed.
In some cases, it may be required that only the routing information meeting some
conditions can be advertised. You can use the filter-policy command to set the filtering
conditions for the routing information to be advertised. Only the routing information
passing the filtration can be advertised.
This command affects the external routes imported (with the import-route command)
by OSPF. If the routing-protocol argument is specified, this command filters only the
imported routes generated by the specified protocol, not affecting the routes generated
3-32
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
by any other protocol. If the routing-protocol argument is not specified, the imported
routes generated by any protocol will be filtered.
Related command: acl, ip ip-prefix.
Example
# Configure OSPF to advertise only the routing information permitted by acl 2000.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 11.0.0.0 0.255.255.255
[Quidway-acl-basic-2000] rule deny source any
[Quidway-ospf-1] filter-policy 2000 export
Syntax
View
OSPF view
Parameter
acl-number: Basic or advanced Access control list used for filtering the destination
addresses of the routing information.
ip-prefix-name: Name of the address prefix list used for filtering the destination
addresses of the routing information.
gateway ip-prefix-name: Specifies the name of the address prefix list used for filtering
the addresses of the neighbor routers advertising the routing information.
Description
Use the filter-policy import command to configure the OSPF rules for filtering the
routing information received.
Use the undo filter-policy import command to cancel the filtering of the routing
information received.
By default, no filtering of the received routing information is performed.
In some cases, it may be required that only the routing information meeting some
conditions can be received. You can use the filter-policy command to set the filtering
3-33
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
conditions for the routing information to be received. Only the routing information
passing the filter can be received.
The filter-policy import command filters the routes calculated by OSPF. Only the
routes passing the filter can be added to the routing table. The routes can be filtered
based on next hop and destination address.
OSPF is a dynamic routing protocol based on link state, with routing information hidden
in LSAs. Therefore, OSPF cannot filter any advertised or received LSA. This command
is used much less in OSPF than in distance-vector routing protocols.
Example
# Filter the received routing information according to the rule defined by ACL 2000.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 20.0.0.0 0.255.255.255
[Quidway-acl-basic-2000] rule deny source any
[Quidway-ospf-1] filter-policy 2000 import
3.1.28 import-route
Syntax
View
OSPF view
Parameter
protocol: Source routing protocol whose routes will be imported. At present, it can be
direct, mip, rip, static, ospf-ase, and ospf-nssa.
route-policy route-policy-name: Imports only the routes matching the specified
route-policy.
cost value: Specifies the cost of imported external routes.
type value: Specifies the cost type of imported external routes. The value ranges from
1 to 2.
tag value: Specifies the tag of imported external routes.
Description
3-34
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Use the undo import-route command to cancel the importing of external routes.
Note:
You are recommended to configure the route type, cost and tag together in one
command. When you configure them individually, the new configuration for an attribute
will overwrite the old configuration for the attribute.
Example
# Configure to import RIP routes as type-2 routes, with the route tag of 33 and the route
cost of 50.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] import-route rip type 2 tag 33 cost 50
3.1.29 log-peer-change
Syntax
log-peer-change
View
OSPF view
Parameter
None
Description
Use the log-peer-change command to enable OSPF to log OSPF peer status
changes.
Example
3-35
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
3.1.30 multi-path-number
Syntax
multi-path-number value
View
OSPF view
Parameter
Description
Use the multi-path-number command to set the number of OSPF equivalent routes.
Example
3.1.31 network
Syntax
View
Parameter
Description
Use the network command to enable an interface to run the OSPF protocol.
Use the undo network command to disable an interface from running OSPF.
By default, the interface does not belong to any area.
3-36
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
To run OSPF on an interface, the master IP address of this interface must be in the
range of the network segment specified by this command. If only the slave IP address
of the interface is in the range of the network segment specified by this command, this
interface will not run OSPF.
Related command: ospf.
Example
# Specify the interfaces whose master IP addresses are in the segment range of
10.110.36.0 to run OSPF and specify the number of the OSPF area (where these
interfaces reside) as 6.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] area 6
[Quidway-ospf-1-area-0.0.0.6] network 10.110.36.0.0 0.0.0.255
3.1.32 nssa
Syntax
View
Parameter
Description
3-37
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
default route will always be generated. The type-7 LSA default route is generated only
when the route 0.0.0.0 exists in the routing table on the ASBR.
On the ASBR, if the no-import-route argument is provided, the external route imported
by OSPF with the import-route command will not be advertised to NSSA area.
Example
3.1.33 ospf
Syntax
View
System view
Parameter
process-id: OSPF Process ID, ranging from 1 to 65535. By default, the process ID is 1.
process-id is locally significant.
router-id: Router ID used by an OSPF process, in dotted decimal notation.
Description
Example
# Enable OSPF.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] router id 10.110.1.8
3-38
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
[Quidway] ospf
[Quidway-ospf-1]
# Enable the running of the OSPF protocol with process ID specified as 120.
[Quidway] router id 10.110.1.8
[Quidway] ospf 120
[Quidway-ospf-120]
Syntax
View
Interface view
Parameter
simple password: Uses plain text authentication. The password argument is a string of
up to eight characters.
key-id: ID of the authentication key in MD5 authentication mode, ranging from 1 to 255.
key: MD5 authentication key. If it is input in a plain text form, MD5 key is a string of 1 to
16 characters. It is displayed in a cipher text form with 24 characters in length when the
display current-configuration command is executed. Inputting the MD5 key in a
cipher text form with 24 characters in length is also supported.
Description
Example
3-39
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] area 1
[Quidway-ospf-1-area-0.0.0.1] network 131.119.0.0 0.0.255.255
[Quidway-ospf-1-area-0.0.0.1] authentication-mode md5
[Quidway-Vlan-interface10] ospf authentication-mode md5 15 Huawei
Syntax
View
Interface view
Parameter
Description
Use the ospf cost command to configure different packets sending costs so as to send
packets from different interfaces.
Use the undo ospf cost command to restore the default costs.
For the switch, the default cost for running OSPF protocol on a VLAN interface is 10.
Example
Syntax
View
Interface view
3-40
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Parameter
priority: Interface priority for electing the "designated router", ranging from 0 to 255. The
default value is 1.
Description
Use the ospf dr-priority command to configure the priority for electing the "designated
router" on an interface.
Use the undo ospf dr-priority command to restore the default value.
The priority of the interface determines the qualification of the interface when the
"designated router" is elected. The interface with higher priority will be preferred when
the election conflict occurs.
Example
Syntax
View
System view
Parameter
Description
Use the ospf mib-binding command to bind MIB operation to the specified OSPF
process.
Use the undo ospf mib-binding command to restore the default settings.
When OSPF enables the first process, OSPF always binds MIB operation to this
process. You can use this command to bind MIB operation to another OSPF process.
To cancel the binding, use the undo ospf mib-binding command. OSPF will
automatically re-bind MIB operation to the first process that it enables.
By default, MIB operation is bound to the OSPF process enabled first.
3-41
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Example
Syntax
ospf mtu-enable
undo ospf mtu-enable
View
Interface view
Parameter
None.
Description
Use the ospf mtu-enable command to enable the interface to write MTU value when
sending DD packets.
Use the undo ospf mtu-enable command to restore the default settings.
By default, the MTU value is 0 when sending DD packets. That is, the actual MTU value
of the interface is not written.
Database Description (DD) packets are used to describe its own LSDB when the router
running OSPF protocol is synchronizing the database.
The default MTU value of DD packet is 0. You can use this command to configure the
specified interface manually to write the MTU value area in DD packets when sending
DD packets. That is, the actual MTU value of the interface is written in.
Example
3-42
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Syntax
View
Interface view
Parameter
Description
Use the ospf network-type command to configure the network type of OSPF interface.
Use the undo ospf network-type command to restore the default network type of the
OSPF interface.
OSPF divides networks into four types based on link layer protocol:
z Broadcast: If Ethernet or FDDI is adopted, OSPF defaults the network type to
broadcast.
z Non-Broadcast Multi-access (nbma): If Frame Relay, ATM, HDLC or X.25 is
adopted, OSPF defaults the network type to NBMA.
z Point-to-Multipoint (p2mp): OSPF will not default the network type of any link layer
protocol to p2mp. The general undertaking is to change a partially connected
NBMA network to p2mp network if the NBMA network is not fully-meshed.
z Point-to-point (p2p): If PPP, LAPB or POS is adopted, OSPF defaults the network
type to p2p.
If there is any router not supporting multicast addresses on a broadcast network, the
network type of the interface can be changed to NBMA. Alternatively, the network type
of the interface can be changed from NBMA to broadcast.
For a non-broadcast multi-accessible network to be of NBMA type, any two routers in
the network must be directly reachable to each other through a virtual circuit. In other
words, the network must be fully-meshed.
For a network not meeting this condition, the network type of the interface must be
changed to point-to-multipoint. In this way, routing information can be exchanged
3-43
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
between two routers not directly reachable to each other through another router that is
directly reachable to the two routers.
If only two routers run OSPF in the same network segment, the network type of the
interface can also be changed to point-to-point.
Note that you must use the peer command to configure the peer if the network type of
the interface is NBMA or manually changed to NBMA with the ospf network-type
command.
Related command: ospf dr-priority.
Example
Syntax
View
Interface view
Parameter
seconds: Dead interval of the OSPF neighbor. It is in seconds and ranges from 1 to
65535.
Description
Use the ospf timer dead command to configure the dead interval of the OSPF peer.
Use the undo ospf timer dead command to restore the default value of the dead
interval of the peer.
By default, the dead interval is 40 seconds for the OSPF peers of p2p and broadcast
interfaces and is 120 seconds for those of p2mp and nbma interfaces.
The dead interval of OSPF peers means that, within this interval, if no Hello message is
received from the peer, the peer will be considered to be invalid. The value of dead
seconds should be at least four times of that of the Hello seconds. The dead seconds
for the routers on the same network segment must be identical.
Related command: ospf timer hello.
3-44
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Example
Syntax
View
Interface view
Parameter
Description
Use the ospf timer hello command to configure the interval for transmitting Hello
messages on an interface.
Use the undo ospf timer hello command to restore the interval to the default value.
By default, the interval is 10 seconds for an interface of p2p or broadcast type to
transmit Hello messages, and 30 seconds for an interface of p2mp or nbma type.
Related command: ospf timer dead.
Example
Syntax
3-45
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
View
Interface view
Parameter
seconds: Poll Hello interval in seconds. It ranges from 1 to 65535 and defaults to 40.
Description
Use the ospf timer poll command to configure the poll Hello packet interval on NBMA
and p2mp network.
Use the undo ospf timer poll command to restore the default poll interval.
On an NBMA or p2mp network, if a neighbor becomes invalid, Hello packet will be
transmitted at the interval of poll seconds. You can configure the poll seconds to
specify how often the interface transmits Hello packet before it establishes adjacency
with the adjacent router. Poll seconds should be no less than 3 times of Hello.
Example
# Configure to transmit poll Hello packet through interface Vlan-interface 20 every 130
seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 20
[Quidway-Vlan-interface20] ospf timer poll 130
Syntax
View
Interface view
Parameter
Description
Use the ospf timer retransmit command to configure the interval for LSA
retransmission on an interface.
3-46
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Use the undo ospf timer retransmit command to restore the default interval value for
LSA retransmission on the interface.
If a router running OSPF transmits a "link state advertisement" (LSA) to the peer, it
needs to wait for the acknowledgement packet from the peer. If no acknowledgement is
received from the peer within the LSA retransmission interval, this LSA will be
retransmitted.
The LSA retransmit between adjacent routers should not be set too short; otherwise,
unexpected retransmission will occur (See RFC2328).
Example
# Specify the retransmit for LSA transmission between the interface Vlan-interface 10
and the adjacent routers to 12 seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] ospf timer retransmit 12
Syntax
View
Interface view
Parameter
seconds: LSA transmission delay on an interface. It ranges from 1 to 3,600 and defaults
to 1 (in seconds).
Description
Use the ospf trans-delay command to configure the LSA transmission delay on an
interface.
Use the undo ospf trans-delay command to restore the default LSA transmission
delay on an interface.
LSA ages in the "link state database" (LSDB) of the router as time goes by (1 added
every second), but it does not age during network transmission. Therefore, it is
necessary to add a period of time set by this command to the aging time of LSA before
transmitting it.
3-47
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Example
3.1.45 peer
Syntax
View
OSPF view
Parameter
Description
Use the peer command to configure the IP address of the neighbor router and specify
DR priority on an NBMA network.
Use the undo peer command to cancel this configuration.
Example
3.1.46 preference
Syntax
3-48
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
View
OSPF view
Parameter
Description
Use the preference command to configure the preference of an OSPF protocol route.
Use the undo preference command to restore the default value of the OSPF protocol
route.
By default, the preference of an OSPF protocol internal route is 10 and the preference
of an external route is 150.
Because multiple dynamic routing protocols could be running on a router, there is the
problem of routing information sharing among routing protocols and selection.
Therefore, a default preference is specified for each routing protocol. When a route is
identified by different protocols, the protocol with the highest preference selected for
forwarding IP packets.
Example
Syntax
View
User view
Parameter
3-49
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Description
Use the reset ospf all command to reset all OSPF processes.
Use the reset ospf process-id command to reset the specified OSPF process and
clear the statistics.
After you use this command to reset an OSPF process:
z Invalid LSA is cleared immediately before LSA times out.
z A new Router ID takes effect if the Router ID changes.
z DR and BDR are re-elected conveniently.
z OSPF configuration before the restart will not lose.
After this command is issued, the system will prompt you to confirm whether to
re-enable OSPF.
Example
3.1.48 router id
Syntax
router id router-id
undo router id
View
System view
Parameter
Description
Use the router id command to configure the ID of a router running the OSPF protocol.
Use the undo router id command to cancel the router ID that has been set.
By default, if a LoopBack interface address exists, the system chooses the LoopBack
address with the greatest IP address value as the router ID. If no LoopBack interface is
configured, the address of the physical interface with the greatest IP address value will
be the router ID.
Router ID is a 32-bit unsigned integer that uniquely identifies a router in an OSPF
autonomous system. You can specify the ID for a router. If you do not specify a router
3-50
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
ID, the router will automatically select one from configured IP addresses as the ID of
this router. If no IP address is configured for any interface of the router, the router ID
must be configured in OSPF view. Otherwise, OSPF protocol cannot be enabled.
When the router ID is configured manually, the IDs of any two routers cannot be same
in the autonomous system. Thus, you can select the IP address of an interface as the
ID of this router.
Note:
A modified router ID takes effect only after OSPF is re-enabled.
Example
3.1.49 silent-interface
Syntax
View
OSPF view
Parameter
Description
3-51
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
the switch, this command can be used to enable/disable OSPF packet transmission
through the specified VLAN interface.
Example
Syntax
View
System view
Parameter
process-id: OSPF Process ID. If you do not specify a process ID, this command applies
to all current OSPF processes.
ifstatechange, virifstatechange, nbrstatechange, virnbrstatechange, ifcfgerror,
virifcfgerror, ifauthfail, virifauthfail, ifrxbadpkt, virifrxbadpkt, iftxretransmit,
viriftxretransmit, originatelsa, maxagelsa, lsdboverflow, lsdbapproachoverflow:
Types of TRAP packets that the switch produces in case of OSPF anomalies.
Description
Use the snmp-agent trap enable ospf command to enable the OSPF TRAP function.
Use the undo snmp-agent trap enable ospf command to disable the OSPF TRAP
function.
This command does not apply to the OSPF processes that are started after the
command is executed.
By default, the switch does not send TRAP packets in case of OSPF anomalies.
3-52
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Example
3.1.51 spf-schedule-interval
Syntax
spf-schedule-interval interval
undo spf-schedule-interval
View
OSPF view
Parameter
Description
Example
3-53
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
3.1.52 stub
Syntax
stub [ no-summary ]
undo stub
View
Parameter
no-summary: Disables an ABR from transmitting Summary LSAs to the STUB area.
Description
Use the stub command to configure the type of an OSPF area as "stub".
Use the undo stub command to cancel the settings.
By default, no area is set to be the STUB area.
If the router is an ABR, it will send a default route to the connected stub area . Use the
default-cost command to configure the default route cost. In addition, you can specify
the no-summary argument in the stub command to disable the receiving of type-3
LSAs by the stub area connected to the ABR.
Related command: default-cost.
Example
3.1.53 vlink-peer
Syntax
View
3-54
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
Parameter
Description
Example
# Create a virtual link to 10.110.0.3 and use the MD5 cipher authentication mode.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
3-55
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 OSPF Configuration Commands
[Quidway] ospf 1
[Quidway-ospf-1] area 10.0.0.0
[Quidway-ospf-1-area-10.0.0.0] vlink-peer 10.110.0.3 md5 3 345
3-56
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
When running a routing protocol, the Ethernet switch also functions as a router. The
word “router” and the router icons covered in the following text represent routers in
common sense and Ethernet switches running a routing protocol. To improve
readability, this will not be mentioned again in this manual.
Syntax
View
Parameter
Description
Use the apply cost command to configure the route cost value of route information.
Use the undo apply cost command to cancel the apply clause.
By default, no apply clause is defined.
An apply clause of Route-policy sets the cost of the routes passing the filtering.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, route-policy, and apply tag.
Example
# Define an apply clause. When it is used for setting route information attribute, it sets
the route cost value of route information as 120.
4-1
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] route-policy policy permit node 1
%New sequence of this list
[Quidway-route-policy] apply cost 120
Syntax
View
Parameter
Description
Use the apply tag command to configure to set the tag area of route information.
Use the undo apply tag command to cancel the apply clause.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, if-match tag, route-policy, and apply cost.
Example
# Define an apply clause. When it is used for setting route information attribute, it sets
the tag area of route information as 100.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] route-policy policy permit node 1
%New sequence of this list
[Quidway-route-policy] apply tag 100
Syntax
View
Any view
4-2
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
Description
Example
# Display the information about the address prefix list named p1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] route-policy policy permit node 1
%New sequence of this list
[Quidway-route-policy] apply tag 100
Field Description
name Name of ip-prefix
Syntax
View
Any view
Parameter
4-3
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
Field Description
Route-policy Name of ip-prefix
Syntax
View
Parameter
4-4
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the if-match { acl | ip-prefix } command to configure a rule for the route-policy and
specify an matching IP address range.
Use the undo if-match { acl | ip-prefix } command to cancel the setting of the rule.
The if-match { acl | ip-prefix } command implements a filter by referencing an ACL or a
prefix address list.
Related command: if-match interface, if-match ip next-hop, if-match cost, if-match
tag, route-policy, apply cost, and apply tag.
Example
# Define an if-match clause. When the clause is used for filtering route information, the
route information filtered by route destination address through address prefix list p1 is
permitted to pass the if-match clause.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] route-policy policy permit node 1
%New sequence of this list
[Quidway-route-policy] if-match ip-prefix p1
Syntax
View
Parameter
Description
Use the if-match cost command to configure one of the match rules of the route-policy
to match the cost of routing information.
Use the undo if-match cost command to cancel the configuration of the match rule.
By default, no if-match clause is defined.
An if-match clause of the route-policy specifies the route cost of the routing information
meeting the condition.
4-5
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Define an if-match clause and allow the routing information with a routing cost of 8 to
pass this if-match clause.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] route-policy policy permit node 1
%New sequence of this list
[Quidway-route-policy] if-match cost 8
Syntax
View
Parameter
Description
Use the if-match interface command to configure to match the route whose next hop
is the designated interface.
Use the undo if-match interface command to cancel the setting of matching condition.
By default, no if-match clause is defined.
As an if-match clause of route-policy, it matches the corresponding interface of route
next hop when filtering route.
Related command: if-match acl, if-match ip-prefix, if-match ip next-hop, if-match
cost, if-match tag, route-policy, apply cost, and apply tag.
Example
# Define an if-match clause to match the route whose next hop interface is
Vlan-interface 1
<Quidway> system-view
System View: return to User View with Ctrl+Z.
4-6
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Parameter
acl-number: Number of the ACL used for filter. It ranges from 2,000 to 2,999.
ip-prefix-name: Name of the prefix address list used for filter.
Description
Use the if-match ip next-hop command to configure one of the match rules of
route-policy on the next hop address of the routing information.
Use the undo if-match ip next-hop command to cancel the setting of ACL matching
condition.
Use the undo if-match ip next-hop ip-prefix command to cancel the setting of
address prefix list matching condition.
By default, no if-match clause is defined.
An if-match clause of route-policy is used to specify the next hop matching the routing
information when filtering the routes. It performs filter by referencing an ACL or an
address prefix list.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match
cost, if-match tag, route-policy, apply cost, and apply tag.
Example
# Define an if-match clause. It permits the routing information whose route next hop
address filtered through prefix address list p1 to pass this if-match clause.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] route-policy policy permit node 1
%New sequence of this list
[Quidway-route-policy] if-match ip next-hop ip-prefix p1
4-7
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Parameter
Description
Use the if-match tag command to configure to match the tag field of route information.
Use the undo if-match tag command to cancel the existing matching rules.
Related command: if-match interface, if-match acl, if-match ip-prefix, if-match ip
next-hop, if-match cost, route-policy, apply cost, and apply tag.
Example
# Define an if-match clause to permit the OSPF route information whose tag value is 8
to pass the if-match clause.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] route-policy policy permit node 1
%New sequence of this list
[Quidway-route-policy] if-match tag 8
4.1.10 ip ip-prefix
Syntax
View
System view
Parameter
ip-prefix-name: Name of address prefix list. It identifies an address prefix list uniquely.
4-8
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
index-number: Identifier of an item in the prefix address list. The item with a smaller
index-number will be tested first.
permit: Specifies the match mode of the defined address prefix list items as permit
mode. If the permit mode is specified and the IP address to be filtered is in the ip-prefix
range specified by the item, the item is filtered through and the next item is not tested. If
the IP address to be filtered is not in the ip-prefix range specified by the item, the next
item is tested
deny: Specifies the match mode of the defined address prefix list items as deny mode.
If the deny mode is specified and the IP address to be filtered is in the ip-prefix range
specified by the item, the item is not filtered through and the next item is not tested;
otherwise, the next item is tested.
network: IP address prefix range (IP address). If it is specified as 0.0.0.0 0, all the IP
addresses are matched.
len: IP address prefix range (mask length). If it is specified as 0.0.0.0 0, all the IP
addresses are matched.
greater-equal, less-equal: Address prefix range [greater-equal, less-equal] to be
matched after the address prefix network len has been matched. The meaning of
greater-equal is "greater than or equal to" , and the meaning of less-equal is "less
than or equal to". The range is len <= greater-equal <= less-equal <= 32. When only
greater-equal is used, it denotes the prefix range [greater-equal, 32]. When only
less-equal is used, it denotes the prefix range [len, less-equal].
Description
Use the ip ip-prefix command to configure an address prefix list or one of its items.
Use the undo ip ip-prefix command to delete an address prefix list or one of its items.
An address prefix list is used for IP address filtering. An address prefix list may contain
several items, and each item specifies one address prefix range. The inter-item filtering
relation is "OR". That is, passing an item means filtering through this address prefix list.
Not filtering through any item means not filtering through this prefix address list.
The address prefix range may contain two parts, which are determined by len and
[greater-equal, less-equal], respectively. If the prefix ranges of these two parts are both
specified, the IP to be filtered must match the prefix ranges of these two parts.
If you specify network len as 0.0.0.0 0, it matches the default route only.
Example
# Define an ip-prefix named p1 to permit only the routes whose mask lengths are 17 or
18 on network segment 10.0.192.0 8 to pass.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ip ip-prefix p1 permit 10.0.192.0 8 greater-equal 17 less-equal 18
4-9
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
4.1.11 route-policy
Syntax
View
System view
Parameter
Description
4-10
Command Manual – Routing Protocol Chapter 4 IP Routing Policy Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Configure Route-policy policy1, with the node number of 10 and the match mode of
permit, and enter Route policy view.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] route-policy policy1 permit node 10
%New sequence of this list
[Quidway-route-policy]
4-11
Command Manual – Routing Protocol Chapter 5 Route Capacity Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
When running a routing protocol, the Ethernet switch also functions as a router. The
word “router” and the router icons covered in the following text represent routers in
common sense and Ethernet switches running a routing protocol. To improve
readability, this will not be mentioned again in this manual.
Syntax
Mode
Any view
Parameter
Description
Example
5-1
Command Manual – Routing Protocol Chapter 5 Route Capacity Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Unit Specifies a Unit ID
System Available Memory(bytes) Free memory size, in bytes, of the switch
Occupied memory size, in bytes, of the
System Used Memory(bytes)
switch
Used Rate Memory occupation rate
Syntax
Mode
Any view
Parameter
None
Description
Use the display memory limit command to display the memory setting and state
information related to route capacity.
This command displays the current memory limit configuration, free memory, and state
information about connections, such as times of disconnection, times of reconnection,
and whether the current state is normal.
Example
5-2
Command Manual – Routing Protocol Chapter 5 Route Capacity Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
The information displayed by this command includes Ethernet switch memory limit,
size of free memory, times of disconnection, times of reconnection, and the current
state.
The following table describes the fields of the command:
Table 5-2 Description on the fields of the display memory limit command
Field Description
memory safety Safety value of the switch memory.
memory limit Lower limit of the switch memory.
Automatic connection restoration is
enabled (If automatic connection
memory auto-establish enabled
restoration is disabled, "auto-establish
disabled" is displayed).
Free Memory Size of the current free memory in bytes
The times of the disconnection of the
The times of disconnect: 0
routing protocol is 0.
The times of reconnection of the routing
The times of reconnect: 0
protocol is 0.
The current state is normal (If the current
The current state: Normal state is emergent, "Exigence" is
displayed).
Syntax
View
System view
Parameter
None
Description
5-3
Command Manual – Routing Protocol Chapter 5 Route Capacity Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
By default, when the free memory of the switch recovers to a safety value, connections
of all the routing protocols will always recover (when the free memory of the switch
decreases to a lower limit, the connection will be disconnected forcibly).
After this command is used, connections of all the routing protocols will not recover
when the free memory of the switch recovers to a safety value. In this case, you need to
restart the routing protocol to recover the connections.
Use this command with caution.
Related command: memory auto-establish enable, memory { safety | limit },
display memory limit.
Example
# Disable automatic restoration of the routing protocol connections when the free
memory of the current switch recovers.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] memory auto-establish disable
Syntax
View
System view
Parameter
None
Description
5-4
Command Manual – Routing Protocol Chapter 5 Route Capacity Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Enable automatic restoration of the connections of all the routing protocols when the
free memory of the current switch recovers.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] memory auto-establish enable
Syntax
View
System view
Parameter
safety-value: Safety free memory of the switch , in Mbytes. Its value range depends on
the free memory of the current switch. This value defaults to 5.
limit-value: Lower limit of the switch free memory, in Mbytes. Its value range depends
on the free memory of the current switch. This value defaults to 4.
Description
Use the memory limit limit-value command to configure the lower limit of the switch
free memory.
When the free memory of the switch is less than this limit, all the routing protocol
connections will be disconnected forcibly. The limit-value argument in the command
must be less than the current free memory safety value; otherwise, the configuration
will fail.
Use the memory safety safety-value command to configure the safety value of the
switch free memory.
If you use the memory auto-establish enable command (the default configuration),
the routing protocol connection that is forcibly disconnected automatically recovers
when the free memory of the switch reaches this value. The safety-value argument in
the command must be greater than the current free memory lower limit; otherwise, the
configuration will fail.
Use the memory safety safety-value limit limit-value command to change both the
safety value and lower limit of the switch free memory. The value of safety-value must
be greater than that of limit-value; otherwise, the configuration will fail.
5-5
Command Manual – Routing Protocol Chapter 5 Route Capacity Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Use the undo memory command to restore the default safety value and lower limit of
the switch free memory.
Related command: memory auto-establish disable, memory auto-establish enable,
and display memory limit.
Example
# Set the lower limit of the switch free memory to 1 MB and the safety value to 3 MB.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] memory safety 3 limit 1
5-6
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
iii
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
z The multicast protocol supported by S3900-SI series Ethernet switches is IGMP
Snooping only.
z Ethernet switches serve as routers when an IP multicast protocol is running on it.
The routers mentioned here refer to common routers and Layer 3 Ethernet switches
where the IP multicast protocol is running.
Syntax
View
Any view
Parameter
None
Description
Example
1-1
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Enable IGMP-Snooping.
The router port timeout is 105 second(s).
The max response timeout is 1 second(s).
The host port timeout is 260 second(s).
The above information shows: IGMP Snooping is enabled, the aging time of the router
port is 105 seconds, the query response timeout time is one second, and the aging time
of multicast member ports is 260 seconds.
Syntax
View
Any view
Parameter
Description
Use the display igmp-snooping group command to display information about the IP
and MAC multicast groups under one specified VLAN (with vlan vlan-id) or all VLANs
(without vlan vlan-id).
This command displays the following information: VLAN ID, router port, IP multicast
group address, member ports included in the IP multicast group, MAC multicast group,
MAC multicast group address, and member ports included in the MAC multicast group.
Example
1-2
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
None
Description
Example
1-3
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1.1.4 igmp-snooping
Syntax
View
System view
Parameter
Description
Use the igmp-snooping enable command to enable the IGMP Snooping feature.
Use the igmp-snooping disable command to disable the IGMP Snooping feature.
By default, the IGMP Snooping feature is disabled.
Example
Syntax
View
Parameter
vlan-list: VLAN list representing multiple VLANs in the form of vlan-list = { vlan-id [ to
vlan-id ] } & < 1-10 >. The vlan-id argument is the ID of the VLAN, in the range of 1 to
4,094. &<1-10> means that you can provide the argument repeatedly for up to ten
times.
Description
Use the igmp-snooping fast-leave command to enable IGMP fast leave processing.
1-4
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
z This feature is effective for IGMP-V2-enabled clients.
z When this feature is enabled, if one of the multiple users on a port leaves, the
multicast services for the other users in the same multicast group may be
interrupted.
Example
Syntax
View
VLAN view
Parameter
1-5
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
# Configure the Layer 2 multicast switch to send general query packets with the source
IP address 2.2.2.2.
<Quidway> system-view
System view, return to user view with Ctrl+Z.
[Quidway] igmp-snooping enable
[Quidway] vlan 3
[Quidway-vlan3] igmp-snooping enable
[Quidway-vlan3] igmp-snooping querier
[Quidway-vlan3] igmp-snooping general-query source-ip 2.2.2.2
Syntax
View
Parameter
limit: Maximum number of multicast groups the port can join, in the range of 1 to 256.
1-6
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
Syntax
View
Parameter
Description
1-7
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
filtering ACL configured on the access port to determine if the port can join the
corresponding multicast group or not. If yes, it adds the port to the forward port list of
the multicast group. If not, it drops the IGMP host report message and does not forward
the corresponding data stream to the port. In this way, you can control the multicast
streams that users can access.
An ACL rule defines a multicast address or a multicast address range (for example
224.0.0.1 to 239.255.255.255) and is used to.
z Allow the port(s) to join only the multicast group(s) defined in the rule by a permit
statement.
z Inhibit the port(s) from joining the multicast group(s) defined in the rule by a deny
statement.
Note:
z One port can belong to multiple VLANs. But for each VLAN on the port, you can
configure only one ACL.
z If no ACL rule is configured or the port does not belong to the specified VLAN, the
filter ACL you configured does not take effect on the port.
z Since most devices broadcast unknown multicast packets, this function is often
used together with the unknown multicast packet drop function to prevent multicast
streams from being broadcasted to a filtered port as unknown multicast.
Example
# Configure ACL 2000 to allow users under port Ethernet 1/0/1 to access the multicast
streams in groups 225.0.0.0 to 225.255.255.255.
z Configure ACL 2000.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 225.0.0.0 0.255.255.255
[Quidway-acl-basic-2000] quit
z Create VLAN 2 and add Ethernet 1/0/1 port to VLAN 2.
[Quidway] vlan 2
[Quidway-vlan2] port Ethernet 1/0/1
Gigabit[Quidway-vlan2] quit
z Configure ACL 2000 on Ethernet 1/0/1 to allow this VLAN 2 port to join only the
IGMP multicast groups defined in the rule of ACL 2000.
[Quidway] interface Ethernet 1/0/1
[Quidway-Ethernet1/0/1] igmp-snooping group-policy 2000 vlan 2
[Quidway-Ethernet1/0/1] quit
1-8
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
# Configure ACL 2001 to allow users under Ethernet 1/0/2 to access the multicast
streams in any groups except groups 225.0.0.0 to 225.0.0.255.
z Configure ACL 2001.
[Quidway] acl number 2001
[Quidway-acl-basic-2001] rule deny source 225.0.0.0 0.0.0.255
[Quidway-acl-basic-2001] rule permit source any
[Quidway-acl-basic-2001] quit
z Create VLAN 2 and add Ethernet 1/0/2 to VLAN 2.
[Quidway] vlan 2
[Quidway-vlan2] port Ethernet 1/0/2
[Quidway-vlan2] quit
z Configure ACL 2001 on Ethernet 1/0/2 to allow this VLAN 2 port to join any IGMP
multicast groups except those defined in the deny rule of ACL 2001.
[Quidway] interface Ethernet 1/0/2
[Quidway-Ethernet1/0/2] igmp-snooping group-policy 2001 vlan 2
Syntax
View
System view
Parameter
seconds: Aging time of multicast member ports, in the range of 200 to 1000 in seconds.
Description
Example
1-9
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] igmp-snooping host-aging-time 300
Syntax
View
System view
Parameter
Description
Example
Syntax
igmp-snooping querier
undo igmp-snooping querier
View
VLAN view
1-10
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
None
Description
Use the igmp-snooping querier command to enable the IGMP Snooping querier
feature on the current VLAN of the Layer 2 multicast switch.
Use the undo igmp-snooping querier command to disable the IGMP Snooping
querier feature on the current VLAN of the Layer 2 multicast switch.
By default, the IGMP Snooping querier feature of the Layer 2 multicast switch is
disabled.
Example
# Enable the IGMP Snooping feature on VLAN 3 of the Layer 2 multicast switch.
<Quidway> system-view
System view, return to user view with Ctrl+Z.
[Quidway] igmp-snooping enable
[Quidway] vlan 3
[Quidway-vlan3] igmp-snooping enable
[Quidway-vlan3] igmp-snooping querier
Syntax
View
VLAN view
Parameter
seconds: Interval for the Layer 2 multicast to send general query packets.
Description
Use the igmp-snooping query-interval command to configure the interval for the
Layer 2 multicast switch to send general query packets.
Use the undo igmp-snooping query-interval command to restore the interval to the
default value.
These commands are effective after the IGMP Snooping querier feature is enabled.
Otherwise, the switch will not send general query packets. The configured query
interval must be longer than the maximum response interval of the host,
1-11
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
The Layer 2 multicast switch sends general query packets at the interval of 50 seconds.
Example
# Configure the Layer 2 multicast switch to send general query packets at the interval of
100 seconds on VLAN 3.
<Quidway> system-view
System view, return to user view with Ctrl+Z.
[Quidway] igmp-snooping enable
[Quidway] vlan 3
[Quidway-vlan3] igmp-snooping enable
[Quidway-vlan3] igmp-snooping querier
[Quidway-vlan3] igmp-snooping query-interval 100
Syntax
View
System view
Parameter
seconds: Aging time of the router port, in the range of 1 to 1000 in seconds.
Description
Example
1-12
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
User view
Parameter
None
Description
Use the reset igmp-snooping statistics command to clear IGMP Snooping statistics.
Related command: igmp-snooping.
Example
Syntax
service-type multicast
undo service-type multicast
View
VLAN view
Parameter
None
Description
Use the service-type multicast command to set the current VLAN as a multicast
VLAN.
Use the undo service-type multicast command to cancel the multicast VLAN setting.
By default, no VLAN is a multicast VLAN.
By configuring a multicast VLAN, adding corresponding switch ports to the multicast
VLAN and enabling IGMP Snooping, you can make users in different VLANs share the
same multicast VLAN. This saves bandwidth since multicast stream is transmitted only
1-13
Command Manual – Multicast Protocol Chapter 1 IGMP Snooping Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
within the multicast VLAN, and also guarantees the security because the multicast
VLAN is completely isolated from the user VLANs.
Note:
z Isolate VLANs cannot be set as multicast VLANs.
z One port belongs to one multicast VLAN only.
z The type of ports connecting to the user terminal must be hybrid.
z The multicast member port must be in the same multicast VLAN with the router port.
Otherwise, the port cannot receive multicast packets.
z If a router port is added to a multicast VLAN, the router port must be set as a trunk
port or tagged hybrid port. Otherwise, all the multicast member ports in this multicast
VLAN cannot receive multicast packets.
z If a multicast member port needs to receive packets forwarded by the router port
which does not belong to any multicast VLAN, the multicast member port must be
removed from the multicast VLAN. Otherwise, the port cannot receive multicast
packets.
Example
1-14
Command Manual – Multicast Protocol Chapter 2 Common IP Multicast Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Example
2-1
Command Manual – Multicast Protocol Chapter 2 Common IP Multicast Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
The following table describes the fields in the displayed information above:
Table 2-1 Description on the fields of the display multicast forwarding-table command
Field Description
Multicast Forwarding Cache Table Multicast forwarding table
Total 1 entries Total number of entries
00001 Serial number of an entry
(10.0.0.4, 225.1.1.1) (s,g)
The incoming interface of the multicast
forwarding table is vlan-interface 2, and the
iif Vlan-interface2, 0 oifs
multicast forwarding table does not have an
outgoing interface.
Matched 122 pkts(183000 bytes), 122 packets which are 183,000 bytes in all
Wrong If 0 pkts match with the (s,g) entry, and 0 wrong
Forwarded 122 pkts(183000 packet matches with the (s,g) entry.
bytes) 122 packets which are 183,000 bytes in all
are forwarded.
Syntax
View
Any view
Parameter
group-address: Multicast group address to specify a multicast group and display the
routing table information corresponding to this group, in the range of 224.0.0.0 to
239.255.255.255.
source-address: Unicast IP address of the multicast source.
incoming-interface: Specifies the incoming interface of the multicast routing entry.
register: Registration interface of PIM-SM.
2-2
Command Manual – Multicast Protocol Chapter 2 Common IP Multicast Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the display multicast routing-table command to display the information about
the IP multicast routing table.
This command is used to display the information about the multicast routing table, while
the display multicast forwarding-table command is used to display the information
about the multicast forwarding table.
Example
# Query the information about the routing entries corresponding to the multicast group
225.1.1.1.1 in the multicast routing table.
<Quidway> display multicast routing-table
Multicast Routing Table
Total 3 entries
(4.4.4.4, 224.2.149.17)
Uptime: 00:15:16, Timeout in 272 sec
Upstream interface: Vlan-interface1(4.4.4.6)
Downstream interface list:
Vlan-interface2(2.2.2.4), Protocol 0x1: IGMP
(4.4.4.4, 224.2.254.84)
Uptime: 00:15:16, Timeout in 272 sec
Upstream interface: Vlan-interface1(4.4.4.6)
Downstream interface list: NULL
(4.4.4.4, 239.255.2.2)
Uptime: 00:02:57, Timeout in 123 sec
Upstream interface: Vlan-interface1(4.4.4.6)
Downstream interface list: NULL
Matched 3 entries
Table 2-2 Description on the fields of the display multicast routing-table command
Field Description
Multicast Routing Table Multicast routing table
Total 3 entries There are 3 entries in all in the multicast routing
table.
(4.4.4.4, 224.2.149.17) (s,g) of the multicast routing table
Uptime: 00:15:16, Timeout in The entry is up for 15 minutes and 16 seconds,
2-3
Command Manual – Multicast Protocol Chapter 2 Common IP Multicast Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
272 sec and it times out in 272 seconds.
Upstream interface: The IP address of the upstream interface is
Vlan-interface1(4.4.4.6) 4.4.4.6.
Downstream interface list: Downstream interface list:
Vlan-interface2(2.2.2.4), The IP address of the downstream interface is
Protocol 0x1: IGMP 2.2.2.4.
The downstream interface is added by the
IGMP protocol.
Matched 3 entries Three entries match the configuration.
Syntax
View
Any view
Parameter
Description
Example
# Display the multicast source port suppression state of all the 100M Ethernet ports.
2-4
Command Manual – Multicast Protocol Chapter 2 Common IP Multicast Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
System view
Parameter
limit: Limit on the capacity of the multicast routing table, in the range of 0 to 256.
Description
Use the multicast route-limit command to limit the capacity of the multicast routing
table. The router will drop the protocols and packets of the new (S, G).
Use the undo multicast route-limit command to restore the default limit on the
capacity of the multicast routing table.
The limit on the capacity of the multicast routing table is 256 by default.
If the number of existing routing entries exceeds the value to be configured when you
configure this command, the existing entries in the routing table will not be removed.
Instead, the system will prompt that the number of existing routing entries is more than
the limit to be configured.
If you execute this command again, the new configuration will overlap the former
configuration.
Example
# Set the limit on the capacity of the multicast routing table to 100.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] multicast route-limit 100
Syntax
multicast routing-enable
undo multicast routing-enable
2-5
Command Manual – Multicast Protocol Chapter 2 Common IP Multicast Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
System view
Parameter
None
Description
Use the multicast routing-enable command to enable the IP multicast routing feature.
Use the undo multicast routing-enable command to disable the IP multicast routing
feature.
The IP multicast routing feature is disabled by default.
Related command: pim dm, pim sm.
Example
2.1.6 multicast-source-deny
Syntax
View
Parameter
2-6
Command Manual – Multicast Protocol Chapter 2 Common IP Multicast Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Example
# Enable the multicast source port suppression feature on all the ports of the switch.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] multicast-source-deny
# Enable the multicast source port suppression feature on Ethernet 1/0/1 through
Ethernet 1/0/10 and Ethernet 1/0/12.
[Quidway] multicast-source-deny interface Ethernet 1/0/1 to Ethernet 1/0/10
Ethernet 1/0/12
Syntax
View
User view
Parameter
statistics: Clears the statistics information about MFC forwarding entries if this
keyword is specified. Otherwise, MFC forwarding entries will be cleared.
all: Refers to all MFC forwarding entries.
2-7
Command Manual – Multicast Protocol Chapter 2 Common IP Multicast Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the reset multicast forwarding-table command to clear MFC forwarding entries
or the statistics information about MFC forwarding entries.
The order of the group-address argument and the source-address argument can be
turned over. However, you must input valid group addresses and source addresses.
Otherwise, the system prompts error.
Related command: reset pim routing-table, reset multicast routing-table, and
display multicast forwarding-table.
Example
# Clear the forwarding entries whose group address is 225.5.4.3 in the MFC forwarding
table.
<Quidway> reset multicast forwarding-table 225.5.4.3
# Clear the statistics information about the forwarding entries whose group address is
225.5.4.3 in the MFC forwarding table.
<Quidway> reset multicast forwarding-table statistics 225.5.4.3
Syntax
View
User view
Parameter
2-8
Command Manual – Multicast Protocol Chapter 2 Common IP Multicast Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the reset multicast routing-table command to clear the routing entries in the
multicast core routing table and remove the corresponding forwarding entries in the
MFC forwarding table.
The order of the group-address argument and the source-address argument can be
turned over. However, you must input valid group addresses and source addresses.
Otherwise, the system prompts error.
Related command: reset pim routing-table, reset multicast forwarding-table and
display multicast forwarding-table.
Example
# Clear the routing entries whose group address is 225.5.4.3 from the multicast core
routing table.
<Quidway> reset multicast routing-table 225.5.4.3
2-9
Command Manual – Multicast Protocol Chapter 3 Multicast MAC Address Entry
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
System view
Parameter
Description
Use the mac-address multicast command to manually add a multicast MAC address
entry.
Use the undo mac-address multicast command to remove a multicast MAC address
entry.
Each multicast MAC address entry contains: multicast address, forward port, VLAN ID,
and so on.
Related command: display mac-address multicast static.
Example
# Add a multicast MAC address entry, with multicast address 0100-5e0a-0805, forward
port Ethernet 1/0/1, and VLAN 1 to which the entry belongs.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
3-1
Command Manual – Multicast Protocol Chapter 3 Multicast MAC Address Entry
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Parameter
Description
Use the mac-address multicast vlan command to add a multicast MAC address
entry.
Use the undo mac-address multicast vlan command to remove a multicast MAC
address entry.
Each multicast MAC address entry contains: multicast address, VLAN ID, and so on.
Related command: display mac-address multicast static.
Example
Syntax
View
Any view
3-2
Command Manual – Multicast Protocol Chapter 3 Multicast MAC Address Entry
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Parameter
mac-address vlan vlan-id: Multicast MAC address entry in the specified VLAN.
count: Number of MAC entries.
vlan-id: ID of the specific VLAN.
Description
Use the display mac-address multicast static command to display the multicast
MAC address entry/entries manually configured on the switch.
z Executing this command with neither mac-address nor vlan vlan-id will display the
information about all the multicast MAC address entries manually added on the
switch, including the multicast MAC address, VLAN ID, state of the MAC address,
port number and aging time.
z Executing this command with vlan vlan-id but without mac-address will display the
information about all the multicast MAC address entries manually added in the
specified VLAN, including the multicast MAC address, VLAN ID, state of the MAC
address, port number and aging time.
z Executing this command with both mac-address and vlan vlan-id will display the
information about the multicast MAC address entries manually added in the
specified VLAN with the specified multicast MAC address, including the multicast
MAC address, VLAN ID, state of the MAC address, port number and aging time.
z Executing this command with count will display the information about the number
of multicast MAC address entries added on the switch.
Example
# Display all the multicast MAC address entries manually added in VLAN 1.
<Quidway>display mac-address multicast static vlan 1
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
0100-0001-0001 1 Config static Ethernet1/0/1 N/A
Ethernet1/0/2
Ethernet1/0/3
Ethernet1/0/4
--- 1 static mac address(es) found ---
3-3
Command Manual – Multicast Protocol Chapter 4 Unknown Multicast Drop Configurat
Quidway S3900 Series Ethernet Switches-Release 1510 ion Command
Syntax
View
System view
Parameter
None
Description
Use the unknown-multicast drop enable command to enable the unknown multicast
drop feature on the switch.
Use the undo unknown-multicast drop enable command to disable the unknown
multicast drop feature on the switch.
Example
4-1
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Note:
When running IP multicast protocols, Ethernet switches also provide the functions of
switches. We use routers in this manual to stand for not only the common routers but
also the layer 3 Ethernet switches running IP multicast protocols.
Syntax
View
Any view
Parameter
Description
Use the display igmp group command to view the member information of the IGMP
multicast group.
You can specify to show the information of a group or the member information of the
multicast group on a VLAN interface. The displayed information contains the multicast
groups which are joined by the downstream hosts through IGMP or through command
line.
Related command: igmp host-join.
Example
5-1
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Field Description
Group address Multicast group address
Last Reporter The last host reporting to join in the multicast group
Uptime Time passed since multicast group is discovered (hh: mm: ss).
Specifies when the member will be removed from the multicast
Expires
group (hh: mm: ss).
Syntax
View
Any view
Parameter
Description
Use the display igmp interface command to view the IGMP configuration and running
information on a VLAN interface.
Example
# View the IGMP configuration and running information of all VLAN interfaces.
<Quidway> display igmp interface
Vlan-interface1 (10.153.17.99):
IGMP is enabled
Current IGMP version is 2
Value of query interval for IGMP(in seconds): 60
Value of other querier time out for IGMP(in seconds): 120
Value of maximum query response time for IGMP(in seconds): 10
Value of robust count for IGMP: 2
5-2
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Table 5-2 Description on the fields of the display igmp interface command
Field Description
IGMP version IGMP version
query interval Interval of general query
Syntax
igmp enable
undo igmp enable
View
5-3
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Parameter
None
Description
Example
Syntax
View
Parameter
Description
Use the igmp group-limit command to limit the number of multicast groups on an
interface. The router does not process new packets when number of IGMP groups
exceeds the limit.
Use the undo igmp group-limit command to restore the default setting.
By default to add up to 256 IGMP groups on an interface.
The new configuration overwrites the old one if you run the command for a second time.
5-4
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Caution:
z New groups cannot be added when the number of IGMP multicast groups has
exceeded the configured limit.
z When the limit on the number of IGMP packets is 1, the new group enjoys priority,
that is, the system will automatically replace the former multicast group with the new
multicast group, and the former multicast group will leave the interface
automatically.
z If the number of existing multicast groups on the interface is more than the
configured limit, the system will remove some old groups automatically to satisfy the
configured limit.
Example
Syntax
View
Parameter
acl-number: Number of the basic IP access control list number, defining a multicast
group range. The value ranges from 2000 to 2999.
1: IGMP version 1.
2: IGMP version 2. If IGMP version is not specified, version 2 will be used by default.
port: Limits the IGMP packets passing the port and matching with the ACL rules.
interface-list: Forwarding port list in the form of interface-list = { interface-type
interface-number [ to { interface-type interface-number } ] }&<1-10>. The interface-type
argument refers to the port type, and the interface-number argument refers to the port
5-5
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
number. For the meanings and ranges of the two arguments, refer to the parameter
descriptions in part “Port Basic Configuration” in this manual.
Description
Use the igmp group-policy command to set the filter of multicast groups on the VLAN
interface to control the access to IP multicast groups.
Use undo igmp group-policy command to remove the filter configured.
By default, no filter is configured, that is, a host can join any multicast group.
If you do not want the hosts on the network that the VLAN interface is on to join some
multicast groups and receive packets from the multicast groups to use this command to
limit the range of the multicast groups serviced by the VLAN interface.
Related command: igmp host-join.
Caution:
Example
# Configure that only the hosts matching ACL 2000 rules on VLAN-interface10 can be
added to the multicast group whose IGMP version is specified to 2.
[Quidway-vlan-interface10] igmp group-policy 2000 2
Syntax
View
Port view
5-6
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Parameter
acl-number: Number of the basic IP access control list number, defining a multicast
group range. The value ranges from 2000 to 2999.
vlan-id: Specifies the ID for the VLAN to which the port belongs.
Description
Use the igmp group-policy vlan command to set the filter of multicast groups on a
port to control the access to the IP multicast groups.
Use the undo igmp group-policy vlan command to remove the configured filter.
By default, no filter is configured, that is, a host can join any multicast group.
This command has the same function with the igmp group-policy command. Note that
the configured port must belong to the specified VLAN, and the IGMP protocol must be
enabled on this port; otherwise, the configuration does not function.
Related command: igmp group-policy, igmp host-join vlan, and igmp host-join
port.
Example
# Configure that only the hosts matching ACL 2000 rules on Ethernet1/0/1 in
VLAN-interface10 can be added to the multicast group.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] igmp enable
[Quidway-Vlan-interface10] quit
[Quidway] interface Ethernet 0/1
[Quidway-Ethernet0/1] port access vlan 10
[Quidway-Ethernet0/1] igmp group-policy 2000 vlan 10
Syntax
View
Parameter
group-address: Multicast address of the multicast group that an interface will join.
port: Specifies the port in the VLAN interface.
5-7
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Description
Use the igmp host-join port command to enable a port in the VLAN interface of a
switch to join a multicast group.
Use undo igmp host-join port command to disable the configuration.
By default, VLAN interfaces of a switch do not belong to any multicast group.
Related command: igmp group-policy.
Example
Syntax
View
Port view
Parameter
group-address: Multicast address of the multicast group that an interface will join.
vlan-id: Specifies the ID for the VLAN to which the port belongs.
Description
Use the igmp host-join vlan command to enable an Ethernet port to join a multicast
group.
Use the undo igmp host-join vlan command to disable the configuration.
By default, an Ethernet port does not join any multicast group.
Related command: igmp group-policy.
5-8
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Example
Syntax
View
Parameter
seconds: Interval for the IGMP querier to send IGMP group-specific query packets
when it receives IGMP leave packets from the host. It is in the range of 1 second to 5
seconds.
Description
Use the igmp lastmember-queryinterval command to set the Interval for the IGMP
querier to send IGMP group-specific query packets when it receives IGMP leave
packets from the host.
Use the undo igmp lastmember-queryinterval command to restore the default value.
The interval for the IGMP querier to send IGMP group-specific query packets is one
second by default.
In the shared network, that is, a same network segment including multiple hosts and
multicast routers, the query router (also known as querier) is responsible for
maintaining the IGMP group membership on the interface. When the IGMP v2 host
leaves a group, it sends an IGMP Leave message.
When receiving the IGMP Leave message, the IGMP querier must send the IGMP
group-specific query messages for specified times (by the robust-value argument in the
igmp robust-count command, with default value as 2) in a specified time interval (by
the seconds argument in the igmp lastmember-queryinterval command, with default
5-9
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
value as 1 second). If other hosts which are interested in the specified group receive
the IGMP query message from the IGMP query router, they will send back the IGMP
Membership Report message within the specified maximum response time interval. If it
receives the IGMP Membership Report message within the defined period (equal to
robust-value × seconds), the IGMP query router continue to maintain the membership
of this group. When receiving no IGMP Membership Report message from any hosts
within the defined period, the IGMP query router considers it as timeout and stops
membership maintenance for the group.
This command is only available on the IGMP query router running IGMP v2. For the
host running IGMP v1, this command cannot take effect for the host may not send the
IGMP Leave message when it leaves a group.
For the related command, see igmp robust-count and display igmp interface.
Example
Syntax
View
Parameter
seconds: Maximum response time in the IGMP query messages in second in the range
from 1 to 25. By default, the value is 10 seconds.
Description
5-10
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Example
Syntax
View
VLAN view
Parameter
Description
Use the igmp proxy command to specify an interface of the Layer 3 endpoint switch as
the IGMP proxy interface of another interface.
Use the undo igmp proxy command to disable this configuration.
The IGMP proxy feature is disabled by default.
You must enable the PIM protocol on the interface first before enabling the igmp proxy
command on the interface. One interface cannot serve as the IGMP proxy interface of
two or more interfaces.
If the IGMP proxy feature is configured on the same interface for multiple times, the
latest configuration takes effect.
Related command: pim neighbor-policy.
5-11
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Caution:
z The multicast route feature and the IGMP protocol must be enabled on the proxy
interface.
z You must enable the PIM protocol on the interface first before enabling the igmp
proxy command on the interface.
z One interface cannot serve as the IGMP proxy interface of two or more interfaces.
Example
Syntax
View
Parameter
robust-value: IGMP robust value, number of sending the IGMP group-specific query
packets after the IGMP querier receives the IGMP Leave packet from the host. It is in
the range of 2 times to 5 times.
Description
Use the igmp robust-count command to set the number of sending the IGMP group
query message after the IGMP query router receives the IGMP Leave message from
the host.
Use the undo igmp robust-count command to restore the default value.
By default, an IGMP querier sends IGMP group-specific query packets twice.
5-12
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
In the shared network, that is, a same network segment including multiple hosts and
multicast routers, the query router is responsible for maintaining the IGMP group
membership on the interface. When the IGMP v2 host leaves a group, it sends an
IGMP Leave message. When receiving the IGMP Leave message, IGMP query router
must send the IGMP group-specific query message for specified times (by the
robust-value parameter in the igmp robust-count command, with default value as 2)
in a specified time interval (by the seconds parameter in the igmp
lastmember-queryinterval command, with default value as 1 second). If other hosts
which are interested in the specific group receive the IGMP group-specific query
packets from the IGMP query router, they will send back the IGMP Membership Report
packets within the specified maximum response time interval. If it receives the IGMP
Membership Report packets within the defined period (equal to robust-value ×
seconds), the IGMP query router continue to maintain the membership of this group.
When receiving no IGMP Membership Report packet from any hosts within the defined
period, the IGMP query router considers it as timeout and stops membership
maintenance for the group.
This command is only available on the IGMP query router running IGMP v2. For the
host running IGMP v1, this command cannot take effect for the host may not send
IGMP Leave packets when it leaves a group.
Related command: igmp lastmember-queryinterval and display igmp interface.
Example
Syntax
View
Parameter
seconds: Presence time of the IGMP querier, in the range of 1 to 131,070 in seconds.
5-13
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Description
Use the igmp timer other-querier-present command to configure the presence time
of the IGMP querier.
Use the undo igmp timer other-querier-present command to restore the default
value.
By default, the presence time of the IGMP querier is twice the value of IGMP query
message interval, that is, 120 seconds.
On a shared network, i.e., there are multiple multicast routers on the same network
segment, the query router (querier for short) takes charge of sending query messages
periodically on the interface. If other non-queriers receive no query messages within
the valid period, the router will consider the previous querier to be invalid and the router
itself becomes a querier.
In IGMP version 1, the selection of a querier is determined by the multicast routing
protocol. In IGMP version 2, the router with the lowest IP address on the shared
network segment acts as the querier.
Related command: igmp timer query, and display igmp interface.
Example
Syntax
View
Parameter
seconds: Interval at which a router transmits IGMP query messages, in the range of 1
to 65,535 seconds.
Description
Use the igmp timer query command to configure the interval at which a router
interface sends IGMP query messages.
5-14
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Use the undo igmp timer query command to restore the default value.
By default, a router interface transmits IGMP query messages at the interval of 60
seconds.
A multicast router periodically sends out IGMP query messages to attached segments
to find hosts that belong to different multicast groups. The query interval can be
modified according to the practical conditions of the network.
For the related command, see igmp timer other-querier-present.
Example
Syntax
igmp version { 1 | 2 }
undo igmp version
View
Parameter
1: IGMP Version 1.
2: IGMP Version 2.
Description
Use the igmp version command to specify the version of IGMP that a router uses.
Use the undo igmp version command to restore the default value.
The default IGMP version is IGMP version 2.
All routers on a subnet must support the same version of IGMP. After detecting the
presence of IGMP Version 1 system, a router cannot automatically switch to Version 1.
Example
5-15
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 5 IGMP Configuration Commands
Syntax
View
User view
Parameter
Description
Use the reset igmp group command to delete an existing IGMP group from the VLAN
interface. The deleted group can be added to the VLAN interface again.
Example
5-16
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Syntax
bsr-policy acl-number
undo bsr-policy
View
PIM view
Parameter
acl-number: ACL number imported in BSR filtering policy, in the range of 2,000 to
2,999.
Description
Use the bsr-policy command to limit the range of legal BSRs to prevent BSR proofing.
Use the undo bsr-policy command to restore the default setting, that is, no range limit
is set and all received messages are taken as legal.
In the PIM SM network using BSR (bootstrap router) mechanism, every router can set
itself as C-BSR (candidate BSR) and take the authority to advertise RP information in
the network once it wins in the contention. To prevent malicious BSR proofing in the
network, the following two measures need to be taken:
z Prevent the router from being spoofed by hosts though faking legal BSR
messages to modify RP mapping. BSR messages are of multicast type and their
TTL is 1, so this type of attacks often hit edge routers. Fortunately, BSRs are
inside the network, while assaulting hosts are outside, therefore neighbor and
RPF checks can be used to stop this type of attacks.
z If a router in the network is manipulated by an attacker, or an illegal router is
accessed into the network, the attacker may set itself as C-BSR and try to win the
contention and gain authority to advertise RP information among the network.
Since the router configured as C-BSR shall propagate BSR messages, which are
multicast messages sent hop by hop with TTL as 1, among the network, then the
network cannot be affected as long as the peer routers do not receive these BSR
messages. One way is to configure bsr-policy on each router to limit legal BSR
range, for example, only 1.1.1.1/32 and 1.1.1.2/32 can be BSR, thus the routers
6-1
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
cannot receive or forward BSR messages other than these two. Even legal BSRs
cannot contest with them.
Problems may still exist if a legal BSR is attacked, though these two measures can
effectively guarantee high BSR security.
The source parameter in the rule command is translated as BSR address in the
bsr-policy command.
Related command: acl and rule.
Example
6.1.2 c-bsr
Syntax
View
PIM view
Parameter
Description
6-2
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
When configure the candidate BSR, the larger bandwidth should be guaranteed since a
great amount of information will be exchanged between BSR and other devices in the
PIM domain.
Related command: pim sm.
Example
# Configure the switch as a BSR with priority 2 (and the C-BSR address is designated
as the IP address of VLAN-interface10).
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] multicast routing-enable
[Quidway] pim
[Quidway-pim] c-bsr vlan-interface 10 24 2
6.1.3 c-rp
Syntax
View
PIM view
Parameter
Description
Use the c-rp command to configure the router to advertise itself as a candidate RP.
Use the undo c-rp command to remove the configuration.
By default, no candidate RP is configured, and the value of RP priority is 0.
When configuring the candidate RP, a relatively large bandwidth should be reserved for
the router and other devices in the PIM domain.
For the related command, see c-bsr.
6-3
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Example
# Configure the switch to advertise the BSR that the switch itself is the C-RP in the PIM.
The standard access list 2000 defines the groups related to the RP. The address of
C-RP is designated as the IP address of VLAN-interface10.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] multicast routing-enable
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 225.0.0.0 0.255.255.255
[Quidway] pim
[Quidway-pim] c-rp vlan-interface 10 group-policy 2000
6.1.4 crp-policy
Syntax
crp-policy acl-number
undo crp-policy
View
PIM view
Parameter
acl-number: ACL number imported in C-RP filtering policy, ranging from 3000 to 3999.
Description
Use the crp-policy command to limit the range of legal C-RP, as well as target service
group range of each C-RP, prevent C-RP proofing.
Use the undo crp-policy command to restore the default setting, that is, no range limit
is set and all received messages are taken as legal.
In the PIM SM network using BSR mechanism, every router can set itself as C-RP
(candidate rendezvous point) servicing particular groups. If elected, a C-RP becomes
the RP servicing the current group.
In BSR mechanism, a C-RP router unicast C-RP messages to the BSR, which then
propagates the C-RP messages among the network by BSR message. To prevent
C-RP spoofing, you need to configure crp-policy on the BSR to limit legal C-RP range
and their service group range. Since each C-BSR has the chance to become BSR, you
must configure the same filtering policy on each C-BSR router.
This command uses the ACLs numbered between 3000 and 3999. The source
parameter in the rule command is translated as C-RP address in the crp-policy
command, and the destination parameter as the service group range of this C-RP
6-4
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
address. For the C-RP messages received, only when their C-RP addresses match the
source address and their server group addresses are subset of those in ACL, can the
be considered as matched.
Related command: acl, and rule.
Example
# Configure C-RP filtering policy on the C-BSR routers, allowing only 1.1.1.1/32 as
C-RP and to serve only for the groups 225.1.0.0/16.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] multicast routing-enable
[Quidway] pim
[Quidway-pim] crp-policy 3000
[Quidway-pim] quit
[Quidway] acl number 3000
[Quidway-acl-adv-3000] rule 0 permit source 1.1.1.1 0 destination 225.1.0.0
0.0.255.255
Syntax
View
Any view
Parameter
None
Description
Use the display pim bsr-info command to view the BSR information.
Related command: c-bsr, and c-rp.
Example
6-5
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Table 6-1 Description on the fields of the display pim bsr-info command
Field Description
BSR BootStrap router
Priority Priority of BSR
Mask Length: 30 Length of mask
Syntax
View
Any view
Parameter
Description
Use the display pim interface command to view the PIM configuration information of
the interface.
If neither the VLAN interface type nor the VLAN interface number is specified, the PIM
configuration information of all VLAN interfaces is displayed; if both the VLAN interface
type and the VLAN interface number are specified, the PIM configuration information
about the specified VLAN interface is displayed.
Example
6-6
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Table 6-2 Description on the fields of the display pim interface command
Field Description
PIM version Version of PIM
PIM mode PIM mode enabled on the VLAN interface (DM or SM)
Syntax
View
Any view
Parameter
Description
Use the display pim neighbor command to view the PIM neighbor information
discovered by the VLAN interface of the switch. If the VLAN interface parameter is
specified, only the PIM neighbor information about the specified VLAN interface is
displayed.
Example
# Display the PIM neighbor information discovered by the VLAN interface of the
neighbor.
<Quidway> display pim neighbor
Neighbor Address Interface Name Uptime Expires
8.8.8.6 VLAN-interface10 1637 89
6-7
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Table 6-3 Description on the fields of the display pim neighbor command
Field Description
Syntax
View
Any view
Parameter
Description
Use the display pim routing-table command to view information about the PIM
multicast routing table.
The displayed information about the PIM multicast routing table includes the SPT
information and RPF information.
6-8
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Example
(192.168.1.2, 224.2.178.130),
Protocol 0x20: PIMSM, Flag 0x4: SPT
UpTime: 23:59, Timeout after 196 seconds
Upstream interface: VLAN-interface2, RPF neighbor: NULL
Downstream interface list: NULL
(192.168.1.2, 224.2.181.90),
Protocol 0x20: PIMSM, Flag 0x4: SPT
UpTime: 23:59, Timeout after 196 seconds
Upstream interface: VLAN-interface2, RPF neighbor: NULL
Downstream interface list: NULL
Field Description
RP Rendezvous Point
(S,G) (source address, multicast group)
PIM-SM PIM Sparse Mode
SPT Shortest Path Tree
RPF Reverse Path Forwarding
Syntax
View
Any view
Parameter
6-9
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Description
Use the display pim rp-info command to view the RP information of the multicast
group.
In addition, this command can also display the BSR and static RP information.
Example
Group/MaskLen: 224.0.0.0/4
RP 4.4.4.6
Version: 2
Priority: 0
Uptime: 00:39:50
Expires: 00:01:40
Table 6-5 Description on the fields of the display pim rp-info command
Field Description
PIM-SM RP-SET information: Combination of RP information
BSR is the VLAN interface of 4.4.4.6 in the
BSR is: 4.4.4.6
network
Group/MaskLen: 224.0.0.0/4
The RP whose group address is 224.0.0.0 and
RP 4.4.4.6 mask length is 4 is the virtual interface of the IP
Version: 2 address 4.4.4.6.
Priority: 0 The priority of the version 2 RP is 0. It is up for 39
Uptime: 00:39:50 minutes and 50 seconds and expires in one
minutes and forty seconds
Expires: 00:01:40
6.1.10 pim
Syntax
pim
undo pim
View
System view
6-10
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Parameter
None
Description
Use the pim command to enter PIM view to configure the global PIM parameters. You
cannot use the pim command to enable the PIM protocol.
Use the undo pim command to exit PIM view to system view and clear the global PIM
configuration parameters.
Example
Syntax
pim bsr-boundary
undo pim bsr-boundary
View
Parameter
None
Description
Use the pim bsr-boundary command to configure a VLAN interface of the switch as
the PIM domain boundary.
Use the undo pim bsr-boundary command to remove the configured PIM domain
boundary.
The switch does not set any PIM domain boundary by default.
After you use this command to set a PIM area boundary on a VLAN interface, all
Bootstrap messages cannot cross this domain boundary. However, the other PIM
packets can pass this domain boundary. In this way, you can divide the
PIM-SM-running network into multiple domains, each of which uses a different
Bootstrap router.
6-11
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Note that you cannot use this command to set up a multicast boundary. Instead, what
you use this command to set up is just a PIM Bootstrap packet boundary.
Related command: c-bsr.
Example
6.1.12 pim dm
Syntax
pim dm
undo pim dm
View
Parameter
None
Description
Example
6-12
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Syntax
View
Parameter
limit: Upper limit of PIM neighbors on the VLAN interface, in the range of 0~128.
Description
Use the pim neighbor-limit command to limit the number PIM neighbors on a router
interface. No neighbor can be added to the router any more when the limit is reached.
Use the undo pim neighbor-limit command to restore the default setting.
By default, the number of PIM neighbors on a VLAN interface is limited within 128.
If the number of existing PIM neighbors exceeds the configured limit, they will not be
deleted.
Example
Syntax
View
Parameter
6-13
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Description
Use the pim neighbor-policy command to configure the router to filter the PIM
neighbors on the current VLAN interface.
Use the undo pim neighbor-policy command to disable the filtering.
Only the routers that match the filtering rule in the ACL can serve as a PIM neighbor of
the current VLAN interface.
The new configuration overwrites the old one if you run the command for a second time.
Example
# Configure that 10.10.1.2 can serve as a PIM neighbor of the Vlan-interface10, but not
10.10.1.1.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] multicast routing-enable
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] pim neighbor-policy 2000
[Quidway-Vlan-interface10] quit
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 10.10.1.2 0
[Quidway-acl-basic-2000] rule deny source 10.10.1.1 0
6.1.15 pim sm
Syntax
pim sm
undo pim sm
View
Parameter
None
Description
6-14
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Example
Syntax
View
Parameter
seconds: Interval at which a VLAN interface sends Hello packets, in the range of 1
second to 18,000 seconds.
Description
Use the pim timer hello command to set the interval at which a VLAN interface sends
Hello packets.
Use the undo pim timer hello command to restore the default value of the interval.
By default, a VLAN interface sends Hello packets at the interval of 30 seconds.
When the PIM-SM protocol is enabled on a VLAN interface, the switch will periodically
send Hello packets to the network devices supporting PIM. If the VLAN interface
receives Hello packets, it means that the VLAN interface has neighboring network
devices supporting PIM, and the VLAN interface will add the neighbors into its own
neighbor list. If the VLAN interface does not receive any Hello packet from a neighbor in
its neighbor list within the specified time, the neighbor is considered to have left the
multicast group.
Example
6-15
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
6.1.17 register-policy
Syntax
register-policy acl-number
undo register-policy
View
PIM view
Parameter
acl-number: Number of IP advanced ACL, defining the rule of filtering the source and
group addresses. The value ranges from 3000 to 3999.
Description
Use the register-policy command to configure a RP to filter the register packets sent
by the DR in the PIM-SM network and to accept the specified packets only.
Use the undo register-policy command to remove the configured packet filtering.
Example
# If the local device is the RP in the network, using the following command can only
accept multicast message register of the source sending multicast address in the range
of 225.1.0.0/16 on network segment 10.10.0.0/16.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 3010
[Quidway-acl-adv-3010] rule permit ip source 10.10.0.0 0.0.255.255
destination 225.1.0.0 0.0.255.255
[Quidway-acl-adv-3010] quit
[Quidway] multicast routing-enable
[Quidway] pim
[Quidway-pim] register-policy 3010
Syntax
6-16
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
View
User view
Parameter
Description
Use the reset pim neighbor command to clear all PIM neighbors or PIM neighbors on
the specified VLAN interface.
Related command: display pim neighbor.
Example
Syntax
View
User view
Parameter
6-17
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Description
Use the reset pim routing-table command to clear all PIM route entries or the
specified PIM route entry.
You can type in source address first and group address after in the command, as long
as they are valid. Error information will be given if you type in invalid addresses.
If in this command, the group-address is 224.0.0.0/24 and source-address is the RP
address (where group address can have a mask, but the resulted IP address must be
224.0.0.0, and source address has no mask), then it means only the (*, *, RP) item will
be cleared.
If in this command, the group-address is any a group address, and source-address is 0
(where group address can have a mask, and source address has no mask), then only
the (*, G) item will be cleared.
This command shall clear not only multicast route entries from PIM routing table, but
also the corresponding route entries and forward entries in the multicast core routing
table and MFC.
Related command: reset multicast routing-table, reset multicast forwarding-table,
and display pim routing-table.
Example
# Clear the route entries with group address 225.5.4.3 from the PIM routing table.
<Quidway> reset pim neighbor 25.5.4.3
6.1.20 spt-switch-threshold
Syntax
View
PIM view
Parameter
traffic-rate: Rate at which the multicast packets are sent, in the range of 0 to 65,535 in
kbps. When this argument is not 0, the shared tree will not be switched to the short path
tree (SPT).
infinity: Indicates that the shared tree will never be switched to the SPT.
acl-number: Basic ACL number, in the range of 2,000 to 2,999. This argument defines a
group range. The rate of the multicast packets in this group range is limited.
6-18
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Description
Use the spt-switch-threshold command to configure the threshold value at which the
shared tree is switched to the SPT.
Use the undo spt-switch-threshold command to restore the threshold to the default
value.
By default, the shared tree is switched to the SPT when the threshold is 0.
In PIM-SM, Ethernet switches forward multicast packets through the shared tree at the
beginning. If the threshold is set to 0, the Ethernet switch at the last hop of multicast
packets will switch the shared tree to the SPT; if the threshold is set to other value
rather than 0, the switch will not switch the shared tree to the SPT.
If the acl-number argument is not specified, the threshold applies to all multicast
groups.
Example
# Specify the switch at the last hop to switch the shared tree to the SPT when it receives
the first multicast packet.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway]pim
[Quidway-pim] spt-switch-threshold 0
6.1.21 source-policy
Syntax
source-policy acl-number
undo source-policy
View
PIM view
Parameter
Description
Use the source-policy command to configure the router to filter the received multicast
data packets according to the source address or group address.
Use the undo source-policy command to remove the configuration.
If resource address filtering is configured, as well as basic ACLs, then the router filters
the resource addresses of all multicast data packets received. Those not matched will
be discarded.
6-19
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
If resource address filtering is configured, as well as advanced ACLs, then the router
filters the resource and group addresses of all multicast data packets received. Those
not matched will be discarded.
When this feature is configured, the router filters not only multicast data, but the
multicast data encapsulated in the registration packets.
The new configuration overwrites the old one if you run the command for a second time.
Example
# Set to receive the multicast data packets from source address 10.10.1.2, but discard
those from 10.10.1.1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] multicast routing-enable
[Quidway] pim
[Quidway-pim] source-policy 2000
[Quidway-pim] quit
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 10.10.1.2 0
[Quidway-acl-basic-2000] rule deny source 10.10.1.1 0
6.1.22 static-rp
Syntax
View
PIM view
Parameter
Description
6-20
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 6 PIM Configuration Commands
Example
6-21
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Syntax
cache-sa-enable
undo cache-sa-enable
View
MSDP view
Parameter
None
Description
Example
Syntax
View
Any view
7-1
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Parameter
None
Description
Use the display msdp brief command to display the brief information of the MSDP
peer state.
Example
Table 7-1 Description on the fields of the display msdp brief command
Field Description
Peer's Address Address of the MSDP peer
State State
Up/Down time Up/down time
AS AS number
SA Count SA count
Reset Count Times of peer connection resets
Syntax
View
Any view
Parameter
Description
Use the display msdp peer-status command to display the detailed information of the
MSDP peer state.
Related command: peer.
7-2
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Example
Syntax
View
Any view
Parameter
7-3
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
source-address: Source address of the (S, G) entry. If you do not specify a source
address, the system displays all source information of the specified group. If you
specify neither a group address nor a source address, the system displays all SA
caches.
autonomous-system-number: Number of the AS where the (S,G) entry comes from.
The value ranges from 1 to 65535.
Description
Use the display msdp sa-cache command to display (S, G) state learned from an
MSDP peer.
You must configure the cache-sa-enable command before the system can display the
cache state information.
Example
Table 7-2 Description on the fields of the display msdp sa-cache command
Field Description
(Source, Group) (S, G) entry
Origin RP Source RP address
Pro Inter-domain unicast routing protocol
AS AS number
Uptime Up time
Expires Expiry of a (S, G) entry
7-4
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display msdp sa-count command to display the number of sources and
groups in MSDP cache.
The debugging output of this command is available only after the configuration of the
cache-sa-enable command.
Example
Table 7-3 Description on the fields of the display msdp sa-count command
Field Description
Peer's Address Address of an MSDP peer
Number of SA Number of SA messages
AS AS number
Number of source Number of sources
Number of group Number of groups
7-5
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
7.1.6 import-source
Syntax
View
MSDP view
Parameter
acl-number: Basic or advanced IP ACL number, ranging from 2000 to 3999. An ACL
controls SA message advertisement by filtering sources (basic ACL) and filtering
sources or groups (advanced ACL). If you do not specify this argument, no multicast
source is advertised.
Description
Use the import-source command to specify the (S, G) entries in this domain that need
to be advertised when an MSDP peer creates an SA message.
Use the undo import-source command to cancel the configuration.
By default, an SA message advertise all the (S, G) entries in the domain.
In addition, you can also use the peer sa-policy import command or the peer
sa-policy export command to filter forwarded SA messages.
Example
# Specify the (S, G) entries in the multicast routing table to be advertised when an
MSDP peer creates an SA message.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 3101
[Quidway-acl-adv-3101] rule permit ip source 10.10.0.0 0.0.255.255
destination 225.1.0.0 0.0.255.255
[Quidway-acl-adv-3101] quit
[Quidway] msdp
[Quidway-msdp] import-source acl 3101
7.1.7 msdp
Syntax
msdp
undo msdp
7-6
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
View
System view
Parameter
None
Description
Use the msdp command to enable MSDP and enter MSDP view.
Use the undo msdp command to clear all configurations in MSDP view, release
resources occupied by MSDP, and restore initial state.
Related command: peer.
Example
7.1.8 msdp-tracert
Syntax
View
Any view
Parameter
7-7
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Description
Use the msdp-tracert command to trace the path along which an SA message travels,
so as to locate message loss and minimize configuration errors. After determining the
path of the SA message, you can prevent SA flooding through correct configuration.
By default, the number of skipped hops before the switch collects the detailed
information is 0.
Example
# Specify the maximum number of hops to be traced and collect the detailed SA and
MSDP peer information.
<Quidway> msdp-tracert 10.10.1.1 225.2.2.2 20.20.20.20 max-hops 10 sa-info
peer-info
MSDP tracert: press CTRL_C to break
D-bit: set if have this (S,G) in cache but with a different RP
RP-bit: set if this router is an RP
NC-bit: set if this router is not caching SA's
C-bit: set if this (S,G,RP) tuple is in the cache
MSDP trace route path information:
Router Address: 20.20.1.1
Fixed-length response info:
Peer Uptime: 10 minutes, Cache Entry Uptime: 30 minutes
D-bit: 0, RP-bit: 1, NC-bit: 0, C-bit: 1
Return Code: Reached-max-hops
Next Hop info:
Next-Hop Router Address: 0.0.0.0
SA info:
Count of SA messages received for this (S,G,RP): 0
Count of encapsulated data packets received for this (S,G,RP):0
SA cache entry uptime: 00:30:00 , SA cache entry expiry time: 00:03:32
Peering info:
Peering Uptime: 10 minutes, Count of Peering Resets: 3
Field Description
The address used by the local router to establish an
Router Address
peering session with the Peer-PRF neighbor
The time of the peering session between the local router
Peer Uptime and a Peer-RPF neighbor, in minutes. The maximum value
is 255.
7-8
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Field Description
Up time of the (S, G, RP) entry in SA cache of the local
Cache Entry Uptime
router, in minutes. The maximum value is 255.
An (S, G, RP) entry exists in the SA cache of the local
D-bit: 1 router, but the RP is different from the RP specified in the
request message.
The local router is an RP, but it may be another RP than the
RP-bit: 1
source RP in the (S, G, RP) entry.
NC-bit: 0 SA cache is enabled on the local router.
C-bit: 1 An (S, G, RP) entry exists in SA cache of the local router.
7.1.9 originating-rp
Syntax
View
MSDP view
7-9
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Parameter
Description
Use the originating-rp command to allow MSDP peer to use the specified interface IP
address as the RP address in the SA message when the MSDP peer creates SA
messages.
Use the undo originating-rp command to cancel configuration.
By default, the RP address in an SA message is the RP address configured by PIM.
Example
# Configure the IP address of the interface Vlan-interface 100 as the RP address of the
created SA message.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] msdp
[Quidway-msdp] originating-rp Vlan-interface 100
Syntax
View
MSDP view
Parameter
Description
Use the peer description command to configure the description text for an MSDP peer.
Use the undo peer description command to delete the configured description text.
By default, an MSDP peer has no description text.
The administrator can distinguish MSDP peers by means of the description texts.
Related command: display msdp peer-status.
7-10
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Example
# Add the description text “router CstmrA” for the router 125.10.7.6 to specify that the
router is customer A.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] msdp
[Quidway-msdp] peer 125.10.7.6 description router CstmrA
Syntax
View
MSDP view
Parameter
Description
Use the peer mesh-group command to add an MSDP peer in a mesh group.
Use the undo peer mesh-group command to cancel the configuration.
By default, an MSDP peer does not belong to any mesh group.
Example
# Configure the MSDP peer whose address is 125.10.7.6 as a member of the mesh
group Grp1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] msdp
[Quidway-msdp] peer 125.10.7.6 mesh-group Grp1
Syntax
7-11
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
View
MSDP view
Parameter
peer-address: IP address of the MSDP peer to which the TTL threshold applies.
ttl-value: TTL threshold, ranging from 0 to 255.
Description
Use the peer minimum-ttl command to configure the minimum TTL value of the
multicast data packets encapsulated in SA messages and to be sent to the specified
MSDP peer.
Use the undo peerminimum-ttl command to restore the default TTL threshold.
By default, the value of TTL threshold is 0.
Related command: peer.
Example
# Set the TTL threshold to 10, so that only those multicast data packets with a TTL
value greater than or equal to 10 can be forwarded to the MSDP peer 110.10.10.1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] msdp
[Quidway-msdp] peer 110.10.10.1 minimum-ttl 10
Syntax
View
MSDP view
Parameter
Description
Use the peer request-sa-enable command to enable the router to send an SA request
message to the specified MSDP peer upon receipt of a Join message.
Use the undo peer request-sa-enable command to remove the configuration.
7-12
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
By default, upon receipt of a Join message, the router sends no SA request message to
the MSDP peer but waits for the next SA message.
Related command: cache-sa-enable.
Example
Syntax
View
MSDP view
Parameter
Description
Example
7-13
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Syntax
View
MSDP view
Parameter
Description
Example
# Configure the router whose IP address is 125.10 .7.6 as the MSDP peer of the local
router.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] msdp
[Quidway-msdp] peer 125.10.7.6 connect-interface Vlan-interface 100
Syntax
7-14
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
View
MSDP view
Parameter
Description
Use the peer sa-policy command to configure the filtering list for receiving or
forwarding the SA messages from the specified MSDP peer.
Use the undo peer sa-policy command to remove the configuration.
By default, no filtering is imposed on SA messages to be received or forwarded, namely
all SA messages from MSDP peers are received or forwarded.
Related command: peer.
Example
# Configure a filtering list so that only those SA messages permitted by the advanced IP
ACL 3100 are forwarded.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 3100
[Quidway-acl-adv-3100] rule permit ip source 170.15.0.0 0.0.255.255
destination 225.1.0.0 0.0.255.255
[Quidway-acl-adv-3100] quit
[Quidway] msdp
[Quidway-msdp] peer 125.10.7.6 connect-interface Vlan-interface 100
[Quidway-msdp] peer 125.10.7.6 sa-policy export acl 3100
Syntax
View
MSDP view
7-15
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Parameter
peer-address: IP address of an MSDP peer, the SA request messages sent from which
will be filtered
acl-number: basic IP ACL number, describing a multicast group address, in the range
of 2000 to 2999. If no ACL is specified, all SA request messages will be ignored.
Description
Use the peer sa-request-policy command to limit the SA request messages the router
receives from an MSDP peer.
Use the undo peer sa-request-policy command to remove the limitation.
By default, the router receives all SA request messages from the MSDP peer.
If no ACL is specified, all SA requests will be ignored. If an ACL is specified, only those
SA request messages from the groups that match the ACL rule will be processed while
others are ignored.
Related command: peer.
Example
# Configure an ACL so that SA request messages from the group address range of
225.1.1.0/24 and from the MSDP peer 175.58.6.5 are received while other SA
messages are ignored.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 2001
[Quidway-acl-basic-2001] rule permit source 225.1.1.0 0.0.0.255
[Quidway-acl-basic-2001] quit
[Quidway] msdp
[Quidway-msdp] peer 175.58.6.5 sa-request-policy acl 2001
Syntax
View
User view
Parameter
7-16
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Description
Use the reset msdp peer command to reset the TCP connection with the specified
MSDP peer and clear all statistics information of that MSDP peer.
Related command: peer.
Example
# Reset the TCP connection with the MSDP peer 125.10.7.6 and the statistics of the
MSDP peer.
<Quidway> reset msdp peer 125.10.7.6
Syntax
View
User view
Parameter
group-address: Group address; the cached (S, G) entries matching this address are to
be deleted from the SA cache. If no multicast group address is specified, all cached SA
entries will be cleared.
Description
Use the reset msdp sa-cache command to clear cached SA entries of the MSDP peer.
Related command: cache-sa-enable, and display msdp sa-cache.
Example
# Clear the cached entries whose group address is 225.5.4.3 from the SA cache.
<Quidway> reset msdp sa-cache 225.5.4.3
Syntax
View
User view
7-17
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Parameter
peer-address: Address of the MSDP peer whose statistics, reset information and
input/output information will be cleared. If no MSDP peer address is specified, the
statistics information of all MSDP peers will be cleared.
Description
Use the reset msdp statistics command to clear the statistics information of one or
more MSDP peers without resetting the MSDP peer(s).
Example
7.1.21 shutdown
Syntax
shutdown peer-address
undo shutdown peer-address
View
MSDP view
Parameter
Description
Use the shutdown command to shut down the specified MSDP peer.
Use the undo shutdown command to remove the configuration.
By default, no MSDP peer is shut down.
Related command: peer.
Example
7-18
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
7.1.22 static-rpf-peer
Syntax
View
MSDP view
Parameter
Description
Example
7-19
Command Manual – Multicast Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 7 MSDP Configuration Commands
Syntax
View
MSDP view
Parameter
Description
Use the timer retry command to configure a connection request retry interval.
Use the undo timer retry command to restore the default value.
By default, the connection request retry interval is 30 seconds.
Related command: peer.
Example
7-20
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Syntax
View
Any view
Parameter
Description
Example
1-1
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Ethernet1/0/1 is link-down
802.1X protocol is disabled
Proxy trap checker is disabled
Proxy logoff checker is disabled
Version-Check is disabled
The port is an authenticator
Authentication Mode is Auto
Port Control Type is Mac-based
Max number of on-line users is 256
Ethernet1/0/2 is link-down
802.1X protocol is disabled
Proxy trap checker is disabled
Proxy logoff checker is disabled
Version-Check is disabled
The port is an authenticator
1-2
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Ethernet1/0/3
……
Field Description
1-3
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Field Description
Total maximum 802.1x user The maximum number of 802.1x users that a
resource number switch can accommodate
1-4
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Field Description
1.1.2 dot1x
Syntax
View
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-name [ to interface- name] & < 1-10 >.
The interface-name argument is the port index of an Ethernet port and can be specified
in this form: interface-name = { interface-type interface-num }, in which, interface-type
specifies the type of a port and interface-num identifies the port number. Note that the
interface name after the keyword to must have an interface-num that is greater than or
equal to that of the interface-name before to. &<1-10> means that up to 10 port
indexes/port index lists can be provided,
Description
Use the dot1x command to enable 802.1x globally or for specified Ethernet ports.
Use the undo dot1x command to disable 802.1x globally or for specified Ethernet
ports.
By default, 802.1x is disabled globally and also on all ports
When being executed in system view, the dot1x command enables 802.1x globally if
you do not provide the interface-list argument. And if you specify the interface-list
argument, the command enables 802.1x for the specified Ethernet ports. When being
executed in Ethernet port view, this command enables 802.1x for the current Ethernet
port only. In this case, the interface-list argument is not needed.
You can perform 802.1x-related configurations (globally or on specified ports) either
before or after 802.1x is enabled. If you do not previously perform other 802.1x-related
1-5
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
configurations when enabling 802.1x globally, the switch adopts the default 802.1x
settings.
802.1x-related configurations take effect on a port only after 802.1x is enabled both
globally and on the port.
Configurations of 8021.x and the maximum number of MAX addresses that can be
learnt are mutually exclusive. This means that when 802.1x is enabled for a port, it
cannot also have the maximum number of MAX addresses to be learned configured at
the same time. And if you configure the maximum number of MAX addresses that can
be learnt for a port, 802.1x is unavailable to it.
Related command: display dot1x.
Example
Syntax
View
System view
Parameter
Description
1-6
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Use the undo dot1x authentication-method command to revert to the default 802.1x
authentication method.
The default 802.1x authentication method is CHAP.
PAP applies a two-way handshaking procedure. In this method, passwords are
transmitted in plain text.
CHAP applies a three-way handshaking procedure. In this method, user names are
transmitted rather than passwords. Therefore this method is safer.
In an EAP authentication method, a switch sends 802.1x authentication information
directly to the RADIUS server in EAP packets, instead of having to convert them into
RADIUS packets before forwarding to the RADIUS server. EAP authentication can be
realized in one of the four sub-methods: PEAP, EAP-TLS, EAP-TTLS and EAP-MD5.
Related command: display dot1x.
Note:
When the device itself functions as the authentication server, the 802.1X authentication
method cannot be configured to EAP.
Example
Syntax
dot1x dhcp-launch
undo dot1x dhcp-launch
View
System view
Parameter
None
1-7
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Description
Example
Syntax
View
Parameter
1-8
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Description
Use the dot1x guest-vlan command to enable the Guest VLAN function for specified
ports.
Use the undo dot1x guest-vlan command to disable the Guest VLAN function for
specified ports.
When being executed in system view:
z If you do not provide the interface-list argument, these two commands apply to all
ports of the switch.
z If you specify the interface-list argument, these two commands apply to the
specified Ethernet ports.
When being executed in Ethernet port view, these two commands apply to the current
Ethernet port only. In this case, the interface-list argument is not needed.
Caution:
z The Guest VLAN function is available only when the switch operates in a port-based
authentication mode.
z Only one Guest VLAN can be configured for each switch.
z The Guest VLAN function is unavailable when the dot1x dhcp-launch command is
configured on the switch, because the switch does not send authentication request
packets.
Example
Syntax
1-9
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
View
Parameter
Description
Use the dot1x max-user command to set the maximum number of supplicant systems
an Ethernet port can accommodate.
Use the undo dot1x max-user command to revert to the default maximum supplicant
system number.
When being executed in system view, these two commands apply to all Ethernet ports
of the switch if you do not provide the interface-list argument. And if you specify the
interface-list argument, these commands apply to the specified Ethernet ports.
When being executed in Ethernet port view, these two commands apply to the current
Ethernet port only. In this case, the interface-list argument is not needed.
Related command: display dot1x.
Example
Syntax
1-10
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
View
Parameter
auto: Specifies to operate in auto access control mode. In this mode, a port is
initialized to take all users as unauthorized: it only allows EAPoL packets to pass
through and grants users no permission to network resources. Only after the users
have passed the authentication will the port classify them as authorized and allow them
access to the network resources, which is often the case.
authorized-force: Specifies to operate in authorized-force access control mode.
unauthorized-force: Specifies to operate in unauthorized-force access control mode.
Ports in this mode are constantly in unauthorized state. Supplicant systems connected
to them cannot access the network.
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-name [ to interface- name] & < 1-10 >.
The interface-name argument is the port index of an Ethernet port and can be specified
in this form: interface-name = { interface-type interface-num }, in which, interface-type
specifies the type of a port and interface-num identifies the port number. Note that the
interface name after the keyword to must have an interface-num that is greater than or
equal to that of the interface-name before the to keyword. &<1-10> means that up to 10
port indexes/port index lists can be provided.
Description
Use the dot1x port-control command to specify the access control method for
specified Ethernet ports.
Use the undo dot1x port-control command to revert to the default access control
method.
The default access control method is auto.
Use the dot1x port-control command to configure the access control method for
specified 802.1x-enabled ports.
When being executed in system view, these two commands apply to all Ethernet ports
of the switch if you do not provide the interface-list argument. And if you specify the
interface-list argument, these commands apply to the specified Ethernet ports.
When being executed in Ethernet port view, these two commands apply to the current
Ethernet port only. In this case, the interface-list argument is not needed.
Related command: display dot1x.
Example
1-11
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Syntax
View
Parameter
Description
Use the dot1x port-method command to specify the access control method for
specified Ethernet ports.
Use the undo dot1x port-method command to revert to the default access control
method.
If you specify to authenticate supplicant systems by MAC addresses (that is, the
macbased keyword is specified), all supplicant systems connected to the specified
Ethernet ports are authenticated separately. And if an online user logs off, others are
not affected.
If you specify to authenticate supplicant systems by port numbers (that is, the
portbased keyword is specified), all supplicant systems connected to a specified
Ethernet port are able to access the network without being authenticated if a supplicant
system among them passes the authentication. And when the supplicant system logs
off, the network is inaccessible to all other supplicant systems either.
1-12
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
When being executed in system view, these two commands apply to all Ethernet ports
of the switch if you do not provide the interface-list argument. And if you specify the
interface-list argument, these commands apply to the specified Ethernet ports. When
being executed in Ethernet port view, these two commands apply to the current
Ethernet port only. In this case, the interface-list argument is not needed.
Related command: display dot1x.
Example
Syntax
dot1x quiet-period
undo dot1x quiet-period
View
System view
Parameter
None
Description
Example
1-13
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Syntax
View
System view
Parameter
Description
Use the dot1x retry command to specify the maximum number of times that a switch
will send authentication request packets to supplicant systems.
Use the undo dot1x retry command to revert to the default value.
The default value is 2 times.
Having sent authentication request packets to a supplicant system, a switch will resend
the packets if within a preset period it still has not received any response from the
supplicant system. The dot1x retry command is used to set the maximum number of
times that a switch will resend the request packets. When set to 1, it means that the
switch will only send request packets once, and 2 represents that the switch will resend
the packets once if no response comes back, and so on. This command applies to all
ports.
Related command: display dot1x.
Example
# Specify the maximum number of times that the switch will resend authentication
request packets to be 9.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] dot1x retry 9
Syntax
1-14
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
View
System view
Parameter
Description
Use the dot1x retry-version-max command to set the maximum number of times that
a switch will resend version request packets to a connected supplicant system.
Use the undo dot1x retry-version-max command to revert to the default value.
The default value is 3 times.
Having sent a version request packet to the supplicant system, the switch will resend
the packet if within a preset period (as determined by the client version timer) it still has
not received any response from the supplicant system. When the number set by this
command has reached and there is still no response from the supplicant system, the
switch will continue its following authentication without sending further version requests.
This command applies to all ports.
Related commands: display dot1x, dot1x timer.
Example
# Configure the maximum number of times that the switch will resend version request
packets to be 6.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] dot1x retry-version-max 6
Syntax
View
Parameter
1-15
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
trap: Sends Trap packets if a supplicant system logs in through a proxy or through
multiple network cards.
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-name [ to interface- name] & < 1-10 >.
The interface-name argument is the port index of an Ethernet port and can be specified
in this form: interface-name = { interface-type interface-num }, in which, interface-type
specifies the type of a port and interface-num identifies the port number. Note that the
interface name after the keyword to must have an interface-num that is greater than or
equal to that of the interface-name before the to keyword. &<1-10> means that up to 10
port indexes/port index lists can be provided.
Description
Use the dot1x supp-proxy-check command to enable 802.1X client checking for
specified ports.
Use the undo dot1x supp-proxy-check command to disable 802.1X client checking
for specified ports.
By default, 802.1X client checking is disabled for all Ethernet ports.
In system view, execution of the dot1x supp-proxy-check command enables the
supplicant system proxy checking function for specified ports if the interface-list
argument is provided; in Ethernet port view, the interface-list argument is not needed,
only the current port can have the function.
In system view, after enabling global supplicant proxy checking, you also need to
enable this function on specific ports for the function to take effect on these ports.
802.1x proxy checking checks for:
z Supplicant systems logging in through proxies
z Supplicant systems logging in through IE proxies
z Whether or not a supplicant system logs in through multiple network cards (that is,
when supplicant system attempts to log in, it contains more than one active
network cards)
A switch may take the following actions in response to any of the above three cases:
z Disconnects the supplicant system and sends Trap packets (using the dot1x
supp-proxy-check logoff command.)
z Sends Trap packets without disconnecting the supplicant system (using the dot1x
supp-proxy-check trap command.)
This function needs the support of 802.1x clients and CAMS:
z The 802.1x supplicant system must be able to detect whether the client uses
multiple network cards, a proxy, or IE proxy;
z CAMS has disabled the use of multiple network cards, a proxy server, and an IE
proxy server.
1-16
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
By default, an 802.1x supplicant system enables the use of multiple network cards,
proxies, or IE proxies. If CAMS has these features disabled, it would notify the 802.1
supplicant system to have the corresponding features disabled as well after the latter
has successfully passed the authentication.
Note:
z The supplicant system proxy checking function needs the support of Huawei's
802.1x client program.
z The supplicant system proxy checking function takes effect only after it has been
enabled on CAMS and the client version checking function is enabled on the switch
(using the dot1x version-check command).
Example
Or
[Quidway] dot1x supp-proxy-check trap
[Quidway] interface Ethernet 1/0/9
[Quidway-Ethernet1/0/9] dot1x supp-proxy-check trap
Syntax
1-17
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
View
System view
Parameter
tx-period: This timer sets the tx-period and is triggered by the switch in one of the
following two cases: The first case is when the client requests for authentication. The
switch sends a unicast request/identity packet to a supplicant system and then enables
the transmission timer. The switch sends another request/identity packet to the
supplicant system if the supplicant system fails to send a reply packet to the switch
when this timer times out. The second case is when the switch authenticates the 802.1x
client who does not request for authentication actively. The switch sends multicast
request/identity packets continuously through the port enabled with 802.1x function,
with the interval of tx-period.
supp-timeout: Supplicant timeout timer, triggered when the switch sends a
request/challenge packet (for MD5 ciphered text) to the supplicant system. If within the
period, no response has been sent back from the supplicant system, the switch will
resend the request/challenge packet.
supp-timeout-value: Time interval of the authentication timer, in seconds. This value
can range from 10 to 120 with a default value of 30.
server-timeout: Server-timeout timer, if within the period, no response has been sent
back from the Authentication server, the switch will resend the request/Identity packet.
server-timeout-value: Value of the server timeout timer, in seconds. This value can
range from 100 to 300 with a default value of 100.
handshake-period: Handshake period timer, triggered when the user has successfully
passed the authentication. It sets the time interval for the switch to resend handshake
request packets to check whether the user is still online. If after N times (as specified by
the dot1x retry command) of retries, the switch still has not received any response
packet from the supplicant system, it will assume that the user is offline.
handshake-period-value: Value of the handshake timer, in seconds. This value can
range from 5 to 1,024 with a default value of 15.
quiet-period: Quiet-period timer, triggered after the user has failed the authentication.
After the time (as specified by the quiet-period timer) has elapsed, the user can resend
the authentication request. During the period, the switch will perform no authentication.
quiet-period-value: Value of the quiet-period timer, in seconds. This value can range
from 10 to 120 with a default value of 60.
1-18
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Description
Example
Syntax
View
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-name [ to interface- name] & < 1-10 >.
The interface-name argument is the port index of an Ethernet port and can be specified
in this form: interface-name = { interface-type interface-num }, in which, interface-type
specifies the type of a port and interface-num identifies the port number. Note that the
interface name after the keyword to must have an interface-num that is greater than or
1-19
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
equal to that of the interface-name before the to keyword. &<1-10> means that up to 10
port indexes/port index lists can be provided.
Description
Use the dot1x version-check command to enable 802.1x client version checking for
specified Ethernet ports.
Use the undo dot1x version-check command to disable 802.1x client version
checking for specified Ethernet ports.
By default, 802.1x client version checking is disabled on all Ethernet ports.
In system view, execution of the dot1x version-check command enables the client
version checking function for specified ports if the interface-list argument is specified,
otherwise it enables the function globally. In Ethernet port view, only the current port
can have their client version checking function enabled by executing this command and
the interface-list argument is not needed.
Example
# Configure Ethernet1/0/1 port to check the version of the 802.1x client upon receiving
authentication packets.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] dot1x version-check
Syntax
View
User view
Parameter
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this
argument in the form of interface-list = { interface-name [ to interface- name] & < 1-10 >.
The interface-name argument is the port index of an Ethernet port and can be specified
in this form: interface-name = { interface-type interface-num }, in which, interface-type
specifies the type of a port and interface-num identifies the port number. Note that the
interface name after the keyword to must have an interface-num that is greater than or
equal to that of the interface-name before the to keyword. &<1-10> means that up to 10
port indexes/port index lists can be provided.
1-20
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 802.1x Configuration Commands
Description
Example
1-21
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 HABP Configuration Commands
Syntax
display habp
View
Any view
Parameter
None
Description
Use the display habp command to display HABP configuration and status information.
Example
Field Description
Indicates the HABP mode of the switch. A switch can
HABP Mode operate as an HABP server (displayed as Server) or an
HABP client (displayed as Client).
Sending HABP request HABP request packets are sent once in every 20
packets every 20 seconds seconds.
Indicates the ID(s) of the VALN(s) to which HABP request
Bypass VLAN
packets are sent
2-1
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 HABP Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display habp table command to display the MAC address table maintained by
HABP.
Example
Table 2-2 Description on the fields of the display habp table command
Field Description
MAC MAC addresses listed in the HABP MAC address table.
Hold time of the entries in the HABP MAC address table. An
Holdtime address will be removed from the table if it has not been updated
during the hold time.
Receive Port The port from which a MAC address is learned
Syntax
View
Any view
2-2
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 HABP Configuration Commands
Parameter
None
Description
Use the display habp traffic command to display statistics on HABP packets.
Example
Table 2-3 Description on the fields of the display habp traffic command
Field Description
Packets output Number of the HABP packets sent
Input Number of the HABP packets received
ID error Number of HABP packets with ID errors
Syntax
habp enable
undo habp enable
View
System view
Parameter
None
2-3
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 HABP Configuration Commands
Description
Example
# Enable HABP.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] habp enable
Syntax
View
System view
Parameter
Description
Use the habp server vlan command to configure a switch to operate as an HABP
server and HABP packets to be broadcast in specified VLAN.
Use the undo habp server vlan command to revert to the default HABP mode.
By default, a switch operates as an HABP client.
To specify a switch to operate as an HABP server, you need to enable HABP (using the
habp enable command) for the switch first. Even if HABP is not enabled, the client can
still configure the switch to work as an HABP client, although this has no effect.
Example
# Specify the switch to operate as an HABP server and the HABP packets to be
broadcast in VLAN 2.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] habp server vlan 2
2-4
Command Manual – 802.1x
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 HABP Configuration Commands
Syntax
View
System view
Parameter
interval: Interval (in seconds) to send HABP request packets. This argument ranges
from 5 to 600.
Description
Use the habp timer command to set the interval for a switch to send HABP request
packets.
Use the undo habp timer command to revert to the default interval.
The default interval for a switch to send HABP request packets is 20 seconds.
Use these two commands on switches operating as HABP servers only.
Example
# Configure the switch to send HABP request packets once in every 50 seconds
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] habp timer 50
2-5
Command Manual – AAA & RADIUS & HWTACACS & EAD
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
Chapter 1 AAA & RADIUS & HWTACACS Configuration Commands ..................................... 1-1
1.1 AAA Configuration Commands.......................................................................................... 1-1
1.1.1 access-limit.............................................................................................................. 1-1
1.1.2 attribute ................................................................................................................... 1-2
1.1.3 accounting ............................................................................................................... 1-3
1.1.4 accounting optional ................................................................................................. 1-4
1.1.5 authentication .......................................................................................................... 1-5
1.1.6 authorization............................................................................................................ 1-6
1.1.7 cut connection ......................................................................................................... 1-7
1.1.8 display connection................................................................................................... 1-8
1.1.9 display domain ...................................................................................................... 1-10
1.1.10 display local-user ................................................................................................ 1-12
1.1.11 domain................................................................................................................. 1-13
1.1.12 idle-cut................................................................................................................. 1-14
1.1.13 level ..................................................................................................................... 1-15
1.1.14 local-user............................................................................................................. 1-16
1.1.15 local-user password-display-mode...................................................................... 1-17
1.1.16 messenger........................................................................................................... 1-18
1.1.17 name ................................................................................................................... 1-19
1.1.18 password ............................................................................................................. 1-19
1.1.19 radius-scheme..................................................................................................... 1-20
1.1.20 scheme................................................................................................................ 1-21
1.1.21 self-service-url ..................................................................................................... 1-22
1.1.22 service-type ......................................................................................................... 1-24
1.1.23 state..................................................................................................................... 1-25
1.1.24 vlan-assignment-mode........................................................................................ 1-26
1.2 RADIUS Configuration Commands ................................................................................. 1-27
1.2.1 accounting optional ............................................................................................... 1-27
1.2.2 accounting-on enable............................................................................................ 1-28
1.2.3 data-flow-format .................................................................................................... 1-30
1.2.4 display local-server statistics................................................................................. 1-31
1.2.5 display radius scheme........................................................................................... 1-32
1.2.6 display radius statistics ......................................................................................... 1-34
1.2.7 display stop-accounting-buffer .............................................................................. 1-35
1.2.8 key......................................................................................................................... 1-37
1.2.9 local-server............................................................................................................ 1-38
1.2.10 local-server nas-ip............................................................................................... 1-38
1.2.11 nas-ip................................................................................................................... 1-40
i
Command Manual – AAA & RADIUS & HWTACACS & EAD
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual – AAA & RADIUS & HWTACACS & EAD
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
iii
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Parameter
disable: Specifies not to limit the number of access users that can be contained in
current ISP domain.
enable max-user-number: Specifies the maximum number of access users that can
be contained in current ISP domain. Where, max-user-number ranges from 1 to 2072.
Description
Use the access-limit command to set the maximum number of access users that can
be contained in current ISP domain.
Use the undo access-limit command to restore the default maximum number.
By default, the number of access users that can be contained in current ISP domain is
unlimited.
Because resource contention may occur between access users, there is a need to
properly limit the number of access users in an ISP domain to provide reliable
performance to the users in the ISP domain.
Example
1-1
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.1.2 attribute
Syntax
View
Parameter
Description
Use the attribute command to set the attributes of a user whose service type is
lan-access.
Use the undo attribute command to cancel attribute settings of the user.
Related command: display local-user.
Example
1-2
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] local-user user1
New local user added.
[Quidway-luser-user1] attribute ip 10.110.50.1
1.1.3 accounting
Syntax
View
Parameter
Description
Use the accounting command to configure the accounting scheme that will be used
by current ISP domain.
Use the undo accounting command to remove the accounting scheme used by
current ISP domain.
By default, no accounting scheme is configured for the ISP domain.
When you use the accounting command to reference a RADIUS scheme or
HWTACACS scheme for current ISP domain, the RADIUS scheme or HWTACACS
scheme must have already been configured.
If the accounting command is used in ISP domain view, the system uses the scheme
referenced in this command to charge the users. Or else, the system uses the
scheme referenced in the scheme command to charge the users.
Related command: scheme and radius scheme, hwtacacs scheme.
Example
1-3
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] domain aabbcc.net
New Domain added.
[Quidway-isp-aabbcc.net] accounting radius-scheme radius
Syntax
accounting optional
undo accounting optional
View
Parameter
None
Description
Example
# Open the accounting-optional switch for the ISP domain named aabbcc.net.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] domain aabbcc.net
New Domain added.
[Quidway-isp-aabbcc.net] accounting optional
1-4
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.1.5 authentication
Syntax
View
Parameter
Description
1-5
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
With the authentication command configured in an ISP domain view, the system
adopts the authentication scheme referenced in the command to authenticate the
users in the domain, or else it adopts the scheme referenced in the scheme
command.
Related command: scheme and radius scheme, hwtacacs scheme.
Example
1.1.6 authorization
Syntax
View
Parameter
Description
Use the authorization command to configure the authorization scheme of the current
ISP domain.
Use the undo authorization command to restore the default authorization scheme of
the ISP domain.
1-6
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
# Allow users in current ISP domain to access the network services without being
authorized.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] domain aabbcc.net
New Domain added.
[Quidway-isp-aabbcc.net] authorization none
Syntax
View
System view
Parameter
1-7
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
vlan vlan-id: Cuts down all user connections of the specified VLAN. Where, vlan-id
ranges from 1 to 4094.
ucibindex ucib-index: Cuts down the user connection with the specified connection
index. Where, ucib-index ranges from 0 to 2071.
user-name user-name: Cuts down the user connection of the specified user. Where,
user-name is a character string of up to 80 characters. The string cannot contain the
following characters: /:*?<>. It can contain no more than one @ character. The pure
user name (user ID, that is, the part before @) cannot contain more than 55
characters, and the domain name (the part behind @) cannot contain more than 24
characters.
Description
Use the cut connection command to cut down one user connection or one type of
user connections forcibly.
This command cannot cut down the connections of Telnet and FTP users.
Related command: display connection.
Example
# Cut down all user connections in the ISP domain named aabbcc.net.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] cut connection domain aabbcc.net
Syntax
View
Any view
Parameter
1-8
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
domain isp-name: Displays all user connections under the specified ISP domain.
Where, isp-name is the name of an ISP domain, a character string of up to 24
characters. You can only specify an existing ISP domain.
interface interface-type interface-number: Displays all user connections on the
specified port.
ip ip-address: Displays all user connections with the specified IP address.
mac mac-address: Displays the connection of the user with the specified MAC
address. Where, mac-address is in dotted hexadecimal notation (in the form of
H.H.H).
radius-scheme radius-scheme-name: Displays all user connections using the
specified RADIUS scheme. Where, radius-scheme-name is a character string of up to
32 characters.
hwtacacs-scheme hwtacacs-scheme-name: Displays all user connections using the
specified RADIUS scheme. Where, hwtacacs-scheme-name is a character string of
up to 32 characters.
vlan vlan-id: Displays all user connections of the specified VLAN. Where, vlan-id
ranges from 1 to 4094.
ucibindex ucib-index: Displays the user connection with the specified connection
index. Where, ucib-index ranges from 0 to 2071.
user-name user-name: Displays the user connection with the specified user name.
Where, user-name is a character string in the format of
pure-username@domain-name. The pure-username cannot be longer than 55
characters, the domain-name cannot contain more than 24 characters, and the whole
string cannot be longer than 80 characters.
Description
Use the display connection command to display information about specified or all
user connections.
If you execute this command without specifying any parameter, all user connections
will be displayed.
This command cannot display information about the connections of the FTP users.
Related command: cut connection.
Example
1-9
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
------------------unit 2------------------------
Index=40 , Username=user1@domain1
MAC=000f-3d80-4ce5 , IP=0.0.0.0
On Unit 2: Total 1 connections matched, 1 listed.
------------------unit 3------------------------
On Unit 3:Total 0 connections matched, 0 listed.
Total 1 connections matched, 1 listed.
31 to 28 27 to 24 23 to 20 19 to 12 11 to 0
UNIT ID Slot number Subslot number Port number VLAN ID
Syntax
View
Any view
Parameter
1-10
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the display domain command to display the configuration information about one
specific or all ISP domains.
Related command: access-limit, domain, scheme and state.
Example
Field Description
Domain Domain name
State State
Scheme AAA scheme
1-11
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Any view
Parameter
domain isp-name: Displays all local users belonging to the specified ISP domain.
Where, isp-name is the name of an ISP domain, a character string of up to 24
characters. You can only specify an existing ISP domain.
idle-cut { disable | enable }: Displays the local users who are inhibited from enabling
the idle-cut function, or the local users who are allowed to enable the idle-cut function.
Where, disable specifies the inhibited local users and enable specifies the allowed
local users.
vlan vlan-id: Displays the local users belonging to the specified VLAN. Where, vlan-id
ranges from 1 to 4094.
service-type: Displays the local users of the specified type. You can specify one of
the following user types: ftp, lan-access (generally, this type of users are Ethernet
access users, for example, 802.1x users), ssh, telnet, terminal (this type of users are
terminal users who log into the switch through the Console port).
state { active | block }: Displays the local users in the specified state. Where active
represents the users allowed to request network services, and block represents the
users inhibited to request network services.
user-name user-name: Displays the local user who has the specified user name.
Where, user-name is a character string of up to 80 characters. The string cannot
contain the following characters: /:*?<>. It can contain no more than one @ character.
The pure user name (user ID, that is, the part before @) cannot be longer than 55
characters, and the domain name (the part behind @) cannot be longer than 24
characters.
Description
Use the display local-user command to display information about specified or all
local users.
Related command: local-user.
Example
1-12
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Field Description
State State of the local user
ServiceType Mask Service type mark
1.1.11 domain
Syntax
View
System view
Parameter
1-13
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
default: Manually configures the default ISP domain, which is "system" by default.
There is one and only one default ISP domain.
disable: Disables the configured default ISP domain.
enable: Enables the configured default ISP domain.
Description
Use the domain command to create an ISP domain and enter its view, or enter the
view of an existing ISP domain, or configure the default ISP domain.
Use the undo domain command to delete a specified ISP domain.
By default, an ISP domain "system" has already existed in the system, and you can
use the display domain command to check the settings of this default ISP domain.
After you execute the domain command, the system creates a new ISP domain if the
specified ISP domain does not exist. Once an ISP domain is created, it is in the active
state. You can manually configure the default domain only when it has already
existed.
Related command: access-limit, scheme, state and display domain.
Example
1.1.12 idle-cut
Syntax
View
Parameter
1-14
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the idle-cut command to set the user idle-cut function in current ISP domain.
By default, this function is disabled.
Related command: domain.
Example
# Allow users in ISP domain aabbcc.net to enable the idle-cut attribute in user
template (that is, allow the user to use the idle-cut function), with the maximum idle
time of 50 minutes and the minimum data flow of 500 bytes.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] domain aabbcc.net
New Domain added.
[Quidway-isp-aabbcc.net] idle-cut enable 50 500
1.1.13 level
Syntax
level level
undo level
View
Parameter
level: Priority level of the user. It is an integer ranging from 0 to 3 and defaulting to 0.
Description
Use the level command to set the priority level of the user. The priority level of the
user corresponds to the command level of the user. Refer to the description of the
command-privilege level command in the command line interface module.
Use the undo level command to restore the default priority level of the user.
Note that:
z If the configured authentication method is none or requires a password, the
command level that a user can access after login is determined by the level of the
user interface.
z If the configured authentication method requires a user name and a password,
the command level that a user can access after login is determined by the priority
level of the user. For SSH users, when they use RSA shared keys for
1-15
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
authentication, the commands they can access are determined by the levels sets
on the user interfaces.
Related command: local-user.
Example
1.1.14 local-user
Syntax
local-user user-name
undo local-user { user-name | all [ service-type { ftp | lan-access | ssh | telnet |
terminal } ] }
View
System view
Parameter
Description
Use the local-user command to add a local user and enter local user view.
Use the undo local-user command to delete one or more specified local users.
By default, there is no local user in the system.
Related command: display local-user and service-type.
1-16
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
Syntax
View
System view
Parameter
cipher-force: Adopts the forcible cipher mode so that the passwords of all local users
must be displayed in cipher text.
auto: Adopts the automatic mode so that the passwords of local users are displayed
in the modes set with the password command.
Description
Example
1-17
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.1.16 messenger
Syntax
View
Parameter
limit: Time limit in minutes, ranging from 1 to 60. The switch will send prompt
messages at regular intervals to users whose remaining online time is less than this
limit.
interval: Interval to send prompt messages (in minutes). This argument ranges from 5
to 60 and must be a multiple of 5.
Description
Use the messenger time enable command to enable the messenger function and
set the related parameters.
Use the messenger time disable command to disable the messenger function.
Use the undo messenger time command to restore the messenger function to its
default state.
By default, the messenger function is disabled on the switch.
The purpose of this function is to remind online users of their remaining online time
through clients in the form of message dialog.
You can use messenger time enable command to set a remaining online time limit
and the interval to send prompt messages. After that, the switch regularly sends
prompt messages at the set interval to the clients of the users whose remaining online
time is less than the set limit, and the clients inform the users of their remaining online
time in the form of message dialog.
Example
# Enable the switch to send prompt messages at intervals of 5 minutes to the users in
the ISP domain "system" after their remaining online time is less than 30 minutes.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] domain system
[Quidway-isp-system] messenger time enable 30 5
1-18
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.1.17 name
Syntax
name string
undo name
View
VLAN view
Parameter
Description
Use the name command to set a VLAN name, which will be used for VLAN
assignment.
Use the undo name command to cancel the VLAN name.
By default, an VLAN uses its VLAN ID (like VLAN 0001) as its name.
This command is used for the dynamic VLAN assignment function. For details about
this function, refer to the vlan-assignment-mode command.
Related command: vlan-assignment-mode.
Example
1.1.18 password
Syntax
View
Parameter
1-19
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the password command to set a password for the local user.
Use the undo password command to cancel the password of the local user.
Note that, after the local-user password-display-mode cipher-force command is
executed, the password will be displayed in cipher text even though you use the
password command to set the display mode of the password to simple.
Related command: display local-user.
Example
# Set the password of user1 to 20030422 and specify to display the password in plain
text.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] local-user user1
New local user added.
[Quidway-luser-user1] password simple 20030422
1.1.19 radius-scheme
Syntax
radius-scheme radius-scheme-name
View
Parameter
Description
1-20
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Once an ISP domain is created, it uses the local AAA scheme instead of any RADIUS
scheme by default.
The RADIUS scheme you specified in the radius-scheme command must be an
existing scheme. This command is equivalent to the scheme radius-scheme
command.
Related command: radius scheme, scheme, and display radius scheme.
Example
# Specify the scheme "huawei" as the RADIUS scheme to be used by current ISP
domain "huawei163.net".
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] domain huawei163.net
New Domain added.
[Quidway-isp-huawei163.net] radius-scheme huawei
1.1.20 scheme
Syntax
View
Parameter
Description
Use the scheme command to configure the AAA scheme used by current ISP
domain.
Use the undo scheme command to restore the default AAA scheme used by the ISP
domain.
By default, the ISP domain uses the local AAA scheme.
1-21
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Note that:
z When the scheme command is used to specify the RADIUS scheme to be
referenced by current ISP domain, the specified RADIUS scheme must has
already been configured.
z If you execute the scheme radius-scheme radius-scheme-name local
command, the local scheme becomes the secondary scheme in case the
RADIUS server does not response normally. That is, if the communication
between the switch and the RADIUS server is normal, no local authentication is
performed; otherwise, local authentication is performed.
z If you execute the scheme hwtacacs-scheme hwtacacs-scheme-name local
command, the local scheme becomes the secondary scheme in case the
TACACS server does not response normally. That is, if the communication
between the switch and the TACACS server is normal, no local authentication is
performed; otherwise, local authentication is performed.
z If you execute the scheme local command, the local scheme is adopted as the
primary scheme. In this case, only local authentication is performed, no RADIUS
authentication is performed. If you execute the scheme none command, no
authentication is performed.
Related command: radius scheme.
Example
# Specify the RADIUS scheme radius1 as the primary AAA scheme referenced by the
ISP domain aabbcc.net and specify the local scheme as the secondary authentication
scheme.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] domain aabbcc.net
New Domain added.
[Quidway-isp-aabbcc.net] scheme radius-scheme raduis1 local
1.1.21 self-service-url
Syntax
View
1-22
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Parameter
url-string: URL of the web page used to modify user password on the self-service
server. It is a character string with 1 character to 64 characters. This string cannot
contain a question mark "?". If the actual URL of the self-service server contains any
question mark, you should change it to an elect bar "|".
Description
Use the self-service-url enable command to enable the self-service server location
function
Use the self-service-url disable command to disable the self-service server location
function
Use the undo self-service-url command to restore the default state of this function.
By default, this function is disabled.
Note that:
z This command must be used with the cooperation of a self-service-supported
RADIUS server (such as CAMS). Through self-service, users can manage and
control their accounts or card numbers by themselves. A server installed with the
self-service software is called a self-service server.
z After this command is executed on the switch, users can locate the self-service
server through the following operation: choose [change user password] on the
802.1x client, the client opens the default browser (for example, IE or NetScape)
and locates the specified URL page used to change user password on the
self-service server. Then, the user can change the password.
z A user can choose the [change user password] option on the client only after
passing the authentication. If the user fails the authentication, this option is in
grey and is unavailable.
Note:
Huawei's CAMS Server is a service management system used to manage networks
and secure networks and user information. Cooperating with other network devices
(such as switches) in a network, the CAMS Server accomplishes the AAA
(authentication, authorization and accounting) services and rights management.
Example
# Under the default ISP domain "system", set the URL of the web page used to modi
fy user password on the self-service server to http://10.153.89.94/selfservice/modPa
sswd1x.jsp|userName.
1-23
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] domain system
[Quidway-isp-system] self-service-url enable
http://10.153.89.94/selfservice/modPasswd1x.jsp|userName
1.1.22 service-type
Syntax
View
Parameter
Description
Use the service-type command to authorize the user to access the specified type(s)
of service(s).
Use the undo service-type command to inhibit the user from accessing the specified
type(s) of service(s).
By default, the user is inhibited from accessing any type of service.
Example
1-24
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.1.23 state
Syntax
View
Parameter
active: Activates the current ISP domain (in ISP domain view) or local user (in local
user view), to allow users in current ISP domain or current local user to access the
network.
block: Hangs up the current ISP domain (in ISP domain view) or local user (in local
user view), to inhibit users in current ISP domain or current local user from accessing
the network.
Description
Use the state command to set the status of current ISP domain (in ISP domain view)
or the status of the local user (in local user view).
By default, an ISP domain is in the active state once it is created, and a local user is in
the active state once the user is created.
After an ISP domain is set to the block state, except the online users, the users under
this domain are not allowed to access the network.
After the local user is set to the block state, the user is not allowed to access the
network.
Related command: domain.
Example
# Set the ISP domain aabbcc.net to the block state, so that all its offline users cannot
access the network.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] domain aabbcc.net
New Domain added.
[Quidway-isp-aabbcc.net] state block
1-25
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.1.24 vlan-assignment-mode
Syntax
View
Parameter
Description
1-26
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
VLAN assignment modes, you are recommended to configure the device according to
the dynamic VLAN assignment mode in use.
Table 1-4 lists some common dynamic VLAN assignment modes.
Note:
In string mode, if the VLAN ID assigned by the RADIUS server is a character string
containing only digits (for example, 1024), the switch first regards it as an integer
VLAN ID: the switch transforms the string to an integer value and judges if the value is
in the valid VLAN ID range; if it is, the switch adds the authenticated port to the VLAN
with the value as the VLAN ID (VLAN 1024, for example).
Example
Syntax
accounting optional
undo accounting optional
1-27
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
Parameter
None
Description
Example
Syntax
View
1-28
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Parameter
Description
Use the accounting-on enable command to enable the user re-authentication upon
device restart function.
Use the undo accounting-on enable command to disable the user re-authentication
upon device restart function and restore the default interval and maximum number of
attempts to transmit Accounting-On packets.
Use the undo accounting-on send command to restore the default maximum
number of attempts to transmit Accounting-On packets.
Use the undo accounting-on interval command to restore the default interval to
transmit Accounting-On packets.
By default, this function is disabled.
The purpose of this function is to resolve this problem: users cannot re-log into the
switch after the switch restarts because they are already online. After this function is
enabled, every time the switch restarts:
z The switch generates an Accounting-On packet, which mainly contains the
following information: NAS-ID, NAS-IP address (source IP address), and session
ID.
z The switch sends the Accouting-On packet to CAMS at regular intervals.
z Once the CAMS receives the Accounting-On packet, it sends a response to the
switch. At the same time it finds and deletes the original online information of the
users who accessed the network through the switch before the restart according
to the information contained in this packet (NAS-ID, NAS-IP address and session
ID), and ends the accounting of the users based on the last accounting update
packet.
z Once the switch receives the response from the CAMS, it stops sending other
Accounting-On packets.
z If the switch does not receives any response from the CAMS after the times it
transmit Accounting-On packet reaches the configured maximum times, it does
not send any more Accounting-On packets.
1-29
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Note:
The switch can automatically generate the main attributes (NAS-ID, NAS-IP address
and session ID) in the Accounting-On packets. However, you can also manually
configure the NAS-IP address with the nas-ip command. If you choose to manually
configure this attribute, be sure to configure an appropriate and legal IP address. If
this attribute is not configured, the switch will automatically use the IP address of the
VLAN interface as the NAS-IP address.
Example
# Enable the user re-authentication upon device restart function for the RADIUS
scheme named CAMS.
<Quidway> system-view
[Quidway] radius scheme CAMS
[Quidway-radius-CAMS] accounting-on enable
1.2.3 data-flow-format
Syntax
View
Parameter
1-30
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the data-flow-format command to set the units of measure for data flows sent to
RADIUS servers.
Use the undo data-flow-format command to restore the default units of measure.
By default, the unit of measure for data is byte and that for packets is one-packet.
Related command: display radius scheme.
Example
# Specify to measure data and packets in data flows sent to RADIUS server in
kilobytes and kilo-packets respectively.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] data-flow-format data kilo-byte packet kilo-packet
Syntax
View
Any view
Parameter
None
Description
Use the display local-server statistics command to display the statistics about all
local RADIUS authentication servers.
Related command: local-server.
Example
1-31
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display radius scheme command to display the configuration information
about one specific or all RADIUS schemes
Related command: radius scheme.
Example
1-32
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
------------------------------------------------------------------
Total 1 RADIUS scheme(s). 1 listed
Field Description
SchemeName Name of the RADIUS scheme
Index Index number of the RADIUS scheme
Type Type of the RADIUS servers
IP address/access port number of the primary
Primary Auth IP/ Port
authentication server
IP address/access port number of the primary
Primary Acct IP/ Port
accounting server
IP address/access port number of the secondary
Second Auth IP/ Port
authentication server
IP address/access port number of the secondary
Second Acct IP/ Port
accounting server
Auth Server Encryption Key Shared key of the authentication servers
1-33
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Field Description
Second Acc State Status of the secondary accounting server
Syntax
View
Any view
Parameter
None
Description
Use the display radius statistics command to display the statistics about RADIUS
packets.
Related command: radius scheme.
Example
Running statistic:
RADIUS received messages statistic:
Normal auth request , Num=0 , Err=0 , Succ=0
1-34
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
No-response-acct-stop packet =0
Discarded No-response-acct-stop packet for buffer overflow =0
Syntax
View
Any view
Parameter
1-35
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Note:
z You can choose to display the buffered stop-accounting packets of a specified
RADIUS scheme, session ID, or user name. You can also specify a time range to
display those which are sent within the specified time range. The displayed packet
information helps you to diagnose and resolve problems relevant to RADIUS.
z When the switch sends out a stop-accounting packet but gets no response from
the RADIUS server, it first buffers the packet and then retransmits it until the
maximum number of retransmission attempts (set by the retry stop-accounting
command) is reached.
Example
1-36
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.2.8 key
Syntax
View
Parameter
accounting: Specifies to set a shared key for the RADIUS accounting packets.
authentication: Specifies to set a shared key for the RADIUS
authentication/authorization packets.
string: Shared key, a character string of up to 16 characters.
Description
Use the key command to set a shared key for the RADIUS
authentication/authorization packets or accounting packets.
Use the undo key command to restore the corresponding default shared key.
By default, there is no shared key.
The RADIUS client and server adopt MD5 algorithm to encrypt the RADIUS packets
exchanged with each other. The two parties verify the validity of the exchanged
packets by using the shared keys that have been set on them, and can accept and
respond to the packets sent from each other only if both of them have the same
shared keys. If the authentication/authorization server and the accounting server are
two separate devices and the two servers have different shared keys, you must set
the shared keys for authentication/authorization packets and accounting packets
respectively on the switch.
Related command: primary accounting, primary authentication and radius
scheme.
Example
# Set the shared key for the RADIUS authentication/authorization packets in RADIUS
scheme radius1 to hello.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] key authentication hello
1-37
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
# Set the shared key for the RADIUS accounting packets in RADIUS scheme radius1
to ok.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] key accounting ok
1.2.9 local-server
Syntax
local-server enable
undo local-server
View
System view
Parameter
None
Description
Use the local-server enable command to enable UDP port for local RADIUS
authentication server.
Use the undo local-server command to disable UDP port for local RADIUS
authentication server.
By default, UDP port for local RADIUS authentication server is enabled.
Related command: radius scheme, state and local-server nas-ip.
Example
Syntax
1-38
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
System view
Parameter
nas-ip ip-address: Specifies the IP address of the local RADIUS server. Where,
ip-address is in dotted decimal notation.
key password: Specifies the shared key of the authentication server and access
server. Where, password is a character string of up to 16 characters.
Description
1-39
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
# Create a network access server granted by the RADIUS authentication server with
an IP address of 10.110.1.2 and a shared key of aabbcc.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] local-server nas-ip 10.110.1.2 key aabbcc
1.2.11 nas-ip
Syntax
nas-ip ip-address
undo nas-ip
View
Parameter
ip-address: Source IP address for RADIUS packets, an IP address of this device. This
address can neither be the all zero address nor be a Class-D address.
Description
Use the nas-ip command to set the source IP address used by the switch to send
RADIUS packets.
Use the undo nas-ip command to remove the source IP address setting.
By default, the IP address of the outbound interface is used as the source IP address
of the packet.
Note:
The nas-ip command in RADIUS scheme view has the same function as the radius
nas-ip command in system view; and the priority of configuration in RADIUS scheme
view is higher than in system view.
You can specify the source IP address used to send RADIUS packets to prevent the
unreachability of the packets returned from the server due to physical interface
trouble. It is recommended to use the loopback interface address as the source IP
address.
Related command: display radius scheme, radius nas-ip.
1-40
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
# Set the source IP address used by the switch to send the RADIUS packets to
10.1.1.1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] nas-ip 10.1.1.1
Syntax
View
Parameter
Description
Use the primary accounting command to set the IP address and port number of the
primary RADIUS accounting server.
Use the undo primary accounting command to restore the default IP address and
port number of the primary RADIUS accounting server.
The IP address and UDP port number of the primary accounting server used by the
default RADIUS scheme "system" are 127.0.0.1 and 1646.
Related command: key, radius scheme and state.
Example
# Set the IP address and UDP port number of the primary accounting server of the
RADIUS scheme radius1 to 10.110.1.2 and 1813.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
1-41
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Parameter
Description
Use the primary authentication command to set the IP address and port number of
the primary RADIUS authentication/authorization server.
Use the undo primary authentication command to restore the default IP address
and port number of the primary RADIUS authentication/authorization server.
Note that:
z After creating a new RADIUS scheme, you should configure the IP address and
UDP port number of each RADIUS server you want to use in this scheme. These
RADIUS servers fall into two types: authentication/authorization, and accounting.
And for each kind of server, you can configure two servers in a RADIUS scheme:
primary and secondary servers. A RADIUS scheme has the following attributes:
IP addresses of the primary and secondary servers, shared keys, and types of
the RADIUS servers.
z In an actual network environment, you can configure the above parameters as
required. But you should configure at least one authentication/authorization
server and one accounting server, and at the same time, you should keep the
RADIUS service port settings on the switch consistent with those on the RADIUS
servers.
z The IP address and port number of the primary authentication server used by the
default RADIUS scheme "system" are 127.0.0.1 and 1645.
Related command: key, radius scheme and state.
1-42
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
# Set the IP address and UDP port number of the primary authentication/authorization
server used by the RADIUS scheme radius1 to 10.110.1.1 and 1812.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] primary authentication 10.110.1.1 1812
Syntax
View
System view
Parameter
None
Parameter
Use the radius client enable command to enable UDP port for AAA RADIUS client.
Use the undo radius client command to disable UDP port for AAA RADIUS client.
By default, UDP port for AAA RADIUS client is enabled.
Related command: radius scheme.
Example
Syntax
1-43
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
System view
Parameter
Description
Use the radius nas-ip command to set the source IP address used by the switch to
send RADIUS packets.
Use the undo radius nas-ip command to restore the default setting.
By default, no source IP address is specified, and the IP address of the outbound
interface is used as the source IP address of the packet.
Note:
The nas-ip command in RADIUS scheme view has the same function as the radius
nas-ip command in system view; and the priority of configuration in RADIUS scheme
view is higher than in system view.
Note that:
z You can specify the source IP address used to send RADIUS packet to prevent
the unreachability of the packets returned from the server due to physical
interface trouble. It is recommended to use the loopback interface address as the
source IP address.
z You can specify only one source IP address by using this command. When you
use this command again, the newly specified source IP address will overwrite the
old one.
Related command: nas-ip.
Example
# Set the source IP address used by the switch to send the RADIUS packets to
129.10.10.1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius nas-ip 129.10.10.1
1-44
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
System view
Parameter
Description
Use the radius scheme command to create a RADIUS scheme and enter its view.
Use the undo radius scheme command to delete the specified RADIUS scheme.
By default, a RADIUS scheme named "system" has already been created in the
system.
Note that:
z All the attributes of the RADIUS scheme "system" take the default values, which
you can see by using the display radius scheme command.
z The RADIUS protocol configuration is performed on a RADIUS scheme basis.
For each RADIUS scheme, you should specify at least the IP addresses and
UDP port numbers of the RADIUS authentication/authorization and accounting
servers, and the parameters required for the RADIUS client to interact with the
RADIUS servers. You should first create a RADIUS scheme and enter its view
before performing other RADIUS protocol configurations.
z A RADIUS scheme can be referenced by multiple ISP domains simultaneously.
z The undo radius scheme command cannot be used to delete the default
RADIUS scheme. In addition, you are not allowed to delete a RADIUS scheme
which is being used by an online user.
Related command: key, retry realtime-accounting, scheme, timer
realtime-accounting, stop-accounting-buffer enable, retry stop-accounting,
server-type, state, user-name-format, retry, display radius scheme and display
radius statistics.
Example
1-45
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
System view
Parameter
None
Description
Use the radius trap command to enable the switch to send trap messages when its
RADIUS authentication or accounting server turns down.
Use the undo radius trap command to disable the switch from sending trap
messages when its RADIUS authentication or accounting server turns down.
By default, this function is disabled.
This configuration takes effect on all RADIUS scheme.
Note:
A device considers its RADIUS server as being down if it has tried the configured
maximum times to send packets to the RADIUS server but does not receive any
response.
Example
# Enable the switch to send trap messages when its RADIUS authentication server
turns down.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius trap authentication-server-down
1-46
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
User view
Parameter
None
Description
Use the reset radius statistics command to clear the statistics about the RADIUS
protocol.
Related command: display radius scheme.
Example
Syntax
View
User view
Parameter
1-47
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Example
# Delete the stop-accounting request packets buffered in the system for the user
user0001@aabbcc.net.
<Quidway> reset stop-accounting-buffer user-name user0001@aabbcc.net
1.2.20 retry
Syntax
retry retry-times
undo retry
View
Parameter
Description
Use the retry command to set the maximum number of transmission attempts of
RADIUS requests.
Use the undo retry command to restore the default maximum number of
transmission attempts.
1-48
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Note that:
z The communication in RADIUS is unreliable because this protocol adopts UDP
packets to carry data. Therefore, it is necessary for the switch to retransmit a
RADIUS request if it gets no response from the RADIUS server after the
response timeout timer expires. If the maximum number of transmission
attempts is reached but the switch still receives no response, the switch
considers that the request fails.
z Appropriately set this maximum number of transmission attempts according to
the network situation can improve the reacting speed of the system.
Related command: radius scheme.
Example
# Set the maximum transmission times of RADIUS requests in the RADIUS scheme
radius1 to five.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] retry 5
Syntax
View
Parameter
Description
1-49
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
z Generally, the RADIUS server uses the connection timeout timer to determine
whether a user is online or not. If the RADIUS server receives no real-time
accounting packet for a specified period of time, it will consider that the line or the
switch is in trouble and stop the accounting of the user. To make the switch
cooperate with this feature on the RADIUS server, it is necessary to cut down the
user connection on the switch as soon as possible after the RADIUS server
terminates the charging and connection of the user in the case of unforeseen
trouble. For this purpose, you can limit the number of continuous real-time
no-response accounting requests, and the switch will cut down the user
connection if it sends out the maximum number of real-time accounting requests
but does not receive any response.
z A real-time account request may be sent multiple times (set by the retry
command in RADIUS scheme view) for an accounting attempt. If no response is
received even after the number of transmission attempts reaches the maximum,
the accounting attempt fails. Suppose that the response timeout time of the
RADIUS server is three seconds (set by the timer response-timeout command),
that the maximum number of transmission attempts (set by the retry command)
is 3, and that the real-time accounting interval is 12 minutes (set by the timer
realtime-accounting command), the maximum number of real-time accounting
request attempts is 5 (set by the retry realtime-accounting command). In this
case, the switch sends an accounting request every 12 minutes; if the switch
does not receive a response within 3 seconds after it sends out an accounting
request, it resends the request; if the switch continuously sends the accounting
request for three times but does not receive any response; it considers this
real-time accounting a failure. Then, the switch sends the accounting request
every 12 minutes; if the number of accounting failures exceeds five, the user
connection is cut down.
Related command: radius scheme and timer realtime-accounting.
Example
Syntax
1-50
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
Parameter
Description
Example
# In RADIUS scheme radius1, specify that the switch can transmit a buffered
stop-accounting request at most 1000 times
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] retry stop-accounting 1000
Syntax
View
1-51
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Parameter
Description
Use the secondary accounting command to set the IP address and port number of
the secondary RADIUS accounting server.
Use the undo secondary accounting command to restore the default IP address
and port number of the secondary RADIUS accounting server.
Related command: key, radius scheme and state.
Example
# Set the IP address and UDP port number of the secondary accounting server of the
RADIUS scheme radius1 to 10.110.1.1 and 1813.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] secondary accounting 10.110.1.1 1813
Syntax
View
Parameter
Description
Use the secondary authentication command to set the IP address and port number
of the secondary RADIUS authentication/authorization server.
1-52
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Use the undo secondary authentication command to restore the default IP address
and port number of the secondary RADIUS authentication/authorization server.
Related command: key, radius scheme and state.
Example
1.2.25 server-type
Syntax
View
Parameter
huawei: Specifies to use Huawei's private RADIUS protocol (such as the procedure
and packet format) to interact with the Huawei RADIUS server, which is generally the
CAMS.
standard: Specifies to use the standard RADIUS protocol. That is, it is required that
the RADIUS client (on the switch) and the RADIUS server interact with each other
following the procedure and packet format of the standard RADIUS protocol
(RFC2865/2866 or above).
Description
Use the server-type command to specify the RADIUS server type supported by the
switch.
Use the undo server-type command to restore the default RADIUS server type
supported by the switch.
Related command: radius scheme.
Example
1-53
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] server-type huawei
1.2.26 state
Syntax
View
Parameter
Description
1-54
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
time restores the status of the primary server on the switch to the active state
while keeping the status of the secondary server unchanged.
z When both the primary and secondary servers are in the active state, the switch
sends packets only to the primary server.
Related command: radius scheme, primary authentication, secondary
authentication, primary accounting and secondary accounting.
Example
# Set the status of the secondary authentication server in RADIUS scheme radius1 to
active.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] state secondary authentication active
Syntax
stop-accounting-buffer enable
undo stop-accounting-buffer enable
View
Parameter
None
Description
Use the stop-accounting-buffer enable command to enable the switch to buffer the
stop-accounting requests that bring no response.
Use the undo stop-accounting-buffer enable command to disable the switch from
buffering the stop-accounting requests that bring no response.
By default, the switch is enabled to buffer the stop-accounting requests that bring no
response.
Stop-accounting requests are critical to billing and will eventually affect the charges;
they are important for both the users and the ISP. Therefore, the switch should do its
best to transmit them to the RADIUS server. If the RADIUS accounting server does
not respond to such a request, the switch should first buffer the request on itself, and
then retransmit the request to the RADIUS accounting server until it gets a response,
1-55
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
or the maximum number of transmission attempts is reached (in this case, it discards
the request).
Related command: reset stop-accounting-buffer, radius scheme and display
stop-accounting-buffer.
Example
# Enable the switch to buffer the stop-accounting requests that bring no response
from the servers in RADIUS scheme radius1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] stop-accounting-buffer enable
1.2.28 timer
Syntax
timer seconds
undo timer
View
Parameter
Description
Use the timer command to set the response timeout time of RADIUS server (that is,
the timeout time of the response timeout timer of RADIUS server).
Use the undo timer command to restore the default response timeout timer of
RADIUS server.
By default, the response timeout time of the RADIUS server is 3 seconds.
Note that:
z If the switch gets no response from the RADIUS server after sending out a
RADIUS request (authentication/authorization request or accounting request)
and waiting for a time, it should retransmit the packet to ensure that the user can
obtain the RADIUS service. This wait time is called response timeout time of
RADIUS server; and the timer in the switch system that is used to control this
time is called the response timeout timer of RADIUS server. You can use the
timer command to set the timeout time of this timer.
1-56
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
z Appropriately setting the timeout time of this timer according to the network
situation can improve the performance of the system.
z The timer command has the same effect with the timer response-timeout
command.
Related command: radius scheme and retry.
Example
# Set the timeout time of the response timeout timer for the RADIUS scheme radius1
to 5 seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] timer 5
Syntax
View
Parameter
minutes: Wait time, ranging from 1 minute to 255 minutes. By default, it is 5 minutes.
Description
Use the timer quiet command to set the wait time for the primary server to restore the
active state.
Use the undo timer quiet command to restore the default wait time.
By default, the primary server waits five minutes before restoring the active state.
Related command: display radius scheme.
Example
# Set the wait time for the primary server to restore the active state to 10 minutes.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] timer quiet 10
1-57
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Parameter
Description
ú1000 ú15
1-58
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
# Set the real-time accounting interval of the RADIUS scheme radius1 to 51 minutes.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] timer realtime-accounting 51
Syntax
View
Parameter
Description
Use the timer response-timeout command to set the response timeout time of
RADIUS servers.
Use the undo timer response-timeout command to restore the default response
timeout timer of RADIUS servers.
By default, the response timeout time of the RADIUS server is 3 seconds.
Note that:
z If the switch gets no response from the RADIUS server after sending out a
RADIUS request (authentication/authorization request or accounting request)
and waiting for a time, it should retransmit the packet to ensure that the user can
obtain the RADIUS service. This wait time is called response timeout time of
RADIUS servers; and the timer in the switch system that is used to control this
time is called the response timeout timer of RADIUS servers. You can use the
timer response-timeout command to set the timeout time of this timer.
z Appropriately setting the timeout time of this timer according to the network
situation can improve the performance of the system.
z This command has the same effect with the timer command.
Related command: radius scheme and retry.
1-59
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
# Set the response timeout time in the RADIUS scheme radius1 to five seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] timer response-timeout 5
1.2.32 user-name-format
Syntax
View
Parameter
with-domain: Specifies to include ISP domain names in the user names to be sent to
RADIUS servers.
without-domain: Specifies to exclude ISP domain names from the user names to be
sent to RADIUS servers.
Description
Use the user-name-format command to set the format of the user names to be sent
to RADIUS server
By default, except for the default RADIUS scheme "system", the user names sent to
RADIUS servers in any RADIUS scheme carry ISP domain names.
Note that:
z Generally, an access user is named in the userid@isp-name format. Where,
isp-name behind the @ character represents the ISP domain name, by which the
device determines which ISP domain it should ascribe the user to. However,
some old RADIUS servers cannot accept the user names that carry ISP domain
names. In this case, it is necessary to remove the domain names carried in the
user names before sending the user names to the RADIUS server. For this
reason, the user-name-format command is designed for you to specify whether
or not ISP domain names are carried in the user names sent to the RADIUS
server.
z For a RADIUS scheme, if you have specified that no ISP domain names are
carried in the user names, you should not use this RADIUS scheme in more than
one ISP domain. Otherwise, such errors may occur: the RADIUS server regards
1-60
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
two different users having the same name but belonging to different ISP domains
as the same user (because the user names sent to it are the same).
Related command: radius scheme.
Example
# Specify that the user names sent to a RADIUS server in RADIUS scheme radius1
does not carry ISP domain names.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] radius scheme radius1
New Radius scheme
[Quidway-radius-radius1] user-name-format without-domain
Syntax
View
HWTACACS view
Parameter
1-61
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the data-flow-format command to configure the unit of data flows sent to the
TACACS server.
Use the undo data-flow-format command to restore the default.
By default, the data unit is byte and the data packet unit is one-packet.
Related command: display hwtacacs.
Example
# Set the unit of data flow destined for the HWTACACS server to kilo-byte and the
data packet unit to kilo-packet.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] hwtacacs scheme hwt1
[Quidway- hwtacacs-hwt1] data-flow-format data kilo-byte
[Quidway- hwtacacs-hwt1] data-flow-format packet kilo-packet
Syntax
View
Any view
Parameter
Description
Example
1-62
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Primary-authentication-server : 172.31.1.11:49
Primary-authorization-server : 172.31.1.11:49
Primary-accounting-server : 172.31.1.11:49
Secondary-authentication-server : 0.0.0.0:0
Secondary-authorization-server : 0.0.0.0:0
Secondary-accounting-server : 0.0.0.0:0
Current-authentication-server : 172.31.1.11:49
Current-authorization-server : 172.31.1.11:49
Current-accounting-server : 172.31.1.11:49
Source-IP-address : 0.0.0.0
key authentication : 790131
key authorization : 790131
key accounting : 790131
Quiet-interval(min) : 5
Response-timeout-Interval(sec) : 5
Domain-included : No
Traffic-unit : B
Packet traffic-unit : one-packet
Syntax
View
Any view
Parameter
1-63
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Example
Syntax
View
System view
Parameter
ip-address: Specifies a source IP address for the switch, which cannot be an all-zero
address, class D address or loopback address.
Description
Use the hwtacacs nas-ip command to specify the source address of the hwtacacs
packet sent from NAS.
Use the undo hwtacacs nas-ip command to restore the default setting.
By default, the source address is not specified, that is, the address of the interface
sending the packet serves as the source address.
Note that:
z By specifying the source address of the hwtacacs packet, you can avoid
destination unreachable packets as returned from the server upon interface
1-64
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
Syntax
View
System view
Parameter
Description
Use the hwtacacs scheme command to create an HWTACACS scheme and enter its
view.
Use the undo hwtacacs scheme command to delete the HWTACACS scheme.
By default, no HWTACACS scheme exists.
Note:
If Fabric is enabled on the switch, you cannot create an HWTACACS scheme
because they are exclusive to each other.
Example
# Create an HWTACACS scheme named "hwt1" and enter the relevant HWTACACS
view.
1-65
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] hwtacacs scheme hwt1
[Quidway-hwtacacs-hwt1]
1.3.6 key
Syntax
View
Parameter
Description
Use the key command to configure a shared key for HWTACACS authentication,
authorization or accounting.
Use the undo key command to delete the configuration.
By default, no key is set for any HWTACACS server.
Related command: display hwtacacs.
Example
1.3.7 nas-ip
Syntax
nas-ip ip-address
undo nas-ip
1-66
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
Parameter
Description
Use the nas-ip command to specify the source address for sending HWTACACS
packets.
Use the undo nas-ip command to restore the default setting.
Note that:
z By specifying the source address of the hwtacacs packet, you can avoid
destination unreachable packets as returned from the server upon interface
failure. The source address is normally recommended to be a loopback interface
address.
z This command specifies only one source address; therefore, the newly
configured source address may overwrite the original one.
Related command: display hwtacacs.
Example
Syntax
View
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
By default, the IP address of the primary accounting server is 0.0.0.0.
port: Port number of the server, which is in the range 1 to 65535 and defaults to 49.
1-67
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Example
Syntax
View
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
By default, the IP address of the primary authentication server is 0.0.0.0.
port: Port number of the server, which is in the range 1 to 65535 and defaults to 49.
Description
1-68
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Note that:
z You are not allowed to assign the same IP address to both primary and
secondary authentication servers; otherwise, unsuccessful operation is
prompted.
z If you repeatedly use this command, the latest configuration overwrites the
previous one.
z You can remove an authentication server only when it is not being used by any
active TCP connections, and the removal impacts only packets forwarded
afterwards.
Related command: display hwtacacs.
Example
Syntax
View
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
By default, the IP address of the primary authentication server is 0.0.0.0.
port: Port number of the server, which is in the range 1 to 65535 and defaults to 49.
Description
1-69
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
z If you repeatedly use this command, the latest configuration overwrites the
previous one.
z You can remove an authorization server only when it is not being used by any
active TCP connections, and the removal impacts only packets forwarded
afterwards.
Related command: display hwtacacs.
Example
Syntax
View
User view
Parameter
Description
Use the reset hwtacacs statistics command to clear HWTACACS protocol statistics.
Related command: display hwtacacs.
Example
1-70
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
User view
Parameter
Description
Example
# Delete the buffered stop-accounting requests that are according to the HWTACACS
scheme “hwt1”.
1-71
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Parameter
Description
Example
Syntax
1-72
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
By default, the IP address of the secondary accounting server is 0.0.0.0.
port: Port number of the server, which is in the range of 1 to 65535 and defaults to 49.
Description
Example
Syntax
View
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
By default, the IP address of the secondary authentication server is 0.0.0.0.
1-73
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
port: Port number of the server, which is in the range of 1 to 65535 and defaults to 49.
Description
Example
Syntax
View
Parameter
ip-address: IP address of the server, a valid unicast address in dotted decimal format.
By default, the IP address of the secondary authorization server is 0.0.0.0.
port: Port number of the server, in the range of 1 to 65535. By default, it is 49.
1-74
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Example
Syntax
View
Parameter
minutes: Length of the timer in minutes, in the range of 1 to 255. By default, the
primary server must wait five minutes before it resumes the active state.
Description
Use the timer quiet command to set the duration that a primary server must wait
before it can resume the active state.
Use the undo timer quiet command to restore the default (five minutes).
Related command: display hwtacac.
1-75
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
# Set the quiet timer for the primary server to ten minutes.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] hwtacacs scheme hwt1
[Quidway-hwtacacs-hwt1] timer quiet 10
Syntax
View
Parameter
Description
1-76
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
Syntax
View
Parameter
seconds: Length of the response timer in seconds. It ranges from 1 to 300 and
defaults to 5.
Description
Use the timer response-timeout command to set the response timeout timer of the
TACACS server.
Use the undo timer response-timeout command to restore the default (five
seconds).
As the HWTACACS is based on TCP, either the server response timeout and/or the
TCP timeout may cause disconnection to the TACACS server.
Related command: display hwtacacs.
Example
1-77
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.3.20 user-name-format
Syntax
View
Parameter
with-domain: Specifies to send the username with a domain name to the TACACS
server.
without-domain: Specifies to send the username without any domain name to the
TACACS server.
Description
Use the user-name-format command to configure the username format sent to the
TACACS server.
By default, an HWTACACS scheme acknowledges that the username sent to it
includes an ISP domain name.
Note that:
z The supplicants are generally named in userid@isp-name format. The part
following the @ sign is the ISP domain name, according to which the switch
assigns a user to the corresponding ISP domain. However, some earlier
TACACS servers reject the user name including an ISP domain name. In this
case, the user name is sent to the TACACS server after its domain name is
removed. Accordingly, the switch provides this command to decide whether the
username sent to the TACACS server carries an ISP domain name or not.
z If a HWTACACS scheme is configured to reject usernames including ISP
domain names, the TACACS scheme shall not be simultaneously used in more
than one ISP domains. Otherwise, the TACACS server will regard two users in
different ISP domains as the same user by mistake, if they have the same
username. (excluding their respective domain names.)
Related command: hwtacacs scheme.
Example
# Specify to send the username without any domain name to the HWTACACS
scheme "hwt1".
<Quidway> system-view
System View: return to User View with Ctrl+Z.
1-78
Command Manual – AAA & RADIUS & HWTACACS & EAD Chapter 1 AAA & RADIUS & HWTACACS
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1-79
Command Manual – AAA & RADIUS & HWTACACS & EAD
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 EAD Configuration Commands
Syntax
security-policy-server ip-address
undo security-policy-server [ ip-address | all ]
View
Parameter
Description
Example
2-1
Command Manual – AAA & RADIUS & HWTACACS & EAD
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 EAD Configuration Commands
user-name-format without-domain
2-2
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
Note:
The S3900-EI series switches support the VRRP feature, but not the S3900-SI series.
Syntax
View
Any view
Parameter
Description
Use the display vrrp command to display the information about the VRRP state or
VRRP statistics.
When VRRP status information is displayed:
z If the interface index and backup group ID are not specified, the state information
about all the backup groups on the switch is displayed.
z If only the interface index is specified, the state information about all the backup
groups on the interface is displayed.
z If both the interface index and backup group ID are specified, the state information
about the specified backup group on the interface is displayed.
When VRRP statistics information is displayed:
1-1
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
z If the interface index and backup group ID are not specified, the statistics about all
the backup groups on the switch is displayed.
z If only the interface index is specified, the statistics about all the backup groups on
the interface is displayed.
z If both the interface index and backup group ID are specified, the statistics about
the specified backup group on the interface is displayed.
Example
# Display the statistics about all the backup groups on the switch.
<Quidway> display vrrp statistics
Interface : Vlan-interface10
VRID : 1
CheckSum Errors : 0 Version Errors : 0
VRID Errors : 0 Advertisement Interval Errors : 0
IP TTL Errors : 0 Auth Failures : 0
Invalid Auth Type : 0 Auth Type Mismatch : 0
Packet Length Errors : 0 Address List Errors : 0
Become Master : 2 Priority Zero Pkts Rcvd : 0
Advertise Rcvd : 0 Priority Zero Pkts Sent : 1
Invalid Type Pkts Rcvd: 0
Table 1-1 Description on the fields of the display vrrp statistics command
Field Description
Interface Interface in which the backup group resides
VRID Backup group ID
CheckSum Errors Number of checksum errors
Version Errors Number of version errors
VRID Errors Number of backup group ID errors
Advertisement Interval Errors Number of advertisement time interval errors
IP TTL Errors Number of TTL errors
Auth Failures Number of authentication errors
Invalid Auth Type Number of invalid authentication types
Auth Type Mismatch Number of mismatched authentication types
Packet Length Errors Number of VRRP packet length errors
Address List Errors Number of the virtual IP address list errors
Number of the occasions where the switch
Become Master
operates as the master
Number of the received advertisement packets
Priority Zero Pkts Rcvd
with the priority of 0
1-2
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
Field Description
Advertise Rcvd Number of the received advertisement packets
Number of the sent advertisement packets with
Priority Zero Pkts Sent
the priority of 0
Invalid Type Pkts Rcvd Number of packet type errors
Syntax
View
User view
Parameter
Description
Use the reset vrrp command to clear the statistics information about VRRP.
When you execute this command,
z If the interface index and backup group ID are not specified, the statistics
information about all the backup groups on the switch is cleared.
z If only the interface index is specified, the statistics information about all the
backup groups on the interface will be cleared.
z If both the interface index and backup group ID are specified, the statistics
information about the specified backup group on the interface is cleared.
Example
Syntax
1-3
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
View
Parameter
Description
Use the vrrp authentication-mode command to specify the authentication type and
the authentication key for a VRRP backup group.
Use the undo vrrp authentication-mode command to clear the configured
authentication type and authentication key.
If the simple or md5 authentication is configured, the authentication key is required.
This command sets the authentication type and authentication key for all the VRRP
backup groups on an interface. As defined in the protocol, all the backup groups on an
interface share the same authentication type and authentication key. And all the
members joining the same backup group share the same authentication type and
authentication key too.
Note that the authentication key is case-sensitive.
Example
Syntax
View
System view
1-4
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
Parameter
real-mac: Maps the real MAC address of a Layer 3 switch routing interface to virtual
router IP addresses.
virtual-mac: Maps the virtual MAC address of a Layer 3 switch routing interface to
virtual router IP addresses.
Description
Use the vrrp method command to map the MAC address of a backup group to the
virtual router IP addresses. You can map the actual or virtual MAC address of a Layer 3
switch routing interface to virtual router IP addresses.
Use the undo vrrp method command to restore the default map settings.
By default, the virtual MAC address of a backup group is mapped to the IP address of
the virtual router.
Note that as the mapping relationship between the MAC addresses of a backup group
and a virtual router IP address cannot be configured after the backup group is created,
configure the mapping relationship before you create a backup group.
Example
# Map the real MAC address of a routing interface to a virtual router IP address.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] vrrp method real-mac
Syntax
vrrp ping-enable
undo vrrp ping-enable
View
System view
Parameter
None
Description
Use the vrrp ping-enable command to enable a backup group to respond to ping
operations destined for its virtual router IP address.
Use the undo vrrp ping-enable command to revert to the default.
1-5
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
By default, a backup group does not respond to ping operations destined for its virtual
router IP address.
As these two commands are invalid to switches in backup groups, use them before you
create a backup group.
Example
# Enable a backup group to respond to ping operations destined for its virtual router IP
address.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] vrrp ping-enable
Syntax
View
Parameter
Description
Use the vrrp vlan-Interface vrid track command to enable the port tracking function
on the physical ports of a backup group.
Use the undo vrrp vlan-Interface vrid track command to disable the port tracking
function.
By default, the value by which the priority of an Ethernet port decreases is 10.
The VRRP backup group port tracking function can track a specified port and decrease
the priority of the switch when the port fails.
Using this function, you can enable the priority of a master switch to decrease by
specific value when the uplink port of the master switch fails. This in turn triggers the
new master to be determined in the backup group.
1-6
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
Note:
The port to be tracked can be in the VLAN which the backup group VLAN interface
belongs to.
Up to eight ports can be tracked simultaneously.
Example
# Configure that the priority of the switch decreases by 50 if its Ethernet1/0/1 port fails.
<Quidway> system-view
[Quidway] vlan 2
[Quidway-vlan2] port Ethernet1/0/1
[Quidway-vlan2] quit
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] vrrp vlan-interface 2 vrid 1 track reduced 50
Syntax
View
Parameter
Description
Use the vrrp vrid preempt-mode command to configure a switch to operate in the
preemptive mode and set the delay period.
Use the undo vrrp vrid preempt-mode command to cancel the configuration.
By default, switches in a backup group operate in the preemptive mode, with the delay
period set to 0 seconds.
If you want backup switches to preempt the master switch, configure them to operate in
the preemptive mode. You can also set the delay period for preemption as needed.
As long as a switch in the backup group becomes the master switch, other switches,
even if they are configured with a higher priority later, do not preempt the master switch
unless they operate in preemptive mode. The switch operating in preemptive mode will
1-7
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
become the master switch when it finds its priority is higher than that of the current
master switch, and the former master switch becomes a backup switch accordingly.
You can configure an S3900 series switch to operate in preemptive mode. You can also
set the delay period. A backup switch waits for a period of time (the delay period) before
becoming a master switch. Setting a delay period aims at:
In an unstable network, backup switches in a backup group possibly cannot receive
packets from the master in time due to network congestions even if the master operates
properly. This causes the master of the backup group being determined frequently.
With the configuration of delay period, the backup switch will wait for a while if it does
not receive packets from the master switch in time. A new master is determined only
after the backup switches do not receive packets from the master switch after the
specified delay time.
Note:
You can use the undo vrrp vrid preempt-mode command to set switches in a backup
group to operate in non-preemptive mode.
Example
Syntax
View
1-8
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
Parameter
Description
Use the vrrp vrid priority command to set the priority of a switch in a backup group.
Use the undo vrrp vrid priority command to revert to the default priority.
By default, the priority of a switch in a backup group is 100.
Switch priority determines the possibility for the switch to become a master switch. A
switch with larger priority is more likely to become a master switch. Note that the priority
of 0 is reserved for special use, and the priority of 255 is for IP address owners. That is,
the priority of a switch that owns a virtual router IP address is fixed to 255 and cannot be
modified.
Example
# Set the priority to 120 for the switch in the backup group.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 2
[Quidway-Vlan-interface2] vrrp vrid 1 priority 120
Syntax
View
Parameter
Description
Use the vrrp vrid timer advertise command to set the interval for the master switch of
a backup group to send VRRP packets.
Use the undo vrrp vrid timer advertise command to revert to the default interval.
1-9
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
Note that configuration error occurs if switches of the same backup group are
configured with different adver-interval values.
By default, the interval for the master switch in a backup group to send VRRP packets
is 1 second.
Example
# Set the interval for the master switch to send VRRP packets to 15 seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 2
[Quidway-Vlan-interface2] vrrp vrid 1 timer advertise 15
Syntax
View
Parameter
Description
Use the vrrp vrid track command to set a VLAN interface to be tracked.
Use the undo vrrp vrid track command to disable a VLAN interface from being
tracked.
By default, the value by which the priority of the VLAN interface decreases is 10.
The VLAN interface tracking function extends the use of the backup function. With this
function enabled, the backup function is applicable to the VLAN interface that belongs
to a backup group and those that do not belong to a backup group. You can utilize the
VLAN interface tracking function by specifying monitored VLAN interfaces.
With the VLAN interface tracking function enabled, the priority of a master switch
decreases by the value set by the value-reduced argument when a tracked VLAN
interface on the switch goes down. And other switches in the backup group, whose
1-10
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
priorities are higher than the decreased priority of the master switch, may become the
master switch.
Note:
The VLAN interface tracking function is not applicable to switches operating as IP
address owners..
A backup group can track up to eight VLAN interfaces simultaneously.
Example
# Configure VLAN 2 interface to track VLAN 1 interface and specify the priority of the
master switch of backup group 1 (on VLAN 2 interface) decreases by 50 when VLAN 1
interface goes down.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 2
[Quidway-Vlan-interface2] vrrp vrid 1 track vlan-interface 1 reduced 50
Syntax
View
Parameter
Description
Use the vrrp vrid command to enable the auto detect function when employing VRRP.
Use the undo vrrp vrid command to disable the auto detect function when employing
VRRP.
1-11
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
You can control the priority of the VRRP backup group according to the auto detect
result to enable automatic switch between the master switch and the standby switch.
z Decrease the priority of a backup group when the result of the detecting group is
unreachable.
z Restore the priority of a backup group when the result of the detecting group is
reachable.
Note:
A detecting group can be used to detect up to eight Layer 3 interfaces.
Currently, auto detect in VRRP is only supported in S3900-EI series switches.
Example
# Specify to decrease the priority of backup group 1 by 20 when the result of the
detecting group is unreachable.
[Quidway] interface vlan-interface 2
[Quidway- Vlan-interface2] vrrp vrid 1 track detect-group 10 reduced 20
Syntax
View
Parameter
Description
Use the vrrp vrid virtual-ip command to add a virtual router IP address to an existing
backup group.
1-12
Command Manual – VRRP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VRRP Configuration Commands
Use the undo vrrp vrid virtual-ip command to remove a virtual router IP address from
an existing backup group.
The vrrp vrid virtual-ip command can also be used to create a backup group. You can
add up to 16 virtual router IP addresses to a backup group. The undo vrrp vrid
virtual-ip command can also be used to remove an existing backup group. A backup
group is removed if all the virtual router IP addresses configured for it are removed.
Example
1-13
Command Manual – Centralized MAC Address Authentication
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
Syntax
View
Any view
Parameter
interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing
this argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
Description
Example
……
Field Description
mac address
Centralized MAC address authentication is enabled.
authentication is Enabled
Fixed username User name used in the fixed mode, which defaults to mac.
The information about the silent user. When the user fails
to pass MAC address authentication because of inputting
Silent Mac User info error user name and password, the switch sets the user to
be in quiet state. During quiet period, the switch does not
process the authentication request of this user.
Field Description
Current online user The number of the users current access the network
number through the port
1.1.2 mac-authentication
Syntax
mac-authentication
undo mac-authentication
View
Parameter
None
Description
Note:
You can configure other MAC address authentication-related attributes before or after
you enable centralized MAC address authentication globally or for a port. With the
attributes not configured, the defaults are adopted when you enable centralized MAC
address authentication.
Example
Syntax
View
System view
Parameter
interface-list: List of Ethernet ports. You can specify multiple Ethernet ports by providing
this argument in the form of interface-list = { interface-type interface-number [ to
interface-type interface-number ] } &<1-10>, where &<1-10> means that you can
provide up to 10 port indexes/port index ranges for this argument.
Description
Note:
z To make the centralized MAC address authentication configuration takes effect on a
port, you need to enable the centralized MAC address authentication for the port
after you enable centralized MAC address authentication globally.
z The configuration of the maximum number of learned MAC addresses (configured
through the mac-address max-mac-count command) is unavailable for the ports
with centralized MAC address authentication enabled. Similarly, the centralized
MAC address authentication is unavailable for the ports with the maximum number
of learned MAC addresses configured.
Example
Syntax
View
System view
Parameter
Description
Example
Syntax
View
System view
Parameter
None
Description
Example
Syntax
View
System view
Parameter
Description
Example
Syntax
View
System view
Parameter
Description
Use the mac-authentication authusername command to set a user name when the
fixed mode is adopted.
Use the undo mac-authentication authusername command to restore the default
user name.
By default, the user name used in MAC address authentication (in the fixed mode) is
mac.
Example
Syntax
View
System view
Parameter
isp-name: ISP domain name, a string comprising up to 24 characters. Note that this
argument cannot be null and cannot contain these characters: “/”, “:”, “*”, “?”, “<”, and
“>”.
Description
Example
Syntax
View
System view
Parameter
offline-detect-value: Offline detect timer (in seconds) setting. This argument ranges
from 1 to 65,535 and defaults to 300. The offline detect timer sets the time interval for a
switch to test whether a user goes offline.
quiet-value: Quiet timer (in seconds) setting. This argument ranges from 1 to 3,600 and
defaults to 60. After a user fails to pass the authentication performed by a switch, the
switch quiets for a specific period (the quiet period) before it authenticates users again.
server-timeout-value: Server timeout timer setting (in seconds). This argument ranges
from 1 to 65,535 and defaults to 100. During authentication, the switch prohibits a user
from accessing the network through the corresponding port if the connection between
the switch and the RADIUS server times out.
Description
Example
Syntax
View
User view
Parameter
Description
Use the reset mac-authentication command to clear the centralized MAC address
authentication statistics. If you execute this command with the interface keyword
specified, the centralized MAC address authentication statistics of the specified port is
cleared. If the keyword is not specified, the command clears the global centralized MAC
address authentication statistics.
Example
# Clear the centralized MAC address authentication statistics of Ethernet 1/0/1 port.
<Quidway> reset mac-authentication statistics interface Ethernet 1/0/1
Table of Contents
i
Command Manual – ARP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ARP Configuration Commands
Syntax
View
System view
Parameter
None
Description
Use the arp check enable command to enable the ARP entry checking function, that is,
to disable a switch from creating multicast MAC address ARP entries for MAC
addresses learned.
Use the undo arp check enable command to disable the ARP entry checking function.
In this case, a switch creates multicast MAC address ARP entries for MAC addresses
learned.
By default, the ARP entry checking function is enabled.
Example
# Configure to create multicast MAC address ARP entries for MAC addresses learned.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] undo arp check enable
Syntax
1-1
Command Manual – ARP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ARP Configuration Commands
View
Parameter
Description
Use the arp static command to create a static ARP mapping entry.
Use the undo arp command to remove an ARP mapping entry.
The system ARP mapping table is empty when a switch is just started. And the dynamic
address mapping entries are generated by ARP.
Note that:
z Static ARP mapping entries are valid as long as the Ethernet switch operates.
However, an ARP mapping entry is removed if the corresponding VLAN is
removed. By default, a dynamic ARP mapping entry remains valid for 20 minutes.
z As for the arp static command, the value of the vlan-id argument must be the ID of
an existing VLAN, and the port identified by the interface-type and
interface-number arguments must belong to the VLAN.
z Currently, it is not supported to configure static ARP mapping entry on aggregation
port
Related command: reset arp, display arp.
Example
# Create a static ARP mapping entry, with the IP address of 202.38.10.2, the MAC
address of 00e0-fc01-0000. The ARP mapping entry belongs to Ethernet1/0/1 port
(assuming that Ethernet1/0/1 port belongs to VLAN1).
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] arp static 202.38.10.2 00e0-fc01-0000 1 Ethernet 1/0/1
Syntax
1-2
Command Manual – ARP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ARP Configuration Commands
View
System view
Parameter
aging-time: Aging time (in minutes) of the dynamic ARP mapping entries. This
argument ranges from 1 to 1,440.
Description
Use the arp timer aging command to configure the aging time for dynamic ARP
mapping entries.
Use the undo arp timer aging command to restore the default aging time.
By default, the aging time for dynamic ARP mapping entries is 20 minutes.
Related command: display arp timer aging.
Example
# Configure the aging time to be 10 minutes for dynamic ARP mapping entries.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] arp timer aging 10
Syntax
View
Any view
Parameter
Description
Use the display arp command to display specific ARP mapping entries.
If you execute this command with no keyword/argument specified, all the ARP mapping
entries are displayed.
1-3
Command Manual – ARP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ARP Configuration Commands
Example
Field Description
IP Address IP address contained in an ARP mapping entry
MAC address contained in an ARP mapping
MAC Address
entry
ID of the VLAN which an ARP mapping entry
VLAN ID
belongs to
Index of the port which an ARP mapping entry
Port Name / AL ID
belongs to
Aging time (in minutes) of a dynamic ARP
Aging
mapping entry
Type Type of an ARP mapping entry
1-4
Command Manual – ARP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ARP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display arp | command to display the ARP mapping entries related to string in
a specified way.
Related command: arp static, reset arp.
Example
# Display all the ARP mapping entries that contain the string “77”.
<Quidway>dis arp | include 77
Type: S-Static D-Dynamic
IP Address MAC Address VLAN ID Port Name / AL ID Aging Type
192.168.0.77 0000-e8f5-6a4a 1 Ethernet1/0/2 12 D
# Display all the ARP entries that do not contain the string “68”.
<Quidway>dis arp | exclude 68
Type: S-Static D-Dynamic
IP Address MAC Address VLAN ID Port Name / AL ID Aging Type
10.2.72.162 000a-000a-0aaa N/A N/A N/A S
1-5
Command Manual – ARP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ARP Configuration Commands
Refer to Table 1-1 for the description on the above output information.
Syntax
View
Any view
Parameter
Description
Use the display arp count command to display the number of the specified ARP
mapping entries. If no parameter is specified, the total number of ARP mapping entries
is displayed.
Related command: arp static, reset arp.
Example
Syntax
1-6
Command Manual – ARP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ARP Configuration Commands
View
Any view
Parameter
None
Description
Use the display arp timer aging command to display the setting of the ARP aging
timer.
Related command: arp timer aging.
Example
The displayed information shows that the ARP aging timer is set to 20 minutes.
Syntax
gratuitous-arp-learning enable
undo gratuitous-arp-learning enable
View
System view
Parameter
None
Description
1-7
Command Manual – ARP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ARP Configuration Commands
If no ARP mapping entry in the cache matches the packet, an ARP mapping entry
corresponding to the packet is created.
Example
# Enable the gratuitous ARP packet learning function on the switch named QuidwayA.
<QuidwayA> system-view
System View: return to User View with Ctrl+Z.
[QuidwayA] gratuitous-arp-learning enable
Syntax
View
User view
Parameter
Description
Use the reset arp command to clear specific ARP mapping entries.
Related command: arp static, display arp.
Example
1-8
Command Manual – ARP Chapter 2 Resilient ARP Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Use the display resilient-arp command to display the Resilient ARP state information
of each unit and the VLAN interface that can transmit Resilient ARP packets.
If the unit-id is not specified, this command is to display Resilient ARP state information
of all units. If the unit-id is specified, this command is to display the Resilient ARP state
information of the specified unit.
Example
The above information displayed means that the current Resilient ARP state of unit 1 is
L3Master. Under this status, switch sends Resilient ARP packets periodically to notify
other fabrics that the local fabric is in the Layer 3 state. And VLAN interfaces through
which the Resilient ARP packets are sent are VLAN 1 interface and VLAN 2 interface.
Syntax
resilient-arp enable
2-1
Command Manual – ARP Chapter 2 Resilient ARP Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
System view
Parameter
None
Description
Use the resilient-arp enable command to enable the Resilient ARP function.
Use the undo resilient-arp enable command to disable the Resilient ARP function.
By default, the Resilient ARP function is enabled.
Related command: display resilient-arp.
Example
Syntax
View
System view
Parameter
Description
2-2
Command Manual – ARP Chapter 2 Resilient ARP Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Configure the Resilient ARP packets to be sent from the VLAN 2 interface.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] resilient-arp interface Vlan-interface 2
2-3
New Feature Manual - DHCP
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
New Feature Manual - DHCP
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
The contents of this chapter are only applicable to the S3900-EI series among S3900
Series Switches.
Syntax
View
Parameter
Description
Use the bims-server command to configure the connection between a DHCP global
address pool and a BIMS server.
Use the undo bims-server command to remove the configuration of the connection
between a DHCP global address pool and a BIMS server.
By default, no connection is configured.
Related command: dhcp server bims-server.
Note:
Branch intelligent management system (BIMS) is a network management software
provided by Huawei Technologies Co., Ltd.
1-1
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Set the IP address of the remote BIMS server in the DHCP global address pool to
192.168.0.1, the port number to 651, and the shared key to aaa.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] dhcp server ip-pool test
[Quidway-dhcp-pool-test] bims-server ip 192.168.0.1 port 651 sharekey aaa
Syntax
dhcp enable
undo dhcp enable
View
System view
Parameter
None
Description
Note:
To prevent malicious attacks to unused sockets and enhance security, S3900 series
Ethernet switches provide the following functions:
z When DHCP is enabled, sockets UDP 67 and UDP 68 used by DHCP are enabled.
z When DHCP is disabled, sockets UDP 67 and UDP 68 are disabled at the same
time.
The preceding functions are implemented as follows:
1-2
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
z After you enable DHCP by using the dhcp enable command, if the DHCP server
and DHCP relay are not configured, sockets UDP 67 and UDP 68 will not be
enabled. If the DHCP server and DHCP relay are configured, sockets UDP 67 and
UDP 68 will be enabled.
z After you disable DHCP by using the undo dhcp enable command, even if the
DHCP server and DHCP relay are configured, sockets UDP 67 and UDP 68 will be
disabled.
Example
# Enable DHCP.
[Quidway] dhcp enable
Syntax
View
Parameter
1-3
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the dhcp select global command to configure the specified interface(s) or all
interfaces to operate in global DHCP address pool mode. Upon receiving a DHCP
packet from a DHCP client through an interface operating in global DHCP address
pool mode, the DHCP server chooses an IP address from a global DHCP address pool
of the local DHCP server and assigns the address to the DHCP client.
Use the undo dhcp select command to restore the default DHCP packet processing
mode.
By default, an interface operates in local DHCP server global address pool mode.
Example
# Configure all interfaces to operate in global DHCP address pool mode, so that when
a DHCP packet is received from a DHCP client through any interface, the DHCP
server assigns an IP address in local global DHCP address pools to the DHCP client.
[Quidway] dhcp select global all
Syntax
View
Parameter
1-4
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the dhcp select interface command to configure the specified interface(s) to
operate in DHCP interface address pool mode. Upon receiving a DHCP packet from a
DHCP client through an interface operating in interface address pool mode, the DHCP
server chooses an IP address from the interface address pool of the local DHCP
server and assigns the address to the DHCP client.
Use the undo dhcp select command to restore the default DHCP packet processing
mode.
By default, an interface operates in local DHCP server global address pool mode.
Note:
To prevent malicious attacks to unused sockets and enhance switch security, S3900
series Ethernet switches provide the following functions:
z When DHCP is enabled, sockets UDP 67 and UDP 68 used by DHCP are enabled.
z When DHCP is disabled, sockets UDP 67 and UDP 68 are disabled at the same
time.
The preceding functions are implemented as follows:
z After you configure a DHCP interface address pool by using the dhcp select
interface command, sockets UDP 67 and UDP 68 will be enabled.
z After you delete the DHCP interface address pool by using the undo dhcp select
interface command and disable all the DHCP functions, sockets UDP 67 and UDP
68 will be disabled.
Example
# Configure all interfaces to operate in interface DHCP address pool mode, so that
when a DHCP packet is received from a DHCP client through any interface, the DHCP
server assigns an IP address in the local interface DHCP address pool to the DHCP
client.
[Quidway] dhcp select interface all
1-5
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
System view
Parameter
Description
Use the dhcp server bims-server command to configure the connection between a
DHCP interface address pool and a remote BIMS server.
Use the undo dhcp server bims-server command to remove the configuration of the
connection between a DHCP interface global address pool and a BIMS server.
Related command: bims-server.
Note:
Branch intelligent management system (BIMS) is a network management software
provided by Huawei Technologies Co., Ltd.
Example
# Set the IP address of the remote BIMS server of DHCP interface address pool 2 to
192.168.0.2, the port number to 111, and the shared key to aaa.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway]dhcp server bims-server ip 192.168.0.2 port 111 sharekey aaa interface
Vlan-interface 1
1-6
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
System view
Parameter
None
Description
Use the dhcp server detect command to enable the private DHCP server detecting
function.
Use the undo dhcp server detect command to disable the private DHCP server
detecting function.
By default, the private DHCP server detecting function is disabled.
With the private DHCP server detecting function enabled, a DHCP server tracks the
information (such as the IP addresses and interfaces) of DHCP servers to enable the
administrator to detect private DHCP servers in time and take proper measures.
Example
Syntax
1-7
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Parameter
Description
Use the dhcp server dns-list command to configure DNS server IP address(es) for
the DHCP address pool(s) of specified interface(s).
Use the undo dhcp server dns-list command to remove the DNS server IP
address(es) configured for the DHCP address pool(s) of the specified interface(s).
By default, no DNS server IP address is configured for a DHCP interface address pool.
If you execute the dhcp server dns-list command repeatedly, the new configuration
overwrites the previous one.
Related command: dns-list.
Example
# Configure the DNS server IP address 1.1.1.254 for the DHCP address pool of the
VLAN interface 1.
[Quidway-Vlan-interface1] dhcp server dns-list 1.1.1.254
1-8
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Parameter
domain-name: Domain name of the DHCP clients whose IP addresses are from the
specified interface address pool(s). This argument is a string of 3 to 50 characters.
interface interface-type interface-number [ to interface-type interface-number ]:
Specifies the interface(s), through which you can specify the corresponding interface
address pool(s).
all: Specifies all interface address pools.
Description
Use the dhcp server domain-name command to configure a domain name for the
DHCP clients whose IP addresses are from the specified interface address pool(s).
Use the undo dhcp server domain-name command to remove the configured
domain name.
By default, no domain name is configured for the DHCP clients.
Related command: domain-name.
Example
1-9
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
# Configure the domain name aabbcc.com for the DHCP clients whose IP addresses
are from the DHCP address pool of the current VLAN interface.
[Quidway-Vlan-interface1] dhcp server domain-name aabbcc.com
Syntax
View
Parameter
day day: Specifies the number of days. The day argument ranges from 0 to 365.
hour hour: Specifies the number of hours. The hour argument ranges from 0 to 23.
minute minute: Specifies the number of minutes. The minute argument ranges from 0
to 59.
unlimited: Specifies that the lease time is unlimited. (But actually, the system limits the
maximum lease time to about 25 years.)
interface interface-type interface-number [ to interface-type interface-number ]:
Specifies the interface(s), through which you can specify the corresponding interface
address pool(s).
all: Specifies all interface address pools.
Description
Use the dhcp server expired command to configure the lease time of the IP
addresses in the specified interface address pool(s).
Use the undo dhcp server expired command to restore the default lease time.
The default lease time is one day.
Note that an IP address is considered to be expired if its lease time is after the year
2106.
1-10
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Set the lease time of the IP addresses in all interface address pools to be 1 day, 2
hours and 3 minutes.
[Quidway] dhcp server expired day 1 hour 2 minute 3 all
Syntax
View
System view
Parameter
low-ip-address: IP address that is not available for being assigned to DHCP clients
automatically (An IP address of this kind is known as a forbidden IP address). This
argument also marks the lower end of the range of the forbidden IP addresses.
high-ip-address: IP address that is not available for being assigned to DHCP clients.
This argument also marks the higher end of the range of the forbidden IP addresses.
Note that this argument cannot be less than the low-ip-address argument. If you do not
provide this argument, only the IP address specified by the low-ip-address argument is
forbidden.
Description
Use the dhcp server forbidden-ip command to forbid the specified IP addresses in a
DHCP address pool to be automatically assigned.
Use the undo dhcp server forbidden-ip command to cancel the forbiddance.
By default, all IP addresses in an address pool are allowed to be automatically
assigned.
Related command: dhcp server ip-pool, network, static-bind ip-address and dhcp
server static-bind.
1-11
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
z When you execute the undo dhcp server forbidden-ip command, make sure that
the specified address range does not contain any statically bound IP address.
z You can configure multiple IP address segments that are not to be automatically
configured by executing the dhcp server forbidden-ip command several times.
z If an IP address that is not to be automatically assigned has been configured as a
statically-bound IP address, the DHCP server still assigns this IP address to the
client whose MAC address has been bound.
Example
Syntax
View
System view
Parameter
pool-name: Name of a DHCP address pool, which uniquely identifies the address pool.
This argument is a string of 1 to 35 characters.
Description
Use the dhcp server ip-pool command to create a global DHCP address pool and
enter DHCP address pool view. If the address pool identified by the pool-name
argument already exists, this command leads you to DHCP address pool view.
Use the undo dhcp server ip-pool command to remove a specified DHCP address
pool.
By default, no global DHCP address pool is created.
Related command: dhcp enable.
1-12
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
To prevent malicious attacks to unused sockets and enhance security, S3900 series
Ethernet switches provide the following functions:
z When DHCP is enabled, sockets UDP 67 and UDP 68 used by DHCP are enabled.
z When DHCP is disabled, sockets UDP 67 and UDP 68 are shut down at the same
time.
The preceding functions are implemented as follows:
z After you create a DHCP address pool by using the dhcp server ip-pool command,
sockets UDP 67 and UDP 68 will be enabled.
z After you delete the DHCP address pool by using the undo dhcp server ip-pool
command and disable all the DHCP functions, sockets UDP 67 and UDP 68 will be
disabled.
Example
Syntax
View
1-13
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
Description
Use the dhcp server nbns-list command to configure NetBIOS server IP address(es)
for the specified DHCP interface address pool(s).
Use the undo dhcp server nbns-list command to remove the NetBIOS server IP
address(es) configured for the specified DHCP interface address pool(s).
By default, no NetBIOS server IP address is configured for a DHCP interface address
pool.
If you execute the dhcp server nbns-list command repeatedly, the new configuration
overwrites the previous one.
Related command: nbns-list and dhcp server netbios-type.
Example
# Configure the NetBIOS server IP address 10.12.1.99 for all the DHCP interface
address pools.
[Quidway] dhcp server nbns-list 10.12.1.99 all
Syntax
1-14
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Parameter
b-node: Specifies the broadcast type. Nodes of this type acquire host name-to-IP
address mapping by broadcasting.
p-node: Specifies the peer-to-peer type. Nodes of this type acquire host name-to-IP
address mapping by communicating with the NetBIOS server.
m-node: Specifies the m-typed mixed type. Nodes of this type are p-nodes with some
broadcasting features. (The character m here stands for mixed.)
h-node: Specifies the hybrid type. Nodes of this type are b-nodes with peer-to-peer
communicating features.
interface interface-type interface-number [ to interface-type interface-number ]:
Specifies the interface(s), through which you can specify the corresponding interface
address pools.
all: Specifies all interface address pools.
Description
Use the dhcp server netbios-type command to configure the NetBIOS node type of
the DHCP clients whose IP addresses are from the specified interface address pool(s).
Use the undo dhcp server netbios-type command to restore the default NetBIOS
node type.
By default, no NetBIOS node type is specified and the default NetBIOS node type is
h-node.
Related command: netbios-type and dhcp server nbns-list.
Example
# Specify p-node as the NetBIOS node type of the DHCP clients whose IP addresses
are from the DHCP address pool of VLAN interface 1.
[Quidway] interface vlan-interface 1
[Quidway-Vlan-interface1] dhcp server netbios-type p-node
1-15
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Parameter
code: Customized option number ranging from 2 to 254. Note that this argument
cannot be 3, 6, 15, 44, 46, 50 through 55, 57 through 61, 82, or 217. Use the dhcp
server voice-config command and the dhcp server voice-config interface
command to configure option 184. You cannot configure option 184 by executing the
dhcp server option command.
ascii ascii-string: Specifies a string that is of 1 to 63 characters. Note that each
character of the string must be an ASCII character.
hex hex-string&<1-10>: Specifies strings, each of which comprises 1 to 8 hexadecimal
digits. &<1-10> means you can provide up to 10 such strings. When inputting more
than one string, separate two neighboring strings with a space. Note that the total
number of the hexadecimal digits (spaces not included) cannot exceed 64.
ip-address ip-address&<1-8>: Specifies IP addresses. &<1-8> means you can
provide up to eight IP addresses. When inputting more than one IP address, separate
two neighboring IP addresses with a space.
interface interface-type interface-number [ to interface-type interface-number ]:
Specifies the interface(s), through which you can specify the corresponding interface
address pools.
all: Specifies all interface address pools.
1-16
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the dhcp server option command to customize DHCP options for the specified
DHCP interface address pool(s).
Use the undo dhcp server option command to remove the customized DHCP
options.
If you execute the dhcp server option command repeatedly, the new configuration
overwrites the previous one.
Related command: option.
Example
# Configure option 100 to be 0x11 and 0x22 for all DHCP interface address pools.
[Quidway] dhcp server option 100 hex 11 22 all
Syntax
View
System view
Parameter
packets number: Specifies the number of the packets to be sent in a ping test. The
number argument ranges from 0 to 10 and defaults to 2. Value 0 means no packet will
be sent.
timeout milliseconds: Specifies the timeout time (in milliseconds) of each packet. The
milliseconds argument ranges from 0 to 10,000 and defaults to 500.
Description
Use the dhcp server ping command to set the maximum number of the ICMP packets
a DHCP server sends in a ping test and the maximum response timeout time of each
ICMP packet.
Use the undo dhcp server ping command to restore the default settings.
1-17
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Set the maximum number of the packets the DHCP server sends in a ping test to 10,
and the timeout time of each packet to 500 milliseconds.
[Quidway] dhcp server ping packets 10
Syntax
View
System view
Parameter
None
Description
Use the dhcp server relay information enable command to enable the DHCP server
to support option 82.
Use the undo dhcp server relay information enable command to disable the DHCP
server from supporting option 82.
By default, the DHCP server supports option 82.
Example
Syntax
1-18
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Parameter
ip-address: IP address to be statically bound. Note that the specified IP address must
belong to the same network segment as that of the VLAN interface.
client-identifier: Client ID to be statically bound, in the format of H-H-H. It contains 3 to
160 hexadecimal numbers.
mac-address: MAC address to which the IP address is statically bound.
Description
Use the dhcp server static-bind command to statically bind an IP address of the
current address pool to a MAC address.
Use the undo dhcp server static-bind command to cancel an IP-MAC address
binding.
By default, no IP address in an address pool is statically bound.
It should be noted that:
z An IP address can be statically bound to only one MAC address or one client ID.
A MAC address or client ID can be bound with only one IP address statically.
z The IP address to be statically bound cannot be an interface IP address of the
device; otherwise the static binding does not take effect. The bound MAC address
can also obtain another IP address.
Example
# Statically bind the client ID aaaa-bbbb to the IP address 10.1.1.1 (Assume that the
interface address pool of VLAN interface 1 already exists and the IP address belongs
to the address pool).
[Quidway] interface vlan-interface 1
[Quidway-Vlan-interface1] dhcp server static-bind ip-address 10.1.1.1
client-identifier aaaa-bbbb
1-19
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Parameter
Description
Use the dhcp server voice-config command to enable the DHCP server to assign IP
addresses with option 184 and its sub-options from the current interface address pool.
Use the undo dhcp server voice-config command to disable the DHCP server from
assigning IP addresses with option 184 and its sub-options from the current interface
address pool.
The DHCP server answers option 184 and the corresponding sub-options only after
the DHCP client requests for option 184.
Before configuring other sub-options, you must configure the sub-option ncp-ip;
otherwise other sub-options do not take effect.
By default, the DHCP server does not support option 184 and the corresponding
sub-options.
Related command: voice-config.
Example
1-20
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
# Enter VLAN-interface 1 view.
[Quidway] interface Vlan-interface 1
# Enable the DHCP server to support all the sub-options of option 184 in
VLAN-interface 1. The NCP IP address is 1.1.1.1 and the IP address of the alternate
server is 2.2.2.2. The voice VLAN is enabled, with the ID being 3. The fail-over IP
address is 3.3.3.3 and the dial number string is 99*.
[Quidway-Vlan-interface1] dhcp select interface
[Quidway-Vlan-interface1] dhcp server voice-config ncp-ip 1.1.1.1
[Quidway-Vlan-interface1] dhcp server voice-config as-ip 2.2.2.2
[Quidway-Vlan-interface1] dhcp server voice-config voice-vlan 3 enable
[Quidway-Vlan-interface1] dhcp server voice-config fail-over 3.3.3.3 99*
Syntax
View
System view
Parameter
1-21
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the dhcp server voice-config interface command to configure option 184 and
its sub-options, which will be sent to DHCP clients by a DHCP server as well when the
DHCP server assigns IP addresses of specified address pools to DHCP clients.
Use the undo dhcp server voice-config interface command to disable a DHCP
server from sending option 184 and the specified sub-option to DHCP clients when the
DHCP server assigns IP addresses to DHCP clients.
A DHCP server sends Option 184 and the corresponding sub-options to a DHCP client
only when the latter requests for option 184.
The NCP-IP sub-option is necessary for all other sub-options. You need to configure
the NCP-IP sub-option first to enable other sub-options.
By default, option 184 and its sub-options are not supported by a DHCP server.
Related command: voice-config.
Example
# Configure the DHCP server to support option 184 and all its sub-options when the
DHCP server assigns IP addresses to DHCP clients through Vlan-interface 1, with the
sub-options being set as follows:
z NCP-IP: 1.1.1.1
z AS-IP: 2.2.2.2
z Voice VLAN: Enabled
z Voice VLAN ID: 3
z IP address of Fail-over: 3.3.3.3
z Dialer-string: 99*
[Quidway] dhcp select interface Vlan-interface1
[Quidway] dhcp server voice-config ncp-ip 1.1.1.1 interface Vlan-interface1
[Quidway] dhcp server voice-config as-ip 2.2.2.2 interface Vlan-interface1
[Quidway] dhcp server voice-config voice-vlan 3 enable interface
Vlan-interface1
[Quidway] dhcp server voice-config fail-over 3.3.3.3 99* interface
Vlan-interface1
1-22
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Use the display dhcp server conflict command to display the statistics of IP address
conflicts on the DHCP server.
Related command: reset dhcp server conflict.
Example
Table 1-1 Description on the fields of the display dhcp server conflict command
Field Description
Syntax
View
Any view
1-23
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
Description
Use the display dhcp server expired command to display the lease expiration
information about one IP address, or the lease expiration information about all IP
addresses in one or all DHCP address pools. When all the IP addresses in an address
pool are assigned, the DHCP server assigns the IP addresses that are expired to
DHCP clients.
Example
# Display the lease expiration information about the IP addresses in all DHCP address
pools.
<Quidway> display dhcp server expired all
Global pool:
IP address Client-identifier/ Lease expiration Type
Hardware address
Interface pool:
IP address Client-identifier/ Lease expiration Type
Hardware address
--- total 0 entry ---
Table 1-2 Description on the fields of the display dhcp server expired command
Field Description
1-24
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Syntax
View
Any view
Parameter
None
Description
Use the display dhcp server free-ip command to display the free (that is, unassigned)
IP addresses.
Example
Syntax
View
Any view
Parameter
1-25
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
pool [ pool-name ]: Specifies a global address pool. The pool-name argument, a string
of 1 to 35 characters, is the name of an address pool. If you do not provide this
argument, this command applies to all global address pools.
interface [ interface-type interface-number ]: Specifies a VLAN interface. If you do not
specify a VLAN interface, this command applies to all VLAN interfaces.
all: Specifies all address pools.
Description
Use the display dhcp server ip-in-use command to display the address binding
information of one IP address, the specified DHCP address pool(s) or all DHCP
address pools.
Related command: reset dhcp server ip-in-use.
Example
Interface pool:
IP address Client-identifier/ Lease expiration Type
Hardware address
5.5.5.1 0050-ba28-930a Jun 5 2003 10:56: 7 AM Auto:COMMITTED
Table 1-3 Description on the fields of the display dhcp server ip-in-use command
Field Description
1-26
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Syntax
View
Any view
Parameter
None
Description
Use the display dhcp server statistics command to display the statistics on a DHCP
server.
Related command: reset dhcp server statistics.
Example
1-27
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Dhcp Inform: 0
Boot Reply: 4
Dhcp Offer: 1
Dhcp Ack: 3
Dhcp Nak: 0
Bad Messages: 0
Table 1-4 Description on the fields of the display dhcp server statistics command
Field Description
Boot Request: 6
Dhcp Discover: 1
Dhcp Request: 4 Statistics about the DHCP packets received from
Dhcp Decline: 0 DHCP clients
Dhcp Release: 1
Dhcp Inform: 0
Boot Reply: 4
Dhcp Offer: 1 Statistics about the DHCP packets sent to DHCP
Dhcp Ack: 3 clients
Dhcp Nak: 0
Syntax
1-28
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Any view
Parameter
pool [ pool-name ]: Specifies a global address pool. The pool-name argument, a string
of 1 to 35 characters, is the name of an address pool. If you do not provide this
argument, this command applies to all global address pools.
interface [ interface-type interface-number ]: Specifies a VLAN interface. If you do not
specify a VLAN interface, this command applies to all VLAN interfaces.
all: Specifies all address pools.
Description
Use the display dhcp server tree command to display information about address
pool tree.
Example
Pool name: 6
static-bind ip-address 10.10.1.2 mask 255.0.0.0
static-bind mac-address 00e0-00fc-0001
Parent node:5
option 1 ip-address 255.255.0.0
expired 1 0 0
Pool name: 7
network 10.10.1.64 mask 255.255.255.192
PrevSibling node:5
option 1 ip-address 255.0.0.0
gateway-list 2.2.2.2
dns-list 1.1.1.1
domain-name 444444
nbns-list 3.3.3.3
1-29
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
expired 1 0 0
Table 1-5 Description on the fields of the display dhcp server tree command
Field Description
static-bind
ip-address
10.10.1.2 mask
255.0.0.0 Statically bound IP and MAC addresses
static-bind
mac-address
00e0-00fc-0001
dns-list List of the DNS servers configured for the DHCP clients
1-30
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
nbns-list List of the NetBIOS servers configured for the DHCP clients
1.1.26 dns-list
Syntax
dns-list ip-address&<1-8>
undo dns-list { ip-address | all }
View
Parameter
ip-address&<1-8>: IP address of a DNS server. &<1-8> string means you can provide
up to eight DNS server IP addresses. When inputting more than one IP address,
separate two neighboring IP addresses with a space.
all: Specifies all configured DNS server IP addresses.
Description
Use the dns-list command to configure one or multiple DNS server IP addresses for a
global DHCP address pool.
Use the undo dns-list command to remove one or all DNS server IP addresses
configured for the DHCP address pool.
By default, no DNS server IP address is configured.
If you execute the dns-list command repeatedly, the new configuration overwrites the
previous one.
Related command: dhcp server dns-list and dhcp server ip-pool.
Example
# Configure the DNS server IP address 1.1.1.254 for global DHCP address pool 0.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] dns-list 1.1.1.254
1-31
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1.1.27 domain-name
Syntax
domain-name domain-name
undo domain-name
View
Parameter
domain-name: Domain name for the DHCP clients of a global DHCP address pool, a
string of 3 to 50 characters.
Description
Use the domain-name command to configure a domain name for the DHCP clients of
a global DHCP address pool.
Use the undo domain-name command to remove the domain name.
By default, no domain name is configured for the DHCP clients of a global DHCP
address pool.
Related command: dhcp server ip-pool and dhcp server domain-name.
Example
# Configure the domain name mydomain.com for the DHCP clients of the global
DHCP address pool 0.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] domain-name mydomain.com
1.1.28 expired
Syntax
View
1-32
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
day day: Specifies the number of days. The day argument ranges from 0 to 365.
hour hour: Specifies the number of hours. The hour argument ranges from 0 to 23.
minute minute: Specifies the number of minutes. The minute argument ranges from 0
to 59.
unlimited: Specifies that the lease time is unlimited. (But actually, the system limits the
maximum lease time to about 25 years.)
Description
Use the expired command to configure the lease time of the IP addresses in a global
DHCP address pool.
Use the undo expired command to restore the default lease time.
The default lease time is one day.
Note that an IP address is considered to be expired if its lease time is after the year
2106.
Related command: dhcp server ip-pool and dhcp server expired.
Example
# Set the lease time of the IP addresses in the global DHCP address pool 0 to 1 day, 2
hours and 3 minutes.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] expired day 1 hour 2 minute 3
1.1.29 gateway-list
Syntax
gateway-list ip-address&<1-8>
undo gateway-list { ip-address | all }
View
Parameter
1-33
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the gateway-list command to configure one or multiple gateway IP addresses for
the DHCP clients of a DHCP address pool.
Use the undo gateway-list command to remove one or all the configured gateway IP
addresses configured for the DHCP address pool.
By default, no gateway IP address is configured.
If you execute the gateway-list command repeatedly, the new configuration
overwrites the previous one.
Example
# Configure the gateway IP address 10.110.1.99 for the global DHCP address pool 0.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] gateway-list 10.110.1.99
1.1.30 nbns-list
Syntax
nbns-list ip-address&<1-8>
undo nbns-list { ip-address | all }
View
Parameter
Description
Use the nbns-list command to configure one or multiple NetBIOS server IP addresses
for the DHCP clients of a global DHCP address pool.
Use the undo nbns-list command to remove one or all NetBIOS server IP addresses
configured for the DHCP clients.
By default, no NetBIOS server IP address is configured.
Huawei Technologies Proprietary
1-34
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
If you execute the nbns-list command repeatedly, the new configuration overwrites
the previous one.
Related command: dhcp server ip-pool, dhcp server nbns-list and netbios-type.
Example
# Configure the NetBIOS server IP address 10.12.1.99 for the global DHCP address
pool 0.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] nbns-list 10.12.1.99
1.1.31 netbios-type
Syntax
View
Parameter
b-node: Specifies the broadcast type. Nodes of this type acquire host name-to-IP
address mapping by broadcasting.
p-node: Specifies the peer-to-peer type. Nodes of this type acquire host name-to-IP
address mapping by communicating with the NetBIOS server.
m-node: Specifies the mixed type. Nodes of this type are p-nodes with some
broadcasting features.
h-node: Specifies the hybrid type. Nodes of this type are b-nodes with peer-to-peer
communicating features.
Description
Use the netbios-type command to configure the DHCP clients of a global address
pool to be of specified NetBIOS node type.
Use the undo netbios-type command to restore the default NetBIOS node type.
By default, no NetBIOS node type is specified. In this case, the client uses h-node.
Related command: dhcp server ip-pool, dhcp server netbios-type and nbns-list.
1-35
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Configure the DHCP clients of the global DHCP address pool 0 to be of b-node type.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] netbios-type b-node
1.1.32 network
Syntax
View
Parameter
Description
Example
1-36
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
# Configure the dynamically assigned IP address range 192.168.8.0/24 for the global
DHCP address pool 0.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] network 192.168.8.0 mask 255.255.255.0
1.1.33 option
Syntax
View
Parameter
code: Customized option number ranging from 2 to 254. Note that this argument
cannot be 3, 6, 15, 44, 46, 50 through 55, 57 through 61, 82, or 217. Use the dhcp
server voice-config command and the dhcp server voice-config interface
command to configure option 184. You cannot configure option 184 by executing the
option command.
ascii ascii-string: Specifies a string that is of 1 to 63 characters. Note that each
character of the string needs to be an ASCII character.
hex hex-string&<1-10>: Specifies strings, each of which comprises of 1 to 8
hexadecimal digits. The &<1-10> means that you can provide up to 10 such strings.
When entering more than one strings, separate two neighboring strings with a space.
Note that the total number of hexadecimal digits (spaces not included) cannot exceed
64.
ip-address ip-address&<1-8>: Specifies IP addresses. The &<1-8> string means that
you can provide up to eight IP addresses. When entering more than one IP addresses,
separate two neighboring IP addresses with a space.
Description
Use the option command to customize DHCP options for a global DHCP address
pool.
Use the undo option command to remove the customized DHCP options.
If you execute the option command repeatedly, the new configuration overwrites the
previous one.
Related command: dhcp server ip-pool and dhcp server option.
1-37
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Configure option 100 to be 0x11 and 0x22 for the global DHCP address pools.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] option 100 hex 11 22
Syntax
View
User view
Parameter
Description
Use the reset dhcp server conflict command to clear address conflict statistics.
Related command: display dhcp server conflict.
Example
Syntax
View
User view
Parameter
all: Clears the dynamic address binding information about all IP addresses.
1-38
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the reset dhcp server ip-in-use command to clear the specified or all dynamic
address binding information.
Related command: display dhcp server ip-in-use.
Example
# Clear the dynamic address binding information about the IP address 10.110.1.1.
<Quidway> reset dhcp server ip-in-use ip 10.110.1.1
Syntax
View
User view
Parameter
None
Description
Use the reset dhcp server statistics command to clear the statistics on a DHCP
server, such as the number of DHCP unrecognized packets/request packets/response
packets.
Related command: display dhcp server statistics.
Example
1-39
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Parameter
Description
# Bind the host aaaa-bbbb with the IP address 10.1.1.1. The mask is 255.255.255.0.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] static-bind ip-address 10.1.1.1 mask 255.255.255.0
[Quidway-dhcp-pool-0] static-bind client-identifier aaaa-bbbb
Syntax
1-40
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Parameter
Description
Example
# Bind the IP address 10.1.1.1 (with the subnet mask 255.255.255.0) to the MAC
address 0000-e03f-0305.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] static-bind ip-address 10.1.1.1 mask 255.255.255.0
[Quidway-dhcp-pool-0] static-bind mac-address 0000-e03f-0305
Syntax
1-41
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Parameter
mac-address: MAC address of the host to which the IP address is to be bound. You
need to provide this argument in the form of H-H-H.
Description
Example
# Bind the IP address 10.1.1.1 (with the subnet mask 255.255.255.0) to the MAC
address 0000-e03f-0305.
[Quidway] dhcp server ip-pool 0
[Quidway-dhcp-pool-0] static-bind ip-address 10.1.1.1 mask 255.255.255.0
[Quidway-dhcp-pool-0] static-bind mac-address 0000-e03f-0305
1.1.40 voice-config
Syntax
1-42
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
Parameter
Description
Use the voice-config command to configure option 184 and its sub-options in the
global address pool.
Use the undo voice-config command to remove option 184 and its sub-options from
the global address pool.
The DHCP server answers option 184 and the corresponding sub-options only after
the DHCP client requests option 184.
By default, the DHCP server does not support option 184 and the corresponding
sub-options.
Related command: dhcp server voice-config.
Example
# Enable the DHCP server to support option 184 in global address pool 123. The NCP
IP address is 1.1.1.1 and the IP address of the alternate server is 2.2.2.2. The voice
VLAN is enabled, with the ID being 3. The fail-over IP address is 3.3.3.3 and the dial
number string is 99*.
[Quidway] dhcp select global all
[Quidway] dhcp server ip-pool 123
[Quidway-dhcp-pool-123] voice-config ncp-ip 1.1.1.1
[Quidway-dhcp-pool-123] voice-config as-ip 2.2.2.2
1-43
New Feature Manual - DHCP Chapter 1 DHCP Server Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1-44
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Syntax
address-check enable
address-check disable
View
Parameter
None
Description
Use the address-check enable command to enable DHCP relay security on a VLAN
interface, so as to start the validity check on user addresses under the VLAN interface.
Use the address-check disable command to disable DHCP relay security, so as to
stop the validity check on user addresses under the VLAN interface.
By default, DHCP relay security is disabled on a VLAN interface.
Note that among S3900 series switches, only S3900-EI series switches support the
two commands.
Example
2-1
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Syntax
View
System view
Parameter
None
Description
Use the dhcp relay hand enable command to enable the DHCP relay handshake
function.
Use the dhcp relay hand disable command to disable the DHCP relay handshake
function.
By default, the DHCP relay handshake function is enabled.
Example
Syntax
View
System view
Parameter
None
Description
Use the dhcp relay information enable command to enable option 82 supporting on
a DHCP relay, through which you can enable the DHCP relay to insert option 82 into
DHCP request packets sent to a DHCP server.
2-2
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Use the undo dhcp relay information enable command to disable option 82
supporting on a DHCP relay, through which you can disable the DHCP relay from
inserting option 82 into DHCP request packets sent to a DHCP server.
By default, this function is disabled.
Note:
By default, after option 82 supporting is enabled on a DHCP relay, the device
processes a request packet containing option 82 with the replace policy. If other
processing policies have been configured before, after option 82 supporting is enabled
on the DHCP relay, the device does not change the configured processing policies.
Example
Syntax
View
System view
Parameter
drop: Specifies to discard the DHCP request packets that carry option 82.
keep: Specifies to remain the DHCP request packets that carry option 82 unchanged.
replace: Specifies to replace the option 82 carried by a DHCP request packet with that
of the DHCP relay.
2-3
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Description
Use the dhcp relay information strategy command to instruct a DHCP relay to
perform specified operations to DHCP request packets that carry option 82.
Use the undo dhcp relay information strategy command to instruct a DHCP relay to
perform the default operations to DHCP request packets that carry option 82.
By default, the DHCP relay replaces the option 82 carried by a DHCP request packet
with its own option 82.
Related command: dhcp relay information enable
Example
# Instruct the DHCP relay to discard the DHCP request packets that carry option 82.
[Quidway] dhcp relay information strategy drop
# Instruct the DHCP relay to perform the default operations to DHCP request packets
that carry option 82.
[Quidway] undo dhcp relay information strategy
Syntax
View
System view
Parameter
Description
Use the dhcp-security static command to configure a static user address entry.
2-4
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Use the undo dhcp-security command to remove one or all user address entries, or
all user address entries of a specified type.
Note that among S3900 series switches, only S3900-EI series switches support the
two commands.
Related Command: display dhcp-security.
Example
# Configure a user address entry for the DHCP server group, with the user IP address
being 1.1.1.1 and the user MAC address being 0005-5D02-F2B3.
[Quidway] dhcp-security static 1.1.1.1 0005-5D02-F2B3
Syntax
View
System view
Parameter
interval: Interval (in seconds) to update DHCP security entries. This argument ranges
from 1 to 120 seconds.
auto: Specifies that the interval to update DHCP security entries is automatically
determined by the number of the DHCP security entries. A larger number corresponds
to a longer interval.
Description
Use the dhcp-security tracker command to set the interval to update DHCP security
entries.
Use the undo dhcp-security tracker command to cancel the configuration.
By default, the update interval is determined by the number of the DHCP security
entries.
Note that among S3900 series switches, only S3900-EI series switches support these
two commands.
2-5
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Example
2.1.7 dhcp-server
Syntax
dhcp-server groupNo
undo dhcp-server
View
Parameter
groupNo: DHCP server group number. This argument ranges from 0 to 19.
Description
Use the dhcp-server command to map the current VLAN interface to a DHCP server
group.
Use the undo dhcp-server command to cancel the mapping.
Related command: dhcp-server ip, display dhcp-server, and display dhcp-server
interface vlan-interface.
Note:
To prevent malicious attacks to unused sockets and enhance security, S3900 series
Ethernet switches provide the following functions:
z When DHCP is enabled, sockets UDP 67 and UDP 68 used by DHCP are enabled.
z When DHCP is disabled, sockets UDP 67 and UDP 68 are disabled at the same
time.
The preceding functions are implemented as follows:
z After you configure a DHCP server group by using the dhcp-server command,
sockets UDP 67 and UDP 68 will be enabled.
z After you delete the DHCP server group by using the undo dhcp-server command
and disable all the DHCP functions, sockets UDP 67 and UDP 68 will be disabled.
2-6
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Example
Syntax
dhcp-server detect
undo dhcp-server detect
View
System view
Parameter
None
Description
Use the dhcp-server detect command to enable the switch serving as a DHCP relay
to detect pseudo DHCP servers.
Use the undo dhcp-server detect command to disable the pseudo DHCP server
detection function.
By default, the pseudo DHCP server detection function is disabled
Related command: dhcp server and display dhcp-server.
Example
2-7
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
2.1.9 dhcp-server ip
Syntax
View
System view
Parameter
Description
Example
# Configure three DHCP server IP addresses 1.1.1.1, 2.2.2.2, and 3.3.3.3 for DHCP
server group 1, so that this group contains three DHCP servers (server 1, server 2 and
server 3).
[Quidway] dhcp-server 1 ip 1.1.1.1 2.2.2.2 3.3.3.3
Syntax
View
Any view
2-8
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Parameter
ip-address: IP address. This argument is used to display the user address entry with
the specified IP address.
dynamic: Displays the dynamic user address entries.
static: Displays the static user address entries.
tracker: Displays the interval to update the user address entries of a DHCP-security
table.
Description
Use the display dhcp-security command to display one or all user address entries, or
a specified type of user address entries in the valid user address table of a DHCP
server group.
Note that among S3900 series switches, only S3900-EI series switches support this
command.
Example
# Display all user address entries contained in the valid user address table of the
DHCP server group.
<Quidway> display dhcp-security
IP Address MAC Address IP Address Type
2.2.2.3 0005-5d02-f2b2 Static
3.3.3.3 0005-5d02-f2b3 Dynamic
--- 2 dhcp-security item(s) found ---
Field Description
MAC Address MAC address of the user of the DHCP server group
Syntax
View
Any view
2-9
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Parameter
Description
Example
Field Description
2-10
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Field Description
Messages from this server Number of the packets received from the DHCP
group server group
Messages to this server Number of the packets sent to the DHCP server
group group
Messages from clients to this Number of the packets received from the DHCP
server group clients
DHCP_DISCOVER
Number of the received DHCP-DISCOVER packets
messages
DHCP_REQUEST
Number of the received DHCP-REQUEST packets
messages
DHCP_RELEASE
Number of the received DHCP-RELEASE packets
messages
BOOTP_REQUEST
Number of the BOOTP request packets
messages
Syntax
View
Any view
2-11
New Feature Manual - DHCP Chapter 2 DHCP Relay Configuration C
Quidway S3900 Series Ethernet Switches-Release 1510 ommands
Parameter
Description
Use the display dhcp-server interface command to display information about the
DHCP server group to which a VLAN interface is mapped.
Related command: dhcp-server and display dhcp-server.
Example
# Display information about the DHCP server group to which VLAN 2 interface is
mapped.
<Quidway> display dhcp-server interface vlan-interface 2
Dhcp-group 0 is configured on this interface
The above display information indicates the VLAN 2 interface is mapped to DHCP
server group 0.
Syntax
View
User view
Parameter
Description
Use the reset dhcp-server command to clear the statistics information of the
specified DHCP server group.
Related command: dhcp server and display dhcp-server.
Example
2-12
New Feature Manual - DHCP Chapter 3 DHCP Snooping Configuratio
Quidway S3900 Series Ethernet Switches-Release 1510 n Commands
Syntax
dhcp-snooping
undo dhcp-snooping
View
System view
Parameter
None
Description
Example
Syntax
dhcp-snooping trust
undo dhcp-snooping trust
3-1
New Feature Manual - DHCP Chapter 3 DHCP Snooping Configuratio
Quidway S3900 Series Ethernet Switches-Release 1510 n Commands
View
Parameter
None
Description
Use the dhcp-snooping trust command to set an Ethernet port to a trusted port.
Use the undo dhcp-snooping trust command to restore an Ethernet port to an
untrusted port.
DHCP snooping security allow you to set a port to a trusted port or an untrusted port,
so that DHCP clients can obtain IP addresses from only valid DHCP servers.
z Trusted ports can be used to connect DHCP servers or ports of other switches.
Untrusted ports can be used to connect DHCP clients or networks.
z Trusted ports forward any received DHCP packets to ensure that DHCP clients
can obtain IP addresses from valid DHCP servers. Untrusted ports discard the
DHCP-ACK and DHCP-OFF responses received from DHCP servers.
z By default, all the ports of a switch are untrusted ports.
Related command: display dhcp-snooping trust.
Example
Syntax
View
Any view
Parameter
unit unit-id: Displays the DHCP-snooping information on other devices in fabric when
the switch is in fabric. unit-id indicates the number of the device whose
DHCP-snooping information needs to be viewed.
3-2
New Feature Manual - DHCP Chapter 3 DHCP Snooping Configuratio
Quidway S3900 Series Ethernet Switches-Release 1510 n Commands
Description
Use the display dhcp-snooping command to display the user IP-MAC address
mapping entries recorded by the DHCP snooping function.
Related command: dhcp-snooping.
Example
# Display the user IP-MAC address mapping entries recorded by the DHCP snooping
function.
<Quidway> display dhcp-snooping
DHCP-Snooping is enabled.
The client binding table for all untrusted ports.
Type : D--Dynamic , S--Static
Unit ID : 1
Type IP Address MAC Address Lease VLAN Interface
==== =============== =============== ========= ==== =================
--- 0 dhcp-snooping item(s) of unit 1 found ---
Syntax
View
Any view
Parameter
None
Description
Example
# Display the state of the DHCP snooping function and the trusted ports.
<Quidway> display dhcp-snooping trust
DHCP-Snooping is enabled.
DHCP-Snooping trust become effective
Interface Trusted
=================================
3-3
New Feature Manual - DHCP Chapter 3 DHCP Snooping Configuratio
Quidway S3900 Series Ethernet Switches-Release 1510 n Commands
Ethernet1/0/10 Trusted
The above display information indicates that the DHCP snooping function is enabled,
and the Ethernet1/0/10 port is a trusted port.
3-4
New Feature Manual - DHCP Chapter 4 DHCP Accounting Configurati
Quidway S3900 Series Ethernet Switches-Release 1510 on Commands
Syntax
View
Parameter
Description
Use the accounting domain command to enable the DHCP accounting function.
Use the undo accounting domain command to disable the DHCP accounting
function.
Example
# Enable the DHCP accounting function (assuming that domain 123 already exists).
[Quidway-dhcp-pool-test] accounting domain 123
4-1
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
Syntax
View
System view
Parameter
number acl-number: Specifies the number of an access control list (ACL) in the range
of:
2,000 to 2,999: identifies basic ACLs.
3,000 to 3,999: identifies advanced ACLs.
4,000 to 4,999: identifies layer 2 ACLs.
5,000 to 5,999: identifies user-defined ACLs.
match-order: Specifies the match order for the ACL rules. The match-order keyword
is not available for Layer 2 ACLs or user-defined ACLs. Match orders include:
z config: Specifies to match ACL rules in the order they are defined.
z auto: Specifies to match ACL rules according to the depth-first rule.
all: Specifies to delete all ACLs.
Description
Use the acl command to define an ACL and enter the corresponding ACL view.
Use the undo acl command to delete all entries of an ACL or to delete all ACLs.
By default, ACL rules are matched according to the configured order (config).
After entering the corresponding ACL view, you can use the rule command to add
entries to the ACL.
An ACL supports the following four types of match orders:
z Configured order: ACL rules are matched according to the configured order.
z Automatic ordering: ACL rules are matched according to the “depth-first” order
The “depth-first” order is described as follows:
1-1
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
Example
# Define rules for ACL 2000, and specify “depth-first” order as the rule match order.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 2000 match-order auto
[Quidway-acl-basic-2000]
1.1.2 description
Syntax
description text
undo description
View
Basic ACL view, advanced ACL view, Layer 2 ACL view, user-defined ACL view
Parameter
Description
1-2
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
Example
Syntax
View
Any view
Parameter
Description
Use the display acl command to view the detailed configuration information of an ACL,
including each rule and its number as well as the number and size in bytes of the data
packets that match the statement.
The number of times matched in the information displayed by this command is the
number of matched times processed by the software, namely the number of matched
times of the ACL to be processed by the CPU of the switch. To make statistics of
hardware matched times during packet forwarding, use the traffic-statistic command.
To view the statistics information of data forwarded by the hardware of the switch, use
the display qos-interface traffic-statistic command.
Example
1-3
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
rule 1 permit ip
Syntax
View
Any view
Parameter
Description
Use the display packet-filter command to view the application information of packet
filtering, including the ACL name, rule names, and application status.
Example
Syntax
View
Any view
Parameter
Description
Use the display time-range command to view the configuration and status of the
current time range. For an active time range, this command displays “active”; for an
inactive time range, this command displays “inactive”.
Related command: time-range.
1-4
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
Example
Field Description
Field Description
1-5
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
1.1.6 packet-filter
Syntax
View
Parameter
Apply one rule in an IP type ACL separately ip-group acl-number rule rule
Apply one rule in a Layer 2 ACL separately link-group acl-number rule rule
Apply one rule in an IP type ACL and one ip-group acl-number rule rule
rule in a Link type ACL simultaneously link-group acl-number rule rule
In Table 1-3:
z ip-group acl-number: Specifies a basic or an advanced ACL. The acl-number
argument ranges from 2000 to 3999.
z link-group acl-number: Specifies a Layer 2 ACL. The acl-number argument
ranges from 4000 to 4999.
z user-group acl-number: Specifies a user-defined ACL. The acl-number
argument ranges from 5000 to 5999.
1-6
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
z rule rule: Specifies a rule of an ACL. The rule argument ranges from 0 to 65534.
If you do not specify the rule number, all the rules of an ACL are applied.
Description
Use the packet-filter command to apply ACL rules on the port to filter packets.
Use the undo packet-filter command to remove the ACL rules applied on the port.
Example
Syntax
View
Parameter
1-7
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
rule-id: Rule ID, which must the ID of an existing ACL rule. If no other arguments are
specified, the system will completely delete this ACL rule. If any argument is given, the
system will delete only the specified information of the ACL rule.
fragment: Deletes the settings effective for non-initial fragment packets in the rule
corresponding to the rule ID.
source: Deletes the settings of the source address part in the rule corresponding to
the rule ID.
time-range: Deletes the time range settings in the rule corresponding to the rule ID.
Description
Example
# Define a rule to deny the packets whose source IP addresses are 1.1.1.1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule deny source 1.1.1.1 0
Syntax
1-8
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
View
Parameter
precedence Packet
Packet priority Value range: 0 to 7
precedence precedence
Packet
tos tos ToS priority Value range: 0 to 15
precedence
1-9
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
Packet
dscp dscp DSCP priority Value range: 0 to 63
precedence
Specifies that
the rule is
Fragment effective for
fragment -
information non-initial
fragment
packets
Specifies the
time-range Time range time range in
-
time-name information which the rule
is active
Note:
sour-wildcard/dest-wildcard is the complement of the wildcard mask of the
source/destination subnet mask. For example, you need to input 0.0.255.255 to
specify the subnet mask 255.255.0.0. The arguments can be set as 0 to represent the
host IP address.
To define DSCP priority, you can directly input a value ranging from 0 to 63, or input a
keyword listed in 错误!未找到引用源。.
ef 46 101110
af11 10 001010
af12 12 001100
af13 14 001110
af21 18 010010
af22 20 010100
af23 22 010110
af31 26 011010
af32 28 011100
af33 30 011110
1-10
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
af41 34 100010
af42 36 100100
af43 38 100110
cs1 8 001000
cs2 16 010000
cs3 24 011000
cs4 32 100000
cs5 40 101000
cs6 48 110000
cs7 56 111000
be (default) 0 000000
If the protocol type is TCP or UDP, you can also define the following information:
1-11
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
Specifies that
“TCP the rule will
connection match TCP
established TCP-specific argument
established” connection
flag packets with the
ack or rst flag
If the protocol type is ICMP, you can also define the following information:
If the protocol type is ICMP, you can also directly input the ICMP message name after
the icmp-type argument. Table 1-8 describes some common ICMP messages.
1-12
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
1-13
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
fragment: Deletes the settings effective for non-initial fragment packets in the rule
corresponding to the rule ID.
Description
Example
# Define a rule to permit packets from hosts in the network segment of 129.9.0.0 to
hosts in the network of 202.38.160.0 and with the port number of 80 to pass.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] acl number 3101
[Quidway-acl-adv-3101] rule permit tcp source 129.9.0.0 0.0.255.255
destination 202.38.160.0 0.0.0.255 destination-port eq 80
Syntax
View
Parameter
1-14
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
Defines the
vlan-pri: VLAN priority, in the
cos vlan-pri Priority 802.1p priority
range of 0 to 7
of the rule
1-15
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
Description
Example
Syntax
View
Parameter
1-16
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
rule-mask: User-defined mask of the rule. It is used to perform the logical AND
operations with packets and must be an even number containing 2 to 160 hexadecimal
characters. Note that its length must be the same with that of rule-string.
offset: Mask offset of the rule. It specifies a byte, through its offset from the packet
header, in the packet as the starting point to perform logical AND operations. It ranges
from 0 to 79 bytes, and the maximum value becomes one byte less when the value of
rule-string (and rule-mask) has two more characters. For example, when rule-string
and rule-mask contains two characters respectively, the maximum value of offset is 79
bytes; when the former contains four characters respectively, the maximum value of
offset is 78 bytes, and so on.
Note:
Take the following into consideration when configuring the offset parameter:
z The packets processed by the switch have VLAN tags. One VLAN tag occupies 4
bytes.
z If VLAN VPN is disabled, the packets processed by the switch have 4 bytes of
VLAN tag.
z If VLAN VPN is enabled, a 4 bytes of VLAN tag is added to the packets that the
switch receives. The packets will have two VALN tags no matter the received
packets have VLAN tag or not.
Description
Note:
For the user-defined ACL rules, if you set to match the fields after the VLAN tag, two
VLAN tags are added for matching of either tagged or untagged packets. For the
packets with their type filed as 0800, the offset value should be 20.
Before you can delete a rule, you need to specify the rule ID. If you do not know the
rule ID, you can view it by the display acl command.
In the case that you specify the rule ID when defining a rule:
1-17
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
z If the rule corresponding to the specified rule ID already exists, you will edit the
rule, and the modified part in the rule will replace the original content, while other
parts remain unchanged.
z If the rule corresponding to the specified rule ID does not exists, you will create
and define a new rule.
z The content of a modified or created rule must not be identical with the content of
any existing rule; otherwise the rule modification or creation will fail, and the
system will prompt that the rule already exists.
If you do not specify a rule ID, you will create and define a new rule, and the system
will assign an ID for the rule automatically.
Example
Syntax
View
Parameter
comment text: Specifies the comment string for an ACL rule, which must a string of up
to 127 characters.
Description
Use the rule comment command to define the comment string for an ACL rule.
Use the undo rule comment command to delete the comment string for an ACL rule.
Before defining the comment string for an ACL rule, make sure that this ACL rule
exists.
Example
1-18
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
1.1.12 time-range
Syntax
View
System view
Parameter
Description
1-19
Command Manual – ACL
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 ACL Commands
jointly define a periodic time section, while start-time start-date and end-time end-date
jointly define an absolute time section.
If only a periodic time section is defined in a time range, the time range is active only
within the defined periodic time section.
If only an absolute time section is defined in a time, the time range is active only within
the defined absolute time section.
If both a periodic time section and an absolute time section are defined in a time range,
the time range is active only when the periodic time range and the absolute time range
are both matched. Assume that a time range defines an absolute time section from
00:00 January 1, 2004 to 23:59 December 31, 2004, and a periodic time section from
12:00 to 14:00 every Wednesday. This time range is active only from 12:00 to 14:00
every Wednesday in 2004.
If you include any argument undo time-range command, the system will delete only
the content defined by the argument from the time range.
Example
# Define a time range that is effective from 12:00 January 1, 2000 to 12:00 January 1,
2001.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] time-range test from 12:00 1/1/2000 to 12:00 1/1/2001
1-20
Command Manual – QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Syntax
View
Any view
Parameter
None
Description
Use the display protocol priority command to display the priority of the protocol
packet.
Example
Syntax
View
Any view
1-1
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Parameter
None
Description
Example
Syntax
View
Any view
Parameter
Description
Use the display qos-interface all command to view all the QoS configuration of the
ports. If you do not input port parameters, this command will display the QoS parameter
configuration of all the ports of the switch, including traffic policing, rate limit, etc; if you
input port parameters, this command will display QoS parameter configuration of the
port, including traffic policing, rate limit, etc.
When the IRF feature is enabled, the interface-type interface-number argument or the
unit-id argument must be input.
1-2
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Example
Ethernet1/0/1: traffic-limit
Inbound:
Matches: Acl 3001 rule 1 running
Target rate: 640 Kbps
Exceed action: remark-dscp 4
Ethernet1/0/1: traffic-priority
Inbound:
Matches: Acl 2000 rule 0 running
Priority action: dscp ef
Ethernet1/0/1: line-rate
Inbound: 128 Kbps
Outbound: 1024 Kbps
Ethernet1/0/1:
Syntax
View
Any view
Parameter
Description
Use the display qos-interface line-rate command to view the rate limit configuration
of a port or all the ports of a switch. If you do not specify the interface-type
interface-number argument, you will view the rate limit configuration of all the ports of a
1-3
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
switch; if you specify that argument, you will view the rate limit configuration of a
specific port.
Example
Syntax
View
Any view
Parameter
Description
Use the display qos-interface traffic-limit command to view the traffic limit
configuration of a port or all the ports of a switch, including the applied ACLs for traffic
limit, committed average rate (CAR), and the corresponding actions.
Example
Ethernet1/0/1: traffic-limit
Inbound:
Matches: Acl 3001 rule 1 running
Target rate: 640 Kbps
Exceed action: remark-dscp 4
1-4
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Syntax
View
Any view
Parameter
Description
Use the display qos-interface traffic-priority command to view the traffic priority
configuration. The information displayed includes the ACL corresponding to the traffic
tagged with priority, priority type and value.
Example
Syntax
View
Any view
Parameter
1-5
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Description
Example
Syntax
View
Any view
Parameter
Description
Use the display qos-interface traffic-statistic command to view the traffic statistics
information. The information displayed includes the ACL corresponding to the traffic to
be counted and the number of packets counted.
Example
1-6
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
0 packet inprofile
0 packet outprofile
Syntax
display queue-scheduler
View
Any view
Parameter
None
Description
Use the display queue-scheduler command to view queue scheduling mode and
corresponding configuration.
Example
1.1.10 line-rate
Syntax
View
Parameter
1-7
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
target-rate: Total rate (in kbps) to limit both the inbound and outbound packets on the
port, with the granularity of rate limit being 64 kbps. If the number you input is in the
range of N*64 to (N+1)*64 (N is a natural number), the switch will set the value to
(N+1)*64 kbps automatically. The target rate range for fast Ethernet ports and Gigabit
Ethernet ports are:
z Fast Ethernet port: 64 to 99,968
z Gigabit Ethernet port: 64 to 1,000,000
Description
Use the line-rate command to limit the rate of the packets on the port.
Use the undo line-rate command to cancel the rate limit configuration on the port.
Example
1.1.11 priority
Syntax
priority priority-level
undo priority
View
Parameter
Description
Use the undo priority command to restore the default port priority.
1-8
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
By default, the switch uses the port priority instead of the 802.1p priority carried by a
packet.
After this command is configured, the switch will replace the packet 802.1p priority with
the priority of the received port, according to which the packet will be put into the
corresponding egress queue.
Example
Syntax
priority trust
undo priority
View
Parameter
None
Description
Use the priority trust command to configure system to use the packet 802.1p priority
instead of the port priority.
Use the undo priority command to configure the system not to use packet 802.1p
priority.
By default, the system replaces the 802.1p priority carried by a packet with the port
priority.
Example
1-9
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Syntax
View
System view
Parameter
protocol-type protocol-type: Specifies the protocol type. Only TELNET, SNMP, ICMP
and OSPF are supported currently.
priority 1 001
immediate 2 010
flash 3 011
flash-override 4 100
critical 5 101
internet 6 110
network 7 111
dscp dscp-value: Specifies the DSCP priority, in the range of 0 to 63. You can also
enter the keywords in Table 1-2.
1-10
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
af11 10 001010
af12 12 001100
af13 14 001110
af21 18 010010
af22 20 010100
af23 22 010110
af31 26 011010
af32 28 011100
af33 30 011110
af41 34 100010
af42 36 100100
af43 38 100110
cs1 8 001000
cs2 16 010000
cs3 24 011000
cs4 32 100000
cs5 40 101000
cs6 48 110000
cs7 56 111000
be (default) 0 000000
Description
Use the protocol-priority command to set the global traffic priority for a specific
protocol type.
Note:
The precedence of OSPF protocol packets cannot be changed on S3900-SI series
switches.
1-11
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Example
Syntax
View
System view
Parameter
1-12
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Description
6 6
7 7
Example
1-13
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
1.1.15 queue-scheduler
Syntax
1. In system view
undo queue-scheduler
undo queue-scheduler
View
Parameter
strict-priority: Indicates that the queue uses strict priority (SP) scheduling algorithm.
wfq: Indicates that the queue uses weighted fair queue (WFQ) scheduling.
1-14
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
wrr: Indicates that the queue uses weighted round robin (WRR) scheduling.
Description
The port of the switch supports eight output queues and you can configure to choose
the queue schedules (SP, WRR, and WFQ) as needed to achieve the implementation
of WRR+SP or WFQ+SP. For example, when using WRR or WFQ, if you set the value
of some queues or the minimum bandwidth to 0, the SP applies to the queues and
WRR or WFQ apply to the rest queues.
By default, the WRR algorithm is selected for all outbound queues on a port, and their
weight values are 1, 2, 3, 4, 5, 9, 13, and 15.
Example
# Set WRR as the queue scheduling mode, and set the weight value of each queue to 1,
2, 3, 4, 5, 6, 7, and 8 respectively. .
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/1
1-15
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Syntax
View
Parameter
inbound: Specify to clear the statistics of the inbound packets on the port.
acl-rule: Applied ACL which can be the combination of various ACL rules. For the ways
of combining ACLs and the description on related parameters, refer to Table 1-5 and
Table 1-6.
Parameter Description
The number of a basic or advanced ACL, in the range
ip-group acl-number
of 2,000 to 3,999
The number of a Layer 2 ACL, in the range of 4,000 to
link-group acl-number
4,999
The number of a user-defined ACL, in the range of
user-group acl-number
5,000 to 5,999
The number of an ACL rule, in the range of 0 to 65,534.
rule If the rule argument is not specified, it refers to all the
rules in the ACL
1-16
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Description
Use the reset traffic-statistic command to clear the statistics of all or specified traffic.
Example
# Clear the statistics of the inbound traffic that matches ACL 2000 on Ethernet 1/0/1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/1
[Quidway-Ethernet1/0/1] reset traffic-statistic inbound ip-group 2000
1.1.17 traffic-limit
Syntax
View
Parameter
acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the
ways of combining ACLs and the description on related parameters, refer to Table 1-5
and Table 1-6.
target-rate: The total rate (in kbps) to be set, with the granularity of traffic limit being 64
kbps. If the specified number is in (N*64, (N+1)*64], in which N is a natural number, the
switch automatically sets (N+1)*64 as the parameter value. For a fast Ethernet port, this
argument ranges from 64 to 99,968 inclusive; for a Gigabit Ethernet port, from 64 to
1,000,000 inclusive.
exceed action: Optional. The action is taken when the traffic exceeds the threshold.
The action can be:
z drop: Drops the packets.
z remark-dscp value: Sets new DSCP value.
1-17
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Description
Use the traffic-limit command to activate ACL and perform traffic limit.
This command is only effective for the ACL rules whose actions are permit.
Example
# Perform traffic limit on packets which are received on Ethernet 1/0/1 and match the
permit rule in ACL 4000. Set the limit rate to 128 kbps and drop the packets exceeding
the rate.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/1
[Quidway-Ethernet1/0/1] traffic-limit inbound link-group 4000 128 exceed drop
1.1.18 traffic-priority
Syntax
View
Parameter
acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the
ways of combining ACLs and the description on related parameters, refer to Table 1-5
and Table 1-6.
dscp dscp-value: Set DSCP priority, ranging from 0 to 63. You can also enter the
keywords in Table 1-2.
1-18
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
cos { pre-value | from-ipprec }: Set 802.1p priority. The pre-value argument ranges
from 0 to 7. You can also enter the keywords in Table 1-7. from-ipprec means to set
802.1p priority of the packet the same to IP priority.
background 1 001
spare 2 010
excellent-effort 3 011
controlled-load 4 100
video 5 101
voice 6 110
network-management 7 111
local-precedence pre-value: Set local priority. The pre-value argument ranges from 0
to 7.
Description
Use the traffic-priority command to enable ACLs for traffic classification and remark
priority for the traffic matching the ACLs. This command is effective only for the ACL
rules whose actions are permit.
Use the undo traffic-priority command to remove the function of remarking priority for
the specified traffic.
Note:
The COS precedence and the local-precedence can not be applied simultaneously on
the switch.
1-19
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Example
# Remark the 802.1p priority of the packets which are received on Ethernet 1/0/1 and
match the permit rule in ACL 4000 as 1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/1
[Quidway-Ethernet1/0/1] traffic-priority inbound link-group 4000 cos 1
1.1.19 traffic-redirect
Syntax
View
Parameter
acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the
ways of combining ACLs and the description on related parameters, refer to Table 1-5
and Table 1-6.
Description
Use the traffic-redirect command to activate the ACL to recognize and redirect the
traffic (whose action is permit).
1-20
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Note:
z When the packets are redirected to CPU, they cannot be forwarded normally.
z If the traffic is redirected to a down Combo port, the system automatically redirects
the traffic to the up port that is corresponding to the Combo port.
Example
# Redirect the packets which are received on Ethernet 1/0/1 and match the permit rule
in ACL 2000 to Ethernet1/0/7.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/1
[Quidway-Ethernet1/0/1] traffic-redirect inbound ip-group 2000 interface
Ethernet 1/0/7
1.1.20 traffic-statistic
Syntax
View
Parameter
acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the
ways of combining ACLs and the description on related parameters, refer to Table 1-5
and Table 1-6.
Description
Use the traffic-statistic command to activate the ACL to recognize and count the traffic
(whose action is permit).
1-21
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
Example
# Perform traffic statistics on the packets which are received on Ethernet 1/0/1 and
match the permit rule in ACL 2000.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/1
[Quidway-Ethernet1/0/1] traffic-statistic inbound ip-group 2000
1.1.21 wred
Syntax
View
Parameter
qstart: Number of the packets that the queue can hold, in the range of 1 to 128.
Description
Example
# Configure WRED parameters for queue 2 on Ethernet 1/0/1. When the number of
packets in queue 2 exceeds 64, packets are dropped at random. The drop probability is
20%.
1-22
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 QoS Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/1
[Quidway-Ethernet1/0/1] wred 2 64 20
1-23
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 QoS Profile Configuration Commands
Syntax
View
Parameter
Description
Use the apply qos-profile command to apply the QoS profile configuration to the
current port manually.
You cannot delete the specific QoS profile which has been applied to the port.
Example
2-1
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 QoS Profile Configuration Commands
Syntax
View
System view
Parameter
profile-name: QoS profile name, a string of one to 32 characters, starting with English
letters [a-z, A-Z] and excluding all, interface, user, undo, user-based, port-based and
name which are reserved keywords.
interface { interface-name | -list: Ethernet port list which refers to multiple Ethernet ports,
expressed in the format of interface-list = interface-type interface-number [ to
interface-type interface-number ].
Description
Use the apply qos-profile interface command to apply the QoS profile to one or more
consecutive ports manually.
Use the undo apply qos-profile command to remove the QoS profile configuration
from one or more consecutive ports.
You cannot delete the specific QoS profile which has been applied to the port.
Example
# Apply the QoS profile named a123 to Ethernet1/0/1 through Ethernet1/0/4 manually.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] apply qos-profile a123 interface Ethernet 1/0/1 to Ethernet 1/0/4
Syntax
2-2
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 QoS Profile Configuration Commands
View
Any view
Parameter
profile-name: Displays the QoS profiles with specific names, profile-name is a string of
1 to 32 characters, starting with English letters [a-z, A-Z] and excluding all, interface,
user, undo, user-base, port-based and name which are reserved keywords.
user user-name: Displays the QoS profile mapped with a specific user. user-name is a
string with up to 80 characters.
Description
Use the display qos-profile command to view QoS profile configuration information.
Example
2.1.4 packet-filter
Syntax
View
Parameter
acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the
ways of combining ACLs and the description on related parameters, refer to Table 1-5
and Table 1-6.
2-3
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 QoS Profile Configuration Commands
Description
Use the packet-filter command to add packet filtering action to the QoS profile.
Use the undo packet-filter command to remove packet filtering action from the QoS
profile.
Example
# Add the packet filtering action to the QoS profile named a123. The action is to filter
the inbound packets matching the ACL 4000.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] qos-profile a123
[Quidway-qos-profile-a123] packet-filter inbound link-group 4000
2.1.5 qos-profile
Syntax
qos-profile profile-name
View
System view
Parameter
Description
Use the qos-profile command to create a QoS profile and enter the corresponding
view. For an existing QoS profile, use this command to directly enter the corresponding
view.
You cannot delete the specific QoS profile which has been applied to the port.
Example
2-4
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 QoS Profile Configuration Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] qos-profile a123
[Quidway-qos-profile-a123]
Syntax
qos-profile port-based
View
Parameter
None
Description
Use the qos-profile port-based command to configure application mode on the port of
the QoS profile.
Use the undo qos-profile port-based command to restore the default application
mode.
2-5
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 QoS Profile Configuration Commands
z Port-based mode: The switch delivers the traffic actions in the QoS profile directly
to the user port. In this mode, all the accessed users through one port should use
the same profile.
Example
# Configure the application mode of the QoS profile on Ethernet 1/0/1 as the port-based
mode.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/1
[Quidway-Ethernet1/0/1] qos-profile port-based
2.1.7 traffic-limit
Syntax
View
Parameter
inbound: Set traffic limiting for the inbound packets on the port.
acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the
ways of combining ACLs and the description on related parameters, refer to Table 1-5
and Table 1-6.
target-rate: Total traffic (in kbps) to be set, with the granularity of traffic limit being
64kbps. If the number user input is in ( N*64, (N+1)*64], in which N is a natural number,
the switch automatically sets (N+1)*64 as the parameter value. For a fast Ethernet port,
this argument ranges from 64 to 99,968 inclusive; for a Gigabit Ethernet port, from 64 to
1,000,000 inclusive.
exceed action: Action taken when the traffic threshold is exceeded (optional). Two
actions are available:
z drop: Drops packets.
z remark-dscp value: Sets a new DSCP value.
2-6
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 QoS Profile Configuration Commands
Description
Use the traffic-limit command to add traffic policing action in the QoS profile.
Use the undo traffic-limit command to remove traffic policing action from the QoS
profile.
You cannot remove traffic policing action from the specific QoS profile which has been
applied to the port.
Example
# Add to the QoS profile named a123 this traffic policing action: Limit traffic for the
packets matching ACL 2000, the target rate is 128 kbps, drop the packets at a rate
exceeding this target rate.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] qos-profile a123
[Quidway-qos-profile-a123] traffic-limit inbound ip-group 2000 128 exceed
drop
2.1.8 traffic-priority
Syntax
View
Parameter
inbound: Resets the preference value for the inbound packets on the port.
outbound: Resets the preference value for the outbound packets on the port.
acl-rule: Applied ACL rules which can be the combination of various ACL rules. For the
ways of combining ACLs and the description on related parameters, refer to Table 1-5
and Table 1-6.
dscp dscp-value: Sets DSCP preference value, in the range 0 to 63. You can also enter
keywords in Table 1-2.
2-7
Command Manual - QoS&QoS Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 QoS Profile Configuration Commands
Description
Use the traffic-priority command to enable the ACL and preference reset.
You cannot remove preference reset from the specific QoS profile which has been
applied to the port.
Note:
The COS precedence and the local-precedence can not be applied simultaneously on
the switch.
Example
# Add the preference reset to the QoS profile named a123. The action is to set local
preference 0 to the inbound packets matching the ACL 2000.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] qos-profile a123
[Quidway-qos-profile-a123] traffic-priority inbound ip-group 2000
local-precedence 0
2-8
Command Manual – Web Cache Redirection
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Web Cache Redirection Chapter 1 Web Cache Redirection Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
The S3900-SI series do not support Web cache redirection.
Syntax
display webcache
View
Any view
Parameter
None
Description
Use the display webcache command to view Web cache redirection configuration and
check whether or not the Web cache is accessible.
Example
# Display Web cache redirection configuration and check whether or not the Web
cache is accessible.
[Quidway] display webcache
webcache IP address: 1.1.1.1
webcache MAC address: 00e0-fc00-0000
webcache port: Ethernet1/0/1
webcache VLAN: 1
1-1
Command Manual – Web Cache Redirection Chapter 1 Web Cache Redirection Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Parameter
port interface-type interface-number: Specifies the port through which the switch is
connected to the Web cache.
tcpport tcpport-number: TCP port number used by HTTP packets. The default is 80.
Description
Use the webcache address command to enable Web Cache redirection on switch and
configure the related parameters of web cache at the same time. The Web cache
parameters include: IP address, MAC address, VLAN ID, the port connecting the switch
to Web cache, TCP port number in HTTP packets.
1-2
Command Manual – Web Cache Redirection Chapter 1 Web Cache Redirection Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Use the undo webcache all command to remove all Web cache redirection
configurations on the switch.
You can configure the parameters of Web Cache in system view or Ethernet port view.
Note:
z If the configured Web cache is inaccessible, Web cache redirection cannot be
enabled.
z The switch supports only one Web cache. If you configure web cache for a second
time, the new configuration replaces the old one.
z If the VLAN where web cache is located does not have the corresponding VLAN
interface on the switch, this configuration will not be validated.
z If the VLAN interface does not go up, Web Cache redirection will not be validated.
Example
# Enable Web cache redirection on the switch in system view, configuring the Web
cache with the following parameters: IP address 1.1.1.1, MAC address 00e0-fc01-0101,
VLAN ID 40, the port through which the switch is connected to the Web cache to be
Ethernet 1/0/4, and the default TCP port number used by HTTP packets to be 80.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] webcache address 1.1.1.1 mac 00e0-fc01-0101 vlan 40 port Ethernet
1/0/4
# Enable Web cache redirection on switch in Ethernet port view, configuring web cache
with the following parameters: IP address 1.1.1.1, MAC address 00e0-fc01-0101,
VLAN ID 40, the port through which the switch is connected to the Web cache to be
Ethernet 1/0/4, and the default TCP port number used by HTTP packets to be 80.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/1
[Quidway-Ethernet1/0/1] webcache address 1.1.1.1 mac 00e0-fc01-0101 vlan 40
Syntax
1-3
Command Manual – Web Cache Redirection Chapter 1 Web Cache Redirection Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
System view
Parameter
Description
Use the webcache redirect-vlan command to specify a VLAN whose HTTP traffic is to
be redirected.
Use the undo webcache redirect-vlan command to disable the HTTP traffic of a
specified VLAN from being redirected.
By default, the HTTP traffic of the users in all VLANs is not redirected to the Web cache.
If you do not specify the vlan-id argument when executing the undo webcache
redirect-vlan command, Web cache redirection in all the VLANs is disabled.
Note:
This configuration will not be validated unless the VLAN interfaces corresponding to the
VLAN IDs exist.
If the VLAN interface does not go up, Web cache redirection will not be validated.
Example
1-4
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
Syntax
View
Any view
Parameter
Description
Use the display mirroring-group command to display the parameter settings of a port
mirroring group.
Local mirroring group information includes:
z Group number
z Group type: local
z Group status
z Information of the monitored port
z Information of the monitoring port
Information displayed on the destination mirroring group for remote mirroring includes:
z Group number
z Group type: remote-destination
z Group status
z Information of the destination port
z Remote-probe VLAN information
1-1
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
Information displayed on the source mirroring group for remote mirroring includes:
z Group number
z Group type: remote-source
z Group status
z Information of the source port
z Information of the reflector port
z Remote-probe VLAN information
Example
Syntax
View
Any view
Parameter
interface-type interface-number: port of the switch. If you enter this argument, the
switch will display the parameter settings of the specified port.
unit-id: Unit ID. If you enter this argument, the switch will display the parameter settings
on Unit.
Description
1-2
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
Example
1.1.3 mirrored-to
Syntax
View
Parameter
1-3
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
ip-group acl-number: ACL number of the basic or advanced ACL, ranging from 2000 to
3999.
link-group acl-number: ACL number of the Layer 2 ACL, ranging from 4000 to 4999.
user-group acl-number: ACL number of the user-defined ACL, ranging from 5000 to
5999.
rule rule-id: Rule number of the ACL rule, ranging from 0 to 65534. If this parameter is
not specified, all rules in the specified ACL will be applied.
monitor-interface: Mirrors traffics to the monitored interface.
cpu: Mirrors the data traffics to the CPU.
Description
Use the mirrored-to command to reference ACLs for identifying traffics and perform
traffic mirroring for packets that match.
Use the undo mirrored-to command to remove traffic mirroring configuration.
This command applies to the rules whose actions are permit in matching the specified
ACL.
LACP and TCP must be disabled on the destination port. Traffic mirroring does not
support aggregated synchronization and configuration copy.
Mirroring configuration takes effect only after a source port and a destination port are
specified.
Related command: display qos-interface mirrored-to, monitor-port
Example
1.1.4 mirroring-group
Syntax
1-4
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
View
System view
Parameter
Description
Example
Syntax
View
Parameter
1-5
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
Description
Example
# Configure GigabitEthernet1/1/1 as the source port and mirror all packets received via
this port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] mirroring-group 1 mirroring-port Gigabitethernet1/1/1 inbound
Syntax
View
Parameter
Description
Example
# Configure GigabitEthernet1/1/4 as the source port and monitor all packets received
via this port.
1-6
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] mirroring-group 1 monitor-port Gigabitethernet1/1/4
Syntax
View
Parameter
Description
Example
Syntax
1-7
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
View
System view
Parameter
Description
Example
1.1.9 mirroring-port
Syntax
View
Parameter
inbound | outbound | both: Direction of mirrored packets. inbound: only mirrors the
packets received via the port; outbound: only mirrors the packets sent by the port;
both: mirrors all packets received and sent by the port.
Description
1-8
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
Example
# Configure GigabitEthernet1/1/1 as the source port and mirror all packets received
and sent via this port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface GigabitEthernet1/1/1
[Quidway-GigabitEthernet1/1/1] mirroring-port both
1.1.10 monitor-port
Syntax
monitor-port
undo monitor-port
View
Parameter
None
Description
Example
Syntax
1-9
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
View
VLAN view
Parameter
None
Description
Use the remote-probe vlan enable command to configure the current VLAN as the
remote-probe VLAN.
Use the undo remote-probe vlan enable command to configure the remote-probe
VLAN as a normal VLAN.
Before configuring the remote-probe VLAN, make sure that no Access or Hybrid port
belongs to this VLAN. If any Trunk port exists in this VLAN, the port PVID cannot be the
ID of remote-probe VLAN. After setting a VLAN as remote-probe VLAN, it is
recommended that you do not add Access or Hybrid port to the VLAN.
Example
Syntax
Syntax
display mirror
View
Any view
Parameter
None
Description
Use the display mirror to display the port mirroring settings, including the monitor port,
monitored port and mirroring direction.
1-10
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
Example
Syntax
View
Any view
Parameter
interface-type interface-number: Port of the switch. If you enter this argument, the
switch will display the parameter settings of the specified port.
unit-id: Unit ID. If you enter this argument, the switch will display the parameter settings
on Unit.
Description
Example
1-11
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
1.2.3 mirrored-to
Syntax
View
Parameter
ip-group acl-number: ACL number of the basic or advanced ACL, ranging from 2000 to
3999.
link-group acl-numberr: ACL number of the Layer 2 ACL, ranging from 4000 to 4999.
user-group acl-number: ACL number of the user-defined ACL, ranging from 5000 to
5999.
1-12
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
rule rule-id: Rule number of the ACL rule, ranging from 0 to 65534. If this parameter is
not specified, all rules in the specified ACL will be applied.
monitor-interface: Mirrors traffics to the monitored interface.
cpu: Mirrors the data traffics to the CPU.
Description
Use the mirrored-to command to reference ACLs for identifying traffics and perform
traffic mirroring for packets that match.
Use the undo mirrored-to command to remove traffic mirroring configuration.
This command applies to the rules whose actions are permit in matching the specified
ACL.
LACP and TCP must be disabled on the destination port. Traffic mirroring does not
support aggregated synchronization and configuration copy.
Mirroring configuration takes effect only after a source port and a destination port are
specified.
Related command: display qos-interface mirrored-to, monitor-port
Example
1.2.4 mirroring-port
Syntax
View
1-13
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
Parameter
inbound | outbound | both: Direction of mirrored packets. inbound: only mirrors the
packets received via the port; outbound: only mirrors the packets sent by the port;
both: mirrors all packets received and sent by the port.
Description
Example
# Configure GigabitEthernet1/1/1 as the source port and mirror all packets received
and sent via this port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface GigabitEthernet1/1/1
[Quidway-GigabitEthernet1/1/1] mirroring-port both
1.2.5 monitor-port
Syntax
monitor-port
undo monitor-port
View
Parameter
None
Description
Example
1-14
Command Manual – Mirroring
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 Mirroring Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface GigabitEthernet1/1/4
[Quidway-GigabitEthernet1/1/4] monitor-port
1-15
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
Syntax
View
System view
Parameter
Description
Use the change self-unit command to change the unit ID of the current switch. By
default, the unit ID of a switch that belongs to no IRF fabric is 1. After a switch is added
to an IRF fabric, the switch performs automatic numbering through FTM function. Unit
ID ranges from 1 to 8.
Note:
If you do not enable the fabric port, you cannot change the unit ID of the local switch.
Example
Syntax
1-1
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
View
System view
Parameter
Description
Use the change unit-id command to configure the unit ID of a switch in an IRF fabric to
a new value. By default, when a switch is added to an IRF fabric, it uses the
automatically assigned unit ID.
z If the modified unit ID does not exist in the fabric, the system sets its priority to 5
and saves it in the unit Flash memory.
z If the modified unit ID is an existing one, the system prompt you to confirm if you
really want to change the unit ID. If you choose to change, the existing unit ID is
replaced and the priority is set to 5. Then you can use the fabric save-unit-id
command to save the modified unit ID into the unit Flash memory and clear the
information about the existing one.
z If auto-numbering is selected, the system sets the unit ID priority to 10. You can
use the fabric save-unit-id command to save the modified unit ID into the unit
Flash memory and clear the information about the existing one.
Note:
z Unit IDs in the fabric are not always arranged in order of 1 to 8.
z Unit IDs in an IRF fabric can be inconsecutive.
Example
# Change the unit ID of the switch from 6 to 4. Use the display ftm command to display
information about each unit in the fabric.
<Quidway> display ftm topology-database
Total number of units in fabric : 2, My CPU ID : 6
UID CPU-Mac Priority Stack-Port Board-ID A/M
1 00e0-fc00-5002 10 /Right 1 A
2 00e0-fc03-5132 10 Left/ 1 A
3 00e0-fc04-5252 10 /Right 1 A
4 00e0-fc05-8922 10 Left/ 1 A
1-2
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
5 000f-cbb7-2142 10 /Right 1 A
*6 000f-cbb7-3264 10 Left/ 1 A
7 000f-cbb7-2260 10 /Right 1 A
8 000f-cbb7-2734 10 Left/ 1 A
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] change unit-id 1 to 2
The unit 2 already exists in fabric.
Continue? [Y/N] y
[Quidway]
%Apr 2 00:48:34:574 2000 Quidway FTM/3/DDPFLA:- 6 -Change unitid successful,
un
it 4 saved UnitID(4) in flash!
<Quidway>display ftm topology-database
Total number of units in fabric : 2, My Unit ID : 4
UID CPU-Mac Priority Stack-Port Board-ID A/M
1 00e0-fc00-5002 10 /Right 1 A
2 00e0-fc03-5132 10 Left/ 1 A
3 00e0-fc04-5252 10 /Right 1 A
*4 000f-cbb7-3264 5 Left/ 1 A
5 000f-cbb7-2142 10 /Right 1 A
6 00e0-fc05-8922 10 Left/ 1 A
7 000f-cbb7-2260 10 /Right 1 A
8 000f-cbb7-2734 10 Left/ 1 A
From the above example, you can see the original unit ID of the device with MAC
address 000f-cbb7-3264 is 6. After the configuration, this unit ID changes to 4, and the
priority of the device changes to 5.
Syntax
View
System view
Parameter
Information: Displays the FTM protocol information, including DDP status, unit ID, link
status of the fabric, status of the fabric port, and DDP packets statistics.
topology-database: Displays the topology database information of the fabric.
1-3
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
Description
Use the display ftm command to display the protocol information or the topology
database information of the current fabric.
Example
Syntax
View
Any view
Parameter
1-4
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
Description
Use the display irf-fabric command to view the information of the entire fabric,
including unit ID, unit name, and operation mode of the system. If the fabric information
is displayed on the Console port of a device, an asterisk (*) will be added to the unit ID
of the current device.
Example
Syntax
View
Any view
Parameter
Description
Use the display rmon history unit command to collect RMON history data of the local
device or other devices in the fabric.
Related command: rmon history.
Example
1-5
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
Syntax
View
Any view
Parameter
Description
Use the display rmon statistics unit command to collect RMON statistics data of the
local device or other devices in the fabric.
Related command: rmon statistics.
Example
Syntax
fabric save-unit-id
undo fabric save-unit-id
View
User view
Parameter
None
Description
Use the fabric save-unit-id command to save the unit IDs of all the units in an IRF
fabric into the unit Flash. This command also sets the priority to 5.
Use the undo fabric save-unit-id command to remove the saved unit IDs. This
command also restores unit ID priority to 10.
Example
# Save the unit IDs of all the units in an IRF fabric to the unit Flash memory.
<Quidway> display ftm topology-database
1-6
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
From the above example, you can see the priority of each unit change from 10 to 5, and
the numbering mode change from A (automatic numbering) to M (manual numbering).
# Remove the saved unit ID of each unit.
<Quidway> undo fabric save-unit-id
The saved unit ID will be erased.
Are you sure? [Y/N] y
Unit 1 removed unit ID successfully.
1-7
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
From the above example, you can see the priority of each unit restores to 10 and the
numbering mode changes from M (manual numbering) to A (automatic numbering).
Syntax
View
System view
Parameter
interface-type: Type of the port to be configured as a fabric port. Note that only
GigabitEthernet ports can be configured as fabric ports.
interface-number: Number of the port to be configured as a fabric port.
Description
Use the fabric-port enable command to configure a specified port as a fabric port.
Use the undo fabric-port enable command to disable the fabric port function for a port.
When the last fabric port on a switch is disabled, the fabric function is disabled globally.
1-8
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
Note:
z Establishing an IRF system requires a high consistency of the configuration of each
device. Hence, before you enable the fabric port, do not perform any configuration
for the port, and do not enable some functions that affect the IRF (such as
TACACAS and VLAN-VPN) for other ports or globally. Otherwise, you cannot
enable the fabric port. Refer to the error information output by devices for the detail
restricts.
z When you have enable fabric port function for a fabric port group, if you need to
change the fabric port group, you must disable the fabric function of the current
fabric port group before you execute the enable command on another group.
Otherwise, the system will prompt that the current fabric port group is in use, you
cannot change the fabric port group.
Example
Syntax
View
System view
Parameter
vlan-id: ID of the IRF fabric VLAN, in the range of 2 to 4094 By default, the number of
the IRF Fabric VLAN is 4093.
Description
Use the ftm fabric-vlan command to specify the VLAN that the switch uses for IRF
fabric.
Use the undo ftm fabric-vlan command to restore the default VLAN.
You need to specify the IRF fabric VLAN before the IRF fabric is established. Moreover,
the VLAN you specified must be the one that has not been created.
1-9
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
Example
Syntax
View
System view
Parameter
Description
Example
# Set the authentication mode of the IRF fabric to simple, with the password "hello".
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] irf-fabric authentication-mode simple hello
Syntax
1-10
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
View
User view
Parameter
None
Description
Example
Syntax
View
System view
Parameter
Description
Use the set unit name command to set a name for a device.
Example
1-11
Command Manual – IRF Fabric
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 IRF Fabric Commands
Hello 1
Second 2(*)
1.1.13 sysname
Syntax
sysname sysname
undo sysname
View
System view
Parameter
Description
Use the sysname command to set the name for the fabric where the current device
belongs. The modification will affect the prompt character in the command line interface.
For example, if the fabric name of the Ethernet switch is Quidway, the prompt character
in user view is <Quidway>.
Use the undo sysname command to restore the default fabric name.
Example
1-12
Command Manual – Cluster
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Cluster
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Syntax
View
Any view
Parameter
interface port-list: Specifies a list of ports. The list can contain consecutive or
separated ports, or the combination of the both. You need to provide the port-list
argument in the form of interface-type interface-number [ to interface-type
interface-number ] &<1-10>, where interface-type specifies the port type, and
interface-number specifies the port number (in the form of slot number/port number).to:
Specifies a port range. &<1-10> means that you can provide up to ten port indexes/port
index ranges for this argument.
Description
Use the display ndp command to display the global NDP configuration information,
including the interval to send NDP packets, the holdtime of NDP information, and the
information about the neighbors of all the ports.
Example
Interface: Ethernet1/0/2
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: Ethernet1/0/3
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
1-1
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Interface: Ethernet1/0/4
Status: Enabled, Pkts Snd: 10362, Pkts Rvd: 10360, Pkts Err: 0
Interface: Ethernet1/0/5
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: Ethernet1/0/6
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: Ethernet1/0/7
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: Ethernet1/0/8
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: Ethernet1/0/9
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: Ethernet1/0/10
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: Ethernet1/0/11
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: Ethernet1/0/12
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: Ethernet1/0/13
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
Interface: Ethernet1/0/14
Status: Enabled, Pkts Snd: 0, Pkts Rvd: 0, Pkts Err: 0
1-2
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
1-3
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Syntax
View
Parameter
interface port-list: Specifies a list of ports. The list can contain consecutive or
separated ports, or the combination of the both. You need to provide the port-list
argument in the form of interface-type interface-number [ to interface-type
interface-number ] &<1-10>, where interface-type specifies the port type, and
interface-number specifies the port number (in the form of slot number/port number).to:
Specifies a port range. &<1-10> means that you can provide up to ten port indexes/port
index ranges for this argument.
Description
Example
Syntax
1-4
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
View
System view
Parameter
aging-in-secs: Holdtime (in seconds) to be set of the NDP information sent by the local
switch. This argument ranges from 5 to 255.
The default holdtime is 180 seconds.
Description
Use the ndp timer aging command to set the holdtime of the NDP information sent by
the local switch, that is, to specify how long a device will hold the NDP packets received
from the local device. After the aging timer expires, the device removes the received
NDP neighbor node information.
Use the undo timer aging command to restore the default NDP information holdtime.
You can specify how long an adjacent device will hold the NDP information sent by the
local device. An adjacent device holds the NDP information of the local switch
according to the holdtime carried in the NDP packets received from the local switch and
removes the NDP information when the aging timer expires.
Note that NDP information holdtime is longer than the interval to send NDP packets
normally. Otherwise, the neighbor information table of an NDP port will become
unstable.
Example
# Configure the holdtime of the NDP information sent by the local switch to be 60
seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ndp timer aging 60
Syntax
View
System view
1-5
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Parameter
timer-in-seconds: Interval (in seconds) to send NDP packets ranging from 5 to 254. By
default, the interval to send NDP packets is 60 seconds.
Description
Use the ndp timer hello command to set the interval to send NDP packets.
Use the undo ndp timer hello command to restore the default interval to send NDP
packets.
NDP information in a neighbor information table is updated regularly. This enables
neighbor information table to contain the actual network topology information. You can
use these two commands to adjust the updating frequency of NDP information.
Note that the valid reservation duration of NDP information is larger than the NDP send
interval. Otherwise, it may cause that the NDP neighbor information table becomes
unstable.
Example
Syntax
View
User view
Parameter
interface port-list: Specifies a list of ports. The list can contain consecutive or
separated ports, or the combination of the both. You need to provide the port-list
argument in the form of interface-type interface-number [ to interface-type
interface-number ] &<1-10>, where interface-type specifies the port type, and
interface-number specifies the port number (in the form of slot number/port number).to:
Specifies a port range. &<1-10> means that you can provide up to ten port indexes/port
index ranges for this argument.
Description
1-6
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Example
Syntax
display ntdp
View
Any view
Parameter
None
Description
Use the display ntdp command to display the global NTDP information. The
information includes the range (in hop count) within which topology information is
collected, the interval to collect topology information (the NTDP timer), the delay time
for a device to forward topology-collection requests, the delay time for a
topology-collection request to be forwarded through a port, and the time cost during the
last topology collection.
Example
1-7
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Field Description
Syntax
View
Any view
Parameter
Description
Use the display ntdp device-list command to display the device information collected
through NTDP.
Example
1-8
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Field Description
--------------------------------------------------------------------------
---
Hostname : 3900-3
MAC : 00e0-fc00-3190
Hop : 1
Platform : S3900
IP : 16.1.1.1/24
Version :
Huawei Versatile Routing Platform Software
VRP (tm) Software, Version 3.10
Copyright (c) 1998-2006 Huawei Tech. Co.,Ltd. All rights reserved.
S3900 3900-0002
Cluster : Candidate switch
1-9
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Syntax
ntdp enable
undo ntdp enable
View
Parameter
None
1-10
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Description
Example
Syntax
ntdp explore
View
User view
Parameter
None
Description
Use the ntdp explore command to start topology information collection manually.
Normally, NTDP collects network topology information periodically. You can also start
topology information collection manually whenever needed by executing this command.
When you execute this command, NTDP collects the NDP information of every device
and the information about the connections between the local switch and all of its
neighbor switches in the specified network scope. The information is useful for the
management device or network management system to acquire the network topology
and to manage and monitor the devices.
Example
1-11
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Syntax
View
System view
Parameter
hop-value: Maximum hops for collecting topology information, ranging from 1 to 16. By
default, the value is 3.
Description
Use the ntdp hop command to set a range (in terms of hop count) for topology
information collection.
Use the undo ntdp hop command to restore the default range for topology information
collection.
With the ntdp hop command, you can specify to collect the topology information of the
devices within a specified range to avoid infinitive collection. The limit is performed by
controlling the permitted hops from collection origination. For example, if you set the
hop number limit to 2, only the switches less than 2 hops away from the switch starting
the topology collection are collected.
Note that this command is only applicable to the topology-collecting device. A broader
collection scope requires more memory of the topology-collecting device.
Example
Syntax
View
System view
Huawei Technologies Proprietary
1-12
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Parameter
interval-in- minutes: Interval (in minutes) to collect topology information, ranging from 0
to 65,535. This argument defaults to 0, which specifies not to collect topology
information.
Description
Use the ntdp timer command to configure the interval to collect topology information.
Use the undo ntdp timer command to restore the default interval.
B y default, the interval to collect topology information is 1 minute.
A switch collects topology information once in each period set by the ntdp timer
command.
Note that:
z The (disable) prompt in the timer field of the display ntdp command means that
the device is not the member of the cluster and does not perform periodical
topology collection.
z After the cluster is set up, the S3900 switch will collect the topology information in
the network at the set interval and add the detected candidate switches into the
cluster automatically.
z If it is unnecessary to add the candidate switches into the cluster automatically,
you can set the interval of topology collection to 0.
Example
Syntax
View
System view
Parameter
time: Delay time (in milliseconds) for a switch to forward topology-collection request
packets. This argument ranges from 1 to 1,000 and defaults to 200.
1-13
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Description
Use the ntdp timer hop-delay command to set the delay time for a switch to forward
topology-collection request packets.
Use the undo ntdp timer hop-delay command to restore the default delay time.
To avoid network congestion caused by large amount of topology response packets
received in short periods, a switch delays for specific period before it forwards a
received topology-collection request packet through its first ports. You can use the ntdp
timer hop-delay command to set the delay time.
These two commands are intended for switches that collect topology information. They
actually set the hop-delay value for topology-collection request packets sent by these
switches. The hop-delay value determines the delay time for a switch receiving
topology-collection request packets to forward them through its first port.
Example
# Set the delay time for the switch to forward topology-collection request packets
through the first port to 300 ms.
<aaa_0.Quidway> system-view
System View: return to User View with Ctrl+Z.
[aaa_0.Quidway] ntdp timer hop-delay 300
Syntax
View
System view
Parameter
time: Delay time (in milliseconds) for a switch to forward a topology-collection request
packet through its successive ports. This argument ranges from 1 to 100 and defaults to
20.
Description
Use the ntdp timer port-delay command to set the delay time for a switch to forward a
received topology-collection request packet through its successive ports. A switch
forwards received topology request packets to all its ports in turn. After forwarding a
received topology-collection request packet through one port, the switch delays for
specific period before it forwards the packet through the next port.
1-14
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Use the undo ntdp timer port-delay command to restore the default delay time.
To avoid network congestion caused by large amount of topology response packets
received in short periods, a switch delays for specific period before it forwards a
received topology-collection request packet through the next port. You can use the
ntdp timer port-delay command to set the delay time.
These two commands are intended for switches that collect topology information. They
actually set the port-delay value for topology-collection request packets sent by these
switches. The port-delay value determines the delay time for a switch receiving
topology-collection request packets to forward them through the next port.
Example
# Set the delay time for the switch to forward topology-collection request packets
through the successive ports to 40 ms.
<aaa_0.Quidway> system-view
System View: return to User View with Ctrl+Z.
[aaa_0.Quidway] ntdp timer port-delay 40
Syntax
View
Cluster view
Parameter
Description
1-15
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
After a candidate device is added to a cluster, its device password becomes the
management device password.
Note that:
After the cluster is set up, the S3900 switch will collect the topology information of the
network at the set interval and add the detected candidate devices into the cluster
automatically. If it is unnecessary to add the candidate switches into the cluster
automatically, you can set the interval of topology collection to 0, that is, topology
collection is not performed periodically.
Example
# Add a candidate device to the cluster, setting the member number to 6. (Assume that
the MAC address and user password of the candidate device are 00E0-fc00-35e7 and
123456.)
<aaa_0.Quidway> system-view
System View: return to User View with Ctrl+Z.
[aaa_0.Quidway] cluster
[aaa_0.Quidway-cluster] add-member 6 mac-address 00E0-fc00-35e7 password
123456
1.3.2 administrator-address
Syntax
View
Cluster view
Parameter
Description
Use the administrator-address command to set the MAC address of the management
device on a member device.
Use the undo administrator-address command to remove a member device from the
cluster, usually for debugging or restoration.
By default, a switch belongs to no cluster.
1-16
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
A cluster contains one (and only one) management device. After rebooting, a member
device identifies the management device by the MAC address of the management
device.
You are recommended to use the delete-member command to remove a cluster
member from a cluster on the management device.
Example
1.3.3 auto-build
Syntax
auto-build [ recover ]
View
Cluster view
Parameter
Description
1-17
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Example
Candidate list:
[aaa_0.Quidway-cluster]
1.3.4 build
Syntax
build name
undo build
View
Cluster view
Parameter
Description
1-18
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
If the build command is executed on the management device, the cluster name will be
modified.
The member number of a management device is 0.
After the cluster is set up, the S3900 switch will collect the topology information of the
network at the set interval and add the detected candidate devices into the cluster
automatically. If it is unnecessary to add the candidate switches into the cluster
automatically, you can set the interval of topology collection to 0, that is, topology
collection is not performed periodically.
Example
# Configure the current switch to be a management device and specify the cluster
name to be aaa.
<Quidway> system-view
System View: return to User View with Ctrl+Z
[Quidway] cluster
[Quidway-cluster] build aaa
1-19
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Note:
To protect the unused sockets against malicious attacks and improve the switch
security, S3900 series Ethernet switches provide the following function:
z When the cluster function is enabled, socket UDP 40000 used by the cluster is
enabled;
z When the cluster function is disabled, socket UDP 40000 is disabled at the same
time.
This function is implemented on the command switch in the following scenarios:
z Use the build command or the auto-build command to create a cluster and enable
socket UDP 40000 used by the cluster at the same time.
z Use the undo build command or the undo cluster enable command to remove a
cluster and disable socket UDP 40000 at the same time.
This function is implemented on the member switch in the following scenarios:
z Use the add-member command on the management device to add a candidate
switch into the cluster and enable socket UDP 40000 of the new member.
z Use the auto-build command on the management device to add a candidate switch
into the cluster and enable socket UDP 40000 of the new member.
z Use the administrator-address command on the current switch to enable socket
UDP 40000.
z Use the delete-member command on the management device to delete a cluster
member and disable socket UDP 40000 of the member switch.
z Use the undo build command on the management device to delete a cluster and
disable sockets UDP 40000 of all the cluster members.
z Use the undo administrator-address command on a member switch to disable
socket UDP 40000 of the member switch.
1.3.5 cluster
Syntax
cluster
View
System view
Parameter
None
Description
1-20
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Example
Syntax
cluster enable
undo cluster enable
View
System view
Parameter
None
Description
Use the cluster enable command to enable the cluster function on a switch.
Use the undo cluster enable command to disable the cluster function on a switch.
By default, the cluster function is enabled on all the devices supporting cluster.
You need to create a cluster with the build command before using the cluster enable
command on the management device.
These two commands can be used on any device supporting the cluster function.
When you execute the undo cluster enable command on a management device, the
cluster is removed, and the switch stop operating as a management device. When you
execute this command on a member device, the cluster function is disabled on the
switch, and the switch quit the cluster. When you execute this command on a switch
that belongs to no cluster, the cluster function is disabled on the switch.
Example
1-21
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Syntax
View
User view
Parameter
Description
Use the cluster switch-to command to switch between the management device and
member devices for configuration and management.
You can manage member devices in a cluster through the management device, on
which you can switch to member view to configure or manage specified member
devices, and then switch back to the management device.
z Authentication is performed when you switch from the management device to a
member device. Upon passing the member device authentication, you will switch
to the member device for configuration. If the password of the member device is
different from that of the management device, the switchover is rejected.
z The view will be inherited from the management device when you switch to a
member device from the management device. For example, user view remains
unchanged after you switch from the management device to a member device.
z Authentication is also performed when you switch from a member device to the
management device. After passing the authentication, you will enter user view
automatically.
When you execute this command on the management device with the member-number
argument provided, an error occurs if the member device identified by the
member-number argument does not exist. You can enter quit to cancel the switchover
operation.
Example
# Switch from the management device to the member device numbered 6 and then
switch back to the management device.
<aaa_0.Quidway> cluster switch-to 6
<aaa_0.Quidway> quit
<aaa_0.Quidway>
1-22
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
1.3.8 cluster-mac
Syntax
cluster-mac H-H-H
View
Cluster view
Parameter
Description
Use the cluster-mac command to configure a multicast MAC address for cluster
management.
By default, the multicast MAC address is 0180-C200-000A.
Execute this command on management devices only.
Multicast MAC addresses enable the member devices of a cluster to receive multicast
information delivered by the management device, and thus multicast information
sending function is implemented on the management device.
Example
Syntax
View
Cluster view
Parameter
1-23
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Description
Use the cluster-mac syn-interval command to set the interval for a management
device to send multicast packets. Execute this command on management devices only.
When the interval is set to 0, the management device does not send multicast packets
to member devices.
Example
1.3.10 delete-member
Syntax
delete-member member-number
View
Cluster view
Parameter
Description
Use the delete-member command to remove a member device from the cluster.
Perform the operation to remove a member device from a cluster on the management
device only. Otherwise, errors occur.
After the cluster is set up, the S3900 switch will collect the topology information of the
network at the set interval and add the detected candidate devices into the cluster
automatically. If it is unnecessary to add the candidate switches into the cluster
automatically, you can set the interval of topology collection to 0, that is, topology
collection is not performed periodically.
Example
1-24
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Syntax
display cluster
View
Any view
Parameter
None
Description
Use the display cluster command to display the state and statistics of the cluster to
which the current switch belongs.
When being executed on a member device, this command displays the information
such as cluster name, member number of the current switch, the MAC address and
state of the management device, holdtime, and the interval to send packets.
When being executed on a management device, this command displays the
information such as cluster name, the number of the member devices in the cluster,
cluster state, holdtime and the interval to send packets.
Errors occur if you execute this command on a switch that does not belong to any
cluster.
Example
1-25
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
# Display cluster information (assuming that the current switch is a member device).
[aaa_2.3900-3] display cluster
Cluster name:"aaa"
Role:Member
Member number:2
Management-vlan:100
cluster-mac:0180-c200-000a
Handshake timer:10 sec
Handshake hold-time:60 sec
Syntax
View
Any view
Parameter
1-26
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
verbose: Displays the detailed information about all the candidate devices.
Description
Use the display cluster candidates command to display the information about the
candidate devices of a cluster. The command is applicable to the management devices
only.
After the cluster is set up, the S3900 switch will collect the topology information of the
network at the set interval and add the detected candidate devices into the cluster
automatically. As a result, if the interval of topology collection is too short (which is 1
minute by default), the switch exists as the candidate device of the cluster for a short
time. If it is unnecessary to add the candidate switches into the cluster automatically,
you can set the interval of topology collection to 0, that is, topology collection is not
performed periodically.
Execute this command on management devices only.
Example
1-27
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Platform : S3900
IP : 16.1.1.1/24
Hostname : Quidway
MAC : 3900-0000-3334
Hop : 2
Platform : S3900
IP : 16.1.1.11/24
Hostname : 3900-3
MAC : 00e0-fc00-3190
Hop : 1
Platform : S3900
IP : 16.1.1.1/24
Syntax
View
Any view
Parameter
1-28
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
verbose: Displays the detailed information about all the devices in a cluster.
Description
Use the display cluster members command to display the information about cluster
members.
Execute this command on management devices only.
Example
SN Member number
Device Device type
MAC Address MAC address of a device
Status State of a device
Name Name of a device
# Display the detailed information about the management device and all member
devices.
<aaa_0.Quidway-cluster> display cluster members verbose
Member number:0
Name:aaa_0.Quidway
Device:S3900
MAC Address:00e0-fc00-3901
Member status:Admin
Hops to administrator device:0
IP: 100.100.1.1/24
Version:
Huawei Versatile Routing Platform Software
VRP (tm) Software, Version 3.10
Copyright (c) 1998-2006 Huawei Tech. Co.,Ltd. All rights reserved.
1-29
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
S3900 3900-0002
Member number:1
Name:aaa_1.Quidway
Device:S3900
MAC Address:3900-0000-3334
Member status:Up
Hops to administrator device:2
IP: 16.1.1.11/24
Version:
Huawei Versatile Routing Platform Software
VRP (tm) Software, Version 3.10
Copyright (c) 1998-2006 Huawei Tech. Co.,Ltd. All rights reserved.
S3900 3900-0002
Member number:2
Name: aaa_2.Quidway
Device:S3900
MAC Address:00e0-fc00-3190
Member status:Up
Hops to administrator device:1
IP: 16.1.1.1/24
Version:
Huawei Versatile Routing Platform Software
VRP (tm) Software, Version 3.10
Copyright (c) 1998-2006 Huawei Tech. Co.,Ltd. All rights reserved.
S3900 3900-0002
1-30
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Field Description
IP IP address of a device
Version Software version of the current device
Syntax
ftp cluster
View
User view
Parameter
None
Description
Use the ftp cluster command to establish control connection with the public FTP
server of the cluster and enter FTP client view.
Example
# Connect the FTP clients to the remote FTP server of the cluster.
<123_1.Quidway> ftp cluster
Trying ...
Press CTRL+K to abort
Connected.
220 FTP service ready.
User(none):hello
331 Password required for hello.
Password:
230 User logged in.
1.3.15 ftp-server
Syntax
ftp-server ip-address
undo ftp-server
1-31
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
View
Cluster view
Parameter
Description
Use the ftp-server command to configure an FTP server on the management device
for the member devices in the cluster.
Use the undo ftp-server command to remove the FTP server configured for the
member devices in the cluster.
By default, the management device acts as the FTP Server.
You need to configure the IP address of an FTP server first for the member devices in a
cluster to access the FTP server through the management device.
Example
1.3.16 holdtime
Syntax
holdtime seconds
undo holdtime
View
Cluster view
Parameter
Description
1-32
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Example
1.3.17 ip-pool
Syntax
View
Cluster view
Parameter
Description
Use the ip-pool command to configure a private IP address range for cluster members
on the switch to be configured as the management device.
Use the undo ip-pool command to cancel the IP address range configuration.
Before establishing a cluster, you need to configure a private IP address pool for the
switches to be added to the cluster. When a candidate device is added to a cluster, the
management device assigns a private IP address to it for the candidate device to
communicate with other devices in the cluster. This enables you to manage and
maintain member devices in a cluster through the management device.
Execute these two commands on switches that belong to no cluster only. The IP
address range of an existing cluster cannot be modified.
1-33
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Example
1.3.18 logging-host
Syntax
logging-host ip-address
undo logging-host
View
Cluster view
Parameter
Description
Example
1.3.19 management-vlan
Syntax
management-vlan vlan-id
1-34
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
undo management-vlan
View
System view
Parameter
Description
Use the management-vlan command to specify the management VLAN on the switch.
Use the undo management-vlan command to restore the default management VLAN.
By default, VLAN 1 is the management VLAN.
Note the following when configuring the management VLAN:
z The management VLANs specified on different devices in the same cluster must
be the same VLAN.
z The management VLAN can only be specified before the cluster is created. Once
a switch is added to a cluster, the management VLAN configuration cannot be
modified. To modify management VLAN configuration on a switch belonging to a
cluster, you need to cancel the cluster-related configurations on the switch,
specify the desired VLAN to be the management VLAN, and then re-create the
cluster.
Example
Syntax
View
Cluster view
Parameter
1-35
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Description
Note:
z By default, the network management interface is a management VLAN interface.
z There can be only one network management interface, and the reconfigured
network management interface will replace the old one.
Example
Syntax
View
Cluster view
Parameter
Description
Use the reboot member command to reboot a specified member device on the
management device.
Communication between the management and member devices may be interrupted
due to some configuration errors. Through the remote control function of member
1-36
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
devices, you can control them remotely on the management device. For example, you
can reboot a member device that operates improperly and specify to delete the booting
configuration file when the member device reboots, and thus restore normal
communication between the management and member devices.
The eraseflash keyword specifies to delete the booting configuration file when the
member device reboots.
Example
1.3.22 snmp-host
Syntax
snmp-host ip-address
undo snmp-host
View
Cluster view
Parameter
Description
Use the snmp-host command to configure an SNMP host for the member devices
inside a cluster on the management device.
Use the undo snmp-host command to cancel the SNMP host configuration.
By default, no SNMP host is configured.
You need to configure the IP address of an SNMP host first for the cluster, in order that
the member devices in a cluster can send trap messages to the SNMP host through the
management device.
Execute these two commands on management devices only.
Example
1-37
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Syntax
View
User view
Parameter
source-file: Name of the file to be downloaded from the public TFTP server of the
cluster.
destination-file: Name of the downloaded file which is saved in the switch.
Description
Use the tftp cluster get command to download files from the specified directory on the
public TFTP server to the switch.
Related command: tftp cluster put.
Example
# Download the file name LANSwitch.app from the public TFTP server of the cluster to
the switch and save it as vs.app.
<123_1.Quidway> tftp cluster get LANSwitch.app vs.app
Syntax
View
User view
Parameter
1-38
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
Description
Use the tftp put command to upload the file in the switch to the specified directory in
the TFTP server.
Related command: tftp cluster get.
Example
# Upload the file named vrpcfg.txt in the switch to the public TFTP server of the cluster
and save it as temp.txt.
<123_1.Quidway> tftp cluster put vrpcfg.txt temp.txt
1.3.25 tftp-server
Syntax
tftp-server ip-address
undo tftp-server
View
Cluster view
Parameter
Description
Use the tftp-server command to configure a TFTP server for cluster members on the
management device.
Use the undo tftp-server command to cancel the TFTP server of the cluster members.
By default, no TFTP server is configured.
You need to configure the IP address of the TFTP server for the cluster, in order that the
member devices in the cluster can access the TFTP server through the management
device.
Execute these two commands on management devices only.
Example
1-39
Command Manual – Cluster
Quidway S3100 Series Ethernet Switches-Release 1510 Chapter 1 HGMPv2 Configuration Commands
1.3.26 timer
Syntax
timer interval
undo timer
View
Cluster view
Parameter
Interval: Interval (in seconds) to send handshake packets. This argument ranges from 1
to 255.
Description
Use the timer command to set the interval to send handshake packets.
Use the undo timer command to restore the default value of the interval.
By default, the interval to send handshake packets is 10 seconds.
Inside a cluster, the connections between member devices and the management
device are kept through transmitting handshake packets. Handshake packets in a
cluster enable the management device to acquire the information about member states
link states.
Execute these two commands on management devices only. All the member devices in
a cluster acquire the handshake interval setting from the management device.
Example
1-40
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display poe interface command to view the PoE status of a specific port of the
switch. If the interface-type interface-number argument is not specified, the command
displays the PoE status of all ports of the switch.
Example
1-1
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Table 1-1 Description on the fields of the display poe interface command
Field Description
Port power enabled PoE is enabled on the port
Port power ON/OFF The power on the port is on/off
PoE status on the port:
z user command set port to off: PoE to the port is
turned off by the user
Port power status z Standard PD was detected: A standard PD is
detected
z PD detection is in process: PDs are being
detected
PoE mode on the port:
Port power mode z signal: PoE through the signal cable
z spare: PoE through the spare cable
Port PD class Class of power to the PD
PoE priority of the port:
1-2
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Ethernet1/0/12 off disable signal low user command set port to off
Ethernet1/0/13 off disable signal low user command set port to off
Ethernet1/0/14 off disable signal low user command set port to off
Ethernet1/0/15 off disable signal low user command set port to off
Ethernet1/0/16 off disable signal low user command set port to off
Ethernet1/0/17 off disable signal low user command set port to off
Ethernet1/0/18 off disable signal low user command set port to off
Ethernet1/0/19 off disable signal low user command set port to off
Ethernet1/0/20 off disable signal low user command set port to off
Ethernet1/0/21 off disable signal low user command set port to off
Ethernet1/0/22 off disable signal low user command set port to off
Ethernet1/0/23 off disable signal low user command set port to off
Ethernet1/0/24 off disable signal low user command set port to off
Ethernet1/0/25 off disable signal low user command set port to off
Ethernet1/0/26 off disable signal low user command set port to off
Ethernet1/0/27 off disable signal low user command set port to off
Ethernet1/0/28 off disable signal low user command set port to off
Ethernet1/0/29 off disable signal low user command set port to off
Ethernet1/0/30 off disable signal low user command set port to off
Ethernet1/0/31 off disable signal low user command set port to off
Ethernet1/0/32 off disable signal low user command set port to off
Ethernet1/0/33 off disable signal low user command set port to off
Ethernet1/0/34 off disable signal low user command set port to off
Ethernet1/0/35 off disable signal low user command set port to off
Ethernet1/0/36 off disable signal low user command set port to off
Ethernet1/0/37 off disable signal low user command set port to off
Ethernet1/0/38 off disable signal low user command set port to off
Ethernet1/0/39 off disable signal low user command set port to off
Ethernet1/0/40 off disable signal low user command set port to off
Ethernet1/0/41 off disable signal low user command set port to off
Ethernet1/0/42 off disable signal low user command set port to off
Ethernet1/0/43 off disable signal low user command set port to off
Ethernet1/0/44 off disable signal low user command set port to off
Ethernet1/0/45 off disable signal low user command set port to off
Ethernet1/0/46 off disable signal low user command set port to off
Ethernet1/0/47 off disable signal low user command set port to off
Ethernet1/0/48 off disable signal low user command set port to off
Table 1-2 Description on the fields of the display poe interface command
Field Description
PORT INDEX Port index
1-3
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Field Description
ENABLE PoE enabled/disabled status on the port
Syntax
View
Any view
Parameter
Description
Use the display poe interface power command to view the power information of a
specific port of the switch. If the interface-type interface-number argument is not
specified, the command displays the power information of all ports of the switch.
Example
1-4
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Ethernet1/0/1 0 Ethernet1/0/2 0
Ethernet1/0/3 0 Ethernet1/0/4 0
Ethernet1/0/5 0 Ethernet1/0/6 0
Ethernet1/0/7 0 Ethernet1/0/8 0
Ethernet1/0/9 0 Ethernet1/0/10 12400
Ethernet1/0/11 0 Ethernet1/0/12 0
Ethernet1/0/13 0 Ethernet1/0/14 0
Ethernet1/0/15 0 Ethernet1/0/16 0
Ethernet1/0/17 0 Ethernet1/0/18 0
Ethernet1/0/19 0 Ethernet1/0/20 0
Ethernet1/0/21 0 Ethernet1/0/22 0
Ethernet1/0/23 0 Ethernet1/0/24 0
Ethernet1/0/25 0 Ethernet1/0/26 0
Ethernet1/0/27 0 Ethernet1/0/28 0
Ethernet1/0/29 0 Ethernet1/0/30 0
Ethernet1/0/31 0 Ethernet1/0/32 0
Ethernet1/0/33 0 Ethernet1/0/34 0
Ethernet1/0/35 0 Ethernet1/0/36 0
Ethernet1/0/37 0 Ethernet1/0/38 0
Ethernet1/0/39 0 Ethernet1/0/40 0
Ethernet1/0/41 0 Ethernet1/0/42 0
Ethernet1/0/43 0 Ethernet1/0/44 0
Ethernet1/0/45 0 Ethernet1/0/46 0
Ethernet1/0/47 0 Ethernet1/0/48 0
Syntax
View
Any view
Parameter
None
Description
Use the display poe powersupply command to view the parameters of the power
sourcing equipment (PSE).
Example
1-5
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Table 1-3 Description on the fields of the display poe powersupply command
Field Description
PSE ID Identification of the PSE
The enabled/disabled status of the nonstandard PD
PSE Legacy Detection
detection
PSE Total Power
Total power consumption of the PSE
Consumption
PSE Available Power Available power of the PSE
Power Peak Value Peak power value of the PSE
Power Average Value Average power value of the PSE
Syntax
1-6
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
View
Any view
Parameter
None
Description
Example
Syntax
poe enable
undo poe enable
View
Parameter
None
Description
Use the poe enable command to enable the PoE feature on a port.
Use the undo poe enable command to disable the PoE feature on a port.
By default, the PoE feature on each port is disabled.
Example
1-7
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Syntax
View
System view
Parameter
None
Description
Use the poe legacy enable command to enable the nonstandard-PD detection
function.
Use the undo poe legacy enable command to disable the nonstandard-PD detection
function.
PDs compliant with 802.3af standards are called standard PDs.
By default, the nonstandard-PD detection function is disabled.
Example
Syntax
1-8
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
View
Parameter
max-power: Maximum power distributed to the port, ranging from 1000 to 15400 in mW.
Description
Use the poe max-power command to configure the maximum power that can be
supplied by the current port.
Use the undo poe max-power command to restore the maximum power supplied by
the current port to the default value.
By default, the maximum power that a port can supply is 15400 mW.
Note that the unit of the power is mW and you can set the power in the granularity of
100 mW. The actual maximum power will be 5% larger than what you have set allowing
for the effect of transient peak power.
Example
Syntax
View
Parameter
Description
Use the poe mode command to configure the PoE mode on the current port.
1-9
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Use the undo poe mode command to restore the PoE mode on the current port to the
default mode.
By default, the port is powered through a signal cable.
Note that the S3900 series switches do not support the spare mode currently.
Example
Syntax
View
System view
Parameter
auto: Adopts the auto mode, namely, a PoE management mode based on PoE priority
of the port.
manual: Adopts the manual mode.
Description
Use the poe power-management command to configure the PoE management mode
of port used in the case of power overloading.
Use the undo poe power-management command to restore the default mode.
By default, the PoE management mode on port is auto.
Example
# Configure the PoE management mode on port to auto, that is, adopt the PoE
management mode based on the PoE priority of the port.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] poe power-management auto
Auto Power Management is enabled
1-10
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Syntax
View
Parameter
Description
Use the poe priority command to configure the PoE priority of a port.
Use the undo poe priority command to restore the default PoE priority.
By default, the PoE priority of a port is low.
When the available power of the PSE is too small, the PoE priority and the PoE
management mode are used together to determine how to allocate PoE power for the
new PDs.
When the manual PoE management mode is adopted:
The switch will not supply power to the new PDs if the available power of the PSE is
less than 18.8 W.
When the auto PoE management mode is adopted:
If a PD is plugged into the port with higher priority when the available power of the PSE
is less than 18.8 W, the power supply to the port with the smallest number in the port
group with the lowest priority is turned off, so that a part of power is released for the new
PD.
Example
1-11
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Syntax
View
System view
Parameter
None
Description
Example
Syntax
View
System view
1-12
Command Manual – PoE & PoE Profile
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 PoE Configuration Commands
Parameter
refresh: The refresh update mode is used when the PSE processing software is valid.
The refresh update mode is to upgrade the valid software in the PSE.
full: The full update mode is used when the PSE has no valid processing software. The
full update mode is to delete the invalid software in the PSE completely and then reload
the valid software.
filename: Update file name, with a length of 1 to 64 characters.
Description
Use the poe update command to update the PSE processing software online.
Note:
z The full mode is used only when you cannot use the refresh mode.
z When the PSE processing software is damaged (that is, all the PoE commands
cannot be successfully executed), you can use the full mode to update and restore
the software.
z When the upgrading procedure in refresh update mode is interrupted for some
unexpected reason (such as power-off) or some errors occur, if the upgrade in full
mode fails after restart, you must upgrade in full mode after power-off and restart of
the device, and then restart the device manually. In this way, the former PoE
configuration is restored.
Example
1-13
Command Manual – PoE & PoE Profile Chapter 2 PoE Profile Configuration Comma
Quidway S3900 Series Ethernet Switches-Release 1510 nds
Syntax
View
System view
Parameter
Description
Use the apply poe-profile command to apply the existing PoE profile configuration to
the specified Ethernet port.
Use the undo apply poe-profile command to cancel the PoE profile configuration for
the specified Ethernet port.
Only one PoE profile can be in use at any time for each Ethernet port.
2-1
Command Manual – PoE & PoE Profile Chapter 2 PoE Profile Configuration Comma
Quidway S3900 Series Ethernet Switches-Release 1510 nds
Note:
PoE profile is a set of PoE configurations. One PoE profile can contain multiple PoE
features. When the poe apply command is used to apply a PoE profile to a port, some
PoE features can be applied successfully while some can not. PoE profiles are applied
to S3900 series Ethernet switches according to the following rules:
z When the apply poe-profile command is used to apply a PoE profile to a port, the
PoE profile is applied successfully only if one PoE feature in the PoE profile is
applied properly. When the display current-configuration command is used for
query, it is displayed that the PoE profile is applied properly to the port.
z If one or more features in the PoE profile are not applied properly on a port, the
switch will prompt explicitly which PoE features in the PoE profile are not applied
properly on which ports.
z The display current-configuration command can be used to query which PoE
profiles are applied to a port. However, the command cannot be used to query which
PoE features in a PoE profile are applied successfully.
Example
Syntax
View
Any view
Parameter
2-2
Command Manual – PoE & PoE Profile Chapter 2 PoE Profile Configuration Comma
Quidway S3900 Series Ethernet Switches-Release 1510 nds
Description
Example
# Display detailed configuration information for the PoE profile by the name of
profile-test.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] display poe-profile name profile-test
2.1.3 poe-profile
Syntax
poe-profile profilename
undo poe-profile profilename
View
System view
Parameter
profilename: Name of PoE profile, a string with 1 to 15 characters. It starts with a letter
from a to z or from A to Z, and it cannot be any of reserved keywords like all, interface,
user, undo, and mode.
Description
Example
2-3
Command Manual – PoE & PoE Profile Chapter 2 PoE Profile Configuration Comma
Quidway S3900 Series Ethernet Switches-Release 1510 nds
2-4
Command Manual – UDP Helper
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – UDP Helper
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 UDP Helper Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display udp-helper server command to display the information of the
destination server corresponding to the VLAN interface.
Example
The information above shows that the IP address of the destination server
corresponding to VLAN interface 1 is 192.1.1.2, and no packets have been forwarded.
Syntax
View
User view
Parameter
None
1-1
Command Manual – UDP Helper
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 UDP Helper Configuration Commands
Description
Use the reset udp-helper packet command to clear statistics about the packets
forwarded by UDP Helper.
Example
Syntax
udp-helper enable
undo udp-helper enable
View
System view
Parameter
None
Description
Example
Syntax
View
System view
1-2
Command Manual – UDP Helper
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 UDP Helper Configuration Commands
Parameter
port-number: Port number whose UDP packets are to be forwarded, in the range 1 to
65535 (except for 67 and 68).
dns: Domain name system, corresponding to UDP port 53.
netbios-ds: NetBios datagram service, corresponding to UDP port 138.
netbios-ns: NetBios name service, corresponding to UDP port 137.
tacacs: TAC access control system, corresponding to UDP port 49.
tftp: Trivial file transfer protocol, corresponding to UDP port 69.
time: Time service, corresponding to UDP port 37.
Description
Use the udp-helper port command to specify the UDP port whose UDP broadcast
packets are to be forwarded.
Use the undo udp-helper port command to cancel the configuration.
Example
# Specify port 651 to be the UDP port to forward UDP broadcast packets.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] udp-helper port dns 651
Syntax
View
Parameter
Description
Use the udp-helper server command to specify the destination server for the UDP
broadcast packets to be forwarded.
Use the undo udp-helper server [ ip-address ] command to delete the destination
server for the UDP broadcast packets to be forwarded.
1-3
Command Manual – UDP Helper
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 UDP Helper Configuration Commands
Example
# Specify to forward UDP packets of VLAN1 interface to the destination server with IP
address of 192.1.1.2.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway]interface Vlan-interface 1
[Quidway-Vlan-interface1] udp-helper server 192.1.1.2
1-4
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display snmp-agent command to view engine ID of the local or remote SNMP
entity.
An SNMP engine ID identifies an SNMP entity uniquely within an SNMP domain. As an
indispensable part of an SNMP entity, an SNMP engine performs the function of
sending, receiving and authenticating SNMP message, extracting PDU, packet
encapsulation and the communication with SNMP application.
Example
SNMP local EngineID in the above information represents the engine ID of the local
SNMP entity.
Syntax
View
Any view
1-1
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Parameter
Description
Use the display snmp-agent community command to view the information about the
currently configured community names for SNMPv1 or SNMPv2c.
Example
Community name:private
Group name:private
Storage-type: nonVolatile
Table 1-1 Description on the fields of the display snmp-agent community command
Field Description
Community name Community name
Syntax
View
Any view
Parameter
1-2
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Description
Use the display snmp-agent group command to view group name, security model,
state of various views and storage models.
Example
Table 1-2 Description on the fields of the display snmp-agent group command
Field Description
Group name SNMP group name of the user
Security model of that group, including authorization and
encryption (AuthPriv), authorization and no encryption
Security model
(AuthnoPriv), no authorization and no encryption
(noAuthnoPriv).
Readview Read-only MIB view name corresponding to that group
Syntax
View
Any view
Parameter
1-3
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Description
Use the display snmp-agent mib-view command to view the MIB view configuration
information of the current Ethernet switch.
Example
View name:ViewDefault
MIB Subtree:snmpUsmMIB
Subtree mask:
Storage-type: nonVolatile
View Type:excluded
View status:active
View name:ViewDefault
MIB Subtree:snmpVacmMIB
Subtree mask:
Storage-type: nonVolatile
View Type:excluded
View status:active
View name:ViewDefault
MIB Subtree:snmpModules.18
Subtree mask:
Storage-type: nonVolatile
View Type:excluded
View status:active
Table 1-3 Description on the fields of the display snmp-agent mib-view command
Field Description
View name View name
MIB Subtree MIB subtree
1-4
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Field Description
Subtree mask Subtree mask
Storage-type Storage type
ViewType: included/excluded Permit or forbid access to an MIB object
View status Indicate the MIB view status
Syntax
View
Any view
Parameter
None
Description
Use the display snmp-agent statistics command to view the statistics information
about SNMP packets.
Example
1-5
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display snmp-agent sys-info command to view the system information about
the current SNMP device.
This command displays all information if you choose no parameter.
Example
Syntax
1-6
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
View
Any view
Parameter
None
Description
Use the display snmp-agent trap-list command to view Trap list information.
Related command: snmp-agent trap enable.
Example
Syntax
View
Any view
Parameter
engineid: Displays the SNMPv3 user information of the specified engine ID, which
ranges from 10 to 64 hexadecimal numerals.
username: Displays information about the specified SNMPv3 user, which ranges from
1 to 32 bytes.
groupname: Displays information about users in the specified group name, which
ranges from 1 to 32 bytes.
Description
Use the display snmp-agent usm-user command to view SNMP user information.
1-7
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Example
Table 1-4 Description on the fields of the display snmp-agent usm-user command
Field Description
User name SNMP user name
Group name The group name which the SNMP user name belongs to
Engine ID The character string identifying the SNMP device
Storage type, including volatile, nonVolatile, permanent,
Storage-type
readOnly and other.
UserStatus SNMP user status
Syntax
View
Parameter
None
Description
Use the enable snmp trap updown command to enable the sending of port/interface
linkUp and linkDown traps.
Use the undo enable snmp trap updown command to disable the sending of linkUp
and linkDown traps.
By default, the sending of port/interface linkUp and linkDown traps is enabled.
1-8
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
The enable snmp trap updown and snmp-agent target-host commands are used at
the same time. You can use the snmp-agent target-host command to specify the
hosts that can receive Trap information. To send Trap information, you must configure
at least one snmp-agent target-host command.
Example
# Enable the port Ethernet 1/0/1 to send linkUp and linkDown SNMP traps, using the
community name “public” to the NMS whose IP address is 10.1.1.1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] snmp-agent trap enable
[Quidway] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname public
[Quidway] interface Ethernet1/0/1
[Quidway-Ethernet1/0/1] enable snmp trap updown
1.1.10 snmp-agent
Syntax
snmp-agent
undo snmp-agent
View
System view
Parameter
None
Description
Example
1-9
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Note:
To reduce the risk of being attacked by malicious users against opened socket and
enhance switch security, the S3900 series Ethernet switches provide the following
functions, so that a socket is opened only when it is needed:
z Opening UDP port 161 (used for SNMP Agent) and UDP port 1024 (used for
SNMP-trap Client) when SNMP function is enabled;
z Closing UDP port 161 and 1024 when SNMP is disabled.
The preceding functions are implemented as follows:
z When you enable SNMP Agent by using the snmp-agent command or any of the
snmp-agent configuration commands, UDP port 161 and 1024 are opened at the
same time.
z When you disable SNMP Agent by using the undo snmp-agent command, UDP
port 161 and 1024 are closed at the same time.
Syntax
View
System view
Parameter
read: Indicates that MIB object can only be read. Only the read-only community can
query device information.
write: Indicates that MIB object can be read and written. The read-write community can
configure the device.
community-name: The community name, a character string of 1 to 32 characters.
view-name: The MIB view name, a character string of 1 to 32 characters.
acl-number: The basic access control list (ACL) number specified by the community,
ranging from 2,000 to 2,999.
Description
Use the snmp-agent community command to configure community access name and
enable the access to SNMP.
1-10
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Use the undo snmp-agent community command to cancel the settings of community
access name.
Example
Syntax
View
System view
Parameter
1-11
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Description
Use the snmp-agent group command to configure a new SNMP group, that is, to map
SNMP user to SNMP view.
Use the undo snmp-agent group command to cancel a specified SNMP group.
By default, the SNMP group configured with the snmp-agent group v3 command is
not authenticated and encrypted.
Related command: snmp-agent mib-view, snmp-agent usm-user.
Example
Syntax
View
System view
Parameter
Description
Use the snmp-agent local-engineid command to set the engine ID of the local SNMP
entity.
Use the undo snmp-agent local-engineid command to restore the default setting.
By default, the device engine ID is "Enterprise Number + device information". Device
information is determined according to different products. It can be IP address, MAC
address or user-defined hexadecimal numeral string.
Related command: snmp-agent usm-user.
1-12
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Example
Syntax
View
System view
Parameter
Description
Use the snmp-agent log command to enable the logging function for network
management.
Use the undo snmp-agent log command to disable the logging function.
By default, the logging function is disabled.
Note:
z In the environment of a single device, use the display logbuffer command to view
the logging information for the get and set operations sent from NMS.
z In the fabric environment, use the display logbuffer command on the master
device to view the logging information for the set operation. Use the display
logbuffer command on the device that has received the get message to view the
logging information for the get operation sent from NMS.
Example
# Enable the logging function for both the get and the set operations.
<Quidway> system-view
1-13
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Syntax
View
System view
Parameter
Description
Use snmp-agent mib-view command to create or update the view information, limiting
the MIB objects to be accessed by the NMS.
Use the undo snmp-agent mib-view command to cancel the current setting.
By default, the view name is ViewDefault and OID is 1.
Related command: snmp-agent group.
Example
# Create an SNMP MIB view that consists of all the objects of MIB2 (the corresponding
OID is 1.3.6.1.2.1).
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] snmp-agent mib-view included mib2 1.3.6.1.2.1
Syntax
1-14
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
View
System view
Parameter
byte-count: Maximum size of the SNMP packet (in bytes) that the Agent can
send/receive, ranging from 484 to 17,940.
Description
Use the snmp-agent packet max-size command to set the maximum size of SNMP
packet that the Agent can send/receive.
Use undo snmp-agent packet max-size command to restore the default size of
SNMP packet.
By default, the maximum size of the SNMP packet (in bytes) that the Agent can
send/receive is 1,500 bytes.
Example
# Set the maximum size of the SNMP packet that the Agent can send/receive to 1,042
bytes.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] snmp-agent packet max-size 1042
Syntax
View
System view
Parameter
1-15
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Description
Example
# Set contact information for system maintenance as Dial System Operator # 1234.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] snmp-agent sys-info contact Dial System Operator # 1234
Syntax
View
System view
Parameter
1-16
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
params: Specifies SNMP target host information to be used in the generation of SNMP
messages.
security-string: The community name of SNMP V1 and SNMP V2C, or SNMP V3 user
name, ranging from 1 to 32 characters.
v1: Represents SNMPv1.
v2c: Represents SNMPv2C.
v3: RepresentsSNMPv3.
authentication: Configures to authenticate the packet without encryption.
privacy: Configures to authenticate and encrypt the packet.
Description
Example
# Enable sending SNMP Trap packets to 10.1.1.1 with community name public.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] snmp-agent trap enable standard
[Quidway] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname public
Syntax
1-17
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
View
System view
Parameter
Description
Use the snmp-agent trap enable command to enable the device to send Trap
packets.
Use the undo snmp-agent trap enable command to disable the device to send Trap
packets.
By default, the device is enabled to send Trap messages.
The snmp-agent trap enable and snmp-agent target-host commands must be used
at the same time. The snmp-agent target-host command specifies which hosts can
receive Trap message. However, to send Trap message, you must configure
snmp-agent target-host command.
Example
# Enable to send the Trap packet of SNMP authentication failure to 10.1.1.1. The
community name is public.
<Quidway> system-view
1-18
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Syntax
View
System view
Parameter
Description
Use the snmp-agent trap life command to set aging time for Trap packets. The Trap
packets exceeding the aging time are discarded.
Use the undo snmp-agent trap life command to restore the default aging time for
Trap packets.
By default, the aging time of SNMP Trap packets is 120 seconds.
Related command: snmp-agent trap enable, snmp-agent target-host.
Example
Syntax
View
System view
1-19
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Parameter
Description
Use the snmp-agent trap queue-size command to configure the information queue
length of Trap packet sent to destination host.
Use the undo snmp-agent trap queue-size command to restore the default value.
Related command: snmp-agent trap enable, snmp-agent target-host and
snmp-agent trap life.
By default, the length is 100.
Example
Syntax
View
System view
Parameter
Description
Use the snmp-agent trap source command to configure the source address for
sending Trap message.
Use the undo snmp-agent trap source command to cancel the source address for
sending Trap message.
The SNMP Trap message sent from a server has a source IP address no matter which
interface the Trap message is sent from.
By default, SNMP chooses an outgoing interface.
1-20
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
You can configure this command to trace a specific event using the source address of a
Trap packet.
Note:
Before setting the IP address of an interface address as the source address of the sent
Trap packet, you must configure an IP address for the interface.
Example
# Configure the IP address of the VLAN interface 1 as the source address for
transmitting the Trap packets.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] snmp-agent trap source Vlan-interface 1
Syntax
View
System view
Parameter
1-21
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 SNMP Configuration Commands
Description
Use the snmp-agent usm-user command to add a new user to an SNMP group.
Use the undo snmp-agent usm-user command to cancel a user from the SNMP
group.
While using SNMPv3, SNMP engineID (for authentication) is required when you
configure a remote user for an agent. If you change engineID after configuring a user,
the user corresponding to the original engineID is not effective.
For V1 and V2C, this command will add a new community name. For SNMPv3, it will
add a new user for an SNMP group.
Related command: snmp-agent group, snmp-agent community and snmp-agent
local-engineid.
Example
1-22
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Syntax
View
Any view
Parameter
entry-number: Alarm entry index, in the range of 1 to 65535. If you do not specify this
argument, the configuration of all alarm entries is displayed.
Description
Use the display rmon alarm command to display the configuration of a specified alarm
entry or all the alarm entries.
Related command: rmon alarm.
Example
Table 2-1 Description on the fields of the display rmon alarm command
Field Description
Alarm table Alarm entry
user1 Creator
Valid Valid for alarm entries corresponding to the index
2-1
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Field Description
Samples type Sample type: change value or absolute value
Variable formula Variable formula of the sampled node
Sampling interval Sampling interval
Rising threshold Rising threshold
Falling threshold Falling threshold
Alarm startup type:
risingOrFallingAlarm (an alarm is triggered when the
rising or falling threshold is reached)
When startup enables risingAlarm (an alarm is triggered when the rising
threshold is reached)
FallingAlarm (an alarm is triggered when the falling
threshold is reached)
Latest value Latest sampled value
Syntax
View
Any view
Parameter
event-entry: Event entry index, in the range of 1 to 65535. If you do not specify this
argument, the configuration of all the event entries is displayed.
Description
Use the display rmon event command to display the configuration of a specified event
entry or all the event entries.
The displayed information includes: event entry index, event entry owner, event
description, the action triggered by the event (log or alarm messages), and the time (in
seconds) when the latest event is triggered (in terms of the time elapsed since the
system is started/initialized).
Related command: rmon event.
Example
2-2
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Table 2-2 Description on the fields of the display rmon event command
Field Description
Event table Event entries
The status of the line corresponding to the
VALID
index is valid
Description Event description
Will cause log-trap when triggered The event triggers logs and an trap alarm
last triggered at Time the latest event is triggered
Syntax
View
Any view
Parameter
event-entry: Event entry index, in the range of 1 to 65535. If you do not specify this
argument, the log of all the event entries is displayed.
Description
Use the display rmon eventlog command to display the log of a specified event entry
or all the event entries.
The displayed information includes: the indexes and status of the event entries in the
event table, the time (in seconds) when an event log is generated (in terms of the time
elapsed since the system is started or initialized), and the event description.
Example
2-3
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Table 2-3 Description on the fields of the display rmon eventlog command
Field Description
Event table Event entries
The status of the line corresponding to the
VALID
line is valid
Time when the event is triggered. The event
Generates eventLog 1.1 at 0days
may be triggered several times. 1.1
00h:02m:27s
indicates the time event 1 is first triggered
Description Description of an event log
Syntax
View
Any view
Parameter
Description
Use the display rmon history command to display the RMON history information
about a specified port. The information about the latest sample, including utilization, the
number of errors, the total number of packets and so on, is also displayed.
Related command: rmon history.
Example
2-4
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
dropevents : 0 , octets : 0
packets : 0 , broadcast packets : 0
multicast packets : 0 , CRC alignment errors : 0
undersize packets : 0 , oversize packets : 0
fragments : 0 , jabbers : 0
collisions : 0 , utilization : 0
Table 2-4 Description on the fields of the display rmon eventlog command
Field Description
History control entry Index number in the history control table
The status of the line corresponding to the
VALID
index is valid
Samples interface Sampled interface
Sampling interval Sampling interval
buckets Number of records in the history control table
Syntax
2-5
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
View
Any view
Parameter
Description
Use the display rmon prialarm command to display the configuration of a specified
RMON extended alarm entry or all the RMON extended alarm entries.
Related command: rmon prialarm.
Example
Table 2-5 Description on the fields of the display rmon prialarm command
Field Description
Prialarm table Index number of a line of the extended alarm table
owned by user1 Creator user 1
VALID Valid
Samples type Sample type: change value or absolute value
Variable formula Variable formula of the sampled node
Description Description
Sampling interval Sampling interval
Rising threshold. An alarm is triggered when the
Rising threshold
rising threshold is reached
2-6
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Field Description
Falling threshold. An alarm is triggered when the
Falling threshold
falling threshold is reached
linked with event Event index corresponding to an alarm
Syntax
View
Any view
Parameter
Description
Use the display rmon statistics command to display the RMON statistics of a
specified port.
The displayed information include the number of the following items: collisions, packets
with CRC errors, undersize or oversize packets, broadcast packets, multicast packets,
received bytes, and received packets.
Related command: rmon statistics.
Example
2-7
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Table 2-6 Description on the fields of the display rmon statistics command
Field Description
Index number of the statistics information
Statistics entry
table
VALID Valid
Interface for which information statistics is to
Interface
be made
etherStatsOctets Number of bytes
etherStatsPkts Number of packets
etherStatsBroadcastPkts Number of broadcast packets
2-8
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Syntax
View
System view
Parameter
Description
Use the rmon alarm command to add an alarm entry to the alarm table.
Use the undo rmon alarm command to remove an alarm entry from the alarm table.
You can use the rmon alarm command to define an alarm entry so that a specific alarm
event can be triggered under specific circumstances. The act (such as logging and
sending trap messages to NMS) taken after an alarm event occurs is determined by the
corresponding alarm entry.
2-9
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
With an alarm entry defined in an alarm group, a network device performs the following
operations accordingly:
z Sample the defined alarm variables (alarm-variable) once in each specified period,
which is specified by the sampling-time argument.
z Comparing the sampled value with the set threshold and performing the
corresponding operations, as described in Table 2-7.
Comparison Operation
The sample value is larger than or equal to the Triggering the event identified by
set upper threshold (threshold-value1) the event-entry1 argument
The sample value is smaller than the set lower Triggering the event identified by
threshold (threshold-value2) the event-entry2 argument
Note:
z Before adding an alarm entry, you need to use the rmon event command to define
the events to be referenced by the alarm entry.
z Make sure the node to be monitored exists before executing the rmon alarm
command.
Example
2-10
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Syntax
View
System view
Parameter
Description
Use the rmon event command to add an entry to the event table.
Use the undo rmon event command to delete an entry from the event table.
When adding an event entry to an event table, you need to specify the event index. You
need also to specify the corresponding actions, including logging the event, sending
trap messages to the NMS, and the both, for the network device to perform
corresponding operation when an alarm referencing the event is triggered.
Example
# Add the event entry numbered 10 to the event table and configure it to be a log event.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rmon event 10 log
2-11
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Syntax
View
Parameter
Description
Use the rmon history command to add an entry to a history control table.
Use the undo rmon history command to delete an entry from a history control table.
You can use the rmon history command to sample a specific port. You can also set the
sampling interval and the number of the samples that can be saved. After you execute
this command, the RMON system samples the port periodically and stores the samples
for later retrieval. The sampled information includes utilization, the number of errors,
and total number of packets.
You can use the display rmon history command to display the statistics of the history
control table.
Example
# Create the history entry numbered 1 for Ethernet1/0/1 port, with the table size being
10, the sampling interval being 5 seconds, and the owner being user1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway]interface Ethernet 1/0/1
[Quidway-Ethernet1/0/1]rmon history 1 buckets 10 interval 5 owner user1
2-12
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Syntax
View
System view
Parameter
Description
Use the rmon prialarm command to create an extended entry in an extended RMON
alarm table.
2-13
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Use the undo rmon prialarm command to remove a specified extended alarm entry.
Note:
z Before adding an extended alarm entry, you need to use the rmon event command
to define the events to be referenced by the entry.
z Make sure the node to be monitored exists before executing the rmon event
command.
z You can define up to 50 extended alarm entries.
With an extended alarm entry defined in an extended alarm group, the network devices
perform the following operations accordingly:
z Sampling the alarm variables referenced in the defined extended alarm
expressions (prialarm-formula) once in each period specified by the
sampling-timer argument.
z Performing operations on sampled values according to the defined extended
alarm expressions (prialarm-formula)
z Comparing the operation result with the set thresholds and perform corresponding
operations, as described in Table 2-8.
Comparison Operation
The operation result is larger than or equal to the Triggering the event identified
set upper threshold (threshold-value1) by the event-entry1 argument
The operation result is smaller than or equal to Triggering the event identified
the set lower threshold (threshold-value2) by the event-entry2 argument
Example
2-14
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
# Remove the extended alarm entry numbered 2 from the extended alarm table.
[Quidway] undo rmon prialarm 2
Syntax
View
Parameter
Description
Use the rmon statistics command to add an entry to the statistics table.
Use the undo rmon statistics command to remove an entry from the statistics table.
The RMON statistics management function is used to take statistics of the usage of the
monitored ports and errors occurred to them. The statistics includes the number of the
following items: collisions, packet with CRC errors, undersize (or oversize) packets,
broadcast and multicast packets, received packets and bytes and so on.
Note:
For each port, only one RMON alarm table entry can be created, that is to say, if one
RMON alarm table entry was already created for a given port, creation of another entry
with a different index number for the same port will not succeed.
You can use the display rmon statistics command to display the statistics entries.
2-15
Command Manual – SNMP and RMON
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 RMON Configuration Commands
Example
2-16
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
Note:
To reduce the risk of being attacked by malicious users against opened socket and
enhance switch security, the S3900 series Ethernet switches provide the following
functions, so that a socket is opened only when it is needed:
z Opening UDP port 123 (used for NTP) when NTP is enabled;
z Close UDP port 123 when NTP is disabled.
The preceding functions are implemented as follows:
z When you enable NTP by using the ntp-service unicast-server, ntp-service
unicast-peer, ntp-service broadcast-client, ntp-service broadcast-server,
ntp-service multicast-client, or ntp-service multicast-server command, UDP
port 123 is opened at the same time.
z When you disable NTP from operating in any modes by using the undo forms of the
preceding six commands, UDP port 123 is closed at the same time.
Syntax
View
Any view
Parameter
Description
Use the display ntp-service sessions command to display the information about all
the sessions maintained by local NTP service.
If you do not specify the verbose keyword, the brief information about all the sessions
is displayed.
1-1
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
Caution:
Example
Table 1-1 Description on the fields of the display ntp-service sessions command
Field Description
IP address of the synchronization source (device to be
source
synchronized)
reference Reference clock ID of the synchronization source
Syntax
View
Any view
1-2
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
Parameter
None
Description
Use the display ntp-service status command to display the status of NTP service.
Example
Table 1-2 Description on the fields of the display ntp-service status command
Field Description
Clock status Local clock status
Clock stratum Stratum of the local clock
Address of the remote server or the ID of the
reference clock after the local system is
Reference clock ID
synchronized to a remote NTP server or a
reference clock
Nominal frequency of the local system hardware
Nominal frequency
clock
Actual frequency of the local system hardware
Actual frequency
clock
Clock precision Precision of the local system clock
Offset of the local clock with regard to the NTP
Clock offset
server
Roundtrip delay between the local system and
Root delay the server that serves as the primary reference
clock
The maximum dispersion of the local clock with
Root dispersion
regard to the primary reference clock
1-3
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
Field Description
The maximum dispersion of the remote NTP
Peer dispersion
server
Reference time Reference timestamp
Syntax
View
Any view
Parameter
None
Description
Use the display ntp-service trace command to display the brief information of each
NTP time server along the time synchronization chain from the local device to the
reference clock source.
Example
# View the brief information of each NTP time server along the time synchronization
chain from the local device to the reference clock source.
<Quidway> display ntp-service trace
server4: stratum 4, offset 0.0019529, synch distance 0.144135
server3: stratum 3, offset 0.0124263, synch distance 0.115784
server2: stratum 2, offset 0.0019298, synch distance 0.011993
server1: stratum 1, offset 0.0019298, synch distance 0.011993 refid 'GPS
Receiver'
The above information displays the time synchronization chain of server4: serve4 is
synchronized to server3, server3 is synchronized to server2, server2 is synchronized to
server1, and server1 is synchronized to the reference clock source GPS Receiver.
Syntax
1-4
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
View
System view
Parameter
peer: Allows time request and query on the local NTP server. The local clock can also
be synchronized to the remote server.
server: Allows time request and query on the local NTP server. The local clock cannot
be synchronized to the remote server.
synchronization: Allows only time request on the local NTP server.
query: Allows only query on the local NTP server.
acl-number: Basic access control list (ACL) number, in the range of 2000 to 2999.
Description
Use the ntp-service access command to set the access control permission to the local
NTP server.
Use the undo ntp-service access command to cancel the configured access control
permission.
By default, the access permission to the local NTP server is peer.
Configuring access control permission to the NTP server only provides a least security
measure. Performing authentication is a more reliable way to improve security.
A received access is matched in this order: peer, server, synchronization, and query.
Example
# Configure the access permission of the peer defined in ACL 2076 to be peer.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ntp-service access peer 2076
# Configure the access permission of the peer defined in ACL 2028 to be server.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ntp-service access server 2028
Syntax
1-5
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
View
System view
Parameter
None
Description
Example
Syntax
View
System view
Parameter
Description
1-6
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
Example
# Configure an MD5 authentication key, with the key ID being 10 and the key being
BetterKey.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ntp-service authentication-keyid 10 authentication-mode md5
BetterKey
Syntax
ntp-service broadcast-client
undo ntp-service broadcast-client
View
Parameter
None
Description
Example
# Configure the switch to operate in the broadcast client mode and receive NTP
broadcast packets through VLAN interface 1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface1
[Quidway-Vlan-interface1] ntp-service broadcast-client
Syntax
1-7
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
View
Parameter
authentication-keyid key-id: Specifies the key ID used when sending messages to the
broadcast clients. The key-id argument ranges from 1 to 4294967295. This parameter
is not needed if you specify not to perform authentication.
version number: Specifies the NTP version number which ranges from 1 to 3. The
default version number is 3.
Description
Example
# Configure to send NTP broadcast packets through VLAN interface 1, using the key
numbered 4 for encryption and setting the NTP version number to 3.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] ntp-service broadcast-server authentication-key 4
version 3
Syntax
View
Parameter
None
Description
Use the ntp-service in-interface disable command to disable the interface from
receiving NTP packets.
1-8
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
Use the undo ntp-service in-interface disable command to enable the interface to
receive NTP packets.
By default, the interface can receive NTP packets.
Example
Syntax
View
System view
Parameter
number: Maximum number of the NTP sessions that can to be established locally. This
argument ranges from 0 to 100.
Description
Example
# Configure the maximum number of dynamic NTP sessions that can be established
locally to be 50.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ntp-service max-dynamic-sessions 50
Syntax
1-9
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
View
Parameter
Description
Example
# Configure to receive NTP multicast packets through VLAN interface 1, with the
corresponding multicast group address being 224.0.1.1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] ntp-service multicast-client 224.0.1.1
Syntax
View
Parameter
1-10
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
version number: Specifies the NTP version number which ranges from 1 to 3 and
defaults to 3.
Description
Example
# Configure to send NTP multicast packets through VLAN interface 1, with the multicast
group address being 224.0.1.1, the key numbered 4 used for encryption, and the NTP
version number set to 3.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1]ntp-service multicast-server 224.0.1.1
authentication-keyid 4 version 3
Syntax
View
System view
Parameter
Description
1-11
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
Example
# Enable NTP authentication, with MD5 algorithm adopted, key ID being 37, the key of
BetterKey and being a trusted key.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ntp-service authentication enable
[Quidway] ntp-service authentication-keyid 37 authentication-mode md5
BetterKey
[Quidway] ntp-service reliable authentication-keyid 37
Syntax
View
System view
Parameter
Description
Example
# Specify the source IP addresses of all the NTP packets sent to be the IP address of
VLAN interface 1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ntp-service source-interface Vlan-interface 1
1-12
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
Syntax
View
System view
Parameter
remote-ip: IP address of the NTP peer. This argument cannot be a broadcast address,
a multicast address or the IP address of a reference clock.
peer-name: Peer host name, a string comprising 1 to 20 characters.
authentication-keyid key-id: Specifies the key ID used when sending messages to the
peer. The key-id argument ranges from 1 to 4294967295. By default, the authentication
is not enabled.
Priority: Specifies the peer identified by the remote-ip argument to be the preferred
peer for synchronization.
source-interface Vlan-interface vlan-id: Specifies an interface whose IP address is to
be used as the IP addresses of the NTP packets sent to the peer.
vlan-id: VLAN interface number.
version number: Specifies the NTP version number. The number ranges from 1 to 3
and defaults to 3.
Description
Note:
If you specify a remote server to be the peer of the local Ethernet switch by providing
the remote-ip argument in the ntp-service unicast-peer command, the local switch
operates in the active peer mode. In this case, the local switch and the remote server
can be synchronized to each other.
1-13
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
Example
# Configure to obtain time information from the peer with the IP of 128.108.22.44. And
the local peer can also provide time information to the remote peer. Set the NTP version
number to 3. The source IP addresses of NTP packets sent are that of VLAN interface
1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ntp-service unicast-peer 128.108.22.44 version 3 source-interface
Vlan-interface 1
Syntax
View
System view
Parameter
Description
1-14
Command Manual – NTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Commands
Note:
An Ethernet can operate as a client and be synchronized to the remote NTP server
identified by the remote-ip argument. Note that an NTP server will not be synchronized
to the local switch.
Example
# Configure the local device to be synchronized to the NTP server using the IP address
of 128.108.22.44, with the version number set to 3.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ntp-service unicast-server 128.108.22.44 version 3
1-15
Command Manual – SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Any view
Parameter
None
Description
Use the display rsa local-key-pair public command to display the public key of the
server host key pair. If no key pair is generated, the system prompts “% RSA keys not
found”.
Related command: rsa local-key-pair create.
Example
=====================================================
Time of Key pair created: 20:08:35 2000/04/02
Key name: Quidway_Host
Key type: RSA encryption Key
=====================================================
Key code:
3047
0240
DE99B540 87B666B9 69C948CD BBCC2B60 997F9C18
9AA6651C 6066EF76 242DEAD1 DEFEA162 61677BD4
1A7BFAE7 668EDAA9 FB048C37 A0F1354D 5798C202
2253F4F5
1-1
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
0203
010001
=====================================================
Time of Key pair created: 20:08:46 2000/04/02
Key name: Quidway_Server
Key type: RSA encryption Key
=====================================================
Key code:
3067
0260
D6D70AE4 D2A900BE AC21B4E7 617CBEFA 2BAED61F
B637070C 093F43AF 9DB9D644 BCD921EF D056EF36
26825C2A 1FC0EFC3 E27B5110 3F20F790 6C83274B
D0FC303F 51072D6C B5D0054D 3673EBA0 A4748984
5EBF6EBE CF6A13B1 C7858241 A2A9AA79
0203
010001
Note:
With the rsa local-key-pair create command configured:
z When the switch works in the SSHv1.x compatible mode, if you execute the display
rsa local-key-pair public command, two public keys are displayed. They are
Quidway_Host and Quidway_Server.
z When the switch works in the SSHv2.0 mode, if you execute the display rsa
local-key-pair public command, only one public key is displayed. It is
Quidway_Host.
1-2
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Any view
Parameter
brief: Displays brief information about all public keys on the client.
keyname: Name of the client public key, a string of 1 to 64 characters.
Description
Use the display rsa peer-public-key command to display the client public key of the
specified RSA key pair. If no key name is specified, the command displays all public
keys of the client.
Example
# Display the public key named abcd of the client key pair.
<Quidway> display rsa peer-public-key name abcd
=====================================
Key name: abcd
Key address:
=====================================
Key Code:
308186
028180
739A291A BDA704F5 D93DC8FD F84C4274 631991C1 64B0DF17 8C55FA83 3591C7D4
7D5381D0 9CE82913 D7EDF9C0 8511D83C A4ED2B30 B809808E B0D1F52D 045DE408
61B74A0E 135523CC D74CAC61 F8E58C45 2B2F3F2D A0DCC48E 3306367F E187BDD9
44018B3B 69F3CBB0 A573202C 16BB2FC1 ACF3EC8F 828D55A3 6F1CDDC4 BB45504F
0201
25
1-3
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display ssh server command to display the status or session information
about the SSH server.
Related command: ssh server authentication-retries, ssh server timeout.
Example
Caution:
z If you use the ssh server compatible-ssh1x enable command to configure the server
to be compatible with the client of SSHv1.x version, the SSH version will be
displayed as 1.99.
z If you use the undo ssh server compatible-ssh1x enable command to configure the
server to be not compatible with the client of SSHv1.x version, the SSH version will
be displayed as 2.0.
1-4
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Table 1-1 Description on the fields of the display ssh server session command
Field Description
Conn Number of VTY interface used for user login
Ver SSH version
Encry Encryption algorithm used by SSH
State Current state
Retry Number of retries
SerType Type of service
Username User name
Syntax
View
Any view
Parameter
Description
Use the display ssh user-information command to display information about the
current SSH users, including user name, authentication mode, corresponding public
key name and authorized service types. If the username is specified, the command
displays information about the specified user.
Example
Syntax
1-5
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
Any view
Parameter
None
Description
Use the display ssh-server source-ip command to display the current source IP
address specified for the SSH Server. If you specify a source interface for the SSH
Server, the command displays the IP address of the interface. If not, the command
displays 0.0.0.0.
Example
# Display the current source IP address specified for the SSH Server.
<Quidway> display ssh-server source-ip
The source IP you specified is 192.168.1.1
Syntax
peer-public-key end
View
Parameter
None
Description
Use the peer-public-key end command to return to system view from public key view.
Related command: rsa peer-public-key, public-key-code begin.
Example
1-6
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
Parameter
Description
Use the protocol inbound command to configure the protocols supported in the
current user interface.
By default, both SSH and Telnet are supported.
After you use this command with SSH enabled, your configuration cannot take effect
until next login if no RSA key pair is configured.
Caution:
z When SSH protocol is specified, to ensure a successful login, you must configure
the AAA authentication using the authentication-mode scheme command.
z The protocol inbound ssh configuration fails if you configured
authentication-mode password or authentication-mode none. When you
configured SSH protocol successfully for the user interface, then you cannot
configure authentication-mode password or authentication-mode none any
more.
Example
1-7
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
public-key-code begin
View
Parameter
None
Description
Use the public-key-code begin command to enter public key edit view and input the
client public key.
You can key in a blank space between characters (since the system can remove the
blank space automatically), or press <Enter> to continue your input at the next line. But
the public key, which is generated randomly by the SSHv2.0-supporting client software,
should be composed of hexadecimal characters.
Related command: rsa peer-public-key, public-key-code end.
Example
# Enter public key edit view and input client public keys.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rsa peer-public-key quidway003
[Quidway-rsa-public-key] public-key-code begin
[Quidway-key-code] 308186028180739A291ABDA704F5D93DC8FDF84C427463
[Quidway-key-code] 1991C164B0DF178C55FA833591C7D47D5381D09CE82913
[Quidway-key-code] D7EDF9C08511D83CA4ED2B30B809808EB0D1F52D045DE4
[Quidway-key-code] 0861B74A0E135523CCD74CAC61F8E58C452B2F3F2DA0DC
[Quidway-key-code] C48E3306367FE187BDD944018B3B69F3CBB0A573202C16
[Quidway-key-code] BB2FC1ACF3EC8F828D55A36F1CDDC4BB45504F020125
[Quidway-key-code] public-key-code end
[Quidway-rsa-public-key]
Syntax
public-key-code end
1-8
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
Parameter
None
Description
Use the public-key-code end command to return from public key edit view to public
key view and save the public keys you set.
After you use this command to terminate the public key editing, public key validity will
be checked before the keys are saved.
z If there are illegal characters in the keys, the prompt will be given and the keys will
be discarded. Your configuration this time fails.
z If the keys are valid, they will be saved in the local public key list.
Related command: rsa peer-public-key, public-key-code begin.
Example
# Exit from public key edit view and save the public keys.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway]rsa peer-public-key kk
[Quidway-rsa-public-key]public-key-code begin
[Quidway-rsa-key-code] public-key-code end
[Quidway-rsa-public-key]
Syntax
View
System view
Parameter
None
Description
Use the rsa local-key-pair create command to generate RSA key pairs, whose names
are in the format of switch name plus “_Host” and “_Server”, Quidway_Host and
Quidway_Server for example.
1-9
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
After you use the command, the system prompts you to define the key length.
z In SSHv1.x, the key length is in the range of 512 to 2,048 (bits).
z In SSHv2.0, the key length is in the range of 1024 to 2048 (bits). To make SSH 1.x
compatible, 512- to 2,048-bit keys are allowed on clients, but the length of server
keys must be more than 1,024 bits. Otherwise, clients cannot be authenticated.
z If you use this command to generate an RSA key provided an old one exists, the
system will prompt you to replace the previous one or not.
Note:
With the rsa local-key-pair create command configured:
z When the switch works in the SSHv1.x compatible mode, if you execute the display
rsa local-key-pair public command, two public keys are displayed. They are
Quidway_Host and Quidway_Server.
z When the switch works in the SSHv2.0 mode, if you execute the display rsa
local-key-pair public command, only one public key is displayed. It is
Quidway_Host.
For a successful SSH login, you must generate the local RSA key pairs first. You just
need to execute the command once, with no further action required even after the
system is rebooted.
Related command: rsa local-key-pair destroy, display rsa local-key-pair public.
Example
1-10
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
System view
Parameter
None
Description
Use the rsa local-key-pair destroy command to destroy all existing RSA key pairs at
the server end.
Related command: rsa local-key-pair create.
Example
Syntax
View
System view
Parameter
Description
1-11
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
Syntax
View
System view
Paramter
key-name: Name of the public key of the client, a string in the range of 1 character to 64
characters.
file-name: Name of the public key file (which has been loaded to the Flash in advance),
a string in the range of 1 character to 142 characters.
Description
Use the rsa peer-public-key import sshkey command to transform the format of the
public key files of the client into the public key cryptography standard (PKCS) codes
and configure them automatically.
In this way, you need not configure public keys manually. After the client transmits
public key files of the RSA keys to the server through FTP/TFTP, this command can
transform the public key files to public keys and configure them automatically.
Example
# Transform the format of the public key file named abc in the client into the public key
named 123 automatically.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rsa peer-public-key 123 import sshkey abc
1-12
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
System view
Parameter
Description
Example
Syntax
1-13
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
System view
Parameter
Description
Use the ssh server authentication-retries command to set the authentication retry
times for SSH connections.
Use the undo ssh server authentication-retries command to restore the default
authentication retry times, which will take effect at next login.
Related command: display ssh server.
Note:
If you have used the ssh user authentication-type command to configure the
authentication type to password-publickey, you must set the authentication retry
times to a number greater than or equal to 2, for one is counted when a client sends a
public key to the server.
Example
Syntax
View
System view
Parameter
None
1-14
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the ssh server compatible-ssh1x enable command to make the server
compatible with the SSHv1.x version-supporting client.
Use the undo ssh server compatible-ssh1x enable command to make the server not
compatible with the SSH1v.x version-supporting client.
By default, the server is compatible with the SSHv1.x version-supporting client.
Note:
With the rsa local-key-pair create command configured:
z When the switch works in the SSHv1.x compatible mode, if you execute the display
rsa local-key-pair public command, two public keys are displayed. They are
Quidway_Host and Quidway_Server.
z When the switch works in the SSHv2.0 mode, if you execute the display rsa
local-key-pair public command, only one public key is displayed. It is
Quidway_Host.
Example
Syntax
View
System view
Parameter
hours: Update period of the server key, in hours, ranging from 1 to 24.
Description
Use the ssh server rekey-interval command to set the update interval for the server
key.
Use the undo ssh server rekey-interval command to cancel the current configuration.
1-15
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Caution:
Example
Syntax
View
System view
Parameter
Description
Use the ssh server timeout command to set authentication timeout time for SSH
connections.
Use the undo ssh server timeout command to restore the default timeout time. The
default value takes effect at next login.
Related command: display ssh server.
Example
1-16
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
System view
Parameter
Description
Use the ssh user assign rsa-key command to allocate public keys to SSH users.
Use the undo ssh user assign rsa-key command to remove the association between
the public keys and SSH users. The configuration takes effect at the next login.
If the user already has a public key, the new public key overrides the old one.
Related command: display ssh user-information.
Example
Syntax
View
System view
Parameter
1-17
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Note:
For the password-publickey authentication type:
z SSH1.x client users can access the switch as long as they pass one of the two
authentications.
z SSH2.0 client users can access the switch only when they pass both the
authentications.
all: Specifies the authentication type as either password or RSA public key. That is, the
user can pass the authentication if either the password or RSA public key is correct.
Description
Use the ssh user authentication-type command to define on the server the available
authentication type for an SSH user.
Use the undo ssh user authentication-type command to restore the default setting.
Note:
This command defines available authentication type on the server. The actual
authentication type, however, is determined by the client.
By default, no authentication type is specified for new users, so they cannot access the
switch.
For new users, the server must specify authentication type for them through the ssh
user authentication-type command. Otherwise, they cannot access the switch. The
new authentication type configured takes effect at the next login.
Related command: display ssh user-information.
Example
1-18
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
System view
Parameter
Description
Use the ssh-server source-interface command to specify source interface for SSH
Server. When the specified interface does not exist, the command prompts the
configuration fails.
Use the undo ssh-server source-interface command to cancel the specified source
interface. Then the address of the device determined by the system is for the user to
access to the switch.
Example
Syntax
View
System view
Parameter
1-19
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the ssh-server source-ip command to specify source IP address for SSH Server.
When the specified ip-address is not the IP address of the device, the command
prompts configuration fails.
Use the undo ssh-server source-ip command to cancel the specified IP address.
Then the address of the device determined by the system is for the user to access to
the switch.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display ssh2 source-ip command to display the current source IP address set
for the SSH2 Client. If you specify a source interface for the SSH2 Client, the command
displays the IP address of the interface. If not, the command displays 0.0.0.0.
Example
# Display the current source IP address specified for the SSH2 Client.
<Quidway> display ssh2 source-ip
The source IP you specified is 192.168.0.1
Syntax
1-20
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
Any view
Parameter
None
Description
Use the display ssh server-info command to display the association between the
server public keys configured on the client and the servers.
Example
# Display the association between the server public keys and the servers.
[Quidway] display ssh server-info
Server Name(IP) Server public key name
______________________________________________________
192.168.0.1 abc_key01
192.168.0.2 abc_key02
Syntax
public-key-code begin
View
Parameter
None
Description
Use the public-key-code begin command to enter public key edit view and set server
public keys.
You can key in a blank space between characters (since the system can remove the
blank space automatically), or press <Enter> to continue your input at the next line. But
the public key, which are generated randomly after you use the rsa local-key-pair
create command on the server, should be composed of hexadecimal characters.
Related command: rsa peer-public-key, public-key-code end.
Example
# Enter public key edit view and set server public keys.
<Quidway> system-view
1-21
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
public-key-code end
View
Parameter
None
Description
Use the public-key-code end command to return from public key edit view to public
key view and save the public keys you set.
After you use this command to terminate the public key editing, public key validity will
be checked before the keys are saved.
z If there are illegal characters in the keys, the prompt will be given and the keys will
be discarded. Your configuration this time fails.
z If the keys are valid, they will be saved in the client list.
Related command: rsa peer-public-key, public-key-code begin.
Example
# Exit from public key edit view and save the public keys.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rsa peer-public-key quidway003
[Quidway-rsa-public-key] public-key-code begin
[Quidway-rsa-key-code] public-key-code end
[Quidway-rsa-public-key]
1-22
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.2.5 quit
Syntax
quit
View
User view
Parameter
None
Description
Use the quit command to terminate the connection to the remote SSH server.
Example
Syntax
View
System view
Parameter
Description
Example
1-23
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
System view
Parameter
Description
Use the ssh client assign rsa-key command to specify on the client the public key for
the server to be connected to guarantee the client can be connected to a reliable
server.
Use the undo ssh client assign rsa-key command to remove the association
between the public keys and servers.
Example
# Specify on the client the public key of the server (with IP address 192.168.0.1) as abc.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ssh client 192.168.0.1 assign rsa-key abc
Syntax
View
System view
Parameter
None
1-24
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the ssh client first-time enable command to configure the client to run the initial
authentication.
Use the undo ssh client first-time command to remove the configuration.
Note:
In the initial authentication, if the SSH client does not have the public key for the server
which it accesses for the first time, the client continues to access the server and save
locally the public key of the server. Then at the next access, the client can authenticate
the server with the public key saved locally.
When the initial authentication function is not available, the client does not access the
server if it does not have the public key of the server locally. In this case, you need first
to save the public key of the target server to the client in other ways.
By default, the client runs the initial authentication.
Example
1.2.9 ssh2
Syntax
View
System view
Parameter
1-25
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
prefer_kex: Key exchange algorithm preference. Choose one of the two algorithms
available.
dh_group1: Diffie-Hellman-group1-sha1 key exchange algorithm. It is the default
algorithm.
dh_exchange_group: Diffie-Hellman-group-exchange-sha1 key exchange algorithm.
prefer_ctos_cipher: Encryption algorithm preference from the client to server. It
defaults to AES128.
prefer_stoc_cipher: Encryption algorithm preference from the server to client. It
defaults to AES128.
des: DES_cbc encryption algorithm.
aes128: AES_128 encryption algorithm.
prefer_ctos_hmac: HMAC algorithm preference from the client to server. It defaults to
SHA1_96.
prefer_stoc_hmac: HMAC algorithm preference from the server to client. It defaults to
SHA1_96.
sha1: HMAC-SHA1 algorithm.
sha1_96: HMAC-SHA1_96 algorithm.
md5: HMAC-MD5 algorithm.
md5_96: HMAC-MD5-96 algorithm.
Note:
z DES (Data Encryption Standard) is the standard algorithm for data encryption.
z AES (Advanced Encryption Standard) is the advanced encryption standard
algorithm.
Description
Use the ssh2 command to enable the connection between SSH client and server,
define key exchange algorithm preference, encryption algorithm preference and HMAC
algorithm preference on the server and client.
Example
# Log into the SSHv2.0 server with IP address 10.214.50.51 and make these settings:
z Key exchange algorithm preference as dh_exchange_group
z encryption algorithm preference from the server to client as aes128
z HMAC algorithm preference from the client to server as md5
z HMAC algorithm preference from the server to client as sha1_96
1-26
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ssh2 10.214.50.51 prefer_kex dh_exchange_group prefer_stoc_cipher
aes128 prefer_ctos_hmac md5 prefer_stoc_hmac sha1_96
Syntax
View
System view
Parameter
Description
Use the ssh2 source-interface command to specify source interface for SSH2 Client.
When the specified interface does not exist, the command prompts the configuration
fails.
Use the undo ssh2 source-interface command to remove the specified source
interface. Then the address of the device determined by the system is for the user to
access to the SSH2 Server.
Example
Syntax
View
System view
1-27
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Parameter
Description
Use the ssh2 source-ip command to specify the source interface for SSH2 Client.
Use the undo ssh2 source-ip command to remove the specified source IP address.
Then, the address of the device determined by the system is for the user to access to
the SSH2 Server.
When the specified ip-address is not the IP address of the device, the command
prompts configuration fails.
Example
Syntax
View
System view
Parameter
None
Description
Use the sftp server enable command to enable the secure FTP (SFTP) server.
Use the undo sftp server enable command to disable the SFTP server.
By default, the SFTP server is disabled.
Example
1-28
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Syntax
View
System view
Parameter
username: Local user name or the user name defined on the remote RADIUS server, a
string of 1 to 80 characters.
stelnet: Sets the service type to Telnet.
sftp: Sets the service type to SFTP.
all: Includes Telnet and SFTP two services types.
Description
Use the ssh user service-type command to specify service type for a user.
Use the undo ssh user service-type command to restore the default service type for
the SSH user in the system.
The default service type for the SSH user is stelnet.
Related command: display ssh user-information.
Example
Syntax
View
System view
1-29
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Parameter
Description
Use the sftp timeout command to set the timeout time for the SFTP user connection.
Use the undo sftp timeout command to restore the default timeout time.
After you set the timeout time for the SFTP user connection, the system will
automatically release the connection when the time is up.
Example
# Set the timeout time for the SFTP user connection to 500 minutes.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] sftp timeout 500
Syntax
bye
View
Parameter
None
Description
Use the bye command to terminate the connection to the remote SFTP server and
return to system view.
This command has the same function as the exit and quit commands.
Example
# Terminate the connection to the remote SFTP server (assume that the server IP
address is 10.1.1.2).
sftp-client> bye
Bye
[Quidway]
1-30
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.4.2 cd
Syntax
cd [ remote-path ]
View
Parameter
Description
Use the cd command to change the current path on the remote SFTP server. If you did
not specify the remote-path argument, the current path is displayed.
Note:
You can use the cd.. command to return to the upper level directory.
You can use the cd / command to return to the root directory of the system (that is,
flash:/).
Example
1.4.3 cdup
Syntax
cdup
View
Parameter
None
1-31
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the cdup command to return the current path on the remote SFTP server to the
upper directory.
Example
1.4.4 delete
Syntax
delete remote-file
View
Parameter
Description
Use the delete command to delete the specified file from the remote SFTP server.
This command has the same function as the remove command.
Example
1.4.5 dir
Syntax
dir [ remote-path ]
1-32
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
Parameter
Description
Use the dir command to display the specified directory on the remote SFTP server.
If the remote-path argument is not specified, the files in the current directory are
displayed.
This command has the same function as the ls command.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display sftp source-ip command to display the current source IP address
specified for the SFTP Client.
If you specify a source interface for the SFTP Client, the command displays the IP
address of the interface. If not, the command displays 0.0.0.0.
1-33
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
# Display the current source IP address specified for the SFTP Client.
<Quidway> display sftp source-ip
The source IP you specified is 192.168.1.1
1.4.7 exit
Syntax
exit
View
Parameter
None
Description
Use the exit command to terminate the connection to the remote SFTP server and
return to system view.
This command has the same function as the bye and quit commands.
Example
1.4.8 get
Syntax
View
Parameter
Description
Use the get command to download and save a file from a remote server.
1-34
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
If no local file name is specified, the name of the source file is used by default.
Example
1.4.9 help
Syntax
help [ command ]
View
Parameter
Description
Use the help command to get the help information about the specified or all SFTP client
commands.
If the command argument is not specified, the help information about all commands is
displayed.
Example
1.4.10 ls
Syntax
ls [ remote-path ]
View
Parameter
1-35
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the ls command to display the files in the specified directory on the remote SFTP
server..
If the remote-path argument is not specified, the files in the current directory are
displayed.
This command has the same function as the dir command.
Example
1.4.11 mkdir
Syntax
mkdir remote-path
View
Parameter
Description
Use the mkdir command to create a directory on the remote SFTP server.
Example
1.4.12 put
Syntax
1-36
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
Parameter
Description
Use the put command to upload a local file to the remote SFTP server.
If no name is specified for the file to be saved on the remote SFTP server, the name of
the source file is used.
Example
# Upload local file vrpcfg.cfg to the remote SFTP server and save it with the name 1.txt.
sftp-client>put temp.c vrpcfg.cfg 1.txt
Local file:vrpcfg.cfg ---> Remote file: flash:/1.txt
Uploading file successfully ended
1.4.13 pwd
Syntax
pwd
View
Parameter
None
Description
Use the pwd command to display the current directory on the SFTP server.
Example
1.4.14 quit
Syntax
quit
1-37
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
View
Parameter
None
Description
Use the quit command to terminate the connection to the remote SFTP server and exit
to system view.
This command has the same function as the bye and exit commands.
Example
1.4.15 remove
Syntax
remove remote-file
View
Parameter
Description
Use the remove command to delete the specified file from the remote SFTP server.
This command has the same function as the delete command.
Example
1-38
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.4.16 rename
Syntax
View
Parameter
Description
Use the rename command to change the name of the specified file on the SFTP server.
Example
1.4.17 rmdir
Syntax
rmdir remote-path
View
Parameter
Description
Use the rmdir command to delete the specified directory from the remote SFTP server.
Example
1-39
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
1.4.18 sftp
Syntax
View
System view
Parameter
1-40
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Description
Use the sftp command to establish a connection to the SFTP server and enter SFTP
Client view.
Example
# Establish a connection to the SFTP server with IP address 10.1.1.2 and use the
default encryption algorithms.
[Quidway]sftp 192.168.0.65
Input Username: kk
Trying 192.168.0.65 ...
Press CTRL+K to abort
Connected to 192.168.0.65 ...
sftp-client>
Syntax
View
System view
Parameter
Description
Use the sftp source-interface command to specify source interface for SFTP Client.
When the specified interface does not exist, the command prompts the configuration
fails.
Use the undo sftp source-interface command to remove the specified source
interface. Then the address of the device determined by the system is for the user to
access to the SFTP Server.
1-41
Command Manual –SSH Terminal Service Chapter 1 SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510 Configuration Commands
Example
Syntax
View
System view
Parameter
Description
Use the sftp source-ip command to specify the source IP address for SFTP Client.
When the specified ip-address is not the IP address of the device, the command
prompts configuration fails.
Use the undo sftp source-ip command to remove the specified source IP address.
Then, the address of the device determined by the system is for the user to access to
the SFTP Server.
Example
1-42
Command Manual – File System Management
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – File System Management
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
For Ethernet switches that support IRF (intelligent resilient framework), you can input a
file path and file name in one of the following ways:
z In universal resource locator (URL) format and starting with “unit[No.]>flash:/” ( [No.]
represents the unit ID of the switch). This method is used to specify a file on a
specified unit. For example, if the unit ID of the switch is 1, the URL of a file named
text.txt and residing in the root directory must be “unit1>flash:/text.txt”.
z In URL format and starting with “flash:/”. This method can be used to specify a file in
the Flash memory of the current unit.
z Inputting the path name or file name directly. This method can be used to specify a
path or a file in the current work directory.
Syntax
View
User view
Parameter
all: Specifies all the files, including app files, configuration files and Web files.
app: Specifies app files.
configuration: Specifies configuration files.
web: Specifies Web files.
fabric: Applies the configuration to the whole fabric.
1-1
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the boot attribute-switch command to switch between the main and backup
attribute for all the files or a specified type of files. That is, changes a file with the main
attribute to one with the backup attribute, or vice versa.
Example
Syntax
View
User view
Parameter
file-url: Path or the name of the app file in the Flash, a string comprising 1 to 64
characters.
fabric: Applies the configuration to the whole fabric.
Description
Use the boot boot-loader command to configure an app file of the fabric or of a device
in the fabric to be of the main attribute. The app file specified by this command
becomes the main startup file when the device starts the next time.
If you execute the boot boot-loader command without the fabric keyword, the
configuration applies to the local unit only.
1-2
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Caution:
Before configuring the main or backup attribute for a file in the fabric, make sure the file
already exists on all devices in the fabric. This is because Ethernet switches do not
allows you to specify an app file only existing in other unit’s Flash memory as the app
startup file of the local unit.
Example
# Configure the file named boot.bin to be the main startup file of the fabric.
<Quidway> boot boot-loader boot.bin fabric
The specified file will be booted next time on unit 1!
The specified file will be booted next time on unit 2!
Syntax
View
User view
Parameter
file-url: Path or the name of the app file in the Flash, a string comprising 1 to 64
characters.
fabric: Applies the configuration to the whole fabric.
Description
Use the boot boot-loader backup-attribute command to configure an app file of the
fabric or of a device in the fabric to be of the backup attribute. The app file specified by
this command becomes the backup startup file when the device starts up the next time.
When the main startup file is unavailable, the backup startup file is used to start the
switch.
If you execute the boot boot-loader backup-attribute command without the fabric
keyword, the configuration applies to the local unit only.
1-3
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Caution:
Before configuring the main or backup attribute for a file in the fabric, make sure the file
already exists on all devices in the fabric. This is because Ethernet switches do not
allows you to specify an app file only existing in other unit’s Flash memory as the app
startup file of the local unit.
Example
# Configure the file named backup.bin to be the backup startup file of the fabric.
<Quidway> boot boot-loader backup-attribute backup.bin fabric
Set boot file backup-attribute successfully on unit 1!
Set boot file backup-attribute successfully on unit 2!
Syntax
View
User view
Parameter
Description
Use the boot web-package command to configure a Web file in the fabric to be of the
main or backup attribute.
1-4
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Caution:
z Before configuring the main or backup attribute for a Web file in the fabric, make
sure the file exists on all devices in the fabric.
z The configuration of the main or backup attribute of a Web file takes effect
immediately without restarting the device.
z After you upgrade a Web file, you need to specify the new Web file in the Boot menu
after restarting the switch. Otherwise, the Web server cannot function normally.
Example
Syntax
View
Any view
Parameter
Description
Use the display boot-loader command to display the information about the app
startup files of the fabric or of a device in the fabric. Displayed information includes the
current app startup file name, and the main and backup app startup files to be used
when the switch starts the next time.
If you execute the display boot-loader command without unit unit-id, all app startup
files of the fabric will be displayed.
Example
1-5
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
User view
Parameter
None
Description
Use the startup bootrom-access enable command to specify a switch to prompt for
the customized password before entering the BOOT menu.
Use the undo startup bootrom-access enable command to disable the above
function.
By default, the above function is enabled.
You can use the display startup command to verify these two commands.
Example
# Specify to prompt for the customized password before entering the BOOT menu.
<Quidway> startup bootrom-access enable
Note:
Note to limit the lengths of file path and file name within the following ranges regulated
for the switch.
z A directory name should be no more than 91 characters.
z A file name plus its local path name should be no more than 127 characters.
z A device name should be no more than 14 characters.
z A file name plus its complete path name should be no more than 142 characters.
1.2.1 cd
Syntax
cd directory
1-6
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
User view
Parameter
Description
Example
<Quidway> pwd
unit1>flash:/test
1.2.2 copy
Syntax
View
User view
Parameter
fileurl-source: Path name or file name of the source file in the Flash.
fileurl-dest: Path name or file name of the destination file in the Flash.
Description
Example
1-7
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1.2.3 delete
Syntax
View
User view
Parameter
Description
Use the delete command to delete a specified file from the Flash memory on a switch.
You can use the * character in this argument as a wildcard.
If you execute the delete command with the /unreserved keyword specified, the
specified file is completely deleted. That is, the file cannot be restored.
For a file that has both the main and backup attributes, the delete running-files
deletes its main attribute only, and the delete standby-files command deletes its
backup attribute only.
Deleted files are stored in the recycle bin.
Following are the notes on deleted files:
z The dir command cannot display the information about deleted files.
z To display the information about deleted files, use the dir /all command.
z To restore a deleted file, use the undelete command.
z To delete the files in the recycle bin, use the reset recycle-bin command.
When you use the delete running-file or delete standby-file command, you will be
prompted to confirm whether to delete all files with the main/backup attribute. If you
choose yes, the corresponding files are deleted. If you choose no, the system will
further to prompt you confirming the following items orderly:
1) Delete the image file with the main/backup attribute?
2) Delete the configuration file with the main/backup attribute?
3) Delete the Web file with the main/backup attribute?
1-8
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Caution:
For deleted files whose names are the same, only the latest deleted file is stored in the
recycle bin and can be restored.
Example
# Delete the files that are of the main attribute in the fabric.
<Quidway> delete running-files /fabric
Delete the running files ? [Y/N]:y
Start deleting ..........
Unit1 delete success!
Unit2 delete success!
%Apr 4 11:25:40:973 2000 Quidway VFS/6/OPLOG:- 1 - Unit1 delete success!
%Apr 4 11:25:41:56 2000 Quidway VFS/6/OPLOG:- 1 – Unit2 delete success!
Deleting ... done
1.2.4 dir
Syntax
View
User view
1-9
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
/all: Displays the information about all the files, including those in the recycle bin.
/fabric: Displays the information about all the specified files in the fabric.
file-ur: Path name or the name of a file in the Flash memory. You can use the *
character as a wildcard. For example, the dir *.txt command displays the information
about all the files with the extension of txt in the current directory.
Description
Use the dir command to display the information about the specified files or directories
in the Flash memory on a switch.
You can use the * character as a wildcard.
In the output information, files with the main, backup or main/backup attribute a
tagged..
Note:
In the output information of the dir /all command, deleted files (that is, those in the
recycle bin) are embraced in brackets.
Example
# Display the information about all the normal files in the root directory of the file system
on the local unit.
<Quidway> dir
Directory of unit1>flash:/
1 (*) -rw- 5792495 Apr 02 2000 00:06:50 s3900.bin
2 (*) -rw- 1965 Apr 01 2000 23:59:13 3comoscfg.cfg
3 -rw- 5841301 Apr 02 2000 21:42:13 s3900d8.bin
4 -rw- 224 Apr 02 2000 01:36:30 s3800.bin
5 -rw- 279296 Apr 02 2000 00:22:01 test.abc
15367 KB total (3720 KB free)
(*) -with main attribute (b) -with backup attribute
(*b) -with both main and backup attribute
# Display the information about all the files (including the files in the recycle bin) in the
root directory of the file system of the fabric.
<Quidway> dir /all /fabric
Directory of unit1>flash:/
1 (*) -rw- 5792495 Apr 02 2000 00:06:50 s3900.bin
2 -rwh 4 Apr 01 2000 23:55:26 snmpboots
1-10
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
# Display the information about all the files whose names begin with the character t
(including those in the recycle bin) in the local directory unit1>flash:/test/.
<Quidway> dir /all test/t*
Directory of unit1>flash:/test/
0 -rw- 279296 Apr 04 2000 14:45:19 test.txt
15367 KB total (3720 KB free)
(*) -with main attribute (b) -with backup attribute
(*b) -with both main and backup attribute
1.2.5 execute
Syntax
execute filename
View
System view
Parameter
Description
1-11
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
This command executes command lines in the batch file in sequence. Note that the
batch file cannot contain any invisible character. If any invisible character is found, the
command will quit execution and this process is irretrievable.
This command is the automation of executing commands in the batch file manually
except that the command:
z Does not guarantee that every command in the file is executed.
z Does not perform hot backup.
z Does not restrict the forms and contents of commands in the file.
Example
# Execute the batch file named test.bat under the directory flash:/.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] execute test.bat
<Quidway>
....
%Created dir unit1>flash:/test3.
Syntax
View
System view
Parameter
alert: Prompts for confirmation before performing file-related operations that have
potential risks.
quiet: Disables prompts for file-related operations.
Description
Use the file prompt command to configure the prompt mode for file-related operations.
By default, a switch prompts for confirmation before performing file-related operations
that have potential risks.
If you set the prompt mode of the file-related operations to quiet, the switch does not
prompt for confirmation before performing file-related operations. In this case, the
system is more likely to operate improperly if irretrievable file-related operations are
performed. For example, when the prompt mode is set as alert, the following messages
will be displayed when you delete a file:
<Quidway> delete unit1>flash:/te.txt
1-12
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Delete unit1>flash:/te.txt?[Y/N]:y
......
%Delete file unit1>flash:/te.txt...Done.
when the prompt mode is set as quiet, the following messages will be displayed when
you delete a file:
<Quidway> delete unit1>flash:/te.txt
....
%Delete file unit1>flash:/te.txt...Done.
Example
1.2.7 fixdisk
Syntax
fixdisk device
View
User view
Parameter
Description
Example
1.2.8 format
Syntax
format device
1-13
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
User view
Parameter
Description
Caution:
The format operation leads to the loss of all the files on the Flash memory, and the
operation is irretrievable.
Example
# Format Flash.
<Quidway> format unit1>flash:
All data on unit1>flash: will be lost , proceed with format ? [Y/N]:y
% Now begin to format flash, please wait for a while...
Format winc: completed
1.2.9 mkdir
Syntax
mkdir directory
View
User view
Parameter
Description
1-14
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Create a directory in the current directory, with the name being dd.
<Quidway> mkdir dd
% Created dir flash:/dd
1.2.10 more
Syntax
more file-url
View
User view
Parameter
Description
Example
1.2.11 move
Syntax
View
User view
Parameter
fileurl-source: Path name or file name of the source file in the Flash.
1-15
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
fileurl-dest: Path name or file name of the target file in the Flash, a string comprising 1
to 142 characters.
Description
Use the move command to move a file to a specified directory. You can also assign a
new name for the file.
If the target file name is the name of an existing file, the system prompts you for the
confirmation to overwrite the existing file.
Example
# Move the file named sample.txt from flash:/test/ to flash:/, with the name not changed.
<Quidway> move flash:/test/sample.txt flash:/sample.txt
Move flash:/test/sample.txt to flash:/sample.txt ?[Y/N]:y
% Moved file flash:/test/sample.txt to flash:/sample.txt
1.2.12 pwd
Syntax
pwd
View
User view
Parameter
None
Description
Example
1.2.13 rename
Syntax
View
User view
1-16
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
Description
Example
Syntax
View
User view
Parameter
file-url: Path name or file name of a file in the Flash. This argument supports the
wildcard “*”.
/force: Does not prompt for confirmation before deleting files.
/fabric: Clear the recycle bins of all Flash memories in the fabric.
Description
Use the reset recycle-bin command to clear the recycle bin in the Flash.
The files deleted using the delete command are actually moved to the recycle bin. To
delete them completely, you can use the reset recycle-bin command.
Note:
The system will not prompt you to confirm deletion of each file when you clear recycle
bins throughout the fabric.
1-17
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
1.2.15 rmdir
Syntax
rmdir directory
View
User view
Parameter
Description
Example
1.2.16 undelete
Syntax
undelete file-url
1-18
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
User view
Parameter
Description
Use the undelete command to restore a deleted file in the recycle bin.
If the name of the file to be restored is the same as that of an existing file, the system
prompts you for the confirmation to overwrite the latter.
Example
Syntax
View
User view
Parameter
Description
Use the update fabric command to use an app, Boot ROM or Web file on a device in
the fabric to upgrade all the units in the fabric.
Caution:
Use update fabric when all traffic flows are stopped only.
Global upgrade to app, Web and Boot ROM files are supported currently. You can
specify the type of files to be upgraded by the file extension. For example, S3900.bin,
1-19
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
S3900.btm and S3900.web represents host software, Boot ROM files and Web files
respectively.
Note:
z You can upgrade files with extensions web, bin and btm.
z The file used for upgrading must exist in the root directory of a unit in the fabric.
z After the file used for upgrading is synchronized, it will be copied to root directories
of other units in the fabric.
z When you execute the update fabric command, the system first collects the free
space information of each unit and then decides whether the available Flash space
is enough on each unit. The available space should be at least 1 K larger than the
size of file used for upgrading. If any space inefficiency is found, the system will
prompt the user to make room on the Flash memory of this unit to complete the
upgrade.
z Before the file is copied to all units, the system collects version information of files
with the corresponding type, compares the version compatibility, and outputs the
result. If the file used for upgrading cannot replace the corresponding file on any unit,
the command fails and a message is given, describing the failure reason.
Example
# Upgrade all devices in the fabric with the app file named s3900.bin on the local unit.
<Quidway>display irf-fabric
Fabric name is 3900-EI, system mode is L3.
Fabric authentication : no authentication, number of units in stack: 1.
Unit Name Unit ID
First 1(*)
First 2
First 8
<Quidway>update fabric s3900.bin
This will update the Fabric. Continue? [Y/N] y
The software is verifying ...
The result of verification is :
Unit ID Free space(bytes) Enough Version comparison
1 2126848 Y Y
2 2125824 Y Y
8 1439744 Y Y
warning: the verification is completed, start the file transmission [Y/N] y
The fabric is being updated, 100%
The s3900.bin is stored on unit 1 successfully
1-20
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
User view
Parameter
Description
Example
# Back up the current configuration of unit 8 to the file aaa.cfg on the TFTP server with
IP address 1.1.1.253.
<Quidway> backup unit 8 current-configuration to 1.1.1.253 aaa.cfg
Backup current configuration to 1.1.1.253. Please wait...
File will be transferred in binary mode.
Copying file to remote tftp server. Please wait...
TFTP: 1958 bytes sent in 0 second(s).
1-21
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
# Back up the current configuration of the whole fabric to the file aaa.cfg on the TFTP
server with IP address 1.1.1.253.
<Quidway> backup fabric current-configuration to 1.1.1.253 aaa.cfg
Backup current configuration to 1.1.1.253. Please wait...
File will be transferred in binary mode.
Copying file to remote tftp server. Please wait...
TFTP: 2029 bytes sent in 0 second(s).
Syntax
View
User view
Parameter
Description
Use the restore unit startup-configuration from command to restore the startup
configuration of a specified switch from a file on a TFTP server.
Use the restore fabric startup-configuration from command to restore the startup
configuration of the whole fabric from a file on a TFTP server.
Example
# Restore the startup configuration of unit 7 from the file aaa.cfg on the TFTP server
with the IP address 1.1.1.253.
<Quidway> restore unit 7 startup-configuration from 1.1.1.253 aaa.cfg
Restore startup configuration from 1.1.1.253. Please wait...
1-22
Command Manual – File System Management Chapter 1 File System Management Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
# Restore the startup configuration of the whole fabric from the file bbb.cfg on the TFTP
server with the IP address 1.1.1.253.
<Quidway> restore fabric startup-configuration from 1.1.1.253 bbb.cfg
Restore startup configuration from 1.1.1.253. Please wait...
File will be transferred in binary mode.
Downloading file from remote tftp server, please wait...
TFTP: 2029 bytes sent in 0 second(s).
1-23
Command Manual - File System Management Chapter 2 FTP/TFTP Lighting Configuration
Quidway S5100-EI Series Ethernet Switches-Release 1510 Commands
Syntax
View
System view
Parameter
None
Description
Use the ftp server enable command to enable FTP server and allow FTP users to log
in.
Use the undo ftp server command to disable FTP server and inhibit FTP users from
logging in.
By default, FTP server is disabled.
You can use the commands here to enable or disable FTP server. Disabling FTP server
can ensure secure operating of the device.
Example
2.1.2 local-user
Syntax
local-user user-name
2-1
Command Manual - File System Management Chapter 2 FTP/TFTP Lighting Configuration
Quidway S5100-EI Series Ethernet Switches-Release 1510 Commands
View
System view
Parameter
user-name: Local user name, a character string of no more than 80 characters. This
string cannot contain the following characters: /:*?<>. It can contain no more than one
"@" character; the pure user name (the part before "@", that is, the user ID) cannot be
longer than 55 characters. The user name is case-insensitive; that is, the system
considers UserA and usera you input as the same user.
service-type: Specifies a user type. You can specify one of the following user types:
telent, ftp, lan-access (this type of users are mainly Ethernet access users, for
example, 802.1x users), ssh, and terminal (this type of users can use terminal service,
that is, the users can log into the switch through Console port, AUX port, or
Asynchronous serial port).
all: Specifies all users.
Description
Use the local-user command to add a local user and enter local user view.
Use the undo local-user command to delete the specified local user(s).
Example
Syntax
View
System view
2-2
Command Manual - File System Management Chapter 2 FTP/TFTP Lighting Configuration
Quidway S5100-EI Series Ethernet Switches-Release 1510 Commands
Parameter
auto: Specifies to display passwords in the modes adopted when the passwords are
set. If a password is set in cipher mode, the password will be displayed in cipher text; or
else, the password will be displayed in plain text.
cipher-force: Specifies to display passwords in cipher text forcibly.
Description
Example
# Set the password display mode to be used when the switch displays local users to
cipher-force.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] local-user password-display-mode cipher-force
2.1.4 password
Syntax
View
Parameter
Description
Use the password command to set a password for the local user.
2-3
Command Manual - File System Management Chapter 2 FTP/TFTP Lighting Configuration
Quidway S5100-EI Series Ethernet Switches-Release 1510 Commands
Example
2.1.5 ftp
Syntax
View
User view
Parameter
Description
Use the ftp command to establish a control connection with a remote FTP server and
enter FTP client view.
Example
2-4
Command Manual - File System Management Chapter 2 FTP/TFTP Lighting Configuration
Quidway S5100-EI Series Ethernet Switches-Release 1510 Commands
2.1.6 get
Syntax
View
Parameter
Description
Use the get command to download a remote file and save the file to the local device.
If no local file name is specified, the switch will save the remote file locally with the
same file name as that on the remote FTP server
Example
# Download the file temp1.c and save it to the local file temp.c.
<Quidway> ftp 1.1.1.1
Trying ...
Press CTRL+K to abort
Connected.
220 FTP service ready.
User(none):hello
331 Password required for hello.
Password:
230 User logged in.
[ftp] get temp1.c temp.c
200 Port command okay.
150 Opening ASCII mode data connection for temp1.c.
..226 Transfer complete.
FTP: 1709 byte(s) received in 2.176 second(s) 0.00 byte(s)/sec.
[ftp]
Syntax
2-5
Command Manual - File System Management Chapter 2 FTP/TFTP Lighting Configuration
Quidway S5100-EI Series Ethernet Switches-Release 1510 Commands
View
User view
Parameter
Description
Use the tftp get command to download a file from a TFTP server to this switch.
Example
# Download the file LANSwitch.bin from the TFTP server with the IP address of
1.1.3.214 to this switch and save it to the file vs.bin.
<Quidway> tftp 1.1.3.214 get LANSwitch.bin vs.bin
2-6
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Syntax
display ftp-server
View
Any view
Parameter
None
Description
Use the display ftp-server command to display the FTP server-related settings of a
switch when it operates as an FTP server.
You can use this command to verify FTP server-related configurations.
Example
# Display the FTP server-related settings of the switch (assuming that the switch is
operating as an FTP server).
<Quidway> display ftp-server
FTP server is running
Max user number 1
User count 0
Timeout value(in minute) 30
Field Description
FTP server is running The FTP server is started
The FTP server can accommodate up to
Max user number 1
one user.
User count 0 The current login user number is 0.
Timeout value (in minute) 30 The connection idle time is 30 minutes.
1-1
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Syntax
View
Any view
Parameter
None
Description
Use the display ftp-server source-ip command to display the source IP address set
for an FTP server. If a source interface is specified for the FTP server, the IP address of
the source interface will be displayed. If neither source interface nor source IP address
is specified, 0.0.0.0 will be displayed.
Example
Syntax
display ftp-user
View
Any view
Parameter
None
Description
Use the display ftp-user command to display the settings of the current FTP user,
including the user name, host IP address, port number, connection idle time, and
authorized directory.
Example
1-2
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
# If the user name exceeds ten characters, characters behind the tenth will be
displayed in the second line with a left-aligning mode. Take username username@test
for example, the result is:
<Quidway> display ftp-user
Username Host IP Port Idle Homedir
username@t 10.110.3.5 1074 2 flash:
est
Syntax
View
System view
Parameter
Description
Use the ftp disconnect command to terminate the connection between a specified
user and the FTP server.
Note:
If you attempt to disconnect a user that is uploading/downloading data to/from the FTP
server that is acted by an S3900, the S3900 will disconnect the user after the data
transmission is completed.
Example
1-3
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Syntax
View
System view
Parameter
None
Description
Use the ftp server enable command to enable the FTP server for users to log in.
Use the undo ftp server command to disable the FTP server.
By default, the FTP server is disabled to avoid potential security risks.
Example
Syntax
View
System view
Parameter
minutes: Connection idle time (in minutes) ranging from 1 to 35,791. The default
connection idle time is 30 minutes.
1-4
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Description
Use the ftp timeout command to set the connection idle time.
Use the undo ftp timeout command to restore the default connection idle time.
If a FTP connection between an FTP server and an FTP client breaks down abnormally,
the FTP server is not acknowledged with this and will keep this connection as usual.
You can set a connection idle time, so that the FTP server considers a FTP connection
to be invalid and terminate it if no data exchange occurs on it in a specific period known
as connection idle time.
Example
Syntax
View
System view
Parameter
Description
Use the ftp-server source-interface command to specify the source interface for an
FTP server. If the specified interface does not exist, a prompt appears to show the
configuration fails.
Use the undo ftp-server source-interface command to cancel the source interface
setting. After you execute this command, the FTP server system decides which
interface will be used for being accessed by FTP clients.
Example
1-5
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Syntax
View
System view
Parameter
Description
Use the ftp-server source-ip command to specify the source IP address for an FTP
server. The value of argument ip-address must be an IP address on the device where
the configuration is performed, and otherwise a prompt appears to show the
configuration fails.
Use the undo ftp-server source-ip command to cancel the source IP address setting.
After you execute this command, the FTP server system decides which IP address on it
will be used for being accessed by FTP clients.
Example
Syntax
ascii
View
Parameter
None
1-6
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Description
Use the ascii command to specify that files be transferred in ASCII mode. That is, data
is transferred in ASCII characters.
By default, files are transferred in ASCII mode.
Example
1.2.2 binary
Syntax
binary
View
Parameter
None
Description
Use the binary command to specify that program files be transferred in binary mode.
Example
1-7
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User(none):switch
331 Give me your password, please
Password:
230 Logged in successfully
[ftp]
1.2.3 bye
Syntax
bye
View
Parameter
None
Description
Use the bye command to terminate the control connection and data connection with
the remote FTP server and quit to user view.
This command has the same effect as that of the quit command.
Example
# Terminate the connections with the remote FTP server and quit to user view.
[ftp] bye
221 Server closing.
1-8
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
<Quidway>
1.2.4 cd
Syntax
cd pathname
View
Parameter
Description
Use the cd command to change the work directory on the remote FTP server.
Note that you can use this command to enter only authorized directories.
Example
1.2.5 cdup
Syntax
cdup
1-9
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
View
Parameter
None
Description
Use the cdup command to exit the current work directory and enter the parent
directory.
Example
1.2.6 close
Syntax
close
View
Parameter
None
1-10
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Description
Use the close command to terminate an FTP connection without quitting FTP client
view.
This command has the same effect as that of the disconnect command.
Example
1.2.7 debugging
Syntax
debugging
undo debugging
View
Parameter
None
Description
Example
1-11
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
1.2.8 delete
Syntax
delete remotefile
View
Parameter
Description
Example
1-12
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
1.2.9 dir
Syntax
View
Parameter
Description
Use the dir command to query specified files on a remote FTP server, or to display file
information in the current directory. The output information, which includes the name,
size and creation time of files, will be saved in a local file.
If you do not specify the filename argument, the information about all the files in the
current directory is displayed.
Example
# Display the information about all the files in the current directory on the remote FTP
server.
[ftp] dir
200 PORT command okay
7 File Listing Follows in ASCII mode
-rwxrwxrwx 1 noone nogroup 430585 Dec 21 2004 4.bin
-rwxrwxrwx 1 noone nogroup 430585 Dec 21 2004 5.bin
1-13
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
# Display the information about the file named 4.app and save the output information in
the file named temp1.
[ftp] dir 4.app temp1
200 PORT command okay
150 File Listing Follows in ASCII mode
-rwxrwxrwx 1 noone nogroup 430585 Dec 21 2004 4. bin
226 Transfer finished successfully.
FTP: 70 byte(s) received in 0.122 second(s) 573.00 byte(s)/sec.
1.2.10 disconnect
Syntax
disconnect
View
Parameter
None
Description
Use the disconnect command to terminate a FTP connection without quitting FTP
client view.
This command has the same effect as that of the close command.
Example
1-14
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Password:
230 Logged in successfully
[ftp]
Syntax
View
Any view
Parameter
None
Description
Use the display ftp source-ip command to display the source IP address that the FTP
client uses every time it connects with an FTP server. If a source interface is specified
for the FTP client, the IP address of the source interface will be displayed. If neither a
source IP address nor source interface is specified for the FTP client, 0.0.0.0 will be
displayed.
Example
# Display the source IP address that the FTP client always uses to connect with an FTP
server.
<Quidway> display ftp source-ip
The source IP you specified is 192.168.0.1
1.2.12 ftp
Syntax
View
User view
1-15
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Parameter
ip-address: Host name or the IP address of an FTP server. Note that the host name can
be a string comprising 1 to 20 characters.
port-number: Port number of the FTP server, ranging from 0 to 65535. The default is 21.
Description
Use the ftp command to establish a control connection with an FTP server and enter
FTP client view.
Example
Syntax
View
User view
Parameter
Description
1-16
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Example
# Connect to the FTP server whose IP address is 192.168.8.8 through the source
interface Vlan-interface1.
<Quidway> ftp 192.168.8.8 source-interface Vlan-interface 1
Syntax
View
User view
Parameter
Description
Example
# Connect to the FTP server whose IP address is 192.168.8.8 through the source IP
address 192.168.0.1.
<Quidway> ftp 192.168.8.8 source-ip 192.168.0.1
Syntax
View
System view
Parameter
1-17
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Description
Use the ftp source-interface command to specify the source interface of an FTP client,
so that the FTP client always uses it to connect with an FTP server. This command will
fail to be executed if the specified interface does not exist.
Use the undo ftp source-interface command to cancel the source interface setting.
After you execute this command, the FTP client system decides which interface will be
used for accessing FTP servers.
Example
# Specify Vlan-interface1 as the source interface, so that the FTP client always uses it
to connect with an FTP server.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ftp source-interface Vlan-interface 1
Syntax
View
System view
Parameter
Description
Use the ftp source-ip command to specify the source IP address of an FTP client, so
that the FTP client always uses it to connect with an FTP server. The value of argument
ip-address must be an IP address on the device where the configuration is performed,
and otherwise a prompt appears to show the configuration fails.
Use the undo ftp source-ip command to cancel the source IP address setting. After
you execute this command, the FTP client system decides which IP address on it will
be used for accessing FTP servers.
Example
# Specify 192.168.0.1 as the source IP address, so that the FTP client always uses it to
connect with an FTP server.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
1-18
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
1.2.17 get
Syntax
View
Parameter
Description
Use the get command to download a remote file and save it as a local file.
If you do not specify the localfile argument, the downloaded file is saved using its
original name.
Caution:
When using the get command to download files from a remote FTP server, note to limit
the lengths of file path and file name within the following ranges regulated for the
S3900.
z A directory name should be no more than 91 characters.
z A file name plus its local path name should be no more than 127 characters.
z A device name should be no more than 14 characters.
z A file name plus its complete path name should be no more than 142 characters.
Example
1-19
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Password:
230 Logged in successfully
[ftp]
1.2.18 lcd
Syntax
lcd
View
Parameter
None
Description
Use the lcd command to display the local work directory on the FTP client.
Example
1-20
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
1.2.19 ls
Syntax
ls [ remotefile [ localfile ] ]
View
Parameter
Description
Use the ls command to display the information about a specified file on a remote FTP
server.
If you do not specify the remotefile argument, names of all the files in the current remote
directory are displayed.
Caution:
The ls command only displays file names, while the dir command displays file
information in more detail, including file size, creation date and so on.
Example
# Display the names of all the files in the current directory on the remote FTP server.
[ftp] ls
200 PORT command okay
1-21
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
1.2.20 mkdir
Syntax
mkdir pathname
View
Parameter
Description
Example
1-22
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
1.2.21 open
Syntax
View
Parameter
Description
Use the open command to establish a control connection with an FTP server.
Related command: close.
Example
# Establish a control connection with the FTP server whose IP address is 1.1.1.1.
[ftp]open 1.1.1.1
Trying ...
Press CTRL+K to abort
Connected.
220-
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User(none):abc
331 Give me your password, please
Password:
230 Logged in successfully
1.2.22 passive
Syntax
passive
1-23
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
undo passive
View
Parameter
None
Description
Use the passive command to set the data transfer mode to the passive mode.
Use the undo passive command to set the data transfer mode to the active mode.
By default, the passive mode is adopted.
Example
1.2.23 put
Syntax
View
Parameter
1-24
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Description
Example
1.2.24 pwd
Syntax
pwd
View
Parameter
None
Description
Use the pwd command to display the work directory on an FTP server.
Example
1-25
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Trying ...
Press CTRL+K to abort
Connected.
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User(none):switch
331 Give me your password, please
Password:
230 Logged in successfully
[ftp]
1.2.25 quit
Syntax
quit
View
Parameter
None
Description
Use the quit command to terminate FTP control connection and FTP data connection
and quit to user view.
This command has the same effect as that of the bye command.
Example
1-26
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
# Terminate the FTP control connection and FTP data connection and quit to user view.
[ftp] quit
<Quidway>
1.2.26 remotehelp
Syntax
remotehelp [ protocol-command ]
View
Parameter
Description
Use the remotehelp command to display the help information about an FTP protocol
command.
This command works only when the FTP server provides the help information about
FTP protocol commands.
Caution:
z This command is always valid when a Quidway series switch operates as the FTP
server.
z If you use other FTP server software, refer to related instructions to know whether it
provides help information about FTP protocol commands.
Example
1-27
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
1.2.27 rename
Syntax
View
Parameter
Description
Example
1-28
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
1.2.28 rmdir
Syntax
rmdir pathname
View
Parameter
Description
Example
# Remove the directory flash:/temp1 on the FTP server. (Assume that the directory is
empty.)
[ftp] rmdir flash:/temp1
200 RMD command successful.
1.2.29 user
Syntax
View
1-29
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Parameter
Description
Use the user command to log into an FTP server with the specified user name and
password.
Example
# Log into the FTP server using the user account with the user name being tom and the
password being 111.
[ftp] user tom 111
331 Give me your password, please
230 Logged in successfully
1.2.30 verbose
Syntax
verbose
undo verbose
View
Parameter
None
1-30
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Description
Use the verbose command to enable the verbose function, which displays execution
and response information of other related commands.
Use the undo verbose command to disable the verbose function.
The verbose function is enabled by default.
Example
Syntax
View
Any view
Parameter
None
Description
Use the display tftp source-ip display the source IP address that the TFTP client
always uses to connect with a TFTP server. If a source interface is specified for the
TFTP client, the IP address of the source interface will be displayed. If neither source IP
address nor source interface is specified for the TFTP client, 0.0.0.0 will be displayed.
1-31
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Example
# Display the source IP address that the TFTP client always uses to connect with a
TFTP server.
<Quidway> display tftp source-ip
The source IP you specified is 192.168.0.1
1.3.2 tftp
Syntax
View
System view
Parameter
Description
Use the tftp { ascii | binary } command to set the TFTP data transfer mode.
By default, the binary mode is adopted.
Example
Syntax
View
User view
Parameter
1-32
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Description
Use the tftp get command to download a file from a TFTP server to the local switch.
Related command: tftp put.
Example
# Download the file named abc.txt from the TFTP server whose IP address is 1.1.1.1
and save it as efg.txt.
<Quidway> tftp 1.1.1.1 get abc.txt efg.txt
File will be transferred in binary mode.
Downloading file from remote tftp server, please wait......
TFTP: 35 bytes received in 0 second(s).
File downloaded successfully.
Syntax
View
User view
Parameter
Description
Use the tftp put command to upload a file to a specified directory on a TFTP server.
Related command: tftp get.
Example
# Upload the file named vrpcfg.txt to the TFTP server whose IP address is 1.1.1.1 and
save it as temp.txt.
<Quidway>tftp 1.1.1.1 put vrpcfg.cfg temp.cfg
File will be transferred in binary mode.
Copying file to remote tftp server. Please wait... /
TFTP: 962 bytes sent in 0 second(s).
File uploaded successfully.
1-33
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Syntax
View
User view
Parameter
Description
Example
# Connect to the remote TFTP server whose IP address is 192.168.8.8 through the
source interface Vlan-interface1, and download the file named 3900.bin from it.
<Quidway> tftp 192.168.8.8 source-interface Vlan-interface 1 get 3900.bin
Syntax
View
User view
1-34
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Parameter
Description
Use the tftp tftp-server source-ip command to connect to a TFTP server through the
specified source IP address, and perform download or upload operations. If the
specified source IP address does not exist, a prompt appears to show the command
fails to be executed.
Example
# Connect to the remote TFTP server whose IP address is 192.168.8.8 through the
source IP address 192.168.0.1, and download the file named 3900.bin from it.
<Quidway> tftp 192.168.8.8 source-ip 192.168.0.1 get 3900.bin
Syntax
View
System view
Parameter
Description
Use the tftp source-interface command to specify the source interface of a TFTP
client, so that the TFTP client always uses it to connect with a TFTP server. This
command will fail to be executed if the specified interface does not exist.
1-35
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Use the undo tftp source-interface command to cancel the source interface setting.
After you execute this command, the TFTP client system decides which interface will
be used for accessing TFTP servers.
Example
# Specify Vlan-interface1 as the source interface, so that the TFTP client always uses it
to connect with a TFTP server.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] tftp source-interface Vlan-interface 1
Syntax
View
System view
Parameter
Description
Use the tftp source-ip command to specify the source IP address of a TFTP client, so
that the TFTP client always uses it to connect with a TFTP server. The value of
argument ip-address must be an IP address on the device where the configuration is
performed, and otherwise a prompt appears to show the configuration fails.
Use the undo tftp source-ip command to cancel the source IP address setting. After
you execute this command, the TFTP client system decides which IP address on it will
be used for accessing TFTP servers.
Example
# Specify 192.168.0.1 as the source IP address, so that the TFTP client always uses it
to connect with a TFTP server
Specify the source IP address for the FTP client.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] tftp source-ip 192.168.0.1
1-36
Command Manual – FTP and TFTP
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 FTP and TFTP
Syntax
View
System view
Parameter
Description
Use the tftp-server acl command to specify the ACL adopted for the connection
between a TFTP client and a TFTP server.
Use the undo tftp-server acl command to cancel all ACLs adopted.
Example
1-37
Command Manual – Information Center
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
Description
Use the display channel command to display the settings of an information channel.
If no argument is specified, the settings of all channels are displayed.
Example
Syntax
View
Any view
1-1
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
Description
Use the display info-center command to display the operation status of information
center, the configuration of information channels, the format of time stamp and the
information output in case of fabric.
Related command: info-center enable, info-center loghost, info-center logbuffer,
info-center console channel, info-center monitor channel, info-center trapbuffer,
info-center snmp channel, and info-center timestamp
Example
1-2
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Field Description
Information Center: Information center is enabled.
Information about the log host, including its IP address,
Log host: name and number of information channel, language
and level of the log host
Information about the console port, including name and
Console:
channel of its information channel
Information about the monitor port, including name and
Monitor:
channel of its information channel
Information about SNMP Agent, including name and
SNMP Agent:
number of its information channel
Syntax
display logbuffer [ unit unit-id ] [ level severity | size buffersize ]* [ | { begin | exclude
| include } regular-expression ]
View
Any view
Parameter
1-3
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
size buffersize: Specifies the size of the log buffer (number of messages the log buffer
holds) you want to display. The buffersize argument ranges from 1 to 1024 and defaults
to 256.
|: Filters output log information with a regular expression.
begin: Displays the log information beginning with the specified characters.
exclude: Displays the log information excluding the specified characters.
include: Displays the log information including the specified characters.
regular-expression: Regular expression.
Description
Use the display logbuffer command to display the status of the log buffer and the
records in the log buffer.
Example
# Display the status of the log buffer and the records in the log buffer.
<Quidway> display logbuffer
Logging buffer configuration and contents:enabled
Allowed max buffer size : 1024
Actual buffer size : 512
Channel number : 4 , Channel name : logbuffer
Dropped messages : 0
Overwritten messages : 0
Current messages : 91
1-4
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
Any view
Parameter
level severity: Specifies an information severity level. The severity argument ranges
from 1 to 8.
Description
Use the display logbuffer summary command to display the statistics of the log
buffer.
Example
Syntax
View
Any view
Parameter
Description
Use the display trapbuffer command to display the status of the trap buffer and the
records in the trap buffer.
Executing the command with the size buffersize parameters will display the latest trap
records, with the number of the records being the specified size at most.
1-5
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Display the status of the trap buffer and the records in the trap buffer.
<Quidway> display trapbuffer
Trapping Buffer Configuration and contents:
enabled
allowed max buffer size : 1024
actual buffer size : 256
channel number : 3 , channel name : trapbuffer
dropped messages : 0
overwrote messages : 0
current messages : 6
Syntax
View
System view
Parameter
Description
Use the info-center channel name command to name the channel of the specified
number.
1-6
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Use the undo info-center channel command to restore the default name of the
channel of the specified number.
By default, the name of channel 0 to channel 9 is (in turn) console, monitor, loghost,
trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, channel9.
Note that, you cannot configure two different channel numbers with the same name.
Example
Syntax
View
System view
Parameter
Description
Use the info-center console channel command to set the channel through which
information is output to the console.
By default, the switch outputs information to the console.
This command works only when the information center is enabled for the system.
Related command: info-center enable and display info-center.
Example
1-7
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
info-center enable
undo info-center enable
View
System view
Parameter
None
Description
Example
Syntax
View
System view
Parameter
channel: Sets the channel through which output information goes to the log buffer.
1-8
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the info-center logbuffer command to enable information output to the log buffer..
Use the undo info-center logbuffer command to disable the information output.
By default, the switch outputs information to the log buffer, which can hold 512 records
by default.
This command works only when the information center is enabled for the system.
Related command: info-center enable and display info-center.
Example
# Configure the switch to output information to the log buffer with the size of 50.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] info-center logbuffer size 50
Syntax
View
System view
Parameter
1-9
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the info-center loghost command to enable information output to a log host
through setting the IP address of the log host.
Use the undo info-center loghost command to disable the information output.
By default, the switch does not output information to the log host.
This command works only when the information center is enabled for the system.
Note:
Be sure to set the correct IP address in the info-center loghost command. A loopback
IP address will cause an error message, prompting invalid address.
Example
# Configure the Ethernet switch to send information to the Unix workstation whose IP
address is 202.38.160.1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] info-center loghost 202.38.160.1
Syntax
View
System view
1-10
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Parameter
Description
Use the info-center loghost source command to configure the source interface
through which information is sent to the log host.
Use the undo info-center loghost source command to cancel the source interface
configuration.
Related command: info-center enable and display info-center.
Example
Syntax
View
System view
Parameter
Description
Use the info-center monitor channel command to set the channel through which
information is output to user terminals.
Use the undo info-center monitor channel command to disable the information
output.
By default, the switch outputs information to user terminal.
1-11
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
This command works only when the information center is enabled for the system.
Related command: info-center enable and display info-center.
Example
Syntax
View
System view
Parameter
Description
Use the info-center snmp channel command to set the channel through which
information is output to the SNMP.
Use the undo info-center snmp channel command to restore the default channel
through which information is output to the SNMP, that is, channel 5.
Related command: snmp-agent and display info-center.
Example
# Set the switch to output information to the SNMP agent through channel 6.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] info-center snmp channel 6
1-12
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
View
System view
Parameter
1-13
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1-14
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
1-15
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Description
Use the info-center source command to specify the information source in the
information center and the output direction.
Use the undo info-center source command to cancel the configuration of information
source and output direction.
This command can be used for filtering of log, trap or debugging information. For
example, it can control information output from the IP module to any direction. You can
configure to output information with severity higher than “warning” to the log host, and
information with severity higher than “informational” to the log buffer. You can also
configure to output trap information to the log host at the same time.
The info-center source command determines the output direction according to
channel name or channel number. Each output direction is assigned with a default
information channel at present, as shown in Table 1-4.
1-16
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Each information channel is configured with a default record, whose module name is
default and module number is 0xffff0000. In the record, the default settings for log, trap
and debugging information may differ with channels. If no record is configured for a
channel, this default record is adopted.
Example
# Configure to output the log information of the VLAN module on the SNMP channel,
and only output the log information above the “emergencies” severity.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] info-center source vlan channel snmpagent log level emergencies
Syntax
info-center synchronous
undo info-center synchronous
View
System view
Parameter
None
Description
1-17
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Note:
z By enabling the synchronous terminal output function with the info-center
synchronous command, you can avoid users’ input from being interrupted by
system information output.
z Running the info-center synchronous command during debugging information
collection may result in a command prompt echoed after each item of debugging
information. To avoid unnecessary output, it is recommended that you disable
synchronous terminal output in such cases.
Example
Syntax
View
System view
Parameter
Description
Use the info-center switch-on command to enable information output function for a
specified switch in a fabric.
1-18
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Enable trap information output for the switch whose Unit ID is 2 in the fabric.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] info-center switch-on unit 2 trapping
Syntax
View
System view
Parameter
1-19
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
date: Specifies to adopt the current system date and time, which is in format
“yyyy/mm/dd-hh:mm:ss:ms” for Chinese environment and “Mmm dd hh:mm:ss:ms
yyyy” for English environment.
none: Specifies not to include time stamp in specified output information.
Description
Use the info-center timestamp command to set the format of time stamp included in
the log/trap/debugging information or specify not to include time stamp in the
information.
Use the undo info-center timestamp command to restore the default time stamp
format.
By default, the date time stamp is adopted for all types of information.
Example
Syntax
View
System view
Parameter
date: Specifies to adopt the current system date and time, which is in format
“yyyy/mm/dd-hh:mm:ss:ms” for Chinese environment and “Mmm dd hh:mm:ss:ms
yyyy” for English environment.
no-year-date: Specifies to adopt the current system date and time excluding the year,
which is in format “mm/dd-hh:mm:ss:ms” for Chinese environment and “Mmm dd
hh:mm:ss:ms” for English environment.
none: Specifies not to include time stamp in output information.
Description
Use the info-center timestamp loghost command to set the format of time stamp to
be sent to the log host.
1-20
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Use the undo info-center timestamp loghost command to restore the default time
stamp format.
By default, the date time stamp is adopted.
Example
# Set the no-year-date time stamp for output information sent to the log host.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] info-center timestamp loghost no-year-date
Syntax
View
System view
Parameter
Description
Use the info-center trapbuffer command to enable information output to the trap
buffer.
Use the undo info-center trapbuffer command to disable information output to the
trap buffer.
This command takes effect only after the information center function is enabled.
Related command: info-center enable and display info-center.
1-21
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Example
# Enable the switch to send information to the trap buffer, whose size is set to 30.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] info-center trapbuffer size 30
Syntax
View
User view
Parameter
Description
Use the reset logbuffer command to clear information in the log buffer.
Example
Syntax
View
User view
Parameter
Description
Use the reset trapbuffer command to clear information in the trap buffer.
Example
1-22
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
Syntax
terminal debugging
undo terminal debugging
View
User view
Parameter
None
Description
Example
Syntax
terminal logging
undo terminal logging
View
User view
Parameter
None
Description
1-23
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
By default, log terminal display is enabled for console users and terminal users.
Example
Syntax
terminal monitor
undo terminal monitor
View
User view
Parameter
None
Description
Use the terminal monitor command to enable the debugging/log/trap terminal display
function.
Use the undo terminal monitor command to disable the function.
By default, this function is enabled for console users and terminal users.
This command works only on the current terminal. Only after the command has been
executed in user view, can the debugging/log/trap information be output on the current
terminal. Disabling the function has the same effect as executing the following three
commands: undo terminal debugging, undo terminal logging and undo terminal
trapping. That is, no debugging/log/trap information will be displayed on the current
terminal. If the function is enabled, you can run the terminal debugging/undo
terminal debugging, terminal logging/undo terminal logging or terminal
trapping/undo terminal trapping command to enable or disable debug/log/trap
terminal output respectively.
Example
Syntax
terminal trapping
1-24
Command Manual – Information Center Chapter 1 Information Center Configuration
Quidway S3900 Series Ethernet Switches-Release 1510 Commands
View
User view
Parameter
None
Description
Example
1-25
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
ii
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
Syntax
View
User view
Parameter
HH:MM:SS: Current time, where HH ranges from 0 to 23, MM and SS range from 0 to
59.
YYYY/MM/DD or MM/DD/YYYY: Current date, where YYYY is the year ranging from
2000 to 2099, MM is the month ranging from 1 to 12, and DD is the day ranging from 1
to 31.
Description
Use the clock datetime command to set the current date and time of the Ethernet
switch.
By default, it is 23:55:00 04/01/2000 when the system starts up.
In an environment that needs to obtain exact absolute time, it is required to use this
command to set the current date and time of the Ethernet switch.
Related command: display clock.
Example
# Set the current date and time of the Ethernet switch to 0:0:0 2001/01/01.
<Quidway> clock datetime 0:0:0 2001/01/01
Syntax
1-1
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
View
User view
Parameter
Description
Use the clock summer-time command to set the name, time range and time offset of
the summer time.
After the setting, you can use the display clock command to check the results.
Example
# Set the summer time named abc1, which starts from 06:00:00 2005/08/01, ends until
06:00:00 2005/09/01, and is one hour ahead of the standard time.
<Quidway> clock summer-time abc1 one-off 06:00:00 08/01/2005 06:00:00
09/01/2005 01:00:00
# Set the summer time named abc2, which starts from 06:00:00 08/01, ends until
06:00:00 09/01, and is one hour ahead of the standard time every year from 2005 on.
<Quidway> clock summer-time abc2 repeating 06:00:00 08/01/2005 06:00:00
09/01/2005 01:00:00
Syntax
1-2
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
View
User view
Parameter
Description
Use the clock timezone command to set the local time zone.
Use the undo clock timezone command to restore the local time zone to the default
UTC (universal time coordinated) time zone.
After the setting, you can use the display clock command to check the results. The log
information time and the debug information time adopts the local time that has been
adjusted by the time zone and the summer time.
Related command: clock summer-time and display clock.
Example
# Set the local time zone named z5, which is five hours ahead of the UTC time.
<Quidway> clock timezone z5 add 05:00:00
1.1.4 language-mode
Syntax
View
User view
Parameter
Description
Use the language-mode command to toggle between the language modes (that is,
language environments) of the command line interface (CLI) to meet your requirement.
By default, the CLI language mode is english.
1-3
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
Example
1.1.5 quit
Syntax
quit
View
Any view
Parameter
None
Description
Use the quit command to return from current view to lower level view, or exit the system
if current view is user view.
The following lists the three levels of views available (from lower level to higher level):
z User view
z System view
z VLAN view, Ethernet port view, and so on
Related command: return and system-view.
Example
1.1.6 return
Syntax
return
View
1-4
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
Parameter
None
Description
Use the return command to return from current view to user view. The composite key
<Ctrl+Z> has the same effect with the return command.
Related command: quit.
Example
1.1.7 sysname
Syntax
sysname sysname
undo sysname
View
System view
Parameter
Description
Use the sysname command to set the system name of the Ethernet switch. Changing
the system name will affect the CLI prompt. For example, if the system name of the
switch is Quidway, the prompt for user view is <Quidway>.
Use the undo sysname command to restore the default system view of the Ethernet
switch.
Example
1-5
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
1.1.8 system-view
Syntax
system-view
View
User view
Parameter
None
Description
Use the system-view command to enter system view from user view.
Related command: quit and return.
Example
Syntax
display clock
View
Any view
Parameter
None
Description
Use the display clock command to display the current date and time of the system, so
that you can adjust them if they are wrong.
The maximum date and time that can be displayed by this command is 23:59:59
9999/12/31.
1-6
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
Example
Field Description
18:36:31 beijing Sat 2002/02/02 Current date and time of the system
Time Zone Configured time zone information
Summer-Time Configured summer time information
Syntax
View
Any view
Parameter
Description
Example
1-7
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
Syntax
View
Any view
Parameter
Description
Use the display users command to display the status and configuration information
about user terminal interfaces.
Example
# Display the status and configuration information about user terminal interfaces.
<Quidway> display users
UI Delay Type Ipaddress Username Userlevel
0 AUX 0 00:00:17 3
8 VTY 0 01:37:55 TEL 192.168.0.200 3
+ 9 VTY 1 00:00:00 TEL 192.168.0.3 3
12 VTY 4 00:00:00 TEL 192.168.0.115 3
Item Description
UI User interface
Delay time when no interaction occurs
Delay
between user and device
Type User login type
IP address used when login using telnet
Ipaddress
program
1-8
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
Item Description
Username User name
User level User level
Syntax
display version
View
Any view
Parameter
None
Description
Use the display version command to display the information (such as the version
information) about the switch system.
Specifically, you can use this command to check the software version and issue time,
the basic hardware configuration, and some other information about the switch.
Example
1-9
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
Syntax
View
User view
Parameter
Description
Example
The above command output indicates that the IP packet debugging is enabled.
Syntax
display diagnostic-information
View
Any view
1-10
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
Parameter
None
Description
Example
1-11
Command Manual – System Maintenance and Debugging Chapter 1 Basic System Configuration & De
Quidway S3900 Series Ethernet Switches-Release 1510 bugging Commands
Unit 1
SlotNo SubSNo PortNum PCBVer FPGAVer CPLDVer BootRomVer AddrLM Type State
0 0 24 REV.C NULL 001 225 IVL MAIN Normal
0 1 4 REV.C NULL 001 NULL IVL 4 GE Normal
• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •
Syntax
terminal debugging
undo terminal debugging
View
User view
Parameter
None
Description
Use the terminal debugging command to enable terminal display for debugging
information.
Use the undo terminal debugging command to disable terminal display for debugging
information.
By default, terminal display for debugging information is disabled.
Related command: debugging.
Example
1-12
Command Manual – System Maintenance and Debugging Chapter 2 Network Connectivity Test Comm
Quidway S3900 Series Ethernet Switches-Release 1510 ands
2.1.1 ping
Syntax
View
Any view
Parameter
-a ip-address: Sets the source IP address to send the ICMP ECHO-REQUEST packets.
-c count: Specifies how many times the ICMP ECHO-REQUEST packet will be sent.
The count argument is the times, which ranges from 1 to 4,294,967,295 and defaults to
5.
-d: Sets the socket to DEBUGGING mode. By default, it is non-DEBUGGING mode.
-f: Specifies to discard a packet directly instead of fragmenting it if its length is greater
than the MTU (maximum transmission unit) of the interface.
-h ttl: Sets the TTL (time to live) value of the ICMP ECHO-REQUEST packets in the
range of 1 to 255. By default, the TTL value is 255.
-i: Selects the port to send the packets.
null-interface-number: Null port number.
vlan-id: VLAN interface number.
ip: Selects the IP ICMP packet.
-n: Specifies to regard the host argument as an IP address without performing domain
name resolution. By default, the host argument is first regarded as an IP address; if it is
not an IP address, domain name resolution is performed.
-p pattern: Specifies the padding byte pattern of the ICMP ECHO-REQUEST packets.
The pattern argument is a byte in hexadecimal. For example, -p ff fills a packet with only
ff. By default, the system fills a packet with 0x01, 0x02, and so on, until 0x09; then it
repeats this procedure from 0x01 again.
-q: Specifies to display only the statistics and not to display the details. By default, all
the information including the details and statistics will be displayed.
2-1
Command Manual – System Maintenance and Debugging Chapter 2 Network Connectivity Test Comm
Quidway S3900 Series Ethernet Switches-Release 1510 ands
-s packetize: Specifies the size (in bytes) of each ICMP ECHO-REQUEST packet
(excluding the IP and ICMP headers). The packetize argument ranges from 20 to
32,000 and defaults to 56 bytes.
-t timeout: Sets the timeout time (in ms) waiting for an ICMP ECHO-REPLY packet after
an ICMP ECHO-REQUEST packet is sent. The timeout argument ranges from 0 to
65535 and defaults to 2,000 ms.
-tos tos: Sets the ToS value of the ICMP ECHO-REQUEST packets in the range of 0 to
255. By default, this value is 0.
-v: Specifies to display other ICMP packets received (that is, non-ECHO-REPLY
packets) as well as the ECHO-REPLY packets. By default, except for the
ECHO-REPLY packets, other ICMP packets are not displayed.
host: Domain name or IP address of the destination host.
Description
Use the ping command to check the IP network connectivity and the reachability of a
host.
The executing procedure of the ping command is as follows: First, the source host
sends an ICMP ECHO-REQUEST packet to the destination host. If the connection to
the destination network is normal, the destination host receives this packet and
responds with an ICMP ECHO-REPLY packet.
You can use the ping command to check the network connectivity and the quality of a
network line. This command can output the following information:
z Response status of the destination to each ICMP ECHO-REQUEST packet. If no
response packet is received within the timeout time, including the number of bytes,
packet sequence number, TTL and response time of the response packet. If no
response packet is received within the timeout time, the message "Request time
out" is displayed instead.
z Final statistics, including the numbers of sent packets and received response
packets, the irresponsive packet percentage, and the minimum, average and
maximum values of response time.
You can set a relatively long timeout time waiting for response packet if the network
transmission is slow.
Related command: tracert.
Example
2-2
Command Manual – System Maintenance and Debugging Chapter 2 Network Connectivity Test Comm
Quidway S3900 Series Ethernet Switches-Release 1510 ands
2.1.2 tracert
Syntax
View
Any view
Parameter
2-3
Command Manual – System Maintenance and Debugging Chapter 2 Network Connectivity Test Comm
Quidway S3900 Series Ethernet Switches-Release 1510 ands
Description
Use the tracert command to trace the gateways the test packets passes through during
its journey from the source to the destination. This command is mainly used to check
the network connectivity. It can help you locate the trouble spot of the network.
The executing procedure of the tracert command is as follows: First, the source sends
a packet with the TTL of 1, and the first hop device returns an ICMP error message
indicating that it cannot forward this packet because of TTL timeout. Then, the source
resends a packet with the TTL of 2, and the second hop device also returns an ICMP
TTL timeout message. This procedure goes on and on until a packet gets to the
destination or the maximum TTL is reached. During the procedure, the system records
the source address of each ICMP TTL timeout message in order to offer the path that
the packets pass through to the destination.
If you find that the network is in trouble by using the ping command, you can use the
tracert command to find where the trouble is in the network.
The tracert command can output the IP addresses of all the gateways the packets pass
through to the destination. It output the string "***" if a gateway times out.
Example
# Trace the gateways the packets pass through during its journey to the destination with
IP address 18.26.0.115.
<Quidway> tracert 18.26.0.115
tracert to allspice.lcs.mit.edu (18.26.0.115), 30 hops max
1 helios.ee.lbl.gov (128.3.112.1) 0 ms 0 ms 0 ms
2 lilac-dmc.Berkeley.EDU (128.32.216.1) 19 ms 19 ms 19 ms
3 lilac-dmc.Berkeley.EDU (128.32.216.1) 39 ms 19 ms 19 ms
4 ccngw-ner-cc.Berkeley.EDU (128.32.136.23) 19 ms 39 ms 39 ms
5 ccn-nerif22.Berkeley.EDU (128.32.168.22) 20 ms 39 ms 39 ms
6 128.32.197.4 (128.32.197.4) 59 ms 119 ms 39 ms
7 131.119.2.5 (131.119.2.5) 59 ms 59 ms 39 ms
8 129.140.70.13 (129.140.70.13) 80 ms 79 ms 99 ms
9 129.140.71.6 (129.140.71.6) 139 ms 139 ms 159 ms
10 129.140.81.7 (129.140.81.7) 199 ms 180 ms 300 ms
11 129.140.72.17 (129.140.72.17) 300 ms 239 ms 239 ms
12 * * *
13 128.121.54.72 (128.121.54.72) 259 ms 499 ms 279 ms
14 * * *
15 * * *
16 * * *
17 * * *
18 ALLSPICE.LCS.MIT.EDU (18.26.0.115) 339 ms 279 ms 279 ms
2-4
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
Syntax
View
User view
Parameter
Description
Use the boot boot-loader command to specify the host software that will be adopted
when the switch reboots next time.
You can use this command to specify a .bin file in the Flash memory as the host
software to be adopted at reboot.
Example
# Specify the host software that will be adopted when the current switch reboots next
time.
<Quidway> boot boot-loader S3900.BIN
The specified file will be booted next time on unit 1!
Syntax
View
User view
3-1
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
Parameter
file-ulr: Path + name of a BootROM file (that is, a .btm file) in the Flash memory.
device-name: File name, beginning with a device name in the form of unit[NO.]>flash,
used to save the specified file to the Flash memory of a specified switch.
Description
Example
# Update the BootROM of the switch using the file named S3900.btm.
<Quidway> boot bootrom S3900.btm
Syntax
display boot-loader
View
Any view
Parameter
None
Description
Use the display boot-loader command to display the host software (.bin file) that will
be adopted when the switch reboots.
Example
# Display the host software that will be adopted when the switch reboots.
<Quidway>display boot-loader
Unit 1:
The current boot app is: s3900.bin
The main boot app is: s3900.bin
The backup boot app is:
Field Description
The current boot app is Current boot file of the system
Main boot file of the system (default boot
The main boot app is
file)
3-2
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
Field Description
The backup boot app is Backup boot file of the system
Syntax
View
Any view
Parameter
Description
Use the display cpu command to display the CPU usage of a specified switch.
Example
Field Description
Indicates that the following lines describe the CPU
CPU busy status
occupancies in different time periods.
12% in last 5 seconds The CPU usage in the last five seconds is 12%.
12% in last 1 minute The CPU usage in the last one minute is 12%.
12% in last 5 minutes The CPU usage in the last five minutes is 12%.
Syntax
3-3
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
View
Any view
Parameter
Description
Use the display device command to display the information, such as the module type
and operating status, about each board (main board and sub board) of a specified
switch.
You can use this command to display the following information about each board: slot
number, sub slot number, number of ports, versions of PCB, FPGA, CPLD and
BootROM software, address learning mode, interface board type, and so on.
Example
Syntax
View
Any view
Parameter
Description
Use the display fan command to view the working state of the built-in fans.
Example
3-4
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
Syntax
View
Any view
Parameter
Description
Use the display memory command to display the memory usage of a specified switch.
Example
Field Description
System Available Available memory size of the system, in unit of
Memory(bytes) bytes
System Used Memory(bytes) Used memory size of the system, in unit of bytes
3-5
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
Auto-establish enabled
Syntax
View
Any view
Parameter
Description
Use the display power command to view the working state of the power supply of the
switch.
Example
The above information indicates that the type of the power is AC, and the power
supplies normally.
Syntax
3-6
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
View
Any view
Parameter
None
Description
Use the display schedule reboot command to display information about scheduled
reboot.
Related command: reboot, schedule reboot at.
Example
3.1.10 reboot
Syntax
View
User view
Parameter
Description
Note:
When rebooting, the system checks whether there is any configuration change. If there
is, it prompts you to indicate whether or not to proceed. This prevents you from losing
your original configuration due to oblivion after system reboot.
Example
3-7
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
<Quidway>
%Apr 2 00:06:01:148 2000 Quidway DEV/5/DEV_LOG:- 1 -
Switch is rebooted.
Starting......
Syntax
View
User view
Parameter
hh:mm: Reboot time, where hh (hour) ranges from 0 to 23, and mm (minute) ranges
from 0 to 59.
mm/dd/yyyy or yyyy/mm/dd: Reboot date, where yyyy (year) ranges from 2,000 to
2,099, mm (month) ranges from 1 to 12, and the range of dd (day) depends on the
specific month. You cannot set the date later than 30 days than the system current
date.
Description
Use the schedule reboot at command to schedule a reboot on the current switch and
set the reboot date and time.
Use the undo schedule reboot command to cancel the scheduled reboot.
By default, no scheduled reboot is set on the switch.
Note:
There is at most one minute defer for scheduled reboot, that is, the switch will reboot
within one minute after reaching the specified reboot date and time.
3-8
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
After you execute the schedule reboot at command with a future date specified, the
switch will reboot at the specified time with at most one minute delay.
After you execute the schedule reboot at command without specifying a date, the
switch will:
z Reboot at the specified time on the current day if the specified time is later than the
current time.
z Reboot at the specified time on the next day if the specified time is earlier than the
current time.
After you execute the command, the system will prompt you to confirm. Enter "Y" or "y"
for your setting to take effect, and your setting will overwrite the old one (if available).
If you adjust the system time by the clock command after executing the schedule
reboot at command, the schedule reboot at command will be invalid and the
scheduled reboot will not happen.
Related command: reboot, display schedule reboot.
Example
# Suppose the current time is 05:06, schedule a reboot so that the switch reboots at
22:00 on the current day.
<Quidway> schedule reboot at 22:00
Reboot system at 22:00 2000/04/02(in 16 hours and 53 minutes)
confirm?[Y/N]:y
<Quidway>
Syntax
View
User view
Parameter
hh:mm: Reboot waiting delay, where hh ranges from 0 to 720, and mm ranges from 0 to
59.
mm: Reboot waiting delay, ranging from 0 to 43,200 minutes.
Description
Use the schedule reboot delay command to schedule a reboot on the switch, and set
the reboot waiting delay.
3-9
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
Use the undo schedule reboot command to cancel the scheduled reboot.
By default, no scheduled reboot is set on the switch.
Note:
There is at most one minute defer for scheduled reboot, that is, the switch will reboot
within one minute after waiting for the specified delay.
You can set the reboot waiting delay in two formats: the hours:minutes format and the
absolute minutes format, and both must be less than or equal to 30 × 24 × 60 (that is, 30
days).
After you execute the command, the system will prompt you to confirm. Enter "Y" or "y"
for your setting to take effect. Your setting will overwrite the old one (if available).
If you adjust the system time by the clock command after executing the schedule
reboot delay command, the schedule reboot delay command will be invalid and the
scheduled reboot will not happen.
Related command: reboot, schedule reboot at, undo schedule reboot, and display
schedule reboot.
Example
# Suppose the current time is 05:02, schedule a reboot so that the switch reboots after
70 minutes.
<Quidway> schedule reboot delay 70
Reboot system at 06:12 2000/04/02(in 1 hours and 10 minutes)
confirm?[Y/N]:y
<Quidway>
Syntax
View
System view
Parameter
hh:mm: Reboot time of the switch, in the hours:minutes format, where hh ranges from 0
to 24, and mm ranges from 0 to 59.
3-10
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
period: Reboot period of the switch, in the format period = { daily | { monday | tuesday
| wednesday | thursday | friday | saturday | sunday }* }. daily indicates the reboot
period is one day, that is, the switch reboots at a specified time each day. { monday |
tuesday | wednesday | thursday | friday | saturday | sunday }* indicates the day
when the switch reboots.
Description
Use the schedule reboot regularity command to enable the periodical reboot function
of the switch and set the reboot time.
Use the undo schedule reboot regularity command to cancel the configured reboot
period.
By default, the reboot period of the switch is not configured.
Note:
There is at most one minute defer for scheduled reboot, that is, the switch will reboot
within one minute after reaching the specified reboot date and time.
After you execute the command, the system will prompt you to confirm. Enter "Y" or "y"
for your setting to take effect. Your setting will overwrite the old one (if available).
If you adjust the system time by the clock command after executing the schedule
reboot regularity command, the schedule reboot regularity command will be
invalid.
Related command: reboot, schedule reboot at, undo schedule reboot, and display
schedule reboot.
Example
Syntax
3-11
Command Manual – System Maintenance and Debugging
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 3 Device Management Commands
View
User view
Parameter
Description
Use the update fabric command to upgrade the host software of the devices in a
Fabric.
Example
# Use the file named 3900.bin in the Flash memory of Unit2 to upgrade the host
software of the devices in a Fabric.
<Quidway> update fabric unit2>flash:/s3900.bin
This will update the Fabric. Continue? [Y/N] y
The software is verifying ...
The result of verification is :
Unit ID Free space(bytes) Enough Version comparison
1 15281873 Y Y
2 15409873 Y Y
warning: the verification is completed, start the file transmission? [Y/N]
y
The fabric is being updated, 100%
The s3900.bin is stored on unit 1 successfully!
The s3900.bin is stored on unit 2 successfully!
Do you want to set s3900.bin to be running agent next time to boot?[Y/N] y
The s3900.bin is configured successfully!
3-12
Command Manual – VLAN VPN
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual – VLAN VPN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN-VPN Commands
Syntax
View
Any view
Parameter
None
Description
Use the display port vlan-vpn command to display the information about VLAN VPN
configuration of the current system, including current TPID value, VLAN-VPN ports,
and VLAN-VPN uplink ports.
Example
Ethernet1/0/2
VLAN-VPN status: enabled
VLAN-VPN VLAN: 1
VLAN-VPN inner-cos-trust status: disable
VLAN-VPN TPID: 8100
Ethernet1/0/3
VLAN-VPN TPID: 8100
Ethernet1/0/4
VLAN-VPN TPID: 8100
…………………………(Omitted)
1-1
Command Manual – VLAN VPN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN-VPN Commands
Syntax
vlan-vpn enable
undo vlan-vpn
View
Parameter
None
Description
Use the vlan-vpn enable command to enable the VLAN-VPN function for a port.
Use the undo vlan-vpn command to disable the VLAN-VPN function for a port.
By default, the VLAN-VPN function is disabled for port.
With the VLAN VPN function enabled, a received packet is tagged with the default
VLAN tag of the receiving port no matter whether or not the packet already carries a
VLAN tag. If the packet already carries a VLAN tag, the packet becomes a dual-tagged
packet. Otherwise, the packet becomes a packet carrying the default VLAN tag of the
port.
Caution:
z The VLAN-VPN function is unavailable if the port has any of the protocols among
GVRP, GMRP, STP, IRF, NTDP and 802.1x enabled.
z After you enable the VLAN-VPN function for a port, you cannot change the attribute
of the port to trunk or hybrid, or enable GVRP, GMRP, IRF, NTDP, or STP function
for the port.
z If there is a port enabled with fabric function on a device, you cannot enable
VLAN-VPN function for this port or for any other port on this device.
Example
1-2
Command Manual – VLAN VPN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN-VPN Commands
Syntax
View
Parameter
None
Description
Example
# Enable the inner tag priority replication function for the Ethernet 1/0/2 port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet 1/0/2
[Quidway-Ethernet1/0/2] vlan-vpn inner-cos-trust enable
Syntax
View
Parameter
value: User-defined TPID value (in hexadecimal format)in the range of 1 to 0xFFFF.
Description
Use the vlan-vpn tpid command to set a TPID value for a port.
Use the undo vlan-vpn tpid command to restore the default TPID value.
1-3
Command Manual – VLAN VPN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 VLAN-VPN Commands
LACP 0x8809
802.1x 0x888E
Example
1-4
Command Manual – VLAN VPN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 BPDU Tunnel Configuration Commands
Syntax
View
Parameter
Description
Use the bpdu-tunnel command to enable the BPDU Tunnel function for the packets of
a specific protocol. You can enable the function for the packets of these protocols:
LACP, NDP, CDP, and VTP.
Use the undo bpdu-tunnel command to disable the BPDU Tunnel function for the
packets of a specific protocol.
2-1
Command Manual – VLAN VPN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 BPDU Tunnel Configuration Commands
Caution:
z If you enable the BPDU Tunnel function for packets of a protocol on a port, don’t
enable the protocol on port. For example, with the bpdu-tunnel lacp command
executed, do not execute the lacp enable command on the same port.
z To ensure BPDU packet can travel across a tunnel properly, specify the same
keyword for the bpdu-tunnel command when executing the command on the both
sides of the tunnel.
z The BPDU Tunnel function is unavailable to all the ports of a device if a port of the
device has the fabric function enabled.
Example
Syntax
View
Parameter
Description
2-2
Command Manual – VLAN VPN
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 BPDU Tunnel Configuration Commands
Example
2-3
Command Manual - HWPing
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual - HWPing
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 HWPing Commands
Syntax
count times
undo count
View
Parameter
Description
Use the count command to configure the number of packets to be sent for each test.
Use the undo count command to restore the default.
A test timer is started when the system sends the first test packet. In the event that the
times argument is set greater than one, the system continues to send the second one
upon receipt of the reply to the first one. If receiving no reply upon expiry of the timer,
the system sends the second and all the remaining packets likewise.
Related command: frequency.
Example
# Set that the “administrator-icmp” test group sends ten packets for each test.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] hwping administrator icmp
[Quidway-hwping-administrator-icmp] count 10
1.1.2 destination-ip
Syntax
destination-ip ip-address
undo destination-ip
1-1
Command Manual - HWPing
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 HWPing Commands
View
Parameter
Description
Use the destination-ip command to configure the destination IP address in the test.
Use the undo destination-ip command to delete the configured destination IP
address.
By default, no destination IP address is configured for any test.
Example
# Set the destination IP address in the test of the “administrator-icmp” test group to
1.1.1.99.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] hwping administrator icmp
[Quidway-hwping-administrator-icmp] destination-ip 1.1.1.99
Syntax
View
Any view
Parameter
Description
1-2
Command Manual - HWPing
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 HWPing Commands
Example
# Use the display hwping results command to display the test result of the test group
whose administrator name is “administrator” and operation tag is “icmp”.
<Quidway> display hwping results administrator icmp
HWPing entry(admin administrator, tag icmp) test result:
Destination ip address:1.1.1.99
Send operation times: 10 Receive response times: 10
Min/Max/Average Round Trip Time: 2/5/2
Square-Sum of Round Trip Time: 66
Last complete test time: 2000-4-2 7:59:54.7
Extend result:
SD Maximal delay: 0 DS Maximal delay: 0
Packet lost in test: 0%
Disconnect operation number: 0 Operation timeout number: 0
System busy operation number: 0 Connection fail number: 0
Operation sequence errors: 0 Drop operation number: 0
Other operation errors: 0
Table 1-1 Description on the fields of the display hwping results command
Field Description
Square-Sum of Round Trip Time The square sum of the round trip time
1-3
Command Manual - HWPing
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 HWPing Commands
Field Description
Table 1-2 Description on the fields of the display hwping history command
Field Description
1-4
Command Manual - HWPing
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 HWPing Commands
Field Description
1.1.4 frequency
Syntax
frequency interval
undo frequency
View
1-5
Command Manual - HWPing
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 HWPing Commands
Parameter
interval: Automatic test interval. It ranges from 0 to 65535 seconds and defaults to 0
meaning no automatic test.
Description
Example
# Set the automatic test interval of the “administrator-icmp” test group to 10 seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] hwping administrator icmp
[Quidway-hwping-administrator-icmp] frequency 10
1.1.5 hwping
Syntax
View
System view
Parameter
Description
Use the hwping command to create an HWPing test group and enter HWPing test
group view..
Use the undo hwping command to delete the HWPing test group.
Example
# Create an HWPing test group, where the administrator name is “administrator” and
the test operation tag is “icmp”.
1-6
Command Manual - HWPing
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 HWPing Commands
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] hwping administrator icmp
[Quidway-hwping-administrator-icmp]
Syntax
hwping-agent enable
undo hwping-agent enable
View
System view
Parameter
None
Description
Use the hwping-agent enable command to enable the HWPing client function.
Use the undo hwping-agent enable command to disable the HWPing client function.
Before you can perform a test, you must enable the HWPing client function.
Example
1.1.7 test-enable
Syntax
test-enable
undo test-enable
View
Parameter
None
1-7
Command Manual - HWPing
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 HWPing Commands
Description
Note:
After you execute the test-enable command, the system does not display the test
result. You may view the test result information by executing the display hwping
command.
Example
1.1.8 test-type
Syntax
test-type type
View
Parameter
Description
Example
1-8
Command Manual - HWPing
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 HWPing Commands
1.1.9 timeout
Syntax
timeout time
undo timeout
View
Parameter
Description
Example
1-9
Command Manual - DNS
Quidway S3900 Series Ethernet Switches-Release 1510 Table of Contents
Table of Contents
i
Command Manual - DNS
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DNS Configuration Commands
Syntax
View
Any view
Parameter
Description
Use the display dns domain command to display the DNS suffixes.
Related command: dns domain.
Example
Table 1-1 Description on the fields of the display dns domain command
Field Description
No —
Domain-name Domain name suffix
Syntax
1-1
Command Manual - DNS
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DNS Configuration Commands
View
Any view
Parameter
None
Description
Use the display dns dynamic-host command to display the dynamic domain name
resolution cache information.
The dynamic domain name resolution caches resent mappings between names and IP
addresses. For the same domain name query, the DNS Client would not send to the
DNS Server if it is stored in the cache.
Example
Table 1-2 Description on the field of the display dns dynamic-host command
Field Description
No —
Domain-name —
Syntax
View
Any view
1-2
Command Manual - DNS
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DNS Configuration Commands
Parameter
Dynamic: Display the DNS Server information configured by DHCP or other protocols
Description
Use the display dns server command to display the DNS Server information.
Related command: dns server.
Example
Field Description
Number of the DNS Server. Configured automatically
by the device, starts from 0.
Domain-server
Servers with IPv4 or IPv6 addresses are numbered
respectively.
IpAddress IPv4 address of the DNS Server
Syntax
display ip host
View
Any view
Parameter
None
Description
Use the display ip host command to display the host names and corresponding IP
addresses in the static domain name resolution resolving list.
1-3
Command Manual - DNS
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DNS Configuration Commands
Example
# Display the host names and corresponding IP addresses in the static domain name
resolution resolving list.
<Quidway> display ip host
Host Age Flags Address
My 0 static 1.1.1.1
Aa 0 static 2.2.2.4
Field Description
Host Host name
Syntax
View
System view
Parameter
Description
1-4
Command Manual - DNS
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DNS Configuration Commands
Note:
The domain name resolution function supported by S3900 switches should be used
together with a domain name server. Different domain name server may have
differences in DNS implementation. For example, the S3900 supports a domain name
which includes “_”, while a Windows 2000 Server may not able to resolve the “_”.
Example
Syntax
dns resolve
undo dns resolve
View
System view
Parameter
None
Description
Use the dns resolve command to enable dynamic domain name resolution.
Use the undo dns resolve command to disable dynamic domain name resolution.
Dynamic domain name resolution is disabled by default.
Example
1-5
Command Manual - DNS
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DNS Configuration Commands
Syntax
View
System view
Parameter
Description
Use the dns server command to configure an IP address to the DNS Server.
Use the undo dns server to remove IP addresses.
No IP address is configured to the DNS Server by default.
You can configure maximum 6 DNS Servers.
Related command: display dns server.
Example
1.1.8 ip host
Syntax
View
System view
Parameter
1-6
Command Manual - DNS
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DNS Configuration Commands
Description
Use the ip host command to create a mapping between host name and IP address in
the static resolving list.
Use the undo ip host command to remove the mapping.
No mappings are created by default.
You can configure only one mapping between IP address to host name. For example, a
new mapping configured will overwrite the old one if there is any.
Related command: display ip host.
Example
Syntax
View
Any view
Parameter
ptr ip-address: Resolves the corresponding DNS domain name for an IP address.
a domain-name: Resolves the corresponding IP address for a DNS domain name. The
domain name which is a string up to 30 characters supports automatic domain name
completing.
Description
Use the nslookup type command to display the results of DNS resolution. It can
resolve the corresponding IP address for a specified domain name or resolve the
corresponding domain name for a specified IP address.
Example
1-7
Command Manual - DNS
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 1 DNS Configuration Commands
Syntax
View
User view
Parameter
None
Description
Example
1-8
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
The command index includes all the commands in the VRP Command Manual, which are arranged
alphabetically.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
A
abr-summary Routing Protocol 3-1
A-1
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
B
backup current-configuration to File System 1-21
Management
A-2
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
C
cache-sa-enable Multicast 7-1
D
databits Login 1-3
A-3
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-4
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-5
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-6
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-7
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-8
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-9
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-10
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-11
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-12
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-13
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
Configuration
E
enable snmp trap updown SNMP&RMON 1-8
F
fabric save-unit-id IRF Fabric 1-6
A-14
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
G
garp timer GVRP 1-2
H
habp enable 802.1x 2-3
I
Huawei Technologies Proprietary
A-15
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-16
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
J
Huawei Technologies Proprietary
A-17
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
K
key AAA&RADIUS&HWTA 1-37
CACS&EAD
L
lacp enable Link Aggregation 1-6
A-18
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
M
mac-address MAC Address Table 1-4
A-19
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
N
name VLAN 1-5
A-20
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
O
open FTP and TFTP 1-23
A-21
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
P
packet-filter ACL 1-6
A-22
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-23
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
Binding
Q
qos cos-local-precedence-map QoS&QoS Profile 1-12
A-24
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
R
radius client AAA&RADIUS&HWTA 1-43
CACS&EAD
A-25
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
CACS&EAD
A-26
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-27
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
S
save Configuration File 1-13
Management
A-28
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-29
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-30
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
A-31
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
T
tcp timer fin-timeout IP Address and 2-19
Performance
Confiugration
A-32
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
U
udp-helper enable UDP Helper 1-2
A-33
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
V
verbose FTP and TFTP 1-30
A-34
Command Manual - Command Index
Quidway S3900 Series Ethernet Switches-Release 1510 Appendix A Command Index
W
webcache address Web Cache Redirection 1-2
X
Y
Z
A-35