Quidway s6500 Series Ethernet Switches Command Manual
Quidway s6500 Series Ethernet Switches Command Manual
Quidway s6500 Series Ethernet Switches Command Manual
1. Getting Started
2. Port
3. VLAN
4. Network Protocol
5. Routing Protocol
6. Multicast Protocol
7. QoS/ACL
8. STP
9. Security
10. Reliability
11. System Management
12. PoE
13. Appendix
T2-081933-20051118-C-2.01
Product Version
BOM
3119A033
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.
Trademarks
M900/M1800,
TELLIN, InfoLink, Netkey, Quidway, SYNLOCK, Radium,
TELESIGHT, Quidview, Musa, Airbridge, Tellwin, Inmedia, VRP, DOPRA,
iTELLIN, HUAWEI OptiX, C&C08 iNET, NETENGINE, OptiX, iSite, U-SYS, iMUSE,
OpenEye, Lansway, SmartAX, infoX, and TopEng are trademarks of Huawei
Technologies Co., Ltd.
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.
Related Manuals
The following manuals provide more information about the Quidway S6500 Series
Ethernet Switches.
Manual
Content
Organization
Quidway S6500 Series Ethernet Switches
following parts:
z
Getting Started
Port
Introduces the commands used for configuring Ethernet port and link aggregation.
z
VLAN
This module introduces the commands used for configuring VLAN, GARP, and
GVRP.
z
Network Protocol
Routing Protocol
Multicast Protocol
Introduces the commands used for configuring traffic classification and access control
list (ACL).
STP
Includes all the commands in this command manual, which are arranged
alphabetically.
Intended Audience
The manual is intended for the following readers:
z
Network engineers
Network administrators
Conventions
The manual uses the following conventions:
I. General conventions
Convention
Description
Arial
Boldface
Courier New
Description
Boldface
italic
[]
{ x | y | ... }
[ x | y | ... ]
{ x | y | ... } *
[ x | y | ... ] *
Description
<>
[]
Description
<Key>
Press the key with the key name inside angle brackets. For
example, <Enter>, <Tab>, <Backspace>, or <A>.
<Key1+Key2>
<Key1, Key2>
Press the keys in turn. For example, <Alt, A> means the
two keys should be pressed in turn.
V. Mouse operation
Action
Description
Select
Click
Double-Click
Drag
Press and hold the primary mouse button and move the
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:
HUAWEI
Getting Started
Table of Contents
Table of Contents
Chapter 1 Logging in Ethernet Switch Commands ................................................................... 1-1
1.1 Logging in Ethernet Switch Commands ............................................................................ 1-1
1.1.1 authentication-mode................................................................................................ 1-1
1.1.2 auto-execute command........................................................................................... 1-2
1.1.3 command-privilege level ......................................................................................... 1-2
1.1.4 databits.................................................................................................................... 1-3
1.1.5 display history-command ........................................................................................ 1-4
1.1.6 display user-interface .............................................................................................. 1-4
1.1.7 display users ........................................................................................................... 1-6
1.1.8 flow-control .............................................................................................................. 1-7
1.1.9 free user-interface ................................................................................................... 1-7
1.1.10 header ................................................................................................................... 1-8
1.1.11 history-command max-size ................................................................................. 1-10
1.1.12 idle-timeout.......................................................................................................... 1-10
1.1.13 language-mode ................................................................................................... 1-11
1.1.14 lock ...................................................................................................................... 1-12
1.1.15 modem ................................................................................................................ 1-12
1.1.16 modem auto-answer ........................................................................................... 1-13
1.1.17 modem timer answer........................................................................................... 1-13
1.1.18 parity.................................................................................................................... 1-14
1.1.19 protocol inbound.................................................................................................. 1-15
1.1.20 quit....................................................................................................................... 1-15
1.1.21 return ................................................................................................................... 1-16
1.1.22 screen-length....................................................................................................... 1-16
1.1.23 send..................................................................................................................... 1-17
1.1.24 service-type ......................................................................................................... 1-17
1.1.25 set authentication password................................................................................ 1-19
1.1.26 shell ..................................................................................................................... 1-20
1.1.27 speed................................................................................................................... 1-21
1.1.28 stopbits ................................................................................................................ 1-22
1.1.29 super ................................................................................................................... 1-22
1.1.30 super password ................................................................................................... 1-23
1.1.31 sysname .............................................................................................................. 1-24
1.1.32 system-view......................................................................................................... 1-24
1.1.33 telnet.................................................................................................................... 1-25
1.1.34 user-interface ...................................................................................................... 1-26
1.1.35 user privilege level .............................................................................................. 1-26
View
User interface view
Parameter
password: Perform local password authentication.
scheme: Perform local or remote authentication of username and password.
none: No authentication.
Description
Using authentication-mode command, you can configure the authentication method
for login user. Using authentication-mode none command, you can configure no
authentication.
This command with the password parameter indicates to perform local password
authentication, that is, you need to configure a login password using the set
authentication password { cipher | simple } password command.
This command with the scheme parameter indicates to perform authentication of local
or remote username and password. The type of the authentication depends on your
configuration. For detailed information, see Security section.
By default, users logging in via the Console port do not need to pass any terminal
authentication, whereas the password is required for authenticating the Modem and
Telnet users when they log in.
Example
# Configure local password authentication.
[Quidway-ui-aux0] authentication-mode password
View
User interface view
Parameter
text: Specifies the command to be run automatically.
Description
Using auto-execute command command, you can configure to automatically run a
specified command. When a user logs in, the command configured will be executed
automatically. Using undo auto-execute command command, you can configure not
to run the command automatically.
This command is usually used to configure the telnet command on the terminal, which
will connect the user to a designated device automatically.
By default, auto run is disabled.
Caution:
z
If you execute this command, the user-interface can no longer be used to perform
routine configurations on the local system. Therefore use caution when using this
command.
Ensure that you will be able to log into the system in some other way to cancel the
configuration, before you configure the auto-execute command command and
save the configuration.
Example
# Configure to automatically telnet 10.110.100.1 after the user logs in via VTY 0.
[Quidway-ui-vty0] auto-execute command telnet 10.110.100.1
View
System view
Parameter
level: Specifies the command level, ranging from 0 to 3.
view: Specifies the command view, which can be any of the views supported by the
switch.
command: Specifies the command to be configured.
Description
Using command-privilege level command, you can configure the priority of the
specifically command of the specifically view. Using undo command-privilege view
command, you can restore the default command priority.
The command levels include visit, monitoring, system, and management, which are
identified as 0 through 3 respectively. The network administrator can customize the
command levels as needed.
Example
# Configure the precedence of the command "interface" in system view as 0.
[Quidway] command-privilege level 0 view system interface
1.1.4 databits
Syntax
databits { 7 | 8 }
undo databits
View
User interface view
Parameter
7: The data bits are 7.
8: The data bits are 8.
Description
Using databits command, you can configure the data bits for AUX (Console) port.
Using undo databits command, you can restore the default bits of the AUX (Console).
This command can only be performed in AUX user interface view.
Example
# Configure the data bits of AUX (Console) port to 7 bits.
[Quidway-ui-aux0] databits 7
View
Any view
Parameter
None
Description
Using display history-command command, you can view the saved history
commands.
For the related command, see history-command max-size.
Example
# Display history commands.
<Quidway> display history-command
sys
quit
display his
View
Any view
Parameter
type: Specifies the type of a user interface.
number: Specifies the number of a user interface.
summary: Display the summary of a user interface.
Huawei Technologies Proprietary
1-4
Description
Using display user-interface command, you can view the relational information of the
user interface. This command without the summary parameter displays user interface
type, absolute/relative index, transmission speed, priority, authentication methods, and
physical location. This command with the summary parameter displays one user
interface in use totally and user interface name etc.
Example
# Display the relational information of user interface 0.
<Quidway> display user-interface 0
Idx
F 0
Type
Tx/Rx
Int
AUX 0
9600
Idx
Description
Idx
Type
Tx/Rx
Modem
Privi
Which levels of commands can be used after logging in from the user
interface
Auth
Int
(U)
Description
0: U
UI's name
View
Any view
Parameter
all: Display the information of all user interfaces.
Description
Using display users command, you can view the information of the user interface.
Example
# Display the information of the current user interface.
[Quidway] display users
UI
F 0
AUX 0
Delay
Type
Ipaddress
Username
00:00:00
Description
UI
Field
Description
Delay
Indicates the interval from the latest input till now in seconds.
Type
User type
IPaddress
Username
Display the name of the user using this user interface, namely the
login username of the user.
1.1.8 flow-control
Syntax
flow-control { hardware | none | software }
undo flow-control
View
User interface view
Parameter
hardware: Configures to perform hardware flow control.
none: Configures no flow control.
software: Configures to perform software flow control.
Description
Using flow-control command, you can configure the flow control mode on AUX
(Console) port. Using undo flow-control command, you can restore the default flow
control mode.
This command can only be performed in AUX user interface view.
By default, the value is none. That is, no flow control will be performed.
Example
# Configure software flow control on AUX (Console) port.
[Quidway-ui-aux0] flow-control software
View
User view
Parameter
type: Specifies the user interface type.
number: Specifies the absolute/relative number of the user interface. Configured
together with the type, it will specify the user interface number of the corresponding
type. If the type is not specified, number will specify an absolute user interface number.
Description
Using free user-interface command, you can clear a user of a specified user interface.
The user interface will be disconnected after the command is executed.
Note that the user of the current user interface cannot be cleared.
Example
# Clear the user of the user interface 1 after logging in to the switch via user interface 0.
<Quidway> free user-interface 1
After the command is executed, user interface 1 will be disconnected. It will not be
connected to the switch until you log in via the user interface 1 for the next time.
1.1.10 header
Syntax
header [ shell | incoming | login ] text
undo header [ shell | incoming | login ]
View
System view
Parameter
login: Login information in case of authentication. It is displayed before the user is
prompted to enter user name and password.
shell: User conversation established header, the information output after user
conversation has been established. If authentication is required, it is prompted after the
user passes authentication.
incoming: Login header, the information output after a Modem user logs in. If
authentication is required, it is prompted after the user passes authentication. In this
case, no shell information is output.
text: Specifies the title text. If you do not choose any keyword in the command, the
system displays the login information by default. The system supports two types of
Huawei Technologies Proprietary
1-8
input modes: one is to input all the text in one line, and altogether 256 characters can
be input; the other is to input all the text in several lines using the <Enter> key. The text
starts and ends with the first character. After inputting the end character, press the
<Enter> key to exit the interact process.
Description
Using header command, you can configure to display header when user login. Using
undo header command, you can configure not to display the header.
When the users log in the switch, if a connection is activated, the login header will be
displayed. After the user successfully logs in the switch, the shell header will be
displayed.
Note that if you press <Enter> after typing any of the three keywords shell, login and
incoming in the command, then what you type after the word header is the contents of
the login information, instead of identifying header type.
You can judge whether the initial character can be used as the header contents this
way:
1)
If there is only one character in the first line and it is used as the identifier, this
initial character pairs with the ending character and is not the header contents.
2)
If there are many characters in the first line but the initial and ending characters
are different, this initial character pairs with the ending character and is the header
contents.
3)
There are many characters in the first line and the initial character is identical with
the ending character, this initial character is not the header contents.
Example
# Configure the header of setting up a session.
Mode 1: Input in one line
[Quidway] header shell %SHELL: Hello! Welcome% (The starting and ending
characters must be the same, and press the <Enter> key to finish a line)
When you log on the switch again, the terminal displays the configured session
establishment title.
[Quidway] quit
<Quidway> quit
Please press ENTER
SHELL: Hello! Welcome (The initial character % is not the header contents)
<Quidway>
Mode 2: Input in several lines
[Quidway] header shell % SHELL: (After you pressing the <Enter> key, the system
prompts the following message:)
Huawei Technologies Proprietary
1-9
Go on inputting the rest text and end your input with the first letter:
Hello! Welcome % (Press the <Enter> key)
[Quidway]
When you log on the switch again, the terminal displays the configured session
establishment title.
[Quidway] quit
<Quidway> quit
Please press ENTER
%SHELL: (The initial character % is the header contents)
Hello! Welcome
<Quidway>
View
User interface view
Parameter
value: Defines the size of the history buffer, ranging from 0 to 256. By default, the size is
10, that is, 10 history commands can be saved.
Description
Using history-command max-size command, you can configure the size of the history
command buffer. Using undo history-command max-size command, you can restore
default size of the history command buffer.
Example
# Set the history buffer to 20, namely saving 20 history commands.
[Quidway-ui-aux0] history-command max-size 20
1.1.12 idle-timeout
Syntax
idle-timeout minutes [ seconds ]
undo idle-timeout
View
User interface view
Parameter
minutes: Specifies the minute, ranging from 0 to 35791.
seconds: Specifies the second, ranging from 0 to 59.
Description
Using idle-timeout command, you can configure the timeout function. If there is no
user operation performed before idle-timeout expires, the user interface will be
disconnected. Using undo idle-timeout command, you can restore the default
idle-timeout.
idle-timeout 0 means disabling idle-timeout.
By default, idle-timeout is set to 10 minutes.
Example
# Configure the timeout value to 1 minute on the AUX user interface.
[Quidway-ui-aux0] idle-timeout 1 0
1.1.13 language-mode
Syntax
language-mode { chinese | english }
View
User view
Parameter
chinese: Configures the language environment of command line interface as Chinese.
english: Configures the language environment of command line interface as English.
Description
Using language-mode command, you can switch between different language
environments of command line interface for convenience of different users.
By default, the value is English.
Example
# Switch from English mode to Chinese mode.
1.1.14 lock
Syntax
lock
View
User view
Parameter
none
Description
Using lock command, you can lock the user interface to prevent unauthorized user
from operating it.
Example
# Lock the current user interface.
<Quidway> lock
Password: xxxx
Again: xxxx
1.1.15 modem
Syntax
modem [ call-in | both ]
undo modem [ call-in | both ]
View
User interface view
Parameter
call-in: Configures to allow call-in.
both: Configures to allow call-in and call-out.
Description
Using modem command, you can configure the call-in and call-out attributes of the
Modem. Using undo modem command, you can cancel the configuration of Modem
call-in and call-out attributes.
The modem command without parameters is used to allow call-in and call-out.
Huawei Technologies Proprietary
1-12
The undo modem command without parameters is used to ban call-in and call-out.
This command can only be performed in AUX user interface view.
Example
# Configure to allow call-in and call-out of Modem on the AUX (Console) port.
[Quidway-ui-aux0] modem both
View
User interface view
Parameter
none
Description
Using modem auto-answer command, you can configure the answer mode as
auto-answer. Using undo modem auto-answer command, you can configure the
answer mode as manual answer.
By default, the mode is set to manual answer.
This command can only be performed in AUX user interface view.
Example
# Configure the answer mode of the Modem on the AUX (Console) port as
auto-answer.
[Quidway-ui-aux0] modem auto-answer
View
User interface view
Parameter
seconds: Specifies the timer answer in seconds, ranging from 1 to 60.The default value
is 30s.
Description
Using modem timer answer command, you can configure the timer answer from
off-hook to carrier detected when establishing the call in connection. Using undo
modem timer answer command, you can restore the default timeout value.
This command can only be performed in AUX user interface view.
Example
# Set the timer answer of AUX 0 to 45s.
[Quidway-ui-aux0] modem timer answer 45
1.1.18 parity
Syntax
parity { even | mark | none | odd | space }
undo parity
View
User interface view
Parameter
even: Configures to perform even parity.
mark: Configures to perform mark parity.
none: Configures not to perform parity.
odd: Configures to perform odd parity.
space: Configures to perform space parity.
Description
Using parity command, you can configure the parity mode on AUX (Console) port.
Using undo parity command, you can restore the default parity mode.
This command can only be performed in AUX user interface view.
By default, the mode is set to none.
Example
# Set mark parity on the AUX (Console) port.
[Quidway-ui-aux0] parity mark
View
VTY user interface view
Parameter
all: Supports both Telnet and SSH protocols.
ssh: Supports only SSH protocol.
telnet: Supports only Telnet protocol.
Description
Using the protocol inbound command, you can configure the protocols supported by
a designated user interface.
By default, the user interface supports Telnet and SSH protocols.
For the related commands, see user-interface vty.
Example
# Configure SSH protocol supported by VTY0 user interface.
[Quidway-ui-vty0] protocol inbound ssh
1.1.20 quit
Syntax
quit
View
Any view
Parameter
none
Description
Using quit command, you can return to the lower level view from the current view. If the
current view is user view, you can quit the system.
There are three levels of views, which are listed from low to high as follows:
z
User view
System view
Example
# Return to user view from system view.
[Quidway] quit
<Quidway>
1.1.21 return
Syntax
return
View
System view or above
Parameter
none
Description
Using return command, you can return to user view from a view other than user view.
Combination key <Ctrl+Z> performs the same function with the return command.
For the related command, see quit.
Example
# Return to user view from system view.
[Quidway] return
<Quidway>
1.1.22 screen-length
Syntax
screen-length screen-length
undo screen-length
View
User interface view
Parameter
screen-length: Specifies how many lines can be displayed on a screen, ranging from 0
to 512. The default value is 24.
Description
Using screen-length command, you can configure how many lines that can be
displayed on a screen of the terminal. Using undo screen-length command, you can
restore the default number of terminal information lines displayed on the terminal
screen.
The screen-length 0 command is used to disable this function.
Example
# Configure the lines that can be displayed on a screen as 20 lines.
[Quidway-ui-aux0] screen-length 20
1.1.23 send
Syntax
send { all | number | type number }
View
User view
Parameter
all: Configures to send message to all user interfaces.
type: Specifies the user interface type, which can be aux or vty.
number: Specifies the absolute/relative number of the user interface.
Description
Using send command, you can send messages between different user interfaces.
Example
# Send message to all the user interfaces.
<Quidway> send all
1.1.24 service-type
Syntax
service-type { ftp [ ftp-directory directory ] | lan-access | { ssh | telnet | terminal }*
[ level level ] }
View
Local user view
Parameter
telnet: Specifies user type as Telnet.
ssh: Specifies user type as SSH.
ftp: Specifies user type as ftp.
ftp-directory directory: Specifies the directory of ftp users, directory is a character
string of up to 64 characters.
lan-access: Specifies user type to lan-access, which mainly refers to Ethernet
accessing users, 802.1x supplicants for example.
terminal: Authorizes the user to use the terminal service (login from the Console port).
level level: Specifies the level of Telnet, SSH or terminal users. The argument level is
an integer in the range of 0 to 3 and defaults to 0.
Description
Use the service-type command to configure the log type and the command level can
be accessed after the logon. Use the undo service-type command to cancel the
setting.
Commands are classified into four levels, namely visit level, monitoring level, system
level and management level. They are introduced as follows:
z
Visit level: Commands of this level involve command of network diagnosis tool
(such as ping and tracert), command of switch between different language
environments of user interface (language-mode), and telnet command etc. The
operation of saving configuration file is not allowed on this level of commands.
Monitoring level: Commands of this level, including the display command and the
debugging command, are used for system maintenance, service fault diagnosis,
etc. The operation of saving the configuration file is not allowed on this level of
commands.
Management level: These are commands that influence the basic operation of the
system and system support module, which plays a supporting role on service.
Commands of this level involve file system commands, FTP commands, TFTP
commands, user management commands, and level setting commands.
When users log into the switch, the commands they can use depend jointly on the user
level settings and the command level settings on the user interface. If the two types of
settings differ,
z
For the users using RSA public key authentication, the commands they can use
are determined by the command level settings on the user interface.
By default, ping, tracert, and telnet are at visit level (0); display and debugging are at
monitoring level (1); all the configuration commands are at system level (2); and FTP,
TFTP and commands for file system operations are at management level (3).
Example
# Configure the user zbr to use commands at level 0 after logon.
[Quidway] local-user zbr
[Quidway-luser-zbr] service-type telnet level 0
# Quit the system and logs on with username zbr again. Now only the commands at
level 0 are listed on the terminal.
[Quidway] quit
<Quidway> ?
User view commands:
language-mode
ping
quit
super
telnet
tracert
undo
View
User interface view
Parameter
cipher: Configure to display password in encrypted text.
simple: Configure to display password in plain text.
password: If the authentication is in the simple mode, the password must be in plain
text. If the authentication is in the cipher mode, the password can be either in
encrypted text or in plain text. The result is determined by the input. A plain text
password is a sequential character string of no more than 16 digits, for example,
huawei918. The length of an encrypted password must be 24 digits and in encrypted
text, for example, _(TT8F]Y\5SQ=^Q`MAF4<1!!.
Description
Using set authentication password command, you can configure the password for
local authentication. Using undo set authentication password command, you can
cancel local authentication password.
The password in plain text is required when performing authentication, regardless
whether the configuration is plain text or encrypted text.
Note:
By default, password is required to be set for authenticating the users connecting via
Modem or Telnet. If no password has been set, the following prompt will be displayed
Login password has not been set !
Example
# Configure the local authentication password on VTY 0 to huawei.
[Quidway-ui-vty0] set authentication password simple huawei
1.1.26 shell
Syntax
shell
undo shell
View
User interface view
Parameter
none
Description
Using shell command, you can enable terminal service of a user interface. Using undo
shell command, you can disable the terminal service of a user interface.
By default, terminal service is enabled.
When using the undo shell command, note the following points.
z
For the sake of security, the undo shell command can only be used on the user
interfaces other than the AUX user interface.
You cannot use this command on the user interface via which you log in.
You will be asked to confirm before executing this command on any legal user
interface.
Example
# Disable terminal service on the vty user interface 0 to 4 after logging in to the Ethernet
switch via user interface 0.
[Quidway] user-interface vty 0 4
[Quidway-ui-vty0-4] undo shell
# The following message will be displayed on the Telnet terminal after logon.
% Disable ui-vty0-4 , are you sure ? [Y/N]
1.1.27 speed
Syntax
speed speed-value
undo speed
View
User interface view
Parameter
speed-value: Specifies the transmission rate on the AUX (Console) port in bit/s, which
can be 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600 or 115200. The default
rate is 9600bit/s.
Description
Using speed command, you can configure the transmission rate on the AUX (Console)
port. Using undo speed command, you can restore the default rate.
This command can only be performed in AUX user interface view.
Example
# Configure the transmission speed on the AUX (Console) port as 9600bit/s.
[Quidway-ui-aux0] speed 9600
1.1.28 stopbits
Syntax
stopbits { 1 | 1.5 | 2 }
undo stopbits
View
User interface view
Parameter
1: Sets 1 stop bit.
1.5: Sets 1.5 stop bits.
2: Sets 2 stop bits.
Description
Using stopbits command, you can configure the stop bits on the AUX (Console) port.
Using undo stopbits command, you can restore the default stop bits.
This command can only be performed in AUX user interface view.
By default, the value is 1.
Example
# Configure 2 stop bits on the AUX (Console) port.
[Quidway-ui-aux0] stopbits 2
1.1.29 super
Syntax
super [ level ]
View
User view
Parameter
level: User level, ranging 0 to 3. The default value is 3.
Description
Using super command, you can enable the user to change to user level from the
current user level. If the user has set the super password [ level level ] { simple |
cipher } password, then user password of the higher level is needed, or the former user
level will not change.
Login users are classified into four levels that correspond to the four command levels
respectively. After users of different levels log in, they can only use commands at the
levels that are equal to or lower than its own level.
For the related commands, see super password, quit.
Example
# change to user level 3 from the current user level.
<Quidway> super 3
Password:
View
System view
Parameter
level: User level, ranging from 1 to 3. The default value is 3, i.e. do not specify user level.
It means the password to be set is used for entering level 3.
simple: Configure to display password in plain text.
cipher: Configure to display password in encrypted text.
password: If the authentication is in the simple mode, the password must be in plain
text. If the authentication is in the cipher mode, the password can either be in
encrypted text or in plain text. The result is determined by the input. A plain text
password is a sequential character string of no more than 16 digits, for example,
huawei918. The length of an encrypted password must be 24 digits and in encrypted
text, for example, _(TT8F]Y\5SQ=^Q`MAF4<1!!.
Description
Using super password command, you can configure the password for changing the
user from a lower level to a higher level. In order to prevent unauthorized users from
illegal intrusion, user ID authentication is performed when users switch from a lower
Huawei Technologies Proprietary
1-23
level to a higher level. For the sake of confidentiality, on the screen the user cannot see
the password that he entered. Only when correct password is input for three times, can
the user switch to the higher level. Otherwise, the original user level will remain
unchanged. Using undo super password command, you can cancel the current
settings.
The password in plain text is required when performing authentication, regardless
whether the configuration is plain text or encrypted text.
Example
# Configure the password to zbr for changing the user from the current level to level 3.
[Quidway] super password level 3 simple zbr
1.1.31 sysname
Syntax
sysname text
undo sysname
View
System view
Parameter
text: Specifies the hostname with a character string, ranging from 1 to 30 characters.
The default name is Quidway.
Description
Using sysname command, you can configure the hostname of the Ethernet switch.
Using undo sysname command, you can restore the default hostname.
Changing the hostname of the Ethernet switch will affect the prompt of command line
interface. For example, if the hostname of the Ethernet switch is Quidway, the prompt in
user view will be <Quidway>.
Example
# Configure the hostname of Ethernet switch to Huawei.
[Quidway] sysname Huawei
[Huawei]
1.1.32 system-view
Syntax
system-view
Huawei Technologies Proprietary
1-24
View
User view
Parameter
None
Description
Using system-view command, you can enter system view from user view.
For the related commands, see quit, return.
Example
# Enter system view from user view.
<Quidway> system-view
[Quidway]
1.1.33 telnet
Syntax
telnet { hostname | ip-address } [ service-port ]
View
User view
Parameter
hostname: Specifies the host name of the remote switch. It is configured using the ip
host command.
ip-address: Specifies the IP address of the remote switch.
service-port: Designates the TCP port on the remote switch providing Telnet service,
ranging from 0 to 65535.
Description
Using telnet command, you can log in to another switch from the current one via telnet
for remote management. To terminate the Telnet logon, press <Ctrl+K>.
By default, when the service-port is not specified, the default telnet port number is 23.
For the related command, see display tcp status.
Example
# Log in to switch Quidway2 at 129.102.0.1 from the current Quidway1 switch.
<Quidway1> telnet 129.102.0.1
*
*
<Quidway2>
1.1.34 user-interface
Syntax
user-interface [ type ] first-number [ last-number ]
View
System view
Parameter
type: Specifies the user interface type, which can be aux or vty.
first-number: Specifies the number of the first user interface to be configured.
last-number: Specifies the number of the last user interface to be configured.
Description
Using user-interface command, you can enter single user interface view or multiple
user interface views to configure the corresponding user interfaces.
Example
# Enter user interface view 0 through 5, that is, 1 AUX (Console) port user interface
view and 5 VTY user interface views.
[Quidway] user-interface 0 5
[Quidway-ui0-5]
View
User interface view
Huawei Technologies Proprietary
1-26
Parameter
level: Specifies which level of command a user can use after logon from the specifically
user interface, ranging from 0 to 3.
Description
Using user privilege level command, you can configure which level of command a
user can use after logon from the specifically user interface, so that a user can use all
the available commands at this level. Using undo user privilege level command, you
can restore the default level of command a user can use after logon from the
specifically user interface.
By default, a user can access the commands at Level 3 after logging in through the
AUX user interface, and the commands at Level 0 after logging in through the VTY user
interface.
When users log into the switch, the commands they can use depend jointly on the user
level settings and the command level settings on the user interface. If the two types of
settings differ,
z
For the users using RSA public key authentication, the commands they can use
are determined by the command level settings on the user interface.
By default, ping, tracert, and telnet are at visit level (0); display and debugging are at
monitoring level (1); all the configuration commands are at system level (2); and FTP,
TFTP and commands for file system operations are at management level (3).
Example
# Configure to use commands level 0 after logging in from VTY 0 user interface.
[Quidway-ui-vty0] user privilege level 0
# After you telnet from VTY 0 user interface to the switch, you will view the terminal only
displays commands at level 0.
<Quidway> ?
User view commands:
language-mode
ping
quit
super
telnet
tracert
HUAWEI
Port
Table of Contents
Table of Contents
Chapter 1 Ethernet Port Configuration Commands................................................................... 1-1
1.1 Ethernet Port Configuration Commands............................................................................ 1-1
1.1.1 broadcast-suppression............................................................................................ 1-1
1.1.2 copy configuration ................................................................................................... 1-2
1.1.3 description ............................................................................................................... 1-3
1.1.4 display interface ...................................................................................................... 1-3
1.1.5 display port .............................................................................................................. 1-6
1.1.6 display port vlan-vpn ............................................................................................... 1-7
1.1.7 duplex...................................................................................................................... 1-8
1.1.8 flow-control .............................................................................................................. 1-8
1.1.9 interface................................................................................................................... 1-9
1.1.10 loopback-detection control enable ...................................................................... 1-10
1.1.11 loopback-detection enable .................................................................................. 1-11
1.1.12 loopback-detection interval-time ......................................................................... 1-11
1.1.13 loopback-detection per-vlan enable .................................................................... 1-12
1.1.14 jumboframe enable ............................................................................................. 1-13
1.1.15 mdi....................................................................................................................... 1-13
1.1.16 multicast-suppression ......................................................................................... 1-14
1.1.17 port access vlan .................................................................................................. 1-15
1.1.18 port hybrid pvid vlan ............................................................................................ 1-16
1.1.19 port hybrid vlan.................................................................................................... 1-16
1.1.20 port link-type........................................................................................................ 1-17
1.1.21 port trunk permit vlan .......................................................................................... 1-18
1.1.22 port trunk pvid vlan.............................................................................................. 1-19
1.1.23 reset counters interface....................................................................................... 1-19
1.1.24 shutdown ............................................................................................................. 1-20
1.1.25 speed................................................................................................................... 1-21
1.1.26 vlan-vpn enable ................................................................................................... 1-21
Chapter 2 Link Aggregation Configuration Commands............................................................ 2-1
2.1 Link Aggregation Configuration Commands...................................................................... 2-1
2.1.1 debugging link-aggregation error ............................................................................ 2-1
2.1.2 debugging link-aggregation event ........................................................................... 2-1
2.1.3 debugging lacp packet ............................................................................................ 2-2
2.1.4 debugging lacp state ............................................................................................... 2-3
2.1.5 display link-aggregation summary........................................................................... 2-3
2.1.6 display link-aggregation verbose............................................................................. 2-4
2.1.7 display link-aggregation interface............................................................................ 2-5
Table of Contents
View
Ethernet port view
Parameter
ratio: Specifies the maximum bandwidth ratio of the broadcast traffic allowed on
Ethernet port, ranging form 1 to 100. By default, the value is 100. The smaller the ratio
is, the smaller the broadcast traffic is permitted.
bandwidth bandwidth: Specifies the maximum bandwidth of the broadcast traffic on
Ethernet port. It ranges from 1 to 100 for 100Mbit/s port, from 1 to 1000 for 1000Mbit/s
port in Mbit/s.
pps pps: Specifies the maximum packets per second of the broadcast traffic.
z
Description
Using broadcast-suppression command, you can configure the broadcast traffic size
enabled on current port. Using undo broadcast-suppression command, you can
restore the default broadcast traffic enabled on current port.
By default, all broadcast traffic is allowed to pass through, that is, no broadcast
suppression will be performed.
Once the broadcast traffic exceeds the value set by the user, the system will discard
some broadcast to ensure network service so that the traffic ratio of broadcast is
maintained in a proper range.
The configuration of the suppression mode on the port will overwrite the previously
configured mode.
Example
# Enable 20% broadcast cast to pass, i.e. 80% broadcast storm suppression is made
on broadcast traffic of port.
[Quidway-Ethernet1/0/1] broadcast-suppression 20
View
System view
Parameter
interface_type: Source port type.
interface_num: Source port number.
interface_name: Source port name, in the format of interface_name = interface_type
interface_num. For more information, see the parameter item for the interface
command.
agg-id1: Source aggregation group ID, ranging from 1 to 384. The port with minimum
port number is the source port.
interface_list: Destination port list, interface_list1 = { interface_type interface_num |
interface_name } [ to { interface_type interface_num | interface_name } ] &<1-10>.
&<1-10> indicates that the former parameter can be input 10 times repeatedly at most.
agg-id2: Destination aggregation group ID, ranging from 1 to 384.
Description
Using the copy configuration command, you can copy the configuration of a specific
port to other ports, to ensure consistent configuration.
Example
# Copy the configuration of aggregation group 1 to aggregation group 2.
[Quidway]
copy
configuration
source
aggregation-group
aggregation-group 2
destination
1.1.3 description
Syntax
description text
undo description
View
Ethernet port view
Parameter
text: Port description character string, with 80 characters at most.
Description
Using description command, you can configure the description character string for
Ethernet port. Using undo description command, you can cancel the port description
character string.
By default, the port description character string is null.
Example
# Configure the description character string of Ethernet port Ethernet1/0/1 as
lanswitch-interface.
[Quidway-Ethernet1/0/1] description lanswitch-interface
View
Any view
Parameter
interface_type: Specifies the port type.
interface_num: Specifies the port number.
interface_name: Specifies the port name in the interface_name= interface_type
interface_num format.
For parameter description, refer to the interface command.
Description
Using display interface command, you can view the configuration information on the
port.
If the port type and number are not specified when displaying the port information, the
information of all the ports will be displayed. If only the port type is specified, all the
information of the ports of this type will be displayed. If both port type and port number
are specified, the information of the designated port will be displayed.
Example
# Display configuration information of Ethernet1/0/1.
<Quidway> display interface ethernet1/0/1
Ethernet1/0/1 current state : UP
IP
Sending
Frames'
Format
is
PKTFMT_ETHNT_2,
Hardware
address
00e0-fc00-0010
The Maximum Transmit Unit is 1500
Media type is twisted pair, loopback not set
Port hardware type is 100_BASE_TX
100Mbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 1536
Broadcast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 1
Mdi type: auto
Port link-type: access
Tagged
VLAN ID : none
Untagged VLAN ID : 1
Last 300 seconds input:
0 packets/sec 0 bytes/sec
0 packets/sec 0 bytes/sec
0 packets, 0 bytes
- broadcasts, - multicasts
Input(normal):
0 packets, 0 bytes
0 broadcasts, 0 multicasts
Input:
0 throttles, 0 CRC
is
Description
Hardware address
Description
Media type
Type of media
100Mbps-speed
full-duplex mode
mode,
Link
speed
type
is
autonegotiation, link duplex type
is autonegotiation
Broadcast MAX-ratio
PVID
Mdi type
Cable type
Port link-type
Tagged VLAN ID
Untagged VLAN ID
Field
Description
0 packets, 0
0 broadcasts, 0 multicasts
Input: 0 input errors, 0 runts, 0
giants, 0 throttles, 0 CRC
0 frame,
- overruns, aborts, - ignored, - parity errors
Output(total): 0 packets, 0 bytes
- broadcasts, - multicasts, pauses
Output(normal): 0 packets, 0
bytes
0 broadcasts, 0 multicasts,
0 pauses
Output: 0 output errors,
underruns, - buffer failures
- aborts, 0 deferred, 0
collisions, 0 late collisions
- lost carrier, - no carrier
View
Any view
Parameter
hybrid: Display Hybrid port.
Trunk: Display Trunk port.
Description
Using display port command, you can view the names of the ports that are of Hybrid or
Trunk type, and the corresponding VLANs whose packets are permitted by these ports.
Example
# Display the Hybrid ports in the current system.
<Quidway> display port hybrid
Interface
VLAN passing
GigabitEthernet3/0/6
Tagged: 100
Untagged: 1, 200
The above information displays that the current system has one Hybrid port
GigabitEthernet3/0/6, the tagged VLAN permitted passing is VLAN 100, the untagged
VLANs permitted passing are VLAN 1 and VLAN 200.
View
Any view
Parameter
none
Description
Using display port vlan-vpn command, you can view the ports on which VLAN VPN
has been enabled and the VLAN ID of the VLAN VPN.
Example
# Display the related information of the port VLAN VPN feature.
<Quidway> display port vlan-vpn
Ethernet1/0/1
VLAN-VPN status: enabled
VLAN-VPN VLAN: 1
Ethernet1/0/2
VLAN-VPN status: enabled
VLAN-VPN VLAN: 2
Description
Ethernet1/0/1
VLAN-VPN status
VLAN-VPN VLAN
1.1.7 duplex
Syntax
duplex { auto | full | half }
undo duplex
View
Ethernet port view
Parameter
auto: Port auto-negotiation attribute.
full: Port full-duplex attribute.
half: Port half-duplex attribute.
Description
Using duplex command, you can configure the full-duplex/half-duplex attribute of the
Ethernet port. Using undo duplex command, you can restore the duplex attribute of
the port to default auto-negotiation mode.
By default, the duplex attribute is auto.
For the related command, see speed.
Example
# Configure the Ethernet port Ethernet1/0/1 as auto-negotiation attribute.
[Quidway-Ethernet1/0/1] duplex auto
1.1.8 flow-control
Syntax
flow-control
undo flow-control
View
Ethernet port view
Parameter
none
Description
Using flow-control command, you can enable flow control feature on the Ethernet port
to avoid discarding data packets due to congestion. Using undo flow-control
command, you can disable flow control feature.
By default, flow control on the Ethernet port is disabled.
Example
# Enable flow control on Ethernet1/0/1.
[Quidway-Ethernet1/0/1] flow-control
1.1.9 interface
Syntax
interface { interface_type interface_num | interface_name }
View
System view
Parameter
interface-type: Specifies the port type. it can be Ethernet or GigabitEthernet or
M-Ethernet.
interface_num: Specifies the port number. The port number can be expressed as
slot-number/subslot-number/port-number. For S6506 and S6506R Ethernet Switches,
slot-number specifies the LPU slot number of the port. For S6506, it ranges from 1 to 6.
For S6506R, it ranges from 2 to 7. subslot-number specifies the sub-slot number of the
port. For the slot without subslot, the subslot-number is fixed as 0. For the slot with
subslot, the subslot-number ranges from 1 to 4, according to how many ports a subslot
provides. port-number specifies the port number on the LPU and ranges from 1 to 8, 24,
or 48 according to how many ports a LPU provides. For S6503 Ethernet Switch, the
LPU slot-number ranges from 1 to 3 and SRPU slot-number ranges from 0 to 3.
Subslot-number takes 0 or ranges from 1 to 4, and the port number ranges from 1 to 8,
24, or 48. M-Ethernet is used to update and maintain. It ranges from 0/0/0.
interface_name: Specifies the port name in the interface_name = interface_type
interface_num format.
Description
Using interface command, you can enter the Ethernet port view.
If the user wants to configure the related parameters of the Ethernet port, he must first
use this command to enter the Ethernet port view.
Example
# Enter the Ethernet1/0/1 port view.
[Quidway] interface ethernet1/0/1
View
Ethernet port view
Parameter
none
Description
Using loopback-detection control enable command, you can enable loopback
detection control function on a Trunk port or Hybrid port. Using undo
loopback-detection control enable command, you can disable loopback detection
control function on a Trunk port or Hybrid port.
This command sets control over the operating status of the port, when the loopback
detection function is enabled and lookback is found on a Trunk or Hybrid port. When
this function is enabled and loopback is detected on a Trunk or Hybrid port, the system
begins to control the operating status of the port.
When this function is disabled and loopback is found, the system just reports a Trap
message but has no control over the operating status of the Trunk or Hybrid port.
By default, loopback detection controlled function on Trunk or Hybrid port is disabled.
Note that, this command has no effect on Access ports.
Example
# Enable the port loopback detection controlled function.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view/Ethernet port view
Parameter
none
Description
Using loopback-detection enable command, you can enable the port loopback
detection. If there is a loopback port found, the switch will put it under control. Using
undo loopback-detection enable command, you can disable the port loopback
detection.
The loopback detection of the specified port functions only after port loopback detection
is enabled in system view and Ethernet port view.
By default, port loopback detection is disabled.
For the related command, see display loopback-detection.
Example
# Enable the port loopback detection.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
time: Specifies the interval of monitoring external loopback conditions of the port. It
ranges from 5 to 300, measured in seconds. By default, the interval is 30 seconds.
Description
Using loopback-detection interval-time command, you can configure detection
interval
for
the
external
loopback
condition
of
each
port.
Using
undo
Example
# Configure the detection interval for the external loopback condition of each port to 10
seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
Ethernet port view
Parameter
none
Description
Using the loopback-detection per-vlan enable command, you can configure that the
system performs loopback detection to all VLANs on Trunk and Hybrid ports. Using the
undo loopback-detection per-vlan enable command, you can configure that the
system only performs loopback detection to the default VLANs on the port.
By default, the system performs loopback detection to the default VLAN on Trunk and
Hybrid ports.
Example
# Configure the detection interval for the external loopback condition of each port to 10
seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
Ethernet port view
Parameter
jumboframe-value: Size of jumbo frame permitted to pass through, in the range of 1536
bytes to 9216 bytes.
Description
Using jumboframe enable command, you can permit jumbo frame to pass through the
current Ethernet port. Using undo jumboframe enable command, you can forbid
jumbo frame to pass through.
By default, the jumbo frame with length between 1518 bytes and 1536 bytes including
are permitted to pass through the Ethernet port.
Example
# Permit the jumbo frame with length between 1518 bytes and 1536 bytes to pass
through GigabitEthernet1/0/1.
[Quidway-GigabitEthernet1/0/1] jumboframe enable
1.1.15 mdi
Syntax
mdi { across | auto | normal }
undo mdi
View
Ethernet port view
Parameter
across: The network cable type is cross-over cable.
auto: The network cable will be recognized whether it is straight-through cable or
cross-over cable.
normal: The network cable of the port is straight-through cable.
Description
Using mdi command, you can configure the network cable type of the Ethernet ports.
Using undo mdi command, you can restore the default type.
By default, the network cable type will be recognized automatically.
Note that, the settings only take effect on 10/100Base-T and 10/100/1000Base-T ports.
S6500 series Switches only support auto (auto-sensing). If you set some other type,
you will see the prompt Operation not supported!
Example
# Configure the network cable type of Ethernet port Ethernet1/0/1 as auto.
[Quidway-Ethernet1/0/1] mdi auto
1.1.16 multicast-suppression
Syntax
multicast-suppression { ratio | bandwidth { mbps-value | kbps kbps-value } | pps
max-pps }
undo multicast-suppression
View
Ethernet port view
Parameter
ratio: Specifies the maximum wire speed ratio of the multicast traffic allowed on
Ethernet port, ranging form 1 to 100. The step is 1. By default, the value is 100. The
smaller the ratio is, the smaller the multicast traffic is permitted.
mbps-value: Specifies the maximum bandwidth of the broadcast traffic on Ethernet port.
It ranges from 1 to 100 for 100Mbit/s port, from 1 to 1000 for 1000Mbit/s port, from 1 to
10,000 for 10Gbit/s port in Mbps.
Description
Using multicast-suppression command, you can configure the multicast traffic size
enabled on port. Once the multicast traffic exceeds the value set by the user, the
system will discard some multicast to ensure network service so that the traffic ratio of
multicast is maintained in a proper range. Using undo multicast-suppression
command, you can restore the default multicast traffic enabled on port as 100. i.e.,
100% multicast traffic is allowed to pass through.
Note that: Currently, type A LPUs of S6500 series switch (LS81FT48A/
LS81FM24A/LS81FS24A/LS81GB8UA/LS81GT8UA) do not support the configuration
of multicast traffic suppression.
Example
# Enable 20% multicast packets to pass, i.e. 80% multicast storm suppression is made
on multicast traffic of port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
Ethernet port view
Parameter
vlan_id: VLAN ID defined in IEEE802.1Q, ranging from 2 to 4094.
Huawei Technologies Proprietary
1-15
Description
Using port access vlan command, you can join the access port to a specified VLAN.
Using undo port access vlan command, you can cancel the access port from the
VLAN.
The use condition of this command is the VLAN indicated in vlan_id must exist.
Example
# Join Ethernet1/0/1 port to VLAN3 (VLAN3 has existed).
[Quidway-Ethernet1/0/1] port access vlan 3
View
Ethernet port view
Parameter
vlan_id: VLAN ID defined in IEEE802.1Q, ranging from1 to 4094 and the default
vlan_id is 1.
Description
Using port hybrid pvid vlan command, you can configure the default VLAN ID of the
hybrid port. Using undo port hybrid pvid command, you can restore the default VLAN
ID of the hybrid port.
The default VLAN ID of local hybrid port shall be consistent with that of the peer one,
otherwise, the packet cannot be properly transmitted.
For the related command, see port link-type.
Example
# Configure the default VLAN of the hybrid port Ethernet1/0/1 to 100.
[Quidway-Ethernet1/0/1] port hybrid pvid vlan 100
View
Ethernet port view
Parameter
vlan_id_list: vlan_id_list = [ vlan_id1 [ to vlan_id2 ] ]&<1-10> specifies which VLAN the
hybrid port will be added to. It can be discrete. The vlan_id ranges from 1 to 4094.
&<1-10> indicates that the former parameter can be input 10 times repeatedly at most.
tagged: The packet of specified VLAN will have tag.
untagged: The packet of specified VLAN will not have tag.
Description
Using port hybrid vlan command, you can join the hybrid port to specified existing
VLAN. Using undo port hybrid vlan command, you can cancel the hybrid port from
the specified VLAN.
Hybrid port can belong to multiple VLANs. If the port hybrid vlan vlan_id_list { tagged
| untagged } command is used for many times, the VLANs carried by the hybrid port is
the set of vlan_id_list.
This command can be used on condition that the VLAN specified with vlan_id must
have been existed.
For the related command, see port link-type.
Example
# Join hybrid port Ethernet1/0/1 to VLAN of 2, 4 and 50-100, and these VLAN will have
tags.
[Quidway-Ethernet1/0/1] port hybrid vlan 2 4 50 to 100 tagged
View
Ethernet port view
Parameter
access: Configure the port as access port.
hybrid: Configure the port as hybrid port.
trunk: Configure the port as trunk port
Description
Using port link-type command, you can configure the link type of Ethernet port. Using
undo port link-type command, you can restore the port as default status, i.e. access
port.
You can configure three types of ports concurrently on the same switch, but you cannot
switch between trunk port and hybrid port. You must turn it first into access port and
then set it as other type. For example, you cannot configure a trunk port directly as
hybrid port, but first set it as access port and then as hybrid port.
By default, the port is access port.
Example
# Configure Ethernet port Ethernet1/0/1 as trunk port.
[Quidway-Ethernet1/0/1] port link-type trunk
View
Ethernet port view
Parameter
vlan_id_list: vlan_id_list = [ vlan_id1 [ to vlan_id2 ] ]&<1-10> is the VLAN range joined
by the trunk port. It can be discrete. The vlan_id ranges from 1 to 4094. &<1-10>
indicates that the former parameter can be input 10 times repeatedly at most.
all: Join the trunk port to all VLANs.
Description
Using port trunk permit vlan command, you can join trunk port to specified VLAN.
Using undo port trunk permit vlan command, you can cancel trunk port from
specified VLAN.
Trunk port can belong to multiple VLANs. If the port trunk permit vlan command is
used many times, then the VLAN enabled to pass on trunk port is the set of these
vlan_id_list.
For the related command, see port link-type.
Example
# Join the trunk port Ethernet1/0/1 to VLAN 2, 4 and 50-100.
Huawei Technologies Proprietary
1-18
View
Ethernet port view
Parameter
vlan_id: VLAN ID defined in IEEE802.1Q, ranging from1 to 4094 and the default
vlan_id is 1.
Description
Using port trunk pvid vlan command, you can configure the default VLAN ID of trunk
port. Using undo port trunk pvid command, you can restore the default VLAN ID of
the port.
The default VLAN ID of local trunk port should be consistent with that of the peer one,
otherwise, the packet cannot be properly transmitted.
For the related command, see port link-type.
Example
# Configure the default VLAN of the trunk port Ethernet1/0/1 to 100.
[Quidway-Ethernet1/0/1] port trunk pvid vlan 100
View
User view
Parameter
interface_type: Specifies the port type.
Description
Using reset counters interface command, you can reset the statistical information on
the port. and count the related information again on the port for the user.
If the port type and number are not specified when clearing the port information,
information of all ports on the switch will be cleared. If only the port type is specified, all
the information on the ports of this type will be cleared. If both port type and port
number are specified, the information on the designated port will be cleared.
Note that after 802.1X is enabled, the port information cannot be reset.
Example
# Reset statistical information on Ethernet port Ethernet1/0/1.
<Quidway> reset counters interface ethernet1/0/1
1.1.24 shutdown
Syntax
shutdown
undo shutdown
View
Ethernet port view
Parameter
none
Description
Using shutdown command, you can disable the Ethernet port. Using undo shutdown
command, you can enable the Ethernet port.
By default, the Ethernet port is enabled.
Example
# Enable Ethernet port Ethernet1/0/1.
[Quidway-Ethernet1/0/1] undo shutdown
1.1.25 speed
Syntax
speed { 10 | 100 | 1000 | 10000 | auto }
undo speed
View
Ethernet port view
Parameter
10: The speed on the port is 10Mbps.
100: The speed on the port is 100Mbps.
1000: The speed on the port is 1000Mbps.
10000: The speed on the port is 10000Mbps.
auto: The port speed is in peer auto-negotiation status.
Description
Using speed command, you can configure the port speed. Using undo speed
command, you can restore the default speed.
By default, the speed is auto.
For the related command, see duplex.
Example
# Configure Ethernet port Ethernet1/0/1 port speed as 10Mbps.
[Quidway-Ethernet1/0/1] speed 10
View
Ethernet port view
Parameter
None
Description
Using vlan-vpn enable command, you can enable port VLAN VPN. Using undo
vlan-vpn command, you can disable port VLAN VPN.
Note that if anyone of GVRP, GMRP, STP, NTDP and 802.1x has been enabled on a
port, VLAN VPN cannot be enabled on it.
By default, the port VLAN VPN is disabled.
Example
# Enable VLAN VPN on Ethernet1/0/1.
[Quidway-Ethernet1/0/1] vlan-vpn enable
View
User view
Parameter
None
Description
Using debugging link-aggregation error command, you can enable link aggregation
errors debugging. Using undo debugging link-aggregation error command, you can
disable link aggregation errors debugging.
Example
# Enable link aggregation errors debugging.
<Quidway> debugging link-aggregation error
View
User view
Parameter
None
Description
Using debugging link-aggregation event command, you can enable link aggregation
events debugging. Using the undo debugging link-aggregation event command,
you can disable link aggregation events debugging.
Example
# Enable link aggregation events debugging.
<Quidway> debugging link-aggregation event
View
User view
Parameter
interface { interface_type interface_ num | interface_name } [ to { interface_type
interface_ num | interface_name } ]: Specifies ports. You can specify multiple sequential
ports with the to parameter, instead of specifying only one port. interface_name
specifies port name, in the format of interface_name = interface_type interface_num.
interface_type specifies port type and interface_num port number. For more
information, see the parameter item for the interface command.
Description
Using debugging lacp packet command, you can enable LACP packets debugging at
a designated port or ports. Using the undo debugging lacp packet command, you
can disable LACP packets debugging at a designated port or ports.
Example
# Enable LACP packets debugging at Ethernet1/0/1.
<Quidway> debugging lacp packet interface ehternet1/0/1
View
User view
Parameter
interface { interface_type interface_ num | interface_name } [ to { interface_type
interface_ num | interface_name } ]: Specifies ports. You can specify multiple sequential
ports with the to parameter, instead of specifying only one port. interface_name
specifies port name, in the format of interface_name = interface_type interface_num.
interface_type specifies port type and interface_num port number. For more
information, see the parameter item for the interface command.
actor-churn: Debugging actor-churn state machine.
mux: Debugging MUX state machine.
partner-churn: Debugging partner-churn state machine.
ptx: Debugging PTX state machine.
rx: Debugging RX state machine.
all: Debugging all state machines.
Description
Using debugging lacp state command, you can enable LACP state machines
debugging on a designated port or ports. Using undo debugging lacp state command,
you can disable LACP state machines debugging on a designated port or ports.
Example
# Enable all LACP state machines debugging.
<Quidway> debugging lacp state all
View
Any view
Parameter
None
Description
Using display link-aggregation summary command, you can view summary
information of all aggregation groups, including actor system ID, aggregation group ID,
aggregate group type, partner system ID, number of selected ports, number of standby
ports, load sharing type and master port number.
Example
# Display summary information of all aggregation information.
<Quidway> display link-aggregation summary
Aggregation Group Type: D -- Dynamic, S -- Static, M -- Manual
Loadsharing Type: Shar Loadsharing, NonS Non-Loadsharing
Actor ID: 0x8000, 00e0-fcff-ff04
AL
AL
ID
Type
Partner ID
Master
Ports Ports
Port
Type
------------------------------------------------------------------1
0x8000,00e0-fcff-ff01 1
NonS
Ethernet4/0/1
10
none
NonS
Ethernet4/0/2
20
0x8000,00e0-fcff-ff01 1
NonS
Ethernet4/0/3
View
Any view
Parameter
agg-id: Aggregation group ID, which must be existing ones, in the range of 1 to 384.
Description
Using display link-aggregation verbose command, you can view detailed information
of a designated port, including aggregation group ID, aggregation group type, load
sharing type, aggregation group description and detailed local information (system ID,
member ports, port state, port priority, LACP state flag, operation key) and detailed
remote information (local port, indexes of remote ports, port priority, LACP state flag,
operation key and system ID, here local and remote are in a relative sense).
Note that since the manual aggregation group cannot get the information of the peer
end, every item of the peer end is displayed as 0, which does not indicate the actual
state of the peer system.
Example
# Display detailed information of aggregation group 1.
<Quidway> display link-aggregation verbose 1
Loadsharing Type: Shar Loadsharing, NonS Non-Loadsharing
Status
Priority Flag
Oper-Key
------------------------------------------------------------------Ethernet4/0/3
32768
0x3d
Remote:
Actor
SystemID
------------------------------------------------------------------Ethernet4/0/3
32768
0x3d 3
0x8000,00e0-fcff-ff01
link-aggregation
interface
interface-type
interface-number
View
Any view
Parameter
interface { interface_type interface_ num | interface_name } [ to { interface_type
interface_ num | interface_name } ]: Specifies ports. You can specify multiple sequential
ports with the to parameter, instead of specifying only one port. interface_name
specifies port name, in the format of interface_name = interface_type interface_num.
interface_type specifies port type and interface_num port number. For more
information, see the parameter item for the interface command.
Huawei Technologies Proprietary
2-5
Description
Using display link-aggregation interface command, you can view detailed link
aggregation information at a designated port, including aggregation group ID for the
port, port priority, operation key, LACP state flag, partner information (system ID, port
number, port priority, operation key, LACP state flag, LACP packet statistics).
Note that since the manual aggregation group cannot get the information of the peer
end, every item of the peer end is displayed as 0, which does not indicate the actual
state of the peer system.
Example
# Display detailed link aggregation information of manual link aggregation group.
<Quidway> display link-aggregation interface ethernet1/0/1
Ethernet1/0/1:
Attached AggID: 1
Local:
Port-Priority: 32768, Oper key: 1, Flag: 0x00
Remote:
System ID: 0x0, 0000-0000-0000
Port Number: 0, Port-Priority: 0, Oper-key: 0, Flag: 0x00
View
Any view
Parameter
None
Description
Using display lacp system-id command, you can view actor system ID, including
system priority and system MAC address.
For the related command, see link-aggregation.
Example
# Display local system ID.
<Quidway> display lacp system-id
Actor System ID: 0x8000, 00e0-fc00-0100
View
Ethernet port view
Parameter
None
Description
Using lacp enable command, you can enable LACP. Using lacp enable command,
you can disable LACP.
Example
# Enable LACP at Ethernet1/0/1.
[Quidway-Ethernet1/0/1] lacp enable
View
Ethernet port view
Parameter
port-priority-value: Port priority, ranging from 0 to 65535. By default, it is 32768.
Description
Using lacp port-priority command, you can configure port priority value. Using undo
lacp port-priority command, you can restore the default value.
For the related commands, see display link-aggregation verbose and display
link-aggregation interface.
Example
# Set port priority as 64.
[Quidway-Ethernet1/0/1] lacp port-priority 64
View
System view
Parameter
system-priority-value: System priority, ranging from 0 to 65535. By default, it is 32768.
Description
Using lacp system-priority command, you can configure system priority value. Using
undo lacp system-priority command, you can restore the default value.
For the related command, see display lacp system-id.
Example
# Set system priority as 64.
[Quidway] lacp system-priority 64
2.1.12 link-aggregation
Syntax
link-aggregation interface_name1 to interface_name2 [ both ]
View
System view
Parameter
interface_name1: Starting range value of Ethernet port joined the Ethernet link
aggregation.
interface_name2: Last range value of Ethernet port joined the Ethernet link
aggregation.
both: Specifies that each member port in the link group performs load sharing for
incoming and outgoing traffic.
Description
Use the link-aggregation command to set a group of ports to be link group with an
auto assigned group number. You can use the ink-aggregation group mode and port
link-aggregation group commands to accomplish this task.
By default, load sharing is carried out:
z
Example
# Add the ports Ethernet1/0/1 through Ethernet1/0/4 to the link group and specify them
to perform load sharing for incoming and outgoing traffic.
[Quidway] link-aggregation ethernet1/0/1 to ethernet1/0/4 both
View
System view
Parameter
agg-id: Aggregation group ID, in the range of 1 to 384.
Description
Using link-aggregation group agg-id description command, you can configure
descriptor for an aggregation group. Using undo link-aggregation group agg-id
description command, you can delete aggregation group descriptor.
For the related command, see display link-aggregation verbose.
Example
# Configure myal1 as the descriptor of aggregation group 22.
[Quidway] link-aggregation group 22 description myal1
View
System view
Parameter
agg-id: Aggregation group ID, in the range of 1 to 384.
manual: Manual aggregation group.
static: Static aggregation group.
Description
Using link-aggregation group agg-id mode command, you can create a manual or
static aggregation group. Using undo link-aggregation group command, you can
delete an aggregation group.
For the related command, see display link-aggregation summary.
Example
# Create manual aggregation group 22.
[Quidway] link-aggregation group 22 mode manual
View
Ethernet port view
Parameter
agg-id: Aggregation group ID, in the range of 1 to 384.
Description
Using port link-aggregation group command, you can add an Ethernet port into a
manual or static aggregation group. Using undo port link-aggregation group
command, you can delete an Ethernet port from a manual or static aggregation group.
For the related command, see display link-aggregation verbose.
Example
# Add Ethernet1/0/1 into aggregation group 22.
[Quidway-Ethernet1/0/1] port link-aggregation group 22
View
User view
Parameter
interface { interface_type interface_ num | interface_name } [ to { interface_type
interface_ num | interface_name } ]: Specifies ports. You can specify multiple sequential
ports with the to parameter, instead of specifying only one port. interface_name
specifies port name, in the format of interface_name = interface_type interface_num.
interface_type specifies port type and interface_num port number. For more
information, see the parameter item for the interface command.
Description
Using reset lacp statistics command, you can clear LACP statistics at a designated
port. If no port is specified, then LACP statistics at all ports shall be cleared.
For the related command, see display link-aggregation interface.
Example
# Clear LACP statistics at all Ethernet ports.
<Quidway> reset lacp statistics
HUAWEI
VLAN
Table of Contents
Table of Contents
Chapter 1 VLAN Configuration Commands................................................................................ 1-1
1.1 VLAN Common Configuration Commands........................................................................ 1-1
1.1.1 broadcast-suppression............................................................................................ 1-1
1.1.2 description ............................................................................................................... 1-2
1.1.3 display interface vlan-interface................................................................................ 1-3
1.1.4 display vlan.............................................................................................................. 1-3
1.1.5 interface vlan-interface............................................................................................ 1-4
1.1.6 name ....................................................................................................................... 1-5
1.1.7 shutdown ................................................................................................................. 1-5
1.1.8 vlan.......................................................................................................................... 1-6
1.2 Port-Based VLAN Configuration Commands .................................................................... 1-7
1.2.1 port .......................................................................................................................... 1-7
1.3 Protocol-Based VLAN Configuration Commands.............................................................. 1-8
1.3.1 display protocol-vlan interface................................................................................. 1-8
1.3.2 display protocol-vlan vlan........................................................................................ 1-9
1.3.3 port hybrid protocol-vlan vlan .................................................................................. 1-9
1.3.4 protocol-vlan vlan slot ........................................................................................... 1-10
1.3.5 protocol-vlan.......................................................................................................... 1-12
Chapter 2 GARP/GVRP Configuration Commands.................................................................... 2-1
2.1 GARP Configuration Commands....................................................................................... 2-1
2.1.1 display garp statistics .............................................................................................. 2-1
2.1.2 display garp timer .................................................................................................... 2-2
2.1.3 garp timer ................................................................................................................ 2-2
2.1.4 garp timer leaveall ................................................................................................... 2-4
2.1.5 reset garp statistics ................................................................................................. 2-4
2.2 GVRP Configuration Command......................................................................................... 2-5
2.2.1 display gvrp statistics .............................................................................................. 2-5
2.2.2 display gvrp status .................................................................................................. 2-6
2.2.3 gvrp ......................................................................................................................... 2-6
2.2.4 gvrp registration....................................................................................................... 2-7
Chapter 3 Super VLAN Configuration Commands .................................................................... 3-1
3.1 Super VLAN Configuration Commands............................................................................. 3-1
3.1.1 display supervlan..................................................................................................... 3-1
3.1.2 subvlan .................................................................................................................... 3-3
3.1.3 supervlan................................................................................................................. 3-3
View
VLAN view
Parameter
ratio: Specifies the maximum bandwidth ratio of the broadcast traffic allowed on VLAN,
ranging form 0 to 100. By default, the value is 100. The smaller the ratio is, the smaller
the broadcast traffic is permitted.
pps pps: Specifies the maximum packets per second of the broadcast traffic on VLAN,
ranging from 1 to 148,800 pps.
Description
Using broadcast-suppression command, you can configure the broadcast traffic size
enabled on current VLAN. Using undo broadcast-suppression command, you can
restore the default broadcast traffic enabled on current VLAN.
By default, all broadcast traffic is allowed to pass through, that is, no broadcast
suppression will be performed.
Once the broadcast traffic exceeds the value set by the user, the system will discard
some broadcast to ensure network service so that the traffic ratio of broadcast is
maintained in a proper range.
The broadcast suppression modes supported by the LPUs of S6500 series are related
to the LPU type. The relationship is as the following table.
Table 1-1 Relationship Between Broadcast Suppression Mode and LPU Type
Broadcast Suppression
Mode
Supported
Unsupported
Supported
Unsupported
The configuration of the suppression mode on the VLAN will overwrite the previously
configured mode.
Example
# Set the broadcast suppression ratio for the current VLAN1 to 50%.
[Quidway-vlan1] broadcast-suppression 50
1.1.2 description
Syntax
description { string | text }
undo description
View
VLAN view, VLAN interface view
Parameter
string: Description character string of current VLAN. It ranges from 1 to 32 characters.
The default description character string of current VLAN is VLAN ID of the VLAN, e.g.
VLAN 0001.
text: Description character text of current VLAN interface. It ranges from 1 to 80
characters. The default description character string of VLAN interface is the interface
name, e.g. Vlan-interface1 Interface.
Description
Using description command, you can configure a description for the current VLAN or
VLAN interface. Using undo description command, you can restore the default
description of current VLAN or VLAN interface.
For the related command, see display vlan, display interface vlan-interface.
Example
# Specify a description character string RESEARCH for current VLAN.
Huawei Technologies Proprietary
1-2
View
Any view
Parameter
vlan-id: ID of VLAN interface, ranging from 1 to 4094.
Description
Using display interface vlan-interface command, you can view the related
information about specified or all VLAN interfaces such as physical status and link
status of VLAN interface, Ethernet frame format, MAC address, IP address and sub-net
mask, description character string and MTU, etc.
With vlan-id specified, only the information about the specified VLAN interface will be
displayed. If no vlan-id is specified, the information about all the existing VLAN
interfaces will be displayed.
For the related command, see interface vlan-interface.
Example
# Display related information about VLAN-interface 1.
<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
00e0-fc07-4101
Internet Address is 10.1.1.1/24 Primary
Description : HUAWEI, Quidway Series, Vlan-interface1 Interface
The Maximum Transmit Unit is 1500
View
Any view
address
is
Parameter
vlan-id: Display information of specified VLAN.
all: Display information of all VLANs.
static: Display information of VLAN created statically by the system.
dynamic: Display information of VLAN created dynamically by the system.
Description
Using display vlan command, you can view related information about the specified or
all VLANs.
If vlan-id or all is specified, information of specified VLAN or all VLANs is displayed. It
includes: VLAN ID, VLAN type, whether the routing function has been enable on this
VLAN (i.e. whether the route interface exists. If it exists, display primary IP address and
mask), VLAN description, the broadcast suppression ratio, and the ports VLAN
contains.
If parameter is not specified, information of the VLAN that has been created is
displayed. If the parameter dynamic or static is selected, information of VLAN created
dynamically or statically by the system is displayed.
For the related command, see vlan.
Example
# Display the information about VLAN1.
[Quidway] display vlan 1
VLAN ID: 1
VLAN Type: static
Route interface: not configured
Description: VLAN 0001
Name: hello
Broadcast MAX-ratio: 100%
Tagged
Ports: none
Untagged Ports:
Ethernet1/0/1
Ethernet1/0/2
Ethernet1/0/3
View
System view
Huawei Technologies Proprietary
1-4
Parameter
vlan-id: ID of VLAN interface, ranging from 1 to 4094.
Description
Using interface vlan-interface command, you can configure VLAN interface or enter
VLAN interface view. Using undo interface vlan-interface command, you can cancel
one VLAN interface.
For the related command, see display interface vlan-interface.
Example
# Enter VLAN-interface 1 view of VLAN interface.
[Quidway] interface vlan-interface 1
1.1.6 name
Syntax
name string
undo name
View
VLAN view
Parameter
string: The name of the current VLAN, which consists of 1 to 32 characters. By default,
it is the VLAN ID of the current VLAN, e.g. VLAN 0001.
Description
Using name command, you can name the current VLAN. Using undo name command,
you can restore the default name of the current VLAN.
By default, the name is the VLAN ID of the current VLAN.
Example
# Name the VLAN1 hello.
[Quidway-vlan1] name hello
1.1.7 shutdown
Syntax
shutdown
undo shutdown
View
VLAN interface view
Parameter
none
Description
Using shutdown command, you can disable the VLAN interface. Using undo
shutdown command, you can enable the VLAN interface.
By default, when all Ethernet ports are in DOWN status in VLAN interface, the VLAN
interface is in DOWN status, i.e. disabled status. When there is one or more Ethernet
ports in VLAN interface are in UP status, the VLAN interface is UP.
This command can be used to start interface after the related parameters and protocols
of VLAN interface are set well. Or when the VLAN interface fails, the interface can be
shut down first and then restarted, in this way, the interface may be restored to normal
status. Shutting down or starting VLAN interface will not take any effect on any Ethernet
port of this VLAN.
Example
# Restart interface after shutting down the interface.
[Quidway-Vlan-interface1] shutdown
[Quidway-Vlan-interface1] undo shutdown
1.1.8 vlan
Syntax
vlan vlan-id
undo vlan { vlan-id [ to vlan-id ] | all }
View
System view
Parameter
vlan-id: Specifies the ID of a VLAN to be created and/or entered, ranging from 1 to
4094.
all: Delete all VLANs.
Description
Using vlan command, you can enter VLAN view. If the specified VLAN is not created,
create it first. Using undo vlan command, you can cancel the specified VLAN.
Example
# Enter the view of VLAN 1.
[Quidway] vlan 1
View
VLAN view
Parameter
interface-list: list of Ethernet ports to be added to or deleted from a certain VLAN,
expressed as interface-list= { { interface_type interface_num | interface_name } [ to
{ interface_type interface_num | interface_name } ] }&<1-10>. interface_type is
interface type, interface_numis interface number and interface_name is interface name.
For their meanings and value range, read Parameter of Port in this document. The
interface number after keyword to must be larger than or equal to the port number
before to. &<1-10>: Representing the repeatable times of parameters, 1 is the minimal
and 10 is the maximal.
Description
Using port command, you can add one port or one group of ports to VLAN. Using undo
port command, you can cancel one port or one group of ports from VLAN.
Note that you can add/delete trunk port and hybrid port to/from VLAN by port trunk
permit vlan, undo port trunk permit vlan, port hybrid vlan, undo port hybrid vlan
commands in Ethernet port view, but not in VLAN view.
For the related command, see display vlan.
Example
# Add Ethernet1/0/1 through Ethernet1/0/3 to VLAN 2.
[Quidway-vlan2] port ethernet1/0/1 to ethernet1/0/3
View
Any view
Parameter
{ interface_type interface_num | interface_name } [ to { interface_type interface_num |
interface_name } ]: Specifies ports. You can specify multiple sequential ports with the to
parameter, instead of specifying only one port. interface_name specifies port name, in
the format of interface_name = interface_type interface_num. interface_type specifies
port type and interface_num port number.
all: Displays the protocol information of all ports.
Description
Using the display protocol-vlan interface command, you can view the protocol
information and protocol index configured on the specific port, to which you can refer
when you use the protocol-based VLAN and add/delete a protocol.
For the related commands, see display interface.
Example
# Display the protocol information and protocol index configured on Ethernet1/0/1 and
Ethernet1/0/2.
[Quidway] display protocol-vlan interface ethernet1/0/1 to ethernet1/0/2
Interface: Ethernet1/0/1
VLAN ID
Protocol-Index
Protocol-type
50
ip 192.168.10.1 255.255.255.0
80
ip 101.120.34.0 255.255.0.0
100
ip 104.232.43.0 255.255.255.0
100
ipx ethernetii
Interface: Ethernet1/0/2
VLAN ID
Protocol-Index
Protocol-type
50
ipx raw
80
at
100
100
View
Any view
Parameter
vlan-id: Displays the protocol information of the specific VLAN, ranging from 1 to 4094.
all: Displays the protocol information of all VLANs.
Description
Using the display protocol-vlan vlan command, you can view the protocol
information and protocol index configured on a VLAN, to which you can refer when you
use the protocol-based VLAN and add/delete a protocol.
For the related commands, see display vlan.
Example
# Display the protocol information and protocol index configured on the VLANs from
VLAN10 to VLAN20
[Quidway] display protocol-vlan vlan 10 to 20
VLAN ID: 10
VLAN Type: Protocol-based VLAN
Protocol-Index
Protocol-Type
IP
101.120.34.0/24
IP
104.232.43.0/24
IPX
AT
ETH II
VLAN ID: 15
VLAN Type: Protocol-based VLAN
Protocol-Index
Protocol-Type
ip 192.168.10.1 255.255.255.0
..
View
Ethernet port view
Parameter
vlan-id: ID of the VLAN which a protocol is added to or deleted from.
protocol-index: Value of the protocol index, ranging from 0 to 6. It must be smaller than
protocol-end.
protocol-end: End value of the protocol index, ranging form 0 to 6.
all: All protocols.
Description
Using the port hybrid protocol-vlan vlan command, you can associate a
protocol-based VLAN with the specified port. Using the undo port hybrid
protocol-vlan vlan command, you can delete the association between the port and the
protocol-based VLAN.
Note that only the Hybrid port supports this feature at present. The port must belong to
the VLAN before you associate it with the protocol-based VLAN. Otherwise, it cannot
be associated with the VLAN.
For the related commands, see display protocol-vlan interface.
Example
# Associate Ethernet1/0/1 with protocols 0 to 6 in VLAN 3
[Quidway-Ethernet1/0/1] port hybrid protocol-vlan vlan 3 0 to 6
View
system view
Parameter
vlan-id: ID of the VLAN which a protocol is added to or deleted from.
protocol-index: Value of the protocol index, ranging from 0 to 6. It must be smaller than
protocol-end.
protocol-end: End value of the protocol index, ranging form 0 to 6.
all: All protocols.
Description
Using theprotocol-vlan vlan slot command, you can associate a protocol-based
VLAN with the specified card in system view. Using the undo protocol-vlan vlan slot
command, you can delete the association between the card and the protocol-based
VLAN.
Note that you must add the card port where the protocol is to be applied to the
protocol-based VLAN. Currently, only the cards (include LPU and SRPU) except A type
ones support the command.
For the relationship between the card and the command ,see Table 1-2.
Table 1-2 The relationship between the card and the command
Command description
A type card
not support
support
Note:
z
The cards except A type ones do not include LS81VSNP, LS81PT8GA and
LS81PT4GA.
For the related commands, see port hybrid protocol-vlan vlan, display
protocol-vlan interface.
Example
# Associate slot 5 with protocols 0 to 6 in VLAN 3
[Quidway] protocol-vlan vlan 3 0 to 6 slot 5
1.3.5 protocol-vlan
Syntax
protocol-vlan [ procotol-index ] { at | ip [ ip_address [ net_mask ] ] | ipx { ethernetii |
llc | raw | snap } | mode { ethernetii [ etype etype_id ] | llc [ dsap dsap_id [ ssap
ssap_id ] | ssap ssap_id ] | snap [ etype etype_id ] } }
undo protocol-vlan { protocol-index [ to protocol-end ] | all }
View
VLAN view
Parameter
at: AT(Apple Talk) protocol based VLAN.
ip [ ip_address [ net_mask ] ]: IP protocol based VLAN. net_mask is the IP address
mask; if not specified, it defaults to 255.255.255.0.
ipx { ethernetii | llc | raw I snap }: IPX protocol based VLAN. ethernetii | llc | raw I
snap are four encapsulation types of the IPX.
mode: Specify other protocol types and encapsulation format.
ethernetii [ etype etype_id ]: EthernetII protocol based VLAN. etype_id is the Ethernet
type of the incoming packet, ranging from 600 to FFFF.
llc [ dsap dsap_id [ ssap ssap_id ] | ssap ssap_id ]: Logical link control protocol based
VLAN. dsap_id is the destination service access point, ranging from 0 to FF. ssap_id is
source service access point, ranging from 0 to FF.
snap [ etype etype_id ]: SNAP (Sub-Network Access Protocol) based protocol.
etype_id is the Ethernet type of the incoming packet, ranging from 600 to FFFF.
Caution:
Consider the following when you are configuring the parameter mode llc dsap dsap_id
ssap ssap_id:
z
When the dsap_id and ssap_id are set to ff, the encapsulaiton format of packets is
the same as that of the command with ipx raw, thus, the system matches the
command with ipx raw first. If no matching is found, the system stops matching.
Therefore, the command with mode llc dsap ff ssap ff takes no effect.
When the dsap_id and ssap_id are set to aa, the encapsulation format of the
packets is snap instead of IIc.
Description
Using the protocol-vlan command, you can configure a certain protocol type for the
specified VLAN. Using the undo protocol-vlan command, you can cancel this
configuration.
Note that the format of mode llc dsap ff ssap ff is the same as that of ipx raw, and the
system first matches ipx raw, so the configuration of vlan-type protocol mode llc
dsap ff ssap ff does not function.
For the related commands, see display protocol-vlan vlan.
Example
# Specify VLAN 3 to be based on IP protocol.
[Quidway-vlan3] protocol-vlan ip
# Specify VLAN 5 to be based on the 123.34.56.0 network segment.
[Quidway-vlan5] protocol-vlan ip 123.34.56.0
View
Any view
Parameter
interface-list: List of Ethernet port to be displayed, expressed as interface -list =
{ { interface_type interface_num | interface_name } [ to { interface_type interface_num
| interface_name } ] }&<1-10>. interface_type is interface type, interface_numis
interface number and interface_name is interface name. For their meanings and value
range, read command parameters description of Port in this document.
&<1-10>: Representing the repeatable times of parameters, 1 is the minimal and 10 is
the maximal.
Description
Using display garp statistics command, you can view the GARP statistics information,
including the number of received/sent packet and the number of discarded packet by
GVRP/GMRP etc.
Example
# Display the GARP statistics information on Ethernet port Ethernet1/0/1.
<Quidway> display garp statistics interface ethernet1/0/1
GARP statistics on port Ethernet1/0/1
Number Of GMRP Frames Received
: 0
: 0
: 0
: 0
: 0
View
Any view
Parameter
interface-list: List of Ethernet port to be displayed, expressed as interface -list =
{ { interface_type interface_num | interface_name } [ to { interface_type interface_num
| interface_name } ] }&<1-10>.
interface number and interface_name is interface name. For their meanings and value
range, read command parameters description of Port in this document.
&<1-10>: Representing the repeatable times of parameters, 1 is the minimal and 10 is
the maximal.
Description
Using display garp timer command, you can view the value of GARP timer, including
Hold timer, Join timer, Leave timer and LeaveAll timer.
For the related command, see garp timer, garp timer leaveall.
Example
# Show GARP timer on Ethernet1/0/1.
<Quidway> display garp timer interface ethernet1/0/1
GARP timers on port Ethernet1/0/1
GARP JoinTime
: 20 centiseconds
: 60 centiseconds
: 1000 centiseconds
: 10 centiseconds
View
Ethernet port view
Parameter
hold: GARP Hold timer. After received certain registration information, the GARP
application entity will not send Join Message at once, instead, it starts the Hold timer.
All the registration information received within duration of the Hold timer will be
transmitted in the same frame after the Hold timer times out, thereby saving the
bandwidth resource.
join: GARP Join timer. GARP application entity will send out Join message after the
Join timer goes timeout to make other GARP application entity register its own
information.
leave: GARP Leave timer . When a GARP application entity wants to deregister certain
attribute information, it sends Leave message. The GARP application entity received
the message will starts Leave timer. If the entity receives no Join message before the
timer goes timeout, it will deregister the attribute information.
timer_value: Value of GARP hold timer, join timer and leave timer in centisecond. The
step is 5 centiseconds. The range is according to the following rule:
z
the value of Join timer should be no less than the doubled value of Hold timer,
the value of Leave timer should be greater than the doubled value of Join timer
and smaller than the Leaveall timer value,
Description
Using garp timer command, you can configure GARP timer value. Using undo garp
timer command, you can restore the default value of GARP timer.
Value range of each timer changes with value range of another timer. If the value of the
timer you want to set is out of the current range, you can change the related timer value.
z
The lower limit of the Hold timer value is 10 centiseconds, and the upper limit can
be changed by changing the value of the Join timer;
The lower limit of the Join timer changes with the Hold timer value, and the upper
limit can be changed by changing the value of the Leave timer;
The lower limit of the Leave timer changes with the Join timer value, and the upper
limit can be changed by changing the value of the LeaveAll timer;
The lower limit of the LeaveAll timer changes with the Leave timer value, and the
upper limit is 32765 centiseconds.
Example
# Set Join timer of GARP as 300ms.
[Quidway-Ethernet1/0/1] garp timer join 30
Huawei Technologies Proprietary
2-3
View
System view
Parameter
timer_value: Value of GARP leaveall timer in centisecond, ranging from 65 to 32765.
The step is 5 centiseconds. The value of Leaveall timer should be greater than the
value of Leave timer. By default, the value of LeaveAll timer is 1000 centiseconds, i.e.
10s.
Description
Using garp timer leaveall command, you can configure GARP leaveall timer. Using
undo garp timer leaveall command, you can restore the default value.
After every GARP application entity is started, the LeaveAll timer will be started
simultaneously. The GARP application entity will send LeaveAll message after the timer
times out to make other application entities re-register all attribute information on
themselves. Then, the LeaveAll timer is started and the new cycle begins.
For the related command, see display garp timer.
Example
# Set GARP LeaveAll timer as 1s.
[Quidway] garp timer leaveall 100
View
User view
Parameter
interface-list: Specifies a list of Ethernet ports, on which the GARP statistics information
will be cleared, expressed as interface-list = { { interface_type interface_num |
interface_name } [ to { interface_type interface_num | interface_name } ] }&<1-10>.
interface_type is interface type, interface_num is interface number and interface_name
Huawei Technologies Proprietary
2-4
is interface name. For their meanings and value range, read Parameter Description of
Port in this document.
&<1-10>: Representing the repeatable times of parameters, 1 is the minimal and 10 is
the maximal.
Description
Using reset garp statistics command, you can reset the GARP statistics information
(such as the received/sent packets or discarded packets by GVRP/GMRP). If the
command has no parameter, it will clear the GARP statistics information of all the ports.
For the related command, see display garp statistics.
Example
# Clear GARP statistics information.
<Quidway> reset garp statistics
View
Any view
Parameter
interface-list: List of Ethernet port to be displayed, expressed as interface -list =
{ { interface_type interface_num | interface_name } [ to { interface_type interface_num
| interface_name } ] }&<1-10>. interface_type is interface type, interface_num is
interface number and interface_name is interface name. For their meanings and value
range, read command parameters description of Port in this document.
&<1-10>: Representing the repeatable times of parameters, 1 is the minimal and 10 is
the maximal.
Description
Using display gvrp statistics command, you can view the GVRP statistics information
of all the Trunk ports, including the list of ports enabled with GVRP, GVRP status
information, failed GVRP registration entries and the last GVRP data unit origin etc.
Example
# Display the GVRP statistics information about Ethernet1/0/1.
: Enabled
: 0
: 0000-0000-0000
: Normal
View
Any view
Parameter
none
Description
Using display gvrp status command, you can view the global status information about
GVRP.
Example
# Display the global status information about GVRP.
<Quidway> display gvrp status
GVRP is enabled
2.2.3 gvrp
Syntax
gvrp
undo gvrp
View
System view/Ethernet port view
Parameter
none
Description
Using gvrp command, you can enable GVRP. Using undo gvrp command, you can
restore the GVRP to default mode, i.e. disable GVRP.
By default, GVRP is disabled.
This command can be used to enable/disable global GVRP in System view or
enable/disable port GVRP in Ethernet port view.
Before enabling port GVRP, the user must enable global GVRP first and port GVRP
must be enabled/disabled on Trunk port.
For the related commands, see display gvrp status.
Example
# Enable global GVRP.
[Quidway] gvrp
View
Ethernet port view
Parameter
fixed: Enable to create or register VLAN on the port manually and disable to register or
deregister VLAN dynamically.
forbidden: Deregisters all VLANs except VLAN 1 and disables to create or register any
other VLAN on the port.
normal: Enable to create, register and deregister VLAN on the port manually or
dynamically.
Description
Using gvrp registration command, you can configure GVRP registration type. Using
undo gvrp registration command, you can restore the default type.
By default, the registration type is normal.
This command can be only used on Trunk port.
For the related commands, see display gvrp statistics.
Example
# Set the GVRP registration type of Ethernet1/0/1 as fixed.
[Quidway-Ethernet1/0/1] gvrp registration fixed
Note:
Only Salience III series engine supports this feature.
View
Any view
Parameter
supervlan-id: ID of Super VLAN, range from 1 to 4094.
Description
Using display supervlan command, you can view the mapping relationship between
Super VLAN and Sub VLAN, and the ports identified mapping relationship super VLAN
and sub VLAN.
For the related commands, see supervlan, subvlan.
Example
# view the mapping relationship between Super VLAN and Sub VLAN.
[Quidway] display supervlan 2
Supervlan ID :
ARP proxy:
Subvlan ID :
enabled
3-5
VLAN ID: 2
VLAN Type: static
It is a Super VLAN.
ARP proxy enabled.
Ports: none
VLAN ID: 3
VLAN Type: static
It is a Sub VLAN.
Route Interface: not configured
Description: VLAN 0003
Name: VLAN 0003
Broadcast MAX-ratio: 100%
Tagged
Ports: none
Untagged Ports:
Ethernet0/3
VLAN ID: 4
VLAN Type: static
It is a Sub VLAN.
Route Interface: not configured
Description: VLAN 0004
Name: VLAN 0004
Broadcast MAX-ratio: 100%
Tagged
Ports: none
Untagged Ports:
Ethernet0/4
VLAN ID: 5
VLAN Type: static
It is a Sub VLAN.
Route Interface: not configured
Description: VLAN 0005
Name: VLAN 0005
Broadcast MAX-ratio: 100%
Tagged
Ports: none
Untagged Ports:
Ethernet0/5
3.1.2 subvlan
Syntax
subvlan vlan-list
undo subvlan [ vlan-list ]
View
VLAN view
Parameter
vlan-list: vlan-list = { vlan-id1 [ to vlan-id2 ] } &<1-10> is the VLAN range joined by the
trunk port. It can be discrete. The vlan-id ranges from 1 to 4094. &<1-10> indicates that
the former parameter can be input 10 times repeatedly at most.
Description
Using subvlan commmand, you can establish the mapping relationship between sub
VLAN and super VLAN. Using undo subvlan commmand, you can cancel the mapping
relationship between sub VLAN and super VLAN.
Note that:
z
The sub VLAN must exist before you creat mapping between the sub VLAN and
the super VLAN.
After creating mapping between the sub VLAN and the super VLAN, you can still
add (or delete) Ethernet ports to (from) the sub VLAN.
When using the undo subvlan command without parameter, you can remove the
mapping between the specific super VLAN and all sub VLANs associated to it. If
choosing the parameter, you can remove the mapping between the specific super
VLAN and the specific sub VLAN.
Example
# Establish the mapping relationship between sub VLAN 3, 4, 5, 9 and super VLAN 10.
[Quidway] vlan 10
[Quidway-vlan10] supervlan
[Quidway-vlan10] subvlan 3 to 5 9
3.1.3 supervlan
Syntax
supervlan
undo supervlan
Huawei Technologies Proprietary
3-3
View
VLAN view
Parameter
None
Description
Using supervlan commmand, you can set current VLAN to super VLAN. Using undo
supervlan commmand, you can cancel the super VLAN type of current VLAN.
For the related commands, see display supervlan.
Example
# Set the VLAN 2 to super VLAN.
[Quidway-vlan2] supervlan
HUAWEI
Network Protocol
Table of Contents
Table of Contents
Chapter 1 IP Address Configuration Commands....................................................................... 1-1
1.1 IP Address Configuration Commands ............................................................................... 1-1
1.1.1 display ip host.......................................................................................................... 1-1
1.1.2 display ip interface .................................................................................................. 1-1
1.1.3 ip address................................................................................................................ 1-3
1.1.4 ip host...................................................................................................................... 1-4
Chapter 2 ARP Configuration Commands .................................................................................. 2-1
2.1 ARP Configuration Commands.......................................................................................... 2-1
2.1.1 arp check enable ..................................................................................................... 2-1
2.1.2 arp static.................................................................................................................. 2-1
2.1.3 arp timer aging ........................................................................................................ 2-2
2.1.4 debugging arp ......................................................................................................... 2-3
2.1.5 display arp ............................................................................................................... 2-4
2.1.6 display arp | ............................................................................................................. 2-5
2.1.7 display arp interface ................................................................................................ 2-6
2.1.8 display arp slot ........................................................................................................ 2-7
2.1.9 display arp timer aging ............................................................................................ 2-7
2.1.10 display arp vlan ..................................................................................................... 2-8
2.1.11 reset arp ................................................................................................................ 2-8
2.2 Gratuitous ARP Configuration Commands........................................................................ 2-9
2.2.1 gratuitous-arp-learning enable ................................................................................ 2-9
Chapter 3 ARP Source Suppression Configuration Commands.............................................. 3-1
3.1 ARP Source Suppression Configuration Commands ........................................................ 3-1
3.1.1 arp source-suppression limit ................................................................................... 3-1
3.1.2 display arp source-suppression .............................................................................. 3-2
Chapter 4 ARP Proxy Configuration Command......................................................................... 4-1
4.1 ARP Proxy Configuration Command ................................................................................. 4-1
4.1.1 arp proxy enable...................................................................................................... 4-1
4.1.2 display arp proxy ..................................................................................................... 4-1
Chapter 5 DHCP Configuration Commands ............................................................................... 5-1
5.1 DHCP Relay Configuration Commands ............................................................................ 5-1
5.1.1 address-check ......................................................................................................... 5-1
5.1.2 address-check dhcp-relay ....................................................................................... 5-1
5.1.3 address-check no-matched..................................................................................... 5-2
5.1.4 debugging dhcp-relay.............................................................................................. 5-3
5.1.5 dhcp-security static ................................................................................................. 5-4
Table of Contents
Table of Contents
View
Any view
Parameter
None
Description
Using display ip host command, you can view all the host names and the
corresponding IP addresses.
Example
# Display all hosts name and corresponding IP address of the hosts.
<Quidway> display ip host
Host
Age
Flags
Address
My
static
1.1.1.1
Aa
static
2.2.2.4
View
Any view
Parameter
interface_type: Port type. Interface_num: Port number. See the description of the
interface command for details.
brief: Displays basic interface configuration information.
Description
Using display ip interface command, you can view the information of an IP interface.
By default, the information about all the IP interfaces will be displayed if undo interface
is specified. This command outputs all the information related to IP on the interface,
which is useful for troubleshooting.
Example
# Display the information related to interface VLAN-Interface 1.
<Quidway> display ip interface vlan-interface 1
Vlan-interface1 current state : DOWN
Line protocol current state : DOWN
Internet Address is 1.1.1.1/8 Primary
Broadcast address : 1.255.255.255
The Maximum Transmit Unit : 1500 bytes
input packets : 0, bytes : 0, multicasts : 0
output packets : 0, bytes : 0, multicasts : 0
TTL invalid packet number:
Echo reply:
Unreachable:
Source quench:
Routing redirect:
Echo request:
Router advert:
Router solicit:
Time exceed:
IP header bad:
Timestamp request:
Timestamp reply:
Information request:
Information reply:
Netmask request:
Netmask reply:
Unknown type:
IP Address
Physical
Protocol
M-Ethernet0/0/0
unassigned
down
down
Vlan-interface1
1.1.1.1
down
down
Description
Interface
Interface type
IP Address
Interface IP Address
Physical
Protocol
1.1.3 ip address
Syntax
ip address ip-address { mask | mask-length } [ sub ]
undo ip address [ ip-address { mask | mask-length } [sub ] ]
View
VLAN interface view or LoopBack interface view
Parameter
ip-address: IP address of VLAN interface.
mask: Corresponding subnet mask.
mask-length: Mask length, i.e. the length of "1" in the IP address.
sub: the secondary IP address of the VLAN interface or LoopBack interface.
Description
Using ip address command, you can configure an IP address for VLAN interface or
LoopBack interface. Using undo ip address command, you can cancel an IP
address of the VLAN interface or LoopBack interface.
By default, all interfaces IP addresses are null.
Generally, it is enough to configure one IP address for an interface. You can also
configure eight IP addresses for an interface at most, so that it can be connected to
several subnets. Among these IP addresses, one is the primary IP address and all
others are secondary. The relationship between primary and secondary addresses is:
z
When you configure a primary IP address for an interface, which already has a
primary IP address, the newly configured one will replace the old one.
If you input undo ip address command without any parameter, the switch will
delete both primary and secondary IP address of an interface. undo ip address
ip-address { mask | mask-length } command can be used to delete the primary IP
address, while undo ip address ip-address { mask | mask-length } sub
command can be used to delete the secondary IP address.
Huawei Technologies Proprietary
1-3
Example
# Configure the IP address of interface VLAN interface 1 as 202.38.10.66 and subnet
mask as 255.255.255.0.
[Quidway-vlan-interface1] ip address 202.38.10.66 255.255.255.0
1.1.4 ip host
Syntax
ip host hostname ip-address
undo ip host hostname [ ip-address ]
View
System view
Parameter
hostname: Name of the host, a character string consisting of 1 to 20 characters,
including letters, numbers, or "_", and it must contain at least one letter.
ip-address: Host IP address (the corresponding IP address to the host name) in
dotted decimal notation.
Description
Using ip host command, you can configure the host name and the host IP address.
Using undo ip host command, you can cancel the host name and the host IP
address.
By default, Host name and corresponding IP address are null.
For the related command, see display ip host.
Example
# Set Lanswtich1s IP address to be 202.38.0.8.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
None
Description
Using arp check enable command, you can enable the checking of ARP entry, that is,
the device does not learn the ARP entry where the MAC address is multicast MAC
address. Using undo arp check enable command, you can disable the checking of
ARP entry, that is, the device learns the ARP entry where the MAC address is
multicast MAC address.
By default, the checking of ARP entry is enabled, that is, the device does not learn the
ARP entry where the MAC address is multicast MAC address.
Example
# Configure that the device learns the ARP entry where the MAC address is multicast
MAC address.
[Quidway] undo arp check enable
View
System view
Huawei Technologies Proprietary
2-1
Parameter
ip-address: IP address of the ARP mapping entry.
mac-address: MAC address of ARP mapping entry, whose format is H-H-H ( H
indicates a hexadecimal number).
vlan-id: VLAN to which the static ARP entry belongs, which is in the range of 1 to
4094.
interface_name: Port to which the static ARP entry belong, represented with
interface_name= interface_type interface_num. interface_type is port type and
interface_num is port number. For details about interface_type, interface_num and
interface_name, refer to the Port Command Manual.
Description
Using arp static command, you can configure the static ARP mapping entries in an
ARP mapping table. Using undo arp static command, you can cancel a static ARP
mapping entry from the ARP table
By default, the mapping table of the system ARP is empty and the switch can maintain
its address mapping by means of dynamic ARP.
Note that:
z
Static ARP map entry will be always valid as long as Ethernet switch works
normally. But if you modify or delete VLAN interfaces, delete VLANs or delete
ports from VLANs to make ARP invalid, the ARP mapping entry will be also
deleted. The valid period of dynamic ARP map entries will last only 20 minutes by
default.
The parameter vlan-id must be the ID of a VLAN that has been created by the
user, and the Ethernet port specified behind this parameter must belong to the
VLAN.
The aggregation port or port with LACP enabled cannot be set as the egress port
of static ARP.
For the related command, see reset arp, display arp, debugging arp.
Example
# Associate the IP address 202.38.10.2 with the MAC address 00e0-fc01-0000, and
the ARP mapping entry belongs to the Ethernet port Ethernet1/0/1 on VLAN1.
[Quidway] arp static 202.38.0.10 00e0-fc01-0000 1 ethernet1/0/1
View
System view
Parameter
aging-time: Aging time of dynamic ARP aging timer, which is in the range of 1 to 1440
minutes. By default, the aging time is 20 minutes.
Description
Using arp timer aging command, you can configure the dynamic ARP aging timer.
Using undo arp timer aging command, you can restore the default dynamic ARP
aging time.
For the related command, see display arp timer aging.
Example
# Configure the dynamic ARP aging timer to 10 minutes.
[Quidway] arp timer aging 10
View
User view
Parameter
packet: ARP packet debugging.
Description
Using debugging arp command, you can enable ARP debugging. Using undo
debugging arp command, you can disable the corresponding ARP debugging.
By default, undo ARP debugging is enabled.
For the related command, see arp static, display arp.
Example
# Enable ARP packet debugging.
<Quidway> debugging arp packet
*Aug 31 10:30:20 2005 C_0.6506r ARP/8/arp_send:Send an ARP Packet, operation :
1
sender_eth_addr
0019-9612-0601,sender_ip_addr
10.0.0.2,
target_eth_addr :
sender_eth_addr
000f-1f9b-8b98,
sender_ip_addr
10.153.81.10,
target_eth_
sender_eth_addr
0019-9612-0601,sender_ip_addr
193.1.1.2,
target_eth_addr :
0000-0000-0000, target_ip_addr : 193.1.1.4
*Aug 31 10:30:21 2005 C_0.6506r ARP/8/arp_rcv:Receive an ARP Packet,
operation :
2,
sender_eth_addr
000f-e200-8001,
sender_ip_addr
193.1.1.4,
target_eth_add
r : 0019-9612-0601, target_ip_addr : 193.1.1.2
Description
operation
sender_eth_addr
sender_ip_addr
target_eth_addr
target_ip_addr
Target IP address
View
Any view
Parameter
dynamic: Display the dynamic ARP entries in ARP mapping table.
Description
Using display arp command, you can view the ARP mapping table.
For the related command, see arp static, reset arp, debugging arp.
Example
# Display all the ARP entries.
<Quidway> display arp
Type: S-Static
D-Dynamic
IP Address
MAC Address
Aging
Type
10.1.1.2
00e0-fc01-0102
N/A
N/A
N/A
1.1.1.9
0010-5ce1-1ae6 1
Ethernet3/0/12
17
1.1.1.11
000f-1f9b-8ab2 1
Ethernet3/0/1
18
---
3 entries found
---
Description
IP Address
MAC Address
VLAN ID
Port Name
Aging
Type
View
Any view
Parameter
begin: Displays ARP mapping entries containing the specified text from the first entry
to the last one.
Description
Use the display arp | command to display the ARP mapping table containing the
specified text content.
Related command: arp static, reset arp, debugging arp.
Example
# Display the ARP mapping entries containing specified text 1 the first entry to the last
one.
<Quidway> display arp | begin 1
Type: S-Static D-Dynamic
IP Address
MAC Address
1.1.1.9
0010-5ce1-1ae6 1
Ethernet3/0/12
1.1.1.11
000f-1f9b-8ab2 1
Ethernet3/0/1
Aging Type
17
18
D
D
--- 2 entries found --For description on all fields in the above display information, refer to Table 2-2.
View
Any view
Parameter
interface_type: Port type. interface_num: Port number. See the description of the
interface command for details.
Description
Using the display arp interface command, you can view the ARP mapping table of a
specified port.
Example
# Display the ARP table of Ethernet 2/0/1.
[Quidway]display arp interface ethernet 2/0/1
MAC Address
00e0-fc01-0102 1
Ethernet3/0/1
Aging Type
N/A S
View
Any view
Parameter
slot-id: Slot ID on the switch
Description
Using the display arp slot command, you can view the ARP mapping table of a
specified slot.
Example
# Display the ARP table of slot 3.
[Quidway]display arp slot 3
Type: S-Static
D-Dynamic
IP Address
MAC Address
10.1.1.2
00e0-fc01-0102 1
Ethernet3/0/1
Aging Type
N/A
View
Any view
Parameter
vlan-id: VLAN interface ID.
Description
Using display arp timer aging command, you can view the current setting of the
dynamic ARP map aging timer.
For the related command, see arp timer aging.
Huawei Technologies Proprietary
2-7
Example
# Display the current setting of the ARP map aging timer.
[Quidway] display arp timer aging
Current ARP aging time is 10 minute(s)
View
Any view
Parameter
vlan-id: VALN interface ID
Description
Using the display arp vlan command, you can view the ARP mapping table of a
specified VLAN.
Example
# Display the ARP table of VLAN1.
[Quidway]display arp vlan 1
Type: S-Static
D-Dynamic
IP Address
MAC Address
10.1.1.2
00e0-fc01-0102 1
Ethernet3/0/1
Aging Type
N/A
View
User view
Parameter
dynamic: Clear the dynamic ARP mapping entries.
static: Clear the static ARP mapping entries
interface interface_name: Clear the ARP mapping entries that are related to the
specified. port, represented with interface_name= interface_type interface_num.
interface_type is port type and interface_num is port number. For details about
interface_type, interface_num and interface_name, refer to the Port Command
Manual.
Description
Using reset arp command, you can reset the ARP mapping entries.
For the related command, see arp static, display arp.
Example
# Reset the static ARP entries.
<Quidway> reset arp static
View
System view
Parameter
None
Description
Use the gratuitous-arp-learning enable command to enable gratuitous ARP packet
learning.
Use the undo gratuitous-arp-learning enable command to disable this function.
By default, gratuitous ARP packet learning is disabled.
Gratuitous ARP function is to implement the following functions by sending out
gratuitous ARP packets:
z
By sending gratuitous ARP packets, network devices can figure out whether the
IP addresses of other devices conflict with its own.
If the device which sends the gratuitous ARP packet changed its hardware
address (probably, it turns off, has its interface card changed, and then reboots),
this packet can make old hardware address in the cache of other devices update
accordingly.
Huawei Technologies Proprietary
2-9
Example
# Enable gratuitous ARP packet learning on the switch Quidway A.
<QuidwayA> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
total: Restricts the maximum number of any ARP packets sent to the CPU. These
packets have any source and destination IP addresses.
local: Restricts the maximum number of the ARP packets sent to the CPU within unit
time. These packets have the same source IP addresses and their destination
addresses are the IP address of the current switch.
through: Restricts the maximum number of the passing ARP packets with the same
source IP addresses sent to the CPU within unit time. These packets have the same
source IP addresses and their destination addresses are not the IP address of the
current switch.
limit-value: Maximum number of the ARP packets sent to the CPU within unit time. It
ranges from 1 to 4,294,967,295 when local or total keyword or is chosen, and ranges
from 0 to 4,294,967,295 when through keyword is chosen.
Description
Use the arp source-suppression limit command to configure the maximum number
of ARP packets sent to the CPU in unit time.
Use the undo arp source-suppression limit command to restore the default value.
By defaut, the maximum number of ARP packets sent to the CPU in unit time is
related to ARP packet types:
z
The default number is 4,294,967,295 (without limitation) for the total keyword.
Example
# Set the maximum number of any ARP packets sent to the CPU within unit time to
100.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] arp source-suppression limit total 100
View
Any view
Parameter
None
Description
Use the display arp source-suppression command to display the information about
ARP source suppression configuration for the current switch.
Example
# Display the information about ARP source suppression configuration for the current
switch.
<Quidway> display arp source-suppression
ARP suppression limit total: 4294967295
ARP suppression limit local: 3
ARP suppression limit through: 3
Table 3-1 Description on the fields of the display arp source-suppression command
Field
Description
ARP
suppression
through:
limit
View
VLAN interface view
Parameter
None
Description
Use the arp proxy enable command to enable ARP proxy. Use the undo arp proxy
enable command to disable ARP proxy.
See display arp proxy for related configuration.
Example
# Enable the ARP proxy of VLAN 2 virtual interface.
[Quidway-Vlan-interface2] arp proxy enable
View
Any view
Parameter
interface_type: Specifies the port type.
interface_num: Specifies the port number.
Description
Use the display arp proxy command to view the ARP proxy status: enabled or
disabled.
See arp proxy enable for related configuration.
Example
# Display the ARP proxy status of interface VLAN 2
[Quidway] display arp proxy
View
VLAN interface view
Parameter
None
Description
Using address-check enable command, you can enable the security features of
DHCP relay and enable the user address validity check on VLAN interface. Using
address-check disable command, you can disable the security features of DHCP
relay and disable the user address validity check on VLAN interface.
By default, the switch disables DHCP security features function.
Example
# Enable the security features of DHCP relay on VLAN1 interface.
[Quidway-Vlan-interface1] address-check enable
View
VLAN interface view
Parameter
None
Description
Use the address-check dhcp-relay enable command to activate the dynamic
entries generated by the DHCP relay.
Use the address-check dhcp-relay disable command to deactivate the dynamic
entries generated by the DHCP relay
By default, the dynamic entries generated by the DHCP relay are activated.
Only when the dynamic entries are activated, the corresponding devices can pass the
DHCP security check.
This configuration takes effect only when the DHCP security feature is enabled on the
VLAN interface.
Example
# Deactivate the dynamic entries generated by the DHCP relay.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface vlan-interface 1
[Quidway-Vlan-interface1] address-check enable
[Quidway-Vlan-interface1] address-check dhcp-relay disable
View
VLAN interface view
Parameter
None
Description
Use the address-check no-matched enable command to inhibit unknown machines
from passing through the DHCP security check.
Use the address-check no-matched disable command to allow unknown machines
to pass through the DHCP security check.
By default, unknown machines are inhibited from passing through the DHCP security
check.
The so called unknown machine is a device which IP and MAC addresses are not
contained in any DHCP security table entry.
This configuration takes effect only when the DHCP security feature is enabled on the
VLAN interface.
Example
# Inhibit unknown machines from passing through the DHCP security check on a
VLAN interface.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface vlan-interface 1
[Quidway-Vlan-interface1] address-check enable
[Quidway-Vlan-interface1] address-check no-matched enable
View
User view
Parameter
None
Description
Using debugging dhcp-relay command, you can enable DHCP relay debugging.
Using undo debugging dhcp-relay command, you can disable the DHCP relay
debugging.
By default, DHCP relay debugging is disabled.
For the related command, see dhcp-server ip, dhcp-server, display dhcp-server,
display dhcp-server interface vlan-interface.
Example
# Enable DHCP relay debugging.
<Quidway> debugging dhcp-relay
*0.7200205-DHCP-8-dhcp_debug:
From client to DHCP Server:
Interface: VLAN-Interface 1
ServerGroupNo: 0
Type: dhcp-request
ClientHardAddress: 0010-dc19-695d
DHCP ServerIpAddress: 192.168.1.2
*0.7200230-DHCP-8-dhcp_debug:
From DHCP Server to client:
Interface: VLAN-Interface 1
ServerGroupNo: 0
Type: dhcp-ack
ClientHardAddress: 0010-dc19-695d
AllocatedIpAddress: 10.1.1.1
*0.7200580-DHCP-8-largehop:
Discard DHCP request packet because of too large hop count!
*0.7200725-DHCP-8-invalidpkt:
Wrong DHCP packet!
Description
Interface
ServerGroupNo
Type
ClientHardAddress
ServerIpAddress
AllocatedIpAddress
View
System view
Parameter
ip_address: User IP address.
Huawei Technologies Proprietary
5-4
Description
Using dhcp-security static command, you can configure a static address table entry
of DHCP Server group. Using undo dhcp-security command, you can cancel a
address table entry of DHCP Server group.
You can use the display dhcp-security command to view the user configuration of
DHCP Server group before you change corresponding IP address of the DHCP
Server group.
For the related command, see display dhcp-security.
Example
# Configure the user IP address and MAC address of DHCP Server group as 1.1.1.1
and 0005-5D02-F2B3 respectively.
[Quidway] dhcp-security static 1.1.1.1 0005-5D02-F2B3
5.1.6 dhcp-server
Syntax
dhcp-server groupNo
undo dhcp-server
View
VLAN interface view
Parameter
groupNo: DHCP Server group number; ranging from 0 to 19.
Description
Using dhcp-server command, you can configure the native DHCP Server group of
VLAN interface. Using undo dhcp-server command, you can cancel the VLAN
interface from its native DHCP Server group.
For the related command, see dhcp-server ip, display dhcp-server, display
dhcp-server interface vlan-interface, debugging dhcp-relay.
Example
# Add VLAN-Interface 1 to DHCP Server group1.
[Quidway-Vlan-interface1] dhcp-server 1
5.1.7 dhcp-server ip
Syntax
dhcp-server groupNo ip ipaddress1 [ ipaddress2 ]
undo dhcp-server groupNo
View
System view
Parameter
groupNo: DHCP Server group number; the valid groupNo ranges from 0 to 19.
ipaddress1:IP address of the DHCP Server1 in the group.
ipaddress2:IP address of the DHCP Server2 in the group.
Description
Using dhcp-server ip command, you can configure the IP address of DHCP Server
adopted by the DHCP Server group. Using undo dhcp-server ip command, you can
cancel the IP addresses all the DHCP Servers in DHCP Server group.
For the related command, see dhcp-server, display dhcp-server, debugging
dhcp-relay.
Example
# Configure IP addresses of the DHCP Servers of DHCP Server group1 as 1.1.1.1
and 2.2.2.2 respectively.
[Quidway] dhcp-server 1 ip 1.1.1.1 2.2.2.2
View
Any view
Parameter
ip_address: User IP address.
dynamic: Display dynamic address table entry.
static: Display static address table entry.
Description
Using display dhcp-security command, you can view all the IP addresses in valid
user address table ofDHCP Server group.
Example
# Display all the IP addresses in valid user address table of DHCP Server group.
<Quidway>display dhcp-security
IP Address
MAC Address
IP Address Type
2.2.2.2
0005-5d02-f2b2
Static
3.3.3.3
0005-5d02-f2b3
Dynamic
---
---
Description
IP Address
MAC Address
IP Address Type
View
Any view
Parameter
groupNo: DHCP Server group.
Description
Using display dhcp-server command, you can view the related information of DHCP
Server group.
For the related command, see dhcp-server ip, dhcp-server, display dhcp-server
interface vlan-interface, debugging dhcp-relay.
Example
# View the related information of DHCP Server group 0.
<Quidway> display dhcp-server 0
Huawei Technologies Proprietary
5-7
1.1.1.1
1.1.1.2
Description
DHCP_OFFER messages
DHCP_ACK messages
DHCP_NAK messages
DHCP_DECLINE messages
DHCP_DISCOVER messages
DHCP_REQUEST messages
Field
Description
DHCP_INFORM messages
DHCP_RELEASE messages
View
Any view
Parameter
vlan-id: VLAN interface ID.
Description
Using display dhcp-server interface vlan-interface command, you can view the
information of the DHCP Server group corresponding to VLAN interface.
For the related command, see dhcp-server, display dhcp-server, debugging
dhcp-relay.
Example
# View the information of the DHCP Server group corresponding to VLAN-Interface 2.
<Quidway> display dhcp-server interface vlan-interface 2
The DHCP Server group of this interface is 0
View
Any view
Parameter
None
Description
Using display fib command, you can view the summary of the Forwarding
Information Base. The information includes: destination address/mask length, next
hop, current flag and outbound interface.
Example
# Display the summary of the Forwarding Information Base.
<Quidway> display fib
Flag D:Direct, I:Indirect, B:BlackHole, R:Reject, N:Not Use
Destination/Mask
127.0.0.0/8
Nexthop
Flag
Interface
127.0.0.1
InLoopBack0
1.1.1.0/24
1.1.1.1
Vlan-interface1
1.1.1.1/32
127.0.0.1
InLoopBack0
Table 6-1 Description of the output information of the display fib command
Field
Description
Destination/Mask
Destination/Mask length
Nexthop
Nexthop address
The flag options include:
D Direct route
I Indirect route
Flag
B Blackhole route
R Refused and unavailable route
N Route which is not used
Interface
View
Any view
Parameter
None
Description
Using display icmp statistics command, you can view the statistics information
about ICMP packets.
For the related command, see display ip interface, reset ip statistics.
Example
# View statistics about ICMP packets.
<Quidway> display icmp statistics
Input: bad formats
bad checksum
echo
destination unreachable 0
source quench 0
redirects
echo reply
10
parameter problem
timestamp
information request
mask replies
mask requests 0
time exceeded 0
Output:echo
10
destination unreachable 0
source quench 0
redirects
echo reply
parameter problem
timestamp
information reply
mask requests 0
mask replies
0
0
time exceeded 0
Table 6-2 Description of the output information of the display icmp statistics
command
Field
Description
bad formats
bad checksum
echo
destination unreachable
source quench
redirects
echo reply
parameter problem
timestamp
information request
mask requests
mask replies
information reply
time exceeded
View
Any view
Parameter
sock-type: The type of a socket: (tcp:1, udp 2, raw ip 3).
task-id: The ID of a task, with the value ranging from 1 to 100.
socket-id: The ID of a socket, with the value ranging from 0 to 3072.
Huawei Technologies Proprietary
6-3
Description
Using the display ip socket command, you can display the information about the
sockets in the current system.
Example
# Display the information about the socket of TCP type.
<Quidway> display ip socket socktype 1
SOCK_STREAM:
Task = VTYD(18), socketid = 1, Proto = 6,
LA = 0.0.0.0:23, FA = 0.0.0.0:0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_KEEPALIVE SO_SENDVPNID SO_SETKEEPALIVE,
socket state = SS_PRIV SS_ASYNC
Description
SOCK_STREAM
Task
The ID of a task
socketid
The ID of a socket
Proto
sndbuf
rcvbuf
sb_cc
rb_cc
socket option
Field
Description
socket state
View
Any view
Parameter
None
Description
Using display ip statistics command, you can view the statistics information about
IP packets.
For the related command, see display ip interface, reset ip statistics.
Example
# View statistics about IP packets.
<Quidway> display ip statistics
Input:
Output:
sum
7120
local
112
bad protocol
bad format
bad checksum
bad options
forwarding
local
27
dropped
no route
output
compress fails 0
Fragment:input
dropped
fragmented
couldn't fragment 0
timeouts
Reassembling:sum
Table 6-4 Description of the output information of the display ip statistics command
Field
Input:
Output:
Fragment:
Reassembli
ng:
Description
sum
local
bad protocol
bad format
bad checksum
bad options
forwarding
local
dropped
no route
compress fails
input
output
dropped
fragmented
couldn't
fragment
sum
timeouts
View
Any view
Parameter
None
Description
Using display tcp statistics command, you can view the statistics information about
TCP packets.
The statistics information about TCP packets are divided into two major kinds which
are Received packets and Sent packets. And each kind of packets are further divided
into different kinds such as window probe packets, window update packets, duplicate
packets, and out-of-order packets. Some statistics information that is closely related
to TCP connection, such as window probe packets, window update packets, and data
packets retransmitted is also displayed. All these displayed information are measured
in packet.
For the related commands, see display tcp status, reset tcp statistics.
Example
# View statistics about TCP packets.
[Quidway]display tcp statistics
Received packets:
Total: 753
packets in sequence: 412 (11032 bytes)
window probe packets: 0, window update packets: 0
checksum error: 0, offset error: 0, short error: 0
duplicate packets: 4 (88 bytes), partially duplicate packets: 5 (7 bytes)
out-of-order packets: 0 (0 bytes)
packets of data after window: 0 (0 bytes)
packets received after close: 0
ACK packets: 481 (8776 bytes)
duplicate ACK packets: 7, too much ACK packets: 0
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)
View
Any view
Parameter
None
Description
Using display tcp status command, you can view the TCP connection state.
Example
# Display the state of all TCP connections.
<Quidway> display tcp status
TCPCB
Local Add:port
Foreign Add:port
State
03e37dc4
0.0.0.0:4001
0.0.0.0:0
Listening
04217174
100.0.0.204:23
100.0.0.253:65508
EstablishedOutput
Description
State
View
Any view
Parameter
None
Huawei Technologies Proprietary
6-8
Description
Using the display udp statistics command, you can view UDP traffic statistic
information.
The statistic information includes sent and received packets, which include different
types of packets such as checksum and error packets. The statistic information also
includes information related closely to connections such as the number of broadcast
packets. Note that the above information is count in packets.
For relate configuration, please refer to the reset udp statistics command.
Example
# Display the UDP traffic statistic information.
<Quidway> display udp statistics
Received packet:
Total:0
checksum error:0
shorter than header:0, data length larger than packet:0
no socket on port:0
broadcast:0
not delivered, input socket full:0
input packets missing pcb cache:0
Sent packet:
Total:0
6.1.8 ip
Syntax
ip { redirects | ttl-expires | unreachables }
undo ip { redirects | ttl-expires | unreachables }
View
System view
Parameter
redirects: Set whether to send redirection packets to CPU.
ttl-expires: Set whether to send TTL timeout packets to CPU.
unreachables: Set whether to send route unreachable packets to CPU.
Description
Using ip { redirects | ttl-expires | unreachables } command, you can set redirection
packets, TTL timeout packets and route unreachable packets sent to CPU for further
Huawei Technologies Proprietary
6-9
Example
# Set redirection packets sent to CPU for further processing.
[Quidway] ip redirects
6.1.9 ip forward-broadcast
Syntax
ip forward-broadcast
undo ip forward-broadcast
View
System view
Parameter
None
Description
Using ip forward-broadcast command, you can configure to forward L3 broadcast
packets. Using undo ip forward-broadcast command, you can disable to forward
broadcast packets.
By default, L3 broadcast packets is forwarded.
Example
# Enable the switch to forward broadcast packets.
[Quidway] ip forward-broadcast
View
User view
Parameter
None
Description
Using reset ip statistics command, you can clear the IP statistics information.
For the related commands, see display ip interface, display ip statistics.
Example
# Clear the IP statistics information.
<Quidway> reset ip statistics
View
User view
Parameter
None
Description
Using reset tcp statistics command, you can clear the TCP statistics information.
For the related command, see display tcp statistics.
Example
# Clear the TCP statistics information.
<Quidway> reset tcp statistics
View
User view
Parameter
None
Description
Using the reset udp statistics command, you can clear the UDP statistics
information.
Example
# Clear the UDP traffic statistics information.
<Quidway> reset udp statistics
View
System view
Parameter
time-value: TCP finwait timer value in second, with the value ranging from 76 to 3600;
By default, 675 seconds.
Description
Using tcp timer fin-timeout command, you can configure the TCP finwait timer.
Using undo tcp timer fin-timeout command, you can restore the default value of the
TCP finwait timer.
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 packet before finwait timer
timeouts, the TCP connection will be terminated.
For the related command, see tcp timer syn-timeout, tcp window.
Example
# Configure the TCP finwait timer value as 800 seconds.
[Quidway] tcp timer fin-timeout 800
View
System view
Parameter
time-value: TCP synwait timer value measured in second, whose value ranges from 2
to 600. The default time-value is75 seconds.
Description
Using tcp timer syn-timeout command, you can configure the TCP synwait timer.
Using undo tcp timer syn-timeout command, you can restore the default value of
the timer.
TCP will enable the synwait timer, if a SYN packet is sent. The TCP connection will be
terminated If the response packet is not received.
For the related command, see tcp timer fin-timeout, tcp window.
Example
# Configure the TCP synwait timer value as 80 seconds.
[Quidway] tcp timer syn-timeout 80
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. By default, the window-size is 8KB.
Description
Using tcp window command, you can configure the size of the transmission and
receiving buffers of the connection-oriented Socket. Using undo tcp window
command, you can restore the default size of the buffer.
For the related command, see tcp timer fin-timeout, tcp timer syn-timeout.
Example
# Configure the size of the transmission and receiving buffers as 3KB.
View
Any view
Parameter
vlan-id: Specifies a VLAN interface by specifying its VLAN ID.
Description
Using the display ipx interface command, you can view the IPX information of the
specified VLAN interface.
If no vlan-id is specified, the IPX information of all the IPX-enabled VLAN interfaces is
displayed.
Example
# Display the IPX information of VLAN interface 1.
<Quidway> display ipx interface Vlan-interface 1
Vlan-interface1 is down
IPX address is 1.0020-9c68-448e [down]
SAP is enabled
Split horizon is enabled
Update change only is disabled
Forwarding of IPX type 20 propagation packet is disabled
Delay of this IPX interface, in ticks is 1
SAP GNS response is enabled
RIP packet maximum size is 432 bytes
SAP packet maximum size is 480 bytes
IPX encapsulation is Netware 802.3
0 received, 0 sent
0 bytes received, 0 bytes sent
0 RIP received, 0 RIP sent, 0 RIP discarded
0 RIP specific requests received, 0 RIP specific responses sent
View
Any view
Parameter
network: Displays IPX routing information by specifying a destination network number,
which comprises eight hexadecimal numbers and is in the range 0x1 to 0xFFFFFFFE.
protocol: Displays the IPX routing information by route type.
default: Displays information of all the default routes.
direct: Displays information of all the direct routes.
rip: Displays all the IPX RIP routing information.
static: Displays all the IPX static routing information.
inactive: Displays the inactive routing information.
verbose: Displays the detailed IPX routing information, including the active and
inactive routes.
statistics: Displays the IPX routing statistics.
Description
Using the display ipx routing-table command, you can view the IPX routing
information.
If no parameters are specified, information of all the active IPX routes is displayed.
Example
# Display information of the active IPX routes.
[Quidway] display ipx routing-table
Routing tables:
Summary count: 2
Dest_Ntwk_ID
Proto
0x1
Direct 0
0.0000-0000-0000
Vlan-interface1
0x2
Static 60
1.000e-0001-0000
Vlan-interface1
Interface
Description
Dest_Ntwk_ID
Proto
Pre
Ticks
Hops
Nexthop
Interface
# Display the detailed IPX routing information, including the active and inactive routes.
<Quidway> display ipx routing-table verbose
Routing tables:
Destinations: 2
Routes: 3
Preference: 0
Ticks: 1
Hops: 0
Nexthop: 0.0000-0000-0000
Time: 0
Interface: 1.0020-9c68-448e(Vlan-interface1)
State: <Active>
Protocol: Static
Preference: -60
Ticks: 1
Hops: 1
Nexthop: 2.000e-0001-0000
Time: 0
Interface: 2.0020-9c68-448f(Vlan-interface2)
State: <Inactive>
Destination Network ID: 0x2
Protocol: Static
Preference: 60
Ticks: 1
Hops: 1
Nexthop: 1.000e-0001-0000
Time: 0
Interface: 1.0020-9c68-448e(Vlan-interface1)
State: <Active>
Table 7-2 Display information of the display ipx routing-table verbose command
Field
Description
Time
Route aging time; it is 0 for the direct and static routes, meaning they
never time out.
State
The state of the route. It can be active, inactive, or delete (meaning the
route is being deleted).
route
active
added
deleted
freed
Direct
Static
RIP
Default
Total
Table 7-3 Display information of the display ipx routing-table statistics command
Field
Description
Proto/State
Routing protocol
Route
Active
Added
Deleted
Freed
View
Any view
Parameter
inactive: Displays information of the inactive services.
name name: Displays service information by specifying a server name.
network network: Displays service information on the server with a specified network
number.
order { network | type }: Displays the service information by network number or by
service type.
type service-type: Displays the service information with a specified service type.
verbose: Displays the detailed service information.
Huawei Technologies Proprietary
7-4
Description
Using the display ipx service-table command, you can view the contents of the IPX
server information table.
Example
# Display the contents of the IPX server information table.
[Quidway] display ipx service-table
Abbreviation: S - Static, Pref - Preference(Decimal), NetId - Network number,
NodeId - Node address, hop - Hops(Decimal), Recv-If - Interface from which
the service is received
Type
NetId
S Prn1
0005
000d
S Prn2
0005
0008
Type
NetId NodeId
Recv-If
S Prn1
0005
000d
000a-000a-000a
0452 500
02
Vlan-interface1
S Prn2
0005
0008
000a-000a-000a
0452 500
03
Vlan-interface1
View
Any view
Parameter
None
Description
Using the display ipx statistics command, you can view the IPX packet statistics.
Huawei Technologies Proprietary
7-5
Example
# Display the IPX statistics.
<Quidway> display ipx statistics
Received: 0 total, 0 packets pitched
0 packets size errors, 0 format errors
0 bad hops(>16), 0 discarded(hops=16)
0 other errors, 0 local destination
0 can not be dealed
Sent:
0 forwarded, 0 generated
0 no route, 0 discarded
RIP:
0 sent, 0 received
0 responses sent, 0 responses received
0 requests received, 0 requests dealt
0 requests sent, 0 periodic updates
SAP:
PING:
View
System view
Parameter
None
Description
Using the ipx enable command, you can enable IPX. Using the undo ipx enable
command, you can disable IPX and delete all the IPX configurations.
Note that after the undo ipx enable command is executed, the IPX configurations are
not recoverable with the ipx enable command.
Example
# Enable IPX.
[Quidway] ipx enable
View
VLAN interface view
Parameter
dot2: Sets the encapsulation format to Ethernet_802.2.
dot3: Sets the encapsulation format to Ethernet_802.3.
ethernet-2: Sets the encapsulation format to Ethernet_II.
snap: Sets the encapsulation format to Ethernet_SNAP.
Description
Using the ipx encapsulation command, you can configure an IPX frame
encapsulation format on the current VLAN interface. Using the undo ipx
encapsulation command, you can restore the encapsulation format to the default.
By default, the IPX frame encapsulation format is Ethernet_802.3 (dot3).
Example
# Set the IPX frame encapsulation format to Ethernet_II on VLAN interface 1.
[Quidway-Vlan-interface1] ipx encapsulation ethernet-2
View
VLAN interface view
Parameter
None
Description
Using the ipx netbios-propagation command, you can enable the current VLAN
interface
to
forward
type
20
broadcast
packets.
Using
the
undo
ipx
Example
# Allow the current interface to forward type 20 broadcast packets.
[Quidway-Vlan-interface1] ipx netbios-propagation
View
VLAN interface view
Parameter
network-number: Hexadecimal IPX network number in the range 0x1 to 0xFFFFFFFD.
The leading 0s can be omitted when you input a network number.
Description
Using the ipx network command, you can assign an IPX network number to the
VLAN interface. Using the undo ipx network command, you can delete the IPX
network number of the VLAN interface.
By default, no network number is assigned to VLAN interfaces; therefore, IPX is
disabled on all the VLAN interfaces even after it is enabled globally.
Example
# Assign the network number 675 to VLAN interface 1.
[Quidway-Vlan-interface1] ipx network 675
View
System view
Parameter
None
Description
Using the ipx rip import-route static command, you can enable RIP to import static
routes. The imported routes are included in the update packets of RIP. Using the
undo ipx rip import-route static command, you can disable RIP to import static
routes.
By default, IPX RIP does not import static routes.
Note that RIP imports only active static routes; inactive static routes are neither
imported nor forwarded.
Example
# Import the static routes into RIP.
[Quidway] ipx rip import-route static
View
VLAN interface view
Parameter
bytes: The maximum size of RIP update packets in bytes. It is in the range 432 to
1500 and defaults to 432.
Description
Using the ipx rip mtu command, you can configure the RIP update packet size. Using
the undo ipx rip mtu command, you can restore the default.
Huawei Technologies Proprietary
7-9
Example
# Set the maximum RIP update packet size to 500 bytes on VLAN interface 1.
[Quidway-Vlan-interface1] ipx rip mtu 500
View
System view
Parameter
multiplier: A multiplier of the update interval, decides the aging period of the RIP
routing entries together with the update interval. It is in the range 1 to 1000 and
defaults to 3. Multiplying the update interval by the multiplier, you can get the actual
aging period.
Description
Using the ipx rip multiplier command, you can configure the aging period of the RIP
routing entries. Using the undo ipx rip multiplier command, you can restore the
default.
For the related command, see ipx rip timer update.
Example
# Set the RIP aging period of the routing entries to five times the update interval.
[Quidway] ipx rip multiplier 5
View
System view
Parameter
seconds: RIP update interval in seconds. It is in the range 10 to 60000 and defaults to
60.
Description
Using the ipx rip timer update command, you can configure a RIP update interval.
Using the undo ipx rip timer update command, you can restore the default.
For the related command, see ipx rip multiplier.
Example
# Set the RIP update interval to 30 seconds.
[Quidway] ipx rip timer update 30
View
System view
Parameter
paths: The maximum number of equivalent routes to the same destination. It is in the
range 1 to 64 and defaults to 1.
Description
Using the ipx route load-balance-path command, you can configure the number of
equivalent routes to the same destination. Using the undo
ipx
route
Example
# Set the number of equivalent routes to the same destination to 30.
[Quidway] ipx route load-balance-path 30
View
System view
Parameter
paths: The maximum number of dynamic routes saved in the device to the same
destination. It is in the range 1 to 255 and defaults to 4.
Description
Using the ipx route max-reserve-path command, you can configure the maximum
number of dynamic routes saved in the device to the same destination. Using the
undo ipx route max-reserve-path command, you can restore the default.
When the number of dynamic routes saved in the device to the same destination
exceeds the specified maximum value, the new dynamic routes are dropped directly
without being added into the routing table. When the configured new value is less than
the old one, the switch, however, does not delete the excessive route entries. These
route entries either time out or are manually deleted.
Example
# Set the maximum number of dynamic routes saved in the device to the same
destination to 200.
[Quidway] ipx route max-reserve-path 200
View
System view
Parameter
network: Destination network number of an IPX static route. It comprises eight
hexadecimal numbers and is in the range 1 to 0xFFFFFFFE.
network.node: Next hop address of the IPX static route. network defines the network
number; node defines the node address using 12 hexadecimal numbers that are
separated into three parts using -, each part in the range 1 to 0xFFFF.
preference value: Static route preference in the range 1 to 255. A smaller value
indicates a higher preference. By default, the preference values of the static routes,
direct routes, and dynamic RIP IPX routes are 60 (user-configurable), 0, and 100.
ticks ticks: Time that a packet must take to reach the destination network. It is in the
range 1 to 65534 and defaults to 1, with 1 tick = 1/18 seconds. When the tick value of
a VLAN interface is modified, the tick value of the static route also changes. You must
configure both the tick value and the hop count.
hop hops: Number of the switches on the way to the destination network. It is in the
range 1 to 15 and defaults to 1. You must configure both the hop count and tick value.
all: All the IPX static routes.
Description
Using the ipx route-static command, you can configure an IPX static route. Using the
undo ipx route-static command, you can delete the static route.
The IPX static routes with the destination network number of 0xFFFFFFFE are default
routes.
Example
# Configure an IPX static route, setting the destination network number to 0x5a, next
hop to 1000.0-0c91-f61f, tick value to 10 and hop count to 2.
[Quidway] ipx route-static 5a 1000.0-0c91-f61f 10 2
View
VLAN interface view
Parameter
None
Description
Using the ipx sap disable command, you can disable SAP on the current VLAN
interface. Using the undo ipx sap disable command, you can enable SAP on the
current VLAN interface.
By default, SAP is enabled on the VLAN interface when IPX is enabled.
Example
# Disable SAP on VLAN interface 1.
[Quidway-Vlan-interface1] ipx sap disable
View
VLAN interface view
Parameter
None
Description
Using the ipx sap gns-disable-reply command, you can disable IPX GNS reply on
the current VLAN interface. Using the undo ipx sap gns-disable-reply command,
you can enable IPX GNS reply on the current VLAN interface.
By default, GNS reply is enabled on the VLAN interface.
Example
# Disable GNS reply on VLAN interface 1.
[Quidway-Vlan-interface1] ipx sap gns-disable-reply
View
System view
Parameter
None
Description
Using the ipx sap gns-load-balance command, you can configure the switch to
respond to GNS requests through round robin polling. Using the undo ipx sap
gns-load-balance command, you can configure the switch to respond to GNS
requests with information of the nearest server.
By default, the switch responds to SAP GNS requests using the known server
information in turn. This prevents a server from getting overloaded.
For the related command, see ipx sap gns-disable-reply.
Example
# Respond to GNS requests with information of the nearest server.
[Quidway] undo ipx sap gns-load-balance
View
System view
Parameter
length: The maximum length of the service information reserve-queue for one service
type. It is in the range 1 to 2048 and defaults to 2048.
Description
Using the ipx sap max-reserve-servers command, you can configure the maximum
length of the service information reserve-queue for one service type. Using the undo
ipx sap max-reserve-servers command, you can restore the default.
Example
# Set the maximum length of the service information reserve-queue for one service
type to 1024.
[Quidway] ipx sap max-reserve-servers 1024
View
VLAN interface view
Parameter
bytes: The maximum SAP packet size in bytes. It is in the range 480 to 1500 and
defaults to 480.
Description
Using the ipx sap mtu command, you can configure the maximum size of SAP
update packets. Using the undo ipx sap mtu command, you can restore the default.
Example
# Set the maximum size of SAP update packets to 674 bytes, allowing 10 service
entries on VLAN interface 1.
[Quidway-Vlan-interface1] ipx sap mtu 674
View
System view
Parameter
multiplier: A multiplier of the update interval, decides the aging period of the SAP
service entries together with the update interval. It is in the range 1 to 1000 and
defaults to 3. Multiplying the update interval by the multiplier, you can get the actual
aging period.
Description
Using the ipx sap multiplier command, you can configure the aging period of the
SAP service entries. Using the undo ipx sap multiplier command, you can restore
the default.
Example
# Set the aging period of the SAP service entries to five times the update interval.
[Quidway] ipx sap multiplier 5
View
System view
Parameter
seconds: SAP update interval in the range 10 to 60000 seconds. By default, the value
is 60 seconds.
Description
Using the ipx sap timer update command, you can configure a SAP update interval.
Using the undo ipx sap timer update command, you can restore the default.
Note that this command is invalid if the triggered updates feature is applied on VLAN
interface.
For the related commands, see ipx sap multiplier and ipx update-change-only.
Example
# Set the SAP update interval to 300 seconds.
[Quidway] ipx sap timer update 300
View
System view
Parameter
service-type: A 4-byte hexadecimal number ranging from to. 0 indicates all service
types.
name: Specifies the server providing the specified service, a string of 1 to 47
characters.
network.node: Network number and node value of the server. A network number
comprises eight hexadecimal numbers and is in the range 0x1 to 0xFFFFFFFD. A
node address identifies a node in the network; it is 48 bits long and comprises 12
hexadecimal numbers that are separated into three parts by -. The leading 0s can be
omitted when you input network/node numbers.
socket: Comprises four hexadecimal numbers and is in the range 0x1 to 0xFFFF.
hop hops: Number of hops to the server, written in decimal and in the range 1 to 15.
The hop count equal to or exceeding 16 implies that the service is unreachable.
preference: Service preference value in the range 1 to 255, with a smaller number
indicating higher preference. By default, the preference value of the static service
entries is 60 (modifiable); the preference value of the dynamic service entries is fixed
to 500.
all: Deletes all the static service entries.
Description
Using the ipx service command, you can add a static service entry to the server
information table. Using the undo ipx service command, you can delete a static
service entry from the server information table.
Example
# Add a static service entry, setting service type to 4, server name to FileServer,
server network number to 130, node number to 0000-0a0b-abcd, hop count to 1 and
server preference to 60.
[Quidway] ipx service 4 FileServer 130.0000-0a0b-abcd 451 hop 1 preference 60
View
VLAN interface view
Parameter
None
Description
Using the ipx split-horizon command, you can enable split horizon on the current
VLAN interface. Using the undo ipx split-horizon command, you can disable split
horizon on the current VLAN interface.
By default, the split horizon of IPX is enabled.
Example
# Enable split horizon on VLAN interface 1.
[Quidway-Vlan-interface1] ipx split-horizon
View
VLAN interface view
Parameter
ticks: Delay in ticks; it is in the range 0 to 30000 and defaults to 1.
Description
Using the ipx tick command, you can configure an IPX packet forwarding delay on
the VLAN interface. Using the undo ipx tick command, you can restore the default.
Example
# Configure VLAN interface 1 to experience a delay of five ticks before forwarding IPX
packets.
[Quidway-Vlan-interface1] ipx tick 5
View
VLAN interface view
Parameter
None
Description
Using the ipx update-change-only command, you can enable update by trigger on
the current VLAN interface. Using the undo ipx update-change-only command, you
can restore the default.
By default, update by trigger is disabled.
Example
# Enable the update by trigger feature of IPX on VLAN interface 1.
[Quidway-Vlan-interface1] ipx update-change-only
View
User view
Parameter
all: Clears the statistics of all the IPX routes.
default: Clears the statistics of the default IPX routes.
direct: Clears the statistics of the direct IPX routes.
rip: Clears the statistics of the IPX RIP routes.
static: Clears the statistics of the static IPX routes.
Description
Using the reset ipx routing-table statistics protocol command, you can clear the
statistics on the IPX routes of a specific routing type.
For the related command, see display ipx routing-table statistics.
Example
# Clear the statistics of the IPX static routes.
<Quidway> reset ipx routing-table statistics protocol static
View
User view
Parameter
None
Description
Using the reset ipx statistics command, you can clear the IPX statistics.
Example
# Clear the IPX statistics.
<Quidway> reset ipx statistics
HUAWEI
Routing Protocol
Table of Contents
Table of Contents
Chapter 1 Static Route Configuration Commands .................................................................... 1-1
1.1 Display Commands of the Routing Table .......................................................................... 1-1
1.1.1 display ip routing-table ............................................................................................ 1-1
1.1.2 display ip routing-table acl....................................................................................... 1-2
1.1.3 display ip routing-table ip_address.......................................................................... 1-6
1.1.4 display ip routing-table ip_address1 ip_address2................................................... 1-8
1.1.5 display ip routing-table ip-prefix .............................................................................. 1-9
1.1.6 display ip routing-table protocol ............................................................................ 1-10
1.1.7 display ip routing-table radix ................................................................................. 1-11
1.1.8 display ip routing-table statistics ........................................................................... 1-13
1.1.9 display ip routing-table verbose ............................................................................ 1-14
1.2 Static Route Configuration Commands ........................................................................... 1-15
1.2.1 delete static-routes all ........................................................................................... 1-15
1.2.2 ip route-static......................................................................................................... 1-16
1.2.3 ip route-static default-preference .......................................................................... 1-17
Chapter 2 RIP Configuration Commands.................................................................................... 2-1
2.1 RIP Configuration Commands ........................................................................................... 2-1
2.1.1 checkzero ................................................................................................................ 2-1
2.1.2 default cost .............................................................................................................. 2-2
2.1.3 display rip ................................................................................................................ 2-2
2.1.4 display rip routing .................................................................................................... 2-3
2.1.5 filter-policy export .................................................................................................... 2-4
2.1.6 filter-policy import .................................................................................................... 2-5
2.1.7 host-route ................................................................................................................ 2-6
2.1.8 import-route ............................................................................................................. 2-7
2.1.9 network.................................................................................................................... 2-8
2.1.10 peer ....................................................................................................................... 2-9
2.1.11 preference ........................................................................................................... 2-10
2.1.12 reset .................................................................................................................... 2-10
2.1.13 rip ........................................................................................................................ 2-11
2.1.14 rip authentication-mode....................................................................................... 2-12
2.1.15 rip input................................................................................................................ 2-13
2.1.16 rip metricin........................................................................................................... 2-14
2.1.17 rip metricout......................................................................................................... 2-14
2.1.18 rip output ............................................................................................................. 2-15
2.1.19 rip split-horizon .................................................................................................... 2-16
2.1.20 rip version............................................................................................................ 2-16
Table of Contents
Table of Contents
Table of Contents
Table of Contents
Table of Contents
Note:
When an Ethernet switch runs a routing protocol, it can perform the router functions.
Router that is referred to in the following and its icon represent a generalized router or
an Ethernet switch running routing protocols. To improve readability, this will not be
described in the other parts of the manual.
View
Any view
Parameter
None
Description
Using display ip routing-table command, you can view the routing table summary.
This command displays routing table information in summary form. Each line
represents one route. The contents include destination address/mask length, protocol,
preference, metric, next hop and output interface.
Only current used route, i.e., best route, is displayed using display ip routing-table
command.
Example
# View the summary of routing table.
<Quidway> display ip routing-table
Routing Table: public net
Destination/Mask
Protocol
Pre Cost
Nexthop
Interface
1.1.1.0/24
DIRECT
1.1.1.1
Vlan-interface1
1.1.1.1/32
DIRECT
127.0.0.1
InLoopBack0
2.2.2.0/24
DIRECT
2.2.2.1
Vlan-interface2
2.2.2.1/32
DIRECT
127.0.0.1
InLoopBack0
3.3.3.0/24
DIRECT
3.3.3.1
Vlan-interface3
3.3.3.1/32
DIRECT
127.0.0.1
InLoopBack0
4.4.4.0/24
DIRECT
4.4.4.1
Vlan-interface4
4.4.4.1/32
DIRECT
127.0.0.1
InLoopBack0
127.0.0.0/8
DIRECT
127.0.0.1
InLoopBack0
127.0.0.1/32
DIRECT
127.0.0.1
InLoopBack0
Description
Destination/Mask
Protocol
Routing protocol
Pre
Routing preference
Cost
Cost
Nexthop
Interface
View
Any view
Parameter
acl-number: the number of basic ACL, ranging from 2000 to 2999.
acl-name: the basic ACL name introduced via names.
verbose: With the parameter, this command displays the verbose information of both
the active and inactive routes that passed filtering rules. Without the parameter, this
command only displays the summary of the active routes that passed filtering rules.
Description
Using display ip routing-table acl command, you can view the route filtered through
specified basic access control list (ACL).
Huawei Technologies Proprietary
1-2
This command is used in track display of route policy to display the route that passed
the filtering rule according the input basic ACL number or name.
The command is only applicable to display the route that passed basic ACL filtering
rules.
Example
# Display the summary of active routes that are 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
10.1.1.2
Vlan-interface1
10.1.1.2/32
DIRECT
127.0.0.1
InLoopBack0
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: 7:24
Cost: 0/0
**Destination: 10.1.1.2
Tag: 0
Mask: 255.255.255.255
Protocol: #DIRECT
Preference: 0
*NextHop: 127.0.0.1
Interface: 127.0.0.1(InLoopBack0)
Vlinkindex: 0
State: <NoAdvise Int ActiveU Retain Gateway Unicast>
Age: 7:24
Cost: 0/0
Tag: 0
Description
Destination
Destination address
Mask
Mask
Protocol
Routing protocol
Preference
Routing preference
Nexthop
Interface
Output interface, through which the data packet destined for the
destination network segment is sent
Vlinkindex
Field
Description
Route state description:
ActiveU
Blackhole
Delete
Gateway
Hidden
Holddown
Int
NoAdvise
NotInstall
Reject
Retain
When the routes from the routing table are deleted, the
routes with Retain flag will not be deleted. Using this
function you can set Retain flag for some static routes,
so that they can exist in the core routing table.
Static
The route with Static flag will not be cleared from the
routing table after you save it and reboot the router.
Generally, the static route configured manually in the
router belongs to a Static route.
Unicast
Unicast route
State
Field
Description
Age
Time to live
Cost
Tag
View
Any view
Parameter
ip_address: Destination IP address.
mask: IP address mask, length in dotted decimal notation or integer. It ranges from 0 to
32 when it is expressed with integer.
verbose: With the verbose parameter, this command displays the verbose information
of both the active and inactive routes. Without the parameter, this command only
displays the summary of active routes.
longer-match: Routes matching the destination address in specified mask range. If no
mask is specified, all the routes matching the destination address in natural mask
range are displayed.
Description
Using display ip routing-table ip_address command, you can view the routing
information of the specified destination address.
With different parameters, the output of command is different. The following is the
output description for different forms of this command:
z
If destination address, ip_address, has corresponding route in natural mask range, this
command will display all subnet routes or only the route best matching the destination
address, ip_address, is displayed. And only the active matching route is displayed.
z
This command only displays the route fully matching with specified destination address
and mask.
z
This command displays all destination address route matching destination address in
natural mask range.
z
This command displays all destination address route matching destination address in
specified mask range.
Example
# There is corresponding route in natural mask range. Display the summary.
<Quidway> display ip routing-table 169.0.0.0
Destination/Mask
Nexthop
Interface
169.0.0.0/16
Static
2.1.1.1
LoopBack1
60
Protocol Pre
Cost
Nexthop
Interface
169.0.0.0/8
Static
2.1.1.1
LoopBack1
60
# There are corresponding routes in the natural mask range. Display the detailed
information.
<Quidway> display ip routing-table 169.0.0.0 verbose
Routing Tables:
Generate Default: no
+ = Active Route, - = Last Active, # = Both
Summary count:2
**Destination: 169.0.0.0
Protocol: #Static
Mask: 255.0.0.0
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
**Destination: 169.0.0.0
Protocol: #Static
Tag: 0
Mask: 255.254.0.0
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
# There are no corresponding routes in the natural mask range (only displaying the
longest matched route). Display the detailed information.
<Quidway> display ip routing-table 169.253.0.0 verbose
Huawei Technologies Proprietary
1-7
Routing Tables:
Generate Default: no
+ = Active Route, - = Last Active, # = Both
Summary count:1
**Destination: 169.0.0.0
Protocol: #Static
Mask: 255.0.0.0
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
View
Any view
Parameter
ip_address1, ip_address2: Destination IP address in dotted decimal notation.
ip_address1 and ip_address2 determine one address range together to display the
route in this address range. ip_address1 anding with mask1 specifies the start of the
range while ip_address2 anding with mask2 specifies the end.
mask1, mask2: IP address mask, length in dotted decimal notation or integer form. It
ranges from 0 to 32 when it is presented in integer.
verbose: With the verbose parameter, this command displays the verbose information
of both the active and inactive routes. Without the parameter, this command only
displays the summary of active routes.
Description
Using display ip routing-table ip_address1 ip_address2 command, you can view
the route information in the specified address range.
Example
# Display the routing information of destination addresses ranging from 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
1.1.1.1
Vlan-interface1
1.1.1.1/32
DIRECT
127.0.0.1
InLoopBack0
2.2.2.0/24
DIRECT
2.2.2.1
Vlan-interface2
View
Any view
Parameter
ip-prefix-name: ip prefix list name. The length of ip-prefix-name ranges from 1 to 19
character string.
verbose: With the parameter, this command displays the verbose information of both
the active and inactive routes that passed filtering rules. Without the parameter, this
command displays the summary of the active routes that passed filtering rules.
Description
Using display ip routing-table ip-prefix command, you can view the route information
that passed the filtering rule according the input ip prefix list name.
Example
# Display the summary of the active route that is filtered ip prefix list abc2.
[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
10.1.1.2
Vlan-interface1
10.1.1.2/32
DIRECT
127.0.0.1
InLoopBack0
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
**Destination: 10.1.1.2
Tag: 0
Mask: 255.255.255.255
Protocol: #DIRECT
Preference: 0
*NextHop: 127.0.0.1
Interface: 127.0.0.1(InLoopBack0)
Vlinkindex: 0
State: <NoAdvise Int ActiveU Retain Gateway Unicast>
Age: 3:23:44
Cost: 0/0
Tag: 0
View
Any view
Parameter
inactive: With the parameter, this command displays the inactive route information.
Without the parameter, this command displays the active and inactive route
information.
verbose: With the verbose parameter, this command displays the verbose route
information. Without the parameter, this command displays the route summary.
protocol: the parameter has multiple selectable values:
z
Description
Using display ip routing-table protocol command, you can view the route information
of specified protocol.
Example
# Display all direct connection routes summary.
<Quidway> display ip routing-table protocol direct
DIRECT Routing tables:
Summary count: 8
DIRECT Routing table status:<active>:
Summary count: 7
Destination/Mask
Protocol Pre
Cost
Nexthop
Interface
10.5.1.0/24
DIRECT
10.5.1.5
Vlan-interface105
10.5.1.5/32
DIRECT
127.0.0.1
InLoopBack0
100.100.1.1/32
DIRECT
127.0.0.1
InLoopBack0
102.1.1.0/24
DIRECT
102.1.1.1
LoopBack1
102.1.1.1/32
DIRECT
127.0.0.1
InLoopBack0
127.0.0.0/8
DIRECT
127.0.0.1
InLoopBack0
127.0.0.1/32
DIRECT
127.0.0.1
InLoopBack0
Protocol Pre
Cost
Nexthop
Interface
100.100.1.1/32
DIRECT
100.100.1.1
LoopBack0
Nexthop
Interface
Protocol
STATIC
Pre Cost
60
1.2.4.5
Vlan-interface10
View
Any view
Parameter
None
Description
Using display ip routing-table radix command, you can view the route information in
a tree structure.
Example
<Quidway> display ip routing-table radix
Radix tree for INET (2) inodes 14 routes 10:
+--8+--{169.0.0.0
|
+-32+--{169.1.1.1
+--0+
|
+--8+--{127.0.0.0
+--1+
+-32+--{127.0.0.1
+--8+--{2.0.0.0
+-24+--{2.2.2.0
+--6+
+-32+--{2.2.2.2
+-22+
+-32+--{2.2.1.1
+--8+--{1.0.0.0
+-32+--{1.1.1.1
Description
INET
Address suite
inodes
Number of nodes
routes
Number of routes
View
Any view
Parameter
None
Description
Using display ip routing-table statistics command, you can view the statistics of
routing information.
The statistics of routing information includes total route amount, the route amount
added or deleted by protocol, amount of the routes that are labeled deleted but not
deleted, the active route amount and inactive route amount.
Example
# Display the statistics of route information.
<Quidway> display ip routing-table statistics
Routing tables:
Proto
route
active
added
deleted
DIRECT
24
25
STATIC
BGP
RIP
IS-IS
OSPF
O_ASE
O_NSSA
AGGRE
Total
28
29
Description
Proto
Routing protocol
route
Number of routes
active
Field
Description
added
deleted
Total
View
Any view
Parameter
None
Description
Using display ip routing-table verbose command, you can view the verbose routing
table information.
With the verbose parameter, 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 and finally the verbose description of
each route will be output.
All current routes, including inactive route and invalid route, can be displayed using
display ip routing-table verbose command.
Example
# Display the verbose routing table information.
<Quidway> display ip routing-table verbose
Routing Tables:
Generate Default: no
+ = Active Route, - = Last Active, # = Both
Destinations: 3
Holddown: 0
Routes: 3
Delete: 62
**Destination: 1.1.1.0
Protocol: #DIRECT
Hidden: 0
Mask: 255.255.255.0
Preference: 0
*NextHop: 1.1.1.1
Interface: 1.1.1.1(Vlan-interface1)
Cost: 0/0
**Destination: 1.1.1.1
Mask: 255.255.255.255
Protocol: #DIRECT
Preference: 0
*NextHop: 127.0.0.1
Interface: 127.0.0.1(InLoopBack0)
Cost: 0/0
**Destination: 2.2.2.0
Mask: 255.255.255.0
Protocol: #DIRECT
Preference: 0
*NextHop: 2.2.2.1
Interface: 2.2.2.1(Vlan-interface2)
Cost: 0/0
First, display statistics of the whole routing table and then output detailed information of
every route entry in turn. The meaning of route status is shown in Table 1-2, and the
statistics of routing table is shown in the following table.
Table 1-5 Description of information generated by the command display ip
routing-table verbose
Field
Description
Holddown
Delete
Hidden
View
System view
Parameter
None
Description
Using the delete static-routes all command, you can delete all the static routes.
The system will request your confirmation before it deletes all the configured static
routes.
Huawei Technologies Proprietary
1-15
Example
# Delete all the static routes in the router.
[Quidway] delete static-routes all
Are you sure to delete all the unicast static routes?[Y/N]
1.2.2 ip route-static
Syntax
ip route-static ip-address { mask | mask-length } { interface-name | gateway-address }
[ preference preference-value ] [ reject | blackhole ]
undo ip route-static ip-address { mask | mask-length } [ interface-name |
gateway-address ] [ preference preference-value ] [ reject blackhole ]
View
system view
Parameter
ip-address: Destination IP address in dotted decimal notation.
mask: Mask.
mask-length: Mask length. Since "1" s in the 32-bit mask are required to be consecutive,
the mask in dotted decimal format can be replaced by mask-length, which is the
number of the consecutive "1" s in the mask.
interface-name: Specify the interface of the route. The packets that are sent to a NULL
interface, a kind of virtual interface, will be discarded immediately. Thus can decrease
the system load.
gateway-address: Specify the next hop IP address of the route.
preference-value: Preference level of the route in the range from 1 to 255.
reject: Indicate an unreachable route.
blackhole: Indicate a blackhole route.
Description
Using ip route-static command, you can configure a static route. Using undo ip
route-static command, you can delete the configured static route.
By default, the system can obtain the sub-net route directly connected with the router.
When configuring a static route, the default preference is 60. You can change the
default preference value of the static routes to be configured by using the command ip
Reachable route: A normal route is of this type. That is, the IP packet is sent to the
next hop via the route marked by the destination. It is a common type of static
routes.
Unreachable route: When a static route to a destination has the "reject" attribute,
all the IP packets to this destination will be discarded.
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 packets addressed to this destination are dropped.
The attributes "reject" and "blackhole" are usually used to control the range of
reachable destinations of this router, and help troubleshooting the network.
Precautions when configuring static route:
z
You cannot specify an interface address of the local switch as the next hop
address of an static route.
In addition, when the destination IP address and the mask are both 0.0.0.0, it is the
configured default route. If it is failed to detect the routing table, a packet will be
forwarded along the default route.
For the related commands, see display ip routing-table, delete static-routes all and
ip route-static default-preference.
Example
# Configure the next hop of the default route as 129.102.0.2.
[Quidway] ip route-static 0.0.0.0 0.0.0.0 129.102.0.2
View
System view
Parameter
default-preference-value: The default preference value of static routes, which will be
the preference value of the static route if its preference is not specified when configured.
Its default value is 60.
Description
Using ip route-static default-preference command, you can configure the default
preference value of static routes. Using undo ip route-static default-preference
command, you can restore the default value.
A static routes preference will be the default-preference-value set by this command if
its preference is not specified when configured by ip route-static command.
For the related commands, see display ip routing-table, ip route-static.
Example
# Configure the default preference of static routes as 120.
[Quidway] ip route-static default-preference 120
Note:
When an Ethernet switch runs a routing protocol, it can perform the router functions.
Router that is referred to in the following and its icon represent a generalized router or
an Ethernet switch running routing protocols. To improve readability, this will not be
described in the other parts of the manual.
View
RIP view
Parameter
None
Description
Using checkzero command, you can check the zero field of RIP-1 packet. Using undo
checkzero command, you can disable the checking of the zero fields.
By default, RIP-1 performs the zero field checking.
According to the protocol (RFC1058) specifications, some fields in RIP-1 packets must
be zero, called zero fields. With the checkzero command, the zero check operation of
RIP-1 can be enabled or disabled. During the zero check operation, if the RIP-1 packet
in which the zero fields are not zeros is received, it will be rejected.
This command is ineffective to RIP-2 since RIP-2 packets have no zero fields.
Example
# Configure not to perform zero check for RIP-1 packet.
[Quidway-rip] undo checkzero
Huawei Technologies Proprietary
2-1
View
RIP view
Parameter
value: the default routing cost to be set, ranging from 1 to 16. The default value is 1.
Description
Using default cost command, you can set the default routing cost of an imported route.
Using undo default cost command, you can restore the default value.
If no specific routing cost is specified when importing the route of another routing
protocol with the import-route command, the importing will be performed with the
default routing cost specified with the default cost command.
For the related commands, see import-route.
Example
# Set the default routing cost of the imported route of another routing protocol to 3.
[Quidway-rip] default cost 3
View
Any view
Parameter
None
Description
Using display rip command, you can view the current RIP running state and its
configuration information.
Example
# Display the current running state and configuration information of the RIP.
Huawei Technologies Proprietary
2-2
Default cost : 1
Summary is on
Preference : 100
Traffic-share-across-interface is off
Period update timer : 30
Timeout timer : 180
Garbage-collection timer : 120
No peer router
Network :
10.0.0.0
Description
RIP is running
RIP is active
Checkzero is on
Default cost : 1
Summary is on
Preference : 100
Traffic-share-across-interface
is off
Network :10.0.0.0
View
Any view
Parameter
None
Huawei Technologies Proprietary
2-3
Description
Use the display rip routing command to view RIP routing information.
Example
# Display RIP routing information.
<Quidway> display rip routing
RIP routing table: public net
A = Active
I = Inactive
G=Garbage collection
Destination/Mask
Cost NextHop
Age
SourceGateway
Att
6.0.0.0/8
4s
10.153.25.22
10.153.25.22
Description
Destination/Mask
Cost
Routing cost
NextHop
Age
SourceGateway
Att
filter-policy
acl-number
ip-prefix
ip-prefix-name
route-policy
View
RIP view
Parameter
acl-number: Access control list number used for filtering the destination addresses of
the routing information.
ip-prefix-name: Name of address prefix list used for filtering the destination addresses
of the routing information. The length of ip-prefix-name ranges from 1 to 19 character
string.
route-policy-name: Route policy name that filters routing information. After enabling
RIP protocol, you can determine which routes are to be sent/received based on
acl/cost/interface/ip/ip-prefix/tag fields. The length of route-policy-name parameter
ranges from 1 to 16 character string.
routing-protocol: Routing protocol whose routing information is to be filtered, including
direct, isis, bgp, ospf, ospf-ase, ospf-nssa and static at present.
Description
Using filter-policy export command, you can configure to filter the advertised routing
information by RIP. Using undo filter-policy export command, you can configure not
to filter the advertised routing information.
By default, RIP does not filter the advertised routing information.
In some cases, it may be required that only the routing information meeting some
conditions can be advertised. Then, the filter-policy command can be used to set the
filtering conditions for the routing information to be advertised. Only the routing
information passing the filtration can be advertised.
For the related commands, see acl, filter-policy import, ip ip-prefix.
Example
# Filter the advertised route information according to ACL 2000.
[Quidway-rip] filter-policy 2000 export
View
RIP view
Parameter
acl-number: Access control list number used for filtering the destination addresses of
the routing information.
ip-prefix-name: Name of address prefix list used for filtering the destination addresses
of the routing information. The length of ip-prefix-name ranges from 1 to 19 character
string.
gateway ip-prefix-name: Name of address prefix list used for filtering the addresses of
the neighboring routers advertising the routing information. The length of
ip-prefix-name ranges from 1 to 19 character string.
route-policy-name: Route policy name that filters routing information. After enabling
RIP protocol, you can determine which routes are to be sent/received based on
acl/cost/interface/ip/ip-prefix/tag fields. The length of route-policy-name parameter
ranges from 1 to 16 character string.
Description
Using filter-policy gateway import command, you can configure to filter the received
routing information distributed from the specified address. Using undo filter-policy
gateway import command, you can configure not to filter the received routing
information distributed from the specified address.
Using filter-policy import command, you can configure the filtering to the received
global routing information. Using undo filter-policy import command, you can disable
filtering to the received global routing information
By default, RIP does not filter the received routing information.
For the related commands, see acl, filter-policy export, ip ip-prefix.
Example
# Configure the filtering of the global routing information according to acl 2000.
[Quidway-rip] filter-policy 2000 import
2.1.7 host-route
Syntax
host-route
undo host-route
View
RIP view
Parameter
None
Description
Using host-route command, you can control the RIP to accept the host route. Using
undo host-route command, you can reject the host route.
By default, RIP accepts the host route.
In some special cases, RIP receives a great number of host routes in the same network
segment. These routes cannot help the path searching much but occupy a lot of
resources. In this case, the undo host-route command can be used to reject a host
route.
Example
# Configure RIP to reject a host route.
[Quidway-rip] undo host-route
2.1.8 import-route
Syntax
import-route protocol [ cost value | route-policy route-policy-name ]*
undo import-route protocol
View
RIP view
Parameter
protocol: Specify the source routing protocol to be imported by RIP. At present, RIP can
import the following routes: direct, bgp, ospf, ospf-ase, ospf-nssa , isis and static.
value: Cost value of the route to be imported, ranging from 1 to 16.
route-policy route-policy-name: Configure to import the route matching the condition
of the specified Route-policy only. The length of route-policy-name parameter ranges
from 1 to 16 character string.
Description
Using import-route command, you can import the routes of other protocols into RIP.
Using undo import-route command, you can cancel the routes imported from other
protocols.
Example
# Import a static route with cost 4.
[Quidway-rip] import-route static cost 4
# Set the default cost and import an OSPF route with the default cost.
[Quidway-rip] default cost 3
[Quidway-rip] import-route ospf
2.1.9 network
Syntax
network network-address
undo network network-address
View
RIP view
Parameter
network-address: Address of the network enabled/disabled. It can be the IP network
address of any interface.
Description
Using network command, you can enable Routing Information Protocol (RIP) for the
specified network connected to the router. Using undo network command, you can
disable the RIP on the interface.
By default, RIP is disabled on any interface.
After enabling RIP, RIP at a certain interface must be enabled with the network
command, since RIP works only on the interface of specified network segment. RIP
wont receive or forward route on interfaces of non-specified network segments.
Huawei Technologies Proprietary
2-8
The undo network command is similar to the undo rip work command in terms of
function. But they are not identical. Their similarity is that the interface using either
command will not receive/transmit RIP routes. The difference between them is that, in
the case of undo rip work , other interfaces will still forward the routes of the interface
using the undo rip work command. In the case of undo network, other interfaces will
not forward the routes of the interface using this command and it seems that the
interface disappeared.
When the network command is used on an address, the effect is that the interface on
the network segment at this address is enabled. For example, the results of viewing the
network 129.102.1.1 with both the display current-configuration command and the
display rip command are shown as the network 129.102.0.0.
For the related commands, see rip work .
Example
# Enable the RIP on the interface with the network address as 129.102.0.0.
[Quidway-rip] network 129.102.0.0
2.1.10 peer
Syntax
peer ip-address
undo peer ip-address
View
RIP view
Parameter
ip-address: The interface IP address of the peer router, represented in the format of
dotted decimal.
Description
Using peer command, you can configure the sending destination address of the peer
device. Using undo peer command, you can cancel the set destination address.
By default, do not send RIP packet to any destination.
RIP exchanges routing information with non-broadcasting networks in unicast view.
This command specifies the sending destination address to fit some non-broadcast
networks. Usually, it is not recommended to use this command.
Example
# Specify the sending destination address 202.38.165.1.
2.1.11 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
Using preference command, you can configure the route preference of RIP. Using
undo preference command, you can restore the default preference.
Every routing protocol has its own preference. Its default value is determined by the
specific routing policy. The preference will finally determine the routing algorithm to
obtain the optimal route in the IP routing table. This command can be used to modify
the RIP preference manually.
Example
# Specify the RIP preference as 20.
[Quidway-rip] preference 20
2.1.12 reset
Syntax
reset
View
RIP view
Parameter
None
Description
Using reset command, you can reset the system configuration parameters of RIP.
When you need to re-configure parameters of RIP, this command can be used to
restore to the default setting.
Example
# Reset the RIP system.
[Quidway-rip] reset
2.1.13 rip
Syntax
rip
undo rip
View
system view
Parameter
none
Description
Using rip command, you can enable the RIP and enter the RIP view. Using undo rip
command, you can disable RIP.
By default, the system does not run RIP.
To enter the RIP view to configure various RIP global parameters, RIP should be
enabled first. Whereas the configuration of parameters related to the interfaces is not
restricted by enabling/disabling RIP.
Note:
Note that the interface parameters configured previously would be invalid when RIP is
disabled.
Example
# Enable the RIP and enter the RIP view.
[Quidway] rip
[Quidway-rip]
View
Interface view
Parameter
simple: Simple text authentication mode.
password: Simple text authentication key.
md5: MD5 cipher text authentication mode.
rfc2453: Specify the MD5 cipher text authentication packet to use the general packet
format (RFC2453 standard format).
key-string: MD5 authentication key. If it is input in a plain text form, MD5 key is a
character string not exceeding 16 characters. And it will be displayed in a cipher text
form in a length of 24 characters when display current-configuration command is
executed. Inputting the MD5 key in a cipher text form with 24 characters long is also
supported.
rfc2082: Specify the MD5 cipher text authentication packet to use a nonstandard
packet format described in RFC2082.
key-id: MD5 cipher text authentication identifier, ranging from 1 to 255.
Description
Using rip authentication-mode command, you can configure RIP-2 authentication
mode and its parameters. Using undo rip authentication-mode command, you can
cancel the RIP-2 authentication.
RIP-1 does not support authentication. There are two RIP authentication modes:
simple authentication and MD5 cipher text authentication for RIP-2 . When MD5 cipher
text authentication mode is used, there are two types of packet formats. One of them is
that described in RFC 2453. The other format is the one described specially in RFC
2082. The router supports both of the packet formats and the user can select either of
them on demands.
For the related commands, see rip version.
Example
# Specify Interface Vlan-interface 1 to use the simple authentication with the key as
aaa.
Huawei Technologies Proprietary
2-12
View
Interface view
Parameter
None
Description
Using rip input command, you can allow an interface to receive RIP packets. Using
undo rip input command, you can disable an interface to receive RIP packets.
By default, all interfaces except loopback interfaces are enabled to receive RIP
packets.
This command is used in cooperation with the other 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.
For the related commands, see rip output, rip work .
Example
# Specify Vlan-interface 1 not to receive RIP packets.
[Quidway-Vlan-interface1] undo rip input
View
Interface view
Parameter
value: Additional route metric added when receiving a packet, ranging from 0 to 16. By
default, the value is 0.
Description
Using rip metricin command, you can configure the additional route metric added to
the route when an interface receives RIP packets. Using undo rip metricin command,
you can restore the default value of this additional route metric.
For the related commands, see rip metricout.
Example
# Specify the additional route metric to 2 when the interface Vlan-interface 1 receives
RIP packets.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] rip metricin 2
View
Interface view
Parameter
value: Additional route metric added when transmitting a packet, ranging from 1 to 16.
By default, the value is 1.
Description
Using rip metricout command, you can configure the additional route metric to the
route when an interface transmits RIP packets. Using undo rip metricout command,
you can restore the default value of this additional route metric.
For the related commands, see rip metricin.
Example
# Set the additional route metric to 2 when the interface Vlan-interface 1 transmits RIP
packets.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] rip metricout 2
View
Interface view
Parameter
none
Description
Using rip output command, you can allow an interface to transmit RIP packets to the
external. Using undo rip output command, you can disable an interface to transmit
RIP packets to the external.
By default, all interfaces except loopback interfaces are enabled to transmit RIP
packets to the external.
This command is used in cooperation with the other 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.
For the related commands, see rip input, rip work .
Example
# Disable the interface Vlan-interface 1 to transmit RIP packets.
[Quidway] interface Vlan-interface 1
View
Interface view
Parameter
none
Description
Using rip split-horizon command, you can configure an interface to use split horizon
when transmitting RIP packets. Using undo rip split-horizon command, you can
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 reducing route loop. Only in some special cases,
split horizon should be disabled to ensure the correct execution of protocols.
Example
# Specify the interface Vlan-interface 1 not to use split horizon when processing RIP
packets.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] undo rip split-horizon
View
Interface view
Parameter
1: Interface version is RIP-1.
Description
Using rip version command, you can configure the version of RIP packets on an
interface. Using undo rip version command, you can restore the default value of 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 only receives and
transmits RIP-2 broadcast packets, receives RIP-1 packets and RIP-2 multicast
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 packets.
Example
# Configure the interface Vlan-interface 1 as RIP-2 broadcast mode.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] rip version 2 broadcast
View
Interface view
Parameter
None
Description
Using rip work command, you can enable the running of RIP on an interface. Using
undo rip work command, you can disable the running of RIP on an interface.
By default, RIP is run on an interface.
This command is used in cooperation with rip input, rip output and network
commands. Refer to the usage guideline of the related commands.
For the related commands, see network, rip input, rip output.
Example
# Disable the interface Vlan-interface 1 to run the RIP.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] undo rip work
2.1.22 summary
Syntax
summary
undo summary
View
RIP view
Parameter
None
Description
Using summary command, you can configure to activate RIP-2 automatic route
summarization. Using undo summary command, you can disable RIP-2 automatic
route summarization.
By default, RIP-2 route summarization is used.
Route aggregation can be performed to reduce the routing traffic on the network as well
as to reduce the size of the routing table. RIP-1 does not support subnet mask.
Forwarding subnet route may cause ambiguity. Therefore, RIP-1 uses route
summarization all the time. If RIP-2 is used, route summarization function can be
disabled with the undo summary command, when it is necessary to broadcast the
subnet route.
For the related commands, see rip version.
Example
# Set RIP version on the interface Vlan-interface 1 as RIP-2 and disable the route
aggregation.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] rip version 2
[Quidway-Vlan-interface1] quit
Huawei Technologies Proprietary
2-18
[Quidway] rip
[Quidway-rip] undo summary
2.1.23 timers
Syntax
timers { update update-timer-length | timeout timeout-timer-length } *
undo timers { update | timeout } *
View
RIP view
Parameter
update-timer-length: Value of the Period update timer, ranging from 1 to 3600 seconds.
By default, it is 30 seconds.
timeout-timer-length: Value of the Timeout timer, ranging from 1 to 3600 seconds. By
default, it is 180 seconds.
Description
Using the timers command, you can modify the values of the three RIP timers: Period
Update, Timeout, and Garbage-collection. Using the undo timers command, you can
restore the default settings.
By default, the values of Period Update, Timeout, and Garbage-collection timers are 30
seconds, 180 seconds, and 120 seconds respectively.
Generally, it is regarded that the value of Garbage-collection timer is fixed to 4 times of
that
of
Period
Update
timer.
Adjusting
Period
Update
timer
will
affect
Garbage-collection timer.
The modification of RIP timers is validated immediately.
For related commands, see display rip.
Example
# Set the values of Period Update timer and Timeout timer of RIP to 10 seconds and 30
seconds respectively.
[Quidway] rip
[Quidway-rip] timers update 10 timeout 30
2.1.24 traffic-share-across-interface
Syntax
traffic-share-across-interface
Huawei Technologies Proprietary
2-19
undo traffic-share-across-interface
View
RIP view
Parameter
None
Description
Use the traffic-share-across-interface command to enable RIP to distribute traffic
equally among interfaces by employing equivalent routes.
Use the undo traffic-share-across-interface command to disable traffic sharing
among interfaces.
By default, traffic sharing across RIP interfaces is disabled.
Example
# Enable RIP traffic sharing across interfaces.
[Quidway-rip] traffic-share-across-interface
Note:
When an Ethernet switch runs a routing protocol, it can perform the router functions.
Router that is referred to in the following and its icon represent a generalized router or
an Ethernet switch running routing protocols. To improve readability, this will not be
described in the other parts of the manual.
View
OSPF Area view
Parameter
ip-address: Network segment address.
mask: Network mask.
advertise : Advertise only the summarized route.
not-advertise : Do not advertise routes matching the specified IP address and mask.
Description
Using abr-summary command, you can configure the route aggregation on the area
border router. Using undo abr-summary command, you can disable the function of
route aggregation on the area border router.
By default, the area border router doesnt aggregate routes.
This command is applicable only to the area border router (ABR) and is used for the
route aggregation in an area. The ABR only transmits an aggregated route to other
areas. Route aggregation refers to that the routing information is processed in the ABR
and for each network segment configured with route aggregation, there is only one
route transmitted to other areas.
Huawei Technologies Proprietary
3-1
Example
# Aggregate the two network segments, 66.48.10.0 and 66.48.120.0, in OSPF area 1
into one summary route 66.48.0.0 and transmit it to other areas.
[Quidway-ospf-1] area 1
[Quidway-ospf-1-area-0.0.0.1] network 66.48.10.0 0.0.0.255
[Quidway-ospf-1-area-0.0.0.1] network 66.48.120.0 0.0.0.255
[Quidway-ospf-1-area-0.0.0.1] abr-summary 66.48.0.0 255.255.0.0
3.1.2 area
Syntax
area area-id
undo area area-id
View
OSPF view
Parameter
area-id: ID of the OSPF area, which can be a decimal integer or in IP address format.
Description
Using area command, you can enter OSPF Area view. Using undo area command,
you can cancel the designated area.
Example
# Enter OSPF Area 0 view.
[Quidway-ospf-1] area 0
[Quidway-ospf-1-area-0.0.0.0]
3.1.3 asbr-summary
Syntax
asbr-summary ip-address mask [ not-advertise | tag value ]
undo asbr-summary ip-address mask
View
OSPF view
Parameter
ip-address: Matched IP address.
Huawei Technologies Proprietary
3-2
Description
Using asbr-summary command, you can configure summarization of imported routes
by OSPF. Using undo asbr-summary command, you can cancel the summarization.
By default, summarization of imported routes is disabled.
After the summarization of imported routes is configured, if the local router is an
autonomous system border router (ASBR), this command summarizes the imported
Type-5 LSAs in the summary address range. When NSSA is configured, this command
will also summarize the imported Type-7 LSAs in the summary address range.
If the local router acts as both an ABR and a router in the NSSA, this command
summarizes Type-5 LSAs transformed from Type-7 LSAs. If the router is not the router
in the NSSA, the summarization is disabled.
For the related commands, see display ospf asbr-summary.
Example
# Set summarization of Quidway imported routes.
[Quidway-ospf-1] asbr-summary 10.2.0.0 255.255.0.0 not-advertise
3.1.4 authentication-mode
Syntax
authentication-mode { simple | md5 }
undo authentication-mode
View
OSPF Area view
Parameter
simple: Use simple text authentication mode.
md5: Use MD5 cipher text authentication mode.
Description
Using authentication-mode command, you can configure one area of OSPF to
support the authentication attribute. Using undo authentication-mode command, you
can cancel the authentication attribute of this area.
Example
# Specify the OSPF area 0 to support MD5 cipher text authentication:
[Quidway-ospf-1] area 0
[Quidway-ospf-1-area-0.0.0.0] authentication-mode md5
View
User view
Parameter
interface type num: Type and number of the interface.
process-id: OSPF process ID. If no process ID is specified, all the process debugging is
enabled or disabled.
event: Enables OSPF event information debugging.
packet: Enables OSPF packet information debugging. There are five sorts of packets
in OSPF as follows:
ack: LSAck packet.
dd: Database Description packet.
hello: Hello message.
request: Link State Request packet.
update: Link State Update packet.
Lsa-generate: Enables OSPF LSA packet information debugging.
Huawei Technologies Proprietary
3-4
spf: Enables the debugging of the calculation of the OSPF shortest-path tree.
te: Enables the debugging of OSPF TE.
Description
Use the debugging ospf command to enable OSPF debugging.
Use the undo debugging ospf command to disable the function.
If no process ID is specified in the debugging command, the command is valid to all
the processes. And it keeps the state during the router running period no matter OSPF
process exits or not. If there is a specified process ID in the debugging command, only
the specified process is debugged.
Related command: display debugging ospf.
Example
# Enable the information debugging of OSPF packets.
<Quidway> debugging ospf packet
View
OSPF view
Parameter
value: Default routing cost of external route imported by OSPF, ranging from 0 to
16777214. By default, its value is 1.
Description
Using default cost command, you can configure the default cost for OSPF to import
external routes. Using undo default cost command, you can restore the default value
of the default routing cost configured for OSPF to import external routes.
Since OSPF can import external routing information, whose routing cost can influence
routing selection and calculation, and propagate it to the entire autonomous system, 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-ospf-1] default cost 10
View
OSPF view
Parameter
seconds: Default interval for redistributing external routes. Its unit is second and the
value ranges from 1 to 2147483647. By default, the interval for OSPF to import external
routes is 1 second.
Description
Using default interval command, you can configure the default interval for OSPF to
import external routes. Using undo default interval command, you can restore the
default value of the default interval of redistributing external routes.
Because OSPF can import the external routing information and broadcast it to the
entire autonomous system, and importing routes too often will greatly affect the
performances of the device, 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-ospf-1] default interval 10
View
OSPF view
Parameter
routes: Default value to the imported external routes in a unit time, ranging from 200 to
2147483647. By default, the value is 1000.
Description
Using default limit command, you can configure the default value of maximum number
of imported routes. Using undo default limit command, you can restore the default
value.
OSPF can import external routing information and advertise them to the whole AS.
Importing too much external routes once will greatly affect the performances of the
device.
For the related commands, see default interval.
Example
# Specify the default value of OSPF imported external routes as 200.
[Quidway-ospf-1] default limit 200
View
OSPF view
Parameter
tag: Default tag, ranging from 0 to 4294967295 with the default value 1.
Description
Using default tag command, you can configure the default tag of OSPF when it
redistributes an external route. Using undo default tag command, you can restore the
default tag of OSPF when it redistributes the external route.
When OSPF imports a route found by other routing protocols 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.
For the related commands, see default type.
Example
# Set the default tag of OSPF imported external route of the autonomous system as 10.
[Quidway-ospf-1] default tag 10
View
OSPF view
Parameter
type 1: External routes of type 1.
type 2: External routes of type 2.
Description
Using default type command, you can configure the default type when OSPF
redistributes external routes. Using undo default type command, you can restore the
default type when OSPF redistributes external routes.
By default, the external routes of type 2 are imported.
OSPF specifies the two types of external routing information. The command described
in this section can be used to specify the default type when external routes are
imported.
For the related commands, see default tag.
Example
# Specify the default type as type 1 when OSPF imports an external route.
[Quidway-ospf-1] default type 1
3.1.11 default-cost
Syntax
default-cost value
undo default-cost
View
OSPF Area view
Parameter
value: Specify the cost value of the default route transmitted by OSPF to the STUB or
NSSA area, ranging from 0 to 16777214. The default value is 1.
Description
Using default-cost command, you can configure the cost of the default route
transmitted by OSPF to the STUB or NSSA area. Using undo default-cost command,
you can restore the cost of the default route transmitted by OSPF to the STUB or NSSA
area to the default value.
For the related commands, see stub, nssa.
Example
# Set the area 1 as the STUB area and the cost of the default route transmitted to this
STUB area to 60.
[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.12 default-route-advertise
Syntax
default-route-advertise [ always | cost value | type type-value | route-policy
route-policy-name ]*
undo default-route-advertise [ always | cost | type | route-policy ]*
View
OSPF view
Parameter
always: The parameter will generate an ase lsa which describes the default route and
advertise it if the local router is not configured with the default route. If this parameter is
not set, the local router cannot import the ase lsa, which generates the default route
only when it is configured with the default route.
cost value: the cost value of this ase lsa. The value ranges from 0 to 16777214. If the
parameter is not configured, the default value is 1.
type value: cost type of this ase lsa. It ranges from 1 to 2. If the parameter is not
configured, the default value is 2.
route-policy route-policy-name: if the default route match the route-policy specified by
route-policy-name, route-policy will affect the value in ase lsa. The length of
route-policy-name parameter ranges from 1 to 16 character string.
Description
Using default-route-advertise command, you can import default route to OSPF route
area. Using undo default-route-advertise command, you can cancel the import of
default route.
By default, OSPF does not import default route.
The import-route command cannot import the default route. To import the default route
to the route area, this command must be used. When local router is not configured with
default route, the keyword always should be used by ase lsa to generate default route.
For the related commands, see import-route.
Example
# If local route has no default route, the ase lsa of default route will be generated,
otherwise it wont be generated.
[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
View
Any view
Description
Using the display debugging ospf command, you can view the debugging states of
global OSPF and all processes.
For related commands, see debugging ospf.
Example
# Display the debugging states of global OSPF and all processes.
<Quidway> display debugging ospf
OSPF global debugging state:
OSPF SPF debugging is on
OSPF LSA debugging is on
OSPF process 100 debugging state:
OSPF SPF debugging is on
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
Description
Using display ospf abr-asbr command, you can view the information about the ABR
and ASBR of OSPF.
Example
# Display the information of the OSPF area border routers and autonomous system
border routers.
<Quidway> display ospf abr-asbr
OSPF Process 1 with Router ID 10.110.98.138
Routing Table to ABR and ASBR
I = Intra i = Inter A = ASBR B = ABR S = SumASBR
Destination
Area
Cost
Nexthop
Interface
IA 2.2.2.2
0.0.0.0
10
10.153.17.89
Vlan-interface1
Table 3-1 Description of information generated by the command display ospf abr-asbr
Field
Description
Destination
Area
Cost
Nexthop
Interface
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
ip-address: Matched IP address in dotted decimal format.
mask: IP address mask in dotted decimal format.
Description
Using display ospf asbr-summary command, you can view the summary information
of OSPF imported route.
If the parameters are not set, the summary information of all OSPF imported routes will
be displayed.
For the related commands, see asbr-summary .
Example
# Display the summary information of all OSPF imported routes.
<Quidway> display ospf asbr-summary
OSPF Process 1 with Router ID 1.1.1.1
Summary Addresses
Total summary address count:
Summary Address
net
: 168.10.0.0
mask
: 255.254.0.0
tag
: 1
status
: Advertise
Summary Address
net
: 1.1.0.0
mask
: 255.255.0.0
tag
: 100
status
: DoNotAdvertise
Description
net
mask
Mask
tag
Tag
Status information, including two values:
status
DoNotAdvertise
Advertise
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
Description
Using display ospf brief command, you can view the main summary of OSPF.
Example
# Display the OSPF summary.
<Quidway> display ospf brief
OSPF Process 1 with Router ID 10.110.95.189
OSPF Protocol Information
RouterID: 10.110.95.189
spf-schedule-interval: 5
Routing preference: Inter/Intra: 10 External: 150
Default ASE parameters: Metric: 1 Tag: 0.0.0.1 Type: 2
SPF computation count: 16
Area Count: 1
Area 0.0.0.0:
Authtype: none
Flags: <>
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 of information generated by the command display ospf brief
Field
Description
RouterID
Border Router
spf-schedule-interval
Authtype
Routing preference
Default
parameters
SPF
count
ASE
computation
Area Count
SPF scheduled
Interface
Cost
Cost of routes
State
State information
Type
Priority
Priority
Designated Router
Backup
Router
Designated
Field
Description
OSPF timers, defining as follows:
Timers
Transmit Delay
Hello
Dead
Poll
Interval of poll
Retransmit
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
Description
Using display ospf cumulative command, you can view the OSPF cumulative
information.
Example
# Display the OSPF cumulative information.
<Quidway> display ospf cumulative
OSPF Process 1 with Router ID 1.1.1.1
Cumulations
IO Statistics
Type
Input
Output
Hello
225
437
DB Description
78
86
Link-State Req
18
18
Link-State Update
48
53
Link-State Ack
25
21
FCAF
SumNet: 40
SumASB: 2
LSAs Received: 33
Area 0.0.0.0:
Neighbors: 1
Spf: 54
Interfaces: 1
Checksum Sum F020
Interfaces: 1
rtr: 1 net: 0
sumasb: 1
sumnet: 1
Routing Table:
Intra Area: 2
Inter Area: 0
ASE: 1
IO Statistics
Description
Type
Input
Output
ASE
checksum sum
received
LSAs
Router
SumNet
SumASB
Area
Routing Table
Neighbors
Interfaces
Spf
Intra Area
Inter Area
ASE
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
Description
Using display ospf error command, you can view the OSPF error information.
Example
# Display the OSPF error information.
<Quidway> display ospf error
OSPF Process 1 with Router ID 1.1.1.1
OSPF packet error statistics:
0: IP: received my own packet
Table 3-5 Description of information generated by the command display ospf error
Field
Description
Interval of
mismatched
Database
description
(DD)
asynchronous neighbor state
Link state
duplication
Link
state
dead
neighbor
acknowledgment
request
(LS
packet
packet:
packet:
REQ)
is
ack
packet:
Field
Description
asynchronous neighbor state
packet:
newer
LSA
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
interface-type interface-number: Specify an interface.
Description
Using display ospf interface command, you can view the OSPF interface information.
Example
# Display the OSPF interface information of Vlan-interface1.
<Quidway> display ospf interface vlan-interface 1
OSPF Process 1 with Router ID 1.1.1.1
Interfaces
Interface: 10.110.10.2 (Vlan-interface1)
Priority: 1
Designated Router: 10.110.10.1
Backup Designated Router: 10.110.10.2
Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1
Table 3-6 Description of information generated by the command display ospf interface
Field
Description
Cost
State
Type
Priority
Designated Router
Timers
Transmit Delay
Hello
Dead
Poll
Interval of poll
Retransmit
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
area-id: ID of the OSPF area, which can be a decimal integer or in IP address format.
brief: View brief database information.
asbr: View the database information of summary-Asbr-LSA.
ase: View the database information of AS-external-LSA.
Huawei Technologies Proprietary
3-20
Description
Using display ospf lsdb command, you can view the database information about
OSPF connecting state.
Example
# Display the database information about OSPF connecting state.
<Quidway> display ospf lsdb
OSPF Process 1 with Router ID 1.1.1.1
Link State Database
Area: 0.0.0.0
Type LinkState ID
AdvRouter
Age Len
Sequence
Metric Where
Rtr
2.2.2.2
2.2.2.2
465 36
8000000c
SpfTree
Rtr
1.1.1.1
1.1.1.1
449 36
80000004
SpfTree
Net
10.153.17.89
2.2.2.2
465 32
80000004
SpfTree
1.1.1.1
355 28
80000003
10 Inter List
SNet 10.153.18.0
Area: 0.0.0.1
Type LinkState ID
AdvRouter
Age Len
Sequence
Rtr
1.1.1.1
1.1.1.1
449 36
80000004
SpfTree
Rtr
3.3.3.3
3.3.3.3
429 36
8000000a
Clist
Net
10.153.18.89
3.3.3.3
429 32
80000003
SpfTree
SNet 10.153.17.0
1.1.1.1
355 28
80000003
10
Inter List
ASB
1.1.1.1
355 28
80000003
10
SumAsb List
2.2.2.2
Metric Where
AS External Database:
Type LinkState ID
AdvRouter
Age Len
ASE
10.153.18.0
1.1.1.1
1006 36
ASE
10.153.16.0
2.2.2.2
798 36
ASE
10.153.17.0
2.2.2.2
623 36
ASE
10.153.17.0
1.1.1.1
1188 36
Sequence
80000002
Metric Where
1
Ase List
80000002
Uninitialized
80000003
Uninitialized
Ase List
80000002
Table 3-7 Description of information generated by the command display ospf lsdb
Field
Type
Description
Type of the LSA
Field
Description
LinkStateID
AdvRouter
Age
Len
Sequence
Metric
Where
2.2.0.0
349
len: 36
seq#:
chksum:
80000001
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 of information generated by the command display ospf lsdb ase
Field
Description
type
ls id
adv rtr
ls age
len
seq#
chksum
Options
Net mask
Network mask
Huawei Technologies Proprietary
3-22
Field
Description
E type
Forwarding Address
Forwarding address
Tag
Tag
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
Description
Using display ospf nexthop command, you can view the information about the
next-hop
Example
# Display the OSPF next-hop information.
<Quidway> display ospf nexthop
OSPF Process 1 with Router ID 2.2.2.2
Next hops:
Address
Type
Refcount
Intf Addr
Intf Name
--------------------------------------------------------------------202.38.160.1
Direct
202.38.160.1
Vlan-interface2
202.38.160.2
Neighbor 1
202.38.160.1
Vlan-interface2
Table 3-9 Description of information generated by the command display ospf nexthop
Field
Description
Address
Type
Refcount
Field
Description
Intf Addr
Intf Name
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
Description
Using display ospf peer command, you can view the information about OSPF peer.
Using display ospf peer brief command, you can view the brief information of every
peer in OSPF, mainly the peer number at all states in every area.
Example
# View the information of OSPF peer.
<Quidway> display ospf peer
OSPF Process 1 with Router ID 1.1.1.1
Neighbors
Area 0.0.0.0 interface 10.153.17.88(Vlan-interface1)'s neighbor(s)
RouterID: 2.2.2.2
State: Full
Address: 10.153.17.89
Mode: Nbr is Master
DR: 10.153.17.89
Priority: 1
BDR: 10.153.17.88
Table 3-10 Description of information generated by the command display ospf peer
Field
Description
RouterID
Address
State
Field
Description
Mode
Priority
DR
BDR
0.0.0.0
0.0.0.1
Total
Table 3-11 Description of information generated by the command display ospf peer
brief
Field
Description
Area ID
Area ID
Down
Attempt
Init
2-Way
ExStart
Field
Description
Exchange
Loading
Full
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
Description
Using display ospf request-queue command, you can view the information about the
OSPF request-queue.
Example
# Display the information of OSPF request-queue.
<Quidway> display ospf request-queue
The Router's Neighbors is
RouterID:
1.1.1.1
Interface: 1.1.1.3
LSID:1.1.1.3
Address: 1.1.1.1
Area: 0.0.0.0
AdvRouter:1.1.1.3
Sequence:80000017
Age:35
Description
RouterID
Address
through
which
neighbor
routers
Field
Description
Interface
Area
LSID:1.1.1.
3
AdvRouter
Sequence
Age
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
Description
Using display ospf retrans-queue command, you can view the information about the
OSPF retransmission queue.
Example
# Display the information of OSPF retransmission queue.
<Quidway> display ospf retrans-queue
OSPF Process 200 with Router ID 103.160.1.1
Retransmit List
Area: 0.0.0.1
Retrans list:
Type: ASE
LSID:129.11.77.0
Type: ASE
LSID:129.11.108.0
AdvRouter:103.160.1.1
AdvRouter:103.160.1.1
Description
RouterID
Address
Interface
Area
Type
LSID
AdvRouter
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
Description
Using display ospf routing command, you can view the information about OSPF
routing table.
Example
# View the routing information related to OSPF.
<Quidway> display ospf routing
OSPF Process 1 with Router ID 1.1.1.1
Routing Tables
Routing for Network
Destination
10.110.0.0/16
1 Net
10.110.10.1
10.10.0.0/16
1 Stub 10.10.0.1
Total Nets: 2
AdvRouter
Area
1.1.1.1
3.3.3.3
Inter Area: 0
ASE: 0
NSSA: 0
Table 3-14 Description of information generated by the command display ospf routing
Field
Description
Destination
Cost
Cost of route
Type
Type of route
NextHop
AdvRouter
Area
Area ID
Intra Area
Inter Area
ASE
NSSA
View
Any view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. The command is applied to
all current OSPF processes if you do not specify a process ID.
Description
Using display ospf vlink command, you can view the information about OSPF virtual
links.
Example
# View OSPF virtual links information.
<Quidway> display ospf vlink
OSPF Process 1 with Router ID 1.1.1.1
Virtual Links
Virtual-link Neighbor-id
Cost: 0 State: Full
Table 3-15 Description of information generated by the command display ospf vlink
Field
Description
Virtual-link
Neighbor-id
State
State
Interface
Cost
Type
Transit Area
Timers
Transmit Delay
Hello
Dead
Poll
Interval of poll
Retransmit
View
OSPF view
Parameter
acl-number: Access control list number.
ip-prefix-name: Name of the address prefix list. The length of ip-prefix-name ranges
from 1 to 19 character string.
routing-protocol: Protocol advertising the routing information, including direct, isis,
bgp, rip and static at present.
Description
Using filter-policy export command, you can configure the ASBR router to filter the
external routes imported to the OSPF. This command only takes effect on ASBR
routers.
Using undo filter-policy export command, you can cancel the filtering rules that have
been set.
By default, OSPF does not receive the routes distributed by other routing protocol.
Note:
z
The filter-policy export command only takes effect to the routes imported by the
import-route command. If you configure the switch with only the filter-policy
export command, but without configuring the import-route command to import
other external routes (including OSPF routes of different process), then the
filter-policy export command does not take effect.
If the filter-policy export command does not specify to filter which type of routes, it
takes effect for all the routes imported by the import-route.
Example
# Configure ospf to only import the routes by acl 2000.
[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
View
OSPF view
Parameter
acl-number: Access control list number used for filtering the destination addresses of
the routing information, ranging 2000 to 3999.
ip-prefix-name: Name of address prefix list used for filtering the destination addresses
of the routing information. The length of ip-prefix-name ranges from 1 to 19 character
string.
gateway ip-prefix-name: Name of address prefix list used for filtering the addresses of
the neighboring routers advertising the routing information. The length of
ip-prefix-name ranges from 1 to 19 character string.
Description
Using filter-policy import command, you can configure the OSPF rules of filtering the
routing information received. Using undo filter-policy import command, you can
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. Then, the filter-policy command can be used to set the
filtering conditions for the routing information to be received. Only the routing
information passing the filtration can be received.
Example
# Filter the received routing information according to the rule defined by the access
control list 2000.
[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.29 import-route
Syntax
import-route protocol [ cost value | type value | tag value | route-policy
route-policy-name ]*
undo import-route protocol
View
OSPF view
Parameter
protocol: Specify the source routing protocol that can be imported. At present, it
includes direct, rip, static, ospf, ospf-ase and ospf-nssa.
cost value: Specify the cost of imported route.
type value: Specify the cost type of imported external routes. The value ranges from 1
to 2. The default value is 2.
tag value: Specify the value of tag for imported external routes.
route-policy route-policy-name: Configure only to import the routes matching the
specified Route-policy. The length of route-policy-name parameter ranges from 1 to 16
character string.
Description
Using import-route command, you can import the information of another routing
protocol. Using undo import-route command, you can cancel the imported external
routing information.
By default, the routing information of other protocols is not imported.
Note:
You are recommended to configure the route type, cost and tag together in one
command; otherwise, the new configuration overwrites the old one.
Example
# Specify an imported RIP route as the route of type 2, with the route tag as 33 and the
route cost as 50.
[Quidway-ospf-1] import-route rip type 2 tag 33 cost 50
3.1.30 network
Syntax
network ip-address ip-mask
undo network ip-address ip-mask
View
OSPF Area view
Parameter
ip-address: Address of the network segment where the interface locates.
Huawei Technologies Proprietary
3-33
ip-mask: IP address wildcard shielded text (similar to the complement of the IP address
mask).
Description
Using network command, you can configure the interface running OSPF protocol to
which the interface belongs. Using undo network command, you can cancel the
interface running OSPF.
By default, the interface does not belong to any area.
With the two parameters, ip-address and ip-mask, one or more interfaces can be
configured as an area. To run the OSPF protocol on one 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 protocol.
For the related commands, see ospf.
Example
# Specify the interfaces whose master IP addresses are in the segment range of
10.110.36.0 to run the OSPF protocol and specify the number of the OSPF area (where
these interfaces are located) as 6.
[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.31 nssa
Syntax
nssa [ default-route-advertise ] [ no-import-route ] [ no-summary ]
undo nssa
View
OSPF Area view
Parameter
default-route-advertise: Import default route to NSSA area.
no-import-route: Configure not to import route to NSSA area.
no-summary: ABR is disabled to transmit summary_net LSAs to the NSSA area.
Description
Using nssa command, you can configure the type of an OSPF area as NSSA area.
Using undo nssa command, you can cancel the function.
By default, NSSA area is not configured.
Huawei Technologies Proprietary
3-34
For all the routers connected to the NSSA area, the command nssa must be used to
configure the area as the NSSA attribute.
The default-route-advertise parameter is used to generate default type-7 LSA. No
matter whether there is route 0.0.0.0 in routing table on ABR, type-7 LSA default route
will be generated always. Only when there is route 0.0.0.0 in routing table on ASBR, will
type-7 LSA default route be generated.
On ASBR, the no-import-route parameter enables the external route imported by
OSPF through import-route command not to be advertised to NSSA area.
Example
# Configure area 1 as NSSA area.
[Quidway-ospf-1] area 1
[Quidway-ospf-1-area-0.0.0.1] network 36.0.0.0 0.255.255.255
[Quidway-ospf-1-area-0.0.0.1] nssa
3.1.32 ospf
Syntax
ospf [ process-id [ router-id router-id ] ]
undo ospf [ process-id ]
View
System view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535. By default, the process ID is
1. process-id is locally significant.
router-id: Router ID that is a 32-bit unsigned integer.
Description
Using ospf command, you can enable the OSPF protocol. Using undo ospf command,
you can disable the OSPF protocol.
After starting OSPF protocol, the user can make the corresponding configuration under
the OSPF protocol view.
By default, the system does not run the OSPF protocol.
For the related commands, see network.
Example
# Enable the running of the OSPF protocol.
View
Interface view
Parameter
simple password: Character string not exceeding 8 characters using plain text
authentication.
key-id: ID of the authentication key in MD5 authentication mode in the range from 1 to
255.
key: MD5 authentication key. If it is input in a plain text form, MD5 key is a character
string not exceeding 16 characters. And it will be displayed in a cipher text form in a
length of 24 characters when display current-configuration command is executed.
Inputting the MD5 key in a cipher text form with 24 characters is also supported.
Description
Using ospf authentication-mode command, you can configure the authentication
mode and key between adjacent routers. Using undo ospf authentication-mode
command, you can cancel the authentication key that has been set.
By default, the interface does not authenticate the OSPF packets.
The passwords for authentication keys of the routers on the same network segment
must be identical. In addition, using authentication-mode command, you can set the
authentication type of the area so as to validate the configuration.
For the related commands, see authentication-mode.
Example
# Set the area 1 where the network segment 131.119.0.0 of Interface Vlan-interface 1 is
located to support MD5 cipher text authentication. The authentication key identifier is
set to 15 and the authentication key is Huawei.
[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-interface1] ospf authentication-mode md5 15 Huawei
View
Interface view
Parameter
value: Cost for running OSPF protocol, ranging from 1 to 65535.
Description
Using ospf cost command, you can configure different message sending costs so as
to send messages from different interfaces. Using undo ospf cost command, you can
restore the default costs.
For S6500 series switches, the default cost for running OSPF protocol of on the VLAN
interface is 10.
Example
# Specify the cost spent when an interface runs OSPF as 33.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] ospf cost 33
View
Interface view
Parameter
value: Interface priority for electing the "designated router", ranging from 0 to 255. The
default value is 1.
Description
Using ospf dr-priority command, you can configure the priority for electing the
"designated router" on an interface. Using undo ospf dr-priority command, you can
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 considered first
when the vote collision occurs.
Example
# Set the priority of the interface Vlan-interface 1 to 8, when electing the DR.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] ospf dr-priority 8
View
System view
Parameter
process-id: Process ID of OSPF, ranging from 1 to 65535.
Description
Using the ospf mib-binding command, you can bind the MIB operation to the specified
OSPF process. Using the undo ospf mib-binding command, you can restore the
default settings.
When OSPF protocol enables the first process, it always binds MIB operation to this
process. You can use this command to bind MIB operation to another OSPF process.
Execute the undo ospf mib-binding command if you want to cancel the setting. OSPF
will automatically re-bind MIB operation to the first process that it enables.
Example
# Bind MIB operation to OSPF process 100.
[Quidway] ospf mib-binding 100
# Bind MIB operation to OSPF process 200.
[Quidway] ospf mib-binding 200
# Cancel the binding of MIB operation.
[Quidway] undo ospf mib-binding
View
Interface view
Parameter
None.
Description
Using ospf mtu-enable command, you can enable the interface to write MTU value
when sending DD packets. Using undo ospf mtu-enable command, you can restore
the default settings.
By default, The MTU value is 0 when sending DD packets, i.e. 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. With this command, the specified interface
can be set manually to write the MTU value area in DD packets when sending DD
packets, i.e. the actual MTU value of the interface is written in.
Example
# Set interface Vlan-interface 3 to write MTU value area when sending DD packets.
[Quidway] interface Vlan-interface 3
[Quidway-Vlan-interface3] ospf mtu-enable
View
Interface view
Parameter
broadcast: Change the interface network type to broadcast.
nbma: Change the interface network type to NBMA.
p2mp: Change the interface network type to p2mp.
p2p: Change the interface network type to point-to-point.
Description
Using ospf network-type command, you can configure the network type of OSPF
interface. Using undo ospf network-type command, you can restore the default
network type of the OSPF interface.
OSPF divides networks into four types by link layer protocol:
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.
Point-to-point (p2p): If PPP, LAPB or POS is adopted, OSPF defaults the network
type to p2p.
Example
# Set the interface Vlan-interface 1 to NBMA type.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] ospf network-type nbma
View
Interface view
Parameter
seconds: Dead interval of the OSPF neighbor. It is in second and ranges from 1 to
65535.
Description
Using ospf timer dead command, you can configure the dead interval of the OSPF
peer. Using undo ospf timer dead command, you can restore the default value of the
dead interval of the peer.
By default, the dead interval for the OSPF peers of p2p and broadcast interfaces are
40 seconds, and for those of p2mp and nbma interfaces is 120 seconds.
The dead 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 4 times of that of the Hello seconds. The dead seconds for
the routers on the same network segment must be identical.
For the related commands, see ospf timer hello.
Example
# Set the peer dead on the interface Vlan-interface 1 to 80 seconds.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] ospf timer dead 80
View
Interface view
Parameter
seconds: Interval in seconds for an interface to transmit hello packet. It ranges from 1 to
255.
Description
Using ospf timer hello command, you can configure the interval for transmitting Hello
messages on an interface. Using undo ospf timer hello command, you can 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 nbma or p2mp type.
For the related commands, see ospf timer dead.
Example
# Configure the interval of transmitting Hello messages on the interface Vlan-interface
1 to 20 seconds.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] ospf timer hello 20
View
Interface view
Parameter
seconds: Specifies the poll Hello interval, ranging from 1 to 65535 and measured in
seconds. The default value is 40 seconds.
Description
Using ospf timer poll command, you can configure the poll Hello packet interval on
NBMA and p2mp network. Using undo ospf timer poll command, you can restore the
default poll interval.
On the NBMA and p2mp network, if a neighbor is invalid, the Hello packet will be
transmitted regularly according to the 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 from interface Vlan-interface 2 every 120
seconds.
[Quidway-Vlan-interface2] ospf timer poll 120
View
Interface view
Parameter
interval: Interval in second for re-transmitting LSA on an interface. It ranges from 1 to
3600. The default value is 5 seconds.
Description
Using ospf timer retransmit command, you can configure the interval for LSA
re-transmitting on an interface. Using undo ospf timer retransmit command, you can
restore the default interval value for LSA re-transmitting 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 retransmit, this LSA will be re-transmitted. This
command can change the interval of re-transmitting LSA. However, according to
RFC2328, the LSA retransmit between adjacent routers should not be set too short.
Otherwise, unexpected re-transmission will be caused.
Example
# Specify the retransmit for LSA transmitting between the interface Vlan-interface 1 and
the adjacent routers to 12 seconds.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] ospf timer retransmit 12
View
Interface view
Parameter
value: Transmitting delay of LSA on an interface. It ranges from 1 to 3600. By default,
the value is 1 second.
Description
Using ospf trans-delay command, you can configure the LSA transmitting delay on an
interface. Using undo ospf trans-delay command, you can restore the default value of
the LSA transmitting delay on an interface.
LSA will age in the "link state database" (LSDB) of the router as time goes by (add 1 for
every second), but it will 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.
Example
# Specify the trans-delay of transmitting LSA on the interface Vlan-interface 1 as 3
seconds.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] ospf trans-delay 3
3.1.44 peer
Syntax
peer ip-address [ dr-priority dr-priority-number ]
undo peer ip-address
View
OSPF view
Parameter
ip-address : IP address of the neighboring point.
dr-priority-number: Priority value represents the corresponding priority value of the
network neighbor. The range is from 0 to 255. The default value is 1.
Description
Using peer command, you can configure the neighboring point if a router is connected
to a network of NBMA type. Using undo peer command, you can cancel the configured
neighboring point.
Example
# Configure the IP address of neighboring router as 10.1.1.1.
[Quidway-ospf-1] peer 10.1.1.1
3.1.45 preference
Syntax
preference [ ase ] value
undo preference [ ase ]
View
OSPF view
Parameter
value: OSPF protocol route preference, ranging from 1 to 255.
ase: Indicate the preference of an imported external route of the AS.
Description
Using preference command, you can configure the preference of an OSPF protocol
route. Using undo preference command, you can 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 a high preference will play a decisive
role.
Example
# Specify the preference of an imported external route of the AS as 160.
[Quidway-ospf-1] preference ase 160
View
User view
Parameter
statistics: Reset OSPF statistics.
all: Reset all OSPF processes.
process-id: Process ID of OSPF, ranging from 1 to 65535.
Description
Using reset ospf all command, you can reset all the OSPF process.
Using reset ospf process-id command, you can reset the corresponding OSPF
process
This command can be used to reset the OSPF process and the following results are
expected:
z
If the Router ID changes, a new Router ID will take effect by executing the
command.
The system will require the user to confirm whether to re-enable the OSPF protocol
after execution of the command.
Example
# Reset all the OSPF processes.
<Quidway> reset ospf all
3.1.47 router id
Syntax
router id router-id
undo router id
View
System view
Parameter
router-id: Router ID that is a 32-bit unsigned integer.
Description
Using router id command, you can configure the ID of a router running the OSPF
protocol. Using undo router id command, you can cancel the router ID that has been
set.
By default, if the LoopBack interface address exists, the system chooses the LoopBack
address with the greatest IP address value as the router ID; if no LoopBack interface
configured, then 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. The user can specify the ID for a router. If the user doesnt specify
router ID, the router will automatically select one from configured IP address 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. So, the IP address of certain interface might as well be
selected as the ID of this router.
Note:
The modified router ID will not be valid unless OSPF is re-enabled.
Example
# Set the router ID to 10.1.1.3.
[Quidway] router id 10.1.1.3
3.1.48 silent-interface
Syntax
silent-interface interface-type interface-number
undo silent-interface interface-type interface-number
View
OSPF view
Parameter
interface-type: Specify the interface type
interface-number: Specify the interface number.
Description
Using silent-interface command, you can disable an interface to transmit OSPF
packet. Using undo silent-interface command, you can restore the default setting.
By default, the interface is enabled to transmit OSPF packet.
You can use this command to disable an interface to transmit OSPF packet, so as to
prevent the router on some network from receiving the OSPF routing information. On a
switch, this command can disable/enable the specified VLAN interface to send OSPF
packets
Example
# Disable interface Vlan-interface 2 to transmit OSPF packet.
[Quidway-ospf-1] silent-interface Vlan-interface 2
View
System view
Parameter
process-id: Process ID of OSPF. The command is applied to all current OSPF
processes if you do not specify a process ID.
ifstatechange, virifstatechange, nbrstatechange, virnbrstatechange, ifcfgerror,
virifcfgerror, ifauthfail, virifauthfail, ifrxbadpkt, virifrxbadpkt, txretransmit,
viriftxretransmit, originatelsa, maxagelsa, lsdboverflow, lsdbapproachoverflow:
Types of TRAP packets that the switch produces in case of OSPF anomalies.
Description
Using the snmp-agent trap enable ospf command, you can enable the OSPF TRAP
function. Using the undo snmp-agent trap enable ospf command, you can disable
the OSPF TRAP function.
This command cannot be applied 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.
For detailed configuration of SNMP TRAP, refer to the module System Management"
in this manual.
Example
# Enable the TRAP function for OSPF process 100.
[Quidway] snmp-agent trap enable ospf 100
3.1.50 spf-schedule-interval
Syntax
spf-schedule-interval interval
undo spf-schedule-interval
View
OSPF view
Parameter
interval: SPF calculation interval of OSPF, which is in second in the range of 1 to 10.
The default value is 5 seconds.
Description
Using spf-schedule-interval command, you can configure the route calculation
interval of OSPF. Using undo spf-schedule-interval command, you can restore the
default setting.
According to the Link State Database (LSDB), the router running OSPF can calculate
the shortest path tree taking itself as the root and determine the next hop to the
destination network according to the shortest path tree. By adjusting SPF calculation
interval, network frequently changing can be restrained, which may lead to that too
many bandwidth resources and router resources will be used.
Example
# Set the OSPF route calculation interval of Quidway to 6 seconds.
[Quidway-ospf-1] spf-schedule-interval 6
3.1.51 stub
Syntax
stub [ no-summary ]
undo stub
View
OSPF Area view
Parameter
no-summary: ABR is disabled to transmit Summary LSAs to the STUB area.
Description
Using stub command, you can configure the type of an OSPF area as stub. Using
undo stub command, you can 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 . Using
default-cost command, you can configure the default route cost.
For the related commands, see default-cost.
Example
# Set the type of OSPF area 1 to the STUB area.
[Quidway-ospf-1] area 1
[Quidway-ospf-1-area-0.0.0.1] stub
3.1.52 vlink-peer
Syntax
vlink-peer router-id [ hello seconds | retransmit seconds | trans-delay seconds |
dead seconds | simple password | md5 keyid key ]*
View
OSPF Area view
Parameter
route-id: Router ID of virtual link peer.
hello seconds: Interval that router transmits hello packet. It ranges from 1 to 8192
seconds. This value must equal the hello seconds value of the router virtually linked to
the interface. The default value is 10 seconds,
retransmit seconds: Specify the interval for re-transmitting the LSA packets on an
interface. It ranges from 1 to 3600 seconds. The default value is 5 seconds.
trans-delay seconds: Specify the interval for delaying transmitting LSA packets on an
interface. It ranges from 1 to 3600 seconds. By default, the value is 1 second.
dead seconds: Specify the interval of death timer. It ranges from 1 to 8192 seconds.
This value must equal the dead seconds of the router virtually linked to it and must be
at least 4 times of the hello seconds. The default value is 40 seconds.
simple password: Specify the simple text authentication password, not exceeding 8
characters, of the interface. This value must equal the authentication key of the virtually
linked peer.
keyid: Specify the MD5 authentication key ID. Its value ranges from 1 to 255. It must be
equal to the authentication key ID of the virtually linked peer.
key: Specify the MD5 authentication key. If it is input in a plain text form, the key is a
character string not exceeding 16 characters. And it will be displayed in a cipher text
form in a length of 24 characters when display current-configuration command is
executed. Inputting the MD5 key in a cipher text form with 24 characters is also
supported.
Description
Using vlink-peer command, you can create and configure a virtual link. Using undo
vlink-peer command, you can cancel an existing virtual link.
According to RFC2328, the OSPF area should be connected with the backbone
network. You can use vlink-peer command to keep the connectivity. Virtual link can be
regarded as a common interface that uses OSPF so that you can easily understand
why to configure the parameters such as hello, retransmit, and trans-delay on it.
One thing should be mentioned. When configuring virtual link authentication,
authentication-mode command is used to set the authentication mode as MD5 cipher
text or simple text on the backbone network.
For the related commands, see authentication-mode, display ospf.
Example
# Create a virtual link to 10.110.0.3 and use the MD5 cipher authentication mode.
[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
Note:
When an Ethernet switch runs a routing protocol, it can perform the router functions.
Router that is referred to in the following and its icon represent a generalized router or
an Ethernet switch running routing protocols. To improve readability, this will not be
described in the other parts of the manual.
View
IS-IS view
Parameter
simple: Configure to transmit the password in simple text.
md5: Configure to transmit the password encrypted with MD5 algorithm.
password: If the authentication is in the simple mode, the password must be in plain
text. If the authentication is in the md5 mode, the password can be either in cipher text
or in plain text, and it will be displayed in a cipher text form in a length of 24 characters
when display current-configuration command is executed. A plain text password is a
sequential character string of no more than 16 characters, for example, h3c. The length
of an cipher text must be 24 characters, for example, _(TT8F]Y\5SQ=^Q`MAF4<1!!.
ip: Specify the IP authentication password.
osi: Specify the OSI authentication password.
The configuration of ip or osi authentication password is independent of the real
network environment.
Description
Using area-authentication-mode command, you can configure ISIS to authenticate
the received level-1 routing information packets (LSP, CSNP and PSNP), according to
the pre-defined mode and password. Using undo area-authentication-mode
command, you can configure ISIS not to authenticate the said packets.
In default configuration, the system will not authenticate the received level-1 routing
packets, and there is no password. By using this command, you can clear all the level-1
routing packets, whose area authentication passwords do not consistent with the one
set via this command. At the same time, this command will let ISIS insert the area
authentication password into all the level-1 routing packets sent by this node, in a
certain mode.
For the related commands, see reset isis all, domain-authentication-mode, isis
authentication-mode.
Example
# Set the area authentication password as hello and the authentication type as
simple.
[Quidway] isis
[Quidway-isis] area-authentication-mode simple hello
4.1.2 cost-style
Syntax
cost-style { narrow | wide | wide-compatible | { compatible | narrow-compatible }
[ relax-spf-limit ] }
undo cost-style
View
IS-IS view
Parameter
narrow: Only receive/send packets whose cost type is narrow
wide: Only receive/send packets whose cost type is wide.
compatible: Receive/send packets whose cost type is narrow or wide.
narrow-compatible: Receive packets whose cost type is narrow or wide, but only send
packets whose cost type is narrow
wide-compatible: Receive packets whose cost type is narrow or wide, but only send
packets whose cost type is wide.
relax-spf-metric: Permit to receive routes whose cost value is larger than 1024. If this
item is not set, routes whose metrics value is larger than 1024 will be discarded. This
setting is only valid for compatible, narrow-compatible and wide-compatible.
Description
Using cost-style command, you can set the cost type of an IS-IS packet received/sent
by the router. Using undo cost-style command, you can restore the default settings.
By default, IS-IS only receives/sends packets whose cost type is narrow.
Example
# Set IS-IS to receive packets whose cost type is narrow or wide, but only send packets
whose cost type is narrow.
[Quidway] isis
[Quidway-isis] cost-style narrow-compatible
datalink-sending-packet
memory-allocating
configuration-error
|
general-error
datalink-receiving-packet
|
receiving-packet-content
interface-information
|
self-originate-update
|
|
|
datalink-sending-packet
memory-allocating
configuration-error
|
general-error
receiving-packet-content
datalink-receiving-packet
|
interface-information
|
self-originate-update
|
|
|
View
User view
Parameter
is-adjacency: IS-IS adjacency related packets.
all: All IS-IS related debugging information.
authentication-error: IS-IS authentication errors.
checksum-error: IS-IS checksum errors.
circuit-information: Information about IS-IS enabled interface.
Description
Using the debugging isis command, you can enable IS-IS debugging. Using the undo
debugging isis command, you can disable the function.
Example
# Enable all the information debugging of IS-IS.
<Quidway> debugging isis all
4.1.4 default-route-advertise
Syntax
default-route-advertise [ route-policy route-policy-name ]
undo default-route-advertise [ route-policy route-policy-name ]
View
IS-IS view
Parameter
route-policy route-policy-name: Only the route that satisfies the matching requirement
of specified Route-policy can generate default route. The length of route-policy-name
parameter ranges from 1 to 16 character string.
Huawei Technologies Proprietary
4-4
Description
Using default-route-advertise command, you can create the default route of L1, L2
router. Using undo default-route-advertise command, you can cancel this
configuration.
By default, L2 router creates the default route.
This command can be set on L1 router or L2 router. By default, the route is generated
on L2 TCP. If level level-1 is set in Route-policy view, the default route will be generated
on L1 LSP. If level level-2 is set in Route-policy view, the default route will be generated
on L2 LSP. If level level-1-2 is set in Route-policy view, the default route will be
generated on both L1 LSP and L2 LSP.
Example
# Set the router to create the default route in the LSP of correspond level.
[Quidway-isis] default-route-advertise
View
Any view
Parameter
None
Description
Use the display isis brief command to view the brief information of IS-IS.
Example
# View the brief information of IS-IS.
<Quidway> display isis brief
ISIS
Network-entity:
Is-level:
01.0001.0000.0000.0002.00
level-1-2
Cost-style:
narrow
Preference:
15
Timers:
spf-delay-interval:
spf-slice-size:
5000
1200
lsp-refresh:
900
level-1
10
level-2
10
View
Any view
Parameter
verbose: If this parameter is used, the details of the interface will be displayed.
Description
Using display isis interface command, you can view the information of the enabled
IS-IS interface.
This command displays the information of the enabled IS-IS interface, including
interface name, IP address of the interface, link state of the interface and so on.
Besides displaying all the information shown by the display isis interface command,
the display isis interface verbose command displays such information about the
IS-IS parameters of the interface as CSNP packet broadcast interval, Hello packet
broadcast interval and invalid number of Hello packet.
Example
# Display the information about the enabled IS-IS interface.
<Quidway> display isis interface
Interface
IP Address Id
Link.Sta IP.Sta
Up
MTU
Type
1497
L1
MTU
Type
1497
L1
DIS
Yes
IP Address Id
Link.Sta IP.Sta
Up
Secondary IP Address
SNPA Address
00e0.fc44.5f71
Csnp Interval
L1
10
L2
10
Hello Interval
L1
10
L2
10
Hold Time
L1
30
L2
30
Lsp Interval
33
DIS
Yes
Cost
L1
10
L2
10
Priority
L1
64
L2
64
Retransmission interval
View
Any view
Parameter
l1 and Level-1: Both refer to the link state database of level-1.
l2 and level-2: Both refer to the link state database of level-2.
LSPID: Specify the LSPID of the Network-entity-title.
local: Configure to display the local information of the link state database.
verbose: Configure to display the verbose information of the link state database.
Description
Using display isis lsdb command, you can view the link state database of the IS-IS.
Example
# Display the verbose information of an LSP.
<Quidway> display isis lsdb 0050.0500.5005.00-00 verbose
IS-IS Level-1 Link State Database
Lsp ID
Sequence
Holdtime
A_P_O
Checksum
>0050.0500.5005.00-00
0x00000328
780
0_0_0
0xf211
View
Any view
Parameter
none
Description
Using display isis mesh-group command, you can view the IS-IS mesh group.
This command is used for displaying the configurations of the mesh-group of the
current router interface.
Example
# Add Interface Vlan-interface 10 and Interface Vlan-interface 20 running IS-IS into
mesh group 100.
[Quidway-Vlan-interface10] isis mesh-group 100
[Quidway] interface Vlan-interface 20
[Quidway-Vlan-interface20] isis mesh-group 100
# Display the information of IS-IS mesh-group.
[Quidway-Vlan-interface20] display isis mesh-group
Interface
Mesh-group/Blocked
Vlan-interface 10
100
Vlan-interface 20
100
View
Any view
Parameter
verbose: When this parameter is configured, the area address carried in the Hello
packet from the neighbor will be displayed. Otherwise, only the universal information
will be displayed.
Description
Using display isis peer command, you can view IS-IS peer information.
The display isis peer verbose command yields not only all the outputs of the display
isis peer command, but also the area address, Uptime and IP address of the directly
connected interface of the peer.
Example
# Output more information, using the verbose parameter.
<Quidway> display isis peer verbose
Interface
System ID
01
IP Address: 7.7.7.7
Interface
01
Circuit ID
IP Address: 6.6.6.6
64
N/Y
Period: 01:51:13
L1
24s
L1
64
N/Y
Period: 00:53:50
Interface
Circuit ID
L1
64
N/Y
L1
64
N/Y
View
Any view
Parameter
clns: Configure the interface to activate the OSI IS-IS routing process.
ip: Configure the interface to activate the IP IS-IS routing process.
Description
Using display isis route command, you can view IS-IS routing information. .
Example
# View IS-IS routing information.
<Quidway> display isis ip route
ISIS Level - 1 Forwarding Table :
Destination/Mask
In.Met
Ex.Met NextHop
Interface
Flags
------------------------------------------------------------------------I 3.3.3.0/24
20
7.7.7.7
Vlan-interface1000
R/-/-
I 0.0.0.0/0
10
Vlan-interface1001
7.7.7.7
Vlan-interface1000
6.6.6.6
Vlan-interface1001
R/-/-
D 7.7.7.0/25
10
Direct
Vlan-interface1000
R/L/-
D 6.6.6.0/24
10
Direct
Vlan-interface1001
R/L/-
I 10.1.1.0/24
10
7.7.7.7
Vlan-interface1000
R/-/-
6.6.6.6
Vlan-interface1001
View
Any view
Parameter
none
Description
Using display isis spf-log command, you can view the SPF calculation log information
of the IS-IS. .
Example
# View the SPF calculation log of IS-IS.
<Quidway> display isis spf-log
Details of Level 1 SPF Run:
------------------------------------------------------------------------Trig.Event
No.Of Nodes
Duration(ms)
StartTime
IS_SPFTRIG_LSPCHANGE
19
1:12:1
IS_SPFTRIG_LSPCHANGE
19
1:11:58
IS_SPFTRIG_LSPCHANGE
18
1:11:53
IS_SPFTRIG_CIRC_DOWN
19
1:11:46
IS_SPFTRIG_NEWADJ
20
1:11:39
IS_SPFTRIG_LSPCHANGE
19
1:11:35
IS_SPFTRIG_PERIODIC
18
1:3:25
IS_SPFTRIG_LSPCHANGE
22
0:55:51
IS_SPFTRIG_LSPCHANGE
18
0:55:46
IS_SPFTRIG_ADJDOWN
19
0:55:23
IS_SPFTRIG_NEWADJ
18
0:54:16
IS_SPFTRIG_LSPCHANGE
20
0:54:12
IS_SPFTRIG_LSPCHANGE
19
0:54:7
IS_SPFTRIG_PERIODIC
21
0:48:25
IS_SPFTRIG_LSPEXPIRED
19
0:34:10
IS_SPFTRIG_PERIODIC
19
0:33:25
IS_SPFTRIG_PERIODIC
18
0:18:25
IS_SPFTRIG_LSPCHANGE
19
0:13:26
IS_SPFTRIG_PERIODIC
19
0:3:25
IS_SPFTRIG_LSPCHANGE
19
1:12:7
4.1.12 domain-authentication-mode
Syntax
domain-authentication-mode { simple | md5 } password [ ip | osi ]
undo domain-authentication-mode { simple | md5 } [ ip | osi ]
View
IS-IS view
Parameter
simple: Configure to transmit the password in plain text.
md5: Configure to transmit the password encrypted with MD5 algorithm.
password: If the authentication is in the simple mode, the password must be in plain
text. If the authentication is in the md5 mode, the password can be either in cipher text
or in plain text, and it will be displayed in a cipher text form in a length of 24 characters
when display current-configuration command is executed. A plain text password is a
sequential character string of no more than 16 characters, for example, h3c. The length
of an cipher text must be 24 characters, for example, _(TT8F]Y\5SQ=^Q`MAF4<1!!.
ip: If this item is configured, the system checks the configuration of the corresponded
field of the IP in LSP.
osi: If this item is configured, the system checks the configuration of the corresponded
field of the OSI in LSP.
The configuration of ip or osi is independent of the real network environment.
Description
Using domain-authentication-mode command, you can configure IS-IS to
authenticate the received level-2 routing packets (LSP, CSNP, PSNP), according to the
pre-defined mode and password. Using undo domain-authentication-mode
command, you can configure IS-IS not to authenticate the said packets.
In default configuration, the system will not authenticate the received level-2 routing
packets, and there is no password. By using this command, you can clear all the level-2
routing packets, whose domain authentication passwords do not consist with the one
set via this command. At the same time, this command will let IS-IS insert the domain
Huawei Technologies Proprietary
4-11
authentication password into all the level-2 routing packets sent by this node, in a
certain mode.
For
the
related
commands,
see
area-authentication-mode,
isis
authentication-mode.
Example
# When you need to authenticate the level-2 routing packets, you can select the simple
mode, and the password is huawei.
[Quidway] isis
[Quidway-isis] domain-authentication-mode simple huawei
View
IS-IS view
Parameter
acl-number: Specify the number of the access control list, ranging 2000 to 3999.
protocol: Specify the protocols that distribute routing information, including direct, static,
rip, bgp, ospf, ospf-nssa and ospf-ase.
Description
Using filter-policy export command, you can configure to filter the routes distributed
by other routing protocol.
Using undo filter-policy export command, you can cancel the filtering rules.
By default, IS-IS does not receive routes distributed by other routing protocol.
Note:
z
The filter-policy export command only takes effect to the routes imported by the
import-route command. If you configure the switch with only the filter-policy
export command, but without configuring the import-route command to import
other external routes, then the filter-policy export command does not take effect.
If the filter-policy export command does not specify which route to be filtered, then
the all the routes imported by the import-route command will be filtered.
Example
# Use acl 2000 to filter the routes imported by IS-IS.
[Quidway-isis] filter-policy 2000 export
View
IS-IS view
Parameter
acl-number: Specify the number of the access control list, ranging 2000 to 3999.
Description
Using filter-policy import command, you can configure to filter the routes received by
IS-IS. Using undo filter-policy import command, you can configure not to filter the
received routes.
By default, IS-IS does not filter the received routing information.
In some cases, only the routing information meeting the specified conditions will be
accepted. You can configure the filter-policy to specify the filter conditions so as to
accept the desired routing information only.
For the related commands, see filter-policy export.
Example
# Filter the received routes by using acl 2000.
[Quidway-isis] filter-policy 2000 import
Huawei Technologies Proprietary
4-13
4.1.15 ignore-lsp-checksum-error
Syntax
ignore-lsp-checksum-error
undo ignore-lsp-checksum-error
View
IS-IS view
Parameter
None
Description
Using ignore-lsp-checksum-error command, you can configure the IS-IS to discard
LSPs with checksum errors. Using undo ignore-lsp-checksum-error command, you
can configure the IS-IS to ignore the checksum error of LSP.
By default, the checksum error of LSP is ignored.
After receiving an LSP packet, the local IS-IS will calculate its checksum and compares
the result with the checksum in the LSP packet. This process is the checksum
authentication over the received LSP. By default, though the checksum in the packet is
found not in consistent with the calculated result, the LSP is processed as normal.
However,
if
not
ignoring
LSP
checksum
error
is
set
with
the
Example
# Discard the LSPs with checksum errors.
[Quidway-isis] ignore-lsp-checksum-error
4.1.16 import-route
Syntax
import-route protocol [ cost value | type { external | internal } | [ level-1 | level-1-2 |
level-2 ] | route-policy route-policy-name ]*
undo import-route protocol [ cost value | type { external | internal } | [ level-1 |
level-1-2 | level-2 ] | route-policy route-policy-name ]*
View
IS-IS view
Parameter
protocol: Specify the source protocol for importing the routing information, which can be
direct, static, rip, bgp, and ospf etc.
value: Specify the metric of the imported route, ranging from 0 to 63.
type: Type of routing cost: internal indicates the routing cost in the same area;
external indicates the routing cost among areas. By default, the routing cost is
internal.
level-1: Configure to import the route into Level-1 routing table.
level-2: Configure to import the route into Level-2 routing table. If the level is not
specified, it defaults to importing the routes into level-2.
level-1-2: Configure to import the route into Level-1 and Level-2 routing table.
route-policy route-policy-name: Configure to import the routes matching the
conditions defined in the specified route-policy only. The length of route-policy-name
parameter ranges from 1 to 16 character string.
Description
Using import-route command, you can configure IS-IS to import the routing
information of other protocols. Using undo import-route command, you can cancel
this function.
By default, IS-IS does not import the routing information of other protocols.
IS-IS regards all the routes imported into the routing domain as the external routes,
which describe the way of routing outside the routing domain.
For the related commands, see import-route isis level-2 into level-1.
Example
# Configure IS-IS to import the routing information of OSPF.
[Quidway-isis] import-route ospf
View
IS-IS view
Parameter
acl-number: ACL number. When configuring routing leak from Level-2 to Level-1, only
the routes that are permitted by ACL can be imported to Level-1 area if an ACL has
been specified.
Description
Using the import-route isis level-2 into level-1 command, you can enable routing
information in a Level-2 area to be imported to a Level-1 area. Using the undo
import-route isis level-2 into level-1 command, you can remove the function.
By default, routing information in a Level-2 area is not imported to a Level-1 area.
For the related commands, see import-route.
Example
# Import routing information of a router from a Level-2 area to a Level-1 area.
[Quidway] acl number 3100 permit any
[Quidway] isis
[Quidway-isis] import-route isis level2 into level1 acl 3100
4.1.18 isis
Syntax
isis [ tag ]
undo isis [ tag ]
View
System view
Parameter
tag: the name given to the ISIS process. The name length should be no longer than 128
characters, and it can be 0, which means null.
Description
Using isis command, you can start the corresponding IS-IS routing process and enter
the ISIS view. Using undo isis command, you can delete the specified IS-IS routing
process.
By default, IS-IS routing process is not started
For the normal operation of the IS-IS protocol, the isis command must be used to
enable the IS-IS process. Then the network-entity command is used to set a Network
Entity Title (NET) for the router. And, at last, the isis enable command is used to
enable each interface on which the IS-IS process runs. The IS-IS protocol is actually
enabled upon the completion of these configurations.
Note:
Only one IS-IS routing process can be started on one router.
Example
# Start an IS-IS routing process, in which the system ID is 0000.0000.0002 and the area
ID is 01.0001.
[Quidway] isis
[Quidway-isis] network-entity 01.0001.0000.0000.0002.00
View
VLAN interface view
Parameter
simple: Configure to transmit the password in plain text.
md5: Configure to transmit the password encrypted with MD5 algorithm.
password: If the authentication is in the simple mode, the password must be in plain
text. If the authentication is in the md5 mode, the password can be either in cipher text
or in plain text, and it will be displayed in a cipher text form in a length of 24 characters
when display current-configuration command is executed. A plain text password is a
sequential character string of no more than 16 characters, for example, h3c. The length
of an cipher text must be 24 characters, for example, _(TT8F]Y\5SQ=^Q`MAF4<1!!.
level-1: Configure authentication password for L1.
level-2: Configure authentication password for L2.
ip: If this item is configured, the system checks the configuration of the corresponded
field of the IP in LSP.
osi: If this item is configured, the system checks the configuration of the corresponded
field of the OSI in LSP.
The configuration of ip or osi is independent of the real network environment.
Description
Using isis authentication-mode command, you can configure the IS-IS to
authenticate the hello packets of the corresponding level, in the specified mode and
with
the
specified
password
on
the
IS-IS
interface.
Using
undo
isis
authentication-mode command, you can cancel the authentication and delete the
password at the same time.
By default, the password is not set and no authentication is executed.
If the password is set, but no parameter is specified, the default settings are level-1 and
osi.
For
the
related
commands,
see
area-authentication-mode,
domain-authentication-mode.
Example
# Set the authentication password tangshi in plain text for the Level-1 neighboring
relationship on Interface Vlan-interface 10.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] isis authentication-mode simple tangshi level-1
View
Interface view
Parameter
level-1: Configure Level-1, instead of Level-2, adjacency on the current interface only.
level-1-2: Configure Level-1-2 adjacency on the current interface.
level-2: Configure Level-2 adjacency on the current interface only.
Description
Using isis circuit-level command, you can configure the neighboring circuit type.
Using undo isis circuit-level command, you can restore the default setting.
By default, the value is level-1-2.
Huawei Technologies Proprietary
4-18
This command is only applicable to level-1-2 router. If the local router is a level-1-2
router and it is required to establish a correlation with the peer router on a certain level
(level-1 or level-2), this command can specify the interface to send and receive hello
packets of this level. Certainly, only one type of hello packet is sent and received on the
point-to-point link. In this way, excessive processing is avoided, and the bandwidth is
saved.
For the related commands, see is-level.
Example
# When interface Vlan-interface 10 is connected with a non-backbone router in the
same area, you can set this interface as level-1, prohibiting the sending and receiving
of level-2 hello packets.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] isis enable
[Quidway-Vlan-interface10] isis circuit-level level-1
View
Interface view
Parameter
value: Specify the link cost used in the SPF calculation of corresponding level. Its range
is 0 to 63. By default, the value is 10.
level-1: indicate that the link cost corresponds to level-1.
level-2: indicate that the link cost corresponds to level-2
Description
Using isis cost command, you can configure the link cost of this interface when
performing SPF calculation. Using undo isis cost command, you can restore the
default link cost.
If neither Level 1 nor Level 2 is specified in the configuration, both level-1 and level-2
will be the default value.
The user is recommended to configure the appropriate link cost for all the interfaces.
Otherwise, the link cost in the calculation of IS-IS routes cannot reflect the link cost.
Example
# Set the link cost of the Level-2 link on Interface Vlan-interface 10 to 5.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] isis cost 5 level-2
View
Interface view
Parameter
value: The priority when selecting DIS. Its value ranges 0 to 127, and the default priority
is 64.
level-1: Specify the priority when selecting level-1 DIS.
level-2: Specify the priority when selecting level-2 DIS.
If the level is not specified, it defaults to setting both Level-1 and level-2 priority.
Description
Using isis dis-priority command, you can configure the priority of an interface for the
DIS election. Using undo isis dis-priority command, you can restore the default
priority.
The IS-IS protocol does not concern the concept of backup DIS. The router with the
priority 0 can also run for the DIS, which is different from the DR election of OSPF.
Example
# Set the priority of Interface Vlan-interface 1 to 127.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] isis dis-priority 127 level-2
View
Interface view
Parameter
clns: Configure the interface to activate the OSI IS-IS routing process.
ip: Configure the interface to activate the IP IS-IS routing process.
tag: the name given to an IS-IS routing process, when executing isis command in the
system view. If not specified, it is null.
Description
Using isis enable command, you can configure the interface to activate the
corresponding IS-IS routing process. Using undo isis enable command, you can
cancel this designation.
By default, the IS-IS routing process is not enabled on an interface.
For the normal operation of the IS-IS protocol, the isis command must be used to
enable the IS-IS process. Then the network-entity command is used to set a Network
Entity Title (NET) for the router. And, at last, the isis enable command is used to
enable each interface on which the IS-IS process runs. The IS-IS protocol is actually
enabled upon the completion of these configurations.
For the related commands, see isis, network-entity.
Example
# Create an IS-IS routing process named huawei, and activate this routing process on
interface Vlan-interface 1.
[Quidway] isis huawei
[Quidway-isis] network-entity 10.0001.1010.1020.1030.00
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] isis enable ip huawei
View
Interface view
Parameter
mesh-group-number: Specify the mesh group number, ranging from 1 to 4294967295.
mesh-blocked: Configure to block a specified interface, so that it will not flood the
received LSP to other interfaces.
Description
Using isis mesh-group command, you can add an interface to a specified mesh group.
Using undo isis mesh-group command, you can delete this interface from the mesh
group.
By default, the interface does not belong to any mesh group and floods LSP normally.
The interface beyond the mesh group floods the received LSP to other interfaces,
following the normal procedure. This processing method applied to an NBMA network
with higher connectivity and several point-to-point links will cause repeated LSP
flooding and waste bandwidth.
The interface joining a mesh group only floods the received LSP to the interfaces
beyond the local mesh group.
Be sure to provide some redundancy when adding an interface to a mesh group or
blocking it, avoiding the affect to the normal flooding of the LSP due to link failure.
Example
# Add Vlan-interface 1 running IS-IS to mesh group 3.
[Quidway-Vlan-interface1] isis mesh-group 3
View
Interface view
Parameter
seconds: Specify the CSNP packet interval on the broadcast network, ranging from 1 to
65535 and measured in seconds. By default, the value is 10 seconds.
level-1: Specify the Level-1 CSNP packet interval.
level-2: Specify the Level-2 CSNP packet interval.
If the level is not specified, it defaults to setting both Level-1 and level-2 intervals.
Description
Using isis timer csnp command, you can configure the interval of sending CSNP
packets on the broadcast network. Using undo isis timer csnp command, you can
restore the default value, that is, 10 seconds.
Only DIS can periodically send CSNP packets, therefore, this command is valid only for
the router that is selected as the DIS. Furthermore, DIS is divided into level-1 and
level-2, and their intervals of sending CSNP packets must be set respectively.
Example
# Set the CSNP packet of Level-2 to be transmitted every 15 seconds on the interface
Vlan-interface 1.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] isis timer csnp 15 level-2
View
Interface view
Parameter
seconds: Specify the Hello interval, ranging from 3 to 255 and measured in seconds.
The default value is 10 seconds.
level-1: Specify the Level-1 Hello interval.
level-2: Specify the Level-2 Hello interval.
If the level is not specified, it defaults to setting the Hello interval at Level-1-2, that is,
both Level-1 and Level-2 take effect.
Description
Using isis timer hello command, you can configure the interval of sending hello packet
of corresponding level. Using undo isis timer hello command, you can restore the
default value, that is, 10 seconds.
On a broadcast link, level-1 and level-2 hello packets will be sent respectively and their
intervals should also be set respectively. Such settings are unnecessary on
point-to-point links. The shorter the sending interval is, the more system resources are
occupied to send hello packets. Therefore, the interval should be set according to
actual conditions.
Huawei Technologies Proprietary
4-23
Example
# Set the Hello packet of Level-2 to be transmitted every 20 seconds on Interface
Vlan-interface 1.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] isis timer hello 20 level-2
View
Interface view
Parameter
number: In the range of 3 to 1000.
Description
Using the isis timer holding-multiplier command, you can configure the number of
invalid Hello messages for the interface. Using the undo isis timer holding-multiplier
command, you can restore the default settings.
The default number of invalid Hello messages is 3.
ISIS protocol maintains the adjacency between the adjacent routers by sending and
receiving Hello messages. If the local router does not receive a Hello message from the
peer within an interval, it regards the neighbor unavailable. The interval is the ISIS
holddown time.
In ISIS, the holddown time can be regulated by configuring the number of invalid Hello
messages. That is, the local router regards its neighbor unavailable if it has not
received the specific number of Hello messages consecutively.
If you do not specify Level-1 or Level-2 in the command, the system applies the number
of invalid Hello messages to Level-1 and Level-2.
For the related command, see isis timer hello.
Example
# Set the number of invalid Hello messages to 5 on Vlan-interface 10.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] isis timer holding-multiplier 5
Huawei Technologies Proprietary
4-24
View
Interface view
Parameter
time: Specify the LSP interval, ranging from 1 to 1000 and measured in milliseconds.
The default value is 33 milliseconds.
Description
Using isis timer lsp command, you can configure IS-IS LSP interval on the interface.
Using undo isis timer lsp command, you can restore the default setting.
For the related commands, see isis timer retransmit.
Example
# Set the LSP interval on Interface Vlan-interface 1 to 500 milliseconds.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] isis timer lsp 500
View
Interface view
Parameter
seconds: Specify the the retransmission interval of LSP packets, in the unit of second,
in the range from 1 to 300 and the default value is 5 seconds.
Description
Using isis timer retransmit command, you can configure the LSP retransmission
interval over the point-to-point link. Using undo isis timer retransmit command, you
can restore the default setting.
Example
# Set the LSP retransmission interval to 10 seconds on Interface Vlan-interface 1.
[Quidway] interface Vlan-interface 1
[Quidway-Vlan-interface1] isis timer retransmit 10
4.1.30 is-level
Syntax
is-level { level-1 | level-1-2 | level-2 }
undo is-level
View
IS-IS view
Parameter
level-1: Configure the router to operate at Level-1, only calculate the intra-area routes
and maintain the LSDB of L1.
level-1-2: Configure the router to operate at Level-2, calculate both the L1 and L2
routes and maintain the LSDB of L1 and L2.
level-2: Configure the router to operate at Level-2, only switch L2 LSP and calculate
the L2 routes and maintain the LSDB of L2.
Description
Using is-level command, you can configure the IS-IS level. Using undo is-level
command, you can restore the default value.
By default, the value is level-1-2.
We recommend setting the system Level, when you configure IS-IS.
If there is only one area, you are recommended to set the level of all the routers as
Level-1 or Level-2, because it is not necessary for all the routers to maintain two
identical databases. You are recommended to set all the routers to Level-2 for
convenient future extension, when applying them to IP network.
For the related commands, see isis circuit-level.
Example
# Set the current router to operate at Level-1.
[Quidway] isis
[Quidway-isis] is-level level-1
4.1.31 log-peer-change
Syntax
log-peer-change
undo log-peer-change
View
IS-IS view
Parameter
none
Description
Using log-peer-change command, you can log the peer changes. Using undo
log-peer-change command, you can configure not to log the peer changes.
By default, peer changes log disabled.
After peer changes log is enabled, the IS-IS peer changes will be output on the
configuration terminal until the log is disabled.
Example
# Configure to output the IS-IS peer changes on the current router.
[Quidway-isis] log-peer-change
4.1.32 md5-compatible
Syntax
md5-compatible
undo md5-compatible
View
IS-IS view
Parameter
none
Description
Using the md5-compatible command, you can set the IS-IS to use the MD5 algorithm
which is compatible with that of the other vendors. Using the undo md5-compatible
command, you can return to the defaults.
By default, the system uses the MD5 algorithm in IS-IS which is compatible with that of
Huawei.
You must configure this command when the switch needs to authenticate the devices of
other vendors using MD5 algorithm in IS-IS.
Example
# Set the IS-IS to use the MD5 algorithm compatible with that of the other vendors
[Quidway-isis] md5-compatible
4.1.33 network-entity
Syntax
network-entity NET
undo network-entity NET
View
IS-IS view
Parameter
NET: Specify the Network Entity Title in the XX.XXXX....XXXX.00 format, in which
the first XX is the area address, the twelve Xs in the middle is the System ID of the
router, and the 00 in the end is SEL.
Description
Using network-entity command, you can configure the name of Network Entity Title
(NET) of the IS-IS routing process. Using undo network-entity command, you can
delete a NET.
By default, the value is No NET.
NET means the Network Service Access Point (NSAP). It consists of three parts. Part
one is area ID, which is variable (1 to 13 bytes), and the area IDs of the routers in the
same area are identical. Part two is system ID (6 bytes) of this router, which must be
unique in the whole area and backbone area. Part three, the last byte SEL, whose
value must be 00. So the NET field of IS-IS is 8 to 20 bytes. Usually, one router can be
configured with one NET. When the area is redesigned by combination or separation,
after reconfiguration, the correctness and continuity of the routes must be ensured.
For the related commands, see isis, isis enable.
Huawei Technologies Proprietary
4-28
Example
# Specify NET as 10.0001.1010.1020.1030.00, in which the system ID is
1010.1020.1030, area ID is 10.0001.
[Quidway] isis
[Quidway-isis] network-entity 10.0001.1010.1020.1030.00
4.1.34 preference
Syntax
preference value
undo preference
View
IS-IS view
Parameter
value: Specify the preference, ranging from1 to 255. By default, the value is 15.
Description
Using preference command, you can configure the preference of IS-IS protocol. Using
undo preference command, you can restore the default value.
Several dynamic routing protocols could run simultaneously on a router. In this case,
there is an issue of sharing and selecting the routing information among all the routing
protocols. The system sets a preference for each routing protocol. When various
routing protocols find the route to the same destination, the protocol with the higher
preference will take effect.
Example
# Configure the preference of IS-IS as 25.
[Quidway-isis] preference 25
View
User view
Parameter
none
Description
Using reset isis all command, you can reset all the IS-IS data structures.
By default, IS-IS data structure will not be cleared.
This command is used when LSPs need refreshing immediately. For example, after
area-authentication-mode
and
domain-authentication-mode
commands
are
executed, the old LSP still remain on the router. This command can be used to clear
them.
For
the
related
commands,
see
area-authentication-mode,
domain-authentication-mode.
Example
# Reset all the IS-IS data structures.
<Quidway> reset isis all
View
User view
Parameter
system-id: Specifies the system ID of IS-IS neighbor.
Description
Using reset isis peer command, you can reset the specified IS-IS peer.
By default, the IS-IS neighbor will not be cleared.
This command is used when you want to reconfigure a certain neighbor.
Example
# Clear the IS-IS neighbor whose system ID is 0000.0c11.1111.
<Quidway> reset isis peer 0000.0c11.1111
4.1.37 set-overload
Syntax
set-overload
undo set-overload
View
IS-IS view
Parameter
none
Description
Using set-overload command, you can set overload flag for the current router. Using
undo set-overload command, you can cancel the overload flag.
By default, no overload flag is set.
If a router is configured with the overload flag, the routes it calculates will be ignored by
other routers in SPF calculation. (However the directly connected routes will not be
ignored.) And other routers should not send this router the packets which should be
forwarded by it.
Example
# Set overload flag on the current router.
[Quidway-isis] set-overload
4.1.38 silent-interface
Syntax
silent-interface silent-interface-type interface-number
undo silent-interface silent-interface-type interface-number
View
IS-IS view
Parameter
interface-type: Specifies the interface type.
interface-number: Specifies the interface number.
Description
Using silent-interface command, you can disable a specified interface to transmit
IS-IS packet. Using undo silent-interface command, you can enable the interface to
transmit IS-IS packet.
By default, all the interface are allowed to transmit/receive IS-IS packets.
The silent-interface command is only used to suppress the packets to be transmitted
on the interface, but the routes of this interface will still be transmitted from other
interfaces.
Example
# Prohibit the IS-IS packets to be transmitted via Interface Vlan-interface 3.
[Quidway-isis] silent-interface Vlan-interface 3
4.1.39 spf-delay-interval
Syntax
spf-delay-interval number
undo spf-delay-interval
View
IS-IS view
Parameter
number: Specify number of routes to process before releasing CPU. It is in unit of piece
with the range from 1000 to 50000. By default, the value is 5000 pieces.
Description
Using spf-delay-interval command, you can configure number of routes to process
before releasing CPU in the SPF calculation. Using undo spf-delay-interval command,
you can restore the default setting.
When there are a large number of routes in the routing table, this command can be
used to set that CPU resources are released automatically after a certain number of
routes are processed. The unprocessed routes will be processed in one second. In this
way, SPF calculation will not occupy the system resources for a long time, which has
impact on the responding speed of the console.
The value of the parameter number can be adjusted according to the capacity of the
routing table. If the spf-slice-size command is also configured, the SPF calculation will
be paused when any setting item is met.
By default, CPU is released once when every 5000 pieces of routes are processed.
For the related commands, see spf-slice-size.
Huawei Technologies Proprietary
4-32
Example
# Set IS-IS to release CPU once after processing every 3000 pieces of routes.
[Quidway-isis] spf-delay-interval 3000
4.1.40 spf-slice-size
Syntax
spf-slice-size seconds
undo spf-slice-size
View
IS-IS view
Parameter
seconds: Duration of one cycle in second of SPF calculation in the range from 0 to 120.
When the calculation duration time reaches or exceeds the set value, the calculation of
this time ends. If seconds is set to 0, it indicates that SPF calculation is not divided into
slices and it will operate until the end. By default, the value is 0.
Description
Using spf-slice-size command, you can configure the duration of one cycle when IS-IS
performs SPF route calculation. Using undo spf-slice-size command, you can restore
the default setting.
When there is a large number of routes in the routing table, this command can be used
to enable the SPF calculation in slices to prevent it from occupying the system
resources for a long time.
The user is recommended to use the command when the number of routes reaches
150,000 or 200,000 and the value of seconds is recommended as 1. In other cases, the
default setting should be used, that is, SPF runs to the end with no slice.
If the spf-delay-interval command is also configured, when SPF calculation is run, the
SPF calculation will be paused if any setting item is met.
For the related commands, see spf-delay-interval.
Example
# Set the SPF duration time to 1 second.
[Quidway-isis] spf-slice-size 1
4.1.41 summary
Syntax
summary ip-address mask [ level-1 | level-1-2 | level-2 ]
undo summary ip-address mask [ level-1 | level-1-2 | level-2 ]
View
IS-IS view
Parameter
ip-address: Aggregated network segment address.
mask: Aggregated network mask.
level-1: Configure to aggregate the routes imported into Level-1.
level-2: Configure to aggregate the routes imported into Level-2 routing table.
level-1-2: Configure to aggregate the routes imported into Level-1 and Level-2.
If the level is not specified, it defaults to setting level-2 aggregation.
Description
Using summary command, you can configure IS-IS route summary. Using undo
summary command, you can cancel the summary.
By default, no routes will be summarized.
Similarly, the routes with the same next hops can be aggregated into one route. In this
way, the sizes of the routing table, LSP packets and LSDB are reduced. Among them,
the aggregated route can be either a route found by IS-IS protocol, or an imported route.
Furthermore, the cost value of the aggregated route adopts the smallest cost of the
routes aggregated.
Example
# Set a route summary of 202.0.0.0/8.
[Quidway-isis] summary 202.0.0.0 255.0.0.0
View
IS-IS view
Parameter
seconds: Specifies the maximum lifetime of LSP, measured in seconds. The range is 1
to 65535. The default value is 1200 seconds.
Description
Using timer lsp-max-age command, you can configure the maximum lifetime of an
LSP generated by the current router. Using undo timer lsp-max-age command, you
can restore the default value.
When the router generates an LSP for the system, it adds the maximum lifetime to it.
When other routers receive this LSP, the lifetime decreases continuously as the time
goes. If updated LSP has not been received before the old one times out, this LSP will
be deleted from the LSDB.
For the related commands, see timer lsp-refresh.
Example
# Set the lifetime of an LSP generated by the current system to 25 minutes, i.e., 1500
seconds.
[Quidway-isis] timer lsp-max-age 1500
View
IS-IS view
Parameter
seconds: Specifies the LSP refresh interval, measured in seconds. The range is 1 to
65535. The default value is 900 seconds.
Description
Using timer lsp-refresh command, you can configure the refresh interval of LSP.
Using undo timer lsp-refresh command, you can restore the default value, that is, 900
seconds.
By this mechanism, the latest synchronization of the LSP within the entire area can be
maintained.
For the related commands, see timer lsp-max-age.
Example
# Set the LSP refresh interval of the current system to 25 minutes, i.e., 1500 seconds.
[Quidway-isis] timer lsp-refresh 1500
View
IS-IS view
Parameter
seconds: Specifies the SPF calculation interval, ranging from 1 to 120 and measured in
seconds. The default value is 10 seconds.
level-1: Sets Level-1 SPF calculation interval only.
level-2: Sets Level-2 SPF calculation interval only.
If the level is not specified, it defaults to setting both Level-1 and level-2 intervals.
Description
Using timer spf command, you can configure the interval for the SPF calculation of
corresponding level. Using undo timer spf command, you can restore the system
default value, that is, 5 seconds.
Usually, when the LSDB of the corresponding level is changed, SPF calculation is
required. However, when the network is unstable and LSDB changes frequently, if the
SPF calculation is performed too frequently, the system efficiency will be lowered. In a
severe condition, other services will be affected. By setting proper interval for
performing SPF calculation, you can avoid the above situation. Certainly, the interval
for SPF calculation cannot be set too long, because a long interval will prevent the
current routing table from showing the actual network condition. This sitting must be
made according to actual conditions.
Example
# Set the SPF calculation interval of the router to 3 seconds.
[Quidway-isis] timer spf 3
Note:
When an Ethernet switch runs a routing protocol, it can perform the router functions.
Router that is referred to in the following and its icon represent a generalized router or
an Ethernet switch running routing protocols. To improve readability, this will not be
described in the other parts of the manual.
Note:
For the commands defining routing policies in BGP, refer to the Routing Policy" of the
next chapter.
5.1.1 aggregate
Syntax
aggregate
address
detail-suppressed
mask
|
as-set
origin-policy
attribute-policy
route-policy-name
route-policy-name
|
suppress-policy
route-policy-name ]*
undo aggregate address mask [ as-set | attribute-policy route-policy-name |
detail-suppressed
origin-policy
route-policy-name
route-policy-name ]*
View
BGP view
Parameter
address: Address of the aggregated route.
mask: Network mask of the aggregated route.
as-set: Create a route with segment of AS_SET.
detail-suppressed: Only advertise the aggregated route.
Huawei Technologies Proprietary
5-1
suppress-policy
Description
Using aggregate command, you can establish an aggregated record in the BGP
routing table. Using undo aggregate command, you can disable the function.
By default, there is no route aggregation.
The keywords is explained as follows:
Table 5-1 The use of the keywords
keywords
use
as-set
detail-suppress
ed
suppress-polic
y
origin-policy
attribute-policy
Example
# Create an aggregated record in BGP routing table.
[Quidway-bgp] aggregate 168.328.0.0 255.255.0.0
5.1.2 bgp
Syntax
bgp as-number
undo bgp [as-number ]
View
system view
Parameter
as-number: The specified local AS number.
Description
Using bgp command, you can enable BGP and enter the BGP view. Using undo bgp
command, you can disable BGP.
By default, the system does not run BGP.
This command is used to enable and disable BGP as well as to specify the local AS
number of BGP.
Example
# Enable BGP.
[Quidway] bgp 100
[Quidway-bgp]
5.1.3 compare-different-as-med
Syntax
compare-different-as-med
undo compare-different-as-med
View
BGP view
Parameter
none
Description
Using compare-different-as-med command, you can enable comparison of MED
values from different AS neighboring routes when determining the best route. Using
undo compare-different-as-med command, you can disable the comparison.
By default, it is disabled to compare the MED attribute values from the routing paths of
different AS peers.
If there are several routes available to one destination address, the route with smaller
MED parameter can be selected as the final route item.
Do not use this command unless it is determined that the same IGP and routing
selection mode are adopted by different autonomous systems.
Huawei Technologies Proprietary
5-3
Example
[Quidway-bgp] compare-different-as-med
5.1.4 confederation id
Syntax
confederation id as-number
undo confederation id
View
BGP view
Parameter
as-number: The ID of BGP AS confederation. It is equal to the AS number which
contains the AS numbers of multiple sub-ASs. The range is 1 to 65535.
Description
Using confederation id command, you can configure confederation identifier. Using
undo confederation id command, you can cancel the BGP confederation specified by
as-number parameter.
By default, the confederation ID is not configured.
Confederation can be adopted to solve the problem of too many IBGP full connections
in a large AS domain. The solution is, first dividing the AS domain into several smaller
sub-ASs, and each sub-ASs remains full-connected. These sub-ASs form a
confederation. Key BGP attributes of the route, such as next hop, MED, local
preference, are not discarded across each sub-ASs. The sub-ASs still look like a whole
from the point of view of a confederation although these sub-ASs have EBGP relations.
This can assure the integrality of the former AS domain, and ease the problem of too
many connections in the domain
For the related commands, see confederation nonstandard, confederation peer-as.
Example
# Confederation 9 consists of four sub-ASs, namely, 38, 39, 40 and 41. Here, the peer
10.1.1.1 is an internal member of the AS confederation while the peer 200.1.1.1 is an
external member of the AS confederation. For external members, Confederation 9 is a
unified AS domain.
[Quidway] bgp 41
[Quidway-bgp] confederation id 9
[Quidway-bgp] confederation peer-as 38 39 40
[Quidway-bgp] group Confed38 external
Huawei Technologies Proprietary
5-4
View
BGP view.
Parameter
none
Description
Using confederation nonstandard command, you can configure the router to be
compatible with routers not following RFC1965. Using undo confederation
nonstandard command, you can disable this function.
By default, it is in accordance with RFC1965.
For the related commands, see confederation id, confederation peer-as.
Example
# AS100 contains routers following nonstandard, which is composed of two sub-ASs,
64000 and 65000.
[Quidway] bgp 64000
[Quidway-bgp] confederation id 100
[Quidway-bgp] confederation peer-as 65000
[Quidway-bgp] confederation nonstandard
View
BGP view
Parameter
as-number-1...as-number-n: Sub-AS number. The range is 1 to 65535. This command
can configure a maximum of 32 Sub-ASs belonging to a confederation.
Description
Using confederation peer-as command, you can configure a confederation consisting
of which Sub-ASs. Using undo confederation peer-as command, you can delete the
specified Sub-AS in the confederation.
By default, no autonomous system is configured as a member of the confederation.
Before this command is performed, the confederation ID should be configured by the
confederation id command. Otherwise this configuration is invalid. The configured
ASs in this command are inside the confederation and each AS uses fully meshed
network. The confederation appears as a single AS to the routers outside it.
For the related commands, see confederation nonstandard, confederation id.
Example
# Configure the confederation contains AS 2001 and 2002.
[Quidway-bgp]confederation peer-as 2000 2001
5.1.7 dampening
Syntax
dampening [ half-life-reachable half-life-unreachable reuse suppress ceiling ]
[ route-policy route-policy-name ]
undo dampening
View
BGP view
Parameter
half-life-reachable: Specify the semi-dampening when the route is reachable. The
range is 1 to 45 minutes. By default, the value is 15 minutes.
half-life-unreachable: Specify the semi-dampening when the route is unreachable. The
range is 1 to 45 minutes. By default, the value is 15 minutes.
reuse: The penalty value of a route when it start to be reused. The range is 1 to 20000.
By default, the value is 750.
suppress: The penalty threshold of a route when it start to be suppressed. The range is
1 to 20000. By default, the value is 2000.
ceiling: The upper threshold of the penalty. The range is 1001 to 20000. By default, the
value is 16000.
route-policy-name: Configure route policy name. The length of route-policy-name
parameter ranges from 1 to 16 character string.
If the parameters are not set, the BGP route attenuation is valid and each parameter is
taken as the default value. The parameters are mutually dependent. Once configure
any parameter, all other parameters should also be specified.
Description
Using dampening command, you can make BGP route attenuation valid or modify
various BGP route attenuation parameters. Using undo dampening command, you
can make the characteristics invalid.
By default, no route attenuation is configured.
For the related commands, see reset bgp dampening, reset bgp flap-info, display
bgp routing-table dampened, display bgp routing-table flap-info.
Example
# Modify various BGP route attenuation parameters.
[Quidway-bgp] dampening 15 15 1000 2000 10000
View
User view
Parameter
all: Indicating to enable all BGP information debugging.
event: Indicating to enable BGP event information debugging.
normal: Indicating to enable information debugging of BGP normal functions.
keepalive: Indicating to enable BGP Keepalive packet information debugging.
open: Indicating to enable BGP Open packet information debugging.
Description
Using debugging bgp all command, you can enable all the information debugging of
BGP packet and events.
Using debugging bgp event command, you can enable the information debugging of
BGP events
Using debugging bgp keepalive command, you can enable the information
debugging of BGP Keepalive packets.
Using debugging bgp packet command, you can enable the information debugging of
BGP packets.
Using undo debugging bgp command, you can disable the debugging functions.
Example
# Enable the information debugging of BGP packets.
<Quidway> debugging bgp packet
View
BGP view
Parameter
value: Default local preference to be configured. The range is 0 to 4294967295. By
default, its value is 100.
Description
Using default local-preference command, you can configure the default local
preference. Using undo default local-preference command, you can restore the
default value.
Example
# The two routers RTA and RTB in the same autonomous area use X.25 and Frame
Relay protocols separately to connect with external autonomous areas. The command
can be used to configure the default local preference of RTB as 180 so that the route
via RTB is selected first when the same route goes through RTA and RTB at the same
time.
[Quidway-bgp]default local-preference 180
View
BGP view.
Parameter
med-value: MED value to be specified. The range is 0 to 4294967295. By default, the
med-value is 0.
Description
Using default med command, you can configure the default system metric. Using
undo default med command, you can restore the default metric of the system.
In the case that all other conditions are the same, the system first selects the route with
the smaller MED value as the external route of the autonomous system.
Example
# Routers RTA and RTB belong to AS100 and router RTC belongs to AS200. RTC is
the peer of RTA and RTB. The network between RTA and RTC is X.25 network and the
network between RTB and RTC is Ethernet. So the MED of RTA can be configured as
25 to allow RTC to select the route transmitted by RTB first.
[Quidway-bgp] default med 25
View
Any view
Parameter
group-name: Specified a peer group.
Description
Using display bgp group command, you can view the information of peer groups.
Example
# View the information of the peer group aaa.
<Quidway> display bgp group aaa
Group : aaa
type : external
as-number : 200
members in this group :
10.1.1.1
11.1.1.1
Table 5-2 Description of information generated by the command display bgp group
Field
Description
Group
type
as-number
route-policy
filter-policy
acl
ip-prefix
View
Any view
Parameter
none
Description
Using display bgp network command, you can view the routing information that has
been configured.
Example
# Display the routing information that has been configured.
<Quidway> display bgp network
Network
Mask
Route-policy
133.1.1.0
255.255.255.0
None
112.1.0.0
255.255.0.0
None
Table 5-3 Description of information generated by the command display bgp network
Field
Description
Network
Network address
Mask
Mask
Route-policy
View
Any view
Parameter
as-regular-expression: Matched AS path regular expression.
Description
Using display bgp paths command, you can view the information about AS paths
Example
# Display the information about the AS paths.
<Quidway> display bgp paths 500
Id
--------------------------------------------------153 80
100
<null>
IGP
500 {500,400,600}
Table 5-4 Description of information generated by the command display bgp paths
Field
Description
Id
Hash-Index
Value of Hash-index
References
Aggregator
EGP
INC
Origin
As-path
View
Any view
Parameter
peer-address: Specify the peer to be displayed.
Description
Using display bgp peer command, you can view the information about BGP peers.
Example
# Display the detail information of the peer 10.110.25.20.
<Quidway> display bgp peer 10.110.25.20 verbose
Peer: 10.110.25.20 Local: Unspecified
Type: External
State: Idle
Flags: <Idled>
Table 5-5 Description of information generated by the command display bgp peer
verbose
Field
Description
Peer
Local
Type
State
State of peer
Flags
Flags of peer
Last State
Last Event
Field
Description
Last Error
Options
Options
View
Any view
Parameter
ip-address: Destination of the network.
mask: Mask of the network.
Description
Using display bgp routing-table command, you can view all the BGP routing
information.
Example
# Display all the BGP routing information.
<Quidway> display bgp routing-table
Flags:
# - valid
^ - active
I - internal
D - damped
H - history
S - aggregate suppressed
B - balance
Dest/Mask
Next-hop
Med
----------------------------------------------------------------------#^
129.1.1.0/24
5.5.5.5
IGP
600
#^
129.1.2.0/24
5.5.5.5
IGP
600
#^
129.1.3.0/24
5.5.5.5
IGP
600
#^
129.1.4.0/24
5.5.5.5
IGP
600
#^
129.1.5.0/24
5.5.5.5
IGP
600
#^
129.1.6.0/24
5.5.5.5
IGP
600
#^
129.1.7.0/24
5.5.5.5
IGP
600
#^
129.1.8.0/24
5.5.5.5
IGP
600
#^
129.1.9.0/24
5.5.5.5
IGP
600
#^
129.1.10.0/24
5.5.5.5
IGP
600
Routes total: 10
Description
State flags:
# - valid (valid)
^ - active (selected)
Flags
D damped (discarded)
H history (history)
I internal (interior gateway protocol)
S - aggregate suppressed (suppressed)
B - Balance
Dest/Mask
Destination address/Mask
Next Hop
Med
Local-Pref
EGP
INC
Origin
As-path
AS-path attribute of route, which records all AS areas that the route
passes. With it, route loop can be avoided
View
Any view
Parameter
acl-number: Specify matched AS path list number ranging from 1 to 199.
Description
Using display bgp routing-table as-path-acl command, you can view routes that
match an as-path acl.
Example
# Display routes that match the as-path-acl 1.
<Quidway> display bgp routing-table as-path-acl 1
Flags:
# - valid
^ - active
I - internal
D - damped
H - history
S - aggregate suppressed
B - balance
Dest/Mask
Pref
Next-Hop
Med
Local-pref
Origin
As-path
-------------------------------------------------------------------#^ 1.1.1.0/24
256
10.10.10.1
IGP
200
#^ 1.1.2.0/24
256
10.10.10.1
IGP
200
#^ 1.1.3.0/24
256
10.10.10.1
IGP
200
#^ 2.2.3.0/24
256
10.10.10.1
INC
200
#^ 4.4.4.0/24
256
10.10.10.1
INC
200
#^ 9.9.9.0/24
256
10.10.10.1
INC
200
#^ 10.10.10.0/24
256
10.10.10.1
IGP
200
#^
22.1.0.0/16
256
200.1.7.2
100
INC
200
88.1.0.0/16
60
0.0.0.0
IGP
Description
Dest/Mask
Destination address/Mask
Pref
Preference
Nexthop
Med
Local-pref
Local preference
Field
Description
Origin attribute of route, which indicates that the route updates its
origin relative to the route originating it from AS. It has three optional
values:
IGP
EGP
INC
Origin
As-path
AS-path attribute of route, which records all AS areas that the route
passes. With it, route loop can be avoided
View
Any view
Parameter
None
Description
Using display bgp routing-table cidr command, you can view the routing information
about the non-natural mask (namely the classless interdomain routing, CIDR).
Example
<Quidway> display bgp routing-table cidr
Flags:
# - valid
^ - active
I - internal
D - damped
H - history
S - aggregate suppressed
B balance
Dest/Mask
Pref
Next-Hop
Med
Local-pref
Origin
As-path
-------------------------------------------------------------------#^
22.1.0.0/16
256
200.1.7.2
88.1.0.0/16
60
0.0.0.0
100
INC
IGP
200
bgp
routing-table
community [
aa:nn | no-export-subconfed |
View
Any view
Parameter
aa:nn: Specify a community number.
no-export-subconfed: Not sending matched route outside AS.
no-advertise: Send matched route to no peers.
no-export: Does not announce the route to the AS or the association outside, but can
advertise to other sub-ASs.
whole-match: Configure to display the exactly matched routes.
Description
Using display bgp routing-table community command, you can view the routing
information related to the specified BGP community number in the routing table.
Example
# Display the routing information matching BGP community number 11:22.
<Quidway> display bgp routing-table community 11:22
Flags:
# - valid
^ - active
I - internal
D - damped
H - history
S - aggregate suppressed
B - balance
Dest/Mask
Pref
Next-Hop
Med
Local-pref
Origin
As-path
-------------------------------------------------------------------#^
1.0.0.0/8
256
172.10.0.2
100
IGP
#^
2.0.0.0/8
256
172.10.0.2
100
IGP
View
Any view
Parameter
community-list-number: Specify a community-list.
whole-match: Configure to display the exactly matched routes.
Description
Using display bgp routing-table community-list command, you can view the routing
information matching the specified BGP community list.
Example
# Display the routing information matching BGP community list 1.
[Quidway] display bgp routing-table community-list 1
Flags:
# - valid
^ - active
I - internal
D - damped
H - history
S - aggregate suppressed
B - balance
Destination/Mask
Pref
Next-hop
Med
Local-Pref
Origin
As-Path
------------------------------------------------------------------1.1.1.0/24
256
10.10.10.1
IGP
200
1.1.2.0/24
256
10.10.10.1
IGP
200
1.1.3.0/24
256
10.10.10.1
IGP
200
2.2.3.0/24
256
10.10.10.1
INC
200
4.4.4.0/24
256
10.10.10.1
INC
200
9.9.9.0/24
256
10.10.10.1
INC
200
10.10.10.0/24 0
10.10.10.2
IGP
10.10.10.0/24 256
10.10.10.1
IGP
View
Any view
Parameter
None
200
Description
Using display bgp routing-table dampened command, you can view BGP dampened
routes.
Example
# View BGP dampened information.
<Quidway> display bgp routing-table dampened
Flags:
# - valid
^ - active
I - internal
D - damped
H - history
S - aggregate suppressed
B - balance
Dest/Mask
Source
Damping-limit
Origin
As-path
----------------------------------------------------------------#D
11.1.0.0/16
133.1.1.2
1:20:00
IGP
200
Description
State flags:
# - valid (valid)
^ - active (selected)
Flags
D damped (discarded)
H history (history)
I internal (interior gateway protocol)
S - aggregate suppressed (suppressed)
B - balance
#D
Dest/Mask
Source
Damping-li
mit
The time before dampening turns invalid and the route can be
reused.
Item
Description
Origin attribute of route, which indicates that the route updates its
origin relative to the route originating it from AS. It has three optional
values:
IGP
EGP
INC
Origin
As-path
AS-path attribute of route, which records all AS areas that the route
passes. With it, route loop can be avoided
View
Any view
Parameter
None
Description
Using display bgp routing-table different-origin-as command, you can view routes
that have different source autonomous systems
Example
# View the routes that have different source ASs.
<Quidway> display bgp routing-table different-origin-as
Flags:
# - valid
^ - active
I - internal
D - damped
H - history
S - aggregate suppressed
B - balance
Destination/Mask
Pref
Next-hop
Med
Local-Pref
Origin
As-Path
-----------------------------------------------------------------10.10.10.0/24
10.10.10.2
IGP
10.10.10.0/24
256
10.10.10.1
IGP
200
View
Any view
Parameter
as-regular-expression: The route flap-info matching AS path regular expression.
acl-number: Number of the specified AS path to be matched, ranging from 1 to 199.
network-address: Network IP address related to the dampening information to be
shown
mask: Network mask.
longer-match: Show the route flap-info that is more specific than address, mask.
Description
Using display bgp routing-table flap-info command, you can view BGP flap-info.
Example
# Display BGP flap-info.
<Quidway> display bgp routing-table flap-info
Flags:
# - valid
^ - active
I - internal
D - damped
H - history
S - aggregate suppressed
B - balance
Dest/Mask
-------------------------------------------------------------------#D
11.1.0.0/16 133.1.1.2
48
1:20:30
IGP
200
Description
State flags:
# - valid (valid)
^ - active (selected)
Flags
D damped (discarded)
H history (history)
I internal (interior gateway protocol)
S - aggregate suppressed (suppressed)
B balance
#D
Dest/Mask
Source
Keepup-time
Damping-lim
it
The time before dampening turns invalid and the route can be
reused.
Flap-times
EGP
INC
Origin
As-path
AS-path attribute of route, which records all AS areas that the route
passes. With it, route loop can be avoided
View
Any view
Huawei Technologies Proprietary
5-23
Parameter
peer-address: Specifies the peer to be displayed.
advertised: Routing information advertised by the specified peer.
received: Routing information the specified peer received.
network-address mask : IP address and address mask of destination network.
statistic: Statistic routing information of peer.
Description
Using display bgp routing-table peer command, you can view the routing information
the specified BGP peer advertised or received.
Example
# Display the routing information advertised by BGP peer 1.1.1.2.
<Quidway> display bgp routing table peer 1.1.1.2 advertised
Dest/Mask
Next-hop
Med
Local-pref
Origin As-path
1.1.1.1
100
INC
Here, Appendat Flags indicates the appended flag, @ the route to be sent, ! the
reachable route, and ~ to cancel route. For detailed description of the output
information, see Table 5-6.
View
Any view
Parameter
as-regular-expression: Matched AS regular expression.
Description
Using display bgp routing-table regular-expression command, you can view the
routing information matching the specified AS regular expression
Example
# Display the routing information matched with ^200$.
# - valid
^ - active
I - internal
D - damped
H - history
S - aggregate suppressed
B - balance
Destination/Mask Pref
Next-hop
Med
Local-Pref Origin
AS-Path
-------------------------------------------------------------------1.1.1.0/24
256
10.10.10.1
IGP
200
1.1.2.0/24
256
10.10.10.1
IGP
200
1.1.3.0/24
256
10.10.10.1
IGP
200
2.2.3.0/24
256
10.10.10.1
INC
200
4.4.4.0/24
256
10.10.10.1
IGP
200
9.9.9.0/24
256
10.10.10.1
INC
200
10.10.10.1
IGP
200
10.10.10.0/24 256
View
Any view
Parameter
None
Description
Using display bgp routing-table statistic command, you can view the statistics of
BGP routing infomation.
Example
# Display the statistics of BGP routing information.
<Quidway> display bgp routing-table statistic
Routes total: 4
View
BGP view
Parameter
acl-number: Number of IP access control list.
ip-prefix-name: Name of ip prefix list. The length of ip-prefix-name ranges from 1 to 19
character string.
protocol: Specified protocols advertising routing information which include direct, ospf,
ospf-ase, ospf-nssa, rip, isis and static.
Description
Using filter-policy export command, you can filter the advertised routes and only the
routes passing the filter can be advertised by BGP. Using undo filter-policy export
command, you can cancel the filtration to the advertised routes.
By default, filtration to the received routing information is not configured.
If the parameter protocol is specified, only the imported route generated by the
specified protocol is filtered and the imported routes generated by other protocols are
not affected. If the parameter protocol is not specified, the imported route generated by
any protocol will be filtered.
Example
# Use ACL 2000 to filter the routing information advertised by BGP.
[Quidway-bgp] filter-policy 2000 export
View
BGP view
Parameter
acl-number: Number of IP access control list, ranging from 2000 to 3999.
ip-prefix-name: Name of address prefix list. The length of ip-prefix-name ranges from 1
to 19 character string.
Description
Using filter-policy gateway import command, you can filter the learned routing
information advertised by the peer with the specified address. Using undo filter-policy
gateway import command, you can cancel the filtration to the routing information
advertised by the peer with specified address.
Using filter-policy import command, you can filter the received global routing
information. Using undo filter-policy import command, you can remove the filtration
to the received global routing information.
By default, filtration to the received routing information is not configured.
This command can be used to filter the routes received by BGP and determines
whether to add the routes to the BGP routing table.
Example
# Use ACL 2000 to filter the routing information received by BGP.
[Quidway-bgp] filter-policy 2000 import
5.1.28 group
Syntax
group group-name [ internal | external ]
undo group group-name
View
BGP view
Parameter
group-name: Specify the name of the peer group. group-name is locally significant.
internal: Specify the type of the peer group as IBGP.
external: Specify the type of the peer group as EBGP.
Description
Using group group-name command, you can establish a peer group. Using undo
group group-name command, you can cancel the configured peer group.
The default type of BGP peer group is internal.
The external peer group members must be in the same network segment. Otherwise,
some EBGP peers may discard the transmitted route update.
Example
# Create a BGP group named test.
5.1.29 import-route
Syntax
import-route protocol [ med med-value | route-policy route-policy-name ]*
undo import-route protocol
View
BGP view
Parameter
protocol: Specify source routing protocols which can be imported, which include direct,
ospf, ospf-nssa , ospf-ase, rip, isis and static at present.
med med-value: Specify the MED value loaded by a redistributes route, ranging from 0
to 4294967295.
route-policy
route-policy-name:
Specify
route-policy.
The
length
of
Description
Using import-route command, you can import routes of other protocols. Using undo
import-route command, you can cancel redistributing routes of other protocols.
By default, BGP does not import routes of other protocols.
Example
# Import routes of RIP.
[Quidway-bgp] import-route rip
5.1.30 ip as-path-acl
Syntax
ip as-path-acl acl-number { permit | deny } as-regular-expression
undo ip as-path-acl acl-number
View
System view
Parameter
acl-number: Number of AS path list ranging from 1 to 199.
as-regular-expression: AS regular expression.
Description
Using ip as-path-acl command, you can configure an AS path regular express. Using
undo ip as-path-acl command, you can disable the defined regular expression.
The configured AS path list can be used in BGP policy.
For the related commands, see peer as-path-acl, display bgp routing-table
as-path-acl.
Example
# Configure an AS path list.
[Quidway] ip as-path-acl 10 permit 200,300
5.1.31 ip community-list
Syntax
ip community-list basic-comm-list-number { permit | deny } [ aa:nn | internet |
no-export-subconfed | no-advertise | no-export ]
ip community-list adv-comm-list-number { permit | deny } as-regular-expression
undo ip community-list { basic-comm-list-number | adv-comm-list-number }
View
System view
Parameter
basic-comm-list-number: Number of the basic community list ranging from 1 to 99.
adv-comm-list-number: Number of the advanced community list ranging from 100 to
199.
permit: Permit those that match conditions to access.
deny: Deny those that match conditions to access.
aa:nn: Community number.
internet: Advertise all routes.
no-export-subconfed: Used not to advertise the matched route beyond the
confederation.
no-advertise: Used not to send the matched route to any peer.
no-export: Does not announce the route to the AS or the association outside, but can
advertise to other sub-ASs.
as-regular-expression: Community attribute of the regular expression.
Description
Using ip community-list command, you can configure a BGP community list. Using
undo ip community-list command, you can cancel the configured BGP community
list.
The configured community list can be used in BGP policy.
For the related commands, see apply community, display bgp routing-table
community-list.
Example
# Define a community attribute list which does not advertise routes with the community
attribute beyond the confederation.
[Quidway] ip community-list 6 permit no-export-subconfed
5.1.32 network
Syntax
network ip-address [ address-mask ] [ route-policy route-policy-name ]
undo network ip-address [ address-mask ] [ route-policy route-policy-name ]
View
BGP view
Parameter
ip-address: Network address that BGP advertises.
address-mask: Mask of the network address.
route-policy-name: Route-policy applied to advertised routes. The length of
route-policy-name parameter ranges from 1 to 16 character string.
Description
Using network command, you can configure the network routes advertised by the local
BGP. Using undo network command, you can cancel the existing configuration.
By default, there is no networks sent through BGP
Example
# Advertise routes to network segment 10.0.0.0/16.
[Quidway-bgp] network 10.0.0.0 255.255.0.0
View
BGP view
Parameter
group-name: Name of peer group.
Description
Using peer advertise-community command, you can enable the transmission of the
community attribute to a peer group. Using undo peer advertise-community
command, you can cancel the existing configuration.
By default, the community attribute is not transmitted to any peer group.
For the related commands, see if-match community-list, apply community.
Example
# Transmit community attribute to the peer group name test.
[Quidway-bgp] peer test advertise-community
View
BGP view
Parameter
group-name: Specify name of the peer group.
peer-address: Specify IP address of the peer.
number: Specify the repeating times of local AS, ranging from 1 to 10.
Description
Using peer allow-as-loop command, you can configure the repeating time of local AS.
Using undo peer allow-as-loop command, you can remove the repeating time of local
AS.
For the related commands, see display current-configuration, display bgp
routing-table peer, display bgp routing-table group
Example
# Specify to configure the repeating times of local AS to 2.
[Quidway-bgp] peer 1.1.1.1 allow-as-loop 2
View
BGP view
Parameter
group-name: Name of peer group.
as-number: The AS number of the peer/peer group, the range is 1 to 65535.
Description
Using peer as-number command, you can configure the AS number of peer group.
Using undo peer as-number command, you can delete the AS number of peer group.
By default, no AS number of peer group is configured.
Example
# Specify the peer AS number for the peer test as 100.
[Quidway-bgp] peer test as-number 100
View
BGP view
Parameter
group-name: Specify name of the peer group.
acl-number: Specify the filter list number of an AS regular expression. The range is 1 to
199.
export: For the advertised routes.
Description
Using peer as-path-acl export command, you can configure filtering Policy of BGP
advertised routes based on AS path list. Using undo peer as-path-acl command, you
can cancel the existing configuration.
By default, the peer group has no AS path list.
This command can only be configured on peer group.
For the related commands, see peer as-path-acl import.
Example
# Set the AS path ACL of the peer group test.
[Quidway-bgp] peer test as-path-acl 3 export
View
BGP view
Parameter
group-name: Specify name of the peer group.
peer-address: Specify IP address of the peer.
acl-number: Specify the filter list number of an AS regular expression. The range is 1 to
199.
import: For the received routes.
Description
Using peer as-path-acl import command, you can configure filtering Policy of BGP
received routes based on AS path list. Using undo peer as-path-acl import command,
you can cancel the existing configuration.
By default, the peer/peer group has no AS path list.
For the related commands, see peer as-path-acl export.
Example
# Set the AS path ACL of the peer group test to filter BGP received routes.
[Quidway-bgp] peer test as-path-acl 2 import
View
BGP view
Parameter
group-name: Specified peer group.
peer-address: IP address of the peer.
interface-name: Interface name.
Description
Using peer connect-interface command, you can specify the source interface of a
route update packet. Using undo peer connect-interface command, you can restore
the best source interface.
By default, BGP uses the best source interface.
Usually, BGP uses the optimal route to update the source interface of the packets.
However, you can set the mode of the interface to Loopback in order to send route
updates even if the interface is not work normally.
Example
# Specify Vlan-interface1 as the source interface of a route update packet.
[Quidway-bgp] peer test connect-interface vlan-interface 1
View
BGP view
Parameter
group-name: Specify name of the peer group.
Description
Using peer default-route-advertise command, you can configure a peer group to
generate a default route for a peer. Using undo peer default-route-advertise
command, you can cancel the existing configuration.
By default, a peer group does not import the default route.
For this command, no default route needs to exist in the routing table. A default route is
sent unconditionally to a peer with the next hop as itself.
For the related commands, see default-route-advertise. .
Example
# Configure a peer group named test to generate a default route.
[Quidway-bgp] peer test default-route-advertise
View
BGP view
Parameter
group-name: group name.
peer-address: address of the peer.
description-line: description information configured, which can be letters or figures.
Description
Using peer description command, you can configure the description information of the
peer/peer group. Using undo peer description command, you can cancel the
description information of the peer/peer group.
By default, description information of peers/peer group is not configured.
For the related commands, see display current-configuration, display bgp
routing-table peer, display bgp routing-table group.
Example
# Configure the description information of the peer whose name is group1 as beijing1.
[Quidway-bgp] peer group1 description beijing1
View
BGP view
Parameter
group-name: Specify Name of the peer group.
ttl: Maximum hop value. The range is 1 to 255. By default, the value is 64.
Description
Using peer ebgp-max-hop command, you can allow to establishing EBGP connection
with the peer on indirectly connected network. Using undo peer ebgp-max-hop
command, you can cancel the existing configuration.
By default, this feature is disabled.
Example
# Allow to establishing EBGP connection with the peer group named test indirectly
connected.
[Quidway-bgp] peer test ebgp-max-hop
View
BGP view
Parameter
group-name: Specify the name of the peer group which specifies the entire peer group.
peer-address: IP address of a peer, which specifies a certain peer.
Description
Using peer enable command, you can enable the specified peer/peer group and
disable it by using undo peer enable command.
By default, BGP peer/peer group is enabled.
If the specified peer/peer group is disabled, the router will not exchange routing
information with the specified peer/peer group.
Example
# Disable the specified peer.
[Quidway-bgp] peer 18.10.0.9 group group1
[Quidway-bgp] undo peer 18.10.0.9 enable
View
BGP view
Parameter
group-name: Specify the name of the peer group.
peer-address: Specify the IP address of the peer.
acl-number: Specify an IP acl number, ranging from 2000 to 3999.
export: Egress filter policy.
Description
Using peer filter-policy export command, you can configure the filter-policy list of
routes advertised by a peer group. Using undo peer filter-policy export command,
you can cancel the existing configuration.
Huawei Technologies Proprietary
5-37
Example
# Set the filter-policy list of a peer group test.
[Quidway-bgp] peer test filter-policy 2000 export
View
BGP view
Parameter
group-name: Specify the name of the peer group.
peer-address: Specify the IP address of the peer.
acl-number: Specify an IP acl number, ranging from 2000 to 3999.
import: Ingress filter policy.
Description
Using peer filter-policy import command, you can configure the filter-policy list of the
routes received by a peer/peer group. Using undo peer filter-policy import command,
you can cancel the existing configuration.
By default, a peer/peer group has no access control list (acl).
For the related commands, see peer filter-policy export, ip as-path-acl, peer
as-path-acl export and peer as-path-acl import.
Example
# Set the filter-policy list of a peer group test.
[Quidway-bgp] peer test as-number 100
[Quidway-bgp] peer test filter-policy 2000 import
View
BGP view
Parameter
group-name: Specify the name of the peer group.
peer-address: Specify the IP address of the peer.
Description
Using peer group command, you can add a peer to the exsiting peer group. Using
undo peer group command, you can delete the specified peer.
When adding a peer to a EBGP peer group without AS number, you should also specify
the peers AS number. While adding a peer to a IBGP peer group or to a EBGP peer
group with AS number, you need not specify the AS number for the peer.
Example
# Add a peer to the peer group test.
[Quidway-bgp] group test
[Quidway-bgp] peer test as-number 2004
[Quidway-bgp] peer 10.1.1.1 group test
View
BGP view
Parameter
group-name: Name of peer group.
prefixname: Name of the specified ip-prefix.
export: Apply the filtering policy on the route transmitted to the specified peer/peer
group.
Description
Using peer ip-prefix export command, you can configure the route filtering policy of
routes advertised by the peer group based on the ip-prefix. Using undo peer ip-prefix
export command, you can cancel the route filtering policy of the peer/peer group based
on the ip-prefix.
By default, the route filtering policy of the peer group is not specified.
For the related commands, see ip ip-prefix, peer ip-prefix import.
Example
# Configure the route filtering policy of the peer group based on the ip-prefix 1.
[Quidway-bgp] peer group1 ip-prefix list1 export
View
BGP view
Parameter
group-name: Name of peer group.
peer-address: IP address of the peer.
prefixname: Name of the specified ip-prefix.
import: Apply the filtering policy on the route received by the specified peer/peer
group.
Description
Using peer ip-prefix import command, you can configure the route filtering policy of
routes received by the peer/peer group based on the ip-prefix. Using undo peer
ip-prefix import command, you can cancel the route filtering policy of the peer/peer
group based on the ip-prefix.
By default, the route filtering policy of the peer/peer group is not specified.
For the related commands, see ip ip-prefix, peer ip-prefix export.
Example
# Configure the route filtering policy of the peer group based on the ip-prefix 1.
[Quidway-bgp] peer group1 ip-prefix list1 import
View
BGP view
Parameter
group-name: Specify the name of the peer group.
Description
Using peer next-hop-local command, you can configure to perform the process of the
next hop in the route to be advertised to the peer group and take the address of itself as
the next hop. Using undo peer next-hop-local command, you can cancel the existing
configuration.
Example
# When BGP distributes the routes to the peer group test, it will take its own address
as the next hop.
[Quidway-bgp] peer test next-hop-local
View
BGP view
Parameter
group-name: Name of the peer group.
peer-address: IP address of the peer, in dotted decimal format.
cipher: Displays the configured password in cipher text mode.
simple: Displays the configured password in simple text mode.
password: Password in character string form with 1 to 16 characters when parameter
simple is configured in the command or in the event of inputting the password in simple
text mode but parameter cipher is configured in the command; with 24 characters in
the event of inputting the password in cipher text mode when parameter cipher is
configured in the command.
Description
Using the peer password command, you can configure MD5 authentication for BGP
during TCP connection setup. Using the undo peer password command, you can
cancel the configuration.
By default, BGP does not perform MD5 authentication when TCP connection is set up.
Once MD5 authentication is enabled, both parties involved in the authentication must
be configured with identical authentication modes and passwords. Otherwise, TCP
connection will not be set up because of the failed authentication.
This command is used to configure MD5 authentication for the specific peer only when
the peer group to which the peer belongs is not configured with MD5 authentication.
Otherwise, the peer should be consistent with the peer group.
Example
# Adopt MD5 authentication on the TCP connection set up between the local router at
10.1.100.1 and the peer router at 10.1.100.2.
[Quidway-bgp] peer 10.1.100.2 password simple huawei
# Perform the similar configuration on the peer.
[Quidway-bgp] peer 10.1.100.1 password simple huawei
View
BGP view
Parameter
group-name: Name of a peer group.
Description
Using peer public-as-only command, you can configure not to carry the AS number
when transmitting BGP update packets. Using undo peer public-as-only command,
you can configure to carry the AS number when transmitting BGP update packets.
By default, private AS number is carried when transmitting BGP update packets.
Generally, BGP transmits BGP update packets with the AS number (either public AS
number or private AS number). To enable some outbound routers to ignore the AS
number when transmitting update packets, you can configure not to carry the AS
number when transmitting BGP update packets.
Example
# Configure not to carry the private AS number when transmitting BGP update packets
to the peer named test.
[Quidway-bgp] peer test public-as-only
View
BGP view
Parameter
group-name: Name of peer group.
Description
Using peer reflect-client command, you can configure a peer group as the route
reflector client. Using undo peer reflect-client command, you can cancel the existing
configuration.
This command only applies to peer group.
For the related commands, see reflect between-clients, reflector cluster-id.
Example
# Configure the peer group test as the route reflector client.
[Quidway-bgp] peer test reflect-client
View
BGP view
Huawei Technologies Proprietary
5-43
Parameter
group-name: Name of peer group.
peer-address: IP address of the peer.
route-policy-name: The specified Route-policy. The length of route-policy-name
parameter ranges from 1 to 16 character string.
Description
Using peer route-policy export command, you can assign the Route-policy to the
routes advertised to the peer group. Using undo peer route-policy export command,
you can delete the specified Route-policy.
By default, the peer/peer group has no Route-policy association.
For the related commands, see peer route-policy import.
Example
# Apply the Route-policy named test-policy to the route coming from the peer/peer
group test.
[Quidway-bgp] peer test route-policy test-policy export
View
BGP view
Parameter
group-name: Name of peer group.
peer-address: IP address of the peer.
route-policy-name: The specified Route-policy. The length of route-policy-name
parameter ranges from 1 to 16 character string.
Description
Using peer route-policy import command, you can assign the Route-policy to the
route coming from the peer/peer group. Using undo peer route-policy import
command, you can delete the specified Route-policy.
By default, the peer/peer group has no Route-policy association.
For the related commands, see peer route-policy export.
Example
# Apply the Route-policy named test-policy to the route coming from the peer/peer
group test.
[Quidway-bgp] peer test route-policy test-policy import
View
BGP view
Parameter
group-name: Specify the name of the configured peer group.
seconds: The minimum interval of sending BGP update packets route. The range is 0 to
600. By default, the advertisement interval is: 5 seconds for internal peer/peer group,
and 30 seconds for external peer/peer group.
Description
Using peer route-update-interval command, you can configure the interval for the
transmission route of a peer group. Using undo peer route-update-interval command,
you can restore the interval to the default value.
Example
# Configure the interval of the BGP peer group test sending the route update packet
as 10 seconds.
[Quidway-bgp] peer test as-number 100
[Quidway-bgp] peer test route-update-interval 10
View
BGP view
Parameter
group-name: Name of peer group.
peer-address: IP address of the peer.
keepalive-interval: Keepalive interval to be specified. The range is 1 to 65535. By
default, its value is 60 seconds.
holdtime-interval: Holdtime interval to be specified. The range is 3 to 65535. By default,
its value is 180 seconds.
Description
Using peer timer command, you can configure the timers for a peer/peer group. Using
undo peer timer command, you can restore the timer to the default value.
The timer configured by using this command has a higher priority than the one
configured by using the timer command.
Example
# Configure Keepalive and Holdtime intervals of the peer group test.
[Quidway-bgp] peer test timer keep-alive 60 hold 180
5.1.56 preference
Syntax
preference ebgp-value ibgp-value local-value
undo preference
View
BGP view
Parameter
ebgp-value: Set preference value for routes learned from external peers.
ibgp-value: Set preference value for routes learned from internal peers.
local-value: Set preference value for local-origined routes.
The ebgp-value, ibgp-value and local-value parameters are in the range of 1 to 256. By
default, the first two is 256 and the last one is 130.
Description
Using preference command, you can configure BGP preference. Using undo
preference command, you can restore the default preference.
Three types of routes may be involved in BGP: routes learned from external peers,
routes learned from internal peers and local-origined routes. You can set preference
values for the three types of route.
You can set different BGP preference values for different sub address families.
Currently the system supports unicast and multicast address families.
Example
# Set the preferences of EBGP, IBGP and locally generated routes to 170.
[Quidway-bgp] preference 170 170 170
View
BGP view
Parameter
none
Description
Using reflect between-clients command, you can configure the between-client
reflection of a route. Using undo reflect between-clients command, you can disable
this function.
By default, the reflection between clients is enabled.
For the related commands, see reflector cluster-id, peer reflect-client.
Example
# Disable the reflection between clients.
[Quidway-bgp] undo reflect between-clients
View
BGP view
Parameter
cluster-id: Specify the cluster ID of the route reflector with the range from 1 to
4294967295.
address: Used as the interface address of the route reflectors cluster ID.
Description
Using reflector cluster-id command, you can configure the cluster ID of the route
reflector. Using undo reflector cluster-id command, you can delete the cluster ID of
the route reflector.
By default, each route reflector uses its Router ID as the cluster ID.
For the related commands, see reflect between-clients, peer reflect-client.
Example
# Set the cluster ID of the route reflector as 80.
[Quidway-bgp] reflector cluster-id 80
View
User view
Parameter
all: Reset all the connections with BGP.
peer-address: Reset connection with a specified BGP peer.
group-name: Reset connection with a specified BGP peer group.
import: Refresh the routes learned from the peers
export: Refresh routes advertised to the peers.
Description
Using refresh bgp peer-address command, you can refresh general BGP routes.
When BGP routing policy changes, it is required to re-compute associated route
information. This command can refresh general BGP routes.
Example
# Refresh all BGP routes.
<Quidway>refresh bgp all
View
User view
Parameter
peer-address: Reset connection with a specified BGP peer.
all: Reset all the connections with BGP.
flap-info: Reset the flap-info of a record at this peer address.
Description
Using reset bgp peer-address command, you can reset the connection of BGP with a
specified BGP peer.
Using reset bgp all command, you can reset all the connections with BGP.
Example
# Reset all the BGP connections to enable the new configuration (after configuring the
new Keepalive interval and Holdtime interval using the timer command).
<Quidway>reset bgp all
View
User view
Parameter
network-address: Network IP address related to the clearing attenuation information.
mask: Network mask.
Description
Using reset bgp dampening command, you can reset the attenuation information of a
route and release the suppression of a suppressed route.
For the related commands, see dampening, display bgp routing-table dampened.
Example
# Reset the route attenuation information of the specified route.
<Quidway>reset bgp dampening 20.1.0.0 255.255.0.0
View
User view
Parameter
regular-expression as-regular-expression: Reset the flap-info matching the AS path
regular expression.
as-path-acl acl-number: Reset the flap-info in consistency with a specified filter list.
The range of the parameter acl-number is 1 to 199.
network-address: Reset the flap-info of a record at this IP address.
mask: Network mask.
Description
Using reset bgp flap-info command, you can reset the flap-info of a route.
For the related commands, see dampening.
Example
# Reset the flap-info of all the routes that go through filter list 10.
<Quidway> reset bgp flap-info as-path-acl 10
View
User view
Parameter
group-name: Specify the name of the peer group.
Description
Using reset bgp group command, you can reset the connections between the BGP
and all the members of a group.
For the related commands, see peer group.
Example
# Reset BGP connections of all members from group1.
<Quidway> reset bgp group group1
5.1.64 summary
Syntax
summary
undo summary
View
BGP view
Parameter
none
Description
Using summary command, you can configure auto aggregation of sub-network routes
and disable it by using undo summary command,.
By default, no auto aggregation of sub-network routes is executed.
After the summary is configured, BGP cannot receive the sub-network routes imported
from the IGP, so the amount of the routing information can be reduced.
Example
# Make the auto aggregation of the sub-network routes.
[Quidway-bgp] summary
5.1.65 timer
Syntax
timer keep-alive keepalive-interval hold holdtime-interval
undo timer
View
BGP view
Parameter
keepalive-interval: Set the interval time value for keepalive time. The range is 1 to
65535. By default, its value is 60 seconds.
holdtime-interval: Set the interval time value for hold time. The range is 3 to 65535. By
default, its value is 180 seconds.
Description
Using timer command, you can configure the Keep-alive and Hold-time timer of BGP.
Using undo timer command, you can restore the default value of the Keep-alive and
Hold-time of the timer.
Example
# Configure the Keep-alive timer as 30 seconds and Hold-time timer as 90 seconds.
[Quidway-bgp] timer keep-alive 30 hold 90
View
BGP view
Parameter
none
Description
Using undo synchronization command, you can cancel the synchronization of BGP
and IGP.
By default, BGP doesnt synchronize with IGP.
If the local BGP is not set synchronous with the IGP and the next hop of the learned
BGP route is reachable, the local BGP will add this BGP route into its routing table
Huawei Technologies Proprietary
5-52
immediately after it learns the route, rather than waiting till the IGP also learns the
route.
This command means BGP does not synchronize with IGP in current system. You need
not configure it for S6500 Series Ethernet Switches dont support synchronization of
BGP and IGP at present.
Example
# Cancel the synchronization of BGP and IGP.
[Quidway-bgp] undo synchronization
Note:
When an Ethernet switch runs a routing protocol, it can perform the router functions.
Router that is referred to in the following and its icon represent a generalized router or
an Ethernet switch running routing protocols. To improve readability, this will not be
described in the other parts of the manual.
View
Route policy view
Parameter
as-number-1... as-number-n: AS number to be added.
Description
Using apply as-path command, you can configure AS number to be added in front of
the original AS path in Route-policy. Using undo apply as-path command, you can
cancel the AS sequence number added in front of the original AS path.
By default, no AS number is set.
If the match condition of Route-policy is matched, the AS attribute of the transmitting
route will be changed.
Example
# Configure AS 200 to be added in front of the original AS path in Route-policy.
[Quidway-route-policy] apply as-path 200
View
Route policy view
Parameter
aa:nn: Community number.
no-export-subconfed: Not sending matched route outside AS.
no-advertise: Not sending matched route to any peer.
no-export: Does not announce the route to the AS or the association outside, but can
advertises to other sub-ASs.
additive: Additional known community attribute.
none: Deleted route community attribute.
Description
Using apply community command, you can configure the set BGP community
attribute of Route-policy. Using undo apply community command, you can cancel the
set BGP community attribute.
By default, BGP community attribute is not set.
For the related commands, see ip community-list, if-match community-list,
route-policy, display bgp routing-table community.
Example
# Configure one Route-policy applycommunity, whose node serial number is 16 and
match mode is permit, and enter Route policy view to set match conditions and attribute
modification actions to be executed.
[Quidway] route-policy applycommunity permit node 16
[Quidway-route-policy] if-match as-path 8
[Quidway-route-policy] apply community no-export
View
Route policy view
Parameter
value: Specify the route cost value of route information.
Description
Using apply cost command, you can configure the route cost value of route
information. This command is one attribute apply sub-statements of Route-policy.
Using undo apply cost command, you can cancel the apply sub-statement.
For the related commands, see if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match cost, if-match tag, route-policy, apply ip next-hop,
apply local-preference, apply origin and apply tag.
Example
# Define one apply sub-statement. When it is used for setting route information attribute,
it sets the route metric value of route information as 120.
[Quidway-route-policy] apply cost 120
View
Route policy View
Parameter
internal: Use the cost type of IGP as MED value of BGP to advertise route to EBGP
peer.
external: external cost type of IS-IS.
Description
Using apply cost-type command, you can configure the route cost type of route
information. This command is one attribute apply sub-statements of Route-policy.
Using undo apply cost-type command, you can cancel the apply sub-statement.
By default, route cost type is not set.
Example
# Set the cost type of IGP as MED value of BGP to advertise route to EBGP peer.
[Quidway-route-policy] apply cost-type internal
View
Route policy view
Parameter
ip-address: The next-hop address.
Description
Using apply ip next-hop command, you can configure the next hop address of route
information. This command is one attribute apply sub-statements of Route-policy.
Using undo apply ip next-hop command, you can cancel the apply sub-statement.
By default, no apply sub-statement is defined.
When it is used for setting route information attribute, it sets the next hop address area
of route information passing filtration.
For the related commands, see if-match interface, if-match acl, if-match ip-prefix,
if-match
ip
next-hop,
if-match
cost,
if-match
tag,
route-policy,
apply
Example
# Set the next hop address of route information as 193.1.1.8 when it is used for setting
route information attribute.
[Quidway-route-policy] apply ip next-hop 193.1.1.8
View
Route policy view
Parameter
level-1: Set to import the matched route to level-1 area.
level-2: Set to import the matched route to level-2 area.
level-1-2: Set to import the matched route to both level-1 and levle-2 area.
Description
Using apply isis command, you can configure to apply the level of a matched route to
be imported to level-1, level-2 or level-1-2. Using undo apply isis command, you can
cancel the apply sub-statement.
By default, no apply clause is defined.
For the related commands, see if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match cost, if-match tag, route-policy, apply ip next-hop,
apply cost, apply origin, apply tag.
Example
# Define a set clause, setting to import the route to level-2.
[Quidway-route-policy] apply isis level-2
View
Route policy view
Parameter
local-preference: New set local preference.
Description
Using apply local-preference command, you can configure to apply the local
preference of route information. This command is one apply sub-statements of
Route-policy attribute set. Using undo apply local-preference command, you can
cancel the apply sub-statement.
For the related commands, see if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match cost, if-match tag, route-policy, apply ip next-hop,
apply local-preference, apply origin and apply tag.
Example
# Apply the local preference level of route information as 130 when this apply
sub-statement is used for setting route information attribute. .
[Quidway-route-policy] apply local-preference 130
View
Route policy view
Parameter
igp: Set the BGP route information source as internal route
egp: Set the BGP route information source as external route
as-number: Specifies AS number of external route.
incomplete: Setting the BGP route information source as unknown source.
Description
Using apply origin command, which is one of attribute apply sub-statements of
Route-policy, you can configure to apply the route source. Using undo apply origin
command, you can cancel the apply sub-statement.
For the related commands, see if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match cost, if-match tag, route-policy, apply ip next-hop,
apply local-preference, apply cost and apply tag.
Example
# Define one apply sub-statement. When it is used for setting route information attribute,
it sets the route source of BGP route information as igp.
Huawei Technologies Proprietary
6-6
View
Route policy view
Parameter
value: Specifies the tag value of route information.
Description
Using apply tag command, you can configure to set the tag area of OSPF route
information. This command is one of attribute apply sub-statements of Route-policy.
Using undo apply tag command, you can cancel the apply sub-statement.
For the related commands, see if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match cost, if-match tag, route-policy, apply ip next-hop,
apply local-preference, apply cost and apply origin.
Example
# Define one apply sub-statement. When it is used for setting route information attribute,
it sets the tag area of route information as 100.
[Quidway-route-policy] apply tag 100
View
Any view
Parameter
ip-prefix-name: Specifies displayed address prefix list name. The length of
ip-prefix-name ranges from 1 to 19 character string.
Description
Using display ip ip-prefix command, you can view the address prefix list.
Example
# Display the information of the address prefix list named as p1.
<Quidway> display ip ip-prefix p1
name
index
conditions
ip-prefix / mask
GE
LE
p1
10
permit
10.1.0.0/16
17
18
Description
name
Name of ip-prefix
index
conditions
ip-prefix / mask
GE
LE
View
Any view
Parameter
route-policy-name:
Specifies
displayed
Route-policy
name.
The
length
Description
Using display route-policy command, you can view the configured Route-policy
For the related commands, see route-policy.
Example
# Display the information of Route-policy named as policy1.
<Quidway> display route-policy policy1
Route-policy : policy1
Permit 10 : if-match (prefixlist) p1
of
denied : 0
Description
Name of ip-prefix
Information of the route-policy with mode configured as permit and
node as 10:
if-match
(prefixlist) p1
Permit 10
matched
denied
View
Routing protocol view
Parameter
acl-number: Number of the access control list used for matching the destination
address field of the routing information.
ip-prefix-name: Address prefix list used for matching the routing information destination
address field. The length of ip-prefix-name ranges from 1 to 19 character string.
protocol: The routing information of which kind of route protocol to be filtered.
Description
Using filter-policy export command, you can configure to set the filtering conditions of
the routing information advertised by a certain type of routing protocols. Using undo
filter-policy export command, you can cancel the filtering conditions set.
By default, the advertised routing information is not filtered.
In some cases, it may be required that only the routing information meeting some
conditions can be advertised. Then, the filter-policy command can be used to set the
filtering conditions for the routing information to be advertised. Only the routing
information passing the filtration can be advertised.
For the related commands, see filter-policy import.
Example
# Define the filtering rules for advertising the routing information of RIP. Only the routing
information passing the filtering of address prefix list p1 will be advertised by RIP.
[Quidway-rip] filter-policy ip-prefix p1 export
View
Routing protocol view
Parameter
acl-number: The access control list number used for matching the destination address
field of the routing information.
ip-prefix ip-prefix-name: The prefix address list name. Its matching object is the
destination address field of the routing information. The length of ip-prefix-name ranges
from 1 to 19 character string.
gateway ip-prefix-name: The prefix address list name of the neighbor router address.
Its matching object is the routing information advertised by the specified neighbor
router.
Description
Using filter-policy gateway import command, you can filter the received routing
information advertised by a specified router. Using undo filter-policy gateway import
command, you can cancel the setting of the filtering condition.
Using filter-policy import command, you can set the condition for filtering the routing
information. Using undo filter-policy import command, you can cancel the setting of
filter condition
By default, the received routing information is not filtered.
In some cases, it may be required that only the routing information meeting some
conditions can be received. Then, the filter-policy command can be used to set the
filtering conditions for the routing information to be advertised. Only the routing
information passing the filtration can be received.
For the related commands, see filter-policy export.
Example
# Define the filtering rule for receiving routing information of RIP. Only the routing
information filtered through the address prefix list p1 can be received by RIP.
[Quidway-rip] filter-policy ip-prefix p1 import
View
Route policy view
Parameter
acl-number: Specify the number of the access control list used for filtration.
ip-prefix-name: Specify the prefix address list used for filtration. The length of
ip-prefix-name ranges from 1 to 19 character string.
Description
Using if-match { acl | ip-prefix } command, you can configure the IP address range to
match the Route-policy. Using undo if-match { acl | ip-prefix } command, you can
cancel the setting of the match rule.
Filtration is performed by quoting an ACL or a prefix address list.
For the related commands, see if-match interface, if-match ip next-hop, if-match
cost, if-match tag, route-policy, apply ip next-hop, apply cost, apply
local-preference, apply origin and apply tag.
Example
# Define one if-match sub-statement. When the sub-statement is used for filtering route
information, the route information filtered by route destination address through address
prefix list p1 is enable to pass the if-match sub-statement.
[Quidway-route-policy] if-match ip-prefix p1
View
Route policy view
Parameter
acl-number: AS path based access control list number, ranging from 1 to 199.
Description
Using the if-match as-path command, you can match the AS path domain of the BGP
routing information; using the undo if-match as-path command, you can cancel the
match of AS path domain.
By default, AS path list number is not matched.
Example
# An as-path numbered as 2 is defined first, allowing the routing information of AS 100
and 200. Then the route-policy named test is defined. The node No.10 of this
route-policy defines a if-match sub-statement, which quotes the definition of as-path.
[Quidway] ip as-path-acl 2 permit 100:200
[Quidway] route-policy test permit node 10
[Quidway-route-policy] if-match as-path 2
community
basic-community-number
whole-match
adv-community-number }
undo if-match community
View
Route policy view
Parameter
basic-community-list-number: Basic community list number, ranging from 1 to 99.
adv-community-list-number: Advanced community list number, ranging from 100 to
199.
Description
Using if-match community command, you can match the community attribute of the
BGP information. Using undo if-match community command, you can cancel the
match of the community attribute.
This if-match sub-statement of route-policy is used to filter BGP routing information.
The match condition is specified according to the community attributes of the routing
information.
For the related commands, see route-policy, ip community-list.
Example
# A community-list numbered as 1 is defined first, allowing the autonomous system
number to contain the routing information of 100 and 200. Then, the route-policy named
test is defined. The node No.10 of the route-policy defines a if-match sub-statement,
which quotes the definition of the community-list.
[Quidway] ip community-list 1 permit 100:200
[Quidway] route-policy test permit node 10
[Quidway-route-policy] if-match community 1
View
Route policy view
Parameter
value: Specify the required route metric value, ranging from 0 to 4294967295.
Description
Using if-match cost command, you can configure one of the match rules of
route-policy to match the cost of the routing information. Using undo if-match cost
command, you can cancel the configuration of the match rule.
By default, no if-match sub-statement is defined.
For the related commands, see if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match tag, route-policy, apply ip next-hop, apply
local-preference, apply cost, apply origin, apply tag.
Example
# A if-match sub-statement is defined, which allows the routing information with routing
cost 8 to pass this if-match sub-statement.
[Quidway-route-policy] if-match cost 8
View
Route policy view
Parameter
interface-type: Specify interface type.
interface-number: Specify interface number.
interface-name: Specify interface name.
Description
Using if-match interface command, you can configure to match the route whose next
hop is designated interface. Using undo if-match interface command, you can cancel
the setting of matching condition.
By default, no if-match sub-statement is defined.
It matches the corresponding interface of route next hop when filtering route.
For the related commands, see if-match acl, if-match ip-prefix, if-match ip next-hop,
if-match cost, if-match tag, route-policy, apply ip next-hop, apply cost, apply
local-preference, apply origin and apply tag.
Example
# Define one if-match sub-statement to match the route whose next hop interface is
Vlan-interface 1
[Quidway-route-policy] if-match interface Vlan-interface 1
View
Route policy view
Parameter
acl-number: Specify the number of the access control list used for filtration. The range
is 2000 to 2999.
ip-prefix-name: Specify the name of the prefix address list used for filtration. The length
of ip-prefix-name ranges from 1 to 19 character string.
Description
Using if-match ip next-hop command, you can configure one of the match rules of
route-policy on the next hop address of the routing information. Using undo if-match ip
next-hop command, you can cancel the setting of ACL matching condition. Using
undo if-match ip next-hop ip-prefix command, you can cancel the setting of address
prefix list matching condition.
Filtration is performed by quoting an ACL or a address prefix list.
For the related commands, see if-match interface, if-match acl, if-match ip-prefix,
if-match cost, if-match tag, route-policy, apply ip next-hop, apply cost, apply
local-preference, apply origin and apply tag.
Example
# Define a if-match sub-statement. It permits the routing information, whose route next
hop address passes the filtration of the prefix address list p1, to pass this if-match
sub-statement.
[Quidway-route-policy] if-match ip next-hop ip-prefix p1
View
Route policy view
Parameter
value: Specify the value in tag field of OSPF route information.
Description
Using if-match tag command, you can configure to match the tag field of OSPF route
information. Using undo if-match tag command, you can cancel the existing matching
rules.
For the related commands, see if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match cost, route-policy, apply ip next-hop, apply cost,
apply local-preference, apply origin and apply tag.
Example
# Define one if-match sub-statement and enable the OSPF route information whose
value of tag is 8 to pass the if-match sub-statement.
[Quidway-route-policy] if-match tag 8
6.1.21 ip ip-prefix
Syntax
ip ip-prefix ip-prefix-name [ index index-number ] { permit | deny } network len
[ greater-equal greater-equal | less-equal less-equal ]
undo ip ip-prefix ip-prefix-name [ index index-number | permit | deny ]
View
System view
Parameter
ip-prefix-name: The specified address prefix list name. It identifies one address prefix
list uniquely. The length of ip-prefix-name ranges from 1 to 19 character string.
index-number: Identify an item in the prefix address list. The item with smaller
index-number will be tested first.
permit: Specify the match mode of the defined address prefix list items as permit
mode.
deny: Specify the match mode of the defined address prefix list items as deny mode.
network: The IP address prefix range (IP address). If it is 0.0.0.0 0, all the IP addresses
are matched.
len: The IP address prefix range (mask length). If it is 0.0.0.0 0, all the IP addresses are
matched.
greater-equal, less-equal: The 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 "larger 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
Using ip ip-prefix command, you can configure an address prefix list or one of its items,
which can also be deleted with undo ip ip-prefix command.
By default, theres no address prefix list.
The 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", i.e. passing an item means passing the filtering of this address prefix
list. Not passing the filtering of any item means not passing the filtration of 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 only matches the default route.
Example
# The prefix address list of this address indicates to match the bits 1 to 8 and the bits 17
to 18 for filtering the IP address with the bits 1 to 8 and the bits 17 to 18 of the specified
IP network segment 10.0.192.0.
[Quidway] ip ip-prefix p1 permit 10.0.192.0 8 greater-equal 17 less-equal 18
6.1.22 route-policy
Syntax
route-policy route-policy-name { permit | deny } node { node-number }
undo route-policy route-policy-name [ permit | deny | node node-number ]
View
System view
Parameter
route-policy-name: Specify the Route-policy name to identify one Route-policy uniquely.
The length of route-policy-name parameter ranges from 1 to 16 character string.
permit: Specify the match mode of the defined Route-policy node as permit mode.
deny: Specify the match mode of the defined Route-policy node as deny mode.
node: Node of the route policy.
node-number: Index of the node in the route-policy. When this route-policy is used for
routing information filtration, the node with smaller node-number will be tested first.
Huawei Technologies Proprietary
6-17
Description
Using route-policy command, you can create and enter the Route-policy view. Using
undo route-policy command, you can delete the established Route-policy.
By default, no Route-policy is defined.
Route-policy is used for route information filtration or route policy. One Route-policy
comprises of some nodes and each node comprises of some match and apply
sub-statements. The if-match sub-statement defines the match rules of this node and
the apply sub-statement defines the actions after passing the filtration of this node. The
filtering relationship between the if-match sub-statements of the node is and, i.e., all
if-match sub-statements that meet the node. The filtering relation between Route-policy
nodes is "OR", i.e. passing the filtering of one node means passing the filtering of this
Route-policy. If the information doesnt pass the filtration of any nodes, it cannot pass
the filtration of this Route-policy.
For the related commands, see if-match interface, if-match acl, if-match ip-prefix,
if-match ip next-hop, if-match cost, if-match tag, apply ip next-hop, apply
local-preference, apply cost, apply origin and apply tag.
Example
# Configured one Route-policy policy1, whose node number is 10 and if-match mode is
permit, and enter Route policy view.
[Quidway] route-policy policy1 permit node 10
[Quidway-route-policy]
Mode
Any view
Parameter
slot-number: View the memory setting of the specified slot.
Description
Using display memory command, you can view the memory setting.
Example
# Display the current memory setting.
<Quidway> display memory
System Total Memory(bytes): 203563008
Total Used Memory(bytes): 77852012
Used Rate: 38%
Description
System
Total
Memory(bytes)
Total
Used
Memory(bytes)
Used Rate
Mode
Any view
Parameter
None
Description
Using display memory limit command, you can view the memory setting and state
information related to the Ethernet switch capacity, including available memory and
state information about connections such as times for disconnecting connections, times
for reestablishing connections and whether or not the current system is in the emergent
state.
Example
# Display the current memory setting and state information.
<Quidway> display memory limit
Current memory limit configuration information:
system memory safety: 40 (MBytes)
system memory limit: 30 (MBytes)
auto-establish enabled
The information displayed by this command includes the Ethernet switch memory limit,
the size of the idle memory, the times of the connection disconnecting, the times of the
connection reestablishment and the current state.
The displayed information is described specifically in the following table:
Table 7-2 The description for the information displayed by the display memory limit
command
Item
Description
system
safety
memory
system
limit
memory
auto-establish
enabled
Free Memory
The
times
disconnect: 0
of
The
times
reconnect: 0
of
The current state is normal. (If entering the emergent state, the
system will display "Exigence" )
View
System view
Parameter
safety safety-value: The safety value of the Ethernet switch idle memory, in the unit of
Mbytes. Its value range depends on the idle memory of the active Ethernet switch.
limit limit-value: The lower limit of the Ethernet switch idle memory, in the unit of
Mbytes. Its value range depends on the idle memory of the active Ethernet switch.
Description
Using memory limit limit-value command, you can configure the lower limit of the
Ethernet switch idle memory. When the idle memory of the Ethernet switch is less than
this limit, all the routing protocol connections will be disconnected forcibly. The
limit-value in the command must be less than the current idle memory safety value, and
otherwise the configuration will fail.
Using memory safety safety-value command, you can configure the safety value of
the Ethernet switch idle memory. If you use the memory auto-establish enable
command (the default configuration), the routing protocol connection that is forcibly
disconnected will automatically recover when the idle memory of the Ethernet switch
reaches this value. The safety-value in the command must be more than the current
idle memory lower limit, and otherwise the configuration will fail.
Using memory safety safety-value limit limit-value command, you can change both of
the safety value and lower limit of the Ethernet switch idle memory. The safety-value
must be more than the limit-value, otherwise the configuration will fail.
Using undo memory command, you can configure the safety value and the lower limit
of the Ethernet switch idle memory to the default configuration.
For the related commands, see memory auto-establish disable, memory
auto-establish enable and display memory limit.
Example
# Set the lower limit of the Ethernet switch idle memory to 2Mbytes and the safety value
to 4Mbytes.
[Quidway] memory safety 4 limit 2
View
System view
Parameter
none
Description
Using memory auto-establish disable command, you can disable the routing protocol
connection that is forcibly disconnected to recover automatically when the idle memory
of the Ethernet switch reaches this value. Thus, connections of all the routing protocols
will not recover when the idle memory of the Ethernet switch recovers to a safety value.
In this case, you need to restart the routing protocol to recover the connections.
By default, when the idle memory of the Ethernet switch recovers to a safety value,
connections of all the routing protocols will always recover (when the idle memory of
the Ethernet switch reduces to a lower limit, the connection will be disconnected
forcibly).
You shall use the command cautiously.
Huawei Technologies Proprietary
7-4
For the related commands, see memory auto-establish enable, memory { safety |
limit }, display memory limit.
Example
# Disable memory resume of the current Ethernet switch and recover connections of all
the protocols automatically.
[Quidway] memory auto-establish disable
View
System view
Parameter
None
Description
Using memory auto-establish enable command, the routing protocol connection that
is forcibly disconnected to recover automatically when the idle memory of the Ethernet
switch reaches this value.
By default, when the idle memory of the Ethernet switch recovers to a safety value,
connections of all the routing protocols will always recover (when the idle memory of
the Ethernet switch reduces to a lower limit, the connection will be disconnected
forcibly).
For the related commands, see memory auto-establish disable, memory { safety |
limit }, display memory limit.
Example
# Enable memory resume of the current Ethernet switch and recover connections of all
the protocols automatically.
[Quidway] memory auto-establish enable
HUAWEI
Multicast Protocol
Table of Contents
Table of Contents
Chapter 1 GMRP Configuration Commands............................................................................... 1-1
1.1 GMRP Configuration Commands ...................................................................................... 1-1
1.1.1 debugging gmrp ...................................................................................................... 1-1
1.1.2 display gmrp statistics ............................................................................................. 1-1
1.1.3 display gmrp status ................................................................................................. 1-2
1.1.4 gmrp ........................................................................................................................ 1-3
Chapter 2 IGMP Snooping Configuration Commands............................................................... 2-1
2.1 IGMP Snooping Configuration Commands ....................................................................... 2-1
2.1.1 display igmp-snooping configuration....................................................................... 2-1
2.1.2 display igmp-snooping group .................................................................................. 2-2
2.1.3 display igmp-snooping statistics.............................................................................. 2-3
2.1.4 igmp-snooping......................................................................................................... 2-3
2.1.5 igmp-snooping host-aging-time............................................................................... 2-4
2.1.6 igmp-snooping max-response-time......................................................................... 2-5
2.1.7 igmp-snooping router-aging-time ............................................................................ 2-6
2.1.8 reset igmp-snooping statistics................................................................................. 2-6
Chapter 3 Multicast Common Configuration Commands ......................................................... 3-1
3.1 Multicast Common Configuration Commands ................................................................... 3-1
3.1.1 debugging multicast forwarding .............................................................................. 3-1
3.1.2 debugging multicast kernel-routing ......................................................................... 3-2
3.1.3 debugging multicast status-forwarding ................................................................... 3-2
3.1.4 display multicast forwarding-table ........................................................................... 3-3
3.1.5 display multicast routing-table................................................................................. 3-4
3.1.6 multicast route-limit ................................................................................................. 3-6
3.1.7 multicast routing-enable .......................................................................................... 3-6
3.1.8 reset multicast forwarding-table .............................................................................. 3-7
3.1.9 reset multicast routing-table .................................................................................... 3-8
Chapter 4 IGMP Configuration Commands ................................................................................ 4-1
4.1 IGMP Configuration Commands........................................................................................ 4-1
4.1.1 debugging igmp....................................................................................................... 4-1
4.1.2 display igmp group .................................................................................................. 4-2
4.1.3 display igmp interface ............................................................................................. 4-3
4.1.4 igmp enable............................................................................................................. 4-3
4.1.5 igmp group-limit....................................................................................................... 4-4
4.1.6 igmp group-policy .................................................................................................... 4-5
4.1.7 igmp group-policy vlan ............................................................................................ 4-6
4.1.8 igmp host-join .......................................................................................................... 4-7
Huawei Technologies Proprietary
i
Table of Contents
View
User view
Parameter
event: GMRP event.
packet: GMRP packet.
Description
Using debugging gmrp command, you can enable GMRP debugging. Using undo
debugging gmrp you can disable GMRP debugging.
When IGMP-snooping is enabled on the switch, you can view these contents of the
IGMP snooping configuration: IGMP Snooping enabled or not, aging time of the port,
maximum query response time, aging time of the multicast port.
For the related command, see igmp-snooping.
Example
# Enable GMRP event debugging.
<Quidway> debugging gmrp event
GMRP: Max number of GMRP entries reached
View
Any view
Parameter
interface interface-list: Specifies Ethernet port list, expressed as interface-list =
{ { interface_type interface_num | interface_name } [ to { interface_type interface_num
| interface_name } ] }&<1-10>. For meanings and value ranges of interface-type,
interface-number and interface-name, refer to the syntax description in the Port
Configuration of this manual.
Description
Using display gmrp statistics command, you can view the statistics information about
GMRP.
This command is used for displaying the statistics information about GMRP, including
the list of ports with GMRP enabled, GMRP status information, GMRP failed
registrations and last origin of GMRP packet data unit (PDU).
Example
# Display the statistics information about GMRP on Ethernet 2/0/1.
<Quidway> display gmrp statistics interface Ethernet 2/0/1
GMRP statistics on port Ethernet2/0/1
Gmrp Status
: Enabled
: 0000-0000-0000
View
Any view
Parameter
None
Description
Using display gmrp status command, you can view the status of global GMRP.
This command can be used for displaying the enabled/disabled status of global GMRP.
Example
# Display the status of global GMRP.
<Quidway> display gmrp status
GMRP is enabled
Description
GMRP is enabled
1.1.4 gmrp
Syntax
gmrp
undo gmrp
View
System view/Ethernet port view
Parameter
None
Description
Using gmrp command, you can enable global GMRP or enable GMRP on a port. Using
undo gmrp command, you can configure the GMRP back to the default setting,
namely disabled.
By default, GMRP is disabled
Executed in system view, this command will enable the global GMRP. After performing
this command in Ethernet port view, GMRP will be enabled on a port.
Before enabling GMRP on a port, you shall enable GMRP globally.
For the related command, see display gmrp status, display gmrp statistics.
Example
# Enable GMRP globally.
[Quidway] gmrp
View
Any view
Parameter
None
Description
Using display igmp-snooping configuration command, you can view the IGMP
Snooping configuration information.
This command is used to display the IGMP Snooping configuration information of the
switch. The information displayed includes whether IGMP Snooping is enabled, router
port timeout, maximum response timeout of a query and the member port timeout.
For the related command, see igmp-snooping.
Example
# Display the IGMP Snooping configuration information of the switch.
<Quidway> display igmp-snooping configuration
Enable IGMP-Snooping.
The router port timeout is 105 second(s).
The max response timeout is 10 second(s).
The host port timeout is 260 second(s).
The information above tells us that: IGMP Snooping is enabled; the router port timer is
set to be 105 seconds; the max response timer is set to be 10 seconds; the aging timer
of multicast group member is set to be 260 seconds.
View
Any view
Parameter
vlan vlan_id: Specifies the VLAN where the multicast group to be viewed is located.
When the parameter is omitted, the command will display the information about all the
multicast groups on the VLAN.
Description
Using display igmp-snooping group command, you can view the IP multicast groups
and MAC multicast groups under VLAN.
This command displays the IP multicast group and MAC multicast group information of
a VLAN or all the VLAN where the Ethernet switch is located. It displays the information
such as VLAN ID, router port, IP multicast group address, member ports in the IP
multicast group, MAC multicast group, MAC multicast group address, and the member
ports in the MAC multicast group.
Example
# Display the multicast group information about VLAN2.
<Quidway> display igmp-snooping group vlan 2
***************Multicast group table***************
Vlan(id):2.
Router port(s):Ethernet0/1
IP group(s):the following ip group(s) match to one mac group.
IP group address:230.45.45.1
Member port(s):Ethernet0/12
MAC group(s):
MAC group address:01-00-5e-2d-2d-01
Member port(s):Ethernet0/12
View
Any view
Parameter
None
Description
Using display igmp-snooping statistics command, you can view the statistics
information on IGMP Snooping.
This command displays the statistics information about IGMP Snooping of Ethernet
switch. It displays the information such as number of received general IGMP query
packets, received IGMP specific query packets, received IGMP Version 1 and Version 2
report packets, received IGMP leave packets and error packets, and sent IGMP
specific query packets.
For the related command, see igmp-snooping.
Example
# Display statistics information about IGMP Snooping.
<Quidway> display igmp-snooping statistics
Received IGMP general query packet(s) number:0.
Received IGMP specific query packet(s) number:0.
Received IGMP V1 report packet(s) number:0.
Received IGMP V2 report packet(s) number:0.
Received IGMP leave packet(s) number:0.
Received error IGMP packet(s) number:0.
Sent IGMP specific query packet(s) number:0.
2.1.4 igmp-snooping
Syntax
igmp-snooping { enable | disable }
View
System view, VLAN view
Parameter
enable: Enables IGMP Snooping.
disable: Disables IGMP Snooping; By default, the switch disables IGMP Snooping
feature.
Description
Using igmp-snooping enable command, you can enable/disable IGMP Snooping.
Using igmp-snooping disable command, you can restore the default setting.
Caution:
z
IGMP Snooping and GMRP cannot run at the same time. You can check if GMRP is
running, using the display gmrp status command, in any view, before enabling
IGMP Snooping.
Although layer 2 and layer 3 multicast protocols can run together, they cannot run
on the same VLAN or its corresponding VLAN interface at the same time. For
example, if the layer 2 multicast protocol is enabled on a VLAN, then the layer 3
multicast protocol cannot operate on this VLAN, and vice versa.
IGMP Snooping functions only when it is enabled both in system view and in VLAN
view.
Example
# Enable IGMP Snooping on VLAN 100
[Quidway] igmp-snooping enable
[Quidway] vlan 100
[Quidway-vlan100] igmp-snooping enable
View
System view
Parameter
seconds: Specifies the port aging time of the multicast group member, ranging from 200
to 1000 and measured in seconds; By default, 260.
Description
Using igmp-snooping host-aging-time command, you can configure the port aging
time of the multicast group members. Using undo igmp-snooping host-aging-time
command, you can restore the default value.
This command is used to set the aging time of the multicast group member so that the
refresh frequency can be controlled. When the group members change frequently, the
aging time should be comparatively short, and vice versa.
For the related command, see igmp-snooping.
Example
# Set the aging time to 300 seconds.
[Quidway] igmp-snooping host-aging-time 300
View
System view
Parameter
seconds: Maximum response time for a query ranging from 1 to 25 and measured in
seconds; By default, 10 seconds.
Description
Using igmp-snooping max-response-time command, you can configure the
maximum
response
time
for
query.
Using
undo
igmp-snooping
Example
# Configure to respond the IGMP Snooping packet within 12s.
View
System view
Parameter
seconds: Specifies the router port aging time, ranging from 1 to 1000 measured in
seconds; By default, 105
Description
Using igmp-snooping router-aging-time command, you can configure the router port
aging time of IGMP Snooping. Using undo igmp-snooping router-aging-time
command, you can restore the default value.
The port here refers to the Ethernet switch port connected to the router. The Layer-2
Ethernet switch receives general query packets from the router via this port. The timer
should be set to about 2.5 times of the general query period of the router.
For
the
related
command,
see
igmp-snooping,
igmp-snooping
max-response-time.
Example
# Set the aging time of the IGMP Snooping router port to 300 seconds.
[Quidway] igmp-snooping router-aging-time 300
View
User view
Parameter
None
Description
Using reset igmp-snooping statistics command, you can reset the IGMP Snooping
statistics information.
For the related command, see igmp-snooping.
Example
# Clear IGMP Snooping statistics information.
<Quidway> reset igmp-snooping statistics
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.
View
User view
Parameter
None
Description
Using debugging multicast forwarding command, you can enable multicast packet
forwarding debugging functions. Using undo debugging multicast forwarding
command, you can disable the debugging functions.
By default, the debugging function is disabled.
Example
# Enable multicast packet forwarding debugging functions.
<Quidway> debugging multicast forwarding
View
User view
Parameter
None
Description
Using debugging multicast kernel-routing command, you can enable multicast
kernel routing debugging functions. Using undo debugging multicast kernel-routing
command, you can disable the debugging functions.
Example
# Enable multicast kernel routing debugging functions.
<Quidway> debugging multicast kernel-routing
View
User view
Parameter
None
Description
Using debugging multicast status-forwarding command, you can enable multicast
forwarding
status
debugging
functions.
Using
undo
debugging
Example
# Enable multicast forwarding status debugging functions.
<Quidway> debugging multicast status-forwarding
Huawei Technologies Proprietary
3-2
multicast
View
Any view
Parameter
group-address: Multicast group address, used to specify a multicast group, ranging
from 224.0.0.0 to 239.255.255.255.
source-address: Unicast IP address of the multicast source.
incoming-interface: Incoming interface of the multicast forwarding table.
register: Register interface of PIM-SM.
Description
Using display multicast forwarding-table command, you can view the information of
IP multicast forwarding table.
For the related command, see display multicast routing-table.
Example
# View the multicast forwarding table information.
<Quidway> display multicast forwarding-table
Multicast Forwarding Cache Table
Total 2 entries
Matched 2 entries
Description
Total 2 entries
00002
(4.4.4.4, 224.2.149.17)
(s,g)
01: Vlan-interface2
Matched 236 pkts(3267 bytes),
Wrong If 0 pkts
Forwarded
bytes)
236
pkts(3267
Matched 2 entries
View
Any view
Parameter
group-address: Multicast group address, used to specify a multicast group and display
the corresponding routing table information of the group. The value ranges from
224.0.0.0 to 239.255.255.255.
source-address: Unicast IP address of the multicast source.
incoming-interface: Incoming interface of the multicast route entry.
register: Register interface of PIM-SM.
Description
Using display multicast routing-table command, you can view the information of IP
multicast routing table.
This command displays the multicast routing table information, while the display
multicast forwarding-table command displays the multicast forwarding table
information.
Example
# View the route entry information 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
Description
Total 3 entries
3 entries in total
(4.4.4.4, 224.2.149.17)
(s, g)
Upstream interface:
Field
Description
Vlan-interface1(4.4.4.6)
Downstream interface list:
is 4.4.4.6).
Vlan-interface2(2.2.2.4),
Protocol 0x1: IGMP
Matched 3 entries
View
System view
Parameter
limit: Limits the capacity of multicast routing table, in the range of 0 to 1024
Description
Using multicast route-limit command, you can limit the capacity of multicast routing
table. When the preset capacity is exceeded, the router will discard new (S, G) protocol
and data packets. Using undo multicast route-limit command, you can restore the
limit to the default value.
By default, the capacity of multicast routing table is set to 512.
If the existing route entries exceed the capacity value you configured during using this
command, the system will not delete the existing entries, but prompts the information
Existing route entries exceed the configured capacity value.
The new configuration overwrites the old one if you run the command for a second
time.
Example
# Limit multicast routing table capacity at 256.
[Quidway] multicast route-limit 256
View
System view
Parameter
None
Description
Using multicast routing-enable command, you can enable IP multicast routing. Using
undo multicast routing-enable command, you can disable IP multicast routing.
By default, IP multicast routing is disabled.
The system will not forward any multicast packet when IP multicast routing is disabled.
For the related commands, see pim dm and pim sm.
Example
# Enable IP multicast routing.
<Quidway> system-view
[Quidway] multicast routing-enable
{ source-mask |
View
User view
Parameter
statistics: If it is selected, the system clears the statistic information of MFC forward
entries. Otherwise, the system clears MFC forward entries.
all: All MFC forward entries.
group-address: Specifies group address.
group-mask: Specifies Mask of group address
group-mask-length: Specifies mask length of group address.
source-address: Specifies source address.
source-mask: Specifies mask of source address.
Description
Using reset multicast forwarding-table command, you can clear MFC forwarding
entries or statistic information of MFC forwarding entries.
You can type in source address first and group address after in the command, as long
as they both are valid addresses. The system prompts error information if you type in
invalid addresses.
For the related commands, see reset pim routing-table, reset multicast
routing-table and display multicast forwarding-table.
Example
# Clear the forwarding entry with address of 225.5.4.3 from the MFC forwarding table.
<Quidway> reset multicast forwarding-table 225.5.4.3
# Clear statistic information of the forwarding entry with address of 225.5.4.3 from the
MFC forwarding table.
<Quidway> reset multicast forwarding-table statistics 225.5.4.3
View
User view
Parameter
all: All route entries in the core multicast routing table.
group-address: Specifies group address.
group-mask: Specifies Mask of group address
group-mask-length: Specifies mask length of group address.
source-address: Specifies source address.
source-mask: Specifies mask of source address.
source-mask-length: Specifies mask length of source address.
incoming-interface: Specifies incoming interface for the forward entry.
Huawei Technologies Proprietary
3-8
Description
Using reset multicast routing-table command, you can clear route entries from the
core multicast routing table, as well as MFC forwarding entries.
You can type in source address first and group address after in the command, as long
as they both are valid addresses. The system prompts error information if you type in
invalid addresses.
For the related commands, see reset pim routing-table, reset multicast
forwarding-table and display multicast forwarding-table.
Example
# Clear the route entry with address of 225.5.4.3 from the core multicast routing table.
<Quidway> reset multicast routing-table 225.5.4.3
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.
View
User view
Parameter
all: All the debugging information of IGMP.
event: Debugging information of IGMP event.
host: Debugging information of IGMP host.
packet: Debugging information of IGMP packets.
timer: Debugging information of IGMP timers.
Description
Using debugging igmp command, you can enable IGMP debugging functions. Using
undo debugging igmp command, you can disable the debugging functions.
By default, IGMP debugging functions are disabled.
Example
# Enable all IGMP debugging functions
<Quidway> debugging igmp all
View
Any view
Parameter
group-address: Address of the multicast group.
interface-type interface-number: Interface type and interface number of the router,
used to specify the specific interface.
Description
Using display igmp group command, you can 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 an interface. The information displayed contains the multicast
groups which are joined by the downstream hosts through IGMP or through command
line.
For the related command, see igmp host-join.
Example
# View the member information of multicast group in the system.
<Quidway> display igmp group
Total 1 IGMP group reported on this router.
Vlan-interface7 (90.7.1.1): No multicast-group joined
Vlan-interface9 (90.9.1.1): Total 1 IGMP Group reported on this interface:
Group Address
Last Reporter
Uptime
Expires
239.255.255.250
90.9.1.254
23:17:02
00:02:25
Description
Group address
Last Reporter
Uptime
Expires
View
Any view
Parameter
interface-type interface-number: Interface type and interface number of the router,
used to specify the interface. If the parameters are omitted, information about all the
interfaces running IGMP will be displayed.
Description
Using display igmp interface command, you can view the IGMP configuration and
running information on an interface.
Example
# View the IGMP configuration and running information of all 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
Value of startup query interval for IGMP(in seconds): 15
Value of last member query interval for IGMP(in seconds): 1
Value of query timeout for IGMP version 1(in seconds): 400
Policy to accept IGMP reports: none
Querier for IGMP: 10.153.17.99 (this router)
IGMP group limit is 1024
No IGMP group reported
View
Interface view
Parameter
None
Description
Using igmp enable command, you can enable IGMP on an interface. Using undo
igmp enable command, you can disable IGMP on the interface.
By default, IGMP is not enabled.
Only multicast function is enabled can the igmp enable command be executed. After
this, you can initiate IGMP feature configuration.
For the related command, see multicast routing-enable.
Example
# Enable IGMP on Vlan-interface 10.
[Quidway-Vlan-interface10] igmp enable
View
Interface view
Parameter
limit: Quantity of multicast groups, in the range of 0 to 1024.
Description
Using igmp group-limit command, you can limit multicast groups on an interface.
Using undo igmp group-limit command, you can restore the default setting.
By default, you can add up to 1024 IGMP groups on an interface.
If the existing IGMP groups exceed the quantity limit you configured during using this
command, the system will not delete the existing entries.
The new configuration overwrites the old one if you run the command for a second
time.
Example
# Limit the maximum IGMP groups at Vlan-interface10 to 100.
[Quidway-Vlan-interface10] igmp group-limit 100
View
Interface 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 as default.
port: Packets received and sent by the port(s) and applied to the conditions set by the
ACL will be filtered. And the port(s) must belong to the VLAN interface being configured
by this command.
Description
Using igmp group-policy command, you can set the filter of multicast groups on an
interface to control the accessing to the IP multicast groups. Using undo igmp
group-policy command, you can 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 interface is on to join some
multicast groups and receive the packets from the multicast groups, you can use this
command to limit the range of the multicast groups serviced by the interface.
For the related command, see igmp host-join, igmp host-join port, igmp host-join
vlan.
Example
# Configure the access-list 2000.
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 225.0.0.0 0.255.255.255
# Configure that only the hosts contained in the access-list 2000 connected to the
VLAN-interface10 can be added to the multicast group, which is configured to use
IGMP version 2.
[Quidway-vlan-interface10] igmp group-policy 2000 2
View
Ethernet port 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.
vlan_id: Specify the ID for the VLAN to which the port belongs.
Description
Using igmp group-policy vlan command, you can set the filter of multicast groups on
an port to control the accessing to the IP multicast groups. Using undo igmp
group-policy vlan command, you can 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.
For the related command, see igmp host-join, igmp host-join vlan, igmp host-join
port.
Example
# Configure that only the hosts contained in the access-list 2000 connected to the port
Ethernet0/1 in VLAN-interface10 can be added to the multicast group, which is
configured to use IGMP version 2.
[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
View
LoopBack interface view
Parameter
group-address: Multicast address of the multicast group that an interface will join.
Description
Using igmp host-join command, you can enable a LoopBack interface of an ethernet
switch to join a multicast group. Using undo igmp host-join command, you can
disable the configuration.
By default, a LoopBack interface does not join any multicast group.
For the related command, see igmp host-join port, igmp host-join vlan and igmp
group-policy.
Example
# Add LoopBack 0 to the multicast group at 225.0.0.1.
[Quidway-LoopBack0] igmp host-join 225.0.0.1
View
interface view
Parameter
group-address: Multicast address of the multicast group that an interface will join.
port: Specifies the port in the VLAN interface.
Description
Using igmp host-join port command, you can enable an port in the VLAN interface of
an ethernet switch to join a multicast group. Using undo igmp host-join port
command, you can disable the configuration.
By default, an interface does not join any multicast group.
For the related command, see igmp host-join vlan, igmp host-join and igmp
group-policy.
Example
# Add port Ethernet 0/1 in VLAN-interface10 to the multicast group at 225.0.0.1.
[Quidway-Vlan-interface10] igmp host-join 225.0.0.1 port Ethernet 0/1
View
Ethernet 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
Using igmp host-join vlan command, you can enable an port in the VLAN interface of
an ethernet switch to join a multicast group. Using undo igmp host-join vlan
command, you can disable the configuration.
By default, a port does not join any multicast group.
This command has the same function with the igmp host-join port command. Note
that the configured port must belong to the specified VLAN, and the IGMP protocol
must be enabled on this VLAN interface; otherwise, the configuration does not function.
For the related command, see igmp host-join port, igmp host-join, igmp
group-policy.
Example
# Add port Ethernet 0/1 in VLAN-interface10 to the multicast group at 225.0.0.1.
[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 host-join 225.0.0.1 vlan 10
View
Interface view
Parameter
seconds: Time interval before IGMP query router sends the IGMP group query
message after it receives the IGMP Leave message from the host. It is in the range of 1
to 5 seconds. By default, it is 1 second.
Description
Using igmp lastmember-queryinterval command, you can set the time interval before
IGMP query router sends the IGMP group query message after it receives the IGMP
Leave message from the host. Using undo igmp lastmember-queryinterval
command, you can restore the default value.
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 a IGMP
Leave message. When receiving the IGMP Leave message, IGMP query router must
send the IGMP group 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
specified group receive the IGMP query message from the IGMP query router, they will
sends 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
# Set the query interval at the Vlan-interface10 as 3 seconds.
[Quidway-Vlan-interface10] igmp lastmember-queryinterval 3
View
Interface 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
Using igmp max-response-time command, you can configure the maximum response
time contained in the IGMP query messages. Using undo igmp max-response-time
command, you can restore the default value.
The maximum query response time determines the period for a router to quickly detect
that there are no more directly connected group members in a LAN.
For the related command, see display igmp group.
Example
# Set the maximum response time carried in host-query message to 8 seconds.
[Quidway-Vlan-interface10] igmp max-response-time 8
View
Interface view
Parameter
robust-value: IGMP robust value, number of sending the IGMP group query message
after the IGMP query router receives the IGMP Leave message from the host. It is in
the range of 2 to 5. By default, it is 2.
Description
Using igmp robust-count command, you can set the number of sending the IGMP
group query message after the IGMP query router receives the IGMP Leave message
from the host. Using undo igmp robust-count command, you can restore the default
value.
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 a IGMP
Leave message. When receiving the IGMP Leave message, IGMP query router must
send the IGMP group 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
specified group receive the IGMP query message from the IGMP query router, they will
sends 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 lastmember-queryinterval and display igmp
interface.
Example
# Set the robust value at the Vlan-interface 10 as 3.
[Quidway-Vlan-interface10] igmp robust-count 3
View
Interface view
Parameter
seconds: IGMP querier present timer value in second ranging from 1 to 131070. By
default, the value is twice the value of IGMP query message interval, i.e., 120 seconds.
Description
Using igmp timer other-querier-present command, you can configure the timer of
presence of the IGMP querier. Using undo igmp timer other-querier-present
command, you can restore the default value.
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 query to be invalid and the router
itself becomes a querier.
In IGMP version 1, the selection of a query 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.
For the related commands, see igmp timer query and display igmp interface.
Example
# Set querier to expire after 300 seconds.
[Quidway-Vlan-interface10] igmp timer other-querier-present 300
View
Interface view
Parameter
seconds: Interval at which a router transmits IGMP query messages in second in the
range from 1 to 65535. By default, the value is 60 seconds.
Description
Using igmp timer query command, you can configure the interval at which a router
interface sends IGMP query messages. Using undo igmp timer query command, you
can restore the default value.
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
# Configure to transmit the host-query message every 150 seconds via
VLAN-interface2.
[Quidway-Vlan-interface2] igmp timer query 150
View
Interface view
Parameter
1: IGMP Version 1.
2: IGMP Version 2. By default, IGMP Version 2 is used.
Description
Using igmp version command, you can specify the version of IGMP that a router uses.
Using undo igmp version command, you can restore the default value.
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
# Run IGMP Version 1 on VLAN-interface10.
[Quidway-Vlan-interface10] igmp version 1
Huawei Technologies Proprietary
4-13
View
User view
Parameter
all: All IGMP groups.
interface interface-type interface-number: Interface type and interface number.
group-address: IGMP group address.
group-mask: Mask of IGMP group address.
Description
Using reset igmp group command, you can delete an existing IGMP group from the
interface. The deleted group can added again on the interface.
Example
# Delete all IGMP groups on all the interfaces.
<Quidway> reset igmp group all
# Delete all IGMP groups on the Vlan-interface10.
<Quidway> reset igmp group interface Vlan-interface10 all
# Delete the group 225.0.0.1 from the Vlan-interface10.
<Quidway> reset igmp group interface Vlan-interface10 225.0.0.1
# Delete the IGMP groups ranging from 225.1.1.0 to 225.1.1.255 on the
Vlan-interface10.
<Quidway> reset igmp group interface Vlan-interface10 225.1.1.0 255.255.255.0
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.
View
PIM view
Parameter
acl-number: ACL number imported in BSR filtering policy, in the range of 2000 to 2999.
Description
Using bsr-policy command, you can limit the range of legal BSRs to prevent BSR
proofing. Using undo bsr-policy command, you can 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.
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.
For the related commands, see acl and rule.
Example
# Configure BSR filtering policy on routers, only 101.1.1.1/32 can be BSR.
[Quidway-pim] bsr-policy 2000
[Quidway-pim] quit
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule 0 permit source 101.1.1.1 0
5.1.2 c-bsr
Syntax
c-bsr interface-type interface-number hash-mask-len [ priority ]
undo c-bsr
View
PIM view
Parameter
interface-type interface-number: Specifies the interface. The candidate BSR is
configured on the interface. PIM-SM must be enabled on the interface first.
hash-mask-len: Length of the mask. The value ranges from 0 to 32.
priority: Priority of the candidate BSR. The larger the value of the priority, the higher the
priority of the BSR. The value ranges from 0 to 255. By default, the priority is 0.
Description
Using c-bsr command, you can configure a candidate BSR. Using undo c-bsr
command, you can remove the candidate BSR configured.
By default, no candidate BSR is set.
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.
For the related command, see pim sm.
Example
# Configure the Ethernet switch as C-BSR with priority 2 (and the C-BSR address is
designated as the IP address of VLAN-interface10).
[Quidway] pim
[Quidway-pim] c-bsr vlan-interface 10 24 2
5.1.3 c-rp
Syntax
c-rp
interface-type
interface-number
group-policy
acl-number
priority
priority-value ]*
undo c-rp { interface-type interface-number | all }
View
PIM view
Parameter
interface-type interface-number: Specifies interface with the IP address advertised as a
candidate RP address.
acl-number: Number of the basic ACL that defines a group range, which is the service
range of the advertised RP. The value ranges from 2000 to 2999.
priority-value: Priority value of candidate RP, in the range of 0 to 255. By default, it is 0.
The greatest value corresponds to the lowest priority level
all: Remove all candidate RP configurations.
Description
Using c-rp command, you can configure the router to advertise itself as a candidate RP.
Using undo c-rp command, you can remove the configuration.
By default, no candidate RP is configured.
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.
Example
# Configure the Ethernet switch to advertise the BSR that he 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] 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
5.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
Using crp-policy command, you can limit the range of legal C-RP, as well as target
service group range of each C-RP, prevent C-RP proofing. Using undo crp-policy
command, you can 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 unicasts 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
Huawei Technologies Proprietary
5-4
command, and the destination parameter as the service group range of this C-RP
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.
For the related commands, see 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-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
View
User view
Parameter
all: All the common debugging information of PIM.
event: Debugging information of common PIM event.
packet: Debugging information of PIM hello packet.
timer: Debugging information of common PIM timer.
Description
Using debugging pim common command, you can enable common PIM debugging
functions. Using undo debugging pim common command, you can disable the
debugging functions.
By default, common PIM debugging functions are disabled.
Example
# Enable all common PIM debugging functions
<Quidway> debugging pim common all
View
User view
Parameter
alert: Interoperation event debugging information of PIM-DM.
all: All the debugging information of PIM-DM.
mrt: Debugging information of PIM-DM multicast routing table.
timer: Debugging information of PIM-DM timer.
warning: Debugging information of PIM-DM warning message.
recv: Debugging information of PIM-DM receiving packets.
send: Debugging information of PIM-DM sending packets.
assert | graft | graft-ack | join | prune: Packets type.
Description
Using debugging pim dm command, you can enable PIM-DM debugging functions.
Using undo debugging pim dm command, you can disable the debugging functions.
By default, PIM-DM debugging functions are disabled.
Example
# Enable all PIM-DM debugging functions
<Quidway> debugging pim dm all
View
User view
Parameter
mbr: Debugging information of PIM-SM multicast border router event.
verbose: Debugging detail information of PIM-SM.
mrt: Debugging information of PIM-SM multicast routing table.
timer: Debugging information of PIM-SM timer.
warning: Debugging information of PIM-SM warning message.
recv: Debugging information of PIM-SM receiving packets.
send: Debugging information of PIM-SM sending packets.
assert | bootstrap | crpadv | reg | regstop | jp: Packets type
assert | bootstrap | crpadv | jp | reg | regstop: Packets type.
Description
Using debugging pim sm command, you can enable PIM-SM debugging functions.
Using undo debugging pim sm command, you can disable the debugging functions.
By default, PIM-SM debugging functions are disabled.
Example
# Enable all PIM-SM debugging functions
<Quidway> debugging pim sm all
View
Any view
Parameter
None
Description
Using display pim bsr-info command, you can view the BSR information.
For the related commands, see c-bsr and c-rp.
Example
<Quidway> display pim bsr-info
Current BSR Address: 20.20.20.30
Priority: 0
Mask Length: 30
Expires: 00:01:55
Local host is BSR
Description
BSR
Priority
Priority of BSR
Mask Length: 30
Length of mask
Expires: 00:01:55
Expire time
View
Any view
Parameter
interface-type interface-number: Interface type and interface number, used to specify
the interface.
Description
Using display pim interface command, you can view the PIM interface configuration
information.
Example
<Quidway> display pim interface
PIM information of VLAN-interface 2:
IP address of the interface is 10.10.1.20
PIM is enabled on interface
PIM version is 2
PIM mode is Sparse
PIM query interval is 30 seconds
Description
PIM version
Version of PIM
PIM mode
PIM DR
Designated router
View
Any view
Parameter
interface-type interface-number: Interface type and interface number, used to specify
the interface.
Description
Using display pim neighbor command, you can view the PIM neighbor information.
Example
<Quidway> display pim neighbor
Neighbor Address
Interface Name
8.8.8.6
VLAN-interface10
Uptime
1637
Expires
89
Description
Neighbor Address
Neighbor address
Interface
Field
Description
Uptime
Expires
View
Any view
Parameter
**rp: (*, *, RP) route entry.
*g: (*, G) route entry.
group-address: Address of the multicast group.
source-address: IP address of the multicast source.
incoming-interface interface-type interface-number: Route entry with the specified
incoming interface.
null: Specifies the incoming interface type as Null.
dense-mode: Specifies the multicast routing protocol as PIM-DM.
sparse-mode: Specifies the multicast routing protocol as PIM-SM.
Description
Using display pim routing-table command, you can view the contents of the PIM
multicast routing table.
For the related command, see display multicast routing-table.
Example
# View the contents of the PIM multicast routing table on the router.
<Quidway> display pim routing-table
PIM-SM Routing Table
Total 0 (*,*,RP)entry, 0 (*,G)entry, 2 (S,G)entries
(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
Description
RP
Rendezvous Point
(S,G)
PIM-SM
SPT
RPF
View
Any view
Parameter
group-address: Specifies the group address to display. If no multicast group is specified,
the RP information about all multicast groups will be displayed.
Description
Using display pim rp-info command, you can view the RP information of multicast
group.
In addition, this command can also display the BSR and static RP information.
Example
# View the RP information of multicast group
<Quidway> display pim rp-info
PIM-SM RP-SET information:
BSR is: 4.4.4.6
Group/MaskLen: 224.0.0.0/4
RP 4.4.4.6
Version: 2
Priority: 0
Uptime: 00:39:50
Expires: 00:01:40
5.1.13 pim
Syntax
pim
undo pim
View
System view
Parameter
None
Description
Using pim command, you can enter the PIM view. Using undo pim command, you can
clear the configurations in PIM view.
Example
# Enable multicast and enter the PIM view.
<Quidway> system-view
[Quidway] multicast routing-enable
[Quidway] pim
[Quidway-pim]
View
Interface view
Parameter
None
Description
Using pim bsr-boundary command, you can configure an interface to be the PIM
domain border. Using undo pim bsr-boundary command, you can remove the border.
You can use this command to set border of bootstraps messages, that is to say,
bootstrap messages cannot pass interfaces that are configured with pim
bsr-boundary command while other PIM messages can. In this way, the network is
divided into different BSR domains.
By default, no domain border is set.
For the related command, see c-bsr.
Example
# Configure domain border on VLAN-interface10.
[Quidway-Vlan-interface10] pim bsr-boundary
5.1.15 pim dm
Syntax
pim dm
undo pim dm
View
Interface view
Parameter
None
Description
Using pim dm command, you can enable PIM-DM. Using undo pim dm command,
you can disable PIM-DM.
By default, PIM-DM is disabled.
Once enabled PIM-DM on an interface, PIM-SM cannot be enabled on the same
interface and vice versa.
Example
# Enable PIM-DM on VLAN-interface10 of the Ethernet switch.
[Quidway] multicast routing-enable
[Quidway-Vlan-interface10] pim dm
View
Interface view
Parameter
limit: Limits of PIM neighbors on the interface, in the range of 0~128.
Description
Using pim neighbor-limit command, you can limit the PIM neighbors on an interface.
No neighbor can be added any more when the limit is reached. Using undo pim
neighbor-limit command, you can restore the default setting.
By default, the PIM neighbors on the interface are limited to 128.
If the existing PIM neighbors exceed the configured value during configuration, they will
not be deleted.
Example
# Limit the PIM neighbors on the Vlan-interface10 to 50.
[Quidway-Vlan-interface10] pim neighbor-limit 50
View
Interface view
Parameter
acl-number: Basic ACL number, in the range of 2000 to 2999.
Huawei Technologies Proprietary
5-14
Description
Using pim neighbor-policy command, you can set to filter the PIM neighbors on the
current interface. Using undo pim neighbor-policy command, you can remove the
setting.
Only the routers that match the filtering rule in the ACL can serve as a PIM neighbor of
the current 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-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
5.1.18 pim sm
Syntax
pim sm
undo pim sm
View
Interface view
Parameter
None
Description
Using pim sm command, you can enable the PIM-SM protocol on an interface. Using
undo pim sm command, you can disable the PIM-SM protocol.
By default, PIM-SM is disabled.
Once enabled PIM-SM on an interface, PIM-DM cannot be enabled on the same
interface and vice versa.
Example
# Enable PIM-SM on VLAN-interface10.
[Quidway-Vlan-interface10] pim sm
View
Interface view
Parameter
seconds: Interval of sending Hello messages in second ranging from 1 to 18000. By
default, the interval value is 30 seconds.
Description
Using pim timer hello command, you can configure the interval of sending PIM router
Hello messages. Using undo pim timer hello command, you can restore the default
value.
Example
# Configure to transmit Hello packet via VLAN-interface10 every 40 seconds.
[Quidway-Vlan-interface10] pim timer hello 40
5.1.20 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
Using register-policy command, you can configure a RP to filter the register
messages sent by the DR in the PIM-SM network and to accept the specified
messages only. Using undo register-policy command, you can remove the
configured message 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
[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
View
User view
Parameter
all: All PIM neighbors
neighbor-address: Specifies neighbor address.
interface interface-type interface-number: Specifies interface.
Description
Using reset pim neighbor command, you can clear a PIM neighbor.
For the related command, see display pim neighbor.
Example
# Clear the PIM neighbor 25.5.4.3.
<Quidway> reset pim neighbor 25.5.4.3
View
User view
Parameter
all: All PIM neighbors
group-address: Specifies group address.
mask group-mask: Specifies group mask.
group-mask-length: Specifies mask length of the group address.
source-address: Specifies source address.
mask source-mask: Specifies source mask.
source-mask-length: Specifies mask length of the group address.
incoming-interface: Specifies incoming interface for the route entry in PIM routing
table.
interface-type interface-number: Specifies the interface.
null: Specifies the incoming interface of the route entry as null.
Description
Using reset pim routing-table command, you can clear a 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.
For the related commands, see 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
5.1.23 source-policy
Syntax
source-policy acl-number
undo source-policy
View
PIM view
Parameter
acl-number: Basic or advanced ACL, in the range of 2000 to 3999.
Description
Using source-policy command, you can set to filter the source (and group) address of
multicast data packets. Using undo static-rp command, you can 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.
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] multicast routing-enable
[Quidway] pim
[Quidway-pim] source-policy 2000
Huawei Technologies Proprietary
5-19
[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
5.1.24 static-rp
Syntax
static-rp rp-address [ acl-number ]
undo static-rp
View
PIM view
Parameter
rp-address: Static RP address, only being legal unicast IP address.
acl-number: Basic ACL, used to control the range of multicast group served by static RP,
which ranges from 2000 to 2999. If an ACL is not specified upon configuration, static
RP will serve all multicast groups; if an ACL is specified, static RP will only serve the
multicast group passing the ACL.
Description
Using static-rp command, you can configure static RP. Using undo static-rp
command, you can remove the configuration.
Static RP functions as the backup of dynamic RP so as to improve the network
robusticity. If the RP elected by BSR mechanism is valid, static RP will not work.
All routers in the PIM domain should be configured with this command and be specified
with the same RP address.
The new configuration overwrites the old one if you run the command for a second
time.
For related command, see display pim rp-info.
Example
# Configure 10.110.0.6 as a static RP.
[Quidway] multicast routing-enable
[Quidway] pim
[Quidway-pim] static-rp 10.110.0.6
View
System view
Parameter
mac-address: Multicast MAC address.
interface-list: Forwarding port list, in format of interface-list = { { interface-type
interface-num
interface-name
to
interface-type
interface-num
interface-name } ] }&<1-10>.
vlan_id: Specifies VLAN ID.
Description
Use the mac-address multicast command to add multicast MAC address entries.
Use the undo mac-address multicast command to delete multicast MAC address
entries.
A multicast entry includes multicast address, forwarding port, VLAN etc.
Related command: display mac-address
multicast count.
Example
# Create a multicast MAC address entry on the switch, with its multicast address as
0100-5e0a-0805, forwarding port as Ethernet 1/0/1 and it belonging to VLAN1.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
None
Description
Use the display mac-address multicast command to view the multicast MAC address
entries on the switch.
Example
# Display multicast MAC address entries on Quidway.
[Quidway] display mac-address multicast
View
System view
Parameter
None
Description
Use the display mac-address multicast count command to view the number of the
multicast MAC address entries on the switch.
Example
# Display the number of the multicast MAC address entries on Quidway.
[Quidway] display mac-address multicast count
HUAWEI
QoS/ACL
Table of Contents
Table of Contents
Chapter 1 ACL Command ............................................................................................................. 1-1
1.1 ACL Command .................................................................................................................. 1-1
1.1.1 acl............................................................................................................................ 1-1
1.1.2 acl mode.................................................................................................................. 1-3
1.1.3 display acl config ..................................................................................................... 1-4
1.1.4 display acl mode...................................................................................................... 1-5
1.1.5 display acl running-packet-filter............................................................................... 1-6
1.1.6 display time-range ................................................................................................... 1-7
1.1.7 packet-filter.............................................................................................................. 1-8
1.1.8 reset acl counter.................................................................................................... 1-10
1.1.9 rule ........................................................................................................................ 1-11
1.1.10 time-range ........................................................................................................... 1-16
Chapter 2 Qos Command ............................................................................................................. 2-1
2.1 QoS Command .................................................................................................................. 2-1
2.1.1 display mirroring-group ........................................................................................... 2-1
2.1.2 display priority-trust ................................................................................................. 2-1
2.1.3 display qos cos-local-precedence-map................................................................... 2-2
2.1.4 display qos-interface all........................................................................................... 2-3
2.1.5 display qos-interface line-rate ................................................................................. 2-6
2.1.6 display qos-interface queue-scheduler ................................................................... 2-7
2.1.7 display qos-interface traffic-bandwidth.................................................................... 2-8
2.1.8 display qos-interface traffic-limit............................................................................ 2-10
2.1.9 display qos-interface traffic-priority ....................................................................... 2-11
2.1.10 display qos-interface traffic-red ........................................................................... 2-12
2.1.11 display qos-interface traffic-redirect .................................................................... 2-13
2.1.12 display qos-interface traffic-statistic .................................................................... 2-14
2.1.13 inboundcar........................................................................................................... 2-16
2.1.14 line-rate ............................................................................................................... 2-17
2.1.15 mirroring-group.................................................................................................... 2-18
2.1.16 priority.................................................................................................................. 2-19
2.1.17 priority-trust ......................................................................................................... 2-20
2.1.18 qos....................................................................................................................... 2-21
2.1.19 qos cos-local-precedence-map ........................................................................... 2-22
2.1.20 queue-scheduler ................................................................................................. 2-24
2.1.21 reset traffic-statistic ............................................................................................. 2-25
2.1.22 traffic-bandwidth.................................................................................................. 2-27
2.1.23 traffic-limit ............................................................................................................ 2-29
Huawei Technologies Proprietary
i
Table of Contents
Note:
A type card includes LS81FT48A, LS81FM24A, LS81FS24A, LS81GB8UA and
LS81GT8UA cards.
1.1.1 acl
Syntax
acl { number acl-number | name acl-name [ advanced | basic | link | user ] }
[ match-order { config | auto } ]
undo acl { number acl-number | name acl-name | all }
View
System view
Parameter
number acl-number: Sequence number of an Access Control List (ACL), the range is:
2000~2999: Represent basic ACL.
3000~3999: Represent advanced ACL.
4000~4999: Represent Layer 2 ACL.
5000 to 5999: User-defined ACL.
name acl-name:Character string, which must be started with an English letter (i.e., a-z
or A-Z), and there should not be a space or quotation mark in it; case insensitive, key
word all is not allowed to use.
advanced: Advanced ACL.
Description
Using the acl command, you can define ACL identified by a number or a name, and
then enter the corresponding ACL view. Using the undo acl command, you can cancel
all subitems of an ACL identified by a number or a name, or cancel the entire ACL.
By default, config order is employed to match ACL.
Using the acl command, you can create an ACL named acl-name. And the type of this
ACL is decided by keywords: advanced, basic, link, or "user. After entering a
corresponding ACL view, no matter the ACL is identified by a number or a name, you
can use the rule command to create subitems of this named ACL (you can exit ACL
view by using the quit command).
Note:
User-defined ACL can only be activated on the cards except A type ones.
Using the match-order, you can specify whether the match order is users
configuration order or depth first order (it first matches the rules with a small range); if
not specified, then the users configuration order will be chosen by default. Once the
matching order of ACL is specified, you cannot change the order unless you have
cancelled all the subitems. Be aware that the ACL matching order is in effect only when
the ACL is employed by software as a means of data filtering and classification.
S6500 Series
Example
# Specify depth first order as the match order of number 2000 ACL.
[Quidway] acl number 2000 match-order auto
View
System view
Parameter
Description
Using the acl mode command, you can set the traffic classification mode for the
device.
By default, traffic classification is performed based on Layer 3 information.
Note:
This command is not effective to the cards except A type ones.
Example
# Specify to perform traffic classification based on Layer 3 information.
[Quidway] acl mode ip-based
View
Any view
Parameter
all: Displays all ACLs (including those identified by a number or a name).
acl-number: Sequence number of the ACL to be displayed. It can be a number chosen
from 2000~5999.
acl-name: Name of the ACL to be displayed. It must be a character string started with
an English letter (a-z or A-Z), and there should not be a space or quotation mark in it.
Description
Using the display acl config command, you can view the detailed configuration
information of an ACL, including every subrule, sequence number and the times
matched with this rule.
The matched times displayed by this command is software matched times, namely, the
matched times of ACL to be processed by switch CPU. You can use the
traffic-statistic command to calculate the matched times of hardware during
packet-forwarding.
Example
# Display all content of ACL.
Huawei Technologies Proprietary
1-4
Basic acl
2020, 1 rule,
Basic acl
std1, 2 rules,
Table 1-2 Field explanation of the command display acl config all
Field
Explanation
View
Any view
Parameter
None
Description
Using the display acl mode command, you can view the ACL running mode chosen by
the switch.
Example
# Display the ACL running mode chosen by the switch.
<Quidway>display acl mode
ACL mode:
ip-based.
View
Any view
Parameter
all: Represents all the ACLs to be displayed (including those identified by a number or a
name).
interface { interface-name | interface-type interface-num }: Interface of the switch, for
more detail, please refer to Command Manual Port.
Description
Using the display acl running -packet-filter command, you can view the information
of the activated of ACL. The displayed content includes ACL name, subitem name and
activation status.
Example
# Display the information of the activated ACL of all interfaces.
<Quidway> display acl running-packet-filter all
acl std1 rule 0
running
running
Table 1-3 Field explanation of the command display acl running -packet-filter all
Field
acl std1
running
Explanation
rule
View
Any view
Parameter
all: Displays all the time-range.
name: Name of a time-range, a character string that starts with an English letter (a-z or
A-Z), ranging from 1 to 32 characters.
Description
Using the display time range command, you can view the configuration and state of
the present time-range. It will display active if the current time-range is in active state,
and inactive if in the opposite state.
It is likely that you find out that a time-range is activated by using the command display
time-range, while the ACL referencing the time-range is not activated yet. It is because
there is a one-minute delay after the system updates the ACL state, and the command
display time-range uses the current to judge the state.
For the related configuration, see time-range.
Example
# Display all the time-ranges.
<Quidway> display time-range all
Current time is 14:36:36 4-3-2003 Thursday
1.1.7 packet-filter
Syntax
I. The Command Line Format for for A type Card
packet-filter { inbound | outbound } { ip-group { acl-number | acl-name } [ rule rule ]
| link-group { acl-number | acl-name } [ rule rule ] } [ not-care-for-interface ]
undo packet-filter { inbound | outbound } { ip-group { acl-number | acl-name } [ rule
rule ] | link-group { acl-number | acl-name } [ rule rule ] }
II. The Command Line Format for the Cards except A Type Ones
packet-filter inbound { user-group { acl-number | acl-name } [ rule rule ] | { ip-group
{ acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name } [ rule
rule ] }* }
undo packet-filter inbound { user-group { acl-number | acl-name } [ rule rule ] |
{ ip-group { acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name }
[ rule rule ] }* }
Note:
Combined activating of IP ACL and Link ACL is supported by the cards except A type
ones. But the sum of the bytes number defined by IP ACL and that defined by the Link
ACL can not exceed 32 bytes; otherwise the ACL can not be activated.
View
QoS view
Parameter
inbound: Performs filtering to the packets received by the interface.
outbound: Performs filtering to the packets sent by the interface.
ip-group { acl-number | acl-name }: Activates IP ACLs, including basic and advanced
ACLs. acl-number : Sequence number of ACL, ranging from 2000~3999. acl-name:
Name of the ACL, which must be a character string starting with an English letter (a-z or
A-Z), and without any space or quotation mark in it.
link-group { acl-number | acl-name }: Activates Layer 2 ACLs. acl-number: Sequence
number of ACL, ranging from 4000~4999. acl-name: Name of ACL, which must be a
character string started with an English letter (a-z or A-Z), and without any space or
quotation mark in it.
user-group { acl-number | acl-name }: activate the user-defined ACL. acl-number:
Specifies the ACL number, ranging from 5000 to 5999. acl-name: Specifies the ACL
name with a character string started with English letters (that is [a to z, A to Z]),
excluding space and quotation marks.
rule rule: Specifies the subitem of an active ACL, ranging from 0 to 127; if not specified,
all subitems of ACL will be activated.
not-care-for-interface: As for non-48-port interface card, the packet-filtering function
will take place on the interface card where the current port resides after the parameter
is chosen. As for the 48-port interface, if the number of the current port belong to the
range of 1 to 24, the packet filtering will take effect on port 1 to port 24 after the
parameter is chosen; if the number of the current port belong to the range of 25 to 48,
the packet filtering will take effect on port 25 to port 48 after the parameter is chosen.
Description
Using the packet-filter command, you can activate ACL. Using the undo packet-filter
command, you can cancel it.
Note:
ARP packets are allowed to pass by default on S6500 Series Ethernet Switches. You
cannot use the packet-filter command to filter ARP packets, even though you have
used the rule command to define a Layer 2 ACL, in which the parameter protocol is
defined as ARP.
Example
# Activate ACL 2000.
[Quidway-qoss-Ethernet3/0/1] packet-filter inbound ip-group 2000
View
User view
Parameter
all: All ACLs (including those identified by a number or a name).
acl-number: The sequence number of an ACL, ranging from 2000~3999.
acl-name: ACL name, a case insensitive character string, which must start with an
English letter (a-z or A-Z), and there should not be a space or quotation mark in it; key
word all is not allowed to use.
Description
Using the reset acl counter command, you can clear ACL statistics to zero.
Table 1-4 The comparison between reset commands of statistics information
Command
Function
reset
traffic-statistic
Example
# Clear the statistic information of ACL 2000.
<Quidway> reset acl counter 2000
1.1.9 rule
Syntax
I. define/delete a rule for basic acl
rule [ rule-id ] { permit | deny } [ source { source-addr wildcard | any } ] [ fragment ]
[ time-range name ]
undo rule rule-id [ source ] [ fragment ] [ time-range ]
Note:
User-defined ACL can only be activated on the cards except A type ones.
View
Corresponding ACL view
Parameter
rule-id: Specifies the subitems of an ACL, ranging from 0 to 127.
Permit: Permits the pass of packets that meet the requirements.
deny: Denies the pass of packets that meet the requirements.
time-range name: Name of a time-range, which means the rule is in effect during this
time-range.
Note:
The following parameters are various property parameters carried by packets. The ACL
set rules according to this parameter.
symbol table. The two parameters port1 and port2 appear at the same time only when
the operator is range, but other operators need port1 only.
destination-port operator port1 [port2]: Destination port number of TCP or UDP used
by packets. For detailed description, please refer to source-port operator port1 [port2].
icmp-type type code: Appears when protocol is icmp. type code specifies an ICMP
packet. type represents the type of ICMP packet, notated by a character or a number
which ranges from 0 to 255; code represents ICMP code, which appears when the
protocol is icmp and the type of packet is not notated by character, ranging from 0 to
255. It is applicable to define advanced ACLs.
established: Means that it is only effective to the first SYN packet established by TCP,
appears when protocol is tcp.
precedence precedence: IP priority, can be a name or a number ranging from 0 to 7.
tos tos: ToS value, can be a name or a number ranging from 0 to 15. Packets can be
classified according to TOS value. It is applicable to define advanced ACLs.
dscp dscp: DSCP value, can be a name or a number ranging from 0 to 63. Packets can
be classified according to DSCP value.
cos cos: Specifies 802.1p preference, ranging from 0 to 7.
fragment: Means this rule is only effective to fragment packets and is ignored by
non-fragment packets.
Note:
Type A cards do not support to deliver rules that configured with icmp-type type code,
tos tos, fragment parameters to hardware.
Only typA cards support the RANGE operator of the TCP/UDP port.
protocol-type: (Optional) Protocol type carried by Ethernet frame, can be:ip, arp,
pppoe-control, pppoe-data, rarp, ipx, nbx.
Note:
ARP packets are allowed to pass by default on S6500 Series Switches. You cannot
configure to filter ARP packets. If you have configured the rule of ARP packets traffic
classification, that is to choose ARP as the protocol type when defining Layer2 ACL
rules, you cannot activate this ACL to make it effective by using the packet-filter
command.
Note:
Take the following into consideration when configuring the offset parameter:
(1) The packets processed by the switch have VLAN tags. One VLAN tag occupies 4
bytes.
(2) If VLAN VPN is disabled, the packets processed by the switch have 4 bytes of VLAN
tag.
(3) If VLAN VPN is enabled, a 4 bytes of VLAN tag is added to the packets that the
switch receives. However, the result is slightly different for type A and non type A cards:
z
For type A card: If the received packets have no VLAN tag, each packet will have
one VLAN tag; if the received packets have one VLAN tag already, each will have
two VLAN tags including the original one.
For non type A card: The packets will have two VALN tags no matter the received
packets have VLAN tag or not.
Description
Using the rule command, you can add a subrule to the ACL. Using the undo rule
command, you can cancel a subrule of the ACL.
You can define several subrules for an ACL. If you have input parameters when you are
using the undo rule command, the system will only cancel the corresponding content
of the parameters in the subrule.
For the related configuration, see acl.
Example
# Add a subrule to an advanced ACL:
[Quidway-acl-adv-3000] rule 1 permit tcp established source 1.1.1.1 0 destination
2.2.2.2 0
# Add a subrule to a basic ACL:
[Quidway-acl-basic-2000] rule 1 permit source 1.1.1.1 0 fragment
# Add a subrule to a Layer 2 ACL:
[Quidway-acl-link-4000] rule 1 permit ingress 1 egress any
# Add a rule to a user-defined ACL.
[Quidway-acl-user-5000] rule 1 permit 88 ff 18
1.1.10 time-range
Syntax
time-range time-name { start-time to end-time days-of-the-week [ from start-time
start-date ] [ to end-time end-date ] | from start-time start-date [ to end-time end-date ]
| to end-time end-date }
undo time-range time-name [ start-time to end-time days-of-the-week [ from
start-time start-date ] [ to end-time end-date ] | from start-time start-date [ to end-time
end-date ] | to end-time end-date ]
View
System view
Parameter
time-name: Name of a special time range to be referenced.
start-time: Start time of the special time range, format as hh:mm.
end-time: End time of the special time range, format as hh:mm.
days-of-the-week: Determines in which day(s) of a week in the special time range a
command takes effect. You can specify this parameter with any of the following values.
Numbers (ranging from 0 to 6);
Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday;
working-day, representing 5 working days, from Monday to Friday;
off-day, representing Saturday and Sunday;
daily, representing everyday of the week.
from start-time start-date: Start time and date of the special time range, determining
effective days of the time range with the end-date, format as hh:mm YYYY/MM/DD.
to end-time end-date: End time and date of the special time range, determining
effective days of the time range with the start-date, format as hh:mm YYYY/MM/DD.
Description
Using time-range command, you can configure a time range. Using undo time-range
command, you can delete a time range.
start-time and end-time days-of-the-week define period time range together. from
start-time start-date and end-time end-date define absolute time range together.
Huawei Technologies Proprietary
1-16
If a time range only defines the period time range, the time range is only active within
the period time range.
If a time range only defines the absolute time range, the time range is only active within
the absolute time range.
If a time range defines the period time range and the absolute time range, the time
range is only active when the period time range and the absolute time range are both
matched. For example, a time range defines a period time range which is from 12:00 to
14:00 every Wednesday, and defines an absolute time range which is from 00:00
2004/1/1 to 23:59 2004/12/31. This time range is only active from 12:00 to 14:00 every
Wednesday in 2004.
If neither starting time nor end time is specified, the time range is 24 hours (0:00 to
24:00).
If no end date is specified, the time range is from the date of configuration till the largest
date available in the system.
If you input the parameter when use the undo time-range command, the system will
delete the corresponding content of the time range according to the parameter input.
Example
# Configure a time range being effective since zero hour on January 1, 2000 and
forever.
[Quidway] time-range test from 0:0 2000/1/1
View
Any view
Parameter
groupid: Port mirroring group ID, ranging from 1 to 20.
Description
Using the display mirroring-group command, you can view the parameter
configuration of a port mirroring group. The information displayed includes the
monitored ports, direction of monitored packets, monitoring ports, and so on.
For the related configuration, see mirroring-group.
Example
# Display the parameter configuration of a port mirroring group.
[Quidway] display mirroring-group
mirroring-group 1 inbound Ethernet6/0/1 mirrored-to Ethernet6/0/2
View
Any view
Huawei Technologies Proprietary
2-1
Parameter
None
Description
Using the display priority-trust command, you can view the priority by which the
switch places the packets in the output queue.
For the related configuration, see priority-trust.
Example
# Display the queue scheduling mode and parameter.
<Quidway>display priority-trust
Priority trust mode: local-precedence
View
Any view
Parameter
None
Description
Using the display qos cos-local-precedence-map command, you can view COS
Local-precedence map table.
Example
# Display the COSLocal -precedence map table.
<Quidway> display qos cos-local-precedence-map
cos-local-precedence-map:
cos :
-------------------------------------------------------------------local-precedence :
View
Any view
Parameter
interface-name | interface-type interface-num: Interfaces of the switch, for detailed
description, please refer to Command Manual Port.
Description
Using the display qos-interface all command, you can view QoS setting information
of all interfaces. If you do not input interface parameters, this command will display all
QoS setting information of the switch, including traffic policing, rate limit at interface, etc;
if you input interface parameters, this command will display QoS setting information of
specified interfaces, including traffic policing, rate limit at interfaces, etc.
Example
# Display all the configurations of QoS parameters.
<Quidway> display qos-interface all
GigabitEthernet5/0/1: traffic-limit
Inbound:
Matches: acl 2000 rule 0
running
GigabitEthernet5/0/1:traffic-priority
Outbound:
Matches: acl std1 rule 0
running
GigabitEthernet5/0/1: traffic-red
Outbound:
Matches: acl r1 rule 0
running
GigabitEthernet5/0/1:traffic-statistic
Inbound:
Matches: acl std1 rule 0
running
0 byte
0 packet
Outbound:
Matches: acl std1 rule 1
running
0 byte
0 packet
GigabitEthernet5/0/2: traffic-red
Outbound:
Matches: acl r1 rule 0
running
GigabitEthernet5/0/2: traffic-bandwidth
Outbound:
Matches: acl r1 rule 0
running
Explanation
Traffic monitoring configuration:
GigabitEthernet5/0/1: traffic-limit
Inbound:
Matches: acl 2000 rule 0 running
Target rate: 4 Mbps
GigabitEthernet5/0/1:traffic-priority
Outbound:
Matches: acl std1 rule 0 running
Priority action: dscp ef
Fielde
Explanation
RED configuration of the port:
Outbound means that this configuration
is effective to packets sent by interfaces.
Matches: acl r1 rule 0 running is the
rule of packet classification.
GigabitEthernet5/0/1: traffic-red
Outbound:
Matches: acl r1 rule 0 running
Queue length of start random
discarding: 64
Queue length of stop random
discarding: 128
Max probability of discarding: 20
GigabitEthernet5/0/1:traffic-statistic
Inbound:
Traffic statistics:
0 packet
Fielde
Explanation
Configuration
guarantee.
GigabitEthernet5/0/2: traffic-bandwidth
Outbound:
Matches: acl r1 rule 0 running
Minimum guaranteed bandwidth: 64
Maximum available bandwidth: 128
Bandwidth weight: 100
of
port
bandwidth
View
Any view
Parameter
interface-name | interface-type interface-num: Interface of switch, for detailed
description, please refer to Command Manual Port.
Description
Using the display qos-interface line-rate command, you can view the parameter
setting of traffic rate limitation in the interface output direction, including the output
interfaces and their limited traffic rate. If you do not input interface parameters, you will
view the parameter setting of traffic rate limitation of all interfaces in output direction; if
you do not input interface parameters, you will view the parameter setting of traffic rate
limitation at specified interfaces in output direction.
Example
# Display the parameter configuration of interface traffic rate limitation.
[Quidway-Ethernet3/0/4] display qos-interface line-rate
Ethernet3/0/2: line-rate
Line rate: 3072 kbps
Ethernet3/0/4: line-rate
Line rate: 5120 kbps
Explanation
Ethernet3/0/2: line-rate
Line rate: 3072 kbps
View
Any view
Parameter
interface-name | interface-type interface-num: Interface of the switch, for more detail,
please refer to Command Manual Port.
Description
Using display qos-interface queue-scheduler command to display the queue
scheduling configuration of the port.
Example
# Display the queue scheduling configuration of GigabitEthernet5/0/1.
<Quidway> display qos-interface gigabitethernet 5/0/1 queue-scheduler
GigabitEthernet5/0/1:
Queue scheduling mode: weighted round robin
weight of queue 1: 10
weight of queue 2: 5
weight of queue 3: 10
weight of queue 4: 10
weight of queue 5: 5
weight of queue 6: 10
weight of queue 7: 5
weight of queue 8: 10
COS configuration:
Config (max queues): 8
Schedule mode: weighted round-robin
Weighting (in packets):
COSQ 0 = 10 packets
COSQ 1 = 5 packets
COSQ 2 = 10 packets
COSQ 3 = 10 packets
COSQ 4 = 5 packets
COSQ 5 = 10 packets
COSQ 6 = 5 packets
COSQ 7 = 10 packets
Egress port queue statistics(in bytes):
Priority
CosQ
Threshold
Count
Used(%):
18432
2560
2560
2560
2560
2560
2560
2560
qos-interface
interface-name
traffic-bandwidth
View
Any view
interface-type
interface-num
Parameter
interface-name | interface-type interface-num: Interface of the switch, for more detail,
please refer to Command Manual Port.
Description
Using the display qos-interface traffic-bandwidth command, you can view the
configuration information of the bandwidth guarantee.
For the related configuration, see traffic-bandwidth.
Example
# Display the parameter configuration of traffic limitation.
<Quidway> display qos-interface gigabitEthernet5/0/2 traffic-bandwidth
GigabitEthernet5/0/2: traffic-bandwidth
Outbound:
Matches: acl r1 rule 0
running
Explanation
Configuration information of the port bandwidth
guarantee:
GigabitEthernet5/0/2:
traffic-bandwidth
Outbound:
guaranteed
available
View
Any view
Parameter
interface-name | interface-type interface-num: Interface of the switch, for more detail,
please refer to Command Manual Port.
Description
Using the display qos-interface traffic-limit command, you can view the parameter
setting of traffic rate limitation. The displayed content includes the ACLs of the traffic to
be limited, the average of the limited rate and the related monitoring actions, etc.
For the related configuration, see traffic-limit.
Example
# Display the parameter configuration of traffic limitation.
<Quidway> display qos-interface gigabitEthernet5/0/1 traffic-limit
GigabitEthernet5/0/1: traffic-limit
Inbound:
Matches: acl 2000 rule 0
running
Explanation
GigabitEthernet5/0/1:
traffic-limit
Inbound:
View
Any view
Parameter
interface-name | interface-type interface-num: Interface of the switch, for more detail,
please refer to Command Manual Port.
Description
Using the display qos-interface traffic-priority command, you can view the setting of
the priority mark parameters. The displayed content includes the corresponding ACLs
of the traffic with priority mark, priority mark types and value, etc.
For the related configuration, see traffic-priority.
Example
# Display the configuration of the priority mark parameter.
<Quidway> display qos-interface gigabitEthernet5/0/1 traffic-priority
GigabitEthernet5/0/1:traffic-priority
Outbound:
Matches: acl std1 rule 0
running
Explanation
GigabitEthernet5/0/1:traffic-pri
ority
Outbound:
Matches: acl std1 rule 0
running
Priority action: dscp ef
View
Any view
Parameter
interface-name | interface-type interface-num: Interface of the switch, for more detail,
please refer to Command Manual Port.
Description
Using the display qos-interface traffic-red command, you can view the configuration
information of the RED operation.
The cards except A type ones do not support traffic RED function.
For the related configuration, see traffic-red.
Example
# Display the parameter configuration of traffic limitation.
<Quidway> display qos-interface gigabitEthernet5/0/1 traffic-red
GigabitEthernet5/0/1: traffic-red
Outbound:
Matches: acl r1 rule 0
running
Explanation
RED Configuration information of the interface:
Outbound means that this configuration is
effective to packets sent by interfaces.
GigabitEthernet5/0/1:
traffic-red
Outbound:
Matches:
running
acl
r1
rule
Queue length of
random discarding: 64
start
Queue length of
random discarding: 128
stop
Max
probability
discarding: 20
of
View
Any view
Parameter
interface-name | interface-type interface-num: Interface of the switch, for more detail,
please refer to Command Manual Port.
Description
Using the display qos-interface traffic-redirect command, you can view the setting
of the redirection parameters. The displayed content includes the corresponding ACLs
of the traffics to be redirected, the redirected interfaces, etc.
For the related configuration, see traffic-redirect.
Example
# Display the redirection parameter configuration.
<Quidway> display qos-interface traffic-redirect
traffic-redirect
Matches: acl std1 rule 0
running
running
Explanation
traffic-redirect
qos-interface
interface-name
interface-type
interface-num
traffic-statistic
View
Any view
Parameter
interface-name | interface-type interface-num: Interface of the switch, for more detail,
please refer to Command Manual Port.
Description
Using the display qos-interface traffic-statistic command, you can view the traffic
statistics information. The displayed content includes the corresponding ACLs of the
traffics to be calculated, the number of calculated packets, etc.
For the related configuration, see traffic-statistic.
Example
# Display the traffic statistics information.
<Quidway> display qos-interface gigabitEthernet5/0/1 traffic-statistic
GigabitEthernet5/0/1:traffic-statistic
Inbound:
Matches: acl std1 rule 0
running
0 byte
0 packet
Outbound:
Matches: acl std1 rule 1
running
0 byte
0 packet
Explanation
GigabitEthernet5/0/1:traffic-sta
tistic
Inbound:
Matches: acl std1 rule 0
running
0 byte
0 packet
Outbound:
Matches: acl std1 rule 1
running
0 byte
0 packet
2.1.13 inboundcar
Syntax
inboundcar { enable | disable }
View
System view
Parameter
enable: Enable the inbound CAR function.
disable: Disable the inbound CAR function.
Description
Use the inboundcar enable command to enable the inbound CAR function.
Use the inboundcar disable command to disable the inbound CAR function.
By default, the inbound car is disabled.
Note:
The inboundcar command is only effective to the type A card.
The inboundcar command takes effect only after you restart the switch.
When the inbound CAR function is enabled and the same ACL rules are sent to the
different ports, they are treated as different rules, thus seizing multiple entries. If you
configure the CAR function for the traffic matching the same rule on multiple ports, the
switch provides a bandwidth gurantee to the traffic matching the CAR rule on each port.
When the inbound CAR function is disabled and the same ACL rules are sent to the
different ports, they are treated as the same one, thus seizing one entry only. If you
configure the CAR function for the traffic matching the same rule on multiple ports, the
switch provides a bandwidth gurantee to the traffic matching the CAR rule on these
ports.
For example, to set the CAR bandwidth of 2 M for the traffic matching the rule 0 on the
switch, use the traffic-limit command to configure the CAR rule on two ports. The
following describes the bandwidth gurarantee with inbound CAR function enabled or
disabled.
Huawei Technologies Proprietary
2-16
If the inbound CAR function enabled, the two ports provides 2M bandwidth
gurarantee for the traffic mathching the rule 0 on each port.
If the inbound CAR function enabled, the two ports provides the total bandwidth
gurarantee of 2M for the traffic mathching the rule 0 on the two ports.
Example
# Enable the inbound CAR function on the switch.
[Quidway] inboundcar enable
2.1.14 line-rate
Syntax
line-rate [ kbps ] target-rate
undo line-rate
View
QoS view
Parameter
kbps: Specifies the rate limit of the port to kbps. In this approach, the rate is in kbps and
the granularity can be as low as 64 kbps.
target-rate: The total limited rate of the the packets sent by interfaces, ranging from 1 to
1000; in Mbps.
Description
Using the line-rate command, you can limit the total rate of the packets delivered by
interfaces. Using the undo line-rate command, you can cancel the configuration of
limit rate at interfaces.
Note:
Only the cards except A type ones support the port rate limitation.
Example
# The rate limitation of interface GigabitEthernet7/0/1 is 10 Mbps.
Huawei Technologies Proprietary
2-17
[Quidway-qosb-GigabitEthernet7/0/1] line-rate 10
2.1.15 mirroring-group
Syntax
mirroring-group groupId { inbound | outbound } mirroring-port-list &<1-8>
mirrored-to monitor-port
undo mirroring-group groupId
View
System view
Parameter
groupid: Port mirroring group ID, ranging from 1 to 20.
Inbound: Performs monitoring to the packets received by interfaces.
outbound: Performs monitoring to the packets sent by interfaces.
mirroring-port-list: The list of Ethernet ports, means multiple Ethernet interfaces,
donated as port-list={ { interface_type interface_num | interface_name } [ to
{ interface_type interface_num | interface_name } ] }&<1-8>. For detailed description of
interface_type, interface_num, interface_name, please refer to Command Manual
Port. &<1-8> means the previous parameters can be input 8 times at the most.
mirrored-to monitor-port: Specifies monitoring ports.
Description
Using the mirroring-group command, you can configure port mirroring group. Using
the undo mirroring-group command, you can cancel the port mirroring group.
The switch supports multi-to-one port mirroring, that is to copy packets of many ports to
a monitoring port and perform monitoring. S6500 Series Switches configure port
mirroring function through the configuration of port mirroring group. You can configure
one monitoring port and multiple monitored ports in each port monitoring group,
meanwhile, you can specify the direction of the monitored packets.
S6500 Series Switches can be configured with 20 port mirroring groups at the most.
Some cards do not support port mirroring. If you configure port mirroring on these cards,
the system will prompt Not support.
Note:
Restrictions of port mirroring configuration:
z
The mirroring port and the mirrored port must be located at the same interface card.
As for a non-48-port interface card, only one port mirroring group can be configured
in one mirroring direction. For instance, one interface card can be configured with
only one port mirroring group for monitoring received packets. If you configure
another port mirroring group for monitoring received packets, the system will prompt
that configuration fails. The restrictions of port mirroring configuration for monitoring
sent packets is similar to this one.
As for a 48-port interface card, the monitoring port and the monitored port must
belong to the same port range simultaneously, that is, either 1-24 ports or 25-48
ports. Only one port mirroring group can be configured in one mirroring direction For
instance, in the range of port 1 to port 24, one interface card can be configured with
only one port mirroring group for monitoring received packets. If you configure
another port mirroring group for monitoring received packets, the system will prompt
that configuration fails. The restrictions of port mirroring configuration for monitoring
sent packets is similar to this one.
Example
#Configure mirroring group 1; the monitored port is Ethernet3/0/1~Ethernet3/0/3; the
monitoring port is Ethernet3/0/4; only packets received by port are monitored.
[Quidway] mirroring-group 1 inbound ethernet 3/0/1 to ethernet 3/0/3 mirrored-to
ethernet 3/0/4
2.1.16 priority
Syntax
priority priority-level
undo priority
View
Ethernet port view
Parameter
priority-level: The value of port priority level, ranging from 0 to 7.
Huawei Technologies Proprietary
2-19
Description
Using the priority command, you can set the priority of the Ethernet interface. Using
the undo priority command, you can resume the default situation.
By default, the priority of port is 0.
This command is used to set the priority of the Ethernet interface. If the received
packets without the mark of VLAN, the switch will use the default VLAN of the port
receiving the packets as the VLAN mark of the packets, then the 802.1p priority of the
VLAN mark will be the priority of the receiving port.
Example
# Set the priority level of port Ethernet1/0/1 to 7.
[Quidway-Ethernet1/0/1] priority 7
2.1.17 priority-trust
Syntax
priority-trust { dscp | ip-precedence | cos | local-precedence }
View
System view
Parameter
dscp: Puts the packets into corresponding port output queue according to dscp
priority.
ip-precedence: Puts the packets into corresponding port output queue according to IP
precedence.
cos: Puts the packets into the corresponding port output queue according to 802.1p
priority.
local-precedence: Puts the packets into corresponding port output queue according to
local precedence.
Description
Using the priority-trust command, you can configure the priority by which the switch
puts packets into the port output queue.
By default, the switch chooses the local-precedence.
Huawei Technologies Proprietary
2-20
The switch can choose different levels of precedence when it puts the packets into the
port output queue.
The switch ports support eight output queues with different levels of precedence, The
higher the precedence, the earlier it will be delivered.
z
dscp precedence: dscp precedence value ranges from 0 to 63 inclusive, then the
packets with precedence value 0 to 7 are put into queue 0, and those with
precedence value 8 to 15 are put into queue 1, and so on.
cos precedence: cos value ranges from 0 to 7, the packet whose precedence
value is 0 is put into queue 2, the packet whose precedence value is 1 is put into
queue 0, the packet whose precedence value is 2 is put into queue 1, the packet
whose precedence value is 3 is put into queue 3, and so on.
Example
# Configure the switch to choose dscp precedence.
[Quidway] priority-trust dscp
2.1.18 qos
Syntax
qos
View
Ethernet port view
Parameter
None
Description
Using the qos command, you can enter QoS view and perform the corresponding QoS
configuration.
Note:
Different interface cards of S6500 Series Switches support different QoS functions. You
can use ? to query the supported QoS configurations after entering different QoS
views.
Example
# Enter QoS view and query the QoS configuration supported by the interface card.
[Quidway-GigabitEthernet7/0/1] qos
[Quidway-qosb-GigabitEthernet7/0/1] ?
Qosb view commands:
catch
catch
display
line-rate
packet-filter
ping
Ping function
quit
reset
Reset operation
tracert
traffic-limit
traffic-priority
traffic-redirect
traffic-statistic
undo
cos-local-precedence-map
cos0-map-local-prec
cos1-map-local-prec
View
System view
Parameter
cos0-map-local-prec: The mapping value from COS 0 to local-prec, ranging from 0 to 7.
cos1-map-local-prec: The mapping value from COS 1 to local-prec, ranging from 0 to 7.
cos2-map-local-prec: The mapping value from COS 2 to local-prec, ranging from 0 to 7.
cos3-map-local-prec: The mapping value from COS 3 to local-prec, ranging from 0 to 7.
cos4-map-local-prec: The mapping value from COS 4 to local-prec, ranging from 0 to 7.
cos5-map-local-prec: The mapping value from COS 5 to local-prec, ranging from 0 to 7.
cos6-map-local-prec: The mapping value from COS 6 to local-prec, ranging from 0 to 7.
cos7-map-local-prec: The mapping value from COS 7 to local-prec, ranging from 0 to 7.
Description
Using the qos cos-local-precedence-map command, you can configure COS
Local-precedence mapping table. Using the undo qos cos-local-precedence-map
command, you can restore the default value.
By default, the system provides default COS Local-precedence mapping table.
Table 2-9 Default COS Local-precedence mapping table
COS value
Local precedence
Example
# Configure the COS Local-precedence mapping table.
[Quidway] qos cos-local-precedence-map 0 1 2 3 4 5 6 7
After configuration, the mapping table is as follows:
Local precedence
2.1.20 queue-scheduler
Syntax
queue-scheduler { rr | strict-priority | wrr queue1-weight queue2-weight
queue3-weight
queue4-weight
queue5-weight
queue6-weight
queue7-weight
queue8-weight }
undo queue-scheduler
View
QoS view
Parameter
rr: Indicates the queue adopts round robin algorithm.
strict-priority: Indicates the queue performs strict priority scheduling.
wrr queue1-weight queue2-weight queue3-weight queue4-weight queue5-weight
queue6-weight queue7-weight queue8-weight: Indicates that the queue adopts the
weighted round robin algorithm, with the weight range from 0 to 15.
Description
Use the queue-scheduler command to set the queue scheduling mode and
parameters.
Use the undo queue-scheduler command to restore the defaults.
Example
# Set the queue scheduling mode to weighted round robin, with the weights 10, 5, 10,
10, 5, 10, 5, and 10 respectively.
[Quidway-qosb-GigabitEthernet5/0/1] queue-scheduler wrr 10 5 10 10 5 10 5 10
Note:
A type card includes LS81FT48A, LS81FM24A, LS81FS24A, LS81GB8UA and
LS81GT8UA cards.
II. The Command Line Format for the Cards except A Type Ones
reset traffic-statistic inbound { user-group { acl-number | acl-name } [ rule rule ] |
{ ip-group { acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name }
[ rule rule ] }* }
Note:
Combined activating of IP ACL and Link ACL is supported by the Cards except A Type
Ones. But the sum of the bytes number defined by IP ACL and that defined by the Link
ACL can not exceed 32 bytes; otherwise the ACL can not be activated.
View
QoS view
Parameter
ip-group { acl-number | acl-name } [ rule rule ]: the basic or advanced
ACLs;acl-number: the sequence number of ACLs, ranging from 2000~3999;
acl-number: the name of ACLs, character string, which must be started with an English
letter (i.e., a-z or A-Z), and there should not be a space or quotation mark in it; rule rule:
(Optional) specifies a subitem of an ACL, ranging from 0 to 127, it represents all the
subitems of the ACL if not specified.
link-group { acl-number | acl-name } [ rule rule ]: The Layer 2 ACL; acl-number: the
sequence number of an ACL, ranging from 4000~4999; acl-name: the name of an ACL,
character string, which must be started with an English letter (i.e., a-z or A-Z), and there
should not be a space or quotation mark in it; rule rule: (Optional) specifies the subitem
of an ACL, ranging from 0 to 127, it represents all the subitems of the ACL if not
specified.
user-group { acl-number | acl-name }: activate the user-defined ACL. acl-number:
Specifies the ACL number, ranging from 5000 to 5999. acl-name: Specifies the ACL
name with a character string started with English letters (that is [a to z, A to Z]),
excluding space and quotation marks.
Description
Using the reset traffic-statistic command, you can clear the specified or all the traffic
statistics information.
Table 2-11 The comparison between reset commands of statistics information
Command
Function
reset
traffic-statistic
Example
# Clear the traffic statistics information of ACL 2000.
Huawei Technologies Proprietary
2-26
2.1.22 traffic-bandwidth
Syntax
traffic-bandwidth outbound { ip-group { acl-number | acl-name } [ rule rule ] |
link-group { acl-number | acl-name } [ rule rule ] } min-guaranteed-bandwidth
max-guaranteed-bandwidth weight
undo traffic-bandwidth outbound { ip-group { acl-number | acl-name } [ rule rule ] |
link-group { acl-number | acl-name } [ rule rule ] }
View
QoS view
Parameter
outbound: The packets sent from the port.
ip-group { acl-number | acl-name } [ rule rule ]: the basic or advanced ACLs;
acl-number: the sequence number of ACLs, ranging from 2000~3999; acl-number: the
name of ACLs, character string, which must be started with an English letter (i.e., a-z or
A-Z), and there should not be a space or quotation mark in it; rule rule: (Optional)
specifies a subitem of an ACL, ranging from 0 to 127, it represents all the subitems of
the ACL if not specified.
link-group { acl-number | acl-name } [ rule rule ]: The Layer 2 ACL; acl-number: the
sequence number of an ACL, ranging from 4000~4999; acl-name: the name of an ACL,
character string, which must be started with an English letter (i.e., a-z or A-Z), and there
should not be a space or quotation mark in it; rule rule: (Optional) specifies the subitem
of an ACL, ranging from 0 to 127, it represents all the subitems of the ACL if not
specified.
min-guaranteed-bandwidth: The minimum guaranteed bandwidth, in kbps, ranging
from 0 to 8388608, which must be the multiple of 64 kbps.
max-guaranteed-bandwidth: The maximum guaranteed bandwidth, in kbps, ranging
from 0 to 8388608, which must be the multiple of 64 kbps.
weight: The bandwidth weight, ranging from 1 to 100, in percentage. It is used in the
situations when there is several traffic bandwidth guarantees at the current port. For
instance, there is 10 M port bandwidth supporting two flows. The minimum bandwidth
for each flow is 2 M, and the maximum is 8 M, then the bandwidth weights are 40% and
80% respectively. After the port guarantees the minimum bandwidth for both flows (that
is, 4 M), the remaining bandwidth (6M) cannot support the maximum bandwidth of both
flows (16M). If the bandwidth occupied by the two flows exceeds the minimum
bandwidth guarantee, then the remaining bandwidth (6 M) will be allocated to each flow
according to the bandwidth weights (40% : 80%).
Note:
Assume there are N flows at one port, the port bandwidth is Bp, the minimum
guaranteed bandwidth of the ith flow isBimin, and the maximum guaranteed bandwidth
of the ith flow is Bimax, and the weight is Wi. If the bandwidth occupied by all the flows
is greater than their minimum guaranteed bandwidth, and the sum of maximum
guaranteed bandwidth is greater than port bandwidth Bp, the bandwidth allocated to
the ith flow is Bi= Bimin+(Bp-
i min
)*Wi/
Wi .
N
Description
Using the traffic-bandwidth command, you can activate the ACL and provide
bandwidth guarantee for the corresponding traffic (the command is only effective to the
permit rule). Using the undo traffic-bandwidth command, you can remove this
function.
This configuration provides the minimum bandwidth guarantee and maximum available
bandwidth for specific traffic.
For the related configuration, see display qos-interface traffic-bandwidth.
Note:
The cards except A type ones do not support this command.
Only the rule with the action of permit can be activated by this command successfully.
Example
# Guarantee the bandwidth of the packets that match with the rule of permit in ACL
2000, the minimum guaranteed bandwidth is 64 k, the maximum available bandwidth is
128 k, and bandwidth weight is 50.
[Quidway-qoss-Ethernet3/0/1] traffic-bandwidth outbound ip-group 2000 64 128 50
2.1.23 traffic-limit
Syntax
I. The Command Line Format for for A type Card
traffic-limit { inbound | outbound } { ip-group { acl-number | acl-name } [ rule rule] |
link-group { acl-number | acl-name } [ rule rule ] } target-rate
undo traffic-limit { inbound | outbound } { ip-group { acl-number | acl-name } [ rule
rule ] | link-group { acl-number | acl-name } [ rule rule ] }
Note:
A type card includes LS81FT48A, LS81FM24A, LS81FS24A, LS81GB8UA and
LS81GT8UA cards.
II. The Command Line Format for the Cards except A Type Ones
traffic-limit inbound { user-group { acl-number | acl-name } [ rule rule ] | { ip-group
{ acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name } [ rule
rule ] }* } [ kbps ] target-rate [ exceed action ]
undo traffic-limit inbound { user-group { acl-number | acl-name } [ rule rule ] |
{ ip-group { acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name }
[ rule rule ] }* }
Note:
Combined activating of IP ACL and Link ACL is supported by the cards except A type
ones. But the sum of the bytes number defined by IP ACL and that defined by the Link
ACL can not exceed 32 bytes; otherwise the ACL can not be activated.
View
QoS view
Parameter
inbound: Performs traffic limitation to the packets received by the interface.
outbound: Performs traffic limitation to the packets sent by the interface.
ip-group { acl-number | acl-name } [ rule rule ]: the basic or advanced ACLs;
acl-number: the sequence number of ACLs, ranging from 2000~3999; acl-number: the
name of ACLs, character string, which must be started with an English letter (i.e., a-z or
A-Z), and there should not be a space or quotation mark in it; rule rule: (Optional)
specifies a subitem of an ACL, ranging from 0 to 127, it represents all the subitems of
the ACL if not specified.
link-group { acl-number | acl-name } [ rule rule ]: The Layer 2 ACL; acl-number: the
sequence number of an ACL, ranging from 4000~4999; acl-name: the name of an ACL,
character string, which must be started with an English letter (i.e., a-z or A-Z), and there
should not be a space or quotation mark in it; rule rule: (Optional) specifies the subitem
of an ACL, ranging from 0 to 127, it represents all the subitems of the ACL if not
specified.
user-group { acl-number | acl-name }: activate the user-defined ACL. acl-number:
Specifies the ACL number, ranging from 5000 to 5999. acl-name: Specifies the ACL
name with a character string started with English letters (that is [a to z, A to Z]),
excluding space and quotation marks.
kbps: Specifies the traffic limit to kbps. In this approach, the rate is in kbps and the
granularity can be as low as 64 kbps.
target-rate: The set normal traffic, as for the LS82GP20 and LS82GT20 interface cards,
the value ranges from 1 to 1000, in Mbps; as for other types of interface cards, the unit
is kpbs, the value ranges from 64 to 8388608 and must be the multiple of 64k.
exceed action: (Optional) The action taken when the traffic exceeds the threshold. Only
LS82GP20 and LS82GT20 interface cards support this parameter. The action can be:
z
Description
Using the traffic-limit command, you can activate ACL and perform traffic limitation.
Using the undo traffic-limit command, you can remove traffic limitation.
This command performs traffic limitation to the packets that match with specified ACL
rule, and is only effective to the permit rule.
Example
# Perform traffic limitation to packets that match with the permit rule of ACL 2000. The
normal traffic is 128 kbps.
[Quidway-qoss-Ethernet3/0/1] traffic-limit inbound ip-group 2000 128
2.1.24 traffic-priority
Syntax
I. The Command Line Format for for A type Card
traffic-priority { inbound | outbound } { ip-group { acl-number | acl-name } [ rule rule ]
| link-group { acl-number | acl-name } [ rule rule ] } { { dscp dscp-value |
ip-precedence pre-value } | local-precedence pre-value }*
undo traffic-priority { inbound | outbound } { ip-group { acl-number | acl-name }
[ rule rule ] | link-group { acl-number | acl-name } [ rule rule ] }
Note:
A type card includes LS81FT48A, LS81FM24A, LS81FS24A, LS81GB8UA and
LS81GT8UA cards.
II. The Command Line Format for the Cards except A Type Ones
traffic-priority inbound { user-group { acl-number | acl-name } [ rule rule ] |
{ ip-group { acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name }
[ rule rule ] }* } { { dscp dscp-value | ip-precedence pre-value } | { cos cos |
local-precedence pre-value } }*
undo traffic-priority inbound { user-group { acl-number | acl-name } [ rule rule ] |
{ ip-group { acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name }
[ rule rule ] }* }
Note:
Combined activating of IP ACL and Link ACL is supported by the cards except A type
ones. But the sum of the bytes number defined by IP ACL and that defined by the Link
ACL can not exceed 32 bytes; otherwise the ACL can not be activated.
View
QoS view
Parameter
inbound: Performs priority marking to the packets received by the interface.
outbound: Performs priority marking to the packets sent by the interface.
ip-group { acl-number | acl-name } [ rule rule ]: the basic or advanced ACLs;
acl-number: the sequence number of ACLs, ranging from 2000~3999; acl-number: the
name of ACLs, character string, which must be started with an English letter (i.e., a-z or
A-Z), and there should not be a space or quotation mark in it; rule rule: (Optional)
specifies a subitem of an ACL, ranging from 0 to 127, it represents all the subitems of
the ACL if not specified.
link-group { acl-number | acl-name } [ rule rule ] : The Layer 2 ACL; acl-number: the
sequence number of an ACL, ranging from 4000~4999; acl-name: the name of an ACL,
character string, which must be started with an English letter (i.e., a-z or A-Z), and there
should not be a space or quotation mark in it; rule rule: (Optional) specifies the subitem
of an ACL, ranging from 0 to 127, it represents all the subitems of the ACL if not
specified.
user-group { acl-number | acl-name }: activate the user-defined ACL. acl-number:
Specifies the ACL number, ranging from 5000 to 5999. acl-name: Specifies the ACL
name with a character string started with English letters (that is [a to z, A to Z]),
excluding space and quotation marks.
dscp dscp-value: Set DSCP precedence, ranging from 0 to 63.
ip-precedence pre-value: Set IP precedence, pre-value is the IP precedence, ranging
from 0 to 7.
cos cos: Specifies 802.1p preference, ranging from 0 to 7.
local-precedence pre-value: Set local precedence, ranging from 0 to 7.
Description
Using the traffic-priority command, you can activate ACL and perform priority marking.
Using the undo traffic-priority command, you can remove the priority marks.
The system can mark the packets with various levels of precedence (dscp precedence
and IP precedence).
Only the rule with the action of permit can be activated by this command successfully.
For the related configuration, see display qos-interface traffic-priority.
Example
# Perform priority marking to packets that match with the permit rule of ACL 2000. Set
its local priority to 0.
[Quidway-qoss-Ethernet3/0/1] traffic-priority outbound ip-group 2000 local-precedence
0
2.1.25 traffic-red
Syntax
traffic-red outbound { ip-group { acl-number | acl-name } [ rule rule ] | link-group
{ acl-number | acl-name } [ rule rule ] } qstart qstop probability
undo traffic-red outbound { ip-group { acl-number | acl-name } [ rule rule ] |
link-group { acl-number | acl-name } [ rule rule ] }
View
QoS view
Parameter
outbound: Performs RED operation to the sent packets.
ip-group { acl-number | acl-name } [ rule rule ]: the basic or advanced ACLs;
acl-number: the sequence number of ACLs, ranging from 2000~3999; acl-number: the
name of ACLs, character string, which must be started with an English letter (i.e., a-z or
A-Z), and there should not be a space or quotation mark in it; rule rule: (Optional)
specifies a subitem of an ACL, ranging from 0 to 127, it represents all the subitems of
the ACL if not specified.
link-group { acl-number | acl-name } [ rule rule ] : The Layer 2 ACL; acl-number: the
sequence number of an ACL, ranging from 4000~4999; acl-name: the name of an ACL,
character string, which must be started with an English letter (i.e., a-z or A-Z), and there
should not be a space or quotation mark in it; rule rule: (Optional) specifies the subitem
of an ACL, ranging from 0 to 127, it represents all the subitems of the ACL if not
specified.
qstart: The queue length where the system starts to drop packets randomly. The queue
whose length is less than qstart will not be dropped. The value ranges from 0 to 262128,
in KB; it must be the multiple of 16KB.
qstop: The queue length where the system stops random dropping of packets. The
queue whose length is greater than qstop will be dropped totally. The value ranges from
0 to 262128, in KB; it must be the multiple of 16 KB.
probability: The drop probability when red-qstop is reached, ranging from 0% to 100%.
Description
Using the traffic-red command, you can enable RED operation and set RED
parameters. Using the undo traffic-red command, you can remove the RED
configuration.
For the related configuration, see display qos-interface traffic-red.
Note:
The cards except A type ones do not support this command.
Only the rule with the action of permit can be activated by this command successfully.
Example
# Perform RED operation to the packets that match with the permit rule of ACL 2000.
RED parameters can be set as follows: the queue length where the system starts
random dropping of packets is 64 KB, the queue length where the system stops
random dropping of packets is 128 KB, and the probability of random drop is 20%.
[Quidway-qoss-Ethernet3/0/1] traffic-red outbound ip-group 2000 64 128 20
2.1.26 traffic-redirect
Syntax
traffic-redirect inbound { user-group { acl-number | acl-name } [ rule rule ] |
{ ip-group { acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name }
[ rule rule ] }* } { cpu | interface { interface-name | interface-type interface-num } }
undo traffic-redirect inbound { user-group { acl-number | acl-name } [ rule rule ] |
{ ip-group { acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name }
[ rule rule ] }* }
View
QoS view
Parameter
inbound: Performs traffic redirection to the packets received by the interface.
ip-group { acl-number | acl-name } [ rule rule ]: the basic or advanced ACLs;
acl-number: the sequence number of ACLs, ranging from 2000~3999; acl-number: the
name of ACLs, character string, which must be started with an English letter (i.e., a-z or
A-Z), and there should not be a space or quotation mark in it; rule rule: (Optional)
specifies a subitem of an ACL, ranging from 0 to 127, it represents all the subitems of
the ACL if not specified.
link-group { acl-number | acl-name } [ rule rule ]: The Layer 2 ACL; acl-number: the
sequence number of an ACL, ranging from 4000~4999; acl-name: the name of an ACL,
character string, which must be started with an English letter (i.e., a-z or A-Z), and there
should not be a space or quotation mark in it; rule rule: (Optional) specifies the subitem
of an ACL, ranging from 0 to 127, it represents all the subitems of the ACL if not
specified.
user-group { acl-number | acl-name }: activate the user-defined ACL. acl-number:
Specifies the ACL number, ranging from 5000 to 5999. acl-name: Specifies the ACL
name with a character string started with English letters (that is [a to z, A to Z]),
excluding space and quotation marks.
cpu: Redirects to CPU.
interface { interface-name | interface-type interface-num }: Redirect the packets to the
specified Ethernet interface, interface-type is the interface type which can be
gigabitethernet only; interface-num is the number of interface and represents a
complete interface name together with interface-type; interface-name is equal to
interface-type plus interface-num.
Description
Using the traffic-redirect command, you can activate ACL and perform redirection (the
command is only effective to permit rule). Using the undo traffic-redirect command,
you can remove the redirection.
For the related configuration, see display qos-interface traffic-redirect.
Note:
Only the cards except A type ones support the packet redirecting configuration.
Only the rule with the action of permit can be activated by this command successfully.
Example
# Perform redirection to the packets that match with the permit rule of ACL 2000.
Redirect the packets to interface GigabitEthernet7/0/2.
[Quidway-qosb-GigabitEthernet7/0/1] traffic-redirect inbound ip-group 2000 interface
gigabitethernet7/0/2
2.1.27 traffic-statistic
Syntax
I. The Command Line Format for for A type Card
traffic-statistic { inbound | outbound } { ip-group { acl-number | acl-name } [ rule
rule ] | link-group { acl-number | acl-name } [ rule rule ] }
undo traffic-statistic { inbound | outbound } { ip-group { acl-number | acl-name }
[ rule rule ] | link-group { acl-number | acl-name } [ rule rule] }
Note:
A type card includes LS81FT48A, LS81FM24A, LS81FS24A, LS81GB8UA and
LS81GT8UA cards.
II. The Command Line Format for the Cards except A Type Ones
traffic-statistic inbound { user-group { acl-number | acl-name } [ rule rule ] |
{ ip-group { acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name }
[ rule rule ] }* }
undo traffic-statistic inbound { user-group { acl-number | acl-name } [ rule rule ] |
{ ip-group { acl-number | acl-name } [ rule rule ] | link-group { acl-number | acl-name }
[ rule rule ] }* }
Note:
Combined activating of IP ACL and Link ACL is supported by the cards except A type
ones. But the sum of the bytes number defined by IP ACL and that defined by the Link
ACL can not exceed 32 bytes; otherwise the ACL can not be activated.
View
QoS view
Parameter
inbound: Performs statistic operation to the packets received by the interface.
outbound: Performs statistic operation to the packets sent by the interface. LS82GP20
and LS82GT20 interface cards do not support it.
ip-group { acl-number | acl-name } [ rule rule ]: the basic or advanced ACLs;
acl-number: the sequence number of ACLs, ranging from 2000~3999; acl-number: the
name of ACLs, character string, which must be started with an English letter (i.e., a-z or
A-Z), and there should not be a space or quotation mark in it; rule rule: (Optional)
specifies a subitem of an ACL, ranging from 0 to 127, it represents all the subitems of
the ACL if not specified.
link-group { acl-number | acl-name } [ rule rule ]: The Layer 2 ACL; acl-number: the
sequence number of an ACL, ranging from 4000~4999; acl-name: the name of an ACL,
character string, which must be started with an English letter (i.e., a-z or A-Z), and there
should not be a space or quotation mark in it; rule rule: (Optional) specifies the subitem
of an ACL, ranging from 0 to 127, it represents all the subitems of the ACL if not
specified.
user-group { acl-number | acl-name }: activate the user-defined ACL. acl-number:
Specifies the ACL number, ranging from 5000 to 5999. acl-name: Specifies the ACL
name with a character string started with English letters (that is [a to z, A to Z]),
excluding space and quotation marks.
Description
Using the traffic-statistic command, you can activate ACL and perform traffic statistic
(the command is only effective to permit rule). Using the undo traffic-statistic
command, you can remove traffic statistics.
The traffic-statistic command is used to count the number of hardware matches
during the course of packet forwarding. You can use the display qos-interface
traffic-statistic command to view this information.
Only the rule with the action of permit can be activated by this command successfully.
For the related configuration, see display qos-interface traffic-statistic.
Example
# Perform traffic statistic to the packets that match with the permit rule of ACL 2000.
[Quidway-qoss-Ethernet3/0/1] traffic-statistic inbound ip-group 2000
View
User interface view
Parameter
acl-number: The number identifier of number-based ACLs, ranging from 2000 to 3999.
inbound: Performs ACL control to the users who access the local switch using
TELNET.
outbound: Performs ACL control to the users who access other switches from the local
switch using TELNET.
Description
Using the acl command, you can reference ACL and implement the ACL control to the
TELNET users. Using the undo acl command, you can remove the control to the
TELNET users.
The ACLs referenced by this command can only be the basic and advanced
number-based ACLs.
Example
# Perform ACL control to the users who access the local switch using TELNET (basic
ACL 2000 has been defined).
[Quidway] user-interface vty 0 4
Huawei Technologies Proprietary
3-1
View
System view
Parameter
read: Indicates that this community name has the read-only right within the specified
view.
write: Indicates that this community name has the read-write right within the specified
view.
community-name: Character string of the community name.
mib-view: Set the MIB view name which can be accessed by the community name.
view-name: MIB view name.
acl acl-numbe: The number identifier of basic number-based ACLs, ranging from 2000
to 2999.
Description
Using the snmp-agent community command, you can set the community access
name, permit the access to the switch using SNMP, and reference the ACL to perform
ACL control to the network management users by acl-number. Using the undo
snmp-agent community command, you can remove the setting of community access
name.
By default, SNMPV1 and SNMPV2C use community name to perform access.
Example
# Set the community name as Huawei, permit the user to perform read-only access by
using this community name, and reference the ACL 2000 to perform ACL control to the
network management users (basic ACL 2000 has already been defined ).
View
System view
Parameter
v1: V 1 security mode.
v2c: V 2 security mode.
v3: V 3 security mode.
group-name: Group name, ranging from 1 to 32 bytes.
authentication: With this parameter, the system will authenticate SNMP data without
encrypting it.
privacy: Authenticates and encrypts packets.
read-view: Sets read-only view.
read-view: The name of read-only view, ranging from 1 to 32 bytes.
write-view: Permits to set read-write view.
write-view: The name of read-write view, ranging from 1 to 32 bytes.
notify-view: Sets notify view.
notify-view: The name of notify view, ranging from 1 to 32 bytes.
acl acl-number: The number identifier of basic number-based ACLs, ranging from 2000
to 2999.
Description
Using the snmp-agent group command, you can configure a new SNMP group and
reference the ACL to perform ACL control to the network management users by acl
acl-number. Using the undo snmp-agent group command, you can remove a
specified SNMP group.
Example
# Create a SNMP group huawei, and reference the ACL 2001 to perform ACL control
to the network management users (basic ACL 2001 has already been defined).
[Quidway] snmp-agent group v1 huawei acl 2001
View
System view
Parameter
v1: V 1 security mode.
v2c: V 2 security mode.
v3: V 3 security mode.
user-name: The user name, ranging from 1 to 32 bytes.
group-name: The corresponding group name of the user, ranging from 1 to 32 bytes.
authentication-mode: Specifies the security level to to be authenticated
md5: Specifies the authentication protocol as HMAC-MD5-96.
sha: Specifies the authentication protocol as HMAC-SHA-96.
Description
Using the snmp-agent usm-user command, you can add a new user to an SNMP
group, and reference the ACL to perform ACL control to the network management
users by acl acl-number. Using the undo snmp-agent usm-user command, you can
remove the user from the related SNMP group as well as the configuration of the ACL
control of the user.
Example
# Add a user huawei to the SNMP group huaweigroup. Specify the security level to
to be authenticated, the authentication protocol to HMAC-MD5-96 and the
authentication password to quidway, and reference the ACL 2002 to perform ACL
control to the network management users (basic ACL 2002 has already been defined).
[Quidway] snmp-agent usm-user v3 huawei huaweigroup authentication-mode md5
quidway acl 2002
HUAWEI
STP
Table of Contents
Table of Contents
Chapter 1 MSTP Configuration Commands ............................................................................... 1-1
1.1 MSTP Configuration Commands ....................................................................................... 1-1
1.1.1 active region-configuration ...................................................................................... 1-1
1.1.2 check region-configuration ...................................................................................... 1-1
1.1.3 display stp ............................................................................................................... 1-3
1.1.4 display stp region-configuration .............................................................................. 1-5
1.1.5 instance ................................................................................................................... 1-6
1.1.6 region-name ............................................................................................................ 1-6
1.1.7 reset stp................................................................................................................... 1-7
1.1.8 revision-level ........................................................................................................... 1-8
1.1.9 stp............................................................................................................................ 1-9
1.1.10 stp bpdu-protection ............................................................................................... 1-9
1.1.11 stp bridge-diameter ............................................................................................. 1-10
1.1.12 stp cost ................................................................................................................ 1-11
1.1.13 stp edged-port ..................................................................................................... 1-12
1.1.14 stp interface......................................................................................................... 1-13
1.1.15 stp interface cost ................................................................................................. 1-14
1.1.16 stp interface edged-port ...................................................................................... 1-15
1.1.17 stp interface loop-protection................................................................................ 1-16
1.1.18 stp interface mcheck ........................................................................................... 1-17
1.1.19 stp interface point-to-point................................................................................... 1-18
1.1.20 stp interface port priority...................................................................................... 1-19
1.1.21 stp interface root-protection ................................................................................ 1-20
1.1.22 stp interface transmit-limit ................................................................................... 1-21
1.1.23 stp loop-protection............................................................................................... 1-21
1.1.24 stp max-hops....................................................................................................... 1-22
1.1.25 stp mcheck .......................................................................................................... 1-23
1.1.26 stp mode.............................................................................................................. 1-23
1.1.27 stp pathcost-standard.......................................................................................... 1-24
1.1.28 stp point-to-point ................................................................................................. 1-26
1.1.29 stp port priority..................................................................................................... 1-27
1.1.30 stp priority............................................................................................................ 1-27
1.1.31 stp region-configuration....................................................................................... 1-28
1.1.32 stp root primary ................................................................................................... 1-29
1.1.33 stp root secondary............................................................................................... 1-30
1.1.34 stp root-protection ............................................................................................... 1-31
1.1.35 stp tc-protection................................................................................................... 1-32
1.1.36 stp timer forward-delay........................................................................................ 1-33
Huawei Technologies Proprietary
i
Table of Contents
View
MST region view
Parameter
None
Description
Using active region-configuration command, you can activate the configurations of
MST region.
This command is used for manually activate the configurations of MST region.
Configuring the related parameters, especially the VLAN mapping table, of the MST
region, will lead to the recalculation of spanning tree and network topology flapping. To
bate such flapping, MSTP applies the configured parameters and launches
recalculation of the spanning tree only when you activate the configured MST region
parameters or enable MSTP.
After you entered this command, MSTP will apply the MST region parameters you
configured to the system and recalculate the spanning tree.
For the related command, see instance, region-name, revision-level, vlan-mapping
modulo, check region-configuration .
Example
# Manually activate MST region configurations.
[Quidway-mst-region] active region-configuration
View
MST region view
Parameter
None
Description
Using check region-configuration command, you can view the configuration
information (including switch region name, revision level, and VLAN mapping table) to
be activated.
MSTP defines that the user must ensure the correct region configurations, especially
the VLAN mapping table configuration. The switches can be configured in the same
region only if their region names, VLAN mapping tables, and MSTP revision levels are
configured exactly the same. The switch may not be configured in the expected region
due to any slight deviation. You can use this command to display the MST region
configuration information to be activated to know to which MST regions the switch
belongs and check if the MST region configurations are correct.
For the related command, see instance, region-name, revision-level, vlan-mapping
modulo, active region-configuration .
Example
# Display the configuration information about the region.
[Quidway-mst-region] check region-configuration
Admin Configuration:
Format selector :0
Region name
:00b010000001
Revision level
:0
Instance
0
16
Vlans Mapped
1 to 9, 11 to 4094
10
Description
Format selector
Region name
Revision level
View
Any view
Parameter
instance-id: Specifies the spanning tree instance ID, ranging from 0 to 16.
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
slot slot-num: Displays STP information of the specific slot.
brief: Display the role, state and protection type of the port only.
Description
Using display stp command, you can view the state information and statistics
information of the spanning tree .
The MSTP state and statistics information can help analyze and maintain the network
topology and maintain the normal operation of MSTP.
If no STI ID or port list is specified, the command will display the spanning tree
information of all the instances on all the ports in port number order. If the instance ID is
specified, the command will display the spanning tree information of the specified
instance on all the port in port number order. If only the port list is specified, the
command will display the information about all the STIs on the port in port number order.
If both the STI ID and port list are specified, the command will displays the spanning
tree information of the specified instance on the specified port in the port list order of the
instance ID. If the aggregation port exists, only the instance information of the primary
port is displayed.
MSTP state information include:
1)
Global CIST parameter: Protocol operation mode, switch priority in the CIST
instance, MAC address, Hello Time, Max Age, Forward Delay, Max Hops, CIST
common root (the primary or the secondary), external path cost of the switch to the
CIST common root, region root, internal path cost of the switch to the CIST
common root, CIST root port of the switch, and whether to enable BPDU
protection.
2)
CIST port parameter: Port state, role, priority, path cost, designated bridge,
designated port, edge port/non-edge port, whether connected to the point-to-point
link, port transit limit, whether to enable Root protection, number of the VLAN
maps, whether being a region edge port, Hello Time, Max Age, Forward Delay,
Message-age time, and Remaining-hops.
3)
Global MSTIs parameter: MSTI instance ID, bridge priority of the instance,
whether an MSTI root is a primary or secondary one, region root, internal path cost,
MSTI root port, and MASTER bridge.
4)
MSTIs port parameter: Port state, number of the VLAN maps, role, priority, path
cost, designated bridge, designated port and Remaining Hops.
Statistics information: Count of TCN, CONFIG BPDU, RST, and MST BPDU
transmitted/received via the port.
For the related command, see reset stp..
Example
# Display the state and statistics information about the spanning tree.
<Quidway> display stp instance 0 interface Ethernet 2/1/1 to Ethernet 2/1/4
GigabitEthernet 3/2/1 to GigabitEthernet 3/2/4 GigabitEthernet 3/3/1 brief
MSTID
Port
Role
STP State
Protection
Ethernet2/1/1
ALTE
DISCARDING
LOOP
Ethernet2/1/2
DESI
FORWARDING
NONE
Ethernet2/1/3
DESI
FORWARDING
NONE
Ethernet2/1/4
DESI
FORWARDING
NONE
GigabitEthernet3/2/1
DESI
FORWARDING
NONE
GigabitEthernet3/2/2
DESI
FORWARDING
NONE
GigabitEthernet3/2/3
DESI
FORWARDING
NONE
GigabitEthernet3/2/4
DESI
FORWARDING
NONE
GigabitEthernet3/3/1
ROOT
FORWARDING
NONE
Description
MSTID
Port
Port number
Role
Interface role
STP State
Protection
View
Any view
Parameter
None
Description
Using display stp region-configuration command, you can view the effective MST
region configurations .
MST region configuration information includes: region name, region revision level, and
associations between VLANs and STIs. All these configurations together determine to
which MST region a switch belongs.
For the related command, see stp region-configuration .
Example
# Display the MST region configuration information.
<Quidway> display stp region-configuration
Oper Configuration
Format selector :0
Region name
:huawei
Revision level
:0
Instance
Vlans Mapped
21 to 4094
1 to 10
11 to 20
Description
Format selector
Region name
Revision level
1.1.5 instance
Syntax
instance instance-id vlan vlan-list
undo instance instance-id [ vlan vlan-list ]
View
MST region view
Parameter
instance-id: Specifies the spanning tree instance ID, ranging from 0 to 16.
vlan-list: Specifies the VLAN list, ranging from 1 to 4094. The switch may support VLAN
4095, 4096 others, however, they can only be mapped to CIST (Instance 0).
Description
Using instance command, you can map the specified VLAN list to the specified STI.
Using undo instance command, you can cancel the specified VLAN list from the
specified STI, the removed VLAN will then be mapped to the CIST (i.e., the Instance 0).
If no VLAN is specified in the undo command, all the VLANs associated with the
specified STI will be mapped to CIST.
By default, all the VLANs are mapped to CIST, i.e., the Instance 0.
MSTP describes the association between VLANs and STIs with the VLAN mapping
table. You can use this command to configure this table. Every VLAN can be mapped to
an STI as per your configuration.
A VLAN cannot be mapped to different instances at the same time. The latter
configured association will replace the former one.
For
the
related
command,
see
region-name,
revision-level,
Example
# Map VLAN 2 to STI 1 3 5.
[Quidway-mst-region] instance 1 vlan 1 3 5
1.1.6 region-name
Syntax
region-name name
undo region-name
check
View
MST region view
Parameter
name: Specifies the MST region name of the switch with a character string not
exceeding 32 bytes.
Description
Using region-name command, you can configure the MST region name of a switch.
Using undo region-name command, you can restore the default MST region name.
By default, the MST region name of the switch is the switch MAC address in
hexadecimal notation.
The switch region name, together with VLAN mapping table of the MST region and
MSTP revision level, is used for determining the region to which the switch belongs.
For the related command, see instance, revision-level, check region-configuration ,
vlan-mapping modulo, active region-configuration .
Example
# Set the MST region name of the switch as huawei.
[Quidway-mst-region] region-name huawei
View
User view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
Description
Using reset stp command, you can reset the spanning tree statistics information.
The spanning tree statistics information includes TCN, Config BPDU, RST, and MST
BPDU, received and transmitted on the port. Among them, STP BPDU and TCN BPDU
are counted on CIST.
When the spanning tree ID and port list are specified, the command clears the statistics
information of the specified spanning tree on the specified port. If no port is specified,
the command clears the statistics information of the specified spanning tree on all the
ports. If no spanning tree is specified, the command clears the statistics information of
all the spanning trees.
For the related command, see display stp.
Example
# Clear the statistics information on the ports from Ethernet2/1/1 through Ethernet2/1/3.
z
1.1.8 revision-level
Syntax
revision-level level
undo revision-level
View
MST region view
Parameter
level: Specifies the MSTP revision level, ranging from 0 to 65535. By default, MSTP
revision level takes 0.
Description
Using revision-level command, you can configure MSTP revision level of the switch.
Using undo revision-level command, you can restore the default revision-level .
MSTP revision level, together with region name and VLAN mapping table, is used for
determining the MST region to which the switch belongs.
For the related command, see instance, region-name, check region-configuration ,
vlan-mapping modulo and active region-configuration .
Example
# Set the MSTP revision level of the switch MST region to 5.
[Quidway-mst-region] revision-level 5
1.1.9 stp
Syntax
stp { enable | disable }
undo stp
View
System view, Ethernet port view
Parameter
enable: Enables global or port MSTP.
disable: Disables global or port MSTP.
Description
Using stp command, you can enable or disable MSTP on a device or a port. Using
undo stp command, you can restore the default MSTP state on a device or a port.
By default, MSTP is disabled on the switch.
After MSTP is enabled, the switch determines to run MSTP in STP-compatible mode or
MSTP mode per your configurations. The switch serves as a transparent bridge after
MSTP is disabled.
By default, the MSTP on the switch is disabled, to enable it, you must enable the MSTP
globally.
After MSTP is enabled, it will dynamically maintain the spanning tree state of the
corresponding VLAN according to the received configuration BPDU until it is disabled.
For the related command, see stp mode, stp interface.
Example
# Enable MSTP globally.
[Quidway] stp enable
# Disable MSTP on Ethernet2/1/1.
[Quidway-Ethernet2/1/1] stp disable
View
System view
Parameter
None
Description
Using stp bpdu-protection command, you can enable the BPDU protection on the
switch. Using undo stp bpdu-protection command, you can restore the default state
of BPDU protection.
By default, BPDU protection is disabled.
Generally, the access ports of the access layer devices are directly connected to user
terminals (such as PC) or file servers. In this case, the access ports are set to edge
ports to implement fast state transition. However, when such access ports receive
configuration BPDU, the system will automatically set them to non-edge ports and
recalculate the spanning tree, which makes the network topology flap. These ports will
not receive any STP configuration BPDU in normal cases. Anyway, if someone
maliciously attacks the switch with fake configuration BPDU, the network will flap.
MSTP provides BPDU protection function to avoid such attack: After configured with
BPDU protection, the switch will disable the edge port through MSTP, which receives a
BPDU, and notify the network manager at same time. These ports can be resumed by
the network manager only.
Example
# Enable BPDU protection on the switch.
[Quidway] stp bpdu-protection
View
System view
Parameter
bridgenum: Ranges from 2 to 7 and defaults to 7.
Description
Using stp bridge-diameter command, you can configure the switching network
diameter. Using undo stp bridge-diameter command, you can restore the default
network diameter.
The network diameter refers to the maximum count of switches on the path between
any two terminal devices.
The definition of network diameter: Maximum count of switches between the farthest
communication ends.
stp bridge-diameter command configures the switching network diameter and
determines the three time parameters of MSTP accordingly. This configuration takes
effect on CIST only but makes no sense for MSTI.
The spanning tree convergence can be speeded up, when Hello Time, Forward Delay,
and Max Age are well configured. These parameters are related to the network scale.
You can configure the network scale to get the time parameters. Upon the
user-configured bridge-diameter parameter, MSTP will automatically set Hello Time,
Forward Delay, and Max Age to moderate values. When bridge-diameter defaults to 7,
the time parameters also take their respective default values.
For the related command, see stp timer forward-delay, stp timer hello, stp timer
max-age.
Example
# Set the diameter of the switching network to 5.
[Quidway] stp bridge-diameter 5
View
Ethernet port view
Parameter
instance instance-id: Specifies the spanning tree instance ID, ranging from 0 to 16. The
Instance 0 represents CIST.
cost cost: Specifies the port path cost, ranging from 1 to 20000000.
Description
Using stp instance cost command, you can configure the port path cost on the
specified STI for the current port. Using undo stp instance cost command, you can
restore the path cost on the specified STI.
By default, switch calculates the path costs of a port on different STIs. For more
description, refer to the table offered in the configuration guideline of the stp interface
instance cost command.
You may specify the instance-id parameter as 0 to configure CIST path cost of the port.
The path cost has effect on the port role selection. A port can be configured with
different path costs on different MSTIs. Thus the traffic from different VLANs can run
over different physical links, thereby implementing the VLAN-based load-balancing.
MSTP will recalculate the port role and transit its state, upon the port path cost
changes.
For the related command, see stp interface instance cost .
Example
# Set the path cost of Ethernet2/0/3 on STI 2 to 200.
[Quidway-Ethernet2/0/3] stp instance 2 cost 200
View
Ethernet port view
Parameter
enable: Configure the current port as an edge port.
disable: Configure the current port as a non-edge port.
Description
Using stp edged-port enable command, you can configure the current Ethernet port
as an edge port. Using stp edged-port disable command, you can configure the
current Ethernet port as a non-edge port. Using undo stp edged-port command, you
can restore the default state, i.e., non-edge port.
By default, all the switch ports are configured as non-edge port.
If the current Ethernet port is connected to other switch, you can use the stp
edged-port disable command to configure it as a non-edge port. The stp edged-port
enable command is used for configuring the 0port as an edge port.
A port is considered as an edge port when it is directly connected to the user terminal,
instead of any other switches or shared network segments. The edge port will not
cause loop upon network topology changes. Accordingly, you can configure a port as
an edge port, so that it can transit to forwarding state fast. For this purpose, please
configure the Ethernet port directly connected to the user terminal as an edge port.
Because the edge port is not connected to any other switches, it will not receive the
configuration BPDUs from them. Before BPDU PROTECTION is enabled on the switch,
the port received a BPDU runs as a non-edge port, even if it is configured as edge port.
For the related command, see stp interface edged-port.
Example
# Configure Ethernet2/0/1 as an edge port.
[Quidway-Ethernet2/0/1] stp edged-port disable
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
enable: Enables MSTP on the port.
disable: Disables MSTP on the port.
Description
Using stp interface command, you can enable/disable MSTP on a switch port in
system view.
By default, if MSTP is enabled globally, it is enabled on every port; if MSTP is disabled
globally, it is also disabled on every port.
When MSTP is disabled, the corresponding port stays in forwarding state and does not
take part in any STI calculation.
Caution:
Loop may be generated, if you disable MSTP on the port.
Example
# Enable MSTP on Ethernet2/0/1 in system view.
[Quidway] stp interface Ethernet2/0/1 enable
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
instance instance-id: Specifies the spanning tree instance ID, ranging from 0 to 16. The
Instance 0 represents CIST.
cost cost: Specifies the path cost of the port, ranging from 1 to 200000000.
Description
Using stp interface instance cost command, you can configure the path cost of the
specified port on the specified STI in system view.,. Using undo stp interface
instance cost command, you can restore the path cost to default value.
By default, switch calculates the path costs of a port on different STIs.
You may specify the instance-id parameter as 0 to configure CIST path cost of the port.
The path cost has effect on the port role selection. A port can be configured with
different path costs on different MSTIs. Thus the traffic from different VLANs can run
over different physical links, thereby implementing the VLAN-based load-balancing.
MSTP will recalculate the port role and transit its state, upon the port path cost
changes.
For the related command, see stp instance cost .
Example
# Set the path cost of Ethernet2/0/3 on STI 2 to 400 in system view.
[Quidway] stp interface Ethernet2/0/3 instance 2 cost 400
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
enable: Configure the current port as an edge port.
disable: Configure the current port as a non-edge port.
Description
Using stp interface edged-port enable command, you can configure a port as an
edge port in system view. Using stp interface edged-port disable command, you can
configure a port as a non-edge port in system view. Using undo stp interface
edged-port command, you can restore the non-edge port, as defaulted.
By default, all the switch ports are configured as non-edge port.
If the current Ethernet port is connected to other switch, you can use the stp interface
edged-port disable or undo stp interface edged-port command to configure it as a
non-edge port. The stp interface edged-port enable command is used for configuring
the port as an edge port.
Huawei Technologies Proprietary
1-15
A port is considered as an edge port when it is directly connected to the user terminal,
instead of any other switches or shared network segments. The edge port will not
cause loop upon network topology changes. Accordingly, you can configure a port as
an edge port, so that it can transit to forwarding state fast. For this purpose, please
configure the Ethernet port directly connected to the user terminal as an edge port.
Because the edge port is not connected to any other switches, it will not receive the
configuration BPDUs from them. Before BPDU PROTECTION is enabled on the switch,
the port received a BPDU runs as a non-edge port, even if it is configured as edge port.
For the related command, see stp edged-port.
Example
# Configure Ethernet2/0/3 as an edge port in system view.
[Quidway] stp interface Ethernet2/0/3 edged-port enable
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
Description
Using stp interface loop-protection command, you can enable loop protection on the
switch in system view. Using undo stp interface loop-protection command, you can
restore the default loop protection state.
By default, loop protection is disabled.
For the related command, see stp loop-protection.
Example
# Enable loop protection on the Ethernet2/0/1.
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
Description
Using stp interface mcheck command, you can perform mcheck operation on the port
in system view.
If a port of an MSTP switch on a switching network has ever been connected to an STP
switch, the port will automatically transit to operate in STP-compatible mode. However,
when the STP switch is removed, the port stays in STP-compatible mode and cannot
automatically transit back to MSTP mode. In this case, you can perform mCheck
operation to transit the port to MSTP mode by force.
The switch defaults to operate in MSTP mode. It is an RSTP- and STP-compatible
mode, that is, the switch in MSTP mode can identify the BPDU packets of MSTP and
the Config BPDU packets of RSTP. However, the switch in STP mode can only identify
the Config BPDU packets from both MSTP and RSTP bridges. If the switch in
STP-compatible mode transits back to MSTP mode, but you do not execute the stp
mcheck command, it cannot send the BPDU packets of MSTP and the devices
connecting to it still send the Config BPDU (BPDU of STP) packets toward it, thus
causing the packets from the devices with the same configuration not to be in the same
domain. Therefore, execute the stp interface mcheck command in system view when
you have changed the STP mode.
For the related command, see stp mcheck, stp mode.
Example
# Set mcheck parameter of Ethernet2/0/3 in system view.
[Quidway] stp interface Ethernet2/0/3 mcheck
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
force-true: Indicates the Ethernet port connected to a point-to-point link.
force-false: Indicates the Ethernet port not connected to a point-to-point link.
auto: Configure to automatically check if the link to the Ethernet port is a point-to-point
link.
Description
Using stp interface point-to-point command, you can configure a port (not) to be
connected to a point-to-point link in system view. Using undo stp interface
point-to-point command, you can restore the default state of the link to the Ethernet
port.
By default, the parameter defaults to auto, that is, MSTP checks if the link to the
Ethernet port is a point-to-point link.
The port not connected with the point-to-point link cannot transit fast.
The master ports of the link aggregation and the ports operating in full-duplex mode are
connected to the point-to-point link. You are recommended to keep the default settings
and let MSTP detect the link state automatically.
This configuration takes effect on the CIST and all the MSTIs. The settings of a port
whether to connect the point-to-point link will be applied to all the STIs where the port
belongs. Note that a temporary loop may be redistributed if you configure a port not
physically connected with the point-to-point link as connected to such a link by force.
For the related command, see stp point-to-point.
Example
# Configure Ethernet2/0/3 to be connected to the point-to-point link in system view.
Huawei Technologies Proprietary
1-18
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
instance instance-id: Specifies the spanning tree instance ID, ranging from 0 to 16. The
Instance 0 represents CIST.
port priority priority: Specifies the port priority, ranging from 0 to 240 with a step length
of 16, e.g., 0, 16 and 32. By default, the port has a priority of 128 on every STI.
Description
Using stp interface instance port priority command, you can configure the priority of
the specified port on the specified STI in system view. Using undo stp interface
instance port priority command, you can restore the default priority.
You may specify the instance-id parameter as 0 to configure CIST priority of the port.
The port priority has effect on the port role selection. A port can be configured with
different priorities on different MSTIs. Thus the traffic from different VLANs can run over
different physical links, thereby implementing the VLAN-based load-balancing. MSTP
will recalculate the port role and transit its state, upon the port priority changes.
For the related command, see stp instance port priority.
Example
# Set the priority of Ethernet2/0/3 on STI 2 to 16 in system view.
[Quidway] stp instance 2 interface Ethernet2/0/3 port priority 16
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
Description
Using stp interface root-protection command, you can enable Root protection on the
switch in system view. Using undo stp interface root-protection command, you can
restore the default Root protection state.
By default, Root protection is disabled.
In case of configuration error or malicious attack, the legal primary root may receive the
BPDU with a higher priority and then loose its place, which causes network topology
change errors. Due to the illegal change, the traffic supposed to travel over the
high-speed link may be pulled to the low-speed link and congestion will occur on the
network.
Root protection function is used against such problem. The port configured with Root
protection only plays a role of designated port on every instance. Whenever such port
receives a higher-priority BPDU, that is, it is about to turn into non-designated port, it
will be set to listening state and not forward packets any more (as if the link to the port is
disconnected). If the port has not received any higher-priority BPDU for a certain period
of time thereafter, it will resume the normal state.
For the related command, see stp root-protection.
Example
# Enable Root protection on the Ethernet2/0/1.
[Quidway] stp interface Ethernet2/0/1root-protection
View
System view
Parameter
interface-list: Ethernet port list, containing multiple Ethernet ports and expressed as
interface _list = { { interface_type interface_num | interface_name } [ to { interface_type
interface_num | interface_name } ] }&<1-10>. For detail descriptions of interface_type,
interface_num and interface_name parameters, refer to the corresponding descriptions
in Port Command Manual. &<1-10> means that the preceding parameters can be
entered up to 10 times.
packetnum: Specifies the amount limit to the transmitted packets, ranging from 1 to 255
(expressed as a counter value without any units). By default, the transmission limit on
every port is 3.
Description
Using stp interface transmit-limit command, you can configure an amount limit to the
configuration BPDU transmitted via a port during the Hello Time in system view. Using
undo stp interface transmit-limit command, you can restore the default limit in
system view.
The larger the value is, the more packets can be transmitted in a time unit, yet the more
switch resources will be occupied. With a moderate value, the amount of the BPDUs
transmitted during Hello Time via every port can be limited and MSTP will not occupy
too many bandwidth resources when the network topology flaps.
For the related command, see stp transmit-limit.
Example
# Set a limit of 5 to the packets transmitted via Ethernet2/0/3 in system view.
[Quidway] stp interface Ethernet2/0/3 transmit-limit 5
View
Ethernet port view
Parameter
None
Description
Using stp loop-protection command, you can enable loop protection function. Using
undo stp loop-protection command, you can restore the restore setting.
By default, the loop protection function is not enabled.
Example
# Enable loop protection function in Ethernet2/0/1.
[Quidway-Ethernet2/0/1] stp loop-protection
View
System view
Parameter
hop: Specifies the max hops, ranging from 1 to 40. By default, MST region Max Hops is
20.
Description
Using stp max-hops command, you can configure the Max Hops of an MST region.
Using undo stp max-hops command, you can restore the default Max Hops.
On CIST and MSTIs, the Max Hops configured on the region root determines the max
switching network diameter supported by the local MST region. As the BPDU traveling
from the spanning tree root, each time when it is forwarded by a switch, the max hops
will be reduced by 1. The switch discards the configuration BPDU with 0 hops left,
thereby limiting the network scale inside the region. If the current switch is a CIST root
bridge or MSTI root bridge in an MST region, the Max Hops configured on it will be the
network diameter of the spanning tree to limit its scale in the local MST region. The Max
Hops configured on the root bridge in an MST region will be adopted by other switches
in the same region.
Example
# Set the Max Hops of an MST region to 35.
[Quidway] stp max-hops 35
View
Ethernet port view
Parameter
None
Description
Using stp mcheck command, you can perform mcheck on the current port.
If a port of an MSTP switch on a switching network has ever been connected to an STP
switch, the port will automatically transit to operate in STP-compatible mode. However,
when the STP switch is removed, the port stays in STP-compatible mode and cannot
automatically transit back to MSTP mode. In this case, you can perform mCheck
operation to transit the port to MSTP mode by force.
For the related command, see stp mode, stp interface mcheck.
Example
# Set mcheck parameter for Ethernet2/0/1.
[Quidway-Ethernet2/0/1] stp mcheck
View
System view
Parameter
stp: Configure the MSTP operation mode as STP-compatible.
rstp: Configure the MSTP operation mode as RSTP.
Description
Using stp mode command, you can configure MSTP operation mode of the switch.
Using undo stp mode command, you can restore the default MSTP operation mode.
By default, switch work in MSTP mode
MSTP and RSTP are compatible and they can recognize the packets of each other.
However, STP cannot recognize MSTP packets. To implement the compatibility, MSTP
provides two operation modes, STP-compatible mode and MSTP mode. In
STP-compatible mode, the switch sends STP BPDU packets via every port and serves
as a region itself. In MSTP mode, the switch ports send MSTP BPDU packets (when
connected to the STP switch) and the switch provides multiple spanning tree function.
For the related command, see stp mcheck, stp, stp interface, stp interface mcheck.
Example
# Set MSTP operation mode as STP-compatible.
[Quidway] stp mode stp
View
System view
Parameter
dot1d-1998: The switch calculates the default Path Cost of a port by the IEEE
802.1D-1998 standard.
dot1t: The switch calculates the default Path Cost of a port by the IEEE 802.1t
standard.
legacy: The switch calculates the default Path Cost of a port by the Huawei-3Com
company.
Description
Using the stp pathcost-standard command, you can specify the standard to be used
by the switch in calculating the default Path Cost. Using the undo stp
pathcost-standard command, you can restore the default choice of the standard.
By default, the switch calculates the default Path Cost of a port by the IEEE 802.1t
standard.
Table 1-4 Cost corresponding to the port speed of different standard.
Link
speed
0
dot1d-1998
value range
Duplex state
-
dot1t value
range
Huawei-3Com
cost value
65535
200,000,000
200,000
Full-Duplex
100
2,000,000
2,000
Aggregated Link 2
Ports
99
1,999,999
2,000
95
1,000,000
1,800
Aggregated Link 3
Ports
95
666,666
1,600
95
500,000
1,400
Full-Duplex
19
200,000
200
Aggregated Link 2
Ports
18
199,999
200
15
100,000
180
Aggregated Link 3
Ports
15
66,666
160
15
50,000
140
Aggregated Link 2
Ports
20,000
20
10,000
18
Aggregated Link 3
Ports
6,666
16
5,000
14
Aggregated Link 2
Ports
2,000
1,000
Aggregated Link 3
Ports
666
500
Half-Duplex
10Mb/s
Aggregated Link 4
Ports
Half-Duplex
100Mb/s
Aggregated Link 4
Ports
Full-Duplex
1000Mb/
s
Aggregated Link 4
Ports
Full-Duplex
10G/s
Aggregated Link 4
Ports
Generally the path cost of the links in full duplex status is lower than those in half duplex
status.
In calculating the path cost of aggregation links, the 802.1D-1998 does not take into
account the number of aggregation links, but the 802.1T does. The formula involved is:
Path Cost = 200,000,000/link speed in 100Kbps
Where the link speed is the sum of the speed of the ports in unblocked status within the
aggregation links.
Example
# Configure the switch to calculate the default Path Cost of a port by the IEEE
802.1D-1998 standard.
[Quidway] stp pathcost-standard dot1d-1998
# Configure the switch to calculate the default Path Cost of a port by the IEEE 802.1t
standard.
[Quidway] stp pathcost-standard dot1t
View
Ethernet port view
Parameter
force-true: Indicates the Ethernet port connected to a point-to-point link.
force-false: Indicates the Ethernet port not connected to a point-to-point link.
auto: Configure to automatically check if the link to the Ethernet port is a point-to-point
link.
Description
Using stp point-to-point command, you can configure the current Ethernet port (not)
to connect with point-to-point link. Using undo stp point-to-point command, you can
configure the link state to the default state in which MSTP automatically detects if the
link to the Ethernet port is point-to-point link.
By default, switch adopts auto mode.
The port not connected with the point-to-point link cannot transit fast.
The master ports of the link aggregation and the ports operating in full-duplex mode are
connected to the point-to-point link. You are recommended to keep the default settings
and let MSTP detect the link state automatically.
This configuration takes effect on the CIST and all the MSTIs. The settings of a port
whether to connect the point-to-point link will be applied to all the STIs where the port
belongs. Note that a temporary loop may be redistributed if you configure a port not
physically connected with the point-to-point link as connected to such a link by force.
Huawei Technologies Proprietary
1-26
Example
# Configure Ethernet2/0/3 to be connected to the point-to-point link.
[Quidway-Ethernet2/0/3] stp point-to-point force-true
View
Ethernet port view
Parameter
instance instance-id: Specifies the spanning tree instance ID, ranging from 0 to 16. The
Instance 0 represents CIST.
port priority priority: Specifies the port priority, ranging from 0 to 240, with a step length
of 16, e.g., 0, 16, and 32. By default, the priorities of a port on the STIs are 128.
Description
Using stp instance port priority command, you can configure the priority of a port on
a specified STI. Using undo stp instance port priority command, you can restore the
default priority of the port on the specified STI.
You may specify the instance-id parameter as 0 to configure CIST priority of the port.
The port priority has effect on the port role selection. A port can be configured with
different priorities on different MSTIs. Thus the traffic from different VLANs can run over
different physical links, thereby implementing the VLAN-based load-balancing. MSTP
will recalculate the port role and transit its state, upon the port priority changes.
For the related command, see stp interface port priority.
Example
# Set the priority of Ethernet5/0/3 on STI 2 to 16.
[Quidway-Ethernet5/0/3] stp instance 2 port priority 16
View
System view
Parameter
instance-id: Ranges from 0 to 16.
priority: Specifies the switch priority, ranging from 0 to 61440 with a step length of 4096.
That is, 16 priorities are available for the switch including 0, 4096, 8192, etc. By default,
the switch priority is 32768.
Description
Using stp priority command, you can configure the bridge priority in the specified STI.
Using undo stp priority command, you can restore the default value of bridge priority .
The switch priority takes part in the spanning tree calculation. It is configured separately
for every STI. Different STIs can be configured with different priorities.
If specifying the instance ID as 0, the command can configure the CIST priority.
Example
# Set the bridge priority of the switch in STI 1 to 4096.
[Quidway] stp instance 1 priority 4096
View
System view
Parameter
None
Description
Using stp region-configuration command, you can enter MST region view. Using
undo stp region-configuration command, you can restore the default MSTP region
configurations.
By default, the three MST region parameters take the default values. The MST region
name of the switch is the first MAC address, all the VLANs are mapped to CIST, and
MSTP revision level takes 0.
Huawei Technologies Proprietary
1-28
You can enter MST region view, using the stp region-configuration command. And
then you can configure the parameters including region name, revision level, and VLAN
mapping table of the region.
Example
# Enter MST region view.
[Quidway] stp region-configuration
[Quidway-mst-region]
View
System view
Parameter
instance instance-id: Specifies the spanning tree instance ID, ranging from 0 to 16.
Specify it as 0 to configure the root bridge of CIST.
root primary: Configure the current switch as the primary root of the designated STI.
bridge-diameter bridgenum: Specify the network diameter of the spanning tree,
ranging from 2 to 7.
hello-time centi-senconds: Specifies the Hello Time of the spanning tree, ranging from
100 to 1000 and measured in centiseconds.
Description
Using stp root primary command, you can configure the current switch as the primary
root of the designated STI. Using undo stp root command, you can cancel the current
switch for the primary root of the designated STI.
By default, the switch does not server as a root bridge.
You can configure a root bridge for every STI without concerning the switch priority.
When configuring the root bridge, you may also specify the network diameter of the
designated switching network, so that the switch will calculate and get three time
parameter values (Hello time, Forward Delay and Max Age). The Hello time got in this
way may not be as good as expected. You can specify the hello-time centi-senconds
parameter to overwrite it. Normally, you are recommended to set the network diameter
to get the other two time parameter of the switch accordingly.
Caution:
z
In a switching network, you can configure only one root bridge for each STI and one
or more secondary switches. Do not configure more than one root bridge for an STI
at the same time, otherwise, the calculation result will be unpredictable.
After a switch is configured as primary root bridge or secondary root bridge, user
cant modify the bridge priority of the switch.
Example
# Designate the current switch as the root bridge of STI 1 and specifies the diameter of
the switching network as 4 and the Hello Time as 500 centiseconds.
[Quidway] stp instance 1 root primary bridge-diameter 4 hello-time 500
View
System view
Parameter
instance instance-id: Specifies the spanning tree instance ID, ranging from 0 to 16.
Specify it as 0 to configure CIST.
root secondary: Configure the current switch as the secondary root of the designated
STI.
bridge-diameter bridgenum: Specify the network diameter of the spanning tree,
ranging from 2 to 7.
hello-time centi-senconds: Specify the Hello Time of the spanning tree, ranging from
100 to 1000 and measured in centiseconds.
Description
Using stp root secondary command, you can configure the current switch as the
secondary root bridge of a specified STI. Using undo stp root command, you can
cancel the current switch for the secondary root bridge of a specified STI.
By default, the switch does not server as a secondary root bridge.
You can configure one or more secondary root bridges in an STI. If the primary root is
down or powered off, the secondary root will take its place. Among several secondary
root bridges, the one with the smallest MAC address takes the place of the failed
primary root.
When configuring the secondary root bridge, you may also specify the switching
network diameter and the Hello Time of the switch, so that the other two parameters,
Forward Delay and Max Age, of the switch can be determined. To configure the current
switch as the root bridge of CIST, simply specify instance-id as 0. You can configure
only one root bridge for an STI and one or more secondary root bridges for it.
After a switch is configured as primary root bridge or secondary root bridge, user cant
modify the bridge priority of the switch.
Example
# Configure the current switch as the secondary root bridge of STI 4 and specify the
diameter of the switching network as 5 and the Hello Time of the switch as 300
centiseconds.
[Quidway] stp instance 4 root primary bridge-diameter 5 hello-time 300
View
Ethernet port view
Parameter
None
Description
Using stp root-protection command, you can enable on Root protection the switch.
Using undo stp root-protection command, you can restore the default state of Root
protection.
By default, Root protection is disabled.
In case of configuration error or malicious attack, the legal primary root may receive the
BPDU with a higher priority and then loose its place, which causes network topology
change errors. Due to the illegal change, the traffic supposed to travel over the
high-speed link may be pulled to the low-speed link and congestion will occur on the
network.
MSTP provides Root protection function to protect the root bridge: The port configured
with Root protection only plays a role of designated port on every instance. Whenever
such port receives a higher-priority BPDU, it will be set to listening state and not forward
packets any more (as if the link to the port is disconnected). If the port has not received
any higher-priority BPDU for a certain period of time thereafter, it will resume the normal
state.
For the related command, see stp interface root-protection.
Example
# Enable Root protection on the Ethernet2/0/1 port of the switch.
[Quidway-Ethernet2/0/1] stp root-protection
View
System view
Parameter
None
Description
Using the stp tc-protection enable command, you can enable the protection function
from being attacked by TC-BPDU packets on the switch. Using the stp tc-protection
disable command, you can disable the protection function.
By default, the protection from TC-BPDU packet attack is enabled.
As a general rule, the switch deletes the corresponding entries in the MAC address
table and ARP table upon receiving TC-BPDU packets. When under malicious attacks
of TC-BPDU packets, the switch shall receive a great number of TC-BPDU packets in a
very short period. Too frequent delete operations shall consume huge switch sources
and bring great risk to network stability.
When the protection from TC-BPDU packet attack is enabled, the switch just perform
one delete operation in a specified period after receiving TC-BPDU packets, as well as
monitoring whether it receives TC-BPDU packets during this period. Even if it detects a
TC-BPDU packet is received in a period shorter than the specified interval, the switch
shall not run the delete operation till the specified interval is reached. This can avoid
frequent delete operations to the MAC address table and ARP table.
Example
# Enable TC-BPDU protection on the switch.
[Quidway] stp tc-protection enable
View
System view
Parameter
centi-senconds: Specifies Forward Delay, ranging from 400 to 3000 and measured in
centiseconds. By default, the Forward Delay of the switch is 1500 centiseconds.
Description
Using stp timer forward-delay command, you can configure Forward Delay for the
switch. Using undo stp timer forward-delay command, you can restore the default
Forward Delay .
To avoid temporary loop, MSTP defines a medium state, Learning, when the port
switches from the Discarding state to Forwarding state. There is also a delay before
state switchover to guarantee the synchronous switchover with the remote switch. The
Forward Delay configured on the root bridge determines the state transition time.
The root bridge will determine the state transition time according to the configured
values, while the other switches will apply the forward delay configured on it.
When configuring Hello time, Forward Delay and Max Age, please guarantee the
following equations:
2 * (Forward Delay - 1.0 seconds) >= Max Age
Max Age >= 2 * (Hello Time + 1.0 seconds)
Only if the above-mentioned formulas are equal can the MSTP normally operate on the
entire network, otherwise, the network may flap frequently. You are recommended to
use the stp instance root primary command to specify the diameter of the switching
network, so that MSTP can automatically calculate and give the moderate values for
the time parameters.
For the related command, see stp timer hello, stp timer max-age, stp
bridge-diameter.
Example
# Set the Forward Delay of the device to 2000 centiseconds.
[Quidway] stp timer forward-delay 2000
View
System view
Parameter
centi-senconds: Specifies Hello Time value with an integer in the range of 100 to 1000
in units of centiseconds. By default, the Hello Time of the switch is 200 centiseconds.
Description
Using stp timer hello command, you can configure Hello Time of the switch. Using
undo stp timer hello command, you can restore the default Hello Time.
The STP defines to transmit configuration BPDU regularly at an interval specified with
Hello Time to keep the spanning tree stable. If the switch receives no BPDU packets
for a period of time, it will recalculate the spanning tree upon the BPDU timeouts. The
root bridge transmits BPDU packets at an interval as you configured, while other
switches apply the Hello Time configured on the root bridge.
When configuring Hello time, Forward Delay and Max Age, remember to guarantee the
following equations:
2 * (Forward Delay -1.0 seconds) >= Max Age
Max Age >= 2 * (Hello Time + 1.0 seconds)
Only if the above-mentioned formulas are equal can the MSTP normally operate on the
entire network, otherwise, the network may flap frequently. You are recommended to
use the stp instance root primary command to specify the diameter of the switching
network, so that MSTP can automatically calculate and give the moderate values for
the time parameters.
For the related command, see stp timer forward-delay, stp timer max-age, stp
bridge-diameter.
Example
# Set Hello Time of the switch 300 centiseconds.
View
System view
Parameter
centiseconds: Specifies the Max Age, ranging from 600 to 4000 and measured with
centiseconds. By default, the Max Age of the switch is 2000 centiseconds.
Description
Using stp timer max-age command, you can configure the Max Age of the switch.
Using undo stp timer max-age command, you can restore the default Max Age.
MSTP can detect the link fault and automatically resume the forwarding state of the
redundant link. On the CIST, the switch checks if the configuration BPDU received via
the port expires according to the Max Age. If the BPDU expires, the STI has to be
calculated again.
Max Age takes no effect on MSTIs. If the current switch is CIST root bridge, it will check
if the configuration BPDU expires according to the configured Max Age. Otherwise, the
switch adopts the Max Age configured on the CIST root bridge.
When you configure Hello time, Forward Delay and Max Age, ensure the following
formulas equal:
2 * (Forward Delay -1.0 seconds) >= Max Age
Max Age >= 2 * (Hello Time + 1.0 seconds)
Only if the above-mentioned formulas are equal can the MSTP normally operate on the
entire network, otherwise, the network may flap frequently. You are recommended to
use the stp instance root primary command to specify the diameter of the switching
network, so that MSTP can automatically calculate and give the moderate values for
the time parameters.
For the related command, see stp timer forward-delay, stp timer hello, stp
bridge-diameter.
Example
# Set Max Age of the device to 1000 centiseconds.
[Quidway] stp timer max-age 1000
Huawei Technologies Proprietary
1-35
View
System view
Parameter
number: Specifies the timeout time, which must be a multiple of hello time, ranging from
1 to 10. By default, the timeout time is three times of the hello time.
Description
Using stp timer-factor command, you can configure multiple of hello time for the
switch. Using undo stp timer-factor command, you can restore the default multiple
value.
By default, the multiple is 3.
The Ethernet switch transmits STP packets every hello time. Generally, if the switch
doesnt receive the STP packets from the upstream switch for 3 times of hello time, the
switch will decide the upstream switch is dead and will recalculate the topology of the
network. Then in steady network, the recalculation may be caused when the upstream
is busy. In this case, user can redefine the timeout interval to a longer time by define the
multiple of hello time. The stp timer-factor command can be used to modify the value
of multiple. It is recommended to set 5, 6 or 7 as the value of multiple in the steady
network.
Example
# Set the multiple value of hello time to 7.
[Quidway] stp timer-factor 7
View
Ethernet port view
Parameter
packetnum: Specifies the amount limit to the transmitted packets, ranging from 1 to 255
(expressed as a counter value without any units). By default, the value is 3.
Description
Using stp transmit-limit command, you can configure an amount limit to the
configuration BPDU transmitted via a port during the Hello Time. Using undo stp
transmit-limit command, you can restore the default limit.
The larger the value is, the more packets can be transmitted in a time unit, yet the more
switch resources will be occupied. With a moderate value, the amount of the BPDUs
transmitted during Hello Time via every port can be limited and MSTP will not occupy
too many bandwidth resources when the network topology flaps.
For the related command, see stp interface transmit-limit.
Example
# Set a limit of 5 to the packets transmitted via Ethernet2/0/1.
[Quidway-Ethernet2/0/1] stp transmit-limit 5
View
MST region view
Parameter
modulo: Specifies the modulus, ranging from 1 to 16.
Description
Using vlan-mapping modulo command, you can map a VLAN list to an STI.
By default, all the VLANs are mapped to CIST, namely Instance 0.
MSTP describes the association between VLANs and STIs with the VLAN mapping
table. You can use this command to configure this table. Every VLAN can be mapped to
an STI as per your configuration.
A VLAN cannot be mapped to different MSTI at the same time. The latter configured
association will replace the former one.
The vlan-mapping modulo modulo command designates VLAN for every STI fast. It
maps the VLAN to an STI whose ID is (VLAN ID-1)%modulo+1. (Note: (VLAN ID-1)
%modulo performs modulo operation on (VLAN ID-1). Taking the operation modulo 16
Huawei Technologies Proprietary
1-37
Example
# Map VLAN to STI modulo 16.
[Quidway-mst-region] vlan-mapping modulo 16
View
System view
Parameter
None
Description
Use the vlan-vpn tunnel command to enable bridge protocol data unit (BPDU)
Tunnel on the switch.
Use the undo vlan-vpn tunnel command to disable BPDU Tunnel on the switch.
BPDU Tunnel enables geographically segmented user network to transmit BPDU
packets transparently over the specified VLAN VPN on the operators network. This
allows the user network to participate in a uniform spanning tree calculation while
maintaining a separate spanning tree from the operator network.
By default, BPDU Tunnel is disabled.
Note:
z
Be sure to enable STP for network devices that are BPDU TUNNEL-enabled.
Do not enable the BPDU TUNNEL function for ports that have 802.1x, GVRP,
GMRP, STP, or NTDP enabled.
Example
# Enable BPDU Tunnel on the switch.
[Quidway] vlan-vpn tunnel
View
System view, Ethernet interface view
Parameter
None
Description
Using the stp config-digest-snooping command, you can enable digest snooping.
Using the undo stp config-digest-snooping command, you can disable digest
snooping.
Digest snooping is disabled by default.
According to IEEE 802.1s, two connected switches can communicate through MSTIs
(multiple spanning tree instances) in a MSTP (multiple spanning tree protocol) domain
only when they are configured with the same domain settings. With MSTP employed,
interconnected switches determine whether or not they are in the same domain by
checking the configuration IDs of the BPDUs between them. (Configuration ID
comprises information such as domain ID and configuration digest.)
As some switches come with some proprietary protocols concerning STP employed,
they cannot communicate with other switches in MSTP domains even both of them are
configured with the same domain configuration settings.
This can be overcome by implementing digest snooping. Digest snooping enables a
switch to track and maintain configuration digests of other switches that are in the same
domain by examining their BPDUs and insert corresponding configuration digests in its
BPDUs destined for these switches, through which switches of different type are
capable of communicating with each other in a MSTP domain.
Note:
z
You must enable digest snooping on an interface first before enabling it globally.
Digest snooping is unnecessay if the interconnected switches are from the same
vendor.
To enable digest snooping, the interconneted switches must be configured with the
same settings.
To enable digest snooping, all interfaces in a MSTP domain used to connect other
switches must have digest snooping enabled.
Example
# Enable digest snooping on Ethernet3/0/1 interface.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet3/0/1
[Quidway-Ethernet3/0/1] stp config-digest-snooping
[Quidway-Ethernet3/0/1] quit
[Quidway]stp config-digest-snooping
View
System view
Parameter
interface-type: Port type.
interface-number: Port number.
Description
Use the stp interface no-agreement-check command to enable rapid transition for a
specified port.
Use the undo stp interface no-agreement-check command to disable rapid transition
on a port.
Rapid transition is disabled on a port by default.
As switches of certain manufacturers coming with some proprietary protocols
concerning STP employed, the way to implement rapid transition on the designated
ports of this kind of switches is similar to that of RSTP. So, when a switch of this kind
operates as the upstream switch with Quidway series switches running MSTP
connected to it, the upstream designated port fails to change their state rapidly.
Rapid transition is developed for Quidway series switches to avoid this. When Quidway
series switches with MSTP employed are connected to switches of certain
manufacturers, you can enable rapid transition on the ports of the Quidway series
switches operating as the downstream switches. 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 rather than wait for the
agreement packets sourced from the upstream switch. This enables designated ports
of the upstream switch to change their states rapidly.
Note:
Configure rapid transition for root port or Alternate port only.
Example
# Enable rapid transition on Ethernet3/0/1 port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway]stp interface Ethernet3/0/1 no-agreement-check
View
Ethernet port view
Parameter
None
Description
Use the stp no-agreement-check command to enable rapid transition for the port.
Use the undo stp no-agreement-check command to disable rapid transition on the
port.
Rapid transition is disabled on a port by default.
As switches of certain manufacturers coming with some proprietary protocols
concerning STP employed, the way to implement rapid transition on the designated
ports of this kind of switches is similar to that of RSTP. So, when a switch of this kind
operates as the upstream switch with Quidway series switches running MSTP
connected to it, the upstream designated port fails to change their state rapidly.
Rapid transition is developed for Quidway series switches to avoid this. When Quidway
series switches with MSTP employed are connected to switches of certain
manufacturers, you can enable rapid transition on the ports of the Quidway series
switches operating as the downstream switches. Among these ports, those operating
as the root ports will then send agreement packets to their upstream ports after they
Huawei Technologies Proprietary
4-2
receive proposal packets from the upstream designated ports rather than wait for the
agreement packets sourced 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:
Configure rapid transition for root port or Alternate port only.
Example
# Enable rapid transition on Ethernet3/0/1 port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway]interface Ethernet3/0/1
[Quidway-Ethernet3/0/1]stp no-agreement-check
[Quidway-Ethernet3/0/1]
HUAWEI
Security
Table of Contents
Table of Contents
Chapter 1 802.1x Configuration Commands .............................................................................. 1-1
1.1 802.1x Configuration Commands ...................................................................................... 1-1
1.1.1 display dot1x ........................................................................................................... 1-1
1.1.2 dot1x........................................................................................................................ 1-2
1.1.3 dot1x authentication-method................................................................................... 1-3
1.1.4 dot1x dhcp-launch................................................................................................... 1-4
1.1.5 dot1x guest-vlan ...................................................................................................... 1-5
1.1.6 dot1x max-user........................................................................................................ 1-6
1.1.7 dot1x port-control .................................................................................................... 1-7
1.1.8 dot1x port-method ................................................................................................... 1-8
1.1.9 dot1x quiet-period ................................................................................................... 1-9
1.1.10 dot1x re-authenticate .......................................................................................... 1-10
1.1.11 dot1x retry ........................................................................................................... 1-11
1.1.12 dot1x retry-version-max ...................................................................................... 1-12
1.1.13 dot1x supp-proxy-check ...................................................................................... 1-12
1.1.14 dot1x timer........................................................................................................... 1-14
1.1.15 dot1x version-check ............................................................................................ 1-15
1.1.16 reset dot1x statistics............................................................................................ 1-16
Chapter 2 AAA Configuration Commands.................................................................................. 2-1
2.1 AAA Configuration Commands.......................................................................................... 2-1
2.1.1 access-limit.............................................................................................................. 2-1
2.1.2 attribute ................................................................................................................... 2-1
2.1.3 cut connection ......................................................................................................... 2-3
2.1.4 display connection................................................................................................... 2-4
2.1.5 display domain ........................................................................................................ 2-5
2.1.6 display local-user..................................................................................................... 2-6
2.1.7 domain..................................................................................................................... 2-8
2.1.8 idle-cut..................................................................................................................... 2-9
2.1.9 level ....................................................................................................................... 2-10
2.1.10 local-user............................................................................................................. 2-11
2.1.11 local-user password-display-mode...................................................................... 2-11
2.1.12 messenger........................................................................................................... 2-12
2.1.13 name ................................................................................................................... 2-13
2.1.14 password ............................................................................................................. 2-14
2.1.15 radius-scheme..................................................................................................... 2-14
2.1.16 scheme................................................................................................................ 2-15
2.1.17 self-service-url ..................................................................................................... 2-16
Huawei Technologies Proprietary
i
Table of Contents
View
Any view
Parameter
sessions: Configures to display the session connection information of 802.1x.
statistics: Configures to display the relevant statistics information of 802.1x.
interface: Configures to display the 802.1x information on the specified interface.
interface-list: Ethernet interface list including several Ethernet interfaces, expressed in
the format interface-list = { interface-num [ to interface-num ] } & < 1-10 >.
interface-num specifies a single Ethernet interface in the format interface-num =
{ interface-type interface-num | interface-name }, where interface-type specifies the
interface type, interface-num specifies the interface number and interface-name
specifies the interface name. For the respective meanings and value ranges, read the
Parameter of the Port Command Manual section.
Description
Using display dot1x command, you can view the relevant information of 802.1x,
including configuration information, running state (session connection information) and
relevant statistics information.
By default, all the relevant 802.1x information about each interface will be displayed.
If no port is specified when executing this command, the system will display all 802.1x
related information. For example, 802.1x configuration of all ports, 802.1x session
connection information, and 802.1x data statistical information. The output information
of this command can help the user to verify the current 802.1x configurations so as to
troubleshoot 802.1x .
For the related commands, see reset dot1x statistics, dot1x, dot1x retry, dot1x
max-user, dot1x port-control, dot1x port-method, dot1x timer.
Example
# Display the configuration information of 802.1x.
<Quidway> display dot1x
Equipment 802.1X protocol is enabled
CHAP authentication is enabled
DHCP-launch is disabled
Proxy trap checker is disabled
Proxy logoff checker is disabled
30 s,
Handshake Period
15 s
003600 s
Quiet Period
60 s,
Supp Timeout
30 s,
Server Timeout
100 s
GigabitEthernet1/0/3
is link-up
1.1.2 dot1x
Syntax
dot1x [ interface interface-list ]
undo dot1x [ interface interface-list ]
View
System view/Ethernet port view
Parameter
interface interface-list: Ethernet port list including several Ethernet ports. interface-list
= { interface-num [ to interface-num ] } & < 1-10 >. interface-num specifies a single
Ethernet port in the format interface-num = { interface-type interface-num |
interface-name }, where interface-type specifies the port type, interface-num specifies
the port number and interface-name specifies the port name. For the respective
meanings and value ranges, read the Parameter of the Port Configuration section.
Description
Using dot1x command, you can enable 802.1x on the specified port or globally (i.e., on
the current device). Using undo dot1x command, you can disable the 802.1x on the
specified port or globally.
By default, 802.1x is disabled on all the ports and globally on the device.
This command is used to enable the 802.1x on the current device or on the specified
port. When it is used in system view, if the parameter ports-list is not specified, 802.1x
will be globally enabled. If the parameter ports-list is specified, 802.1x will be enabled
on the specified port. When this command is used in Ethernet port view, the parameter
interface-list cannot be input and 802.1x can only be enabled on the current port.
The configuration command can be used to configure the global or port 802.1x
performance parameters before or after 802.1x is enabled. Before 802.1x is enabled
globally, if the parameters are not configured globally or for a specified port, they will
maintain the default values.
After the global 802.1x performance is enabled, only when port 802.1x performance is
enabled will the configuration of 802.1x become effective on the port.
For the related commands, see display dot1x.
Example
# Enable 802.1x on Ethernet 3/0/1.
[Quidway] dot1x interface Ethernet 3/0/1
# Enable the 802.1x globally.
[Quidway] dot1x
View
System view
Huawei Technologies Proprietary
1-3
Parameter
chap: Use CHAP authentication method.
pap: Use PAP authentication method.
eap: Use EAP authentication method.
Description
Using dot1x authentication-method command, you can configure the authentication
method for 802.1x user. Using undo dot1x authentication-method command, you
can restore the default authentication method of 802.1x user.
By default, CHAP authentication is used for 802.1x user authentication.
Password Authentication Protocol (PAP) is a kind of authentication protocol with two
handshakes. It sends password in the form of simple text.
Challenge Handshake Authentication Protocol (CHAP) is a kind of authentication
protocol with three handshakes. It only transmits username but not password. CHAP is
more secure and reliable.
In the process of EAP authentication, switch directly sends authentication information
of 802.1x user to RADIUS server in the form of EAP packet. It is not necessary to
transfer the EAP packet to standard RADIUS packet first and then send it to RADIUS
server. By now, for EAP authentication, PEAP, EAP-TLS and EAP-MD5 methods are
available.
If you want to enable PEAP, EAP-TLS or EAP-MD5 authentication method on an
Ethernet switch, you only need to use the command dot1x authentication-method
eap to enable EAP authentication.
Please note: To realize PAP, CHAP or EAP authentication, RADIUS server should
support PAP, CHAP or EAP authentication respectively.
For the related command, see display dot1x.
Example
# Configure 802.1x user to use PAP authentication.
[Quidway] dot1x authentication-method pap
View
System view
Huawei Technologies Proprietary
1-4
Parameter
None
Description
Using dot1x dhcp-launch command, you can set 802.1x to disable the switch to
trigger the user ID authentication over the users who configure static IP addresses in
DHCP environment. Using undo dot1x dhcp-launch command, you can set 802.1x to
enable the switch to trigger the authentication over them.
By default, the switch can trigger the user ID authentication over the users who
configure static IP addresses in DHCP environment.
For the related command, see dot1x.
Example
# Disable the switch to trigger the authentication over the users who configure static IP
addresses in DHCP environment.
[Quidway] dot1x dhcp-launch
View
System view/Ethernet port view
Parameter
vlan-id: ID of Guest VLAN, ranging from 1 to 4094.
interface_list: Enable the Guest VLAN interface list. interface_list = { interface_type
interface_num
interface_name
to
interface_type
interface_num
interface_name } ] &<1-10>. Note that after the key work to, the port number must be
equal to or greater than the port number before to. &<1-10> means the parameter
before it can be input repeatedly for 10 times.
Description
Using the dot1x guest-vlan command, you can enable the Guest VLAN function on
specified port. Using the undo dot1x guest-vlan command, you can disable this
function.
When you execute this command in system view, if you do not input the interface-list
parameter, it means that to enable Guest VLAN on all ports; if you specify this
parameter, it means that to enable Guest VLAN on the specified port.
When you execute this command in Ethernet port view, you can only enable Guest
VLAN on the current port, and the interface-list parameter cannot be input.
Note the following:
z
Users who skip the authentication, fail in the authentication or get offline belong to
the Guest VLAN.
Example
# Set the authentication mode to port-based.
[Quidway] dot1x port-method portbased
# Enable Guest VLAN on all ports.
[Quidway] dot1x guest-vlan 1
View
System view/Ethernet port view
Parameter
user-number: Specifies the limit to the amount of supplicants on the port, ranging from 1
to 1024. By default, the maximum user number is 1024.
interface interface-list: Ethernet interface list including several Ethernet interfaces,
expressed in the format interface-list = { interface-num [ to interface-num ] } & <1-10>.
interface-num specifies a single Ethernet interface in the format interface-num =
{ interface-type interface-num | interface-name }, where interface-type specifies the
interface type, interface-num specifies the interface number and interface-name
specifies the interface name. For the respective meanings and value ranges, read the
Parameter of the Port Command Manual section.
Description
Using dot1x max-user command, you can configure a limit to the amount of
supplicants on the specified interface of 802.1x. Using undo dot1x max-user
command, you can restore the default value.
This command is used for setting a limit to the amount of supplicants that 802.1x can
hold on the specified interface. This command has effect on the interface specified by
the parameter interface-list when executed in system view. It has effect on all the
interfaces when no interface is specified. The parameter interface-list cannot be input
when the command is executed in Ethernet Port view and it has effect only on the
current interface.
For the related commands, see display dot1x.
Example
# Configure the interface Ethernet 3/0/1 to hold no more than 32 users.
[Quidway] dot1x max-user 32 interface Ethernet 3/0/1
View
System view/Ethernet port view
Parameter
auto: Automatic identification mode, configuring the initial state of the interface as
unauthorized. The user is only allowed to receive or transmit EAPoL packets but not to
access the network resources. If the user passes the authentication flow, the interface
will switch over to the authorized state and then the user is allowed to access the
network resources. This is the most common case.
authorized-force: Forced authorized mode, configuring the interface to always stay in
authorized state and the user is allowed to access the network resources without
authentication/authorization.
unauthorized-force: Forced unauthorized mode, configuring the interface to always
stay in non-authorized mode and the user is not allowed to access the network
resources.
interface interface-list: Ethernet interface list including several Ethernet interfaces,
expressed in the format interface-list = { interface-num [ to interface-num ] } & < 1-10 >.
Huawei Technologies Proprietary
1-7
Description
Using dot1x port-control command, you can configure the mode for 802.1x to perform
access control on the specified interface. Using undo dot1x port-control command,
you can restore the default access control mode.
By default, the value is auto.
This command is used to set the mode, or the interface state, for 802.1x to perform
access control on the specified interface. This command has effect on the interface
specified by the parameter interface-list when executed in system view. It has effect on
all the interfaces when no interface is specified. The parameter interface-list cannot be
input when the command is executed in Ethernet port view and it has effect only on the
current interface.
For the related commands, see display dot1x.
Example
# Configure the interface Ethernet 3/0/1 to be in unauthorized-force state.
[Quidway] dot1x port-control unauthorized-force interface Ethernet 3/0/1
View
System view/Ethernet Port view
Parameter
macbased: Configures the 802.1x authentication system to perform authentication on
the supplicant based on MAC address.
portbased: Configures the 802.1x authentication system to perform authentication on
the supplicant based on port.
interface interface-list: Ethernet interface list including several Ethernet interfaces,
expressed in the format interface-list = { interface-num [ to interface-num ] } & < 1-10 >.
interface-num specifies a single Ethernet interface in the format interface-num =
{ interface-type interface-num | interface-name }, where interface-type specifies the
Huawei Technologies Proprietary
1-8
Description
Using dot1x port-method command, you can configure the base for 802.1x to perform
access control on the specified interface. Using undo dot1x port-method command,
you can restore the default access control base.
By default, the value is macbased.
This command is used to set the base for 802.1x to perform access control. When
macbased is adopted, the user access this interface must be authenticated
independently, and if one successful authentication user is to finish network service, the
other accessed users can still use network service. When portbased is adopted, if only
the first access user by this interface can be authenticated successfully, the other
access users followed can be considered authenticated successfully automatically ,but
if the first one finish the network service , the other accessed users network service will
be rejected . .
This command has effect on the interface specified by the parameter interface-list
when executed in system view. It has effect on all the interfaces when no interface is
specified. The parameter interface-list cannot be input when the command is executed
in Ethernet Port view and it has effect only on the current interface.
For the related commands, see display dot1x.
Example
# Authenticate the supplicant based on the interface number on Ethernet 3/0/1.
[Quidway] dot1x port-method portbased interface Ethernet 3/0/1
View
System view
Parameter
None
Description
Using dot1x quiet-period command, you can enable the quiet-period timer. Using
undo dot1x quiet-period command, you can disable this timer.
If an 802.1x user has not passed the authentication, the Authenticator will keep quiet for
a while (which is specified by quiet-period timer) before launching the authentication
again. During the quiet period, the Authenticator does not do anything related to 802.1x
authentication.
By default, quiet-period timer is disabled.
For the related commands, see display dot1x , dot1x timer.
Example
# Enable quiet-period timer.
[Quidway] dot1x quiet-period
View
System view/Ethernet port view
Parameter
interface interface-list: Ethernet interface list, represents multiple Ethernet interfaces,
in the format of interface-list = { interface-num [ to interface-num ] } & < 1-10 >.
interface-num is a single Ethernet port, in the format of interface-num = { interface-type
interface-num | interface-name }.
Description
Using the dot1x re-authenticate command, you can enable 802.1x re-authentication
on a specific port or all the authenticator ports on a device.
Using the undo dot1x re-authenticate command, you can disable 802.1x
re-authentication on a specific port or all the authenticator ports on a device.
By default, 802.1x re-authentication is disabled on all ports.
In system view, if the interface-list parameter is not specified, it means that to enable
the 802.1x re-authentication feature on all interfaces; if the interface-list parameter is
specified, it means that to enable the feature on the specified interfaces. In Ethernet
port view, the interface-list parameter cannot be specified, and you can use command
only to enable the feature on the current interface.
Huawei Technologies Proprietary
1-10
Before configuring 802.1x re-authentication feature on a port, you must enable the
feature both globally and on this port.
Example
# Enable 802.1x reauthentication on port Ethernet 3/0/1.
[Quidway-Ethernet3/0/1] dot1x re-authenticate
Re-authentication is enabled on port Ethernet 3/0/1
View
System view
Parameter
max-retry-value: Specifies the maximum times an Ethernet switch can retransmit the
authentication request frame to the supplicant, ranging from 1 to 10. By default, the
value is 2, that is, the switch can retransmit the authentication request frame to the
supplicant for 2 times.
Description
Using dot1x retry command, you can configure the maximum times an Ethernet switch
can retransmit the authentication request frame to the supplicant. Using undo dot1x
retry command, you can restore the default maximum retransmission time.
After the switch has transmitted authentication request frame to the user for the first
time, if no user response is received during the specified time-range, the switch will
re-transmit authentication request to the user. This command is used for specifying
how many times the switch can re-transmit the authentication request frame to the
supplicant. When the time is 1, the switch is configured to transmit authentication
request frame only once. 2 indicates that the switch is configured to transmit
authentication request frame once again when no response is received for the first time
and so on. This command has effect on all the port after configuration.
For the related commands, see display dot1x.
Example
# Configure the current device to transmit authentication request frame to the user for
no more than 9 times.
[Quidway] dot1x retry 9
Huawei Technologies Proprietary
1-11
View
System view
Parameter
max-retry-version-value: The maximum retry times for a device to send the version
request frame to an access user. The value ranges form 1 to 10, and defaults to 3.
Description
Using the dot1x retry-version-max command, you can set the maximum retry times
for an Ethernet switch to send version request frame to an access user. Using the undo
dot1x retry-version-max command, you can return the value to the defaults.
After sending client version request frame for the first time, if the switch receives no
response from the client response within a certain period of time (set by the version
authentication timeout timer), it resends version request again. When the switch
receives no response for the configured maximum times, it no longer authenticates the
version of the client, and perform the following authentications. If configured, this
command functions on all ports that enabled version authentication function.
See display dot1x and dot1x timer for related configuration.
Example
# Configure the switch to send version request frame to an access user 6 times at the
most.
[Quidway] dot1x retry-version-max 6
View
System view/Ethernet Port view
Parameter
logoff: Cuts network connection to a user upon detecting the use of proxy.
Huawei Technologies Proprietary
1-12
trap: Sends trap message upon detecting a user using proxy to access the switch.
interface interface-list: Ethernet interface list including several Ethernet interfaces,
expressed in the format interface-list = { interface-num [ to interface-num ] } & < 1-10 >.
interface-num specifies a single Ethernet interface in the format interface-num =
{ interface-type interface-num | interface-name }, where interface-type specifies the
interface type, interface-num specifies the interface number and interface-name
specifies the interface name. For the respective meanings and value ranges, read the
Parameter of the Port Command Manual section.
Description
Using dot1x supp-proxy-check command, you can configure the control method for
802.1x access users via proxy logon the specified interface. Using undo dot1x
supp-proxy-check command, you can cancel the control method set for the 802.1x
access users via proxy.
Note that when performing this function, the user logging on via proxy need to run
Huawei 802.1x client program,( Huawei 802.1x client program version V1.29 or above
is needed).
This command is used to set on the specified interface when executed in system view.
The parameter interface-list cannot be input when the command is executed in
Ethernet Port view and it has effect only on the current interface. After globally enabling
proxy user detection and control in system view, only if you enable this feature on a
specific port can this configuration take effects on the port.
For the related command, see display dot1x.
Example
# Configure the switch cut network connection to a user upon detecting the use of proxy
on Ethernet 3/0/1 ~ Ethernet 3/0/8.
[Quidway] dot1x supp-proxy-check logoff
[Quidway] dot1x supp-proxy-check logoff interface Ethernet 3/0/1 to Ethernet 3/0/8
# Configure the switch to send trap message upon detecting the use of proxy on
Ethernet 3/0/9.
[Quidway] dot1x supp-proxy-check trap
[Quidway] dot1x supp-proxy-check trap interface Ethernet 3/0/9
or
[Quidway] dot1x supp-proxy-check trap
[Quidway] interface Ethernet 3/0/9
[Quidway-Ethernet3/0/9] dot1x supp-proxy-check trap
timer
quiet-period-value
handshake-period
|
reauth-period
handshake-period-value
reauth-period-value
quiet-period
server-timeout
View
System view
Parameter
handshake-period: This timer begins after the user has passed the authentication.
After setting handshake-period, system will send the handshake packet by the period.
Suppose the dot1x retry time is configured as N, the system will consider the user
having logged off and set the user as logoff state if system doesnt receive the response
from user for consecutive N times.
handshake-period-value: Handshake period. The value ranges from 1 to 1024 in units
of second and defaults to 15.
quiet-period: Specify the quiet timer. If an 802.1x user has not passed the
authentication, the Authenticator will keep quiet for a while (which is specified by
quiet-period timer) before launching the authentication again. During the quiet period,
the Authenticator does not do anything related to 802.1x authentication.
quiet-period-value: Specify how long the quiet period is. The value ranges from 10 to
120 in units of second and defaults to 60.
server-timeout: Specify the timeout timer of an Authentication Server. If an
Authentication Server has not responded before the specified period expires, the
Authenticator will resend the authentication request.
server-timeout-value: Specify how long the duration of a timeout timer of an
Authentication Server is. The value ranges from 100 to 300 in units of second and
defaults to 100 seconds.
supp-timeout: Specify the authentication timeout timer of a Supplicant. After the
Authenticator sends Request/Challenge request packet which requests the MD5
encrypted text, the supp-timeout timer of the Authenticator begins to run. If the
Supplicant does not respond back successfully within the time range set by this timer,
the Authenticator will resend the above packet.
supp-timeout-value: Specify how long the duration of an authentication timeout timer of
a Supplicant is. The value ranges from 10 to 120 in units of second and defaults to 30.
Huawei Technologies Proprietary
1-14
tx-period: Specify the transmission timeout timer. After the Authenticator sends the
Request/Identity request packet which requests the user name or user name and
password together, the tx-period timer of the Authenticator begins to run. If the
Supplicant does not respond back with authentication reply packet successfully, then
the Authenticator will resend the authentication request packet.
tx-period-value: Specify how long the duration of the transmission timeout timer is. The
value ranges from 10 to 120 in units of second and defaults to 30.
reauth-period: Re-authentication timeout timer. During the time limit set by this timer,
the supplicant device launches 802.1x re-authentication.
reauth-period-value: Period set by the re-authentication timeout timer, ranging from 1 to
86400, in seconds. By default, the value is 3600.
ver-period: Client version request timeout timer. If the supplicant device failed to send
the version response packet within the time set by this timer, then the authenticator
device will resend the version request packet.
ver-period-value: Period set by the version request timeout timer, ranging from 1 to 30,
in seconds. By default, the value is 30.
Description
Using dot1x timer command, you can configure the 802.1x timers. Using undo dot1x
timer command, you can restore the default values.
When it is run, 802.1x enables many timers to control the rational and orderly
interacting of the Supplicant, the Authenticator and the Authenticator Server. This
command can set some of the timers (while other timers cannot be set) to adapt the
interaction process. It could be necessary for some special and hard network
environment. Generally, the user should keep the default values of the timers.
For the related commands, see display dot1x.
Example
# Set the Authentication Server timeout timer is 150s.
[Quidway] dot1x timer server-timeout 150
View
System view/Ethernet port view
Parameter
interface interface-list: Ethernet interface list, represents multiple Ethernet interfaces,
in the format of interface-list = { interface-num [ to interface-num ] } & < 1-10 >.
interface-num is a single Ethernet port, in the format of interface-num = { interface-type
interface-num | interface-name }.
Description
Using the dot1x version-check command, you can enable the 802.1x client version
authentication feature on a specific port. Using the undo dot1x version-check
command, you can disable the feature on a specific port.
By default, 802.1x client version authentication feature is disabled on all ports.
In system view, if the interface-list parameter is not specified, it means that to enable
the 802.1x client version authentication feature on all interfaces; if the interface-list
parameter is specified, it means that to enable the feature on the specified interfaces. In
Ethernet port view, the interface-list parameter cannot be specified, and you can use
command only to enable the feature on the current interface.
Example
# Configure the port Ethernet 3/0/1 to detect the version of the 802.1x client when it
receives an authentication packet.
[Quidway-Ethernet3/0/1] dot1x version-check
View
User view
Parameter
interface interface-list: Ethernet port list including several Ethernet ports. interface-list
= { interface-num [ to interface-num ] } & < 1-10 >. interface-num specifies a single
Ethernet port in the format port-num = { interface-type interface-num | interface-name },
where interface-type specifies the port type, interface-num specifies the port number
and interface-name specifies the port name. For the respective meanings and value
ranges, read the Parameter of the Port Configuration section.
Description
Using reset dot1x statistics command, you can reset the statistics of 802.1x.
This command can be used to re-perform statistics if the user wants to delete the
former statistics of 802.1x.
When the original statistics is cleared, if no port type or port number is specified, the
global 802.1x statistics of the switch and 802.1x statistics on all the ports will be cleared.
If the port type and port number are specified, the 802.1x statistics on the specified port
will be cleared.
For the related commands, see display dot1x.
Example
# Clear the 802.1x statistics on Ethernet 3/0/1.
<Quidway> reset dot1x statistics interface Ethernet 3/0/1
View
ISP domain view
Parameter
disable: No limit to the supplicant number in the current ISP domain.
enable max-user-number: Specifies the maximum supplicant number in the current
ISP domain, ranging from 1 to 4120.
Description
Using access-limit command, you can configure a limit to the amount of supplicants in
the current ISP domain. Using undo access-limit command, you can restore the limit
to the default setting.
By default, there is no limit to the amount of supplicants in the current ISP domain.
The access-limit command limits the amount of supplicants contained in the current
ISP domain. The supplicants may contend for the network resources. So setting a
suitable limit to the amount will guarantee the reliable performance for the existing
supplicants.
Example
# Set a limit of 500 supplicants for the ISP domain named huawei163.net.
[Quidway-isp-huawei163.net] access-limit enable 500
2.1.2 attribute
Syntax
attribute { ip ip-address | mac mac-address | idle-cut second | access-limit
max-user-number | vlan vlanid | location { nas-ip ip-address port portnum | port
portnum }
View
Local user view
Parameter
ip: Specifies the bound IP address of a user.
mac mac-address: Specifies the bound MAC address of a user. Where, mac-address
takes on the hexadecimal format of H-H-H.
idle-cut second: Allows/Disallows the local users to enable the idle-cut function. (The
specific data for this function depends on the configuration of the ISP domain where the
users locate.) The argument minute defines the idle-cut time, which is in the range of 60
to 7200 seconds.
access-limit max-user-number: Specifies the maximum number of access users who
access the device by using the current user name. The argument max-user-number is
in the range of 1 to 4096.
vlan vlanid: Sets the bound VLAN attribute of a user, in other words, the VLAN to which
a user belong. The argument vlanid is an integer in the range of 1 to 4094.
location: Sets the port binding attribute of user.
nas-ip ip-address: The IP address of the access server in the event of binding a remote
port with a user. The argument ip-address is an IP address in dotted decimal format and
defaults to 127.0.0.1.
port portnum: Sets the port with which a user is bound. The argument portnum is
represented by SlotNumber SubSlotNumber PortNumber. If any of these three items
is absent, the value 0 can be used to replace it.
Description
Using attribute command, you can configure some attributes for specified local user.
Using undo attribute command, you can cancel the attributes that have been defined
for this local user.
It should be noted that the argument nas-ip must be defined for a user bound with a
remote port, which is unnecessary, however, in the event of a user bound with a local
port.
For the related command, see display local-user.
Example
# Configure the IP address 10.110.50.1 to the user huawei1.
[Quidway-luser-huawei1] attribute ip 10.110.50.1
View
System view
Parameter
all: Configures to disconnect all connection.
access-type dot1x: Configures to cut connections of 802.1x users.
domain domain-name: Configures to cut the connection according to ISP domain.
domain-name specifies the ISP domain name with a character string not exceeding 24
characters. The specified ISP domain shall have been created.
mac mac-address: Configures to cut the connection of the supplicant whose MAC
address is mac-address. The argument mac-address is in the hexadecimal format
(H-H-H).
radius-scheme radius-scheme-name: Configures to cut the connection according to
RADIUS server name. radius-scheme-name specifies the RADIUS server name with a
character string not exceeding 32 characters
interface interface-type interface-number: Configures to cut the connection according
to the port.
ip ip-address: Configures to cut the connection according to IP address. The argument
ip-address is in the hexadecimal format (ip-address).
vlan vlanid: Configures to cut the connection according to VLAN ID. Here, vlanid
ranges from 1 to 4094.
ucibindex ucib-index: Configures to cut the connection according to ucib-index.
user-name user-name : Configures to cut the connection according to user name .
user-name is the argument specifying the username. It is a character string not
exceeding 80 characters, excluding /, :, *, ?, < and >. The @ character can
only be used once in one username. The pure username (the part before @, namely
the user ID) cannot exceed 55 characters.
Description
Using cut connection command, you can disconnect a user or a category of users by
force.
By now, this command is available for 802.1x users.
Example
# Cut all the connections of 802.1x users in the ISP domain, huawei163.net.
[Quidway] cut connection domain huawei163.net
View
Any view
Parameter
access-type dot1x: Configures to display the supplicants according to their logon type.
dot1x means the 802.1x users.
domain domain-name: Configures to display all the users in an ISP domain.
domain-name specifies the ISP domain name with a character string not exceeding 24
characters. The specified ISP domain shall have been created.
mac mac-address: Configures to display the supplicant whose MAC address is
mac-address. The argument mac-address is in the hexadecimal format (H-H-H).
radius-scheme radius-scheme-name: Configures to display the supplicant according
to RADIUS server name. radius-scheme-name specifies the RADIUS server name with
a character string not exceeding 32 characters.
interface interface-type interface-number: Configures to display the supplicant
according the port.
ip ip-address: Configures to display the user specified with IP address. The argument
ip-address is in the hexadecimal format (ip-address).
vlan vlanid: Configures to display the user specified with VLAN ID. Here, vlanid ranges
from 1 to 4094.
ucibindex ucib-index: Configures to display the user specified with ucib-index.
user-name user-name: Configures to display a user specifies with user-name.
user-name is the argument specifying the username. It is a character string not
exceeding 32 characters, excluding /, :, *, ?, < and >. The @ character can
only be used once in one username. The pure username (the part before @, namely
the user ID) cannot exceed 24 characters.
Description
Using display connection command, you can view the relevant information of all the
supplicants or the specified one(s). The output can help you with the user connection
diagnosis and troubleshooting.
If no parameter is specified, this command displays the related information about all
connected users.
By now, this command is available for 802.1x users.
For the related command, see cut connection.
Example
# Display the relevant information of all the 802.1x users.
<Quidway> display connection
Total 0 connections matched ,0 listed.
View
Any view
Parameter
isp-name: Specifies the ISP domain name, with a character string not exceeding 24
characters. The specified ISP domain shall have been created.
Description
Using display domain command, you can view the configuration of a specified ISP
domain or display the summary information of all ISP domains.
This command is used to output the configuration of a specified ISP domain or display
the summary information of all ISP domains. If an ISP domain is specified, the
configuration information will be displayed exactly the same, concerning the content
and format, as the displayed information of the display domain command. The output
information can help with ISP domain diagnosis and troubleshooting. Note that the
accounting scheme to be displayed should have been created.
For the related commands, see access-limit, domain, radius scheme, state, display
domain.
Example
# Display the summary information of all ISP domains of the system.
Huawei Technologies Proprietary
2-5
Domain = system
State = Active
Scheme = LOCAL
Access-limit = Disable
Vlan-assignment-mode = Integer
Domain User Template:
Idle-cut = Disable
Self-service = Disable
Messenger Time = Disable
View
Any view
Parameter
domain isp-name: Configures to display all the local users in the specified ISP domain.
isp-name specifies the ISP domain name with a character string not exceeding 24
characters. The specified ISP domain shall have been created.
idle-cut: Configures to display the local users according to the state of idle-cut function.
disable means that the user disables the idle-cut function and enable means the user
enables the function. This parameter only takes effect on the users configured as
lan-access type. For other types of users, the display local-user idle-cut enable and
display local-user idle-cut disable commands will not display any information.
service-type: Configures to display local user of a specified type. telnet means that:
the specified user type is telnet. ftp means that: the specified user type is ftp.
lan-access means that the specified user type is lan-access which mainly refers to
Ethernet accessing users, 802.1x supplicants for example. terminal means the
specified user type is terminal which refers to users who use the terminal service (login
from the Console port).
state { active | block } Configures to display the local users in the specified state.
active means that the system allows the user requesting network service and block
means the system does not allow the user requesting network service.
Description
Using display local-user command, you can view the relevant information of all the
local users or the specified one(s).
This command displays the relevant information about a specified or all the local users.
The output can help you with the fault diagnosis and troubleshooting related to local
user.
For the related command, see local-user.
Example
# Display the relevant information of all the local users.
<Quidway> display local-user
The contents of local user user1:
State:
Active
Idle Cut:
Disable
AccessLimit:
Disable
Bind location:
Disable
Vlan ID:
Disable
IP address:
Disable
MAC address:
Disable
Current AccessNum: 0
Description
State
Idle-Cut
Access-Limit
Bind location
VLAN ID
IP address
MAC address
Field
Description
FTP Directory
2.1.7 domain
Syntax
domain { isp-name | default { disable | enable isp-name } }
undo domain isp-name
View
System view
Parameter
isp-name: Specifies an ISP domain name. The name is expressed with a character
string not exceeding 24 characters, excluding /, : , *, ? , <, and >.
default enable isp-name: Enables the default ISP domain specified by isp-name.
default disable: Restores the default ISP domain to system.
Description
Using domain command, you can configure an ISP domain or enter the view of an
existing ISP domain. Using undo domain command, you can cancel a specified ISP
domain.
By default, a domain named system has been created in the system. The attributes of
system are all default values.
ISP domain is a group of users belonging to the same ISP. Generally, for a username in
the userid@isp-name format, taking [email protected] as an example, the
isp-name (i.e.huawei163.net) following the @ is the ISP domain name. When Quidway
Series Ethernet Switches control user access, as for an ISP user whose username is in
userid@isp-name format, the system will take userid part as username for identification
and take isp-name part as domain name.
The purpose of introducing ISP domain settings is to support the application
environment with several ISP domains. In this case, an access device may have
supplicants from different ISP domains. Because the attributes of ISP users, such as
username and password structures, service types, may be different, it is necessary to
separate them by setting ISP domains. In ISP domain view, you can configure a
complete set of exclusive ISP domain attributes for each ISP domain, which includes
AAA schemes ( RADIUS scheme applied and so forth.)
For a switch, each supplicant belongs to an ISP domain. The system supports to
configure up to 16 ISP domains. If a user has not reported its ISP domain name, the
system will put it into the default domain.
When this command is used, if the specified ISP domain does not exist, the system will
create a new ISP domain. All the ISP domains are in the active state when they are
created.
For the related commands, see access-limit, radius scheme, state, display domain.
Example
# Create a new ISP domain, huawei163.net, and enters its view.
[Quidway] domain huawei163.net
New Domain added.
[Quidway-isp-huawei163.net]
2.1.8 idle-cut
Syntax
idle-cut { disable | enable minute flow }
View
ISP domain view
Parameter
disable: means disabling the user to use idle-cut function .
enable: means enabling the user to use idle-cut function.
minute: Specifies the maximum idle time, ranging from 1 to 120 and measured in
minutes.
flow: The minimum data traffic, ranging from 1 to 10,240,000 and measured in bytes.
Description
Using idle-cut command, you can configure the user template in the current ISP
domain.
By default, after an ISP domain is created, this attribute in user template is disable, that
is, the user idle-cut is disabled.
The user template is a set of default user attributes. If a user requesting for the network
service does not have some required attributes, the corresponding attributes in the
template will be endeavored to him as default ones. The user template of the switch you
are using may only provide user idle-cut settings. After a user is authenticated, if the
idle-cut is configured to enable or disable by neither the user nor the RADIUS server,
the user will adopt the idle-cut state in the template.
Huawei Technologies Proprietary
2-9
Because a user template only works in one ISP domain, it is necessary to configure
user template attributes for users from different ISP domain respectively.
For the related command, see domain
Example
# Enable the user in the current ISP domain, huawei163.net, to use the idle-cut attribute
specified in the user template (that is, enabling the user to use the idle-cut function).
The maximum idle time is 50 minutes and the minimum data traffic is 500 bytes.
[Quidway-isp-huawei163.net] idle-cut enable 50 500
2.1.9 level
Syntax
level level
undo level
View
Local user view
Parameter
level: Specifies user priority level, an integer ranging from 0 to 3.
Description
Using the level command, you can configure user priority level. Using the undo level
command, you can restore the default user priority level.
By default, user priority level is 0.
For the related command, see local-user.
Note:
If the configured authentication mode is none authentication or password
authentication, the command level that a user can access after login depends on the
priority of user interface. In the case of authentication requiring both username and
password, however, the accessible command level depends on user priority level.
Example
# Set the priority level of the user huawei to 3.
[Quidway-luser-huawei1] level 3
2.1.10 local-user
Syntax
local-user user-name
undo local-user { user-name | all [ service-type { telnet | ftp | lan-access | ssh |
terminal } ] }
View
System view
Parameter
user-name: Specifies a local username with a character string not exceeding 80
characters, excluding /, :, *, ?, < and >. The @ character can only be used
once in one username. The pure username (the part before @, namely the user ID)
cannot exceed 55 characters. The user-name is case-insensitive, so that UserA is the
same as usera.
service-type: Specifies the service type. telnet means that: the specified user type is
telnet. ftp means that: the specified user type is ftp. lan-access means that the
specified user type is lan-access which mainly refers to Ethernet accessing users,
802.1x supplicants for example. ssh means the specified user type is SSH. terminal
means the specified user type is terminal which refers to users who use the terminal
service (login from the Console port).
all: All the users.
Description
Using local-user command, you can configure a local user and enter the local user
view. Using undo local-user command, you can cancel a specified local user.
By default, no local user.
For the related commands, see display local-user , service-type.
Example
# Add a local user named huawei1.
[Quidway] local-user huawei1
[Quidway-luser-huawei1]
View
System view
Parameter
cipher-force: Forced cipher mode specifies that the passwords of all the accessed
users must be displayed in cipher text.
auto: The auto mode specifies that a user is allowed to use the password command to
set a password display mode.
Description
Using local-user password-display-mode command, you can configure the
password display mode of all the accessing users. Using undo local-user
password-display-mode command, you can cancel the password display mode that
has been set for all the accessing users.
If cipher-force has been adopted, the user efforts of specifying to display passwords in
simple text will render useless.
The password display mode of all the accessing users defaults to auto.
For the related commands, see display local-user , password.
Example
# Force all the accessing users to display passwords in cipher text.
[Quidway] local-user password-display-mode cipher-force
2.1.12 messenger
Syntax
messenger time { enable limit interval | disable }
undo messenger time
View
ISP domain view
Parameter
limit: Remaining-online-time threshold in minutes, in the range of 1 to 60. When the
remaining online time of a user is equal to this threshold, the switch begins to send alert
messages to the client.
interval: Sending interval of alert messages in minutes, in the range of 5 to 60. It must
be a multiple of 5.
Description
Use the messenger time enable command to enable messenger alert and configure
the related parameters.
Use the messenger time disable command to disable messenger alert.
Use the undo messenger time command to restore messenger alert to default
settings.
By default, the messenger alert is disabled on the switch.
This function allows the clients to inform the online users about their remaining online
time through message alert dialog box.
The implementation of this function is as follows:
z
On the switch, use the messenger time enable command to enable this function
and to configure the remaining-online-time threshold (the limit argument) and the
alert message interval.
If the threshold is reached, the switch sends messages containing the users
remaining online time to the client at the interval you configured.
The client keeps the user informed of the remaining online time through a
message alert dialog box.
Example
# Configure to start the sending of alert messages when the users remaining online
time is 30 minutes and send the messages at an interval of five minutes.
[Quidway-isp-system] messenger time enable 30 5
2.1.13 name
Syntax
name string
undo name
View
VLAN view
Parameter
string: Name of the delivered VLAN.
Description
Using name command, you can configure name of the delivered VLAN.
For the related commands, see vlan-assignment-mode.
Example
# Configure name of the delivered VLAN
[Quidway-vlan100] name test
2.1.14 password
Syntax
password { simple | cipher } password
undo password
View
Local user view
Parameter
simple: Specifies to display passwords in simple text.
cipher: Specifies to display passwords in cipher text.
password: Defines a password. For simple mode, the password must be in plain text.
For cipher mode, the password can be either in encrypted text or in plain text. The
result is determined by the input. A plain text password is a character string of no more
than 16 characters, for example, huawei918. The password must be an encrypted
string of 24 characters in length, for example, _(TT8F]Y\5SQ=^Q`MAF4<1!!.
Description
Using password command, you can configure a password for local users. Using undo
password command, you can cancel the specified password.
If local-user password-display-mode cipher-force has been adopted, the user
efforts of using the password command to set the password display mode to simple
text (simple) will render useless.
For the related command, see display local-user.
Example
# Set the user huawei1 to display the password in simple text, given the password is
20030422.
[Quidway-luser-huawei1] password simple 20030422
2.1.15 radius-scheme
Syntax
radius-scheme radius-scheme-name
View
ISP domain view
Parameter
radius-scheme-name: Specifies a RADIUS scheme, with a character string not
exceeding 32 characters.
Description
Using radius-scheme command, you can configure the RADIUS scheme used by the
current ISP domain.
This command is used to specify the RADIUS scheme for the current ISP domain. The
specified RADIUS scheme shall have been created.
For the related commands, see radius scheme, display radius.
Example
# The following example designates the current ISP domain, huawei163.net, to use the
RADIUS server, huawei.
[Quidway-isp-huawei163.net] radius-scheme Huawei
2.1.16 scheme
Syntax
scheme { radius-scheme radius-scheme-name [ local ] | local | none }
undo scheme [ radius-scheme | none ]
View
ISP domain view
Parameter
radius-scheme-name: RADIUS scheme, a character string not exceeding 32
characters.
local: Local authentication.
none: No authentication.
Description
Using the scheme command, you can configure the AAA scheme to be referenced by
the current ISP domain. Using the undo scheme command, you can restore the
default AAA scheme.
The default AAA scheme in the system is local.
The scheme command can be used to specify the RADIUS scheme referenced by
current ISP domain; the scheme you specified must be an existing scheme.
When using radius-scheme radius-scheme-name local in the configuration command,
the local refers to the alternative authentication scheme if the RADIUS server does not
respond normally. That is, when the RADIUS server operates normally, the local
scheme is not used; otherwise, the local scheme is used.
When local is used as the first AAA scheme in the configuration command, only local
scheme is used; that is, RADIUS scheme can be used at the same time.
Note:
You can use either scheme or radius-scheme command to specify the RADIUS
scheme for a ISP domain. If both of these two commands are used, the latest
configuration will take effect.
Example
# Specify the current ISP domain, huawei163.net, to use the RADIUS scheme huawei.
[Quidway-isp-huawei163.net] scheme radius-scheme huawei
2.1.17 self-service-url
Syntax
self-service-url enable url-string
self-service-url disable
View
ISP domain view
Parameter
url-string: The URL address of the page used to change the user password on the
self-service server, a string with 1 to 64 characters. This string cannot contain "?"
character. If "?" is contained in the URL address, you must replace it with "|" when
inputting the URL address in the command line.
Description
Use the self-service-url enable command to configure self-service server URL.
Use the self-service-url disable command to remove the configuration.
After the client opens the default explorer (IE or NetScape), locate the specified
URL page used to change the user password on the self-service server.
The "Change user password" option is available only after the user passed the
authentication; otherwise, this option is in grey and unavailable.
Example
# In the default ISP domain "system", configure the URL address of the page used to
change
the
user
password
on
the
self-service
server
to
http://10.153.89.94/selfservice/modPasswd1x.jsp|userName.
[Quidway] domain system
[Quidway-isp-system] self-service-url enable http://10.153.89.94/selfservice/modPass
wd1x.jsp|userName
2.1.18 service-type
Syntax
service-type { ftp [ ftp-directory directory ] | lan-access | { ssh | telnet | terminal }*
[ level level ] }
undo service-type { ftp [ ftp-directory ] | lan-access | { ssh | telnet | terminal }* }
View
Local user view
Parameter
telnet: Specifies user type as Telnet.
ssh: Specifies user type as SSH.
level level: Specifies the level of Telnet, SSH or terminal users. The argument level is
an integer in the range of 0 to 3 and defaults to 0.
ftp: Specifies user type as ftp.
ftp-directory directory: Specifies the directory of ftp users, directory is a character
string of up to 64 characters.
Huawei Technologies Proprietary
2-17
Description
Using service-type command, you can configure a service type for a particular user.
Using undo service-type command, you can cancel the specified service type for the
user.
Note:
You can use either level or service-type command to specify the level for a local user.
If both of these two commands are used, the latest configuration will take effect.
Example
# Set to provide the lan-access service for the user huawei1.
[Quidway-luser-huawei1] service-type lan-access
2.1.19 state
Syntax
state { active | block }
View
ISP domain view
Local user view
Parameter
active: Configures the current ISP domain (ISP domain view)/current user (local user
view) as being in active state, that is, the system allows the users in the domain (ISP
domain view) or the current user (local user view) to request network service.
block: Configures the current ISP domain (ISP domain view)/current user (local user
view) as being in block state, that is, the system does not allow the users in the domain
(ISP domain view) or the current user (local user view) to request network service.
Description
Using state command, you can configure the state of the current ISP domain/ current
user.
By default, after an ISP domain is created, it is in the active state (in ISP domain view).
Huawei Technologies Proprietary
2-18
A local user will be active (in local user view) upon its creation.
In ISP domain view, every ISP can either be in active or block state. If an ISP domain is
configured to be active, the users in it can request for network service, while in block
state, its users cannot request for any network service, which will not affect the users
currently online.
For the related command, see domain.
Example
# Set the current ISP domain huawei163.net to be in the block state. The supplicants in
this domain cannot request for the network service.
[Quidway-isp-huawei163.net] state block
# Set the user huawei1 to be in the block state.
[Quidway-luser-huawei1] state block
2.1.20 vlan-assignment-mode
Syntax
vlan-assignment-mode { integer | string }
View
ISP domain view
Parameter
integer: Specify the dynamic VLAN delivery mode as integer.
string: Specify the dynamic VLAN delivery mode as string.
Description
Using vlan-assignment-mode command, you can specify the dynamic VLAN delivery
mode.
Currently the switch supports RADIUS server delivers the integer type and string type
VLAN ID.
z
Integer VLAN ID: The switch adds the port into the VLAN based on the integer ID
delivered from the server. If the VLAN does not exist, it first creates a VLAN and
then adds the port into the new VLAN.
String ID: The switch compares the string ID delivered from the server with the
VLAN names existing on the switch. If a matching entry is found, the switch adds
the port into the corresponding VLAN. Otherwise, the delivery fails and the user
cannot pass the authentication.
Note:
z
For the string delivery mode, the VLAN to be delivered must be an existing one on
the switch. That is, you must have created the VLAN and configured a name for it on
the switch. There is no such a restriction for the integer mode.
For the string delivery mode, the switch follows this rule in handling strings: If the
RADIUS server delivers VLANs with full number string IDs (1024 for example) and
their converted integer form is within the VLAN range, the switch just handles them
as integer IDs and add the authentication port to the VLAN with the corresponding
integer ID. In this example, the port is added into VLAN 1024.
By default, the integer mode is selected, that is, the switch supports the RADIUS server
delivering the integer VLAN ID.
For the related commands, see name.
Example
# Specify the dynamic VLAN delivery mode as integer.
[Quidway-isp-ias] vlan-assignment-mode integer
View
RADIUS Scheme view
Parameter
None
Description
Using the accounting-on enable command, you can enable user re-authentication at
reboot. Using the undo accounting-on enable command, you can disable this
function.
By default, user re-authentication at reboot is disabled.
Exclusive users are those with its concurrent online number set to 1 on the CAMS. In
the AAA solution implemented jointly by the switch and CAMS, if the switch reboots
after a user passes the authentication/authorization begins being accounted, the switch
prompts that the user has been online when the user logs into the switch before CAMS
makes online detection. Therefore, the user cannot access network resources normally.
The user can access the network only after the network administrator deletes manually
the online information of the user.
To solve this problem, user re-authentication at reboot is designed. After this function is
enabled, each time the switch reboots,
z
Upon receiving the CAMS Accounting-On message, CAMS finds and deletes the
existing online information of the user based on the NAS-ID, NAS-IP (source IP)
and session ID in the Accounting-On message.
Note:
The main attributes of the Accounting-On message NAS-ID, NAS-IP and session ID
are often generated automatically by the switch. However, you can configure the
NAS-IP using the nas-ip command. Make sure you set a correct and valid NAS-IP
address. Otherwise, the switch automatically selects the IP address of the virtual VLAN
interface as NAS-IP.
Example
# Enable user reauthentication at reboot.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
RADIUS scheme view/ISP domain view
Parameter
None
Description
Using the accounting optional command, you can enable the selection of RADIUS
accounting option. Using the undo accounting optional command, you can disable
the selection of RADIUS accounting option.
By default, selection of RADIUS accounting option is disabled.
If no RADIUS server is available or if RADIUS accounting server fails when the
accounting optional is configured, the user can still use the network resource,
otherwise, the user will be disconnected.
The user configured with accounting optional command in RADIUS scheme will no
longer send real-time accounting update packet or stop accounting packet.
The accounting optional command in RADIUS scheme view is only effective on the
accounting that uses this RADIUS scheme.
Example
# Enable the selection of RADIUS accounting of the RADIUS scheme named as
CAMS.
[Quidway-radius-cams] accounting optional
2.2.3 data-flow-format
Syntax
data-flow-format data { byte | giga-byte | kilo-byte | mega-byte } packet
{ giga-packet | kilo-packet | mega-packet | one-packet }
undo data-flow-format
View
RADIUS scheme view
Parameter
data: Set data unit.
byte: Set 'byte' as the unit of data flow.
giga-byte: Set 'giga-byte' as the unit of data flow.
kilo-byte: Set 'kilo-byte' as the unit of data flow.
mega-byte: Set 'mega-byte' as the unit of data flow.
packet: Set data packet unit.
giga-packet: Set 'giga-packet' as the unit of packet flow.
Huawei Technologies Proprietary
2-22
Description
Using data-flow-format command, you can configure the unit of data flow that send to
RADIUS Server. Using undo data-flow-format command, you can restore the unit to
the default setting.
By default, the data unit is byte and the data packet unit is one-packet.
For the related command, see display radius.
Example
# Set the unit of data flow that send to RADIUS Server Huawei is kilo-byte and the data
packet unit is kilo-packet.
[Quidway-radius-huawei] data-flow-format data kilo-byte packet kilo-packet
View
Any view
Parameter
None
Description
Using display local-server statistics command, you can view the statistics of local
RADIUS authentication server.
For the related command, see local-server.
Example
# Display the statistics of local RADIUS authentication server.
<Quidway> display local-server statistics
The localserver packet statistics:
Receive:
Send:
Discard:
Auth Reveive:
Auth Send:
Acct Receive:
Acct Send:
View
Any view
Parameter
radius-scheme-name: Specifies the RADIUS scheme name with a character string not
exceeding 32 characters. Display all RADIUS schemes when the parameter is not set.
Description
Using display radius command, you can view the configuration information of all
RADIUS schemes or a specified one.
By default, This command outputs the configuration information about the specified or
all the RADIUS schemes. The output can help with RADIUS diagnosis and
troubleshooting.
For the related command, see radius scheme.
Example
# Display the configuration information of all the RADIUS schemes.
<Quidway> display radius
-----------------------------------------------------------------SchemeName
=system
Index=0
Type=huawei
Primary Auth IP
=127.0.0.1
Port=1645
State=block
Primary Acct IP
=127.0.0.1
Port=1646
State=block
Second
Auth IP
=0.0.0.0
Port=1812
State=block
Second
Acct IP
=0.0.0.0
Port=1813
State=block
=5
=5
Username format
=without-domain
=Byte
Packet unit
=1
View
Any view
Parameter
None
Description
Using display radius statistics command, you can view the statistics information of
RADIUS packet.
This command outputs the statistics information about the RADIUS packets. The
displayed packet information can help with RADIUS diagnosis and troubleshooting.
For the related command, see radius scheme.
Example
# Display the statistics information of RADIUS packets.
<Quidway> display radius statistics
state statistic(total=4120):
DEAD=4120
AuthProc=0
AuthSucc=0
AcctStart=0
RLTSend=0
RLTWait=0
AcctStop=0
OnLine=0
Stop=0
StateErr=0
:0
,Err=0
Code= 3,Num=0
,Err=0
Code= 5,Num=0
,Err=0
Code=11,Num=0
,Err=0
Running statistic:
RADIUS received messages statistic:
Normal auth request
, Num=0
, Err=0
, Succ=0
, Num=0
, Err=0
, Succ=0
Account request
, Num=0
, Err=0
, Succ=0
, Num=0
, Err=0
, Succ=0
, Num=0
, Err=0
, Succ=0
PKT acct_timeout
, Num=0
, Err=0
, Succ=0
(Omitted)
View
Any view
Parameter
radius-scheme radius-scheme-name: Configures to display the saved stopping
accounting requests according to RADIUS server name. radius-scheme-name
specifies the RADIUS server name with a character string not exceeding 32 characters.
session-id session-id: Configures to display the saved stopping accounting requests
according to the session ID. session-id specifies the session ID with a character string
not exceeding 50 characters.
time-range start-time stop-time: Configures to display the saved stopping accounting
requests according to the saving time. start-time specifies the start time of the saving
time range and stop-time specifies the stop time of the saving time range. The time is
expressed in the format hh:mm:ss-yyyy/mm/dd. When this parameter is specified, all
the stopping accounting requests saved in the time range since start-time to stop-time
will be displayed.
user-name user-name: Configures to display the saved stopping accounting requests
according to the username.
Description
Using display stop-accounting-buffer command, you can view the stopping
accounting requests, which have not been responded and saved in the buffer.
After transmitting the stopping accounting requests, if there is no response from the
RADIUS server, the switch will save the packet in the buffer and retransmit it for several
times, which is set through the retry realtime-accounting command.
This command is used to display the stopping accounting requests saved in the switch
buffer. You can select to display the packets sent to a certain RADIUS server, or display
the packets according to user session ID or username. You may also display the
request packets saved during a specified time range. The displayed packet information
can help with diagnosis and troubleshooting.
For
the
related
commands,
see
reset
stop-accounting-buffer,
Example
# Display the stopping accounting requests saved in the system buffer since 0:0:0 to
23:59:59 on August 31, 2002.
<Quidway>
display
stop-accounting-buffer
time-range
0:0:0-2002/08/31
23:59:59-2002/08/31
Total find
0 record
2.2.8 key
Syntax
key { accounting | authentication } string
undo key { accounting | authentication }
View
RADIUS scheme view
Parameter
accounting: Configures to set/delete the encryption key for RADIUS accounting
packet.
authentication:
Configures
to
set/delete
the
encryption
key
for
RADIUS
authentication/authorization packet.
string: Specifies the key with a character string not exceeding 16 characters. By default,
the key is huawei.
Description
Using
key
command,
you
can
configure
encryption
key
for
RADIUS
Example
Example 1:
# Set the authentication/authorization key of the RADIUS scheme, huawei, to hello.
[Quidway-radius-huawei] key authentication hello
Example 2:
# Set the accounting packet key of the RADIUS scheme, huawei, to ok.
[Quidway-radius-huawei] key accounting ok
2.2.9 local-server
Syntax
local-server nas-ip ip-address key string
undo local-server nas-ip ip-address
View
System view
Parameter
nas-ip ip-address: set NAS-IP address of access server. ip-address is expressed in the
format of dotted decimal. By default, there is a local server with the NAS-IP address of
127.0.0.1.
key string: Set the shared key. string is a character string containing up to 16
characters.
Description
Using local-server command, you can configure the parameters of local RADIUS
server. Using undo local-server command, you can cancel a local RADIUS server.
RADIUS service, which adopts authentication/authorization/accounting servers to
manage users, is widely used in Quidway series switches. Besides, local
authentication/authorization service is also used in these products and it is called local
RADIUS function, i.e. realize basic RADIUS function on the switch.
Caution:
z
When using local RADIUS server function of Huawei, remember the number of UDP
port used for authentication is 1645 and that for accounting is 1646.
The key configured by this command must be the same as that of the RADIUS
authentication/authorization
packet
configured
by
the
command
key
Example
# Set the NAS-IP address of local RADIUS authentication server to 10.110.1.2 and the
key to huawei.
[Quidway] local-server nas-ip 10.110.1.2 key huawei
2.2.10 nas-ip
Syntax
nas-ip ip-address
undo nas-ip
View
RADIUS scheme view
Parameter
ip-address: IP address in dotted decimal format.
Description
Using the nas-ip command, you can set the source IP address of the network access
server (NAS, the switch in this manual), so that all packets destined for the RADIUS
server carry the same source IP address. Using the undo nas-ip command, you can
cancel the configuration.
Specifying a source address for the RADIUS packets to be transmitted can avoid the
situation where the packets sent back by the RADIUS server cannot be received as the
result of a physical interface failure. The address of a loopback interface is usually used
as the source address.
By default, the source IP address of packets is the IP address of the output port.
For the related command, see display radius, radius nas-ip.
Huawei Technologies Proprietary
2-29
Example
# Set the source IP address that is carried in the RADIUS packets sent by the NAS (the
switch) to 10.1.1.1.
[Quidway] radius scheme test1
[Quidway-radius-test1] nas-ip 10.1.1.1
View
RADIUS scheme view
Parameter
ip-address: IP address, in dotted decimal format.
port-number: UDP port number. ranging from 1 to 65535.
Description
Using primary accounting command, you can configure the IP address and port
number for the primary accounting server. Using undo primary accounting command,
you can restore the default IP address and port number of the primary RADIUS
accounting server.
By default, as for the newly created RADIUS scheme, the IP address of the primary
accounting server is 0.0.0.0, and the UDP port number of this server is 1813; as for the
"system" RADIUS scheme created by the system, the IP address of the primary
accounting server is 127.0.0.1, and the UDP port number is 1646.
After creating a RADIUS scheme, you are supposed to set IP addresses and UDP port
numbers
for
the
RADIUS
servers,
including
primary/second
Example
# Set the IP address of the primary accounting server of RADIUS scheme, huawei, to
10.110.1.2 and the UDP port 1813 to provide RADIUS accounting service.
[Quidway-radius-huawei] primary accounting 10.110.1.2 1813
View
RADIUS scheme view
Parameter
ip-address: IP address, in dotted decimal format.
port-number: Specifies UDP port number. ranging from 1 to 65535.
Description
Using primary authentication command, you can configure the IP address and port
number for the primary RADIUS authentication/authorization. Using undo primary
authentication command, you can restore the default IP address and port number of
the primary RADIUS authentication/authorization.
By default, as for the newly created RADIUS scheme, the IP address of the primary
authentication server is 0.0.0.0, and the UDP port number of this server is 1812; as for
the "system" RADIUS scheme created by the system, the IP address of the primary
authentication server is 127.0.0.1, and the UDP port number is 1645.
After creating a RADIUS scheme, you are supposed to set IP addresses and UDP port
numbers
for
the
RADIUS
servers,
including
primary/second
Example
# Set the IP address of the primary authentication/authorization server of RADIUS
scheme, huawei, to 10.110.1.1 and the UDP port 1812 to provide RADIUS
authentication/authorization service.
[Quidway-radius-huawei] primary authentication 10.110.1.1 1812
View
System view
Parameter
ip-address: IP address in dotted decimal format.
Description
Using the radius nas-ip command, you can specify the source address of the RADIUS
packet sent from NAS. Using the undo radius nas-ip command, you can restore the
default setting.
By specifying the source address of the RADIUS packet, you can avoid unreachable
packets as returned from the server upon interface failure. The source address is
normally recommended to be a loopback interface address..
By default, the source address is not specified, that is, the address of the interface
sending the packet serves as the source address.
This command specifies only one source address; therefore, the newly configured
source address may overwrite the original one.
Example
# Configure the switch to send RADIUS packets from 129.10.10.1.
[Quidway] radius nas-ip 129.10.10.1
View
System view
Parameter
radius-scheme-name: Specifies the Radius server name with a character string not
exceeding 32 characters.
Description
Using radius scheme command, you can configure a RADIUS scheme and enter its
view. Using undo radius scheme command, you can delete the specified RADIUS
scheme.
By default, a RADIUS scheme named as system has been created in the system. Its
attributes are all default values.
RADIUS protocol configuration is performed on a per-RADIUS-scheme basis. Every
RADIUS scheme shall at least have the specified IP address and UDP port number of
the RADIUS authentication/authorization/accounting server and some necessary
parameters exchanged with the RADIUS client end (switch system). So it is necessary
to create the RADIUS scheme and enter its view before performing other RADIUS
protocol configurations.
A RADIUS scheme can be used by several ISP domains at the same time. You can
configure up to 16 RADIUS server-groups, including the default scheme named as
system.
Although undo radius scheme can remove a specified RADIUS scheme. However,
the default one cannot be removed. Note that a scheme currently in use by the online
user cannot be removed.
For the related commands, see key, retry realtime-accounting, radius-scheme,
timer realtime-accounting, stop-accounting-buffer enable, retry stop-accounting,
server-type, state, user-name-format, retry , display radius, display radius
statistics .
Example
# Create a RADIUS scheme named huawei and enters its view.
[Quidway] radius scheme huawei
[Quidway-radius-huawei]
View
User view
Parameter
None
Description
Using the reset radius statistics command, you can clear the statistic information
related to the RADIUS protocol.
For the related command, see display radius.
Example
# Clear the RADIUS protocol statistics.
<Quidway> reset radius statistics
View
User view
Parameter
radius-scheme radius-scheme-name: Configures to delete the stopping accounting
requests from the buffer according to the specified RADIUS server name.
radius-scheme-name specifies the RADIUS server name with a character string not
exceeding 32 characters.
session-id session-id: Configures to delete the stopping accounting requests from the
buffer according to the specified session ID. session-id specifies the session ID with a
character string not exceeding 50 characters.
time-range start-time stop-time: Configures to delete the stopping accounting requests
from the buffer according to the saving time. Start-time specifies the start time of the
saving time range and stop-time specifies the stop time of the saving time range. The
time is expressed in the format hh:mm:ss-yyyy/mm/dd. When this parameter is set, all
the stopping accounting requests saved since start-time to stop-time will be deleted.
user-name user-name: Configures to delete the stopping accounting requests from the
buffer according to the username. User-name specifies the username, a character
string not exceeding 32 characters.
Description
Using reset stop-accounting-buffer command, you can reset the stopping
accounting requests, which are saved in the buffer and have not been responded.
By default, after transmitting the stopping accounting requests, if there is no response
from the RADIUS server, the switch will save the packet in the buffer and retransmit it
for several times, which is set through the retry realtime-accounting command.
This command is used to delete the stopping accounting requests from the switch
buffer. You can select to delete the packets transmitted to a specified RADIUS server,
or according to the session-id or username, or delete the packets transmitted during the
specified time-range.
For
the
related
commands,
see
stop-accounting-buffer
enable,
retry
Example
# Delete the stopping accounting requests saved in the system buffer by the user,
[email protected].
<Quidway> reset stop-accounting-buffer user-name [email protected]
# Delete the stopping accounting requests saved in the system buffer since 0:0:0 to
23:59:59 on August 31, 2003.
<Quidway>
reset
stop-accounting-buffer
time-range
0:0:0-2003/08/31
23:59:59-2003/08/31
2.2.17 retry
Syntax
retry retry-times
undo retry
View
RADIUS scheme view
Parameter
retry-times: Specifies the maximum times of retransmission, ranging from 1 to 20. By
default, the value is 3.
Description
Using retry command, you can configure retransmission times of RADIUS request
packet. Using undo retry command, you can restore the retransmission times to
default value.
Because RADIUS protocol uses UDP packets to carry the data, its communication
process is not reliable. If the RADIUS server has not responded NAS until timeout, NAS
has to retransmit RADIUS request packet. If it transmits more than the specified
retry-times, NAS considers the communication with the primary and secondary
RADIUS servers has been disconnected.
Setting a suitable retry-time according to the network situation can speed up the system
response.
For the related command, see radius scheme.
Example
# Set to retransmit the RADIUS request packet no more than 5 times for the RADIUS
scheme huawei.
[Quidway-radius-huawei] retry 5
View
RADIUS scheme view
Parameter
retry-times: Specifies the maximum times of real-time accounting request failing to be
responded, ranging from 1 to 255. By default, the accounting request can fail to be
responded up to 5 times.
Description
Using retry realtime-accounting command, you can configure the maximum times of
real-time
accounting
request
failing
to
be
responded.
Using
undo
retry
How to calculate the value of count? Suppose RADIUS server connection will timeout
in T and the real-time accounting interval of NAS is t, then the integer part of the result
from dividing T by t is the value of count. Therefore, when applied, T is suggested the
numbers which can be divided exactly by t.
For the related command, see radius scheme
Example
# Allow the real-time accounting request failing to be responded for up to 10 times.
[Quidway-radius-huawei] retry realtime-accounting 10
View
RADIUS scheme view
Parameter
retry-times: Specifies the maximal retransmission times after stopping accounting
request,. ranging from 10 to 65535. By default, the value is 500.
Description
Using
retry
stop-accounting
command,
you
can
configure
the
maximal
Example
# Indicate that, when stopping accounting request for the RADIUS scheme Huawei,
the switch will retransmit the packets for up to 1000 times.
[Quidway-radius-huawei] retry stop-accounting 1000
Huawei Technologies Proprietary
2-37
View
RADIUS scheme view
Parameter
ip-address: IP address, in dotted decimal format. By default, the IP addresses of
second accounting server is at 0.0.0.0.
port-number: Specifies the UDP port number, ranging from 1 to 65535. By default, the
accounting service is provided via UDP 1813.
Description
Using secondary accounting command, you can configure the IP address and port
number for the second RADIUS accounting server. Using undo secondary
accounting command, you can restore the IP address and port number to default
values.
For detailed information, read the Description of the primary accounting command.
For the related commands, see key, radius scheme, state.
Example
# Set the IP address of the second accounting server of RADIUS scheme, huawei, to
10.110.1.1 and the UDP port 1813 to provide RADIUS accounting service.
[Quidway-radius-huawei] secondary accounting 10.110.1.1 1813
View
RADIUS scheme view
Parameter
ip-address: IP address, in dotted decimal format. By default, the IP addresses of
second authentication/authorization is at 0.0.0.0.
port-number: Specifies the UDP port number, ranging from 1 to 65535. By default, the
authentication/authorization service is provided via UDP 1812
Description
Using secondary authentication command, you can configure the IP address and
port number for the second RADIUS authentication/authorization. Using undo
secondary authentication command, you can restore the IP address and port number
to default values.
For detailed information, read the Description of the primary authentication
command.
For the related commands, see key, radius scheme, state.
Example
# Set the IP address of the second authentication/authorization server of RADIUS
scheme, huawei, to 10.110.1.2 and the UDP port 1812 to provide RADIUS
authentication/authorization service.
[Quidway-radius-huawei] secondary authentication 10.110.1.2 1812
2.2.22 server-type
Syntax
server-type { huawei | standard }
undo server-type
View
RADIUS scheme view
Parameter
huawei: Configures the switch system to support the RADIUS server of Huawei type,
which requires the RADIUS client end (switch) and RADIUS server to interact
according to the private RADIUS protocol regulation and packet format of Huawei
Technologies Co., Ltd.
standard: Configures the switch system to support the RADIUS server of Standard
type, which requires the RADIUS client end (switch) and RADIUS server to interact
according to the regulation and packet format of standard RADIUS protocol (RFC
2138/2139 or newer).
Description
Using server-type command, you can configure the RADIUS server type supported by
the switch. Using undo server-type command, you can restore the RADIUS server
type to the default setting
Huawei Technologies Proprietary
2-39
By default, the newly created RADIUS scheme supports the server of standard type,
while the "system" RADIUS scheme created by the system supports the server of
huawei type.
Quidway Series Ethernet Switches support standard RADIUS protocol and the
extended RADIUS service platform developed by Huawei Technologies.
For the related command, see radius scheme.
Example
# Set RADIUS server type of RADIUS scheme, huawei to huawei.
[Quidway-radius-huawei] server-type huawei
2.2.23 state
Syntax
state { primary | secondary } { accounting | authentication } { block | active }
View
RADIUS scheme view
Parameter
primary: Configures to set the state of the primary RADIUS server.
secondary: Configures to set the state of the second RADIUS server.
accounting: Configures to set the state of RADIUS accounting server.
authentication: Configures to set the state of RADIUS authentication/authorization.
block: Configures the RADIUS server to be in the state of block.
active: Configures the RADIUS server to be active, namely the normal operation state.
Description
Using state command, you can configure the state of RADIUS server.
By default, all the RADIUS servers in every RADIUS scheme are in the state of block.
For the primary and second servers (no matter an authentication/authorization or an
accounting server), if the primary server is disconnected to NAS for some fault, NAS
will automatically turn to exchange packets with the second server. However, after the
primary one recovers, NAS will not resume the communication with it at once, instead,
it continues communicating with the second one. When the second one fails to
communicate, NAS will turn to the primary one again. This command is used to set the
primary server to be active manually, in order that NAS can communicate with it right
after the troubleshooting.
When the primary and second servers are all active or block, NAS will send the
packets to the primary server only.
For the related commands, see radius scheme, primary authentication, secondary
authentication, primary accounting, secondary accounting.
Example
# Set the second authentication server of RADIUS scheme, huawei, to be active.
[Quidway-radius-huawei] state secondary authentication active
View
RADIUS scheme view
Parameter
None
Description
Using stop-accounting-buffer enable command, you can configure to save the
stopping accounting requests without response in the switch system buffer. Using
undo stop-accounting-buffer enable command, you can cancel the function of
saving the stopping accounting requests without response in the switch system buffer.
By default, enable to save the stopping accounting requests in the buffer.
Because the stopping accounting request concerns account balance and will affect the
amount of charge, which is very important for both the user and ISP, NAS shall make its
best effort to send the message to RADIUS accounting server. Accordingly, if the
message from the switch to RADIUS accounting server has not been responded, the
switch shall save it in the local buffer and retransmit it until the server responds or
discard the messages after transmitting for specified times.
For the related commands, see reset stop-accounting-buffer, radius scheme,
display stop-accounting-buffer.
Example
# Indicate that, for the RADIUS scheme Huawei, the switch will save the stopping
accounting request packets in the buffer
[Quidway-radius-huawei] stop-accounting-buffer enable
2.2.25 timer
Syntax
timer seconds
undo timer
View
RADIUS scheme view
Parameter
seconds: RADIUS server response timeout timer, ranging from 1 to 10 and measured in
seconds. By default, the value is 3.
Description
Using timer command, you can configure RADIUS server response timer. Using undo
timer command, you can restore the default value of the timer.
After RADIUS (authentication/authorization or accounting) request packet has been
transmitted for a period of time, if NAS has not received the response from RADIUS
server, it has to retransmit the message to guarantee RADIUS service for the user. The
period taken is called RADIUS server response timeout time, which is controlled by the
RADIUS server response timeout timer in the switch system. This command is used to
set this timer.
Setting a suitable timer according to the network situation will enhance the system
performance.
For the related commands, see radius scheme, retry.
Example
# Set the response timeout timer of RADIUS scheme, huawei, to 5 seconds.
[Quidway-radius-huawei] timer 5
View
RADIUS scheme view
Parameter
minutes: Quiet time interval, ranging from 1 to 255, in minutes. The default value is 5.
Description
Use the timer quiet command to set the quiet time interval after which the primary and
secondary RADIUS servers switch over.
Use the undo timer quiet command to set the quiet time interval to its default value.
The functions of the quiet time interval are as follows:
z
If the switch affirms that the primary server does not respond, it then sends
RADIUS packets to the secondary RADIUS server.
After each quiet time interval, the switch sets the status of the primary RADIUS
server to active, and sends RADIUS packets to it next time.
Example
# Set the quiet time interval of the RADIUS scheme huawei to 3 minutes.
[Quidway] radius scheme huawei
[Quidway-radius-huawei] timer quiet 3
View
RADIUS scheme view
Parameter
minutes: Real-time accounting interval, ranging from 3 to 60 and measured in minutes.
By default, the value is 12. It must be a multiple of 3.
Description
Using timer realtime-accounting command, you can configure the real-time
accounting interval. Using undo timer realtime-accounting command, you can
restore the default interval.
To implement real-time accounting, it is necessary to set a real-time accounting interval.
After the attribute is set, NAS will transmit the accounting information of online users to
the RADIUS server regularly.
The value of minute is related to the performance of NAS and RADIUS server. The
smaller the value is, the higher the requirement for NAS and RADIUS server is. When
there are a large amount of users (more than 1000, inclusive), we suggest a larger
value. The following table recommends the ratio of minute value to number of users.
Table 2-2 Recommended ratio of minute to number of users
Number of users
1 to 99
100 to 499
500 to 999
12
1000
15
Example
# Set the real-time accounting interval of RADIUS scheme, huawei, to 15 minutes.
[Quidway-radius-huawei] timer realtime-accounting 15
View
RADIUS scheme view
Parameter
seconds: RADIUS server response timeout timer, ranging from 1 to 10 seconds. By
default, the value is 3.
Description
Using the timer response-timeout command, you can configure the RADIUS server
response timer. Using the undo timer command, you can restore the default.
If the NAS receives no response from the RADIUS server after sending a RADIUS
request (authentication/authorization or accounting request) for a period of time, the
NAS resends the request, thus ensuring the user can obtain the RADIUS service. You
can specify this period by setting the RADIUS server response timeout timer, taking into
consideration the network condition and the desired system performance.
For the related commands, see radius scheme and retry.
Huawei Technologies Proprietary
2-44
Example
# Set the response timeout timer in the RADIUS scheme huawei to 5 seconds.
[Quidway-radius-huawei] timer response-timeout 5
2.2.29 user-name-format
Syntax
user-name-format { with-domain | without-domain }
View
RADIUS scheme view
Parameter
with-domain: Specifies to send the username with domain name to RADIUS server.
without-domain: Specifies to send the username without domain name to RADIUS
server.
Description
Using user-name-format command, you can configure the username format sent to
RADIUS server.
By default, as for the newly created RADIUS scheme, the username sent to RADIUS
servers includes an ISP domain name; as for the "system" RADIUS scheme created by
the system, the username sent to RADIUS servers excludes the ISP domain name.
The supplicants are generally named in userid@isp-name format. The part following
@ is the ISP domain name. The switch will put the users into certain ISP domains
according to the domain names. However, some earlier RADIUS servers reject the
username including ISP domain name. In this case, the username will be sent to the
RADIUS server after its domain name is removed. Accordingly, the switch provides this
command to decide whether the username to be sent to RADIUS server carries ISP
domain name or not.
Note:
If a RADIUS scheme is configured to reject usernames including ISP domain names,
the RADIUS scheme shall not be simultaneously used in more than one ISP domains.
Otherwise, the RADIUS 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.)
Example
# Specify to send the username without domain name to RADIUS server.
[Quidway-radius-huawei] user-name-format without-domain
HUAWEI
Reliability
Table of Contents
Table of Contents
Chapter 1 VRRP Configuration Commands ............................................................................... 1-1
1.1 VRRP Configuration Commands ....................................................................................... 1-1
1.1.1 debugging vrrp ........................................................................................................ 1-1
1.1.2 display vrrp .............................................................................................................. 1-1
1.1.3 reset vrrp statistics .................................................................................................. 1-3
1.1.4 vrrp authentication-mode ........................................................................................ 1-4
1.1.5 vrrp method ............................................................................................................. 1-5
1.1.6 vrrp ping-enable ...................................................................................................... 1-6
1.1.7 vrrp vrid preempt-mode........................................................................................... 1-7
1.1.8 vrrp vrid priority........................................................................................................ 1-8
1.1.9 vrrp vrid timer .......................................................................................................... 1-8
1.1.10 vrrp vrid track......................................................................................................... 1-9
1.1.11 vrrp vrid virtual-ip................................................................................................. 1-10
Chapter 2 HA Configuration Commands .................................................................................... 2-1
2.1 HA Configuration Commands ............................................................................................ 2-1
2.1.1 display switchover state .......................................................................................... 2-1
2.1.2 slave auto-update config ......................................................................................... 2-1
2.1.3 slave restart............................................................................................................. 2-2
2.1.4 slave switchover ...................................................................................................... 2-3
2.1.5 slave update configuration ...................................................................................... 2-3
View
User view
Parameter
state: Debugs VRRP state.
packet: Debugs VRRP packets.
Description
Use the debugging vrrp command to enable the VRRP debugging.
Use the undo debugging vrrp command to disable the VRRP debugging. By default,
the VRRP debugging is disabled.
Example
# Enable VRRP state debugging.
<Quidway> debugging vrrp state
View
Any view
Parameter
interface: Displays VRRP information of the specified VLAN interface.
vlan-interface interface-num: Interface name.
statistics: Displays VRRP statistics.
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
Description
Use the display vrrp command to view the information about the VRRP state or VRRP
statistics. If the interface name and virtual router ID are not specified, the state
information about all the virtual routers on the switch will be displayed. If only the
interface name is specified, the state information about all the virtual routers on this
interface will be displayed. If the interface name and virtual router ID are specified, the
state information about the specified virtual router on this interface will be displayed.
If the interface name and virtual router ID are not specified, the statistics about all the
virtual routers on the switch will be displayed. If only the interface name is specified, the
statistics about all the virtual routers on this interface will be displayed. If the interface
name and virtual router ID are specified, the statistics about the specified virtual router
on this interface will be displayed.
Example
# Display the statistics about the virtual router on VLAN-interface 1 of the switch.
[Quidway-Vlan-interface1] display vrrp statistics
[Quidway-Vlan-interface1] display vrrp statistics
Interface
: Vlan-interface10
VRID
: 1
CheckSum Errors
: 0
Version Errors
: 0
VRID Errors
: 0
: 0
IP TTL Errors
: 0
Auth Failures
: 0
: 0
: 0
: 0
: 0
Become Master
: 2
: 0
Advertise Rcvd
: 0
: 1
Description
Interface
VRID
Virtual router ID
CheckSum Errors
Version Errors
VRID Errors
IP TTL Errors
Auth Failures
Become Master
Advertise Rcvd
View
User view
Parameter
statistics: Displays VRRP statistics.
vlan-interface interface-num: Interface name.
Description
Use the reset vrrp statistics command to clear the statistics information about VRRP.
If the interface name and virtual router ID are not specified, the statistics information
about all the virtual routers on the switch will be cleared. If only the interface name is
specified, the statistics information about all the virtual routers on this interface will be
cleared. If the interface name and virtual router ID are specified, the statistics
information about the specified virtual router on this interface will be cleared.
Example
# Clear the VRRP statistics on the switch.
<Quidway> reset vrrp statistics
View
VLAN interface view
Parameter
authentication-type: Authentication type. There are following types:
z
Description
Use the vrrp authentication-mode command to configure the authentication type and
a key of a specified VRRP virtual router.
Use the undo vrrp authentication-mode command to clear the authentication type
and the key of a specified VRRP virtual router.
If the simple or md5 authentication is configured, it is required to set the authentication
key.
Huawei Technologies Proprietary
1-4
This command is used to configure the authentication type and key for all the VRRP
virtual routers on an interface. As defined in the protocol, all the virtual routers on an
interface shall use the same authentication type and key. And all the members joining
the same virtual router shall also use the same authentication type and key.
The authentication key is case sensitive.
Example
# Specify the authentication type and key for a VRRP virtual router.
[Quidway-vlan-interface2] vrrp authentication-mode simple huawei
View
System view
Parameter
real-mac: Uses the real MAC address of the interface to match the virtual IP address of
the virtual router in VRRP backup.
virtual-mac: Uses the virtual MAC address of the interface to match the virtual IP
address of the virtual router in VRRP backup.
Description
Use the vrrp method command to set correspondence between the MAC address and
the virtual IP address of the virtual router: matching the real or virtual MAC address with
the virtual IP address.
Use the undo vrrp method command to reset the correspondence to the default value.
By default, the switch matches the virtual MAC address with the virtual IP address of
the virtual router.
Due to the chips installed, some switches support matching one IP address of a routing
interface to multiple MAC addresses. Then you may configure correspondence
between the virtual IP address of the virtual router and the real/virtual MAC address.
You should set correspondence between the virtual IP address of the virtual router and
the MAC address before configuring the virtual router. Otherwise, you cannot configure
the correspondence.
If the virtual MAC address using the routing interface of the switch matches with the
virtual IP address of the virtual router, only one virtual router can be configured on the
VLAN interface.
Example
# Set the real MAC address of the interface match the virtual IP address of the virtual
router.
[Quidway] vrrp method real-mac
View
System view
Parameter
None
Description
Use the vrrp ping-enable command to enable the function to ping the virtual IP
address of the virtual router.
Use the undo vrrp ping-enable command to disable the function to ping the virtual IP
address of the virtual router.
By default, the ping function is disabled.
You can only use the commands before configuring the virtual router.
Example
# Enable the function to ping the virtual IP address of the virtual router.
[Quidway] vrrp ping-enable
Huawei Technologies Proprietary
1-6
View
VLAN interface view
Parameter
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
delay-value: Delay time, in seconds, ranging from 0 to 255.
Description
Use the vrrp vrid preempt-mode command to configure the preemption and delay of
the virtual router.
Use the undo vrrp vrid preempt-mode command to cancel the preemption.
By default, virtual router is in preempt-mode and delay-value is 0 second.
If a higher-priority switch is required to preempt the master, you need configure it as
preemption. You can also set a delay for the preemption. If you configure it not to
preempt, the delay will be set to 0 automatically.
Example
# Configure the switch to preempt.
[Quidway-vlan-interface2] vrrp vrid 1 preempt-mode
# Set a delay.
[Quidway-vlan-interface2] vrrp vrid 1 preempt-mode timer delay 5
# Configure the switch not to preempt.
[Quidway-vlan-interface2] undo vrrp vrid 1 preempt-mode
View
VLAN interface view
Parameter
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
priority: Priority value, ranging from 1 to 254; By default, the priority value is 100.
Description
Use the vrrp vrid priority command to configure the virtual router priority.
Use undo vrrp vrid priority command to clear the virtual router priority.
The priority decides the status of a switch in the virtual router. A higher-priority switch is
more likely to be a master. Priority 0 is reserved for some special purpose. The value
255 is reserved for the IP address owner. The priority of the IP address owner is always
255 and cannot be modified.
Example
# Set the virtual router priority on VLAN-interface2 to 120.
[Quidway-vlan-interface2] vrrp vrid 1 priority 120
View
VLAN interface view
Parameter
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
adver-interval: VRRP packet interval of the master in the virtual router, in seconds,
ranging from 1 to 255; By default, the value is 1 second.
Description
Use the vrrp vrid timer advertise command to set the VRRP packet interval of the
master in the virtual router.
Use the undo vrrp vrid timer advertise command to restore to the default value.
You are required to set the identical timer value for the switches in the same virtual
router to avoid improper configuration.
Example
# Configure the master to transmit VRRP packets every 15 seconds.
[Quidway-vlan-interface2] vrrp vrid 1 timer advertise 15
View
VLAN interface view,Ethernet interface view
Parameter
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
interface-type interface-num: Tracked interface.
value-reduced: Reduced value of priority, ranging from 1 to 255; By default, the
reduced value of priority is 10.
Description
Use the vrrp vrid track command to configure tracking of the interface.
Use the undo vrrp vrid track command to stop tracking the interface.
VRRP interface track expends the backup function, which thereby can be implemented
not only when the switch fails, but also when a network interface is down. You can use
this command to track or stop tracking an interface or all the interfaces. After the
configuration of the interface tracking, the priority of the switch will be reduced, if the
tracked interface turns down. Accordingly, some other switch in the virtual router will
have the comparatively highest priority and become the new master, thereby
implementing the backup function. The IP address owner does not allow the
configuration of interface tracking.
Note:
z
The monitored physical port may be contained in the VLAN of the VLAN interface
the backup group belongs to.
If a tracked port becomes up, the priority level of the corresponding switch will
resume automatically.
Example
# Configure to track interface vlan-interface1 on interface vlan-interface2; and when the
vlan-interface1 becomes down, the priority of the virtual router 1 on interface
vlan-interface2 reduces 50.
[Quidway-vlan-interface2] vrrp vrid 1 track vlan-interface 1 reduced 50
View
VLAN interface view
Huawei Technologies Proprietary
1-10
Parameter
virtual-router-ID: VRRP virtual router ID, ranging from 1 to 255.
virtual-address: Virtual IP address.
Description
Use the vrrp vrid virtual-ip command to add a virtual IP address to an existing virtual
router.
Use the undo vrrp vrid virtual-ip command to delete an existing virtual IP address
from the virtual router.
You can use this command to create a virtual router, and add a virtual IP address into
an existing virtual router. A virtual router supports up to 16 virtual IP addresses. You can
use the undo vrrp vrid virtual-ip command to remove an existing virtual router, or
delete an address from this virtual router. If no virtual IP address is in the virtual router,
then the system will automatically remove this virtual router.
Example
# Create a virtual router.
[Quidway-vlan-interface2] vrrp vrid 1 virtual-ip 10.10.10.10
# Add a virtual IP address to an existing virtual router.
[Quidway-vlan-interface2] vrrp vrid 1 virtual-ip 10.10.10.11
# Delete a virtual IP address.
[Quidway-vlan-interface2] undo vrrp vrid 1 virtual-ip 10.10.10.10
# Delete a virtual router.
[Quidway-vlan-interface2] undo vrrp vrid 1
View
Any view
Parameter
slot-id: Slot number of master/slave board.
Description
Use the display switchover state command to display the backup status of
master/slave board.
This command displays the backup state of master/slave board according to the
specified slot number. If the slot-id is not specified, the status of master board will be
displayed.
Example
# Display the status of master board.
<Quidway> display switchover state
HA FSM State(master): Slave is absent.
View
System view
Parameter
None
Description
Use slave auto-update config command to enable the automatic synchronous switch
between the master/slave systems.
Use the undo slave auto-update config command to disable the automatic
synchronous switch.
By default, the automatic synchronous switch is enabled.
For the related command, see slave update config.
Example
# Enable automatic synchronous switch between master/slave systems.
[Quidway] slave auto-update config
View
User view
Parameter
None
Description
Use the slave restart command to restart the slave board.
When the application of the backup system operates unmorally and requires for
reloading the applications, you can use this command to restart the slave board.
Example
# Restart the slave board.
<Quidway> slave restart
The slave will reset! Continue?[Y/N]:y
View
User view
Parameter
None
Description
Use the slave switchover command to perform master/slave switchover manually.
When the slave board operates normally and the master board is in the real-time
backup state, if you want the slave board to be the master board to ensure the
operation of the system, you can use this command to implement master/slave
switchover. After that, the slave board becomes the new master board and controls the
system, and the original master board restarts automatically.
Example
# Perform master/slave switchover manually.
<Quidway> slave switchover
Caution!!! Confirm switch slave to master[Y/N]?y
Starting.....
RAM Line....OK
View
User view
Parameter
None
Description
Use the slave update configuration command to synchronise the configurations files
on master/slave board.
You can use this command to manually synchronize the configuration files on the
master board to the slave board.
Example
# Synchronize the configuration files on the master board to the slave board.
<Quidway> slave update configuration
Now saving the current configuration to the slave board.
Please wait...
The configuration has been saved to the slave board successfully.
HUAWEI
System Management
Table of Contents
Table of Contents
Chapter 1 File System Management Commands ....................................................................... 1-1
1.1 File System ........................................................................................................................ 1-1
1.1.1 cd............................................................................................................................. 1-1
1.1.2 copy......................................................................................................................... 1-2
1.1.3 delete....................................................................................................................... 1-2
1.1.4 dir ............................................................................................................................ 1-3
1.1.5 execute.................................................................................................................... 1-4
1.1.6 file prompt................................................................................................................ 1-5
1.1.7 fixdisk ...................................................................................................................... 1-5
1.1.8 format ...................................................................................................................... 1-6
1.1.9 mkdir........................................................................................................................ 1-7
1.1.10 more ...................................................................................................................... 1-7
1.1.11 move...................................................................................................................... 1-8
1.1.12 pwd........................................................................................................................ 1-8
1.1.13 rename .................................................................................................................. 1-9
1.1.14 reset recycle-bin .................................................................................................. 1-10
1.1.15 rmdir .................................................................................................................... 1-10
1.1.16 undelete............................................................................................................... 1-11
1.2 Configuration File Management Commands ................................................................... 1-12
1.2.1 display current-configuration ................................................................................. 1-12
1.2.2 display saved-configuration................................................................................... 1-17
1.2.3 display this............................................................................................................. 1-19
1.2.4 display startup ....................................................................................................... 1-19
1.2.5 reset saved-configuration...................................................................................... 1-20
1.2.6 save....................................................................................................................... 1-21
1.2.7 startup saved-configuration................................................................................... 1-22
1.3 FTP Server Configuration Commands............................................................................. 1-22
1.3.1 display ftp-server ................................................................................................... 1-22
1.3.2 display ftp-user ...................................................................................................... 1-23
1.3.3 ftp server ............................................................................................................... 1-24
1.3.4 ftp timeout.............................................................................................................. 1-24
1.4 FTP Client Commands .................................................................................................... 1-25
1.4.1 ascii ....................................................................................................................... 1-25
1.4.2 binary..................................................................................................................... 1-25
1.4.3 bye......................................................................................................................... 1-26
1.4.4 cd........................................................................................................................... 1-26
1.4.5 cdup....................................................................................................................... 1-27
1.4.6 close ...................................................................................................................... 1-27
Huawei Technologies Proprietary
i
Table of Contents
Table of Contents
Table of Contents
Table of Contents
Table of Contents
Note:
S6506R supports master board and slave board. The two boards both have file system.
User can operate the file on the two boards. In the case user operate the file on slave
board, the file directory or URL should be started with slot[No.]#flash:, the [No.] is the
slave board number. For example, suppose slot 1 is slave board, text.txt file URL on
slave board should be slot1#flash:/text.txt.
1.1.1 cd
Syntax
cd directory
View
User view
Parameter
directory: Destination directory; By default, the directory is the working path configured
by the user when the system starts.
Description
Using cd command, you can change the current user configuration path on the
Ethernet Switch.
Example
# Change the current working directory of the switch to flash.
<Quidway>cd flash:
<Quidway>pwd
flash:
1.1.2 copy
Syntax
copy fileurl-source fileurl-dest
View
User view
Parameter
fileurl-source: Source file name.
fileurl-dest: Destination file name.
Description
Using copy command, you can copy a file.
When the destination filename is the same as that of an existing file, the system will ask
whether to overwrite it.
Example
# Display current directory information.
<Quidway> dir
Directory of unit1>flash:/
0
-rw-
595
test.txt
-rw-
595
test.txt
-rw-
595
test.bak
1.1.3 delete
Syntax
delete [ /unreserved ] file-url
View
User view
Parameter
file-url: path and name of the file you want to delete.
Description
Using delete command, you can cancel a specified file from the storage device of the
Ethernet Switch.
The deleted files are kept in the recycle bin and will not be displayed when you use the
dir command. However they will be displayed when you use the dir /all command.
The files deleted by the delete command can be recovered with the undelete
command or deleted permanently from the recycle bin, using the reset recycle-bin
command.
Note that, if two files with the same name in a directory are deleted, only the latest
deleted file will be kept in the recycle bin.
Example
# Delete the file flash:/test/test.txt
<Quidway> delete flash:/test/test.txt
Delete flash:/test/test.txt?[Y/N]:
1.1.4 dir
Syntax
dir [ /all ] [ file-url ]
View
User view
Parameter
/all: Display all the files (including the deleted ones).
file-url: File or directory name to be displayed. The file-url parameter supports *
matching. For example, using dir *.txt will display all the files with the extension txt in
the current directory.; By default, display the file information in current path.
Description
Using dir command, you can view the information about the specified file or directory in
storage device of Ethernet Switch.
Example
# Display the information about the file flash:/test/test.txt
<Quidway> dir flash:/test/test.txt
Directory of flash:/
-rw-
248
test.txt
-rw-
119401
vrpcfg.cfg
-rw-
[snmpboots]
Note:
In the output information of dir/all command, as a hint, the name of each deleted file
kept in the recycle bin is in a square bracket.
1.1.5 execute
Syntax
execute filename
View
System view
Parameter
filename: The name of the batch file, ranging from 1 to 256, with a suffix of .bat.
Description
Using the execute command, you can execute the specified batch file.
During the operation of the switch, it may common for you to use the same command to
check or maintain the device. In this case, you can write these commonly used
commands into a batch file, and then you just need to use the execute command to run
the file.
Note that:
There should be no invisible character in the batch file. If invisible characters are
found, the batch command will quit the current execution without back off
operation.
The contents of the batch file must be the standard command lines. If not, the
system prompts you the failure as you enter the wrong command in the CLI.
The execute command cannot be executed as nested, that is, a batch file cannot
contain another batch file.
Example
# Execute the batch file test.bat in the directory of flash:/.
[Quidway] execute test.bat
View
System view
Parameter
alert: Perform interactive confirmation on dangerous file operations; The default value
is alert, which configures to perform interactive confirmation on dangerous file
operations.
quiet: Do not prompt for the file operations.
Description
Using file prompt command, you can modify prompt modes of the file operation on the
Ethernet switch.
If the prompt mode is set as quiet, that is, no prompt for file operations, some
non-recoverable operations may lead to system damage.
Example
# Configure the prompt mode of file operation as quiet.
[Quidway] file prompt quiet
1.1.7 fixdisk
Syntax
fixdisk device
View
User view
Parameter
device: device name.
Description
Using fixdisk command, you can restore the space of storage device.
The space may be unavailable caused by exceptional operation. User can use fixdisk
command to restore the space.
Example
# restore the space of Flash.
<Quidway> fixdisk flash:
Fixdisk flash: may take some time to complete.
%Fixdisk unit1>flash: completed.
1.1.8 format
Syntax
format filesystem
View
User view
Parameter
filesystem: Device name.
Description
Using format command, you can format the storage device.
Format operation will cause non-recoverable loss of all the files on the device. Specially,
configuration files will be lost after formatting the flash memory.
Example
# Format flash:.
<Quidway> format flash:
All data on Flash will be lost , proceed with format ? [Y/N] y
% Now begin to format flash, please wait for a while...
Format winc: completed
1.1.9 mkdir
Syntax
mkdir directory
View
User view
Parameter
directory: Directory name.
Description
Using mkdir command, you can create directory in the specified directory on the
storage device.
The directory to be created cannot have the same name as that of other directory or file
in the specified directory.
Example
# Create the directory dd.
<Quidway> mkdir dd
.
%Created dir flash:/dd.
1.1.10 more
Syntax
more file-url
View
User view
Parameter
file-url: File name.
Description
Using more command, you can view content of specified file.The extension name of
the specified file must be txt or cfg.
At present, file system can display files in the text format.
Example
# Display contents of file test.txt.
Huawei Technologies Proprietary
1-7
<Quidway>
1.1.11 move
Syntax
move fileurl-source fileurl-dest
View
User view
Parameter
fileurl-source: Source file name.
fileurl-dest: Destination file name.
Description
Using move command, you can move files.
When the destination filename is the same as that of an existing file, the system will ask
whether to overwrite it.
Example
# Move flash:/test/sample.txt to flash:/sample.txt.
<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.1.12 pwd
Syntax
pwd
View
User view
Parameter
none
Description
Using pwd command, you can view the current path.
Example
# Display the current path.
<Quidway> pwd
flash:
1.1.13 rename
Syntax
rename fileurl-source fileurl-dest
View
User view
Parameter
fileurl-source: Source file name.
fileurl-dest: Destination file name.
Description
Using rename command, you can rename a file.
If the destination file name is the same as an existing directory name or file name,
operation fails and prompt Duplicate file name or file in use.
Example
# Display the current directory information.
<Quidway> dir
Directory of flash:/
-rw-
412757
vrpcfg.cfg
-rw-
248
sample.txt
Directory of flash:/
-rw-
412757
vrpcfg.cfg
-rw-
248
sample.bak
View
User view
Parameter
file-url: The name of the file to be deleted.
Description
Using reset recycle-bin command, you can permanently delete files from the recycle
bin.
The delete command only puts the file into the recycle bin, but reset recycle-bin
command will delete this file permanently.
Example
# Delete the file from the recycle bin.
<Quidway> reset recycle-bin flash:/p1h_logic.out
Clear flash:/plh_logic.out? [Y/N]:y
Clearing files from flash may take a long time. Please wait.
%Cleared file unit1>flash:/~/ plh_logic.out.
1.1.15 rmdir
Syntax
rmdir directory
View
User view
Parameter
directory: Directory name.
Description
Using rmdir command, you can cancel a directory.
The directory to be deleted must be empty.
Note that : After you execute rmdir command, the file originally belonging to the
directory is deleted automatically in the recycle bin.
Example
# Delete the directory hello.
<Quidway> rmdir hello
The files in the recycle-bin under this directory will be deleted permanently,
Remove flash:/hj?[Y/N]:y
...
%Removed directory flash:/ hello.
1.1.16 undelete
Syntax
undelete file-url
View
User view
Parameter
file-url: The name of the file to be recovered.
Description
Using undelete command, you can recover deleted file.
The file name to be recovered cannot be the same as an existing directory name. If the
destination file name is the same as an existing file name, prompt whether to overwrite.
Example
# Recover the deleted file sample.bak.
<Quidway> undelete sample.bak
Undelete flash:/sample.bak ?[Y/N]:y
%Undeleted file flash:/sample.bak
current-configuration
controller
interface
interface-type
View
Any view
Parameter
controller: View the configuration information of controllers.
interface: View the configuration information of interfaces.
interface-type: Type of the interface, may be Aux, GigabitEthernet, NULL,
Vlan-interface, M-Ethernet, | ( Matching output ).
interface-number: Number of the interface.
configuration configuration: View the pre-positive and post-positive configuration
information. The value of configuration is the key word of the configuration, such as:
z
Description
Using display current-configuration command, you can display the currently
effective configuration parameters of the switch.
By default, if some running configuration parameters are the same with the default
operational parameters, they will not be displayed.
If a user needs to authenticate whether the configurations are correct after finishing a
set of configuration, the display current-configuration command can be used to
Huawei Technologies Proprietary
1-12
display the running parameters. Although the user has configured some parameters,
but the related functions are not effective, they are not displayed.
When there is much configuration information, you can use the regular expression to
filter the output information. For specific rules about the regular expression, refer to the
corresponding operation manual.
For the related command, see save, reset saved-configuration and display
saved-configuration.
Example
# View the running configuration parameters of the switch.
<Quidway> display current-configuration
#
sysname Quidway
#
radius scheme system
server-type nec
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain
domain system
radius-scheme system
access-limit disable
state active
idle-cut disable
#
vlan 10
description testVlan10
igmp-snooping enable
#
vlan 100
description testVlan100
#
vlan 1000
description testVlan1000
#
return
# View configuration information of the VLAN1.
<Quidway> display current-configuration vlan 1
#
vlan 1
description TestVlan1
igmp-snooping enable
#
return
# View the lines containing the character string 10* in the configuration information.
The * indicates that the 0 before it can appear 0 times or multiple consecutive times.
<Quidway> display current-configuration | include 10*
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
local-server nas-ip 127.0.0.1 key hello
vlan 1
interface Vlan-interface1
ip address 10.1.1.2 255.255.255.0
interface Ethernet1/0/1
speed 1000
interface Ethernet1/0/2
interface Ethernet1/0/3
interface Ethernet1/0/4
interface Ethernet2/0/1
network 10.1.1.0 0.0.0.255
domain system
radius-scheme system
access-limit disable
state active
idle-cut disable
View
Any view
Parameter
none
Description
Using display saved-configuration command, you can view the configuration files in
the flash memory of Ethernet Switch.
If the Ethernet Switch works abnormally after electrified, execute the display
saved-configuration command to view the startup configuration of the Ethernet
Switch.
For
the
related
commands,
see
save,
reset
saved-configuration,
current-configuration.
Example
# Display configuration files in flash memory of Ethernet Switch.
<Quidway> display saved-configuration
#
sysname Quidway
#
radius scheme system
server-type nec
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain
domain system
radius-scheme system
access-limit disable
state active
idle-cut disable
display
#
router id 2.2.2.2
#
stp timer hello 500
#
vlan 1
#
vlan 2
#
interface Vlan-interface1
#
interface Vlan-interface2
ip address 10.1.1.2 255.255.255.0
#
interface Aux0/0
#
interface Ethernet1/0/1
duplex full
speed 1000
port access vlan 2
#
interface Ethernet1/0/2
#
interface Ethernet1/0/3
#
interface Ethernet1/0/4
#
interface Ethernet2/0/1
port access vlan 2
#
interface Ethernet2/0/2
#
interface Ethernet2/0/3
#
interface Ethernet2/0/4
#
interface NULL0
#
ospf
#
area 0.0.0.0
network 10.1.1.0 0.0.0.255
#
user-interface aux 0
user-interface vty 0 4
#
return
View
Any view
Parameter
None
Description
Using the display this command, you can display the running configuration of the
current view. If you need to authenticate whether the configurations is correct after you
have finished a set of configurations under a view, you can use the display this
command to view the running parameters.
Some effective parameters are not displayed if they are the same with the default ones,
while some parameters, though have been configured by the user, if their related
functions are not effective, are not displayed either.
Associated configuration of the interface is displayed when executing the command in
different interface views; related configuration of the protocol view is displayed when
executing this command in different protocol views; and all the configuration of the
protocol view is displayed when executing this command in protocol sub-views.
For
the
related
command,
see
save,
reset,
saved-configuration,
display
Example
# Display the running configuration parameters for the current view of the switch
system.
[Quidway] display this
View
Any view
Parameter
None
Description
Using the display startup command, you can display the configuration filenames used
for the current and the next start-ups.
For the related command, see startup saved-configuration.
Example
# Display the configuration filenames used for the current and the next start-ups.
<Quidway> display startup
MainBoard:
Startup saved-configuration file:
flash:/vrpcfg.cfg
flash:/vrpcfg.cfg
View
User view
Parameter
none
Description
Using reset saved-configuration command, you can erase configuration files from
the flash memory of the Ethernet Switch.
Perform this command with cautious. It is suggested to consult technical support
personnel first.
Generally, this command is used in the following situations:
z
After upgrade of software, configuration files in flash memory may not match the
new version's software. Perform reset saved-configuration command to erase
the old configuration files.
If a used Ethernet Switch is applied to the new circumstance and the original
configuration files cannot meet the new requirements, the Ethernet Switch should
be configured again. Erase the original configuration files for reconfiguration.
If the configuration files do not exist in the flash memory when Ethernet Switch is
electrified and initialized, it will enter setup switch view automatically.
For the related commands, see save, display current-configuration, display
saved-configuration.
Example
# Erase the configuration files from the flash memory of Ethernet Switch.
<Quidway> reset saved-configuration
This will delete the configuration in the flash memory.
The switch configurations will be erased to reconfigure.
Are you sure?[Y/N]
1.2.6 save
Syntax
save [ file-name | safely ]
View
User view
Parameter
file-name: The name of the configuration file. It is a character string of 5 to 56
characters.
Description
Using save command, you can save the current configuration files to Flash memory.
After finishing a group of configurations and achieving corresponding functions, user
should remember to get the current configuration files stored in the flash memory.
For
the
related
commands,
see
reset
saved-configuration,
Example
# Get the current configuration files stored in the flash memory.
<Quidway> save
The configuration will be written to the device.
Are you sure?[Y/N]y
Now saving current configuration to the device.
display
View
User view
Parameter
cfgfile: The name of the configuration file. It is a string with a length of 5 to 56
characters.
Description
Using the startup saved-configuration command, you can configure the configuration
file used for enabling the system for the next time.
The configuration file uses .cfg as its extension name and is saved under the root
directory of the Flash. For the related command, please see display startup.
Example
Configure the configuration file for the next start-up.
<Quidway> startup saved-configuration vrpcfg.cfg
Note:
For information about how to configure a local user, the password display mode of all
the accessing users, the password for local users, and a service type for a particular
user, refer to the local-user, local-user password-display-mode, password,
service-type command respectively in the Security Module.
View
Any view
Parameter
none
Description
Using display ftp-server command, you can view the parameters of the current FTP
Server. You can perform this command to verify the configuration after setting FTP
parameters.
Example
# Display the configuration of FTP Server parameters.
<Quidway> display ftp-server
FTP server is running
Max user number
User count
30
View
Any view
Parameter
none
Description
Using display ftp-user command, you can view the parameters of current FTP user.
Example
# Show the configuration of FTP user parameters.
<Quidway> display ftp-user
Username
Host IP
Port
Idle
Homedir
quidway
10.110.3.5
1074
flash:/quidway
View
System view
Parameter
enable: Start FTP Server.
Description
Using ftp server command, you can start FTP Server and enable FTP user logon.
Using undo ftp server command, you can close FTP Server and disable FTP user
logon.
By default, FTP Server is shut down.
Perform this command to easily start or shut down FTP Server, preventing Ethernet
Switch from being attacked by some unknown user.
Example
# Shut down FTP Server.
[Quidway] undo ftp server
View
System view
Parameter
minute: Connection timeouts (measured in minutes), ranging from 1 to 35791; By
default, the connection timeout time is 30 minutes.
Description
Using ftp timeout command, you can configure connection timeout interval. Using
undo ftp timeout command, you can restore the default connection timeout interval.
After a user logs on to an FTP Server and has established connection, if the connection
is interrupted or cut abnormally by the user, FTP Server will still hold the connection.
The connection timeout can avoid this problem. If the FTP server has no command
interaction with a client for a specific period of time, it considers the connection to be
failed and disconnect to the client.
Example
# Set the connection timeout to 36 minutes.
[Quidway] ftp timeout 36
View
FTP Client view
Parameter
none
Description
Using ascii command, you can configure data transmission mode as ASCII mode.
By default, the file transmission mode is ASCII mode.
Perform this command if the user needs to change the file transmission mode to default
mode.
Example
# Configure to transmit data in the ASCII mode.
[ftp] ascii
200 Type is ASCII.
1.4.2 binary
Syntax
binary
View
FTP Client view
Huawei Technologies Proprietary
1-25
Parameter
none
Description
Using binary command, you can configure file transmission type as binary mode.
Example
# Configure to transmit data in the binary mode.
[ftp] binary
200 Type is Image (Binary).
1.4.3 bye
Syntax
bye
View
FTP Client view
Parameter
none
Description
Using bye command, you can disconnect with the remote FTP Server and return to
user view.
After performing this command, you can terminate the control connection and data
connection with the remote FTP Server.
Example
# Terminate connection with the remote FTP Server and return to user view.
[ftp] bye
1.4.4 cd
Syntax
cd pathname
View
FTP Client view
Parameter
pathname: Path name.
Description
Using cd command, you can change the working path on the remote FTP Server.
This command is used to access another directory on FTP Server. Note that the user
can only access the directories authorized by the FTP server.
Example
# Change the working path to flash:/temp
[ftp] cd flash:/temp
1.4.5 cdup
Syntax
cdup
View
FTP Client view
Parameter
none
Description
Using cdup command, you can change working path to the upper level directory.
This command is used to exit the current directory and return to the upper level
directory.
Example
# Change working path to the upper level directory.
[ftp] cdup
1.4.6 close
Syntax
close
View
FTP Client view
Parameter
none
Description
Using close command, user can disconnect FTP client side from FTP server side
without exiting FTP client side view. That is to say, you can terminate the control
connection and data connection with the remote FTP Server at the same time.
Related command: open.
Example
# Terminate connection with the remote FTP Server and stays in FTP Client view.
[ftp] close
221 Server closing.
[ftp]
1.4.7 debugging
Syntax
debugging
View
FTP Client view
Parameter
none
Description
Using debugging command, you can enable the system debugging functions.
Example
# Enable the system debugging functions.
[ftp] debugging
Debug is on.
1.4.8 delete
Syntax
delete remotefile
View
FTP Client view
Parameter
remotefile: File name.
Description
Using delete command, you can cancel the specified file.
This command is used to delete a file.
Example
# Delete the file temp.c
[ftp] delete temp.c
1.4.9 dir
Syntax
dir [ filename ] [ localfile ]
View
FTP Client view
Parameter
filename: File name to be queried.
localfile: Saved local file name.
Description
Using dir command, you can get a information list including the file names, size and
creation date under the current directory. If you specify the file name with the parameter
filename, you can get the information list about this file only.
Example
# Display the file information list under the current directory.
200 PORT command okay
7 File Listing Follows in ASCII mode
-rwxrwxrwx
1 noone
nogroup
430585 Dec 21
2004 4.app
-rwxrwxrwx
1 noone
nogroup
430585 Dec 21
2004 5.app
-rwxrwxrwx
1 noone
nogroup
430585 Dec 23
2004 6. app
-rwxrwxrwx
1 noone
nogroup
430585 Dec 21
2004 6. app.bak
-rwxrwxrwx
1 noone
nogroup
638912 Nov 15
2004 abc.BTM
drwxrwxrwx
1 noone
nogroup
0 Dec 15
2004 TEST
1 noone
3212176 Jul 14
2004 21.bin
# Display the file information of 4.app and saves the results in the file 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.app
1.4.10 disconnect
Syntax
disconnect
View
FTP Client view
Parameter
none
Description
Using disconnect command, subscribers can disconnect FTP client side from FTP
server side without exiting FTP client side view.
This command terminates the control connection and data connection with the remote
FTP Server at the same time.
Example
# Terminate connection with the remote FTP Server and stays in FTP Client view.
[ftp] disconnect
1.4.11 ftp
Syntax
ftp [ ipaddress [ port ] ]
View
User view
Parameter
ip-address: The host name ( a string with a length of 1 to 20 characters ) or the IP
address of the remote FTP Server.
port: Port number of remote FTP Server, ranging from 0 to 65535. By default , it is 21.
Description
Using ftp command, you can establish control connection with the remote FTP Server
and enter FTP Client view.
Example
# Connect to FTP Server at the IP address 1.1.1.1
<Quidway> ftp 1.1.1.1
1.4.12 get
Syntax
get remotefile [ localfile ]
View
FTP Client view
Parameter
localfile: Local file name.
remotefile: The name of a file on the remote FTP Server.
Description
Using get command, you can download a remote file and save it locally.
If no local file name is specified, it will be considered the same as that on the remote
FTP Server.
Example
# Download the file temp1.c and saves it as temp.c
[ftp] get temp1.c temp.c
1.4.13 lcd
Syntax
lcd
View
FTP Client view
Parameter
none
Description
Using lcd command, you can view local working path of FTP Client.
Example
# Show local working path.
[ftp] lcd
% Local directory now flash:/temp
1.4.14 ls
Syntax
ls [ remotefile ] [ localfile ]
View
FTP Client view
Parameter
remotefile: Remote file to be queried.
localfile: Saved local file name.
Description
Using the ls command, you can get a list of all the file names under the current directory.
If you use the parameter remotefile, you can get the name of this file.
Note:
Using the ls command, you can only get a list of all the file names. However, you can
get a information list including all the file names, size and creation date under the
current directory while using the dir command.
Example
# Display the list of all the file names under the current directory.
[ftp] ls
200 PORT command okay
7 File Listing Follows in ASCII mode
4.app
5.app
6.app
6.app.bak
abc.BTM
TEST
21.bin
226 Transfer finished successfully.
FTP: 1235 byte(s) received in 1.595 second(s) 774.00byte(s)/sec.
1.4.15 mkdir
Syntax
mkdir pathname
View
FTP Client view
Parameter
pathname: Directory name.
Description
Using mkdir command, you can create a directory on the remote FTP Server.
User can perform this operation as long as the remote FTP server has authorized.
Example
# Create the directory flash:/lanswitch on the remote FTP Server.
[ftp] mkdir flash:/lanswitch
1.4.16 open
Syntax
open [ ip-address [ port ] ]
View
FTP Client view
Parameter
ip-address: The host name ( a string with a length of 1 to 20 characters ) or the IP
address of the remote FTP Server.
port: Port number of remote FTP Server, ranging from 0 to 65535. By default , it is 21.
Description
Using open command, you can establish control connection with the remote FTP
Server in the FTP Client view.
Related command: close.
Example
# Establish control connection with the FTP Server, which IP address is 1.1.1.1.
[ftp] open 1.1.1.1
Trying ...
Press CTRL+K to abort
Connected.
220220 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.4.17 passive
Syntax
passive
undo passive
View
FTP Client view
Parameter
none
Description
Using passive command, you can configure the data transmission mode as passive
mode. Using undo passive command, you can configure the data transmission mode
as active mode.
By default, the data transmission mode is passive mode
Example
# Set the data transmission to passive mode.
[ftp] passive
1.4.18 put
Syntax
put localfile [ remotefile ]
View
FTP Client view
Parameter
localfile: Local file name.
remotefile: File name on the remote FTP Server.
Description
Using put command, you can upload a local file to the remote FTP Server.
If the user does not specify the filename on the remote server, the system will consider
it the same as the local file name by default.
Example
# Upload the local file temp.c to the remote FTP Server and saves it as temp1.c.
[ftp] put temp.c temp1.c
1.4.19 pwd
Syntax
pwd
View
FTP Client view
Parameter
none
Description
Using pwd command, you can view the current directory on the remote FTP Server.
Example
# Show the current directory on the remote FTP Server.
Huawei Technologies Proprietary
1-35
[ftp] pwd
"flash:/temp" is current directory.
1.4.20 quit
Syntax
quit
View
FTP Client view
Parameter
none
Description
Using quit command, you can terminate the connection with the remote FTP Server
and return to user view.
Example
# Terminate connection with the remote FTP Server and returns to user view.
[ftp] quit
<Quidway>
1.4.21 remotehelp
Syntax
remotehelp [ protocol-command ]
View
FTP Client view
Parameter
protocol-command: FTP protocol command.
Description
Using remotehelp command, you can view help information about the FTP protocol
command.
Example
# Show the syntax of the protocol command user.
[ftp] remotehelp user
Huawei Technologies Proprietary
1-36
1.4.22 rmdir
Syntax
rmdir pathname
View
FTP Client view
Parameter
pathname: Directory name of remote FTP Server.
Description
Using rmdir command, you can cancel the specified directory from FTP Server. The
rmdir command can operate successfully only when there are not files under the
directory.
Example
# Delete the directory flash:/temp1 from FTP Server.
[ftp] rmdir flash:/temp1
1.4.23 user
Syntax
user username [ password ]
View
FTP Client view
Parameter
username: Logon username.
password: Logon password.
Description
Using user command, you can register an FTP user.
Example
# Log in the FTP Server with username tom and password bjhw.
[ftp] user tom bjhw
1.4.24 verbose
Syntax
verbose
undo verbose
View
FTP Client view
Parameter
none
Description
Using verbose command, you can enable verbose. Using undo verbose command,
you can disable verbose.
By default, verbose is enabled.
Example
# Enable verbose.
[ftp]verbose
View
User view
Parameter
tftp-server: The IP address or hostname of the TFTP server. The name of the TFTP
server should be a string ranging from 1 to 20 characters.
source-file: Specify the filename of the source file on the TFTP server.
dest-file: Specify the filename of the destination file which will be saved on the switch.
Description
Using tftp get command, you can download a file from the specified directory of the
TFTP server and saving it on the switch.
Example
# Download the file LANSwitch.app from the TFTP server at 1.1.3.214 and save it as
vxWorks.app on the local switch.
<Quidway> tftp 1.1.3.214 get LANSwitch.app vxWorks.app
View
User view
Parameter
tftp-server: The IP address or hostname of the TFTP server. The name of the TFTP
server should be a string ranging from 1 to 20 characters.
source-file: Specify the filename of the source file which is saved on the switch.
dest-file: Specify the filename of the destination file which will be saved on the TFTP
server.
Description
Using tftp put command, you can upload a file from the switch to the specified directory
on the TFTP server.
For the related commands, see tftp get.
Example
# Upload the vrpcfg.txt to the TFTP server at 1.1.3.214 and save it as Temp.txt.
<Quidway> tftp 1.1.3.214 put vrpcfg.txt temp.txt
View
System view
Parameter
acl-num: ACL (access control list) number ranging from 2000 to 2999.
Description
Use the tftp-server acl command to specify the ACL rule when the TFTP client is
making a connection with the TFTP server.
Use the undo tftp-server acl command to cancel the specified ACL rule.
Example
# Specify the ACL for TFTP client to ACL 2000.
[Quidway] tftp-server acl 2000
The ACL number is not existent or contains no rule. Continue? [Y/N] y
[Quidway]
View
System view
Parameter
enable: Configure the packets to be passed to CPU for being processed.
disable: Configure the packets not to be passed to CPU for being processed.
Description
Using bridgemactocpu command, you can configure whether or not the packets with
destination MAC addresses being bridge MAC address of the switch are passed to
CPU for being processed.
By default, the packets with destination MAC addresses being bridge MAC address are
not to be passed to CPU for being processed.
Example
# Configure the packets with destination MAC addresses being bridge MAC address to
be passed to CPU for being processed.
[Quidway] bridgemactocpu enable
View
Any view
Parameter
none
Description
Using display mac-address aging-time command, you can view the aging time of the
dynamic entry in the MAC address table.
For the related commands, see mac-address, mac-address timer, display
mac-address.
Example
# Display the aging time of the dynamic entry in the MAC address table.
[Quidway] display mac-address aging-time
Mac address aging time: 300s
The above information indicates that the aging time of the dynamic entry in the MAC
address is 300s.
View
Any view
Parameter
mac-addr: Specify the MAC address.
vlan-id: Specify the VLAN ID.
static: Static table entry, lost after resetting switch.
dynamic: Dynamic table entry, which will be aged.
interface-type: Specify the interface type.
interface-num: Specify the interface number.
interface-name: Specify the interface name.
For details about the interface-type, interface-num and interface-name parameters,
refer to the Port Configuration in this manual.
count: the display information will only contain the sum number of MAC addresses in
the MAC address table if user choice this parameter when using this command.
Description
Using display mac-address command, you can view MAC address table information.
When managing the Layer-2 addresses of the switch, the administrator can Perform
this command to view such information as the Layer-2 address table, address status
(static or dynamic), Ethernet port of the MAC address, VLAN of the address, and
system address aging time.
For the related commands, see mac-address, mac-address timer.
Example
# Show the information of the MAC address table.
[Quidway] display mac-address
MAC ADDR
VLAN ID
0100-0001-0002
0000-0251-5500
STATE
PORT INDEX
AGING TIME(s)
Config static
GigabitEthernet2/0/1
N/A
212
Learned
GigabitEthernet1/0/2
255
000f-1f9c-0adf
212
Learned
GigabitEthernet1/0/2
180
0001-0001-0001
Config static
GigabitEthernet2/0/2
NOAGED
00e0-fc35-8962
213
Learned
GigabitEthernet2/0/13
AGING
2.1.4 mac-address
Syntax
mac-address { static | dynamic } mac-addr interface { interface-name | interface-type
interface-num } vlan vlan-id
undo mac-address [ static | dynamic ] [ [ mac-addr ] interface {interface-name |
interface-type interface-num } vlan vlan-id ]
View
System view
Parameter
static: Static table entry, lost after resetting switch.
dynamic: Dynamic table entry, which will be aged.
mac-addr: Specify the MAC address.
interface-type: interface type;
interface-num: interface number;
interface-name: interface name;
vlan-id: Specify the VLAN ID.
Description
Using mac-address command, you can add/modify the MAC address table entry.
Using undo mac-address command, you can cancel MAC address table entry
If the input address has been existed in the address table, the original entry will be
modified. That is, replace the interface pointed by this address with the new interface
and the entry attribute with the new attribute (dynamic entry and static entry).
All the (MAC unicast) addresses on a certain interface can be deleted. User can choose
to delete any of the following addresses: address learned by system automatically,
dynamic address configured by user, static address configured by user.
Because the address table is shared in the VLAN domain, you need specify the VLAN
of the multicast address and the port of the unicast address, when adding entries to the
address table.
For the related commands, see display mac-address.
Example
# Configure the port number corresponding to the MAC address 00e0-fc01-0101 as
Ethernet2/0/1 in the address table, and sets this entry as static entry.
[Quidway] mac-address static 00e0-fc01-0101 interface ethernet 2/0/1 vlan 2
View
Ethernet port view
Parameter
count: Specify the amount limit to the MAC addresses to be learned, ranging from 0 to
16384. 0 indicates that no address can be learned via the port. By default, it is 16384.
Description
Using mac-address max-mac-count command, you can set a limit to the MAC
addresses to be learned by the Ethernet port. Using undo mac-address
max-mac-count command, you can restore the default max count of the MAC
addresses to be learned by the Ethernet port.
By default, the max count of MAC addresses learned via the Ethernet port is 16384.
The port will stop learning MAC address when the amount reaches the limit specified by
the count parameter.
Huawei Technologies Proprietary
2-4
Example
# Configure Ethernet2/0/3 to learn at most 600 addresses.
[Quidway-Ethernet2/0/3] mac-address max-mac-count 600
# Configure no limit to the amount of addresses learned via Ethernet2/0/3.
[Quidway-Ethernet2/0/3] undo mac-address max-mac-count
View
System view
Parameter
aging age: Specifies the aging time (measured in seconds) of the Layer-2 dynamic
address table entry, ranging from 10 to 1000000. By default, the aging time is 300
seconds.
no-aging : No aging time.
Description
Using mac-address timer command, you can configure the aging time of the Layer-2
dynamic address table entry. Using undo mac-address timer command, you can
restore the default value.
Too long or too short aging time set by subscribers will cause the problem that the
Ethernet switch broadcasts a great mount of data packets without MAC addresses,
which will affect the switch operation performance.
If aging time is set too long, the Ethernet switch will store a great number of out-of-date
MAC address tables. This will consume MAC address table resources and the switch
will not be able to update MAC address table according to the network change.
If aging time is set too short, the Ethernet switch may delete valid MAC address table.
Example
# Configure the entry aging time of Layer-2 dynamic address table to be 500 seconds.
[Quidway] mac-address timer aging 500
View
User view
Parameter
primary : Specify the APP file as the primary boot file.
backup : Specify the APP file as the backup boot file.
file-url: Path and name of APP file.
slot slot-num: Specify the APP file of slave board. This parameter is only supported by
S6506R.
Description
Using boot boot-loader command, you can configure the app file used for boot of the
next time.
You can specify two boot files at the same time, one is the primary boot file, the other is
the backup. When the switch boots, the process is as follows:
z
If the switch cannot be booted by the primary boot file, it selects the backup file.
Note:
S6506R supports master board and slave board. The two boards both have file system.
User can operate the file on the two boards. In the case user designate the APP
adopted on slave board next time, the file directory or URL should be started with
slot[No.]#flash:, the [No.] is the slave board number. For example, suppose slot 1 is
slave board, text.txt file URL on slave board should be slot1#flash:/text.txt.
Example
# Specify the APP application used for primary boot of next time.
<Quidway> boot boot-loader primary PLATV100R002B09D002.APP slot 0
The specifed file will be booted next time!
<Quidway>
View
User view
Parameter
file-url:path and name of Bootrom file.
slot-num-list: slot-num-list = [ slot-num1 [ to slot-num2 ] ]&<1-10>, slot need to be
upgraded, the range of slot-num is from 0 to 6. &<1-10> indicates that parameter in
front of this mark can be input up to 10 times.
Description
Using boot bootrom command, you can upgrade bootrom.
Note:
S6506R supports master board and slave board. The two boards both have file system.
User can operate the file on the two boards. In the case user upgrade the BootROM
adopted on slave board, the file directory or URL should be started with
slot[No.]#flash:, the [No.] is the slave board number. For example, suppose slot 1 is
slave board, text.txt file URL on slave board should be slot1#flash:/text.txt.
Example
# Upgrade bootrom of No. 0 slot.
<Quidway> boot bootrom PLATV100R002B09D002.btm slot 0
View
System view
Parameter
None.
Description
Using bootrom-update security-check enable command, you can enable the validity
check
function
when
upgrade
BootROM.
Using
undo
bootrom-update
security-check enable command, you can disable the validity check function when
upgrade BootROM.
S6500 series switches have many cards. Every card has its own BootROM application.
Wrongly upgrading the BootROM causes serious results. The validity checking is used
to avoid the above wrong operation.
Example
# enable the validity check function.
[Quidway] bootrom-update security-check enable
View
Any view
Parameter
none
Description
Using display backboard view command, you can view system backboard views.
Salience III series engines do not support this command.
Example
# Show backboard view.
[Quidway] display backboard view
The backboard view is 0
Current Back Board Configuration is described as following:
|Slot No. lBrd Type
|Brd Available
| 1
|NONE
| 8G
|NO
| 2
|NONE
| 8G
|NO
| 3
|NONE
| 8G
|NO
| 4
|LS81FT48
| 8G
|YES
| 5
|NONE
| 0G
|NO
| 6
|NONE
| 0G
|NO
View
Any view
Parameter
none
Description
Using display boot-loader command, you can view APP file used next time.
Huawei Technologies Proprietary
3-4
Example
<Quidway> display boot-loader
The primary app to boot of board 0 at the next time is: flash:/ccc.app
The backup app to boot of board 0 at the next time is: flash:/ddd.app
The app to boot of board 0 at this time is: flash:/ccc.app
View
Any view
Parameter
slot-num: Slot number.
Description
Using display cpu command, you can display CPU occupancy.
Example
# Display CPU occupancy.
<Quidway> display cpu
Board 0 CPU busy status:
13% in last 5 seconds
13% in last 1 minute
13% in last 5 minutes
Board 3 CPU busy status:
16% in last 5 seconds
19% in last 1 minute
19% in last 5 minutes
View
Any view
Parameter
detail: display all slot detail information.
shelf-no: Shelf number.
frame-no: Frame number.
slot-num: Slot number.
Description
Using display device command, you can display the module type and working status
information of a card, including physical card number, physical daughter card number,
number of ports, hardware version number, FPGA version number, version number of
BOOTROM software, application version number, address learning mode, interface
card type and interface card type description, etc.
Example
# Show device information.
<Quidway> display device
Slot No.
Brd Type
Brd Status
Subslot Num
Sft Ver
LS83SRPC
Normal
6506R-011
LS83SRPC
Normal
6506R-011
LS81GT8U
Normal
6506R-011
LS81FT48
Normal
6506R-011
NONE
Absent
Absent
None
NONE
Absent
Absent
None
LS81GT8U
Normal
6506R-011
NONE
Absent
Absent
None
Brd Type
Brd Status
Subslot Num
Sft Ver
LS83SRPC
Master
6506R-011
LS83SRPC
Slave
LS81GT8U
Normal
6506R-011
LS81FT48
Normal
6506R-011
NONE
Absent
Absent
None
NONE
Absent
Absent
None
LS81GT8U
Normal
6506R-011
NONE
Absent
Absent
None
6506R-011
Description
Slot No
Brd Type
Type of board
Brd Status
Status of board
Subslot Num
Subslot number
Sft Ver
View
Any view
Parameter
none
Description
Using display environment command, you can view environment information.
Example
# Display the environment information.
<Quidway> display environment
System temperature information (degree centigrade):
---------------------------------------------------Board
Temperature
Lower limit
Upper limit
28
20
80
39
10
80
View
Any view
Parameter
fan-id: the fan ID.
Description
Using display fan command, you can view the working state of the built-in fans. User
can Perform this command to see if they work normally.
Example
# Display the working state of the fans.
<Quidway> display fan
Fan
1 State: Normal
Fan
2 State: Normal
Fan
3 State: Normal
The above information indicates that all of the four fans work normally.
View
Any view
Parameter
slot-number: Specify slot number
Description
Using display memory command, you can display memory situation.
Example
# Display memory situation.
<Quidway> display memory
System Total Memory(bytes): 32491008
Total Used Memory(bytes): 13181348
Used Rate: 40%
Description
Used Rate
View
Any view
Parameter
power-id: Power-ID.
Description
Using display power command, you can view the working state of the built-in power
supply.
Example
# Show power state.
<Quidway> display power 1
power 1 State: Normal
View
Any view
Parameter
None
Description
Using the display schedule reboot command, you can check the configuration of
related parameters of the switch schedule reboot terminal service.
For the related command, see reboot, schedule reboot at, schedule reboot delay, undo
schedule reboot.
Example
# Display the configuration of the schedule reboot terminal service parameters of the
current switch.
<Quidwa> display schedule reboot
System will reboot at 16:00:00 2002/11/1 (in 2 hours and 5 minutes).
View
Any view
Parameter
None
Description
Use the display uplink monitor command to view information about Layer 3
connectivity between the local device and the remote device.
Related command: uplink monitor.
Example
# View information about Layer 3 connectivity between the local device and the remote
device.
<Quidway> display uplink monitor
UpLink monitor information
No Dest_IP_Addr
Dest_MAC_Addr
Vlan
Port
3.1.14 pause-protection
Syntax
pause-protection { enable | disable } slot slot-num
ErrCnt
Last_Err_Time
View
System view
Parameter
enable: Enables pause frame protection mechanism.
disable: Disables pause frame protection mechanism.
slot slot-num: Specifies the board seated in the slot determined by the parameter
slot-num.
Description
Use the pause-protection command to enable/disable pause frame protection
mechanism.
Pause frame protection mechanism is disabled by default.
Pause frames, which can be utilized as packets to attack a network, are used in traffic
controlling. A switch that has pause frame protection mechanism enabled discards the
detected pause frames that are utilized to attack the network it resides and logs these
attacks in the logbuffer. If the switch experiences successive pause frame attacks, it
sends messages to the console to warn users.
Example
# Enable pause frame protection mechanism on the board in slot 7.
[Quidway] pause-protection enable slot 7
3.1.15 product
Syntax
product { 6503 | 6506 }
View
System view
Parameter
6503: Specifies the switch type to S6503.
6506: Specifies the switch type to S6506.
Description
Using the product command, you can specify the switch type.
If the Salience III series engines works with the S6503 chassis without the XGbus
silkscreen, the system cannot recognize the current switch type. And then you need to
specify the switch type to S6503 by the product 6503 command. After that, if you want
Huawei Technologies Proprietary
3-11
to use this engine in the S6506 chassis without the XGbus silkscreen, you must specify
the switch type to S6506 by the product 6506 command after you insert the engine,
and vice versa.
By default, the switch type is S6506 that the system can recognize.
Note:
z
You must reboot the switch after specifying the switch type.
If the Salience III series engines works with the other type of chassis, the system
can recognize the current switch type, and this configuration is not needed.
Example
# Specify the switch type to S6503 and reboot the switch.
[Quidway] product 6503
[Quidway] quit
<Quidway> reboot
3.1.16 qe monitor
Syntax
qe monitor { enable | disable }
View
System view
Parameter
enable: Specify to enable queue traffic monitoring.
disable: Specify to disable queue traffic monitoring.
Description
Use the qe monitor command to enable/disable queue traffic monitoring.
Queue traffic monitoring is disabled by default.
Upon enabling queue traffic monitoring on a switch, the switch monitors the queue
traffic and relieves blocks in the output queue of its interfaces.
The criterion used to distinguish a block is the queue is full, and the traffic of the
corresponding interface is less than the specified threshold.
Refer to the qe monitor overflow-threshold command for information about how to
set a threshold.
Huawei Technologies Proprietary
3-12
Example
# Enable queue traffic monitoring.
[Quidway] qe monitor enable
[Quidway]
View
Ethernet port view
Parameter
runt: Specifies to detect error packets that are of runt type on current interface. Error
packets that are of runt type refer to frames whose data segment are less than 64 bytes
without CRC errors.
all: Specifies to detect all error packets on current interface.
none: Specifies not to detect error packets on current interface.
Description
Use the qe monitor errpkt runt command to detect error packets that are of runt type
on current interface.
Use the qe monitor errpkt all command to detect all error packets on current interface.
If you do not want to detect error packets on current interface, use the qe monitor
errpkt none command.
A switch does not detect error packets on current interface by default.
If the switch receives a great number of error packets, it will not be able to send/receive
packets properly. With error packets monitoring enabled, the switch collects information
about received error packets regularly. If error packets are detected, it takes protection
measures to ensure that its interfaces send/receive packets properly.
Example
# Specify to detect error packets that are of runt type on Ethernet4/0/1 interface.
[Quidway-Ethernet4/0/1] qe monitor errpkt runt
[Quidway-Ethernet4/0/1]
View
System view
Parameter
interval: Specifies the interval for detecting error packets ranging from 1 to 3600 (in
seconds). It defaults to 5.
Description
Use the qe monitor errpkt check-time command to set the interval for detecting error
packets.
Example
# Set the interval for detecting error packets to 50 seconds.
[Quidway] qe monitor errpkt check-time 50
[Quidway]
View
System view
Parameter
threshold: An integer that sets the overall traffic threshold, ranging from 0 to
4294967295 bps.
Description
Use the qe monitor overflow-threshold command to specify the overall traffic
threshold used in queue traffic monitoring.
The overall traffic threshold defaults to 50,000,000 bps (50 Mbps).
Upon enabling queue traffic monitoring on a switch, the switch monitors the queue
traffic and relieves blocks in the output queue of its interfaces.
The criterion used to distinguish a block is the queue is full, and the traffic of the
corresponding interface is less than the specified threshold.
Huawei Technologies Proprietary
3-14
Example
# Set the overall traffic threshold used in queue traffic monitoring to 90 Mbps.
[Quidway] qe monitor overflow-threshold 90000000
[Quidway]
3.1.20 reboot
Syntax
reboot [ slot slot-num ]
View
User view
Parameter
slot-num: Specifies the physical card number.The number ranges from 0 to 6. 0
indicates to reset the SRPU, taking the same effect as resetting the switch system.
Description
Using reboot command, you can reset the whole system or the specified card.
Example
# Reset the switch.
<Quidway> reboot
This command will reboot the system. The current configuration has not been
saved and will be lost if you continue. Continue? [Y/N]
3.1.21 rdram
Syntax
rdram { enable | disable }
View
System view
Parameter
enable: Enable RDRAM (Rambus Dynamic Random Access Memory) of the device.
disable: Disable RDRAM of the device.
Description
Using rdram enable command, you can enable RDRAM of the device.
Using rdram disable command, you can disable RDRAM of the device.
By default, RDRAM of the device is enabled.
Example
# Disable RDRAM of the device.
[Quidway] rdram disable
View
User view
Parameter
hh:mm: Reboot time of the switch, in the format of "hour: minute" The hh ranges from 0
to 23, and the mm ranges from 0 to 59.
yyyy/mm/dd: Reboot date of the switch, in the format of "year/month/day. The yyyy
ranges from 2000 to 2099, the mm ranges from 1 to 12, and the value of dd is related to
the specific month.
Description
Using the schedule reboot at command, you can enable the timing reboot function of
the switch and set the specific reboot time and date. Using the undo schedule reboot
command, you can disable the timing reboot function.
By default, the timing reboot switch function is disabled.
Note:
The precision of switch timer is 1 minute. The switch will reboot in one minute when
time comes to the specified rebooting point.
If the schedule reboot at command sets specified date parameters, which represents
a data in the future, the switch will be restarted in specified time, with error not more
than 1 minute.
If no specified date parameters are configured, two cases are involved: If the
configured time is after the current time, the switch will be restarted at the time point of
that day; if the configured time is before the current time, the switch will be restarted at
the time point of the next day.
It should be noted that the configured date should not exceed the current date more
than 30 days. In addition, after the command is configured, the system will prompt you
to input confirmation information. Only after the "Y" or the "y" is entered can the
configuration be valid. If there is related configuration before, it will be covered directly.
Moreover, after the schedule reboot at command is configured and the system time is
adjusted by the clock command, the former configured schedule reboot at parameter
will go invalid.
For the related command, see reboot, schedule reboot delay, display schedule reboot.
Example
# Set the switch to be restarted at 22:00 that night ( the current time is 16:21 ).
<Quidway> schedule reboot at 22:00
Reboot system at 22:00 2005/04/06(in 5 hours and 39 minutes)
confirm?[Y/N]:y
<Quidway>
%Apr
aux0: schedule reboot parameters at 16:21:00 2005/04/06. And system will reboot
at 22:00:2005 04/06/2005.
View
User view
Parameter
hhh:mm: Waiting time for rebooting a switch, in the format of "hour: minute" The hhh
ranges from 0 to 720, and the mm ranges from 0 to 59.
mmm: Waiting delay for rebooting a switch, in the format of "absolute minutes" .
Ranging from 0 to 43200,
Description
Using the schedule reboot delay command, you can enable the timing reboot switch
function and set the waiting time. Using the undo schedule reboot command, you can
disable the timing reboot function.
Note:
The precision of switch timer is 1 minute. The switch will reboot in one minute when
time comes to the specified rebooting point.
Two formats can be used to set the waiting delay of timing reboot switch, namely the
format of "hour: minute" and the format of "absolute minutes". But the total minutes
should be no more than 302460 minutes, or 30 days.
After this command is configured, the system will prompt you to input confirmation
information. Only after the "Y" or the "y" is entered can the configuration be valid. If
there is related configuration before, it will be covered directly.
Moreover, after the schedule reboot at command is configured, and the system time is
adjusted by the clock command, the original schedule reboot at parameter will
become invalid.
For the related command, see reboot, schedule reboot at, undo schedule reboot,
display schedule reboot.
Example
# Configure the switch to be restarted after 88 minutes (the current time is 21:32).
<Quidway> schedule reboot delay 88
Reboot system at 17:54 2005/04/06(in 1 hours and 28 minutes)
confirm?[Y/N]:y
<Quidway>
%Apr
aux0: schedule reboot parameters at 16:26:34 2005/04/06. And system will reboot
at 17:54:2005 04/06/2005.
View
System view
Parameter
value: indicates value of backboard view, ranging from 0 to 5.
Description
Using set backboard view command, you can configure backboard view.
Salience III series engines do not support this command.
Example
# Set backboard view.
[Quidway] set backboard view 1
Configuration of System Back Board Mode
Default settings are in square brackets '[]'.
The new configuration will be as following:
|Slot No. lBrd Type
|Brd Available
| 1
|NONE
| 8G
|NO
| 2
|NONE
| 8G
|NO
| 3
|NONE
| 4G
|NO
| 4
|LS81FT48
| 4G
|YES
| 5
|NONE
| 4G
|NO
| 6
|NONE
| 4G
|NO
3.1.25 temperature-limit
Syntax
temperature-limit slot-num down-value up-value
undo temperature-limit slot-num
View
User view, system view
Parameter
slot-num: Physical card number.
down-value: Lower temperature limit.
up-value: Upper temperature limit.
Description
Using temperature-limit command, you can configure temperature limit. Using undo
temperature-limit command, you can restore temperature limit to default value.
Example
# Set the lower and upper temperature limit of card 0.
<Quidway> temperature-limit 0 10 75
Huawei Technologies Proprietary
3-19
View
User view
Parameter
HH:MM:SS: Current clock. HH ranges from 0 to 23. MM and SS range from 0 to 59.
YYYY/MM/DD: Specify the current year, month and date. YYYY ranges from 1993 to
2035. MM ranges from 1 to 12 and DD ranges from 1 to 31.
Description
Using clock datetime command, you can configure the current date and clock of
Ethernet Switch.
By default, the date and clock of Ethernet Switch is set as 0:0:0, 2000/1/1.
The current date and clock of Ethernet Switch must be set in the circumstance that
absolute time is strictly required.
For the related commands, see display clock.
Example
# Set the current date of Ethernet Switch to 0:0:0, 2001/01/1.
<Quidway> clock datetime 0:0:0 2001/01/01
View
User view
Parameter
zone_name: The name of the summer time, which is a character with the length
ranging 1 to 32.
one-off: Only set the summer time of a certain year.
repeating: Set the summer time of every year starting from a certain year.
start-time:
Set
start
time
of
the
summer
time,
input
like
HH:MM:SS
(hour/minute/second).
start-date:
Set
start
time
of
end
time
of
the
summer
time,
input
like
YYYY/MM/DD
(year/month/day).
end-time:
Set
the
summer
time,
input
like
HH:MM:SS
(hour/minute/second).
end-date: Set end time of the summer time, input like YYYY/MM/DD (year/month/day).
offset-time:
Set
offset
time
of
the
summer
time,
input
like
HH:MM:SS
(hour/minute/second).
Description
Using clock summer-time command, you can set the name, starting and ending time
of the summer time. Using undo clock summer-time command, you can remove the
configuration of the summer time.
After the configuration takes effect, the display clock command can be used to check
it. Besides, the time of the log or debug information uses the local time after the
adjustment of the time zone and summer time.
For the related command, see clock timezone.
Example
# Set the summer time for z2 that starts at 06:00:00 on 08/06/2002 and ends at
06:00:00 on 01/09/2002 with the time adding 1 hour.
<Quidway> clock summer-time z2 one-off 06:00:00 2002/06/08 06:00:00 2002/09/01
01:00:00
# Set the summer time for z2 that starts at 06:00:00 on 08/06 and ends at 06:00:00 on
01/09 in each year from 2002 on with the time adding 1 hour.
<Quidway> clock summer-time z2 repeating 06:00:00 2002/06/08 06:00:00 2002/09/01
01:00:00
View
User view
Parameter
zone_name: The name of the time zone, which is a character with the length ranging 1
to 32.
add: The time is adding compared with the UTC.
minus: The time is minus compared with the UTC.
HH:MM:SS: Time (hour/minute/second).
Description
Using clock timezone command, you can set the information of the local time zone.
Using undo clock timezone command, you can restore to the default Universal Time
Coordinated (UTC) time zone.
After the configuration takes effect, the display clock command can be used to check
it. Besides, the time of the log or debug information uses the local time after the
adjustment of the time zone and summer time.
For the related command, see clock summer-time.
Example
# Set the name of the local time zone as Z5 with the time adding 5 hours compared with
the UTC.
<Quidway> clock timezone z5 add 05:00:00
4.1.4 sysname
Syntax
sysname sysname
undo sysname
View
System view
Parameter
sysname: Specify the hostname with a character string with the length ranging from1 to
30 characters.
Description
Using sysname command, you can configure the hostname of Ethernet Switch.
By default, the hostname of Ethernet Switch can be Quidway S6502, Quidway S6503,
Quidway S6506, or Quidway S6506R based on the chassis.
Changing the hostname name of Ethernet Switch will affect the prompt of command
line interface. E.g. the host name of Ethernet Switch is Quidway, and the prompt in user
view is <Quidway>.
Example
# Set the hostname of the Ethernet Switch as QuidwayLANSwitch.
[Quidway] sysname QuidwayLANSwitch
[QuidwayLANSwitch]
View
Any view
Parameter
none
Description
Using display clock command, subscribers can obtain information about system data
and time from the terminal display.
The maximum date and time the system can display is 23:59:59 9999/12/31.
For the related commands, see clock.
Example
# View the current system date and clock.
<Quidway> display clock
Huawei Technologies Proprietary
4-4
View
Any view
Parameter
interface-name: Specify the Ethernet port name.
interface-type: Specify the Ethernet port type.
interface-num: Specify the Ethernet port number.
module-name: Specify the module name.
Description
Using display debugging command, you can view the enabled debugging process.
Show all the enabled debugging when there is no parameter.
For the related commands, see debugging.
Example
# Show all the enabled debugging.
<Quidway> display debugging
IP packet debugging is on.
View
Any view
Parameter
all: display all users connected to the switch.
Description
Using display users command, you can view information about users connected to the
switch.
Example
# Display the status of the current users.
<Quidway> display users
UI
Delay
F 0 AUX 0
IPaddress
Username
00:00:00
View
Any view
Parameter
none
Description
Using display version command, you can view such information as software version,
issue date and the basic hardware configurations.
Example
# Display the information about the system version.
<Quidway> display version
Hello-3Com Versatile Routing Platform Software
VRP(R) software, Version 3.10, Release 3009
Copyright
(c)
2003-2005
Hangzhou
Hello-3Com
Tech.
Co.,Ltd.
All
reserved.
Copyright (c) 2000-2003 Hello Tech. Co.,Ltd. All rights reserved.
Quidway S6506R uptime is 0 week, 0 day, 0 hour, 43 minutes
SRPG 0:
bytes SDRAM
32768K
512K
PCB Version
VER.A
rights
500
CPLD Version
002
Software Version :
LPU 2:
S6506R-3009
bytes SDRAM
0K
0K
PCB Version
VER.0
BootROM Version
403
CPLD Version
003
Software Version :
S6506R-3009
View
User view
Parameter
all: Enable or disable all the debugging.
module-name: Specify the module name.
debugging-option: Debugging option.
Description
Using debugging command, you can enable the system debugging. Using undo
debugging command, you can disable the system debugging.
By default, all the debugging processes are disabled.
Ethernet Switch provides various kinds of debugging functions for technical support
personnel and experienced maintenance staff to troubleshoot the network.
Enabling the debugging will generate a large amount of debugging information and
decrease the system efficiency. Specially, network system may collapse after all the
debugging is enabled by debugging all command. So it is not suggested to use the
debugging all command. It is convenient for the user to disable all the debugging with
undo debugging all command.
Huawei Technologies Proprietary
4-7
Example
# Enable IP Packet debugging.
<Quidway> debugging ip packet
View
Any view
Parameter
none
Description
Using display diagnostic-information command, you can view the current
configuration information about all running modules. You can use all these information
to help diagnose and troubleshoot the Ethernet switch.
When the Ethernet switch does not run well, you can collect all sorts of information
about the switch to locate the source of fault. However, each module has its
corresponding display command, which make it difficult for you to collect all the
information needed. In this case, you can use display diagnostic-information
command.
Example
# Display all system configuration information
<Quidway> display diagnostic-information
Redirect it to file?[Y/N]y
Please input the file name(*.txt)[flash:/diaginfo.txt]:
The file is already existing, overwrite it? [Y/N]y
This operation may take a few minutes, continue?[Y/N]y
..............................................................
View
Any view
Parameter
-a ip-add: Specify the source IP address to transmit ICMP ECHO-REQUEST.
-c: count specify how many times the ICMP ECHO-REQUEST packet will be
transmitted, ranging from 1 to 4294967295.
-d: Configure the socket to be in DEBUGGING mode.
-f: Drop the packets which are larger than the MTU instead of fragmenting them.
-h ttl: Configure TTL value for echo requests to be sent, range from 1 to 255.
-i: Configure to choose packet sent on the interface.
interface-type: Specify the interface type.
interface-num: Specify the interface number.
interface-name: Specify the interface name.
-n: Configure to take the host parameter as IP address without domain name
resolution.
-p: pattern is the hexadecimal padding of ICMP ECHO-REQUEST, e.g. -p ff pads the
packet completely with ff.
-q: Configure not to display any other detailed information except statistics.
-r: Record route.
-s packetsize: Specify the length of ECHO-REQUEST (excluding IP and ICMP packet
header) in bytes, in the range of 20 to 32000 bytes.
-t timeout: Maximum waiting time after sending the ECHO-REQUEST (measured in
ms).
-tos tos: Specify TOS value for echo requests to be sent, range from 0 to 255.
-v: Show other received ICMP packets (non ECHO-RESPONSE).
host-ip: Destination host domain name or IP address of the destination host.
Description
Using ping command, you can check the IP network connection and the reachability of
the host.
By default, when the parameters are not specified:
z
The default padding operation starts from 0x01 and ends on 0x09 (progressively),
then performs again.
The ping command sends ICMP ECHO-REQUEST message to the destination. If the
network to the destination works well, then the destination host will send ICMP
ECHO-REPLY to the source host after receiving ICMP ECHO-REQUEST.
Perform ping command to troubleshoot the network connection and line quality. The
output information includes:
z
The final statistics, including number of sent packets, number of response packets
received, percentage of non-response packets and minimal/maximum/average
value of response time.
If the network transmission rate is too low, you can increase the response message
timeout.
For the related commands, see tracert.
Example
# Check whether the host 202.38.160.244 is reachable.
<Quidway> ping 202.38.160.244
Huawei Technologies Proprietary
4-10
4.4.2 tracert
Syntax
tracert [ -a source-ip ] [ -f first-TTL ] [ -m max-TTL ] [ -p port ] [ -q num-packet ] [ -w
timeout ] string
View
Any view
Parameter
-a source-ip: Configure the source IP address used by tracert command.
-f: Configure to verify the -f switch, first-TTL specifies an initial TTL, ranging from 0 to
the maximum TTL.
-m: Configure to verify the -m switch, max-TTL specifies a maximum TTL ,ranging from
0 to 255, and larger than the initial TTL.
-p: Configure to verify the -p switch, port is an integer host port number, ranging from 0
to 65535. Generally, user need not modify this option.
-q: Configure to verify the -q switch, num-packet is an integer specifying the number of
query packets sent, ranging from 0 to 65535.
-w: Configure to verify the -wf switch, timeout is an integer specifying IP packet timeout
in seconds, ranging from 0 to 65535.
srting: The IP address of the destination host or the hostname of the remote system.
Description
Using tracert command, you can check the reachability of network connection and
troubleshoot the network. User can test gateways passed by the packets transmitted
from the host to the destination.
By default, when the parameters are not specified,
first-TTL is 1,
max-TTL is 30,
port is 33434,
nqueries is 3 and
timeout is 5s.
The tracert command sends a packet with TTL 1, and the first hop will send an ICMP
error message back to indicate this packet cannot be transmitted (because of TTL
timeout). Then this packet will be sent again with TTL 2, and the second hop will
indicate a TTL timeout error. Perform this operation repeatedly till reaching the
destination. These processes are operated to record the source address of each ICMP
TTL timeout so as to provide a path to the destination for an IP packet.
After ping command finds some error on the network, perform tracert to locate the
error.
The output of tracert command includes IP address of all the gateways to the
destination. If a certain gateway times out, output "***".
Example
# Test the gateways passed by the packets to the destination host at 18.26.0.115.
<Quidway> tracert 18.26.0.115
tracert to allspice.lcs.mit.edu (18.26.0.115), 30 hops max, 40 bytes packet
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
View
Any view
Parameter
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels.
channel-name: Specify the channel name. the name can be channel6, channel7,
channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer.
Description
Using display channel command, you can view the details about the information
channel.
Without parameter, display channel command shows the configurations of all the
channels.
Example
# Show details about the information channel 0.
<Quidway> display channel 0
channel number:0, channel name:console
MODU_ID
NAME
ENABLE
ffff0000 default
LOG_LEVEL
warning
ENABLE
TRAP_LEVEL
View
Any view
Parameter
None
debugging
ENABLE
Y
DEBUG_LEVEL
debugging
Description
Using display info-center command, you can view the configuration of system log and
the information recorded in the memory buffer.
If the information in the current log/trap buffer is less than the specified sizeval, display
the actual log/trap information.
For the related commands, see info-center enable,info-center loghost,info-center
logbuffer,info-center console channel,info-center monitor channel.
Example
# Show the system log information.
<Quidway> display info-center
Information Center:enabled
Log host:
173.168.1.10, channel number:2, channel name:loghost,
language:english , host facility local:7
Console:
channel number:0, channel name:console
Monitor:
channel number:1, channel name:monitor
SNMP Agent:
channel number:5, channel name:snmpagent
Log buffer:
enabled, max buffer size:1024, current buffer size:256
current messages:6, channel number:4, channel name:logbuffer
dropped messages:0, overwritten messages:0
Trap buffer:
enabled, max buffer size:1024, current buffer size:256
current messages:0, channel number:3, channel name:trapbuffer
dropped messages:0, overwritten messages:0
Information timestamp setting:
log - date, trap - date, debug - boot
View
Any view
Parameter
level: Information level.
severity: Information level, do not output information below this level. By default, the log
information level is warnings, the trap information level is debugging, the debugging
information level is debugging.
Information at different levels is as follows:
z
Description
Using display logbuffer command, you can view the attribute of logbuffer and the
information recorded in logbuffer.
For the related commands, see info-center enable,info-center loghost,info-center
logbuffer,info-center console channel,info-center monitor channel.
Example
# Show the system logbuffer attribute and the log information in logbuffer.
<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
View
Any view
Parameter
level: Information level.
severity: Information level, do not output information below this level. By default, the log
information level is warnings, the trap information level is debugging, the debugging
information level is debugging.
Information at different levels is as follows:
z
Description
Using display logbuffer summary command, you can view the summary information
recorded in logbuffer.
For the related commands, see info-center enable,info-center loghost,info-center
logbuffer,info-center console channel,info-center monitor channel.
Example
# Show the summary information recorded in logbuffer.
<Quidway> display logbuffer summary
EMERG ALERT CRIT ERROR WARN NOTIF INFO DEBUG
0
94
display trapbuffer
4.5.5 Syntax
display trapbuffer [ size buffersize ]
Huawei Technologies Proprietary
4-16
View
Any view
Parameter
size: Configure the size of buffer.
buffersize: Size of buffer (number of messages which can be kept); By default, the size
of the buffer is 256.
Description
Using display trapbuffer command, you can view the attribute of trapbuffer and the
information recorded in trapbuffer.
For the related commands, see info-center enable,info-center loghost,info-center
logbuffer,info-center console channel,info-center monitor channel.
Example
# Show the system trapbuffer attribute and the log information in trapbuffer.
<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
overwritten messages : 0
current messages : 6
View
System view
Parameter
channel-number: Channel number, ranging from 0 to 9, that is, system has ten
channels.
channel-name: Specify the channel name with a character string not exceeding 30
characters, excluding "-", "/" or "\". .
Description
Using info-center channel name command, you can rename a channel specified by
the channel-number as channel-name. Using undo info-center channel command,
you can restore the channel name.
Note that the channel name cannot be duplicated.
Example
# Rename the channel 0 as execconsole.
[Quidway] info-center channel 0 name execconsole
View
System view
Parameter
channel-number: Channel number, ranging from 0 to 9, that is, system has ten
channels.
channel-name: Specify the channel name. The name can be channel6, channel7,
channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer.
Description
Using info-center console channel command, you can configure the channel through
which the log information is output to the console.
By default, Ethernet switches output log information to the console.
This command takes effect only after system logging is started.
For the related commands, see info-center enable,display info-center.
Huawei Technologies Proprietary
4-18
Example
# Configure to output log information to the console through channel 0.
[Quidway] info-center console channel 0
View
System view
Parameter
none
Description
Using info-center enable command, you can enable the system log function. Using
undo info-center enable command, you can disable system log function.
By default, system log function is enabled.
Only after the system log function is enabled can the system output the log information
to the info-center loghost and console, etc.
For the related commands, see info-center loghost, info-center logbuffer, info-center
console channel, info-center monitor channel, display info-center.
Example
# Enable the system log function.
[Quidway] info-center enable
View
System view
Parameter
channel: Configure the channel to output information to buffer.
Huawei Technologies Proprietary
4-19
channel-number: Channel number, ranging from 0 to 9, that is, system has ten
channels.
channel-name: Specify the channel name. The name can be channel6, channel7,
channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer.
size: Configure the size of buffer.
buffersize: Size of buffer (number of messages which can be kept); By default, the size
of the buffer is 512.
Description
Using info-center logbuffer command, you can configure to output information to the
memory buffer. Using undo info-center logbuffer command, you can cancel the
information output to buffer
This command takes effect only after the system logging is enabled.
For the related commands, see info-center enable, display info-center.
Example
# Send log information to buffer and sets the size of buffer as 50.
[Quidway] info-center logbuffer size 50
View
System view
Parameter
host-ip-addr: The IP address of info-center loghost.
channel: Configure information channel of the info-center loghost.
channel-number: Channel number, ranging from 0 to 9, that is, system has ten
channels.
channel-name: Specify the channel name. The name can be channel6, channel7,
channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer.
facility: Configure the recording tool of info-center loghost.
local-number: Record tool of info-center loghost, ranging from local0 to local7.
language: Set the logging language.
Huawei Technologies Proprietary
4-20
Description
Using info-center loghost command, you can configure the IP address of the
info-center loghost to send information to it. Using undo info-center loghost
command, you can cancel output to info-center loghost.
By default, Ethernet switches do not output information to info-center loghost.
This command takes effect only after the system logging is enabled.
For the related commands, see info-center enable,display info-center.
Example
# Configure to send log information to the UNIX workstation at 202.38.160.1.
[Quidway] info-center loghost 202.38.160.1
View
System view
Parameter
source interface-name: set source address of the packets sent to loghost as the
address of the interface specified by the interface-name. Normally, the interface can be
VLAN interface, NULL interface or Loopback interface.
Description
Using info-center loghost source command, you can set source address of the
packets sent to loghost as the address of the interface specified by the interface-name.
Using undo info-center loghost source command, you can cancel the setting source
address of the packets sent to loghost.
This command takes effect only after the system logging is enabled.
For the related commands, see info-center enable, display info-center.
Example
# Set source address of the packets sent to loghost as the address of the VLAN
interface 1.
[Quidway] info-center loghost source vlan-interface 1
View
System view
Parameter
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels.
channel-name: Specify the channel name. The name can be channel6, channel7,
channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer.
Description
Using info-center monitor channel command, you can configure the channel to
output the log information to the user terminal. Using undo info-center monitor
channel command, you can restore the channel to output the log information to the
user terminal to default value.
By default, Ethernet switches do not output log information to user terminal.
This command takes effect only after system logging is started.
For the related commands, see info-center enable,display info-center.
Example
# Configure channel 0 to output log information to user terminal.
[Quidway] info-center monitor channel 0
View
System view
Parameter
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels. By default, channel 5 is used.
channel-name: Specify the channel name. The name can be channel6, channel7,
channel8, channel9, console, logbuffer, loghost, monitor, snmpagent, trapbuffer.
Description
Using info-center snmp channel command, you can configure new channel for
transmitting the SNMP information. Using undo info-center snmp channel command,
you can restore the channel for transmitting the SNMP information to default value.
For the related commands, see display snmp.
Example
# Configure channel 6 as the SNMP information channel.
[Quidway] info-center snmp channel 6
View
System view
Parameter
modu-name: Module name.
default: All the modules.
log: Log information.
trap: Trap information.
debugging: Debugging information.
level: Level.
severity: Information level, do not output information below this level.
Information at different levels is as follows:
emergencies: Level 1 information, which cannot be used by the system.
alerts: Level 2 information, to be reacted immediately.
critical: Level 3 information, critical information.
errors: Level 4 information, error information.
warnings: level 5 information, warning information.
Log information
level
Trap information
level
Debugging
information level
Console
warning
debugging
debugging
Terminal
warning
debugging
debugging
Log host
informational
debugging
debugging
Trapbuffer
informational
warning
debugging
Logbuffer
warning
debugging
debugging
SNMPagent
debugging
warning
debugging
Channel6
debugging
debugging
debugging
Channel7
debugging
debugging
debugging
Channel8
debugging
debugging
debugging
Channel9
debugging
debugging
debugging
Log information
switch
Trap information
switch
Debug information
switch
Console
Enable
Disable
Enable
Terminal
Enable
Disable
Enable
Log host
Enable
Enable
Disable
Trapbuffer
Disable
Enable
Disable
Logbuffer
Enable
Disable
Disable
SNMPagent
Disable
Enable
Disable
Channel6
Enable
Enable
Disable
Channel7
Enable
Enable
Disable
Channel8
Enable
Enable
Disable
Channel9
Enable
Enable
Disable
Note:
If you only specify the level for one/two of the three types of information, the level(s) of
the unspecified two/one return(s) to the default. For example, if you only define the
level of the log information, then the levels of the trap and debugging information return
to the defaults.
Description
Using info-center source command, you can add/delete a record to the information
channel. Using undo info-center source command, you can cancel the contents of
the information channel.
For example, for the filter of IP module log output, you can configure to output the logs
at a level higher than warnings to the log host and output those higher than
informational to the log buffer. You can also configure to output the trap information on
the IP module to a specified trap host, etc.
The channels for filtering in all the directions are specified by this configuration
command. All the information will be sent to the corresponding directions through the
specified channels. You can configure the channels in the output direction, channel
filter information, filtering and redirecting of all kinds of information.
At present, the system distributes an information channel in each output direction by
default, shown as follows:
Table 4-3 Information channel in each output direction by default
Output direction
Console
console
Monitor
monitor
Info-center loghost
loghost
Log buffer
logbuffer
Trap buffer
trapbuffer
snmp
snmpagent
In addition, each information channel has a default record with the module name
default and module number as 0xffff0000. However, for different information channel,
the default log, trap and debugging settings in the records may be different with one
another. Use default configuration record if a module does not have any specific
configuration record in the channel.
Example
# Configure to enable the log information of VLAN module in SNMP channel and allows
the output of the information with a level higher than emergencies.
[Quidway] info-center source vlan channel snmp log level emergencies
View
System view
Parameter
log: Log information.
trap: Trap information.
debugging: Debugging information.
boot: Time elapsing after system starts. Format: xxxxxx.yyyyyy, xxxxxx is the high 32
bits of the elapsed time (in milliseconds) after system starts, and yyyyyy is the low 32
bits.
date: Current system date and time. It shows as yyyy/mm/dd-hh:mm:ss in Chinese
environment and mm dd hh:mm:ss yyyy in Western language environment.
none: No timestamp format.
Description
Using info-center timestamp command, you can configure the timestamp output
format in debugging/trap information. Using undo info-center timestamp command,
you can disable the output of timestamp field.
By default, datetime stamp is used.
Example
# Configure the debugging information timestamp format as boot.
[Quidway] info-center timestamp debugging boot
Huawei Technologies Proprietary
4-26
View
System view
Parameter
size: Configure the size of the trap buffer.
buffersize: Size of trap buffer (numbers of messages).
channel: Configure the channel to output information to trap buffer.
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels.
channel-name: Specify the channel name.
Description
Using info-center trapbuffer command, you can output information to the trap buffer.
Using undo info-center trapbuffer command, you can cancel output information to
trap buffer.
By default, output information is transmitted to trap buffer and size of trap buffer is 256.
This command takes effect only after the system logging is enabled.
For the related commands, see info-center enable, display info-center.
Example
# Send information to the trap buffer and sets the size of buffer as 30.
[Quidway] info-center trapbuffer size 30
View
User view
Parameter
none
Huawei Technologies Proprietary
4-27
Description
Using reset logbuffer command, you can reset information in log buffer.
Example
# Clear information in log buffer.
<Quidway> reset logbuffer
View
User view
Parameter
none
Description
Using reset trapbuffer command, you can reset information in trap buffer.
Example
# Clear information in trap buffer.
<Quidway> reset trapbuffer
View
User view
Parameter
none
Description
Using terminal debugging command, you can configure to display the debugging
information on the terminal. Using undo terminal debugging command, you can
configure not to display the debugging information on the terminal.
Huawei Technologies Proprietary
4-28
Example
# Enable the terminal display debugging.
<Quidway> terminal debugging
View
User view
Parameter
none
Description
Using terminal logging command, you can enable terminal log information display.
Using undo terminal logging command, you can disable terminal log information
display.
By default, this function is enabled.
Example
# Disable the terminal log display.
<Quidway> undo terminal logging
View
User view
Parameter
none
Description
Using terminal monitor command, you can enable the log debugging/log/trap on the
terminal monitor. Using undo terminal monitor command, you can disable these
functions.
By default, enable these functions for the console user and disable them for the
terminal user.
This command only takes effect on the current terminal where the commands are input.
The debugging/log/trap information can be output to the current terminal, beginning in
user view. When the terminal monitor is shut down, no debugging/log/trap information
will be displayed in local terminal, which is equals to having performed undo terminal
debugging,undo terminal logging,undo terminal trapping commands. When the
terminal monitor is enabled, you can use terminal debugging / undo terminal
debugging, terminal logging / terminal logging and terminal trapping / undo
terminal trapping respectively to enable or disable the corresponding functions.
Example
# Disable the terminal monitor.
<Quidway> undo terminal monitor
View
User view
Parameter
none
Description
Using terminal trapping command, you can enable terminal trap information display.
Using undo terminal trapping command, you can disable this function.
By default, this function is enabled.
Example
# Enable trap information display.
<Quidway> terminal trapping
View
Any view
Parameter
read: display read-only community information.
write: display read-write community information.
Description
Using display snmp-agent community command, you can view the currently
configured community names.
Example
# Display the currently configured community names.
<Quidway> display snmp-agent community
community name:public
group name:public
storage-type: nonVolatile
community name:tom
group name:hello
storage-type: nonVolatile
View
Any view
Parameter
local-engineid: local engine ID.
remote-engineid: remote engine ID.
Description
Using display snmp-agent engineid command, you can view engine ID of current
device.
SNMP engine is the core of SNMP entity. It performs the function of sending, receiving
and authenticating SNMP message, extracting PDU, packet encapsulation and the
communication with SNMP application, etc.
Example
# Display the engine ID of current device.
<Quidway> display snmp-agent local-engineid
SNMP local engineID: 00000009020000000C025808
View
Any view
Parameter
groupname: Group name, ranging from 1 to 32 bytes.
Description
Using display snmp-agent group command, you can view group name, safe mode,
state of various views and storage modes.
Example
# Display SNMP group name and safe mode.
<Quidway> display snmp-agent group
Group name: hello
Security model: v2c noAuthnoPriv
Readview: ViewDefault
Writeview: <no specified>
Notifyview :<no specified>
Storage-type: nonVolatile
Description
groupname
Security model
readview
writeview
notifyview
storage-type
Storage type
View
Any view
Parameter
exclude: Display the SNMP mib view excluded.
Include: Display the SNMP mib view included.
viewname: Display the SNMP mib view according to the mib view name.
mib-view: Specify the mib view name.
Description
display snmp-agent mib-view command is used to view the MIB view configuration
information of the Ethernet switch.
Example
# Display the information about the currently configured MIB view.
<Quidway> display snmp-agent mib-view
View name:system
MIB Subtree:system
Subtree mask:
Storage-type: nonVolatile
View Type:included
View status:active
View name:ViewDefault
MIB Subtree:iso
Subtree mask:
Storage-type: nonVolatile
View Type:included
View status:active
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
Description
View name
View name
MIB Subtree
MIB subtree
Subtree mask
storage-type
Storage type
Caution:
If the SNMP Agent is disabled, "Snmp Agent disabled" will be displayed after you
execute the above display commands.
View
Any view
Parameter
none
Description
Using display snmp-agent statistics command, you can view current state of SNMP
communication.
This command provides a counter for SNMP operations.
Example
# Display the current state of SNMP communication.
<Quidway> display snmp-agent statistics
9232 Messages delivered to the SNMP entity
0 Messages which were for an unsupported version
0 Messages which used a SNMP community name not known
0 Messages which represented an illegal operation for the community supplied
0 ASN.1 or BER errors in the process of decoding
9266 Messages passed from the SNMP entity
0 SNMP PDUs which had badValue error-status
0 SNMP PDUs which had genErr error-status
11 SNMP PDUs which had noSuchName error-status
0 SNMP PDUs which had tooBig error-status (Maximum packet size 2000)
33029 MIB objects retrieved successfully
2 MIB objects altered successfully
714 GetRequest-PDU accepted and processed
8514 GetNextRequest-PDU accepted and processed
10 GetBulkRequest-PDU accepted and processed
Description
0 Messages which
unsupported version
Number of packets
information error
were
for
an
with
version
Number of SNMP
Bad_values error
packets
with
Number of SNMP
General_errors
packets
with
11
SNMP
PDUs
which
noSuchName error-status
had
33029
MIB
successfully
objects
retrieved
Number of the
requested by get
received
packets
packets
packets
1 SetRequest-PDU
processed
Number of the
requested by set
accepted
and
received
packets
Field
Description
View
Any view
Parameter
none
Description
Using display snmp-agent sys-info contact command, you can view the character
string sysContact (system contact).
Example
# Display the character string sysContact (system contact).
<Quidway> display snmp-agent sys-info contact
The contact person for this managed node:
Hangzhou Huawei-3Com Tech. Co.,Ltd.
View
Any view
Parameter
none
Description
Using display snmp-agent sys-info location command, you can view the character
string describing the system location.
Example
# Display the system location.
<Quidway> display snmp-agent sys-info location
The physical location of this node:
BeiJing China
View
Any view
Parameter
none
Description
Using display snmp-agent sys-info version command, you can view the version
information about the running SMNMP in the system.
Example
# Display the version information of running SNMP
<Quidway> display snmp-agent sys-info version
SNMP version running in the system:
SNMPv3
View
Any view
Parameter
engineid: display user information with specified engine ID.
username:display user information with specified user name.
groupname:display user information of specified group.
Huawei Technologies Proprietary
5-8
Description
Using display snmp-agent usm-user command, you can view information of all the
SNMP usernames in the group username list.
Example
# Display the information of all the current users.
<Quidway> display snmp-agent usm-user engineid 1234567890
User name: userv3aaaa
Group name: managev3group
Engine ID: 1234567890
Storage-type: nonVolatile
UserStatus: active
Description
User name
Group name
Engine ID
Storage-type
UserStatus
View
Ethernet port view / VLAN interface view
Parameter
None.
Description
Using enable snmp trap updown command, you can enable the current port to
transmit the LINK UP and LINK DOWN trap information. Using undo enable snmp
trap updown command, you can disable current port to transmit the LINK UP and LINK
DOWN trap information.
By default, the current port is capable of transmitting the LINK UP and LINK DOWN trap
information.
Example
# Enable current port Ethernet6/0/1 to transmit the LINK UP and LINK DOWN trap
information.
[Quidway-Ethernet6/0/1] enable snmp trap updown
View
System view
Parameter
local-engineid: Specify an engineID for the local SNMPv3 entity
engineid: Specify the engine ID with a character string, only composed of hexadecimal
numbers, the size must be in the range 5 to 32 bytes. An engine ID can contain up to
64 4-bit hexadecimal numbers. By default, the value is "Enterprise Number + device
information".
Description
Using snmp-agent local-engineid command, you can configure a name for a local or
remote SNMP engine on the Ethernet Switch. Using undo
snmp-agent
local-engineid command, you can restore the default setting of engine ID.
Device information is determined according to different products. It can be IP address,
MAC address or user defined text. However, you must use numbers in hexadecimal
form.
Example
# Configure the ID of a local or remote device as 1234512345.
[Quidway] snmp-agent local-engineid 1234512345
View
System view
Parameter
read: Indicate that MIB object can only be read.
write: Indicate that MIB object can be read and written.
community-name: Community name character string.
view-name: MIB view name.
acl acl-list:set access control list for specified community.
Description
Using snmp-agent community command, you can configure community access
name and enable the access to SNMP. Using undo snmp-agent community
command, you can cancel the settings of community access name.
Example
# Configure community name as hello and permits read-only access by this community
name.
[Quidway] snmp-agent community read hello
# Configure community name as mgr and permits read-write access.
[Quidway] snmp-agent community write mgr
View
System view
Parameter
groupname: Group name, ranging from 1 to 32 bytes.
authentication: Configure to authenticate the packet without encryption.
privacy: Configure to authenticate and encrypt the packet.
read-view: Configures to allow read-only view settings.
readview: Read-only view name, ranging from 1 to 32 bytes.
write-view: Configure to allow read-write view settings.
writeview: The name of read-write view, ranging from 1 to 32 bytes.
notify-view: Configure to allow notify view settings.
notifyview: Specify the notify view name, ranging from 1 to 32 bytes.
acl acl-list:Set access control list for this group name.
Description
Using snmp-agent group command, you can configure a new SNMP group, that is, to
map SNMP user to SNMP view. Using undo snmp-agent group command, you can
cancel a specified SNMP group.
For the following reasons:
z
Any change of the SNMP group notify view will affect all the users related to this
group.
Please do not specify the notify view when configuring SNMP group.
Example
# Create an SNMP group named hello.
[Quidway] snmp-agent group v3 hello.
View
System view
Parameter
included: Include this MIB subtree.
excluded: Exclude this MIB subtree.
view-name: Specify the view name, with a character string, ranging from 1 to 32
characters. By default, the view name is ViewDefault.
oid-tree: MIB object subtree. It can be a character string of the variable OID, or a
variable name, ranging from 1 to 255 characters. By default, OID is 1.3.6.1.
Description
Using snmp-agent mib-view command, you can create or update the view information.
Using undo snmp-agent mib-view command, you can cancel the view information
By default, the view name is ViewDefault, OID is 1.3.6.1.
Both the character string of OID and the node name can be input as parameter.
Example
# Create a view that consists of all the objects of MIB-II.
[Quidway] snmp-agent mib-view included mib2 1.3.6.1.2.1
View
System view
Parameter
byte-count: Specify the size of SNMP packet (measured in bytes), ranging from 484 to
17940. By default, the size is 2000 bytes.
Description
Using snmp-agent packet max-size command, you can configure the size of SNMP
packet that the Agent can send/receive. Using undo snmp-agent packet max-size
command, you can restore the default size of SNMP packet.
The sizes of the SNMP packets received/sent by the Agent are different in different
network environment.
Example
# Set the size of SNMP packet to 1042 bytes.
Huawei Technologies Proprietary
5-13
View
System view
Parameter
sysContact: Specify a character string describing the system maintaining contact (in
bytes), with a length ranging from 1 to 255; By default, the contact information is "Hello
Beijing China".
sysLocation: Specify a character string to describe the system location; By default, the
character string is "Beijing China".
version: version of running SNMP.
v1:SNMP V1.
v2c:SNMP V2C.
v3:SNMP V3.
all:all SNMP version (includes SNMP V1, SNMP V2C, SNMP V3).
Description
Using snmp-agent sys-info command, you can configure system information such as
geographical location of the device, contact information for system maintenance and
version information of running SNMP. Using undo snmp-agent sys-info location
command, you can restore the default value.
Example
# Set system location as Building 3/Room 214.
[Quidway] snmp-agent sys-info location Building 3/Room 214
target-host
trap
address
udp-domain
host-addr [ udp-port
View
System view
Parameter
trap:Specify the host to receive traps or notifications
address:Specify the transport addresses to be used in the generation of SNMP
messages.
udp-domain:Specify transport domain over UDP for the target address
host-addr: The IP address of destination host.
udp-port udp-port-number: Specify the UDP port number of the host to receive the
SNMP notification.
params:Specify SNMP target information to be used in the generation of SNMP
messages
v1: Represent the version of SNMPV1.
v2c: Represent the version of SNMPV2C.
v3: Represent the version of SNMPV3.
authentication: Configure to authenticate the packet without encryption.
privacy: Configure to authenticate and encrypt the packet.
community-string: Specify the community name. The character string ranges from 1 to
32 bytes.
Description
Using snmp-agent target-host command, you can configure destination of SNMP
notification. Using undo snmp-agent target-host command, you can cancel the host
that receives SNMP notification.
The snmp-agent target-host command and the snmp-agent trap enable command
should be used at the same time. Use the snmp-agent trap enable command to
enable the device to transmit Trap packets. snmp-agent trap enable command and
snmp-agent target-host command should be used at the same time on the host to
enable notify message sending.
Example
# Enable sending Trap message to myhost.hello.com with community name hello.
[Quidway] snmp-agent trap enable
[Quidway] snmp-agent target-host trap address udp-domain 2.2.2.2 params
securityname hello
# Enable sending Trap packets to 2.2.2.2 with the community name public
[Quidway] snmp-agent trap enable
[Quidway] snmp-agent target-host trap address udp-domain 2.2.2.2 params
securityname public
View
System view
Parameter
standard [ authentication ] [ coldstart ] [ linkdown ] [ linkup ]: Configure to send
standard Trap messages. authentication: Configure to send SNMP authentication
Trap messages. coldstart: Configure to send SNMP cold start Trap messages.
linkdown: Configure to send SNMP link down Trap messages. linkup: Configure to
send SNMP link up Trap messages.
bgp [ backwardtransition ] [ established ] : Configure to send BGP Trap messages.
vrrp [ authfailure | newmaster ] : Configure to send VRRP Trap messages.
Description
Using snmp-agent trap enable command, you can enable the device to send Trap
message. Using undo snmp-agent trap enable command, you can disable Trap
message sending.
By default, Trap message sending is disabled.
snmp-agent trap enable command and snmp-agent target-host command should
be used at the same time. snmp-agent target-host command specifies which hosts
can receive Trap message. However, to send Trap message, at least one snmp-agent
target-host command should be configured.
Example
# Enable to send the trap packet of SNMP authentication failure to 10.1.1.1. The
community name is hello.
[Quidway] snmp-agent trap enable standard authentication
[Quidway] snmp-agent target-host trap address udp-domain 10.1.1.1 params
securityname hello
View
System view
Parameter
seconds: Specify the timeouts, ranging from 1 to 2592000 seconds; By default, the
timeout interval is 120 seconds.
Description
Using snmp-agent trap life command, you can configure the timeout of Trap packets.
Using undo snmp-agent trap life command, you can restore the default value.
The set timeout of Trap packet is represented by seconds. If time exceeds seconds,
this Trap packet will be discarded.
For the related commands, see snmp-agent trap enable, snmp-agent target-host .
Example
# Configure the timeout interval of Trap packet as 60 seconds.
[Quidway] snmp-agent trap life 60
View
System view
Parameter
length: Length of queue, ranging from 1 to 1000; By default, the length is 100.
Description
Using snmp-agent trap queue-size command, you can configure the information
queue length of Trap packet sent to destination host. Using undo snmp-agent trap
queue-size command, you can restore the default value.
For the related commands, see snmp-agent trap enable, snmp-agent target-host,
snmp-agent trap life.
Example
# Configure the queue length to 200.
[Quidway] snmp-agent trap queue-size 200
View
System view
Parameter
vlan-id: Specify the VLAN interface ID, ranging from 1 to 4000.
Description
Using snmp-agent trap source command, you can configure the source address for
sending Trap. Using undo snmp-agent trap source command, you can cancel the
source address for sending Trap.
Example
# Configure the IP address of the VLAN interface 1 as the source address for
transmitting the Trap packets.
[Quidway] snmp-agent trap source vlan-interface 1
View
System view
Parameter
username: Specify the user name, ranging from 1 to 32 bytes.
groupname: Specify the group name corresponding to that user, a character string at
the length ranging from 1 to 32 bytes.
v1: Configure to use V1 safe mode.
v2c: Configure to use V2c safe mode.
v3: Configure to use V3 safe mode.
authentication-mode: Specify the safety level as authentication required.
md5: MD5 algorithm is adopted in authentication. MD5 authentication uses the
128-digit password. Computation speed of MD5 is faster than that of SHA
sha: SHA algorithm is adopted in authentication. SHA authentication uses the 160-digit
password. Computation speed of SHA is slower than that of MD5, but with higher
security.
authpassword: Specify the authentication password with a character string, ranging
from 1 to 64 bytes.
privacy-mode: Specify the safety level as encrypted.
des56: Specify the authentication protocol as DES.
privpassword: Specify the encryption password with a character string, ranging from 1
to 64 bytes.
acl acl-list:Set access control list for this user based on USM name
Description
Using snmp-agent usm-user command, you can add a new user to an SNMP group.
Using undo snmp-agent usm-user command, you can cancel a user from SNMP
group.
SNMP engineID (for authentication) is required when configuring remote user for an
agent. This command will not be effective without engineID configured.
For V1 and V2C, this command will add a new community name. For V3, it will add a
new user for an SNMP group.
Example
# Add a user wang for hello (an SNMP group), configures to authenticate with MD5 and
sets authentication password as pass.
[Quidway] snmp-agent usm-user v3 wang hello authentication-mode md5 pass
View
System view
Parameter
none
Description
Using undo snmp-agent command, you can disable all versions of SNMP running on
the server.
Perform any command of snmp-agent will enable SNMP Agent.
Example
# Disable the running SNMP agents of all SNMP versions.
[Quidway] undo snmp-agent
View
Any view
Parameter
alarm-table-entry: Alarm table entry index.
Description
Using display rmon alarm command, you can view RMON alarm information.
For the related commands, see rmon alarm.
Example
# Display the RMON alarm information.
<Quidway> display rmon alarm
Alarm table 1 owned by abc is VALID.
Samples type
Variable formula
: delta
: 1.3.6.1.2.1.2.2.1.11.67111554<ifInUcastPkts.67111554>
Sampling interval
: 10(sec)
Rising threshold
Falling threshold
: risingOrFallingAlarm
Latest value
: 0
Description
Alarm table 1
owned by abc
VALID
Samples type
Field
Description
Variable formula
Sampling interval
Rising threshold
Falling threshold
When
enables
startup
risingOrFallingAlarm
Latest value
View
Any view
Parameter
event-table-entry: Entry index of event table.
Description
Using display rmon event command, you can view RMON events.
The display includes event index in event table, owner of the event, description to the
event, action caused by event (log or alarm information), and occurrence time of the
latest event (counted on system initiate/boot time in centiseconds).
For the related commands, see rmon event.
Example
# Show the RMON event.
<Quidway> display rmon event
Event table 1 owned by abc is VALID.
Description: null.
Will cause log-trap when triggered, last triggered at 0days 00h:02m:27s.
Description
Event table 1
owned by abc
VALID
Description
Event description.
View
Any view
Parameter
event-number: Entry index of event table.
Description
Using display rmon eventlog command, you can view RMON event log.
The display includes description about event index in event table, description to the
event, and occurrence time of the latest event (counted on system initiate/boot time in
centisecond).
Example
# Show event log of RMON.
<Quidway> display rmon eventlog 1
Event table 1 owned by abc is VALID.
Generates eventLog 1.1 at 0days 00h:01m:39s.
Description: The 1.3.6.1.2.1.16.1.1.1.4.1 defined in alarm table 1,
less than(or =) 100 with alarm value 0. Alarm sample type is absolute.
Generates eventLog 1.2 at 0days 00h:02m:27s.
Description: The alarm formula defined in private alarm table 1,
less than(or =) 100 with alarm value 0. Alarm sample type is absolute.
Description
Event table 1
owned by abc
VALID
Description
Event description
View
Any view
Parameter
port-num: Ethernet port name.
Description
Using display rmon history command, you can view latest RMON history sampling
information (including utility, error number and total packet number).
For the related commands, see rmon history.
Example
# Show the RMON history information.
<Quidway> display rmon history ethernet 2/0/1
History control entry 1 owned by abc is VALID
Samples interface
: Ethernet2/0/1<ifEntry.642>
Sampling interval
:0
, octets
:0
packets
:0
, broadcast packets
:0
multicast packets :0
undersize packets :0
, oversize packets
:0
fragments
:0
, jabbers
:0
collisions
:0
, utilization
:0
Description
owned by abc
VALID
Samples interface
Sampling interval
Sampling interval
buckets
Dropevents
octets
packets
broadcast packets
multicast packets
undersized packets
oversized packets
fragments
jabbers
collisions
utilization
Utilization
View
Any view
Parameter
prialarm-table-entry:entry of extended alarm table.
Description
Using display rmon prialarm command, you can view information about extended
alarm table.
For the related commands, see rmon prialarm.
Example
# display alarm information about extended RMON.
<Quidway> display rmon prialarm
Prialarm table 1 owned by abc is VALID.
Samples type
: delta
Variable formula
: .1.3.6.1.2.1.2.2.1.10.641
Description
: ifInOctets.Ethernet1/0/1
Sampling interval
: 10(sec)
Rising threshold
Falling threshold
: risingOrFallingAlarm
: 0
Description
Prialarm table 1
owned by abc
VALID
Samples type
Variable formula
Description
Rising threshold
Falling threshold
This entry
forever
will
exist
Field
Description
Latest value
View
Any view
Parameter
port-num: Ethernet port number.
Description
Using display rmon statistics command, you can view RMON statistics.
The displayed information includes collision, CRC (Cyclic Redundancy Check) and
queue, undersized or oversized packet, timeout, fragment, broadcast, multicast,
unicast, and bandwidth utility.
For the related commands, see rmon statistics.
Example
# Show RMON statistics.
<Quidway> display rmon statistics Ethernet 3/0/1
Statistics entry 3 owned by abc is VALID.
Interface : Ethernet3/0/1<ifIndex.201326722>
etherStatsOctets
: 3776
, etherStatsPkts
etherStatsBroadcastPkts
: 0
, etherStatsMulticastPkts : 30
etherStatsUndersizePkts
: 0
, etherStatsOversizePkts
: 0
etherStatsFragments
: 0
, etherStatsJabbers
: 0
, etherStatsCollisions
: 0
etherStatsCRCAlignErrors : 0
: 30
: 5
65-127
: 10
256-511: 0
512-1023: 0
128-255
1024-max : 0
: 15
Description
Statistics entry 3
owned by abc
VALID
Interface
etherStatsOctets
Received/Sent octets
etherStatsPkts
Received/Sent packets
etherStatsBroadcastPkts
etherStatsMulticastPkts
etherStatsUndersizePkts
etherStatsOversizePkts
etherStatsFragments
etherStatsJabbers
etherStatsCRCAlignErrors
etherStatsCollisions
etherStatsDropEvents
(insufficient resources)
event-entry1
falling-threshold
threshold-value2
event-entry2
[ owner text ]
undo rmon alarm entry-number
View
System view
Parameter
entry-number: Number of the entry to be added/deleted, ranging from 1 to 65535.
alarm-variable: Specifies the alarm variable with a character string, ranging from 1 to
256, in the OID dotted format, like 1.3.6.1.2.1.2.1.10.1 (or ifInOctets.1).
Huawei Technologies Proprietary
6-8
Description
Using rmon alarm command, you can add an entry to the alarm table. Using undo
rmon alarm command, you can cancel an entry from this table.
In this way, the alarm event can be triggered in the abnormal situations and then
decides to log and send trap to the NM station.
Example
# Delete the information of entry 15 from the alarm table.
[Quidway] undo rmon alarm 15
View
System view
Parameter
event-entry: Number of the entry to be added/deleted, ranging from 1 to 65535.
description: Event description. Length of the character string ranges from 1 to 127.
log: Log event.
trap: Trap event.
trap-community: The name of the community that trap message is sent to.
Huawei Technologies Proprietary
6-9
Description
Using rmon event command, you can add an entry to the event table. Using undo
rmon event command, you can cancel an entry from this table.
Event management of RMON defines the way to deal with event number and event-log,
send trap message or log while sending trap message. In this way, alarm events may
obtain corresponding treatment
Example
# Add the entry 10 to the event table and marks it as log event.
[Quidway] rmon event 10 log
View
Ethernet port view
Parameter
entry-number: Number of the entry to be added/deleted, ranging from 1 to 65535.
buckets number: Capacity of the history table corresponding to the control line.
interval: Sampling interval, ranging from 5 to 3600 (measured in seconds).
text: Creator of the line. Length of the character string ranges from 1 to127.
Description
Using rmon history command, you can add an entry to the history control table. Using
undo rmon history command, you can cancel an entry from history control table.
Perform this command to sample, set sample parameter (sample time interval) and
storage amounts for a port. RMON will periodically perform data collection and save for
query on this port. Sample information includes utility, error number and total packet
number.
Example
# Delete the entry 15 from the history control table.
[Quidway-Ethernet2/0/1] undo rmon history 15
View
System view
Parameter
entry-number: Specifies the entry number, ranging from 1 to 65535.
variable-formula: Specifies the alarm variable, which can be an arithmetic expression of
several integer MIB node instances. The node can be OID in dotted notation.
description: Specifies the alarm description with a length ranging from 1 to 256.
interval: Sets the sampling interval, ranging from 10 to 65535 and measured in
seconds.
delta | absolute | changeratio: Specifies the sampling type as delta ratio, absolute
ratio or change ratio.
threshold-value1: Rising threshold value, specified with a number ranging from 0 to
4294967295.
event-entry1: Corresponding event number to the upper limit threshold value, ranging
from 0 to 65535.
threshold-value2: Falling threshold value, specified with a number ranging from 0 to
4294967295.
event-entry2: Event number corresponding to the falling threshold, ranging from 0 to
65535.
forever | cycle: Specifies the type of the alarm instance line.
cycle-period specifies the functional cycle of the instance.
text: Specifies the creator of the line. Length of the character string ranges from 1 to
127.
Description
Using rmon prialarm command, you can add an entry to the extended RMON alarm
table. Using undo rmon prialarm command, you can cancel an entry from the
extended RMON alarm table.
The number of instances can be created in the table depends on the hardware
resource of the product.
Example
# Delete line 10 from the extended RMON alarm table.
[Quidway] undo rmon prialarm 10
View
Ethernet port view
Parameter
entry-number: Number of the entry to be added/deleted, ranging from 1 to 65535.
owner text: Creator of the entry. Length of the character string ranges from 1 to127.
Description
Using rmon statistics command, you can add an entry to the statistic table. Using
undo rmon statistics command, you can cancel an entry from statistic table.
RMON statistic management concerns the statistics and monitoring of the usage and
error on a port. Statistics includes collision, undersized or oversized packet, timeout,
fragment, broadcast, multicast, unicast, and bandwidth utility.
Example
# Add statistics of Ethernet2/0/1 to the entry 20.
[Quidway-Ethernet2/0/1] rmon statistic 20
View
User view
Parameter
access: NTP access control debugging.
adjustment: NTP clock adjustment debugging.
all: All NTP debugging functions.
authentication: NTP authentication debugging.
event: NTP event debugging.
filter: NTP filter information debugging.
packet: NTP packet debugging.
parameter: NTP clock parameter debugging.
refclock: NTP reference clock debugging.
selection: NTP clock selection information debugging.
synchronization: NTP clock synchronization information debugging.
validity: NTP remote host validity debugging.
Description
Using debugging ntp-service command, you can debug different NTP services. Using
undo debugging ntp-service command, you can disable corresponding debugging
function.
By default, no debugging function is enabled.
Example
# Enable NTP access control debugging.
<Quidway> debugging ntp-service access
View
Any view
Parameter
verbose: Indicate to display the detail information about the sessions.
Description
Using display ntp-service sessions command, you can display the status of all the
sessions maintained by NTP service provided by the local equipment.
When you configure this command without the verbose parameter, the Ethernet switch
will display the brief information about all the sessions it maintains.
With the verbose parameter configured, Ethernet switch will display the detail
information about all the sessions it maintains.
Note:
All the NTP operating modes create sessions except the NTP Server Mode after the
relevant configuration.
Example
<Quidway> display ntp-service sessions
source
refid
st
now
poll reach
delay offset
disp
********************************************************************
[12345]212.125.95.4
131.188.3.221
18
64 377
339.8
10.8
0.9
View
Any view
Parameter
None
Description
Using command display ntp-service status, you can display the NTP service status.
Example
<Quidway> display ntp-service status
clock status: unsynchronized
clock stratum: 16
reference clock ID: none
nominal frequency: 100.0000 Hz
actual frequency: 100.0000 Hz
clock precision: 2^17
clock offset: 0.0000 ms
root delay: 0.00 ms
root dispersion: 0.00 ms
peer dispersion: 0.00 ms
reference time: 00:00:00.000 UTC Jan 1 1900(00000000.00000000)
Meaning
clock
status:
unsynchronized
clock stratum: 16
reference clock ID
nominal frequency
actual frequency
clock precision
clock offset
root delay
root dispersion
peer dispersion
Output
reference time
Meaning
Reference timestamp
View
Any view
Parameter
None
Description
Using display ntp-service trace command, you can display the brief information about
every NTP server on the way from the local equipment to the reference clock source.
Example
<Quidway> display ntp-service trace
server 127.0.0.1,stratum 8, offset 0.000000, synch distance 0.00000
refid 127.127.1.0
View
System view
Parameter
query: Allow to control query authority.
synchronization: Only allow the server to access.
server: Allow query to server and access.
peer: Full access authority.
acl-number: The IP address list number, ranging from 2000 to 2999.
Description
Using ntp-service access command, you can set the authority to access the local
equipment. Using undo ntp-service access command, you can cancel the access
authority settings.
By default, there is no limit to the access.
Set authority to access the NTP services on a local Ethernet Switch. This is a basic and
brief security measure, compared to authentication. An access request will be matched
with peer, server, server only, and query only in an ascending order of the limitation.
The first matched authority will be given.
Example
# Give the authority of time request, query control and synchronization with the local
equipment to the peer in ACL 2076.
[Quidway] ntp-service access peer 2076
# Give the authority of time request and query control of the local equipment to the peer
in ACL 2028.
[Quidway] ntp-service access synchronization 2028
View
System view
Parameter
None
Description
Using ntp-service authentication enable command, you can enable the NTP-service
authentication function. Using undo ntp-service authentication enable command,
you can disable this function.
By default, the authentication is disabled.
Example
# Enable NTP authentication function.
[Quidway] ntp-service authentication enable
View
System view
Parameter
number: Specify the key number and range from 1 to 4294967295.
value: Specify the value of the key with 1 to 32 ASCII characters.
Description
Using ntp-service authentication-keyid command, you can set NTP authentication
key. Using undo ntp-service authentication-keyid command, you can cancel the
NTP authentication key.
By default, there is no authentication key.
Only MD5 authentication is supported for the NTP authentication key settings.
Example
# Set MD5 authentication key 10 as BetterKey.
[Quidway] ntp-service authentication-keyid 10 authentication-mode md5 BetterKey
View
VLAN interface view
Parameter
None
Description
Using ntp-service broadcast-client command, you can configure NTP broadcast
client mode. Using undo ntp-service broadcast-client command, you can disable the
NTP broadcast client mode.
Example
# Configure to receive NTP broadcast packets via Vlan-Interface1.
[Quidway] interface vlan-interface1
[Quidway-Vlan-Interface1] ntp-service broadcast-client
View
VLAN interface view
Parameter
authentication-keyid: Specify the authentication key.
keyid: Key ID used in broadcast, ranging from 0 to 4294967295.
version: Define NTP version number.
number: NTP version number, ranging from 1 to 3.
Description
Using ntp-service broadcast-server command, you can configure NTP broadcast
server mode. Using undo ntp-service broadcast-server command, you can disable
the NTP broadcast server mode.
By default, the broadcast service is disabled and number defaults to 3.
Designate an interface on the local equipment to broadcast NTP packets. The local
equipment runs in broadcast-server mode and regularly broadcasts packets to its
clients.
Example
# Configure to broadcast NTP packets via Vlan-Interface1 and encrypt them with Key 4
and set the NTP version number as 3.
[Quidway] interface vlan-interface1
[Quidway-Vlan-Interface1] ntp-service broadcast-server authentication-key 4 version 3
View
System view
Parameter
None
Description
Using ntp-service disable command, you can disable the NTP service function
globally. Using undo ntp-service disable command, you can enable this function
globally.
By default, the NTP service is enabled.
Example
# Disable NTP service function.
[Quidway] ntp-service disable
View
VLAN interface view
Parameter
None
Description
Using ntp-service in-interface disable command, you can disable an interface to
receive NTP message. Using undo ntp-service in-interface disable command, you
can enable an interface to receive NTP message.
By default, an interface is enabled to receive NTP message.
Example
# Disable Vlan-Interface1 to receive NTP message.
[Quidway] interface vlan-interface1
[Quidway-Vlan-Interface1] ntp-service in-interface disable
View
System view
Parameter
number: The maximum dynamic sessions can be created locally, ranging from 0 to 100.
Description
Using ntp-service max-dynamic-sessions command, you can set how many
dynamic
sessions
can
be
created
locally.
Using
undo
ntp-service
Note:
Only the sessions created by NTP peer mode, NTP broadcast client mode and NTP
multicast client mode are dynamic sessions. Other sessions are static sessions.
Example
# Set the local equipment to allow up to 50 sessions.
[Quidway] ntp-service max-dynamic-sessions 50
Huawei Technologies Proprietary
7-9
View
VLAN interface view
Parameter
ip-address: Specify an multicast IP address of Class D.
Description
Using ntp-service multicast-client command, you can configure the NTP multicast
client mode. Using undo ntp-service multicast-client command, you can disable the
NTP multicast client mode.
By default, the multicast client service is disabled. ip-address defaults to 224.0.1.1.
Designate an interface on the local Ethernet Switch to receive NTP multicast messages
and operate in multicast client mode. The local Ethernet Switch listens to the multicast
from the server. When it receives the first multicast packet, it starts a brief client/server
mode to switch messages with a remote server for estimating the network delay.
Thereafter, the local Ethernet Switch enters multicast client mode and continues
listening to the multicast and synchronizes the local clock according to the arrived
multicast message.
Example
# Configure to receive NTP multicast packet via Vlan-Interface1 and the multicast
group corresponding to these packets located at 224.0.1.1.
[Quidway] interface vlan-interface 1
[Quidway-Vlan-Interface1] ntp-service multicast-client 224.0.1.1
View
VLAN interface view
Parameter
ip-address: Specify a multicast IP address of Class D and default to 224.0.1.1.
authentication-keyid: Specify authentication key.
keyid: Key ID used in multicast, ranging from 0 to 4294967295.
ttl: Define the time to live of a multicast packet.
ttl-number: Specify the ttl of a multicast packet and range from 1 to 255.
version: Define NTP version number.
number: Specify NTP version number and range from 1 to 3.
Description
Using ntp-service multicast-server command, you can configure NTP multicast
server mode, if no IP address is specified, switch automatically choice the 224.0.1.1 as
the multicast IP address. Using undo ntp-service multicast-server command, you
can disable NTP multicast server mode, if no IP address is specified, the switch will
disable the configuration of the multicast IP address 224.0.1.1.
By default, the multicast service is disabled. IP address defaults to 224.0.1.1 and the
version number defaults to 3.
Designate an interface on the local equipment to transmit NTP multicast packet. The
local equipment operates in multicast-server mode and multicasts packets regularly to
its clients.
Example
# Configure to transmit NTP multicast packets encrypted with Key 4 via Vlan-Interface1
at 224.0.1.1 and use NTP version 3.
[Quidway] interface vlan-interface 1
[Quidway-Vlan-Interface1] ntp-service multicast-server 224.0.1.1 authentication-keyid
4 version 3
View
System view
Parameter
ip-address: Specify the reference clock IP address as 127.127.t.u. Here, t ranges from
0 to 37 and u ranges from 0 to 3.
stratum: Specify which stratum the local clock is located at and range from 1 to 15.
Description
Using ntp-service refclock-master command, you can configure an external
reference clock or the local clock as an NTP master clock. Using undo ntp-service
refclock-master command, you can cancel the NTP master clock settings.
By default, ip-address is not specified and stratum defaults to 1.
You can use this command to designate an NTP external reference clock or the local
clock as an NTP master clock to provide synchronized time for other equipment.
ip-address specifies the IP address of an external clock as 127.127.t.u. If no IP address
is specified, the local clock is set as the NTP master clock by default. You can also
specify the stratum of the NTP master clock.
Example
# Set the local clock as the NTP master clock to provide synchronized time for its peers
and locate it at stratum 3.
[Quidway] ntp-service refclock-master 3
View
System view
Parameter
number: Specify the key number, ranging from 1 to 4294967295.
Description
Using ntp-service reliable authentication-keyid command, you can configure the
key as reliable. Using undo ntp-service reliable authentication-keyid command,
you can cancel the current setting.
By default, no key is configured as reliable.
When you enable the authentication, you can use this command to configure one or
more than one keys as reliable. In this case, a client will only get synchronized by a
server whichever can provide a reliable key.
Example
# Enable NTP authentication, adopt MD5 encryption, and designate Key 37 BetterKey
and configure it as reliable.
[Quidway] ntp-service authentication enable
[Quidway] ntp-service authentication-keyid 37 authentication-mode md5 BetterKey
[Quidway] ntp-service reliable authentication-keyid 37
View
System view
Parameter
interface-name: Specify an interface. The source IP address of the packets will be
taken from the address of the interface.
interface-type: Specify the interface type and determine an interface with the
interface-number parameter.
interface-number: Specify the interface number and determine an interface with the
interface-type parameter.
Description
Using ntp-service source-interface command, you can designate an interface to
transmit NTP message. Using undo ntp-service source-interface command, you can
cancel the current setting.
The source address specifies where the packets are transmitted from.
You can use this command to designate an interface to transmit all the NTP packets
and take the source address of these packets from its IP address. If you do not want
any other interface to receive the acknowledgement packets, use this command to
specify one interface to send all the NTP packets.
Example
# Configure all the outgoing NTP packets to use the IP address of Vlan-Interface1 as
their source IP address.
[Quidway] ntp-service source-interface Vlan-Interface 1
View
System view
Parameter
ip-address: Specify the IP address of a remote server.
version: Define NTP version number.
number: NTP version number, ranging from 1 to 3.
authentication-keyid: Define authentication key.
keyid: Key ID used for transmitting messages to a remote server, ranging from 0 to
4294967295.
source-interface: Specify the name of an interface.
interface-name: Specify the interface name. When a local device sends an NTP
message to a peer, the source IP address of the message is taken from the address of
the interface.
interface-type: Specify the interface type and determine an interface together with the
interface-number parameter.
interface-number: Specify the interface number and determine an interface together
with the interface-type parameter.
priority: Designate a server as the first choice.
Description
Using ntp-service unicast-peer command, you can configure NTP peer mode. Using
undo ntp-service unicast-peer command, you can cancel NTP peer mode.
By default, version number number defaults to 3, the authentication is disabled, and the
local server is not the first choice.
This command sets the remote server at ip-address as a peer of the local equipment,
which operates in symmetric active mode. ip-address specifies a host address other
than an IP address of broadcast, multicast, or reference clock. By operating in this
mode, a local device can synchronize and be synchronized by a remote server.
Example
# Configure the local equipment to synchronize or synchronized by a peer at
128.108.22.44. Set the NTP version to 3. The IP address of the NTP packets are taken
from that of Vlan-Interface1.
[Quidway] ntp-service unicast-peer 131.108.22.33 version 3 source-interface
Vlan-Interface 1
View
System view
Parameter
ip-address: Specify the IP address of a remote server.
version: Define NTP version number.
number: NTP version number, ranging from 1 to 3.
authentication-keyid: Define authentication key.
keyid: Key ID used for transmitting messages to a remote server, ranging from 0 to
4294967295.
source-interface: Specify the name of an interface.
interface-name: Specify the interface name. When a local device sends an NTP
message to a peer, the source IP address of the message is taken from the address of
the interface.
interface-type: Specify the interface type and determine an interface together with the
interface-number parameter.
interface-number: Specify the interface number and determine an interface together
with the interface-type parameter.
priority: Designate a server as the first choice.
Description
Using ntp-service unicast-server command, you can configure NTP server mode.
Using undo ntp-service unicast-server command, you can disable NTP server
mode.
By default, version number number defaults to 3, the authentication is disabled, and the
local server is not the first choice.
The command announces to use the remote server at ip-address as the local time
server. ip-address specifies a host address other than an IP address of broadcast,
multicast, or reference clock. By operating in client mode, a local device can be
synchronized by a remote server, but not synchronize any remote server.
Example
# Designate the server at 128.108.22.44 to synchronize the local device and use NTP
version 3.
[Quidway] ntp-service unicast-server 128.108.22.44 version 3
View
User view
Parameter
all: All SSH channels
index: Debugged SSH channels. Optional values depend on the VTY number and they
are 0~4.
Description
Using the debugging ssh server command, you can send the negotiation process
defined in SSH1.5 protocol to the information center as debugging information and
debug a single user interface. Using the undo debugging ssh server command, you
can disable debugging function.
By default, debugging function is disabled.
For the related commands, see ssh server authentication-retries, ssh server
rekey-interval, ssh server timeout.
Example
# Print debugging information in running SSH
<Quidway> debugging ssh server vty 0
00:23:20: SSH0: starting SSH control process
00:23:20: SSH0: sent protocol version id SSH-1.5-Quidway-1.25
00:23:20: SSH0: protocol version id is - SSH-1.5-1.2.26
00:23:20: SSH0: SSH_SMSG_PUBLIC_KEY msg
00:23:21: SSH0: SSH_CMSG_SESSION_KEY msg - length 112, type 0x03
00:23:21: SSH: RSA decrypt started
00:23:21: SSH: RSA decrypt finished
00:23:21: SSH: RSA decrypt started
View
Any view
Parameter
None
Description
Using the display rsa local-key-pair public command, you can display local key pair
and public key of the server. If no key is generated, corresponding information will be
prompted, for example, RSA keys not found.
For the related command, see rsa local-key-pair create.
Example
# Display local key pair and public key of the server
<Quidway> display rsa local-key-pair public
% Key pair was generated at: 12:26:33 UTC 2002/4/4
Key name: rtvrp_Host
Usage: Encryption Key
Key Data:
30470240 AF7DB1D0 DA78944F 53B7B59B 40D425D0 DC9C57D2 A60916C2 1F165807
08B84DDB 5F4DB8E7 A115B74E 2D41D96C AC61D276 AA027E41 DD48DE64 696E0934
EB872805 02030100 01
% Key pair was generated at: 12:26:45 UTC 2002/4/4
Key name: rtvrp_Server
Usage: Encryption Key
Key Data:
30670260 C05280D9 BA0D56C8 7BE43379 8634CDE7 83ABA9A2 3F36280E 25995487
4FF6AD7A 0E57871C 761E6D92 9914D8C5 CC577388 5B580B94 C2172C8F 36039EED
160A0478 651DED3A 9CCF1AAD D800AAF2 DF7FBEC4 A13ADA59 9E738319 AF366B8B
519D39F5 02030100 01
View
Any view
Parameter
brief: Displays brief information of the remote public key.
keyname: Specifies key name, a string including 0~32 characters.
Description
Using the display rsa peer-public-key command, you can display a designated RSA
public key. All public keys will be displayed if no key is specified.
For the related command, see rsa local-key-pair create.
Example
# Display a designated RSA public key
<Quidway> display rsa peer-public-key
Address
Bits
Name
1023
abcd
1024
hq
1024
wn1
1024
hq_all
View
Any view
Parameter
session: Displays SSH sessions.
status: Displays SSH state information.
Huawei Technologies Proprietary
8-3
Description
Using the display ssh server command, you can display SSH state or session
information.
For the related commands, see ssh server authentication-retries, ssh server
rekey-interval, ssh server timeout.
Example
# Display SSH state and configuration parameters.
<Quidway> display ssh server status
SSH version : 1.5
SSH connection timeout : 60 seconds
SSH server key generating interval : 1 hours
SSH Authentication retries : 3 times
Version Encryption
State
Username
VTY0
1.5
DES
VTY3
1.5
DES
View
Any view
Parameter
username: Valid SSH user named defined by AAA
Description
Using the display ssh user-information command, you can display information of the
user, including username, corresponding key, authentication type. If a username is
specified, the system just gives its information.
For the related commands, see ssh user username assign rsa-key, ssh user
username authentication-type.
Example
# Display SSH user information.
<Quidway> display ssh user-information
Username
authentication-type
Jin
rsa
user-public-key-name
jin
hanqi1
password
816pub
View
Public key view
Parameter
None
Description
Using the peer-public-key end command, you can finish editing peer public key and
quit from public key view to system view.
For the related commands, see rsa peer-public-key, public-key-code end.
Example
# Quit public key view.
[Quidway] rsa peer-public-key quidway003
[Quidway-rsa-public-key] peer-public-key end
[Quidway]
View
VTY user interface view
Parameter
all: Supports both Telnet and SSH protocols.
ssh: Supports only SSH protocol.
telnet: Supports only Telnet protocol.
Description
Using the protocol inbound command, you can configure the protocols supported by
a designated user interface.
By default, the system supports both Telnet and SSH protocols.
If SSH protocol is enabled and specified for the user interface, but no local RSA key is
configured, SSH cannot take effect yet till you log onto the system next time.
If SSH protocol is specified, to ensure a successful logon, you must configure the AAA
authentication using the authentication-mode scheme command. The protocol
inbound ssh configuration fails if you configure authentication-mode password and
authentication-mode none.
For the related commands, see user-interface vty.
Example
# Disable Telnet on vty0 through vty4, only SSH available.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] user-interface vty 0 4
[Quidway-ui-vty0-4] protocol inbound ssh
View
Public key edit view
Parameter
None
Description
Using the public-key-code begin command, you can enter public key edit view.
Before using this command, you have to create a public key with the rsa
peer-public-key command. In the public key edit view, you can key in desired public
key, which consists of hexadecimal characters, with blank space allowed between them,
and is generated randomly by the client program supporting SSH.
For the related commands, see rsa peer-public-key, public-key-code end.
Example
# Enter public key view and key in public key.
<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] 308186028180739A291ABDA704F5D93DC8FDF84C427463
[Quidway-rsa-key-code] 1991C164B0DF178C55FA833591C7D47D5381D09CE82913
[Quidway-rsa-key-code] D7EDF9C08511D83CA4ED2B30B809808EB0D1F52D045DE4
[Quidway-rsa-key-code] 0861B74A0E135523CCD74CAC61F8E58C452B2F3F2DA0DC
[Quidway-rsa-key-code] C48E3306367FE187BDD944018B3B69F3CBB0A573202C16
[Quidway-rsa-key-code] BB2FC1ACF3EC8F828D55A36F1CDDC4BB45504F020125
[Quidway-rsa-key-code] public-key-code end
View
Public key edit view
Parameter
None
Description
Using the public-key-code end command, you can save the configured public key and
return to the public key view from the public key edit view.
This command terminates the edit process of public key and checks its validity before
saving. If the public key contains invalid characters or violates coding rules,
corresponding information will be prompted and the current configuration fails. If you
have configured valid public key, the system will store it into the public key table.
For the related commands, see rsa peer-public-key, public-key-code begin.
Example
# Exit the public key edit view and save the configuration.
<Quidway> system-view
View
System view
Parameter
None
Description
Using the rsa local-key-pair create command, you can create local RSA host key pair
and server key pair.
If you have configured RSA key, the system gives an alarm after using this command
and prompts that the existing one will be replaced. The key naming format is switch
name plus server and switch name plus host, for example, Quidway_host and
Quidway_server. The configuration result of this command will not be stored in the
configuration file.
The system prompts you to key in bit range, for which, the server key pair must be at
least 128 bits longer than the host key pair. The maximum bit range of both key pairs is
2048 bits and the minimum is 512. If there have been key pairs, the system will prompts
you to decide whether to modify them.
For a successful SSH logon, you must configure and generate the local RSA key pairs.
To generate local key pairs, you just need to execute the command once, with no
further action required even after the system is rebooted.
For the related command, see rsa local-key-pair destroy.
Example
# Create local host key pair and server key pair.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rsa local-key-pair create
The key name will be: Quidway_Host
% You already have RSA keys defined for Quidway_Host
View
System view
Parameter
None
Description
Using the rsa local-key-pair destroy command, you can remove all RSA key pairs at
the server, including Host key pair and Server key pair.
Acknowledgement information will be promoted before the system clears all RSA key
pairs. This command is just a one-time instruction, so the result will not be stored in the
configuration file.
For the related commands, see rsa local-key-pair create.
Example
# Remove all key pairs at the server.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rsa local-key-pair destroy
% The name for the keys which will be destroyed is Quidway_Host .
% Confirm to destroy these keys? [yes/no]:y
[Quidway]
View
System view
Parameter
key-name: Public key name
Description
Using the rsa peer-public-key command, you can enter the public key view.
When using this command together with the public-key-code begin command, you
can configure the public key at the client, which is generated randomly by the client
program supporting SSH1.5.
For the related commands, see public-key-code begin, public-key-code end.
Example
# Enter the public key view.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rsa peer-public-key quidway002
[Quidway-rsa-public]
View
System view
Parameter
times: Specifies authentication retry times, in the range of 1~5.
Description
Using the ssh server authentication-retries command, you can define SSH
authentication retry times value, which takes effect at next logon. Using the undo ssh
server authentication-retries command, you can restore the default retry value.
Huawei Technologies Proprietary
8-10
By default, it is 3.
For the related command, see display ssh server.
Example
# Define the authentication retry times value as 4.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ssh server authentication-retries 4
View
System view
Parameter
hours: Defines key update interval, in the range of 1~24 hours.
Description
Using the ssh server rekey-interval command, you can define update interval of
server key pair. Using the undo ssh server rekey-interval command, you can cancel
the current setting.
By default, system doesnt update the server key.
For the related commands, see display ssh server.
Example
# Define update interval of server key pair as 3 hours.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ssh server rekey-interval 3
View
System view
Parameter
seconds: Defines registration timeout value, in the range of 1~120 seconds.
Description
Using the ssh server timeout command, you can define timeout value for SSH
registration authentication, which takes effect at next logon. Using the undo ssh
server timeout command, you can restore the default value.
By default, the timeout value is 60 seconds.
For the related commands, see display ssh server.
Example
# Define the registration timeout value as 80 seconds.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ssh server timeout 80
View
System view
Parameter
keyname: Configures client public key, consisting of 1~32 characters.
username: Valid local user name or user name defined by remote RADIUS system.
Description
Using the ssh user username assign rsa-key command, you can associate an
existing public key with a designated user. Using the undo ssh user username
assign rsa-key command, you can delete the association.
For a user who has been associated with a public key, the command associates
him/her with the new public key.
The newly configured users take effect at the next logon.
For the related command, see display ssh user-information.
Huawei Technologies Proprietary
8-12
Example
# Associate the key 1 with the zhangsan.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ssh user zhangsan assign rsa-key key1
View
System view
Parameter
username: Valid local user name or user name defined by remote RADIUS system.
all: Specifies authentication type as password and RSA.
password: Specifies authentication type as password.
rsa: Specifies authentication type as RSA.
Description
Using the ssh user username authentication-type command, you can define
authentication type for a designated user. Using the undo ssh user username
authentication-type command, you can restore the default mode in which logon fails.
By default, user cant logon the switch through SSH or TELNET, so you have to specify
authentication type for a new user. The new configuration takes effects at the next
logon.
For the related commands, see display ssh user-information.
Example
# Specify zhangsans authentication type as password.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ssh user zhangsan authentication-type password
HUAWEI
PoE
Table of Contents
Table of Contents
Chapter 1 PoE Configuration Commands .................................................................................. 1-1
1.1 PoE Configuration Commands .......................................................................................... 1-1
1.1.1 display poe interface ............................................................................................... 1-1
1.1.2 display poe interface power .................................................................................... 1-3
1.1.3 display poe powersupply......................................................................................... 1-5
1.1.4 display poe pse ....................................................................................................... 1-6
1.1.5 poe enable............................................................................................................... 1-7
1.1.6 poe enable slot ........................................................................................................ 1-7
1.1.7 poe legacy enable slot ............................................................................................ 1-8
1.1.8 poe max-power........................................................................................................ 1-9
1.1.9 poe max-power slot............................................................................................... 1-10
1.1.10 poe mode ............................................................................................................ 1-11
1.1.11 poe power max-value.......................................................................................... 1-12
1.1.12 poe power-management ..................................................................................... 1-12
1.1.13 poe priority........................................................................................................... 1-13
Chapter 2 PoE PSU Supervision Configuration Commands .................................................... 2-1
2.1 PoE PSU Supervision Display Commands ....................................................................... 2-1
2.1.1 display poe-power ac-input state ............................................................................ 2-1
2.1.2 display poe-power alarm ......................................................................................... 2-2
2.1.3 display poe-power dc-output state .......................................................................... 2-3
2.1.4 display poe-power dc-output value ......................................................................... 2-4
2.1.5 display poe-power switch state ............................................................................... 2-4
2.1.6 display supervision-module information.................................................................. 2-5
2.2 PoE PSU Supervision Configuration Commands.............................................................. 2-6
2.2.1 poe-power input-thresh lower.................................................................................. 2-6
2.2.2 poe-power input-thresh upper ................................................................................. 2-7
2.2.3 poe-power output-thresh lower ............................................................................... 2-8
2.2.4 poe-power output-thresh upper............................................................................... 2-8
View
Any view
Parameter
interface-name | interface-type interface-num: Port on the switch; refer to Command
Manual Port for details.
all: Display the PoE status about all ports on the switch.
Description
Using the display poe interface command, you can view the PoE status of a specific
or all ports on the switch.
Example
# Display the PoE status of the Ethernet port Ethernet3/0/1.
<Quidway> display poe interface ethernet3/0/1
Port power status
:searching
:signal
Port PD class
:0
:low
:0 mW
:0 mW
:0 mW
:0 mW
Port current
:0 mA
Port voltage
:0.0 V
Description
PoE status of the port:
1)
2)
3)
4)
5)
6)
1)
2)
Port PD class
signal
spare
Port priority:
Port power priority
1)
2)
3)
critical
high
low
Port current
Port voltage
View
Any view
Parameter
interface-name | interface-type interface-num: Port on the switch; refer to Command
Manual Port for details.
all: Display the power of all ports on the switch.
Description
Using the display poe interface power command, you can view the power information
of a specific or all ports on the switch.
Example
# Display the power information of port Ethernet3/0/1.
<Quidway> display poe interface power ethernet3/0/1
Port power
:700 mW
View
Any view
Parameter
None
Description
Using the display poe powersupply command, you can view the parameters of PoE
external power unit.
Example
# Display the parameters of the external power unit.
<Quidway> display poe powersupply
Power model
:Spring Pms
Power manufacturer
:2400 W
:0 W
:0 W
:0 mA
:54.0 V
:512
:000
View
Any view
Parameter
None
Description
Using the display poe pse command, you can view the parameters of all boards that
serves as a power sourcing equipment (PSE).
Example
# Display the parameters of all boards that serves as a power sourcing equipment
(PSE).
<Quidway> display poe pse
Power Current Value
:450 W
:806 W
:700 W
:475 W
Software Version
:290
Hardware Version
:000
CPLD Version
:000
View
Ethernet port view
Parameter
None
Description
Using the poe enable command, you can enable the PoE feature on a port.
Using the undo poe enable command, you can disable the PoE feature on a port.
By default, the PoE is enabled on each port when it is enabled on the board.
Example
# Disable PoE on the current port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
slot-num: Slot number.
Description
Using the poe enable slot command, you can enable the PoE feature on a board.
Using the undo poe enable slot command, you can restore the default PoE status on
the board.
By default, the PoE on each board is disabled.
Note:
z
Before enabling PoE power supply mode, you need first to ensure that the
remaining power output is not less than the full value required for the board.
Otherwise, do not enable PoE power supply mode.
After PoE power supply mode is enalbed on a board, the rated power output shall
be reserved for the slot enen when the board is removed from the slot. You need
to release this power output using the undo poe enable slot command.
If you insert a board where PoE is not supported into the slot for which a rated
power output is reserved, the power output reserved shall be released.
If you insert a PoE-supported board of another type in the slot for which a rated
power output is reserved, the switch still delivers a power output of the original
value.
Example
# Enable PoE on a board.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
slot-num: Slot number.
Description
Using the poe legacy enable slot command, you can enable PoE-compatibility
detection on the board to check if the connected PDs are IEEE802.3af-compatible.
Using the undo poe legacy slot command, you can disable the PoE-compatibility
detection on the board.
By default, PoE-compatibility detection is not enabled on the board.
The switch can detect the PDs incompatible with IEEE802.3af and deliver current to
them over the Ethernet ports.
Caution:
PoE-compatibility detection process is very slow and has impact on the system
performance, so you are recommended not to enable the PoE-compatibility detection
on a board if all PDs connected are IEEE802.3af-compatible.
Example
# Enable PoE-compatibility detection on the PoE board in slot 2.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
Ethernet port view
Parameter
max-power: Maximum power distributed to the port, ranging from 1000 to 15400 mW.
Description
Using the poe max-power command, you can set the maximum power on current port.
Using the undo poe max-power command, you can restore the default maximum
power on current port.
By default, the maximum power on a port is 15400 mW.
Example
# Set the maximum power on current port.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
max-power: Maximum power distributed to the board, ranging from 37 to 806 W.
slot-num: Slot number.
Description
Using the poe max-power command, you can set the maximum power on a board.
Using the undo poe max-power command, you can restore the default maximum
power on the board.
By default, the maximum power on a board is 37 W.
Example
# Set the maximum power on a board.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
Ethernet port view
Parameter
signal: The port will supply power through signal lines.
spare: The port will supply power through spare lines
Description
Using the poe mode command, you can configure the power feeding mode on current
port.
Using the undo poe mode command, you can restore the default mode on current
port.
By default, the port adopts signal lines to supply power
Note that S6506 switch currently does not support the spare mode. If a PD only
supports the spare mode, a conversion will be needed.
Example
# Configure the power feeding mode on current port to auto.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
max-value: Maximum PoE power output on the switch, ranging from 37 to 2400 W.
Description
By default, maximum PoE power output on the switch is 2400 W.Using the poe power
max-value command, you can set the maximum power that can be supplied externally
by the switch.
Note:
This command works only when the power you specified is greater than the power that
has been distributed to the boards.
Example
# Set the maximum power supplied externally by the switch to 2000 W.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
auto: Configures the PoE management mode of the switch to auto.
manual: Configures the PoE management mode of the switch to manual.
slot-num: Slot number.
Description
Using the poe power-management command, you can configure the PoE
management mode of the switch.
Using the undo poe power-management command, you can restore the default
mode.
By default, the PoE management mode of the switch is auto.
This command and the port priority settings will work together to control the power
feeding of the switch when the switch is reaching its full power load in power supply.
z
auto mode: When the switch is reaching its full load in supplying power, it will first
supply power to the PDs that are connected to the ports with critical priority, and
secondly supply power to the PDs that are connected to the ports with high priority.
For example: Port A has the priority of critical. When the switch is reaching full
load and a new PD is now added to the port A, the switch will power down a PD
that is connected to a port with the lowest priority and turn to feed this new PD.
manual mode: When the switch is reaching its full load in supplying power
externally and a new PD is added, it will neither take the priority into account nor
make change to its original power supply status; only the infomation about the
newly added device is provided. For example: Port A has the priority of critical.
When the switch is reaching full load and a new PD is now connected to port A, the
switch does not supply power to this new device.
Example
# Configure the PoE management mode of the switch on slot 3 to auto.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
Ethernet port view
Parameter
critical: Sets the port priority to critical.
high: Sets the port priority to high.
Description
Using the poe priority command, you can configure the power supply priority on a port.
Using the undo poe priority command, you can restore the default priority.
By default, the port priority is low.
Note:
This command is used together with the poe power-management command, and
takes effect when the PoE power output of the switch reaches nearly to its maximum
value.
Example
# Set the port priority to critical.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
Any view
Parameter
None
Description
Use the display poe-power ac-input state command to display the AC input state of
the PoE power supply units (PSUs) contained in the external PoE power supply
system.
Example
# Display the AC input state of the external PoE PSUs.
<Quidway> display poe-power ac-input state
PSU 1 AC Input State : Lack Phrase
PSU 2 AC Input State : Normal
PSU 3 AC Input State : Lack Phrase
Table 2-1 Description on the fields of the display poe-power ac-input state
command
Field
Description
Normal: The AC input is normal.
Lack Phrase: The PSU is idle.
View
Any view
Parameter
None
Description
Use the display poe-power alarm command to display the detailed alarm information
about the external PoE PSUs.
Example
# Display the detailed alarm information about the external PoE PSUs.
<Quidway> display poe-power alarm
PSU alarm detail:
Number of PSUs
: 3
PSU 1
: Absent
PSU 2
: NORMAL
PSU 3
: Absent
Normal.
Table 2-2 Description on the fields of the display poe-power alarm command
Field
Description
NORMAL: No alarm.
NOTLINK: The PSU is not linked (the controller fails to
communicate with this PSU or the PSU is not inserted). You
can clear the error by power-cycling the PSU or inserting a
PSU).
INERROR: PSU input error (AC input undervoltage). Restoring
the normal AC input can clear the error.
PSU 1 alarm:
(alarm
information about
PoE PSU1)
View
Any view
Parameter
None
Description
Use the display poe-power dc-output state command to display the DC output state
of the in-use PoE PSUs.
Example
# Display the DC output states of the in-use PoE PSUs.
<Quidway> display poe-power dc-output state
DC Output State : Normal
Table 2-3 Description on the fields of the display poe-power dc-output state
command
Field
Description
Normal: The DC output is normal.
Under Limit: The DC output voltage is lower than the
lower threshold.
DC Output State:
(DC output state of the
external PoE PSU)
View
Any view
Parameter
None
Description
Use the display poe-power dc-output value command to display the DC output
voltage/current values of the external PoE PSUs.
Example
# Display the DC output voltage/current values of the external PoE PSUs.
<Quidway> display poe-power dc-output value
DC Output Voltage : 53.997
DC Output Current : 0.350 A
View
Any view
Parameter
None
Description
Use the display poe-power switch state command to display the number and current
state of the AC power distribution switches in the external PoE PSU.
Example
# Display the number and current state of the AC power distribution switches.
<Quidway> display poe-power switch state
Switch Number : 0
Note:
Currently, the S6500 series do not use any AC power distribution switch, so the
returned value is always 0.
View
Any view
Parameter
None
Description
Use the display supervision-module information command to display the basic
information about the external PoE power supply system, including the software name
and version of the supervision module used to monitor this system, the model,
specifications and output power of the system, and so on.
Example
# Display the information about the PoE PSUs.
Huawei Technologies Proprietary
2-5
: 2.6
: Spring Pms
Power Type
: PSE2500-A
: 2400 W
: 1502 W
: 1506 W
: 1482 W
PSU Number
: 1
PSU 2
Rating Output Power
: NP Series
Description
Power Type
View
System view
Parameter
string: Undervoltage alarm threshold in volts (V). The format is X.X.
z
For 220 VAC input, it ranges from 176.0V to 264.0V and is recommended to be
181.0V.
For 110 VAC input, it ranges from 90.0V to 132.0V and is recommended to be
90.0V.
Description
Use the poe-power input-thresh lower command to set the undervoltage alarm
threshold of AC input for the external PoE PSUs.
Example
# Set the undervoltage alarm threshold of AC input for the external PoE PSUs to 181.0
V.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
string: Overvoltage alarm threshold in volts (V). The format is X.X.
z
For 220 VAC input, it ranges from 176.0V to 264.0V and is recommended to be
264.0 V.
For 110 VAC input, it ranges from 90.0V to 132.0V and is recommended to be
132.0V.
Description
Use the poe-power input-thresh upper command to set the overvoltage alarm
threshold of AC input for the external PoE PSUs.
Example
# Set the overvoltage alarm threshold of AC input for the external PoE PSUs to 264.0 V.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
string: Undervoltage alarm threshold in volts (V). The format is X.X and the range is
45.0 to 47.0.
Description
Use the poe-power output-thresh lower command to set the undervoltage alarm
threshold of DC output for the external PoE PSUs.
For 220 VAC or 110 VAC input, it is recommended to set the threshold to 47.0 V.
Example
# Set the undervoltage DC output undervoltage alarm threshold for the external PoE
PSUs to 47.0 V.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
View
System view
Parameter
string: Overvoltage alarm threshold in volts (V). The format is X.X and the range is 55.0
to 57.0.
Description
Use the poe-power output-thresh upper command to set the overvoltage alarm
threshold of DC output for the external PoE PSUs
For 220 VAC or 110 VAC input, it is recommended to set the threshold to 55.0 V.
Example
# Set the overvoltage alarm threshold of DC output for the external PoE PSUs to 55.0
V.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
HUAWEI
Appendix
ABCDEFGHIJKLMNOPQRSTUVWXYZ
A
abr-summary
Multicast Protocol
3-1
access-limit
Reliability
2-1
accounting optional
Reliability
2-21
accounting-on enable
Reliability
2-20
acl
STP
1-1
acl
STP
3-1
acl mode
STP
1-3
active region-configuration
Security
1-1
address-check
Routing Protocol
5-1
address-check dhcp-relay
Routing Protocol
5-1
address-check no-matched
Routing Protocol
5-2
aggregate
Multicast Protocol
5-1
apply as-path
Multicast Protocol
6-1
apply community
Multicast Protocol
6-2
apply cost
Multicast Protocol
6-3
apply cost-type
Multicast Protocol
6-3
apply ip next-hop
Multicast Protocol
6-4
apply isis
Multicast Protocol
6-5
apply local-preference
Multicast Protocol
6-5
apply origin
Multicast Protocol
6-6
apply tag
Multicast Protocol
6-7
area
Multicast Protocol
3-2
area-authentication-mode
Multicast Protocol
4-1
Routing Protocol
2-1
Routing Protocol
4-1
Routing Protocol
3-1
arp static
Routing Protocol
2-1
Routing Protocol
2-2
asbr-summary
Multicast Protocol
3-2
ascii
PoE
1-25
attribute
Reliability
2-1
authentication-mode
Port
1-1
authentication-mode
Multicast Protocol
3-3
auto-execute command
Port
1-2
bgp
Multicast Protocol
5-2
binary
PoE
1-25
boot boot-loader
PoE
3-1
boot bootrom
PoE
3-2
PoE
3-3
bridgemactocpu
PoE
2-1
broadcast-suppression
VLAN
1-1
broadcast-suppression
Network Protocol
1-1
bsr-policy
QoS/ACL
5-1
bye
PoE
1-26
c-bsr
QoS/ACL
5-2
cd
PoE
1-1
cd
PoE
1-26
cdup
PoE
1-27
check region-configuration
Security
1-1
checkzero
Multicast Protocol
2-1
clock datetime
PoE
4-1
clock summer-time
PoE
4-1
clock timezone
PoE
4-3
close
PoE
1-27
command-privilege level
Port
1-2
compare-different-as-med
Multicast Protocol
5-3
confederation id
Multicast Protocol
5-4
confederation nonstandard
Multicast Protocol
5-5
confederation peer-as
Multicast Protocol
5-5
copy
PoE
1-2
copy configuration
VLAN
1-2
cost-style
Multicast Protocol
4-2
c-rp
QoS/ACL
5-3
crp-policy
QoS/ACL
5-4
cut connection
Reliability
2-3
dampening
Multicast Protocol
5-6
databits
Port
1-3
data-flow-format
Reliability
2-22
debugging
PoE
1-28
debugging
PoE
4-7
debugging arp
Routing Protocol
2-3
debugging bgp
Multicast Protocol
5-7
debugging dhcp-relay
Routing Protocol
5-3
debugging gmrp
QoS/ACL
1-1
debugging igmp
QoS/ACL
4-1
debugging isis
Multicast Protocol
4-3
VLAN
2-2
VLAN
2-3
VLAN
2-1
VLAN
2-1
QoS/ACL
3-1
QoS/ACL
3-2
QoS/ACL
3-2
debugging ntp-service
PoE
7-1
debugging ospf
Multicast Protocol
3-4
QoS/ACL
5-5
debugging pim dm
QoS/ACL
5-6
debugging pim sm
QoS/ACL
5-6
PoE
8-1
debugging vrrp
System Management
1-1
default cost
Multicast Protocol
2-2
default cost
Multicast Protocol
3-5
default interval
Multicast Protocol
3-6
default limit
Multicast Protocol
3-6
default local-preference
Multicast Protocol
5-8
default med
Multicast Protocol
5-9
default tag
Multicast Protocol
3-7
default type
Multicast Protocol
3-8
default-cost
Multicast Protocol
3-8
default-route-advertise
Multicast Protocol
3-9
default-route-advertise
Multicast Protocol
4-4
delete
PoE
1-2
delete
PoE
1-28
Multicast Protocol
1-15
description
VLAN
1-3
description
Network Protocol
1-2
dhcp-security static
Routing Protocol
5-4
dhcp-server
Routing Protocol
5-5
dhcp-server ip
Routing Protocol
5-6
dir
PoE
1-3
dir
PoE
1-29
disconnect
PoE
1-30
STP
1-4
STP
1-5
STP
1-6
display arp
Routing Protocol
2-4
display arp |
Routing Protocol
2-5
Routing Protocol
2-6
Routing Protocol
4-1
Routing Protocol
2-7
Routing Protocol
3-2
Routing Protocol
2-7
Routing Protocol
2-8
PoE
3-4
Multicast Protocol
5-9
Multicast Protocol
5-11
Multicast Protocol
5-11
Multicast Protocol
5-12
Multicast Protocol
5-14
Multicast Protocol
5-15
Multicast Protocol
5-17
Multicast Protocol
5-18
Multicast Protocol
5-18
Multicast Protocol
5-19
Multicast Protocol
5-21
Multicast Protocol
5-22
Multicast Protocol
5-23
Multicast Protocol
5-24
Multicast Protocol
5-25
display boot-loader
PoE
3-4
display channel
PoE
4-13
display clock
PoE
4-4
display connection
Reliability
2-4
display cpu
PoE
3-5
display current-configuration
PoE
1-12
display debugging
PoE
4-5
Multicast Protocol
3-10
display device
PoE
3-5
display dhcp-security
Routing Protocol
5-6
display dhcp-server
Routing Protocol
5-7
Routing Protocol
5-9
display diagnostic-information
PoE
4-8
display domain
Reliability
2-5
display dot1x
Reliability
1-1
display environment
PoE
3-7
display fan
PoE
3-7
display fib
Routing Protocol
6-1
display ftp-server
PoE
1-22
display ftp-user
PoE
1-23
Network Protocol
2-1
Network Protocol
2-2
QoS/ACL
1-1
QoS/ACL
1-2
Network Protocol
2-5
Network Protocol
2-6
display history-command
Port
1-4
Routing Protocol
6-2
QoS/ACL
4-2
QoS/ACL
4-3
QoS/ACL
2-1
QoS/ACL
2-2
QoS/ACL
2-3
display info-center
PoE
4-13
display interface
VLAN
1-3
Network Protocol
1-3
display ip host
Routing Protocol
1-1
display ip interface
Routing Protocol
1-1
display ip ip-prefix
Multicast Protocol
6-7
display ip routing-table
Multicast Protocol
1-1
Multicast Protocol
1-2
Multicast Protocol
1-6
Multicast Protocol
1-8
Multicast Protocol
1-9
Multicast Protocol
1-10
Multicast Protocol
1-11
Multicast Protocol
1-13
Multicast Protocol
1-14
display ip socket
Routing Protocol
6-3
display ip statistics
Routing Protocol
6-5
Routing Protocol
7-1
Routing Protocol
7-2
Routing Protocol
7-4
Routing Protocol
7-5
Multicast Protocol
4-5
Multicast Protocol
4-6
Multicast Protocol
4-7
Multicast Protocol
4-7
Multicast Protocol
4-8
Multicast Protocol
4-9
Multicast Protocol
4-10
VLAN
2-6
VLAN
2-5
VLAN
2-3
VLAN
2-4
Reliability
2-23
display local-user
Reliability
2-6
display logbuffer
PoE
4-14
PoE
4-16
display mac-address
PoE
2-2
PoE
2-1
QoS/ACL
6-2
QoS/ACL
6-2
display memory
Multicast Protocol
7-1
display memory
PoE
3-8
Multicast Protocol
7-2
display mirroring-group
STP
2-1
QoS/ACL
3-3
QoS/ACL
3-4
PoE
7-2
PoE
7-2
PoE
7-4
Multicast Protocol
3-11
Multicast Protocol
3-12
Multicast Protocol
3-13
Multicast Protocol
3-15
Multicast Protocol
3-17
Multicast Protocol
3-19
Multicast Protocol
3-20
Multicast Protocol
3-23
Multicast Protocol
3-24
Multicast Protocol
3-26
Multicast Protocol
3-27
Multicast Protocol
3-28
Multicast Protocol
3-29
QoS/ACL
5-7
QoS/ACL
5-8
QoS/ACL
5-9
QoS/ACL
5-10
QoS/ACL
5-11
Getting Started
1-1
Getting Started
1-3
Getting Started
1-5
Getting Started
1-6
Getting Started
2-1
Getting Started
2-2
Getting Started
2-3
Getting Started
2-4
Getting Started
2-4
display port
VLAN
1-6
VLAN
1-7
display power
PoE
3-9
display priority-trust
STP
2-1
Network Protocol
1-8
Network Protocol
1-9
STP
2-2
STP
2-3
STP
2-6
STP
2-7
STP
2-8
STP
2-10
STP
2-11
STP
2-12
STP
2-13
STP
2-14
display radius
Reliability
2-24
Reliability
2-25
display rip
Multicast Protocol
2-2
Multicast Protocol
2-3
PoE
6-1
PoE
6-2
PoE
6-3
PoE
6-4
PoE
6-5
PoE
6-7
display route-policy
Multicast Protocol
6-8
PoE
8-2
PoE
8-2
display saved-configuration
PoE
1-17
PoE
3-9
display snmp-agent
PoE
5-1
PoE
5-1
PoE
5-2
PoE
5-3
PoE
5-5
PoE
5-7
PoE
5-7
PoE
5-8
PoE
5-8
PoE
8-3
PoE
8-4
display startup
PoE
1-19
display stop-accounting-buffer
Reliability
2-26
display stp
Security
1-3
Security
1-5
Getting Started
2-5
display supervlan
Network Protocol
3-1
System Management
2-1
Routing Protocol
6-6
Routing Protocol
6-8
display this
PoE
1-19
display time-range
STP
1-7
Routing Protocol
6-8
PoE
3-10
display user-interface
Port
1-4
display users
Port
1-6
display users
PoE
4-5
display version
PoE
4-6
display vlan
Network Protocol
1-3
display vrrp
System Management
1-1
domain
Reliability
2-8
domain-authentication-mode
Multicast Protocol
4-11
dot1x
Reliability
1-2
dot1x authentication-method
Reliability
1-3
dot1x dhcp-launch
Reliability
1-4
dot1x guest-vlan
Reliability
1-5
dot1x max-user
Reliability
1-6
dot1x port-control
Reliability
1-7
dot1x port-method
Reliability
1-8
dot1x quiet-period
Reliability
1-9
dot1x re-authenticate
Reliability
1-10
dot1x retry
Reliability
1-11
dot1x retry-version-max
Reliability
1-12
dot1x supp-proxy-check
Reliability
1-12
dot1x timer
Reliability
1-14
dot1x version-check
Reliability
1-15
duplex
VLAN
1-8
PoE
5-9
execute
PoE
1-4
file prompt
PoE
1-5
filter-policy export
Multicast Protocol
2-4
filter-policy export
Multicast Protocol
3-30
filter-policy export
Multicast Protocol
4-12
filter-policy export
Multicast Protocol
5-25
filter-policy export
Multicast Protocol
6-9
filter-policy import
Multicast Protocol
2-5
filter-policy import
Multicast Protocol
3-31
filter-policy import
Multicast Protocol
4-13
filter-policy import
Multicast Protocol
5-26
filter-policy import
Multicast Protocol
6-10
fixdisk
PoE
1-5
flow-control
Port
1-7
flow-control
VLAN
1-8
format
PoE
1-6
free user-interface
Port
1-7
ftp
PoE
1-30
ftp server
PoE
1-24
ftp timeout
PoE
1-24
garp timer
Network Protocol
2-2
Network Protocol
2-4
get
PoE
1-31
gmrp
QoS/ACL
1-3
gratuitous-arp-learning enable
Routing Protocol
2-9
group
Multicast Protocol
5-27
E
F
gvrp
Network Protocol
2-6
gvrp registration
Network Protocol
2-7
header
Port
1-8
history-command max-size
Port
1-10
host-route
Multicast Protocol
2-6
idle-cut
Reliability
2-9
idle-timeout
Port
1-10
Multicast Protocol
6-11
if-match as-path
Multicast Protocol
6-12
if-match community
Multicast Protocol
6-12
if-match cost
Multicast Protocol
6-13
if-match interface
Multicast Protocol
6-14
if-match ip next-hop
Multicast Protocol
6-14
if-match tag
Multicast Protocol
6-15
igmp enable
QoS/ACL
4-3
igmp group-limit
QoS/ACL
4-4
igmp group-policy
QoS/ACL
4-5
QoS/ACL
4-6
igmp host-join
QoS/ACL
4-7
QoS/ACL
4-7
QoS/ACL
4-8
igmp lastmember-queryinterval
QoS/ACL
4-9
igmp max-response-time
QoS/ACL
4-10
igmp robust-count
QoS/ACL
4-10
QoS/ACL
4-12
QoS/ACL
4-12
igmp version
QoS/ACL
4-13
igmp-snooping
QoS/ACL
2-3
igmp-snooping host-aging-time
QoS/ACL
2-4
igmp-snooping max-response-time
QoS/ACL
2-5
igmp-snooping router-aging-time
QoS/ACL
2-6
ignore-lsp-checksum-error
Multicast Protocol
4-14
import-route
Multicast Protocol
2-7
import-route
Multicast Protocol
3-32
import-route
Multicast Protocol
4-14
import-route
Multicast Protocol
5-28
Multicast Protocol
4-15
inboundcar
STP
2-16
PoE
4-17
PoE
4-18
info-center enable
PoE
4-19
info-center logbuffer
PoE
4-19
info-center loghost
PoE
4-20
PoE
4-21
PoE
4-22
PoE
4-22
info-center source
PoE
4-23
info-center timestamp
PoE
4-26
info-center trapbuffer
PoE
4-27
instance
Security
1-6
interface
VLAN
1-9
interface vlan-interface
Network Protocol
1-4
ip
Routing Protocol
6-9
ip address
Routing Protocol
1-3
ip as-path-acl
Multicast Protocol
5-28
ip community-list
Multicast Protocol
5-29
ip forward-broadcast
Routing Protocol
6-10
ip host
Routing Protocol
1-4
ip ip-prefix
Multicast Protocol
6-16
ip route-static
Multicast Protocol
1-16
ip route-static default-preference
Multicast Protocol
1-17
ipx enable
Routing Protocol
7-6
ipx encapsulation
Routing Protocol
7-7
ipx netbios-propagation
Routing Protocol
7-7
ipx network
Routing Protocol
7-8
Routing Protocol
7-9
Routing Protocol
7-9
Routing Protocol
7-10
Routing Protocol
7-10
Routing Protocol
7-11
Routing Protocol
7-12
ipx route-static
Routing Protocol
7-12
Routing Protocol
7-13
Routing Protocol
7-14
Routing Protocol
7-14
Routing Protocol
7-15
Routing Protocol
7-16
Routing Protocol
7-16
Routing Protocol
7-17
ipx service
Routing Protocol
7-17
ipx split-horizon
Routing Protocol
7-18
ipx tick
Routing Protocol
7-19
ipx update-change-only
Routing Protocol
7-19
isis
Multicast Protocol
4-16
isis authentication-mode
Multicast Protocol
4-17
isis circuit-level
Multicast Protocol
4-18
isis cost
Multicast Protocol
4-19
isis dis-priority
Multicast Protocol
4-20
isis enable
Multicast Protocol
4-20
isis mesh-group
Multicast Protocol
4-21
Multicast Protocol
4-22
Multicast Protocol
4-23
Multicast Protocol
4-24
Multicast Protocol
4-25
Multicast Protocol
4-25
is-level
Multicast Protocol
4-26
J
Huawei Technologies Proprietary
A-14
jumboframe enable
VLAN
1-13
Reliability
2-27
lacp enable
VLAN
2-7
lacp port-priority
VLAN
2-7
lacp system-priority
VLAN
2-8
language-mode
Port
1-11
lcd
PoE
1-31
level
Reliability
2-10
line-rate
STP
2-17
link-aggregation
VLAN
2-9
VLAN
2-9
VLAN
2-10
local-server
Reliability
2-28
local-user
Reliability
2-11
local-user password-display-mode
Reliability
2-11
lock
Port
1-12
log-peer-change
Multicast Protocol
4-27
VLAN
1-10
loopback-detection enable
VLAN
1-11
loopback-detection interval-time
VLAN
1-11
VLAN
1-12
ls
PoE
1-32
mac-address
PoE
2-3
mac-address max-mac-count
PoE
2-4
mac-address multicast
QoS/ACL
6-1
mac-address timer
PoE
2-5
md5-compatible
Multicast Protocol
4-27
mdi
VLAN
1-13
K
key
Multicast Protocol
7-3
Multicast Protocol
7-4
Multicast Protocol
7-5
messenger
Reliability
2-12
mirroring-group
STP
2-18
mkdir
PoE
1-7
mkdir
PoE
1-33
modem
Port
1-12
modem auto-answer
Port
1-13
Port
1-13
more
PoE
1-7
move
PoE
1-8
multicast route-limit
QoS/ACL
3-6
multicast routing-enable
QoS/ACL
3-6
multicast-suppression
VLAN
1-14
name
Network Protocol
1-5
name
Reliability
2-13
nas-ip
Reliability
2-29
network
Multicast Protocol
2-8
network
Multicast Protocol
3-33
network
Multicast Protocol
5-30
network-entity
Multicast Protocol
4-28
nssa
Multicast Protocol
3-34
ntp-service access
PoE
7-4
PoE
7-5
ntp-service authentication-keyid
PoE
7-6
ntp-service broadcast-client
PoE
7-6
ntp-service broadcast-server
PoE
7-7
ntp-service disable
PoE
7-8
PoE
7-8
ntp-service max-dynamic-sessions
PoE
7-9
ntp-service multicast-client
PoE
7-10
ntp-service multicast-server
PoE
7-10
ntp-service refclock-master
PoE
7-11
PoE
7-12
ntp-service source-interface
PoE
7-13
ntp-service unicast-peer
PoE
7-14
ntp-service unicast-server
PoE
7-15
open
PoE
1-33
ospf
Multicast Protocol
3-35
ospf authentication-mode
Multicast Protocol
3-36
ospf cost
Multicast Protocol
3-37
ospf dr-priority
Multicast Protocol
3-37
ospf mib-binding
Multicast Protocol
3-38
ospf mtu-enable
Multicast Protocol
3-39
ospf network-type
Multicast Protocol
3-40
Multicast Protocol
3-41
Multicast Protocol
3-42
Multicast Protocol
3-42
Multicast Protocol
3-43
ospf trans-delay
Multicast Protocol
3-44
packet-filter
STP
1-8
parity
Port
1-14
passive
PoE
1-34
password
Reliability
2-14
pause-protection
PoE
3-10
peer
Multicast Protocol
2-9
peer
Multicast Protocol
3-44
peer advertise-community
Multicast Protocol
5-31
peer allow-as-loop
Multicast Protocol
5-31
peer as-number
Multicast Protocol
5-32
Multicast Protocol
5-32
Multicast Protocol
5-33
peer connect-interface
Multicast Protocol
5-34
peer default-route-advertise
Multicast Protocol
5-35
peer description
Multicast Protocol
5-35
peer ebgp-max-hop
Multicast Protocol
5-36
peer enable
Multicast Protocol
5-36
Multicast Protocol
5-37
Multicast Protocol
5-38
peer group
Multicast Protocol
5-38
Multicast Protocol
5-39
Multicast Protocol
5-40
peer next-hop-local
Multicast Protocol
5-41
peer password
Multicast Protocol
5-41
peer public-as-only
Multicast Protocol
5-42
peer reflect-client
Multicast Protocol
5-43
Multicast Protocol
5-43
Multicast Protocol
5-44
peer route-update-interval
Multicast Protocol
5-45
peer timer
Multicast Protocol
5-45
peer-public-key end
PoE
8-5
pim
QoS/ACL
5-12
pim bsr-boundary
QoS/ACL
5-12
pim dm
QoS/ACL
5-13
pim neighbor-limit
QoS/ACL
5-14
pim neighbor-policy
QoS/ACL
5-14
pim sm
QoS/ACL
5-15
QoS/ACL
5-16
ping
PoE
4-9
poe enable
Getting Started
1-7
Getting Started
1-7
Getting Started
1-8
poe max-power
Getting Started
1-9
Getting Started
1-10
poe mode
Getting Started
1-11
Getting Started
1-12
poe power-management
Getting Started
1-12
poe priority
Getting Started
1-13
Getting Started
2-6
Getting Started
2-7
Getting Started
2-8
Getting Started
2-8
port
Network Protocol
1-7
VLAN
1-15
Network Protocol
1-9
VLAN
1-16
VLAN
1-16
VLAN
2-10
port link-type
VLAN
1-17
VLAN
1-18
VLAN
1-19
preference
Multicast Protocol
2-10
preference
Multicast Protocol
3-45
preference
Multicast Protocol
4-29
preference
Multicast Protocol
5-46
primary accounting
Reliability
2-30
primary authentication
Reliability
2-31
priority
STP
2-19
priority-trust
STP
2-20
product
PoE
3-11
protocol inbound
Port
1-15
protocol inbound
PoE
8-5
protocol-vlan
Network Protocol
1-12
Network Protocol
1-10
public-key-code begin
PoE
8-6
public-key-code end
PoE
8-7
put
PoE
1-35
pwd
PoE
1-8
pwd
PoE
1-35
Q
qe monitor
PoE
3-12
qe monitor errpkt
PoE
3-13
PoE
3-14
qe monitor overflow-threshold
PoE
3-14
qos
STP
2-21
qos cos-local-precedence-map
STP
2-22
queue-scheduler
STP
2-24
quit
Port
1-15
quit
PoE
1-36
radius nas-ip
Reliability
2-32
radius scheme
Reliability
2-32
radius-scheme
Reliability
2-14
rdram
PoE
3-15
reboot
PoE
3-15
reflect between-clients
Multicast Protocol
5-47
reflector cluster-id
Multicast Protocol
5-47
refresh bgp
Multicast Protocol
5-48
region-name
Security
1-6
register-policy
QoS/ACL
5-16
remotehelp
PoE
1-36
rename
PoE
1-9
reset
Multicast Protocol
2-10
STP
1-10
reset arp
Routing Protocol
2-8
reset bgp
Multicast Protocol
5-49
Multicast Protocol
5-49
Multicast Protocol
5-50
Multicast Protocol
5-50
VLAN
1-19
Reliability
1-16
Network Protocol
2-4
QoS/ACL
4-14
QoS/ACL
2-6
reset ip statistics
Routing Protocol
6-10
Routing Protocol
7-20
Routing Protocol
7-21
Multicast Protocol
4-29
Multicast Protocol
4-30
VLAN
2-11
reset logbuffer
PoE
4-27
QoS/ACL
3-7
QoS/ACL
3-8
reset ospf
Multicast Protocol
3-46
QoS/ACL
5-17
QoS/ACL
5-18
Reliability
2-33
reset recycle-bin
PoE
1-10
reset saved-configuration
PoE
1-20
reset stop-accounting-buffer
Reliability
2-34
reset stp
Security
1-7
Routing Protocol
6-11
reset traffic-statistic
STP
2-25
reset trapbuffer
PoE
4-28
Routing Protocol
6-11
System Management
1-3
retry
Reliability
2-35
retry realtime-accounting
Reliability
2-36
retry stop-accounting
Reliability
2-37
return
Port
1-16
revision-level
Security
1-8
rip
Multicast Protocol
2-11
rip authentication-mode
Multicast Protocol
2-12
rip input
Multicast Protocol
2-13
rip metricin
Multicast Protocol
2-14
rip metricout
Multicast Protocol
2-14
rip output
Multicast Protocol
2-15
rip split-horizon
Multicast Protocol
2-16
rip version
Multicast Protocol
2-16
rip work
Multicast Protocol
2-17
rmdir
PoE
1-10
rmdir
PoE
1-37
rmon alarm
PoE
6-8
rmon event
PoE
6-9
rmon history
PoE
6-10
rmon prialarm
PoE
6-11
rmon statistics
PoE
6-12
route-policy
Multicast Protocol
6-17
router id
Multicast Protocol
3-47
PoE
8-8
PoE
8-9
rsa peer-public-key
PoE
8-10
rule
STP
1-11
save
PoE
1-21
schedule reboot at
PoE
3-16
PoE
3-17
scheme
Reliability
2-15
screen-length
Port
1-16
secondary accounting
Reliability
2-38
secondary authentication
Reliability
2-38
self-service-url
Reliability
2-16
send
Port
1-17
server-type
Reliability
2-39
service-type
Port
1-17
service-type
Reliability
2-17
Port
1-19
PoE
3-18
set-overload
Multicast Protocol
4-31
shell
Port
1-20
shutdown
VLAN
1-20
shutdown
Network Protocol
1-5
silent-interface
Multicast Protocol
3-48
silent-interface
Multicast Protocol
4-31
System Management
2-1
slave restart
System Management
2-2
slave switchover
System Management
2-3
System Management
2-3
snmp-agent community
STP
3-2
snmp-agent community
PoE
5-11
snmp-agent group
STP
3-3
snmp-agent group
PoE
5-11
snmp-agent local-engineid
PoE
5-10
snmp-agent mib-view
PoE
5-12
PoE
5-13
snmp-agent sys-info
PoE
5-14
snmp-agent target-host
PoE
5-15
PoE
5-16
Multicast Protocol
3-48
PoE
5-17
PoE
5-17
PoE
5-18
snmp-agent usm-user
STP
3-4
snmp-agent usm-user
PoE
5-19
source-policy
QoS/ACL
5-19
speed
Port
1-21
speed
VLAN
1-21
spf-delay-interval
Multicast Protocol
4-32
spf-schedule-interval
Multicast Protocol
3-49
spf-slice-size
Multicast Protocol
4-33
PoE
8-10
PoE
8-11
PoE
8-11
PoE
8-12
PoE
8-13
startup saved-configuration
PoE
1-22
state
Reliability
2-18
state
Reliability
2-40
static-rp
QoS/ACL
5-20
stop-accounting-buffer enable
Reliability
2-41
stopbits
Port
1-22
stp
Security
1-9
stp bpdu-protection
Security
1-9
stp bridge-diameter
Security
1-10
stp config-digest-snooping
Security
3-1
stp cost
Security
1-11
stp edged-port
Security
1-12
stp interface
Security
1-13
Security
1-14
Security
1-15
Security
1-16
Security
1-17
Security
4-1
Security
1-18
Security
1-19
Security
1-20
Security
1-21
stp loop-protection
Security
1-21
stp max-hops
Security
1-22
stp mcheck
Security
1-23
stp mode
Security
1-23
stp no-agreement-check
Security
4-2
stp pathcost-standard
Security
1-24
stp point-to-point
Security
1-26
Security
1-27
stp priority
Security
1-27
stp region-configuration
Security
1-28
Security
1-29
Security
1-30
stp root-protection
Security
1-31
stp tc-protection
Security
1-32
Security
1-33
Security
1-34
Security
1-35
stp timer-factor
Security
1-36
stp transmit-limit
Security
1-36
stub
Multicast Protocol
3-50
subvlan
Network Protocol
3-3
summary
Multicast Protocol
2-18
summary
Multicast Protocol
4-34
summary
Multicast Protocol
5-51
super
Port
1-22
super password
Port
1-23
supervlan
Network Protocol
3-3
Syntax
PoE
4-16
sysname
Port
1-24
sysname
PoE
4-3
system-view
Port
1-24
Routing Protocol
6-12
Routing Protocol
6-12
tcp window
Routing Protocol
6-13
telnet
Port
1-25
temperature-limit
PoE
3-19
terminal debugging
PoE
4-28
terminal logging
PoE
4-29
terminal monitor
PoE
4-29
terminal trapping
PoE
4-30
tftp get
PoE
1-38
tftp put
PoE
1-39
tftp-server acl
PoE
1-39
timer
Multicast Protocol
5-52
timer
Reliability
2-42
timer lsp-max-age
Multicast Protocol
4-34
timer lsp-refresh
Multicast Protocol
4-35
timer quiet
Reliability
2-42
timer realtime-accounting
Reliability
2-43
timer response-timeout
Reliability
2-44
timer spf
Multicast Protocol
4-36
time-range
STP
1-16
timers
Multicast Protocol
2-19
tracert
PoE
4-11
traffic-bandwidth
STP
2-27
traffic-limit
STP
2-29
traffic-priority
STP
2-31
traffic-red
STP
2-33
traffic-redirect
STP
2-35
traffic-share-across-interface
Multicast Protocol
2-19
traffic-statistic
STP
2-36
undelete
PoE
1-11
undo snmp-agent
PoE
5-20
undo synchronization
Multicast Protocol
5-52
user
PoE
1-37
Port
1-26
user-interface
Port
1-26
user-name-format
Reliability
2-45
verbose
PoE
1-38
vlan
Network Protocol
1-6
vlan-assignment-mode
Reliability
2-19
vlan-mapping modulo
Security
1-37
vlan-vpn enable
VLAN
1-21
vlan-vpn tunnel
Security
2-1
vlink-peer
Multicast Protocol
3-50
vrrp authentication-mode
System Management
1-4
vrrp method
System Management
1-5
vrrp ping-enable
System Management
1-6
System Management
1-7
System Management
1-8
System Management
1-8
System Management
1-9
System Management
1-10
W
X
Y
Z