Professional Documents
Culture Documents
Version: V1.1
Release date: May 2020
We appreciate your business. Your satisfaction is our goal. We will provide you with
comprehensive technical support and after-sales service. Please contact your local sales
representative, service representative or distributor for any help needed at the contact
information shown below.
400-889-0787
0086-27-87691549
Fax: 0086-27-87178521
Website: http://www.fiberhome.com
Copyright
Copyright ©2020
Preface
Manual Instruction
This manual describes the commands for configuring various functions of the S6800
series 10Gigabit switch (hereinafter referred to as the S6800), covering the function,
format, parameters, view, usage guidelines, usage example, and related commands
of each command. This manual helps you quickly find and understand information
about configuration commands of the S6800.
This manual is applicable to the S6800 series switch software version V310R230.
Related Documentation
Manual Description
Describes the positioning, characteristics, structure,
FiberHome S6800 Series
features, applications, configuration and management, and
10Gigabit Switch Product
technical specifications of the S6800, helping you get a full
Description_V1.1
understanding of the product.
Provides guidelines on using various function modules and
service features of the S6800 based on the command line
FiberHome S6800 Series interface (CLI), including the basic configuration and
10Gigabit Switch Operation configuration of Layer-2 Ethernet, IP service, routing,
Manual_V1.1 quality of service (QoS), multicast, security, reliability,
device management, network operation and management,
virtual private network (VPN), and data center features.
Describes the installation procedures of the product,
FiberHome S2800&S3800&S4800 including the cabinet mounting, desktop mounting, and wall
&S5800&S6800 Series Switches mounting, installation and removal of service modules,
Quick Installation Guide A installation of AC and DC power modules, and layout of
wires and cables.
Intended Readers
The manual is intended for the following readers:
Network administrators
Organization
This manual is organized as follows:
Chapter Summary
The S6800 provides a command line interface with a series
Chapter 1 Introduction to of configuration commands, using which you can configure
Command Configuration Views and manage the switch. This chapter introduces the
command configuration views in the system.
Introduces the commands for configuring basic functions of
Chapter 2 Basic Commands
the system.
Introduces the commands for configuring Ethernet
Chapter 3 Ethernet Commands
functions.
Chapter 4 IP Commands Introduces the commands for configuring IP functions.
Chapter 5 Routing Commands Introduces the commands for configuring routing functions.
Chapter 6 QoS Commands Introduces the commands for configuring QoS functions.
Chapter 7 Multicast Commands Introduces the commands for configuring multicast services.
Chapter 8 Service Security Introduces the commands for configuring security functions.
Commands
Introduces the commands for configuring reliability
Chapter 9 Reliability Commands
functions.
Chapter 10 Device Management Introduces the commands used for device management.
Commands
Chapter 11 O&M Commands Introduces the O&M configuration commands.
Chapter 12 MPLS Commands Introduces the MPLS configuration commands.
Chapter 13 VPN Commands Introduces the VPN configuration commands.
Chapter 14 Data Center Feature Introduces the commands for configuring the data center
Commands feature.
Version Update
Software Version Manual Version Description
Conventions
The following introduces the general format, keyboard / mouse operation conventions
and symbol conventions.
1. Font conventions
Convention Description
Arial Standard font for manual text including Arabic numerals.
Chapter/section names, menus, menu options, radio button names,
Bold
check boxes, drop-down lists, dialog box names and window names.
2. Command conventions
Convention Description
Bold Key words in the CLI (the fixed part in the CLI).
Italic Parameters in the CLI (variable according to the actual situation).
[] The part in [ ] is optional in the command configuration.
{ x| y|…} Select only one from multiple options.
[x|y|…] Select one or none from multiple options.
{ x | y | … }* Select at least one from multiple options.
[ x | y | … ]* Select one, multiple or none from multiple options.
# The following is note.
Convention Description
Indicates Keyboard typing names or button names, e.g. <Enter>, <Tab>,
Characters with angle
<Backspace>, <a> are respectively indicating keyboard enter, tab,
brackets
backspace and lowercase character "a".
Indicates to press 2 or more keys at the same time, e.g.,<Ctrl+Alt+A>
< Key 1+Key 2>
indicates to press "Ctrl", "Alt" and "A" at the same time.
Indicates to press key 1 first, release it and then press key 2., e.g.,<Alt,
< Key 1, Key 2>
F> indicates to press "Alt" first, then release it and then press "F".
Convention Description
Refers to clicking primary mouse button (usually left mouse button)
Click
once.
Refers to quick clicking primary mouse button (usually left mouse
Double-click
button) twice.
Refers to clicking secondary mouse button (usually right mouse button)
Right-click
once.
Drag Refers to pressing and holding a mouse button and moving mouse.
5. Symbol conventions
Legal Disclaimer
The information regarding the products in this document is subject to change without
notice. All statements, information, and recommendations in this document are
believed to be accurate but are presented without warranty of any kind, express or
implied. Users must take full responsibility for their application of any products.
Contents
Chapter 1 Introduction to Command Configuration Views ....................................................... 1
1.1 Command Line Interface ....................................................................................................... 1
1.2 Features of Command Configuration Views ......................................................................... 1
Configuration commands are assigned different levels and can be used only by
privileged users. This prevents unauthorized access to the switch by unauthorized
users.
You can type in a question mark (?) to obtain online help information.
Network testing tools, such as ping, can help you quickly determine the reachability of
a network.
To facilitate management, commands are divided into different groups. Each group
has a specific command mode. You can switch between different command modes.
Generally, a command mode supports only certain commands. Some commonly used
commands (such as help, list, exit, and end) can be used in all modes.
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
You can directly enter the key configuration view by pressing control+P in the
password input box without entering the user name.
the key configuration view, run the check temporary-password command to verify the
password. If the password is valid, you can log in to the switch.
Example
Related Commands
None
The clock set command sets the current date and time on the switch.
Format
Parameters
Default Value
None
View
Usage Guidelines
In an environment that requires the absolute time, you must set the current date and
time on the switch.
The time must be in the 24-hour format. If you do not specify MM:SS, the value is
00:00. You must set the value of HH (at least one digit). For example, if you enter 0,
the time is 00:00:00.
Example
Related Commands
None
Function
The clock summer-time command sets the name, start time, and end time of
daylight saving time.
Format
no clock summer-time
Parameters
Default Value
View
Usage Guidelines
You can use this command to set the daylight saving time rule in the local time zone.
The configuration takes effect between years 2001 and 2099. After a rule is
configured, the daylight saving time will take effect on the switch based on the
configured rule.
Example
# Configure the absolute daylight saving time to start at 01:00 on 7/15/2019 and end
at 23:59 on 8/31/2019.
Related Commands
None
2.2.4 cls
Function
Format
cls
Parameters
None
Default Value
None
View
Usage Guidelines
If too much information is displayed on CLI and affects operations on the system or
you no longer need the displayed information, run this command to clear the
information.
Example
S6800#cls
S6800#
Related Commands
None
2.2.5 configure
Function
The configure command switches from the privileged user view to the global
configuration view.
Format
configure
Parameters
None
Default Value
None
View
Usage Guidelines
In the privileged user view, you can check all running status and statistical information
on the switch, and manages files and the system.
In the global configuration view, you can configure global parameters of the switch in
addition to configuration privilege in the privileged user view.
Example
# Switch from the privileged user view to the global configuration view.
S6800#configure
S6800(config)#
Related Commands
None
Function
Format
debug cli
no debug cli
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
2.2.7 disable
Function
The disable command returns to the common user view from the privileged user view.
The disable privilege-value command lowers the privilege of the current user to 1-15.
The default user privilege is 15.
Format
disable
disable privilege-value
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Return to the common user view from the privileged user view.
S6800#disable
S6800>
Related Commands
enable
2.2.8 enable
Function
The enable command switches from the common user view to the privileged user
view.
The enable privilege-value command elevates the privilege of the current user to 1-15.
The default user privilege is 15.
Format
enable
enable privilege-value
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Switch from the common user view to the privileged user view.
S6800>enable
S6800#
Related Commands
disable
2.2.9 end
Function
The end command returns to the privileged user view from the current configuration
view.
Format
end
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to return to the privileged user view directly from any
configuration view.
Example
S6800(config)#end
S6800#
Related Commands
exit
2.2.10 exit
Function
The exit command returns to the previous configuration view from the current
configuration view. If you run this command in the common user view or privileged
user view, the login interface is displayed or the connection with the switch is
terminated.
Format
exit
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to exit from the current configuration view and return to the
previous lower-level configuration view.
The end and exit commands differ in that the end command returns to the privileged
user view regardless of the current view, whereas the exit command returns to the
previous configuration view.
By running the exit command, you can return to the lower-level command mode from
a higher-level command mode. You can also switch between command modes of the
same level. In addition, you can press Ctrl+Z or run the end command to return to the
privileged user view from two higher-level views.
Example
S6800(config-vlan10)#exit
S6800(config)#
Related Commands
end
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
You can directly enter the key configuration view by pressing control+P in the
password input box without entering the user name.
Example
S6800(key)#get temporary-serial
======================================
Please remember the serial: 81626024
You can get the temporary password by:
1) Visit our website. (www.fhn.com.cn)
2) Email to us.
3) Call our service center.
======================================
S6800(key)#
Related Commands
None
Format
header login
no header login
Parameters
Default Value
None
View
Usage Guidelines
When you log in to the switch from a terminal, the switch displays the login title.
The login title is a string and can contain up to 500 bytes. If you enter more than 500
bytes, the first 500 bytes take effect. Press CTRL+Z to end the input and press
CTRL+C to exit the input.
Example
# Set the login title to "Hello! Welcome to use Fiberhome S6800 Switch! ".
S6800(config)#header login
Enter message, end with CTRL+Z ; abort with CTRL+C
S6800(config)#quit
S6800#quit
Username: admin
Password: *****
Hello!Welcome to use Fiberhome S6800 Switch!
S6800#
Related Commands
None
2.2.13 help
Function
Format
help
Parameters
None
Default Value
None
View
Usage Guidelines
The S6800 provides convenient online help. The help command displays information
about the entire online help system. You can type in a question mark (?) anytime,
anywhere to obtain all or part of help information.
Example
S6800#help
When you need help,
anytime at the command line please press '?' .
If nothing matches, the help list will be empty and you must backup
until entering a '?' shows the available options.
Two styles of help are provided:
Full help is available when you are ready to enter a
command argument (e.g. 'show ?' ) and describes each possible argument.
Partial help is provided when an abbreviated argument is entered
and you want to know what arguments match the input (e.g. 'show me?' .)
S6800#
Related Commands
None
2.2.14 hostname
Function
The no hostname command restores the default host name of the switch.
Format
hostname hostname
no hostname
Parameters
Default Value
View
Usage Guidelines
Changing the host name of the switch will change the prompt displayed on the CLI.
For example, if the host name of the switch is set to S6800, the prompt in the user
view will be S6800.
Example
ST(config)#hostname S6800
S6800(config)#
Related Commands
None
2.2.15 list
Function
The list command displays all the commands that can be used in the current
configuration view.
Format
list [ keyword ]
Parameters
Default Value
None
View
Usage Guidelines
This command is similar to the dir command in the MS-DOS system and the ls
command in the UNIX system. The advantage of this command is that it releases you
from remembering all commands. If you forget a command, use this command to find
the desired command.
Example
S6800#list
attrib NAME (+r|+s|+h|-r|-s|-h)
attrib NAME (+r|+s|+h|-r|-s|-h) sbutree
capture cpupkt interface (gigaethernet|xgigaethernet) <1-10>/<0-3>/<1-48> time <1-3600>
capture cpupkt interface ethernet <0-0>/<0-0>/<0-0> time <1-3600>
cd
cd DIR
--More--
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Enable the user with IP address 10.2.3.1 and mask 255.255.255.255 to log in to the
switch using Telnet.
Related Commands
None
2.2.17 password
Function
Format
password password
Parameters
Default Value
The system has a default user with the administrator privilege, of which the user name
is admin and password is 12345.
View
Usage Guidelines
The switch supports both reversible and irreversible encryption algorithms for the user
password because some authentication methods (such as dot1x) requires plaintext
passwords of users. Irreversible encryption cannot be used in this scenario.
Example
S6800(config)#password fhn0001
S6800(config)#
Related Commands
None
2.2.18 ping
Function
Format
ping ip-address
ping ip-address -t
Parameters
Default Value
None
View
Usage Guidelines
If an IP network fails, you can use this command to locate the failure point.
In a ping test, the switch sends ICMP Echo Request packets to the destination host. If
the network connection with the destination is normal, the destination responds with
ICMP Echo Reply packets after receiving the ICMP Echo Request packets.
The ping command can be used to determine whether a network connection failure
occurs or to evaluate the quality of network lines. The command output information
includes the following:
Response of destination host to each Echo Request packet. If the switch does not
receive an Echo Reply packet, it displays “Request time out”. If the switch receives an
Echo Reply packet, it displays the number of bytes, response time, Time-to-Live (TTL)
value, and sequence number of the packet.
Final statistics, including the number of packets sent, number of reply packets
received, percentage of packets for which no reply is received, as well as the
minimum, maximum, and average of response time.
Example
S6800#ping 10.18.10.8 -t
PING 10.18.10.8: 56 data bytes
Reply from 10.18.10.8: bytes=64 time=0ms TTL=128 icmp_seq=0
Reply from 10.18.10.8: bytes=64 time=0ms TTL=128 icmp_seq=1
Reply from 10.18.10.8: bytes=64 time=0ms TTL=128 icmp_seq=2
Reply from 10.18.10.8: bytes=64 time=0ms TTL=128 icmp_seq=3
Reply from 10.18.10.8: bytes=64 time=0ms TTL=128 icmp_seq=4
PING Statistic for 10.18.10.8
5 packets transmitted, 5 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
S6800#
Related Commands
None
Function
The ping max-request command sets the maximum number of ping request packets.
Format
Parameters
Default Value
The default value is 0, indicating that the number of request packets is not limited.
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
This command can elevate or lower a command level, enabling the users with a
privilege higher or equal to the command level to use the command.
Example
Related Commands
None
2.2.21 quit
Function
The quit command returns to the previous configuration view from the current
configuration view. If you run this command in the common user view or privileged
user view, the login interface is displayed or the connection with the switch is
terminated.
Format
quit
Parameters
None
Default Value
None
View
Usage Guidelines
By running the quit command, you can return to the lower-level command mode from
a higher-level command mode. You can also switch between command modes of the
same level. You can also press Ctrl+Z to directly return to the privileged user
configuration mode from a higher-level mode. This command provides the same
function as the exit command.
Example
S6800(config-vlan10)#quit
S6800(config)#
Related Commands
exit
2.2.22 reboot
Function
Format
reboot
reboot cancel
Parameters
Default Value
None
View
Usage Guidelines
This command provides the same function as a cold restart. Using this command, you
can reboot the switch remotely, without the need to go to the equipment room. Do not
use this command unless necessary, because it will cause a temporary interruption of
the network. In addition, it is recommended that you determine whether to save the
configuration file before the reboot.
Example
S6800#reboot
WARNING: System will reboot! Continue? (y/n) [y]y
System now is rebooting, please wait.
S6800#
Related Commands
None
Function
Format
reboot { at | in } time
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#reboot at 23:23
WARNING: System will reboot after a specified delay! Continue? (y/n) [y]y
System will rebooting at 2019-08-17 14:45:57 (after 23 hours 23 minutes), please wait.
Related Commands
None
Function
Format
reboot cancel
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#reboot in 23:23
WARNING: System will reboot after a specified delay! Continue? (y/n) [y]y
System will rebooting at 8/17/2017 14:45:57 (after 23 hours 23 minutes), please wait.
S6800(config)#reboot cancel
WARNING: System will cancel reboot! Continue? (y/n) [y]y
System now canceled reboot.
Related Commands
None
Function
The send message command sends messages from one operation terminal to
another operation terminal.
Format
send message
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to send a message from the current operation terminal to
all the other operation terminals that have logged in to the system. When you run
send message data, a message will be sent immediately after you press Enter. If you
run send message, press Enter, and then enter the message, you must press Ctrl+Z
as required to send the message.
Example
# Send a message "Hello" from the current operation terminal to all the other
operation terminals that have logged in to the system.
Related Commands
None
Function
The show clock command displays the current time of the system and how long the
system has been running.
Format
show clock
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to check whether the current date and time on the switch
are consistent with the actual date and time. Moreover, you can check how long the
switch has been running.
Example
S6800#show clock
clock : 2019-08-30 14:22:28
Time Zone: UTC +00:00
System running time: 4 hours, 40 minutes, 9 seconds
Related Commands
None
Function
The show history command displays the historical commands used by the user.
Format
show history
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to view the recently used commands.
Example
S6800#show history
configure
cfm
list
md name testmd level 1
ma name testma vlan 1
q
y1731
meg vlan 1 level 1 icc fhn1 umc fhn2
q
list diffserv
list netflow
list drop
list drop-profile
q
clock summer-time BJ date 1:0 2019/7/15 23:59 2019/8/31
show clock
no clock summer-time
show clock
list
show cpu statistic
S6800#
Related Commands
None
Function
The show hwclock command displays the hardware clock on the switch.
Format
show hwclock
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#show hwclock
hwclock: 2019-08-02 18:46:32
S6800#
Related Commands
None
Function
The show login-type count command shows the numbers of terminals using
different login modes.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show login-user count command displays the number of current online users.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#
Related Commands
None
Function
The show user config command displays the attributes of an existing local user.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show version command displays such information as the current software
version, hardware version, and compile time.
Format
show version
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#show version
FiberHome Universal Software Platform
Copyright (c) 2000-2019, FiberHome Technologies Co., Ltd.
NM Software Version: NM_VX2.10.11.00
USP (R) Software Version V310R230
FiberHome Fengine S6800 Routing Switch
System Uptime is 14 days 0 hours 43 minutes 58 seconds
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show ping max-request command displays the maximum number of ping
requests supported by the switch.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show privilege config command displays the configuration of the local
command set.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show privilege command displays the privilege of the current user.
Format
show privilege
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#show privilege
%Current privilege level is 15.
S6800#
Related Commands
None
The show system command displays the default MAC address of the switch and the
currently used MAC address.
Format
show system
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#show system
System device code : 00B17082501
Default mac-address : 00:04:67:66:02:16
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
2.2.39 traceroute|traceroute6
Function
Format
traceroute ipv4-address
traceroute6 ipv6-address
Parameters
Default Value
None
View
Usage Guidelines
If an IP network fails, you can use this command to locate the failure point.
Example
S6800#traceroute 192.168.1.118
Tracing route to 192.168.1.118 over a maximum of 16 hops.
1 16 ms <16 ms <16 ms 192.168.1.118
Trace complete.
S6800#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#traceroute max-request 20
S6800#
Related Commands
Function
The user fail-count command sets the maximum number of continuous login failures
allowed for a specified user.
Format
Parameters
Default Value
Command View
Usage Guidelines
None
Example
S6800(config)#user fail-count 5
S6800(config)#
Related Commands
None
Function
The user max-count command sets the maximum number of concurrent logins
allowed for Telnet, SSH, FTP, or HTTP users.
Format
Parameters
Default Value
10
Command View
Usage Guidelines
None
Example
# Set maximum number of concurrent logins allowed for Telnet users to 10.
Related Commands
None
Function
Format
Parameters
Default Value
None
Command View
Global configuration view, common user view, and privileged user view.
Usage Guidelines
Example
Related Commands
None
2.2.44 show
Function
The show command outputs all configuration of the module node under the current
protocol.
Format
show
Parameters
None
Default Value
None
View
Usage Guidelines
You can obtain configuration information of the current node after you enter each
protocol node in the configuration view using this command.
Example
S6800(config)#show
%Command incomplete.
S6800(config)#aaa
S6800(config-aaa)#show
aaa
radius-server test ip-address 1.1.1.1 key 123
S6800(config-aaa)#
Related Commands
None
Function
The user reauth-interval command sets the reauthentication interval of a user when
the number of authentication failures reaches the upper limit.
Format
Parameters
Default Value
Command View
Usage Guidelines
When the number of continuous authentication failures reaches the upper limit, you
need to wait for reauthentication after the reauthentication interval ends.
Example
Related Commands
None
Function
Format
Parameters
Default Value
Deny
View
Usage Guidelines
None
Example
# Permit access from a login user with identical user name and password.
S6800(config)#
Related Commands
None
2.2.47 username
Function
Format
no username user-name
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to change the privilege group of a specified user. Ensure
that the specified user exists in the system. To run this command, you must have the
administrator privilege.
Users on the switch are classified into the following four privilege groups, listed in
descending order of privilege levels:
The administrators group has the highest level and can run any commands. Key
commands or important operations that have great impact on the switch can only be
performed by users in this privilege group. Such operations include user management,
FTP operation, clearing historical records, reducing the number of terminals,
upgrading image and configuration files, and enabling or disabling the FTP/Telnet
function.
The operators group has a lower level than the administrators group, and can run all
commands except those related to key operations requiring the administrators
privilege.
The users group has a lower level than the operators group, and can run all
commands except upgrade, TFTP, SNTP, SNMP, and SGM commands.
The guests group has the lowest level and can run only information display
commands and a few configuration commands, such as ping and debug commands.
Notice that the guests group cannot view important information such as output
information of show logging, show running-config, show snmp config, show
startup-config, and show user config commands.
Example
# Create a user account, with the user name test and group users.
Related Commands
None
The username domain command configures different domains to manage user login
rights and specifies a user to join one or all domains.
Format
Parameters
Default Value
None
View
Usage Guidelines
A new user has only the serial port login permission. The administrator has the right to
use all the login methods (Telnet, FTP, SSH, and serial port).
Example
Related Commands
None
Function
The username group password command creates a user account for logging in to
the switch.
Format
Parameters
Default Value
None
View
Usage Guidelines
If you do not specify a privilege group when using this command to create a user, the
user is added to the default privilege group operators. When creating a dot1x user,
you can only set a password by specifying the simple keyword. If you want to delete a
user but specify a nonexistent user, an operation failure message will be displayed.
Users on the switch are classified into the following four privilege groups, listed in
descending order of privilege levels:
The administrators group has the highest level and can configure users. Users of
other levels do not have the user configuration privilege. The corresponding level is
15.
The operators group can use all commands except the user configuration commands.
This user level can be used for device configuration and management. The
corresponding level is 11.
The users group cannot use ring configuration commands. The corresponding level is
7.
The guests group can only maintain devices and cannot use configuration commands.
The corresponding level is 3.
Example
# Create a user account, with the user name test, privilege group users, and
password test.
Related Commands
None
Format
Parameters
Default Value
Command View
Usage Guidelines
Before running this command, use the username command to create the specified
user.
Example
Related Commands
None
Function
Format
Parameters
Default Value
Command View
Usage Guidelines
The user pwd-complex pwd-complex command sets the password complexity for all
users in the system.
Example
S6800(config)#user pwd-complex 1
S6800(config)#
Related Commands
None
Function
The username pwd-length command sets the password length for a specified user
or all users in the system.
Format
Parameters
Default Value
Command View
Usage Guidelines
If you do not set the user name, the command sets the password length for all users in
the system.
Example
S6800(config)#user pwd-length 32
S6800(config)#
Related Commands
None
2.2.53 who
Function
The who command displays information about the users who have logged in and are
configuring the switch.
Format
who
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to check which users are configuring the switch. The user
name with an asterisk (*) is the one you are using.
Example
# Display information about users who have logged in and are configuring the switch.
S6800(config)#who
Line Location Idle Pri User
* 1 con 1 Console 00:00:00 admin admin
S6800(config)#
Related Commands
None
Function
Format
reset recycle
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#reset recycle
S6800(config)#
Related Commands
None
Function
The show privilege command displays the privilege of the current login user.
Format
show privilege
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
Example
S6800#show privilege
%Current privilege level is 15.
S6800#
Related Commands
None
Function
The show privilege config command displays the privilege configuration of the
current login user.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The no clock timezone command cancels the local time zone configuration.
Format
no clock timezone
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
no debug all
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The terminal color command sets the background color of a virtual terminal. The
system supports the following colors: gray, red, green, yellow, blue, purple, water, and
white.
The no terminal color command cancels the background color setting of a virtual
terminal.
Format
terminal color { gray | red | green | yellow | blue | purple | water | white }
no terminal color
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The terminal length command sets the number of the lines that can be displayed on
the terminal.
Format
no terminal length
Parameters
Default Value
View
Usage Guidelines
You can use this command to set the number of lines displayed on a screen when
using the CLI. If the length is set to 0, the multi-screen display function is disabled.
Example
S6800#terminal length 30
S6800#
Related Commands
None
Function
Format
terminal monitor
no terminal monitor
Parameters
None
Default Value
By default, terminals that log in through the serial port can receive debugging
information, and those that log in through Telnet cannot receive debugging
information.
View
Usage Guidelines
If you need to debug the system, run this command to enable debugging information
display on the terminal. Before using this command, run the logging history command
to set the historical log level to debug.
Example
S6800#terminal monitor
S6800#
Related Commands
None
The terminal timeout command sets the timeout time of a virtual terminal with no
operation performed.
The no terminal timeout command restores the timeout time of a virtual terminal with
no operation performed to the default value.
Format
no terminal timeout
Parameters
Default Value
By default, the timeout time of a virtual terminal with no operation performed is 600s.
View
Usage Guidelines
This command functions like the screen saver program of a PC. Once a console
terminal does not perform any operation within the timeout time, the system will return
to the authentication interface. For a Telnet terminal, its connection with the switch will
be terminated in this case.
Example
# Set the timeout time of a virtual terminal to 5s. That is, the system will return to the
authentication interface if there is no input on the terminal within 5s.
S6800#terminal timeout 5
S6800#
Related Commands
None
The terminal debug-delay command sets the delay time before debugging
information output.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#terminal debug-delay 5
S6800#
Related Commands
None
Function
The show module version command displays the versions of protocol modules.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
ripng : RIPNG_VB3.00.00.00
vlan-mapping : VLANMAPPING_VB3.00.02.00
qinq : QINQ_VB3.00.01.00
ospf : OSPFV2_VB3.00.00.00
bfd : BFD_VX2.10.00.00
lldp : LLDP_VB3.00.01.00
aaa : AAA_VB3.00.00.00
S6800#
Related Commands
None
Format
show reboot
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#show reboot
System will reboot at 2019-08-15 18:00:23
S6800(config)#
Related Commands
None
Function
Format
Parameters
Default Value
Disable
View
Usage Guidelines
None
Example
S6800(config-vlan-1)#statistic enable
S6800(config-vlan-1)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Unlock a command.
Related Commands
None
2.2.69 temporary-password
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config)#temporary-password disable
S6800(config)#
Related Commands
None
2.3.1 case-sensitive
Function
Format
Parameters
Default Value
enable
View
Usage Guidelines
None
Example
S6800(config)#case-sensitive disable
S6800(config)#
Related Commands
None
2.3.2 color
Function
The color command sets the background color of the terminal. The system supports
the following colors: gray, red, green, yellow, blue, purple, water, and white.
Format
no color
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#line vty 1
S6800(config-line)#color blue
Related Commands
None
Function
The command authorization aaa method command sets the AAA authentication
method used for password check at a specified privilege level.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the AAA authentication method used for password check at a specified privilege
level.
Related Commands
None
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-line)#
Related Commands
None
2.3.5 debug-delay
Function
The debug-delay command sets the delay time before debugging information output.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-line)#debug-delay 5
S6800(config-line)#
Related Commands
None
2.3.6 monitor
Function
The monitor command enables the CLI terminal to receive debugging information.
The no monitor command disables the CLI terminal from receiving debugging
information.
Format
monitor
no monitor
Parameters
None
Default Value
By default, terminals that log in through the serial port can receive debugging
information, and those that log in through Telnet cannot receive debugging
information.
View
Usage Guidelines
This command determines whether the virtual terminal can receive debugging
information. If you run monitor, the virtual terminal can receive debugging information.
If you run no monitor, the virtual terminal cannot receive debugging information. This
command can be used in the terminal configuration view.
Example
S6800(config)#line vty 1
S6800(config-line)#monitor
Related Commands
None
2.3.7 language
Function
The language command configures the language of help information displayed on the
user terminal.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-line)#language chinese
S6800(config-line)#
Related Commands
None
2.3.8 length
Function
The length command sets the number of lines that can be displayed on the CLI
terminal.
The no length command restores the number of lines that can be displayed on the
CLI terminal to the default value.
Format
length length
no length
Parameters
Default Value
View
Usage Guidelines
You can use this command to set the number of lines displayed on a screen when
using the CLI. If the length is set to 0, the multi-screen display function is disabled.
Example
# Set the number of lines that can be displayed on the CLI terminal to 30.
S6800(config-line)#length 30
S6800(config-line)#
Related Commands
None
Function
The line console command displays the console terminal configuration view.
Format
line console
Parameters
Default Value
None
View
Usage Guidelines
Using this command, you can enter the console terminal configuration view to set
attributes of the terminal.
Example
S6800(config-line)#line console 1
S6800(config-line)#
Related Commands
None
Function
The line vty command displays the virtual terminal (Telnet connection) view.
Format
Parameters
Default Value
None
View
Usage Guidelines
After logging in to the switch through Telnet, you can use this command to enter the
Telnet terminal configuration view, and then set other attributes of the terminal.
The switch has five virtual terminals by default. That is, five users can log in to the
switch through Telnet concurrently.
Example
S6800(config-line)#line vty 1 5
S6800(config-line)#
Related Commands
None
2.3.11 login
Function
The login command sets the user login mode for a virtual terminal.
The no login command restores the default login mode of a virtual terminal.
Format
login local
no login
Parameters
Default Value
For login through RADIUS authentication, the default authentication method name is
radius.
For login through TACACS+ authentication, the default authentication method name
is tacacs+.
View
Usage Guidelines
You can choose an authentication mode for login based on your needs. The local
authentication mode is simpler and only requires you to create a user name and
password on the switch. To use RADIUS and TACACS+ authentication, you also need
to configure the RADIUS and TACACS+ servers. The RADIUS and TACACS+
authentication modes provide higher security than local authentication.
Example
S6800(config-line)#
Related Commands
None
Function
The login account aaa method command configures the AAA accounting method for
user login.
The no login account aaa method command cancels the AAA accounting method
configured for user login.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The login authentication command configures the authentication mode for user
login.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The kill vty command terminates the connection with a virtual terminal (Telnet or SSH
terminal) and resets the terminal.
Format
Parameters
Default Value
None
View
Usage Guidelines
Virtual terminals are those connecting to the switch through Telnet or SSH.
The switch has five virtual terminals by default. That is, five users can log in to the
switch through Telnet concurrently.
Example
S6800(config)#kill vty 1
Are you sure? (y/n) [y]^I
[OK]
S6800(config)#
Related Commands
None
Function
The show lines command displays the number of users that are allowed to log in to
the switch and information about the users that have logged in.
Format
show lines
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
# Display information about the users that have logged in to the switch.
S6800#show lines
Line Location Idle User
* 1 con 1 Console 00:00:00 admin
2 vty 1
3 vty 2
4 vty 3
5 vty 4
6 vty 5
S6800#
Related Commands
None
2.3.16 timeout
Function
The timeout command sets the timeout time of a virtual terminal with no operation
performed.
The no timeout command restores the timeout time of a virtual terminal with no
operation performed to the default value.
Format
timeout time1
no timeout
Parameters
Default Value
By default, the timeout time of a virtual terminal with no operation performed is 600s.
View
Usage Guidelines
This command functions like the screen saver program of a PC. Once a console
terminal does not perform any operation within the timeout time, the system will return
to the authentication interface. For a Telnet terminal, its connection with the switch will
be terminated in this case.
Example
# Set the timeout time of a virtual terminal to 5s. That is, the system will return to the
authentication interface if there is no input on the terminal within 5s.
S6800(config-line)#terminal timeout 5
S6800(config-line)#
Related Commands
None
2.4.1 cd
Function
The cd command changes the working directory of the current user, enabling the user
to switch between different directories.
Format
cd
cd directory
Parameters
Default Value
None
View
Usage Guidelines
This command enables you to switch between different directories. If you run this
command without specifying directory parameter, you will return to the root directory
of the file system.
The directory specified in the command must exist; otherwise, the S6800 displays the
following error message:
S6800#cd abc
%"Ram:/flash/abc" is not a directory
Example
# Change the working directory of the current user on the S6800 from Ram:/flash to
Ram:/flash/user.
S6800#cd
%Current Directory is "Ram:/flash".
S6800#cd user
%Current Directory is "Ram:/flash/user".
S6800#
Related Commands
dir
2.4.2 copy
Function
The copy command copies the content of one file to another file.
Format
Parameters
Default Value
None
View
Usage Guidelines
The paths and names of the source and destination files are case insensitive and
cannot contain any of the following characters: space, wave line (~), asterisk (*), slash
(/), back slash (\), and colon (:).
If you do not specify a file name when setting the destfile parameter, the destination
file will have the same file name as the source file. However, if the source and
destination files are in the same directory, the destination file name must be specified;
otherwise, the file copy will fail.
Example
# Copy the file clock.sys from the root directory of the flash (assuming that this
directory is the current working directory) to flash: /user/, and set the destination file
name to clock1.sys.
Related Commands
None
2.4.3 del
Function
Format
del file-name
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#del 123
S6800(config)#
Related Commands
None
2.4.4 dir
Function
The dir command displays the directory and file information in the storage device.
Format
dir
dir all
Parameters
Default Value
None
View
Usage Guidelines
This command supports fuzzy match with a wildcard *. If the value is not set, the
output of this command displays directory and file information of the current path.
The following table describes the Attr values in the dir command output.
Item Description
d Indicates a directory. A value without this item indicates a file.
r Indicates a readable directory or file.
w Indicates a writable directory or file.
X Indicates an executable directory or file.
Example
# Display information about all files and directories in the current path.
S6800#dir
Listing Directory Ram:/flash:
attr link uid gid size date time name
---------- ---- ------- ------- --------- ---------- -------- -----
-rwxrwxrwx 1 0 0 0 2100-01-01 07:18:14 bootparam.sys
-rwxrwxrSx 1 0 0 0 2100-01-01 07:18:14 clock.sys
drwxrwxrwx 1 0 0 4096 2100-01-01 07:18:14 user/
drwxrwxrwx 1 0 0 4096 2100-01-01 07:33:14 ssh/
-rwxrwxrwx 1 0 0 0 2100-01-01 07:18:22 swapfile
-rwxrwxrwx 1 0 0 0 2100-01-01 07:18:14 cfgresultfile
drwxrwxrwx 1 0 0 4096 2100-01-01 07:18:14 ifcfg/
-rwxrwxrSx 1 0 0 0 2100-01-01 07:18:18 startcfg
-rwxrwxrwx 1 0 0 0 2100-01-01 07:18:22 execfile
Related Commands
None
Function
The dir tree command displays the content in a directory or its sub-directories.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#
Related Commands
None
2.4.6 execute
Function
Format
execute file-name
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#execute fhn
S6800(config)#
Related Commands
None
2.4.7 find
Function
The find command searches for a file with the specified name.
The find string command searches for a file with the specified string in the file name.
Format
find file-name
Parameters
Default Value
None
View
Usage Guidelines
After you run this command, the system will list the path of the specified file.
Example
S6800(config)#find user
find dir Ram:/flash/user
S6800(config)#
Related Commands
None
2.4.8 ls
Function
The ls command displays file and directory information under the current directory.
Format
ls
ls all
Parameters
None
Default Value
None
View
Usage Guidelines
This command provides a similar function to the dir command. This command
supports fuzzy match with a wildcard *.
If the value is not set, the output of this command displays directory and file
information of the current path.
Example
# Display information about all files and directories in the current path.
S6800#ls
Listing Directory Ram:/flash:
attr link uid gid size date time name
---------- ---- ------- ------- --------- ---------- -------- -----
-rwxrwxrwx 1 0 0 0 2100-01-01 07:18:14 bootparam.sys
Related Commands
None
2.4.9 ls tree
Function
Format
ls tree directory
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#
Related Commands
None
2.4.10 mkdir
Function
Format
mkdir directory
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800#mkdir fhn
S6800#
Related Commands
None
2.4.11 move
Function
The move command moves a source file or wildcard to the target file or directory.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
2.4.12 pwd
Function
Format
pwd
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#pwd
%Current Directory is "Ram:/flash".
S6800#
Related Commands
None
2.4.13 remove
Function
The remove command deletes a specified file from the storage device of the switch in
a recoverable manner.
Format
remove file-name
Parameters
Default Value
None
View
Usage Guidelines
Example
S6800#remove TEMP
S6800#
Related Commands
None
2.4.14 rename
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
If the new file name is the same as an existing directory name or file name, the system
will display an error message.
If the values of src-filename and new-filename do not contain the directory of the file to
be renamed, ensure that the file is saved in the working directory of the current user.
Example
Related Commands
None
2.4.15 rmdir
Function
Format
rmdir directory
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800#rmdir 123
S6800#ls
Listing Directory Ram:/flash:
attr link uid gid size date time name
---------- ---- ------- ------- --------- ---------- -------- -----
-rwxrwxrwx 1 0 0 0 2100-01-01 00:43:08 bootparam.sys
-rwxrwxrSx 1 0 0 0 2100-01-01 00:43:08 clock.sys
Related Commands
None
2.4.16 type
Function
The type command displays the content of a specified binary or text file. The file
system displays the file content in a text file.
Format
type file-name
Parameters
Default Value
None
View
Usage Guidelines
The file system of the S6800 displays files in the text format. If you do not specify the
file directory in the command, the system defaults the directory as the current
directory.
You can use the dir or ls command in the current view to obtain the name of the file
you want to check.
Example
S6800#type startcfg
!System startup configuration
!version V310R230
!2019/01/09 00:18:18
!
hostname S6800
no auth-degenerate
!
logging history 7
!
username admin group administrators password 827ccb0eea8a706c4c34a16891f84e7b
user reauth-interval 10
user fail-count 10
user privilege level administrators password 306b6341993337d4
user privilege level operators password 306b6341993337d4
user privilege level users password 306b6341993337d4
user privilege level guests password 306b6341993337d4
!
snmp trap-history 1024
snmp rich-trap enable
!
vlan 1
!
interface ethernet 0/0/0
!
voice-vlan oui 00:01:e3:00:00:00/24 "Simens phone"
voice-vlan oui 00:03:6b:00:00:00/24 "Cisco phone"
voice-vlan oui 00:04:0d:00:00:00/24 "Avaya phone"
voice-vlan oui 00:60:b9:00:00:00/24 "Philips/NEC phone"
voice-vlan oui 00:d0:1e:00:00:00/24 "Pingtel phone"
voice-vlan oui 00:e0:75:00:00:00/24 "Polycom phone"
voice-vlan oui 00:e0:bb:00:00:00/24 "3Com phone"
!
line console 1
length 24
timeout 0 0
login local
language english
no color
line vty 1 5
length 24
no monitor
timeout 10 0
login local
language english
no color
!
!
interface xgigaethernet 1/0/1
!
interface xgigaethernet 1/0/2
!
interface xgigaethernet 1/0/3
!
interface xgigaethernet 1/0/4
!
interface xgigaethernet 1/0/5
!
interface xgigaethernet 1/0/6
!
interface xgigaethernet 1/0/7
!
interface xgigaethernet 1/0/8
!
S6800#
Related Commands
dir
2.4.17 xcopy
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
The paths and names of the source and destination folders are case insensitive and
cannot contain any of the following characters: space, wave line (~), asterisk (*), slash
(/), back slash (\), and colon (:).
Example
# Copy the folder clock from the root directory of the flash (assuming that this directory
is the current working directory) to flash: /user/.
Related Commands
None
2.4.18 zero
Function
Format
zero filename
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800#zero temp
S6800#
Related Commands
dir
2.5.1 auth-degenerate
Function
Format
auth-degenerate
no auth-degenerate
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#auth-degenerate
S6800(config)#
Related Commands
None
Function
The compare configuration command compares the current configuration with the
configuration file for the next startup to check whether they are consistent.
Format
Parameters
Default Value
None
View
Usage Guidelines
If you do not specify startup-config skip lines in the command, the system compares
whether the current configuration is consistent with the content of the configuration file
used for the next boot.
If you specify startup-config skip lines in the command, the system compares the
current configuration with the specified configuration file.
Example
# Compare the running configuration from line 1 with the saved configuration from line
3.
S6800(config)#compare configuration 1 3
Warning:The current configuration is not the same as the saved configuration!.
====== Running configuration line 2 ======.
hostname S6800
no auth-degenerate
!
!logging configuration.
!
!
!User configuration.
username admin group operators password 827ccb0eea8a706c4c34a16891f84e7b
username 123 group operators password e10adc3949ba59abbe56e057f20f883e
user privilege level administrators password 306b6341993337d4
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
After completing configuration on the switch, you can use this command to copy the
configuration to the running configuration of the system. Then the system runs with
the new configuration.
If you do not run the write file command to save the current configuration, the new
configuration will be lost after a reboot of the switch. To use the new configuration
permanently, run the write file command after copying the configuration.
Example
# After creating VLANs, copy the current configuration to the running configuration.
Related Commands
show running-config
Function
The erase startup-config command deletes the startup configuration file in the
storage device of the switch.
Format
erase startup-config
Parameters
None
Default Value
None
View
Usage Guidelines
After the system software of the switch is upgraded, the configuration file saved in the
storage does not match the new software version. In this case, run this command to
delete the old startup configuration file.
When the switch is used in a new environment, the original configuration file does not
meet requirements of the new application. In this case, you need to delete the old
startup configuration file and re-configure the switch.
If you do not use the write file command to save the configuration after running this
command, the system will be initialized with the default configuration after the next
startup.
Warning
Example
S6800(config)#erase startup-config
This will erase the configuration in the flash memory.
Are you sure? (y/n) [y] y
S6800(config)#
Related Commands
Function
Format
show running-config
Parameters
Default Value
None
View
Usage Guidelines
After completing a series of configuration, you can run this command to check
whether the running system configuration is correct.
Example
S6800#show running-config
!Device running configuration:
!version V310R230
!2019/08/18 13:32:54
!
no auth-degenerate
!
username admin group administrators password $1$kijv$blP5gEaeX6wG6eQLeT3Di0
username super group administrators password $1$kijv$blP5gEaeX6wG6eQLeT3Di0
user privilege level administrators password $9$kijv$e7015e4ca31c3ae839aa564bc4b0f361
user privilege level operators password $9$kijv$e7015e4ca31c3ae839aa564bc4b0f361
user privilege level users password $9$kijv$e7015e4ca31c3ae839aa564bc4b0f361
user privilege level guests password $9$kijv$e7015e4ca31c3ae839aa564bc4b0f361
!
hostname S6800
!
management acl enable
!
temperature 1 trap disable
temperature 2 trap disable
temperature 3 trap disable
!
voltage trap 1 disable
voltage trap 2 disable
!
power 1 trap disable
power 2 trap disable
!
filter-list 1
filter-list 1001
filter-list 2001
filter-list 3001
--More--
S6800#
Related Commands
Function
The show startup-config command displays the configuration file used upon the
next startup of the switch.
Format
show startup-config
Parameters
Default Value
None
View
Usage Guidelines
The startup configuration file is the configuration file that the switch uses when it is
powered on or reboots.
If the switch is powered on successfully but does not work normally after entering CLI,
you can use this command to check the startup configuration file.
If no configuration file is saved in the system, this command cannot display any
information.
Example
# Display the configuration file used upon the next startup of the switch.
S6800#show startup-config
!System startup configuration
!version V310R230
!2019/08/16 09:09:02
!
no auth-degenerate
!
username admin group administrators password $1$kijv$blP5gEaeX6wG6eQLeT3Di0
username super group administrators password $1$kijv$blP5gEaeX6wG6eQLeT3Di0
user privilege level administrators password $9$kijv$e7015e4ca31c3ae839aa564bc4b0f361
user privilege level operators password $9$kijv$e7015e4ca31c3ae839aa564bc4b0f361
user privilege level users password $9$kijv$e7015e4ca31c3ae839aa564bc4b0f361
user privilege level guests password $9$kijv$e7015e4ca31c3ae839aa564bc4b0f361
!
hostname S6800
!
temperature 1 trap disable
temperature 2 trap disable
temperature 3 trap disable
!
voltage trap 1 disable
voltage trap 2 disable
!
vlan 1
!
interface ethernet 0/0/0
!
interface vlan 1
ip address 10.82.20.211/16
!
gratuitous-arp learning enable
!
syslog facility kernel
!
snmp community $9$kijv$c1a221701187cd8ec25a10484d937b5b rw view internet
no snmp community private
!
line console 1
length 24
timeout 10 0
login authentication local
language english
no color
line vty 1 5
length 24
no monitor
timeout 10 0
login authentication local
language english
no color
!
!
interface xgigaethernet 1/0/1
!
interface xgigaethernet 1/0/2
!
interface xgigaethernet 1/0/3
!
interface xgigaethernet 1/0/4
!
interface xgigaethernet 1/0/5
!
interface xgigaethernet 1/0/6
!
interface xgigaethernet 1/0/7
!
interface xgigaethernet 1/0/8
!
interface xgigaethernet 1/0/9
!
interface xgigaethernet 1/0/10
!
interface xgigaethernet 1/0/11
!
interface xgigaethernet 1/0/12
!
interface xgigaethernet 1/0/13
!
interface xgigaethernet 1/0/14
!
interface xgigaethernet 1/0/15
!
interface xgigaethernet 1/0/16
!
interface xgigaethernet 1/0/17
!
interface xgigaethernet 1/0/18
!
interface xgigaethernet 1/0/19
!
interface xgigaethernet 1/0/20
!
interface xgigaethernet 1/0/21
!
interface xgigaethernet 1/0/22
!
interface xgigaethernet 1/0/23
!
interface xgigaethernet 1/0/24
!
interface xgigaethernet 1/0/25
!
interface xgigaethernet 1/0/26
!
interface xgigaethernet 1/0/27
!
interface xgigaethernet 1/0/28
!
interface xgigaethernet 1/0/29
!
interface xgigaethernet 1/0/30
!
interface xgigaethernet 1/0/31
!
interface xgigaethernet 1/0/32
!
interface xgigaethernet 1/0/33
!
interface xgigaethernet 1/0/34
!
interface xgigaethernet 1/0/35
!
interface xgigaethernet 1/0/36
!
interface xgigaethernet 1/0/37
!
interface xgigaethernet 1/0/38
!
interface xgigaethernet 1/0/39
!
interface xgigaethernet 1/0/40
!
ip route-static 0.0.0.0 0.0.0.0 10.82.1.254
!
!
!end
S6800#
Related Commands
show startup-config
Function
Format
type swapfile
Parameters
None
Default Value
None
View
Usage Guidelines
The Swapfile file records commands failed to be executed for configuration restoration
upon the system boot. The file content does not change after configuration restoration
is complete.
If the Swapfile file is blank, the configuration is successfully restored. If the Swapfile
file is not blank, the configuration fails to be restored.
Example
S6800(config)#type swapfile
S6800(config)#
Related Commands
None
The upgrade { os | config } command upgrades the software of the active core
switch card or updates its configuration file.
Format
upgrade { os | config }
Parameters
Default Value
None
View
Usage Guidelines
Example
Related Commands
None
Function
The write file command saves the current system configuration in the startup
configuration file.
Format
write file
Parameters
None
Default Value
None
View
Usage Guidelines
You do not need to specify the path of the startup configuration file because the path
has been written in the system.
If you want to permanently use a series of configuration you complete, run this
command to save the configuration in the current startup configuration file.
Example
S6800#write file
This will save the configuration in the flash memory.
Are you sure? (y/n) [y]y
Building configuration, please wait for a moment...
Begin to write.
Finishing writing the configuration file.
[OK]
S6800#
Related Commands
The tftp get command downloads a remote file using the TFTP protocol and saves it
on the local device. (This command applies to IPv4 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
During device operation and maintenance, you may need to download configuration
files or operating system files to the switch from a host (TFTP server) to modify the
configuration or upgrade the operating system. This command is used to download
such files to the switch.
If you do not specify filename in the command, the downloaded file will have the same
name as the file on the TFTP server.
Before running this command, ensure that the switch can communicate with the TFTP
server, and the user name and password have been configured on the TFTP server.
Note:
It is recommended that you use this command under instruction of technical support
personnel.
Example
# Download the file S6800_OS.bin to the switch from the TFTP server, and save the
file on the switch as v2.4.bin.
Related Commands
tftp put
Function
The tftp put command uploads a local file to a remote TFTP server. (This command
applies to IPv4 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
During device operation and maintenance, you can use this command to upload files
of the switch (including the configuration file) to a remote TFTP server for backup.
Before running this command, ensure that the switch can communicate with the TFTP
server, and the user name and password have been configured on the TFTP server.
In addition, the user account must have the read and write permissions on the TFTP
server. Otherwise, the host will not respond for a long time or the upload task will be
suspended.
Note:
It is recommended that you use this command under instruction of technical support
personnel.
Example
# Upload the configuration file of the switch to the TFTP server, and save the file as
config.ini on the server.
Related Commands
None
Function
The tftp6 get command downloads a remote file using the TFTP protocol and saves it
on the local device. (This command applies to IPv6 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
During device operation and maintenance, you may need to download configuration
files or operating system files to the switch from a host (TFTP server) to modify the
configuration or upgrade the operating system. This command is used download such
files to the switch.
If you do not specify filename in the command, the downloaded file will have the same
name as the file on the TFTP server.
Before running this command, ensure that the switch can communicate with the TFTP
server, and the user name and password have been configured on the TFTP server.
Note:
It is recommended that you use this command under instruction of technical support
personnel.
Example
# Download the file S6800_OS.bin to the switch from the TFTP6 server with the IPv6
address 2001::1, and save the file on the switch as v2.3.bin.
Related Commands
None
Function
The tftp6 put command uploads a local file to a remote TFTP server. (This command
applies to IPv6 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
During device operation and maintenance, you can use this command to upload files
of the switch (including the configuration file) to a remote TFTP server for backup.
Before running this command, ensure that the switch can communicate with the TFTP
server, and the user name and password have been configured on the TFTP server.
In addition, the user account must have the read and write permissions on the TFTP
server. Otherwise, the host will not respond for a long time or the upload task will be
suspended.
Note:
It is recommended that you use this command under instruction of technical support
personnel.
Example
# Upload the configuration file of the switch to the TFTP server, and save the file as
config.ini on the server.
Related Commands
None
2.6.5 tftpd
Function
The tftpd command enables the TFTP server function on the switch.
The no tftpd command disables the TFTP server function on the switch.
Format
tftpd
no tftpd
Parameters
None
Default Value
View
Usage Guidelines
After the TFTP server function is enabled on the switch, the switch acts as a TFTP
server. You can log in to the switch using a TFTP client and upload files to or
download files from the switch. The TFTP server uses the local user name and
password for login authentication.
Example
S6800(config)#tftpd
%TFTP server successfully start!
S6800(config)#
Related Commands
None
2.6.6 tftpd6
Function
The tftpd6 command enables the TFTP6 server function on the switch.
The no tftpd6 command disables the TFTP6 server function on the switch.
Format
tftpd6
no tftpd6
Parameters
None
Default Value
View
Usage Guidelines
After the TFTP6 server function is enabled on the switch, the switch acts as a TFTP6
server. You can log in to the switch using a TFTP6 client and upload files to or
download files from the switch. The TFTP6 server uses the local user name and
password for login authentication.
Example
S6800(config)#tftpd6
%TFTP6 server successfully start!
S6800(config)#
Related Commands
None
Function
The ftp delete command deletes a file from a specified FTP server. (This command
applies to IPv4 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
Note:
It is recommended that you use this command under instruction of technical support
personnel.
Example
Related Commands
None
Function
The ftp6 delete command deletes a file from a specified FTP server. (This command
applies to IPv6 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
Note:
It is recommended that you use this command under instruction of technical support
personnel.
Example
Related Commands
None
Function
The ftp get command downloads a remote file and saves it on the local device. (This
command applies to IPv4 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
During device operation and maintenance, you may need to download configuration
files or operating system files to the switch from a host (FTP server) to modify the
configuration or upgrade the operating system. This command is used download such
files to the switch.
If you do not specify filename in the command, the downloaded file will have the same
name as the file on the FTP server.
Before running this command, ensure that the switch can communicate with the FTP
server, and the user name and password have been configured on the FTP server.
Note:
It is recommended that you use this command under instruction of technical support
personnel.
Example
# Use the user name 123 and password 123 to log in to the FTP server with IP
address 192.168.1.200, download the file S6800.bin to the switch from the FTP server,
and save the file on the switch as v2.4.bin.
Related Commands
ftp put
The ftp put command uploads a local file to a remote FTP server. (This command
applies to IPv4 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
During device operation and maintenance, you can use this command to upload files
of the switch (including the configuration file) to a remote FTP server for backup.
Before running this command, ensure that the switch can communicate with the FTP
server, and the user name and password have been configured on the FTP server. In
addition, the user account must have the read and write permissions on the FTP
server. Otherwise, the host will not respond for a long time or the upload task will be
suspended.
Note:
It is recommended that you use this command under instruction of technical support
personnel.
Example
# Use the user name 123 and password 123 to log in to the FTP server with IP
address 192.168.1.200, upload the configuration file of the switch to the FTP server,
and save the file as config.ini on the server.
S6800(config)#
Related Commands
None
Function
The ftp6 get command downloads a remote file and saves it on the local device. (This
command applies to IPv6 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
During device operation and maintenance, you may need to download configuration
files or operating system files to the switch from a host (FTP server) to modify the
configuration or upgrade the operating system. This command is used download such
files to the switch.
If you do not specify filename in the command, the downloaded file will have the same
name as the file on the FTP server.
Before running this command, ensure that the switch can communicate with the FTP
server, and the user name and password have been configured on the FTP server.
Note:
It is recommended that you use this command under instruction of technical support
personnel.
Example
# Use the user name 123 and password 123 to log in to the FTP server with IP
address 2001::1, download the file S6800.bin to the switch from the FTP server, and
save the file on the switch as v2.4.bin.
Related Commands
ftp6 put
Function
The ftp6 put command uploads a local file to a remote FTP server. (This command
applies to IPv6 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
During device operation and maintenance, you can use this command to upload files
of the switch (including the configuration file) to a remote FTP server for backup.
Before running this command, ensure that the switch can communicate with the FTP
server, and the user name and password have been configured on the FTP server. In
addition, the user account must have the read and write permissions on the FTP
server. Otherwise, the host will not respond for a long time or the upload task will be
suspended.
Note:
It is recommended that you use this command under instruction of technical support
personnel.
Example
# Use the user name 123 and password 123 to log in to the FTP server with IPv6
address 2001::1, upload the configuration file of the switch to the FTP server, and
save the file as config.ini on the server.
Related Commands
ftp6 get
2.6.13 ftpd
Function
The ftpd command enables the FTP server function on the switch. (This command
applies to IPv4 networks.)
The no ftpd command disables the FTP server function on the switch.
Format
ftpd
no ftpd
Parameters
None
Default Value
View
Usage Guidelines
After the FTP server function is enabled on the switch, the switch acts as an FTP
server. You can log in to the switch using an FTP client and upload files to or
download files from the switch. The FTP server uses the local user name and
password for login authentication.
Example
S6800(config)#ftpd
S6800(config)#
Related Commands
None
2.6.14 ftpd6
Function
The ftpd6 command enables the FTP server function on the switch. (This command
applies to IPv6 networks.)
The no ftpd6 command disables the FTP server function on the switch.
Format
ftpd6
no ftpd6
Parameters
None
Default Value
View
Usage Guidelines
After the FTP server function is enabled on the switch, the switch acts as an FTP
server. You can log in to the switch using an FTP client and upload files to or
download files from the switch. The FTP server uses the local user name and
password for login authentication.
Example
S6800(config)#ftpd6
S6800(config)#
Related Commands
None
The debug ftpd command enables debugging of the FTP server on the switch. (This
command applies to IPv4 networks.)
The no debug ftpd command disables debugging of the FTP server on the switch.
Format
debug ftpd
no debug ftpd
Parameters
None
Default Value
View
Usage Guidelines
If the switch acts as an FTP server and experiences a failure or problem, you can use
this command to enable FTP server debugging. This function helps to locate the
problem.
Example
S6800#debug ftpd
S6800#
Related Commands
None
The debug ftpd6 command enables debugging of the FTP server on the switch. (This
command applies to IPv6 networks.)
The no debug ftpd6 command disables debugging of the FTP server on the switch.
Format
debug ftpd6
no debug ftpd6
Parameters
None
Default Value
View
Usage Guidelines
If the switch acts as an FTP server and experiences a failure or problem, you can use
this command to enable FTP server debugging. This function helps to locate the
problem.
Example
S6800#debug ftpd6
S6800#
Related Commands
None
Function
The zmodem get command downloads a file through the console interface of the
switch.
Format
Parameters
Default Value
None
View
Usage Guidelines
This command is used to download files from a PC connected to the console interface
of the S6800 or another device acting as an FTP server.
Note:
The file transfer speed on the console interface is not high; therefore, this method
is not recommended for uploading or downloading large-sized files.
Example
# Download the file STARTCFG through the console interface of the S6800.
S6800(config)#zmodem get
ZMODEM Receive: Waiting for Sender ...
**B0000000039a32
**B0000000039a32
Zmodem-Receive "STARTCFG", 11276 bytes, 0 minutes
If you want to update system,use "upgrade" command!
S6800(config)#
Related Commands
None
Function
The zmodem put command uploads a file through the console interface of the switch.
The zmodem put config command uploads a configuration file through the console
interface of the switch.
Format
Parameters
Default Value
None
View
Usage Guidelines
Note:
The file transfer speed on the console interface is not high; therefore, this method
is not recommended for uploading or downloading large-sized files.
Example
# Upload the file STARTCFG through the console interface of the S6800.
Related Commands
None
Function
Format
debug ssh
no debug ssh
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800#debug ssh
S6800#
Related Commands
None
2.7.2 sshd
Function
Format
sshd
no sshd
Parameters
None
Default Value
View
Usage Guidelines
After the switch is powered on for the first time, you must log in to the switch through
the console interface, enable the SSH function, and complete related SSH
configuration, so that users can log in to the switch using SSH later. Generally, SSH
login is used when there are relatively high security requirements for user login.
Example
S6800(config)#sshd
S6800(config)#
Related Commands
None
Function
The sshd auth command sets the SSH authentication mode, including password
authentication and public key authentication.
Format
Parameters
None
Default Value
By default, the system supports both password authentication and public key
authentication.
View
Usage Guidelines
This command sets the SSH authentication mode. Password authentication and
public key authentication can coexist. Configuring public key authentication will not
disable password authentication, and configuring password authentication will not
disable public key authentication.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
Most of servers support Digital Signature Algorithm (DSA) keys, whereas most of
servers may not support Rivest-Shamir-Adleman (RSA) keys.
Shorter keys provide lower security but take less time in key generation and
verification. Longer keys provide higher security but take more time in key generation
and verification. The recommended key length is 1024.
Example
# Create an SSH public key and set the key length to 1024.
S6800(config)#
Related Commands
None
Function
The ssh login method command sets the authentication method name on the remote
AAA server for SSH user authentication.
Format
Parameters
Default Value
None
View
Usage Guidelines
You can choose an authentication mode for login based on the actual situation.
Example
# Set the SSH user authentication mode to remote AAA authentication, using the
authentication method named fhn radius.
Related Commands
None
Function
The sshd login-grace-time command configures the SSHd login grace time.
Format
Parameters
Default Value
None
View
Usage Guidelines
After you connect to the switch through SSH, the system displays the validity period to
enter the user name and password. If you do not enter the user name and password
within this period, the login authentication fails.
Example
Related Commands
None
Function
Format
telnetd
no telnetd
Parameters
None
Default Value
View
Usage Guidelines
After the IPv4 Telnet service is enabled, you can remotely configure and manage the
device. To ensure device safety, you can set the Telnet service access list for IPv4
addresses, to ensure that trusted persons can configure and maintain the device and
protect the device from remote attacks to the Telnet service with IPv4 addresses.
Example
S6800(config)#no telnetd
S6800(config)#
Related Commands
management acl
2.7.8 telnet6d
Function
Format
telnet6d
no telnet6d
Parameters
None
Default Value
View
Usage Guidelines
After the IPv6 Telnet service is enabled, you can remotely configure and manage the
device. To ensure device safety, you can set the Telnet service access list for IPv6
addresses, to ensure that trusted persons can configure and maintain the device and
protect the device from remote attacks to the Telnet service with IPv6 addresses.
Example
S6800(config)#no telnet6d
S6800(config)#
Related Commands
management acl
2.7.9 telnet|telnet6
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800#telnet 10.18.16.249
Login authentication
Username:
Related Commands
None
Function
The show ssh config command displays the SSH configuration on the switch.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
3.2.1 alias
Function
Format
alias alias-name
no alias
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), VLAN configuration view, VLANIF
configuration view, interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The current port command displays information about the current interface.
Format
current port
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-xge1/0/2->ge1/0/5)#current port
Current port:
xge-1/0/2-xge-1/0/5
Related Commands
None
3.2.3 flow-control
Function
Format
Parameters
Default Value
View
Usage Guidelines
After the flow control function is enabled on an interface, this function takes effect in
the following way if the rate of received traffic reaches the upper limit:
The local interface sends a special data frame to inform the remote device that the
traffic rate has reached the upper limit of the local data processing capability.
After the remote device receives the data frame, it reduces the packet transmission
rate to ensure that the local device can process the received packets normally.
This function prevents packet loss and ensures normal network operation.
Note:
Interfaces at both ends must have the flow control function enabled to ensure effective
flow control.
Example
S6800(config-xge1/0/1)#flow-control enable
S6800(config-xge1/0/1)#
Related Commands
show interface
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
3.2.5 interface
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
To set parameters of an interface, you need to enter the interface configuration view
using this command. If a trunk interface has no member interfaces, all commands are
invalid on the trunk interface.
Example
Related Commands
show interface
Function
The interface group command displays the batch interface configuration view.
Format
Parameters
Default Value
None
View
Usage Guidelines
If the same configuration needs to be performed on multiple interfaces, you can use
this command to enter the batch interface configuration view. This simplifies the
interface configuration and reduces the configuration workload.
Example
Related Commands
None
Function
The Interface loopback command enables the system to display the loopback
interface view.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#interface loopback 1
S6800(config-loopback-1)#
Related Commands
None
3.2.8 port-uniisolate
Function
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The debug port-isolate command enables debugging of Layer-2 and Layer-3 port
isolation.
Format
debug port-isolate
no debug port-isolate
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#debug port-isolate
S6800#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#port-isolate mode l2
S6800(config)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#port-isolate group 1
S6800(config-isolate-group1)#
Related Commands
add interface
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Example
Related Commands
port-isolate group
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#port-isolate group 1
S6800(config-isolate-group1)#add interface xgigaethernet 1/0/1
S6800(config-isolate-group1)#
Related Commands
port-isolate group
3.2.14 mtu
Function
The mtu command sets the MTU for interfaces on the switch.
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
out-of-band interface configuration view
Usage Guidelines
You can use this command to set the MTU for interfaces on the switch.
Example
S6800(config-xge1/0/1)#mtu 1200
S6800(config-xge1/0/1)#
Related Commands
show interface
Function
Format
Parameters
Default Value
View
Usage Guidelines
When an Ethernet interface works in auto-negotiation mode, it can negotiate with the
remote interface to determine their duplex mode and rate. Whether auto-negotiation
should be enabled on an interface depends on whether the remote interface supports
auto-negotiation and whether the two interfaces are expected to work in
auto-negotiation mode.
When an Ethernet interface of the S6800 works in auto-negotiation mode, the remote
interface connected to it must also work in auto-negotiation mode.
Example
Related Commands
None
Function
The port-down holdoff-timer command sets the delay time before reporting an
interface down event.
Format
Parameters
Default Value
The default delay time is 0 ms, indicating that an interface down event is reported
immediately.
View
Usage Guidelines
Example
# Set the delay time before reporting an interface down event to 150 ms.
Related Commands
None
3.2.17 priority
Function
Format
priority priority-level
Parameters
Default Value
View
Usage Guidelines
After you run the priority command on an interface, the default 802.1q priority of
untagged packets received by the interface is set to the value specified in the
command.
Example
S6800(config-xge1/0/1)#priority 1
S6800(config-xge1/0/1)#
Related Commands
show interface
3.2.18 rate-limit
Function
Format
no rate-limit { in | out }
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Example
# Set the inbound bandwidth of Ethernet interface xgigaethernet 1/0/1 to twice the
bandwidth granularity ( 2 × 16 kbit/s).
S6800(config-xge1/0/1)#rate-limit in 2
S6800(config-xge1/0/1)#
Related Commands
show interface
Format
reset counter
Parameters
None
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
S6800(config-xge1/0/1)#reset counter
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
show interface
Common user view, privileged user view, global configuration view, interface
configuration view (Trunk), Schedule-profile configuration view
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view,
Schedule-profile configuration view
Usage Guidelines
If you run show interface command and do not specify the interface type and number,
the command displays information about all Ethernet interfaces on the switch,
including their interface numbers, status, whether they are bound to filters, their
inband IP addresses, and descriptions. If you specify the interface type and number in
the command, the command displays information about the specified interface,
including its duplex mode, rate, broadcast storm control function status, and packet
statistics. If you specify config in the command, the displays other function
configuration on the interface.
If you run show interface trunk command and do not specify the interface number,
the command displays all the trunk interfaces that have been configured on the switch,
the traffic distribution algorithms used on the trunk interfaces, and their member
interface numbers.
If you run show interface verbose command, the command displays basic
information about all Ethernet interfaces and trunk interfaces (if any) on the switch.
Generally, commands described in this section are used to collect traffic statistics or
diagnose faults on interfaces.
Example
65-127 octets:0/0
128-255 octets:0/0
256-511 octets:0/0
512-1023 octets:0/0
1024-1518 octets:0/0
>1518 octets:0/0
Other statistic:
fragments:0/0
Jabbers:0/0
CRC errors:0/0
Collisions:0/0
Undersize:0/0
Oversize:0/0
S6800#
Related Commands
None
Function
The show port-isolate config command displays the configuration of all port
isolation groups.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), and interface group configuration view
Usage Guidelines
None
Example
S6800#
Related Commands
None
Function
The show port-isolate group command displays information about all or specified
port isolation groups.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), and interface group configuration view
Usage Guidelines
None
Example
Related Commands
add interface
Function
The show port-isolate information command displays information about all port
isolation groups.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), and interface group configuration view
Usage Guidelines
None
Example
Related Commands
add interface
The show port-uniisolate online interface command displays the configuration of all
meaningful unidirectional port isolation.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Generally, commands described in this section are used to collect traffic statistics or
diagnose faults on interfaces.
If you do not specify an interface number when running this command, the command
displays statistics about ingress and egress packets on all the working interfaces on
the switch in the order of interface numbers.
Example
Related Commands
show interface
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
eth-trunk-1 32769
vlan-1 49153
S6800>
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Disable flush of the MAC address table upon changes of interface link status.
Related Commands
None
3.2.28 speed
Function
Format
Parameters
Default Value
View
Usage Guidelines
If two interconnected interfaces do not work at the same speed, use this command to
change their rates to the same value so that the two interfaces can communicate
normally.
If the remote Ethernet interface does not support auto-negotiation, use the negotiation
auto command to configure the local interface to work in non-auto-negotiation mode,
and then change the local interface speed to the same value as that of the remote
interface, to ensure normal communication between the interfaces.
Note:
The combo optical interface supports only the auto or 1000 Mbit/s mode. If another
rate is set, the optical interface cannot be up.
The combo electrical interface supports auto, 10 Mbit/s, 100 Mbit/s, and 1000 Mbit/s.
Example
S6800(config-xge1/0/1)#speed 100
S6800(config-xge1/0/1)#
Related Commands
None
3.2.29 storm-control
Function
The storm-control command configures storm control for broadcast, multicast, and
unknown unicast packets on an Ethernet interface.
Format
Parameters
Default Value
By default, rates of broadcast, multicast, and unknown unicast packets are not limited
on an interface.
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
To prevent waste of network resources, you can use this command to set a rate limit
on broadcast, multicast, or unknown unicast packets based on actual situation of your
network. The rate limit prevents such packets from consuming much bandwidth so
that operation of user services can be guaranteed.
Note:
Example
# Set a rate limit in packets per second for broadcast packets on Ethernet interface
xgigaethernet 1/0/1.
Related Commands
show interface
3.2.30 shutdown
Function
Format
shutdown
no shutdown
Parameters
None
Default Value
View
Interface configuration view (Ethernet and trunk), VLANIF configuration view, interface
group configuration view, out-of-band interface configuration view, tunnel interface
configuration view
Usage Guidelines
If you modify the attributes of an interface but the new configuration does not take
effect immediately, run the shutdown and no shutdown commands to shut down
and then start the interface. The new configuration can then take effect.
If an interface is idle (with no cable connected), run the shutdown command to shut
down the interface. This prevents exceptions caused by interference.
If you run the shutdown command in the trunk interface view, all member interfaces
of the trunk interface will be shut down.
Note:
If an interface is shut down during data transmission, data will be lost. Exercise
caution when using this command.
Example
S6800(config-xge1/0/1)#shutdown
S6800(config-xge1/0/1)#
Related Commands
show interface
Function
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The transceiver type command configures an optical or electrical module type for an
interface.
The no transceiver type command restores the default module type for an interface.
Format
no transceiver type
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show storm-control interface command displays the storm control information
on an interface.
The show storm-control vlan command displays the storm control information on a
VLAN interface.
The show storm-control vsi command displays the storm control information in a
VSI instance.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#debug arp in
[ARP];info=receive request 10.18.12.101 not target for me and no found arp proxy, discard packet
... Omitted.
S6800#
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The mac aging-time command sets the aging time of dynamic MAC address entries.
Format
Parameters
Default Value
View
Usage Guidelines
If the aging time is set to 0, dynamic MAC address entries will not age out.
The system starts an aging timer for each dynamic MAC address entry. A dynamic
MAC address entry will be deleted if it is not updated within a time period twice the
aging time. If the MAC address entry is updated within this time period, the system
resets its aging timer.
Note:
Once the system is reset or a line card is hot plugged or reset, dynamic entries are
lost, but the stored static entries and blackhole entries are not aged or lost.
Example
Related Commands
None
Function
Format
no mac-address static
Parameters
Default Value
View
Usage Guidelines
None
Example
# Create a static MAC address entry in VLAN 2, with destination MAC address
00:02:00:02:00:02, and outbound interface xgigaethernet 1/0/1. That is, frames with
destination MAC address 00:02:00:02:00:02 and belonging to VLAN 2 will be
forwarded through outbound interface xgigaethernet 1/0/1.
Related Commands
None
Format
no mac-address blackhole
Parameters
Default Value
View
Usage Guidelines
Blackhole MAC address entries can prevent theft of data using embezzled user
identities, enhancing system security.
After you create a blackhole MAC address entry using this command, any data frames
with the specified MAC address as the source or destination MAC address will be
discarded.
Example
# Create a blackhole MAC address entry, with the destination MAC address
00:00:00:01:02:03 and outbound VLAN 10.
Related Commands
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
When the switch receives an Ethernet frame from another device, it obtains the
source MAC address of the frame, binds the MAC address with the inbound interface
of the frame, and adds this entry to the MAC address table. This process is called
MAC address learning. After the new MAC address entry is learned, all the Ethernet
frames destined for this MAC address are forwarded to the matching interface. This
prevents broadcast of Ethernet frames.
Example
S6800(config-eth-trunk-1)#mac-learning enable
S6800(config-eth-trunk-1)#
Related Commands
None
The mac-learning priority command configures the priority of MAC address learning
for an interface.
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
After MAC address learning priorities are configured on interfaces, MAC address
entries learned on an interface with a higher priority override the MAC address entries
learned on an interface with a lower priority. If multiple interfaces have the same
priority, you can run the mac-learning allow-flapping command to configure whether to
allow MAC address entry overriding between these interfaces.
Example
S6800(config-eth-trunk-1)#mac-learning priority 3
S6800(config-eth-trunk-1)#
Related Commands
mac-learning priority
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
After MAC address learning priorities are configured on interfaces, MAC address
entries learned on an interface with a higher priority override the MAC address entries
learned on an interface with a lower priority. If multiple interfaces have the same
priority, you can run the mac-learning allow-flapping command to configure whether to
allow MAC address entry overriding between these interfaces.
Example
Related Commands
mac-learning priority
The mac-learning mode command configures the MAC address learning mode.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
3.3.8 mac-limit
Function
The mac-limit action command sets a MAC address learning limit and action for
handling packets beyond the limit.
Format
mac-limit limit-value
Parameters
Default Value
View
Global configuration view, interface configuration view (Ethernet and trunk), VLAN
configuration view, interface group configuration view
Usage Guidelines
This command limits the number of MAC address entries learned in the system,
thereby controlling the number of access users or preventing attacks to the MAC
address table.
Example
# Set the maximum number of MAC addresses that can be learned on interfaces in
VLAN 1 to 1000. Packets carrying new MAC addresses will be dropped after 1000
MAC addresses are learned.
Related Commands
show mac-limit
Function
Format
Parameters
Default Value
View
Global configuration view, interface configuration view (Ethernet and trunk), VLAN
configuration view, interface group configuration view
Usage Guidelines
This command enables the system to generate an alarm when the number of MAC
addresses exceeds the limit.
Example
# Enable the system to generate an alarm when the number of MAC addresses
learned on an interface reaches the limit.
Related Commands
show mac-limit
3.3.10 no mac-address
Function
Format
no mac-address
no mac-address mac-address
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to delete all MAC address entries in the system.
Example
S6800(config)#no mac-address
S6800(config)#
Related Commands
None
Function
The no mac-address dynamic command deletes all dynamic MAC address entries
on the switch.
Format
no mac-address dynamic
Parameters
Default Value
None
View
Usage Guidelines
This command can delete global dynamic MAC address entries or specific dynamic
MAC address entries according to the VLAN, VLAN+MAC address, MAC address,
interface, or slot.
Example
Related Commands
Format
show mac-address
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
This command enables you to quickly find information about specific MAC address
entries.
For example, you can check those with a specified destination MAC address or those
with a specified destination MAC address and a specified VLAN ID.
Example
S6800(config)#
Related Commands
None
Function
The show mac-address config command displays the configuration of the MAC
address table.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The show mac-address summary command displays the total number of MAC
address entries.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
10 9 0 4 5
S6800#
Related Commands
None
Function
The show mac-address verbose command displays information about all MAC
address entries.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
S6800(config)#
Related Commands
None
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
10 10:11:22:33:44:55 discard
S6800(config)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
S6800(config)#
S6800(config)#
Related Commands
None
Function
The show mac info command displays basic information about MAC addresses.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show mac-limit command displays the MAC address learning limit configured on
the switch.
Format
show mac-limit
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLAN configuration view, interface group
configuration view
Usage Guidelines
You can use this command to check the MAC address learning limit configured
globally, on a specified interface, or on a specified VLAN.
Example
S6800#
Related Commands
None
The show mac-address static command displays information about static MAC
address entries.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
S6800(config)#
Related Commands
None
Function
The debug arp {in|out|error|all} command enables the debugging for sent and
received ARP packets.
The no debug arp {in|out|error|all} command disables the debugging of ARP packet
sending and receiving.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#debug arp in
[ARP];info=receive request 10.18.12.101 not target for me and no found arp proxy, discard packet
... Omitted.
S6800#
Related Commands
None
Function
The debug arp dst-addr command enables the debugging for sent and received ARP
packets with the specified destination IP address.
The no debug arp dst-addr command disables the debugging for sent and received
ARP packets with the specified destination IP address.
Format
Parameters
Default Value
By default, debugging for received and sent ARP packets with the specified
destination IP address is disabled.
View
Usage Guidelines
None
Example
# Enable the debugging for sent and received ARP packets with the specified
destination IP address.
Related Commands
None
Function
The debug arp src-addr command enables the debugging for sent and received ARP
packets with the specified source IP address.
The no debug arp src-addr command disables the debugging for sent and received
ARP packets with the specified source IP address.
Format
Parameters
Default Value
By default, debugging for received and sent ARP packets with the specified source IP
address is disabled.
View
Usage Guidelines
None
Example
# Enable the debugging for sent and received ARP packets with the specified source
IP address.
Related Commands
None
Function
The debug arp-probe command enables debugging of ARP probing and ARP entry
synchronization.
The no debug arp-probe command disables debugging of ARP probing and ARP
entry synchronization.
Format
Parameters
Default Value
View
Privileged user view, global configuration view, interface configuration view (Ethernet
and trunk), VLANIF configuration view, interface group configuration view, VLAN
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
debug arp-miss
no debug arp-miss
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800#debug arp-miss
S6800#
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
The arp-limit maxnum command sets the maximum number of dynamic ARP entries
that can be learned on a VLANIF interface.
The no arp-limit command cancels the limit on the number of dynamic ARP entries
that can be learned on a VLANIF interface.
Format
no arp-limit
Parameters
Default Value
View
Usage Guidelines
After you configure the interface using this command, the switch does not learn new
ARP entries if the number of ARP entries learned on the interface exceeds the limit
specified in the command. However, the switch does not delete the learned ARP
entries and only displays a limit exceeding message.
Example
# Set the maximum number of dynamic ARP entries learned on interface VLAN 2 to
10.
Related Commands
The arp-limit vlan maxnum command sets the maximum number of dynamic ARP
entries that can be learned on an interface.
The no arp-limit vlan command cancels the limit on the number of dynamic ARP
entries that can be learned on an interface.
Format
Parameters
Default Value
View
Usage Guidelines
After you configure the interface using this command, the switch does not learn new
ARP entries if the number of ARP entries learned on the interface exceeds the limit
specified in the command. However, the switch does not delete the learned ARP
entries and only displays a limit exceeding message.
Example
# Set the maximum number of dynamic ARP entries that can be learned in VLAN 10
on interface xgigaethernet1/0/7 to 10.
Related Commands
Function
The arp-miss anti-attack rate-limit pkt-num sets the rate limit for ARP Miss
messages.
Format
Parameters
Default Value
100
View
Usage Guidelines
If the number of ARP Miss messages triggered by received IP packets exceeds the
rate limit for ARP Miss messages within the rate limit time, the device ignores the ARP
Miss messages beyond the rate limit and discards the IP packets that trigger the ARP
Miss messages (that is, ARP Miss packets).
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
3.4.12 ip arp
Function
The ip arp command creates a static ARP entry on an Ethernet interface or trunk
interface. Configuration under multi-instance VPN is also supported.
Format
no ip arp ip-address
Parameters
Default Value
By default, the system has no ARP entries and learns MAC and IP address mappings
through dynamic ARP.
View
Usage Guidelines
Static ARP entries can only be deleted manually, and will not be aged out or updated
dynamically. These static ARP entries are always effective during normal operation of
the switch.
The IP address specified in a static ARP entry must be on the same network segment
as the local IP address in the VLAN and cannot be the same as the local IP address.
The interface specified by trunk-number must be added to the VLAN on the same
network segment as the IP address in the static ARP entry.
Note:
The ip-address specified in the command must be on the same network segment as
the IP address of the interface specified by interface-number.
Currently, the switch does not support static ARP entry configuration on member
interfaces of a trunk interface.
Example
# Configure the VPN instance fhn and bind it with an ARP entry, in which the IP
address is 10.18.2.123, the MAC address is 00:04:67:00:00:01, and outbound
interface is xgigaethernet 1/0/1.
Related Commands
None
The ip arp vni source-ip peer-ip command creates a VXLAN static ARP entry.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ip arp detect-times command configures the number of aging detection times for
dynamic ARP entries.
Format
Parameters
Default Value
By default, the number of aging detection times for dynamic ARP entries is 3.
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ip arp aging-time command sets the aging time of dynamic ARP entries.
The no ip arp aging-time command restores the aging time of dynamic ARP entries
to the default value.
Format
Parameters
Default Value
View
Usage Guidelines
Setting an appropriate aging time of dynamic ARP entries can reduce the address
resolution errors caused by slow updates of dynamic ARP entries.
Example
Related Commands
None
The flush arp command deletes static, dynamic, or all ARP entries.
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to manually delete all dynamic ARP entries if needed.
This command cancels mappings between IP and MAC addresses, which may lead to
temporary access failures to some nodes. Therefore, exercise caution when using this
command.
Example
Related Commands
None
The show arp-probe config command displays the ARP probing configuration.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show arp-probe database command shows major content of all ARP entries
notified by the kernel or obtained through active/standby synchronization.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, VLAN configuration view
Usage Guidelines
You can use this command to view all ARP entry information notified by the kernel or
obtained through active/standby synchronization.
Example
Related Commands
None
Function
The show arp-probe database verbose command displays all content of all ARP
entries reported by the kernel or obtained through active/standby synchronization.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, VLAN configuration view
Usage Guidelines
None
Example
Interface : vlan-1
Out Port : xge-1/0/29
State : reachable
Send Time : 0 days 0 hours 59 minutes 1 seconds
VPN Instance : public
Destination Ip Address : 10.82.22.56
Mac Address : D4:3D:7E:67:46:36
Interface : vlan-1
Out Port : xge-1/0/29
State : reachable
Send Time : 0 days 4 hours 7 minutes 38 seconds
VPN Instance : public
Destination Ip Address : 10.82.90.251
Mac Address : 00:23:24:87:01:D8
Interface : vlan-1
Out Port : xge-1/0/29
State : reachable
Send Time : 0 days 4 hours 17 minutes 43 seconds
VPN Instance : public
Destination Ip Address : 10.82.93.251
Mac Address : 90:FB:A6:0C:61:92
Interface : vlan-1
Out Port : xge-1/0/29
State : reachable
Send Time : 0 days 0 hours 20 minutes 42 seconds
VPN Instance : public
Destination Ip Address : 10.82.251.248
Mac Address : 44:87:FC:CC:74:A7
Interface : vlan-1
Out Port : xge-1/0/29
State : reachable
Send Time : 0 days 1 hours 10 minutes 23 seconds
VPN Instance : public
S6800#
Related Commands
None
The show arp-probe global command displays global information and relevant
statistics.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, VLAN configuration view
Usage Guidelines
None
Example
Related Commands
None
The show arp config command displays the ARP configuration on the switch.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, interface group
configuration view
Usage Guidelines
None
Example
S6800(config)#
Related Commands
None
Function
The show arp learning strict command displays the current ARP learning mode of
all VLANs.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, interface group
configuration view
Usage Guidelines
None
Example
Interface LearningStrictState
Vlanif1 disable
Vlanif2 disable
Vlanif10 disable
Vlanif100 disable
Vlanif4001 disable
Vlanif4002 disable
Total:6
strict enable:0
strict disable:6
strict trust:0
S6800(config)#
Related Commands
None
Function
The show arp-limit maxnum command sets the maximum number of dynamic ARP
entries that can be learned on each interface.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, interface group
configuration view
Usage Guidelines
You can use this command to check the numbers of ARP entries on different
interfaces and specific ARP entries.
Example
Total:1
S6800(config)#
Related Commands
None
Function
The show arp-miss config command displays the ARP Miss configuration.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ip arp command displays ARP information matching the specified
condition, including the ARP dynamic address statistics and aging time of ARP
mapping entries. Configuration under multi-instance VPN is also supported.
Format
show ip arp
Parameters
View
Usage Guidelines
You can use this command to check the numbers of ARP entries on different
interfaces and specific ARP entries.
Example
S6800#show ip arp
Arp aging time: 1200(s)
Total: 1 Dynamic: 1 Static: 0 Other: 0
Destination Mac-addr Type Aging Vlan Interface Vpn-instance
192.168.11.118 e005:c56e:b8e2 dynamic 1152 1 xge-1/0/2 N/A
S6800#
Related Commands
None
3.5.1 active-linknumber
Function
The active-linknumber command sets the maximum and minimum numbers of active
member interfaces in a link aggregation group.
Format
Parameters
Default Value
View
Usage Guidelines
The number of active member links in a link aggregation group (trunk interface)
affects the state and bandwidth of the trunk interface. To ensure stability of the trunk
interface, set the minimum or maximum number of active member interfaces, thereby
reducing the impact of member link state changes on the trunk interface.
If the number of member links in Up state is smaller than the minimum number, the
trunk interface state changes to Down. Setting the minimum value of active links
ensures the minimum bandwidth of the trunk interface.
If the number of member links in Up state reaches the maximum value, the bandwidth
of the trunk interface will not increase after more member links change to Up state.
Setting the maximum number of active links improves network reliability while
ensuring sufficient bandwidth on the trunk interface.
The minimum number of active member interfaces must be smaller than the maximum
number of active member interfaces that has been configured for the trunk interface.
Example
# On trunk 1, set the maximum number of active member interfaces to 6 and the
minimum number of active member interfaces to 2.
S6800(config-eth-trunk-1)#active-linknumber max 6
S6800(config-eth-trunk-1)#
S6800(config-eth-trunk-1)#active-linknumber min 2
S6800(config-eth-trunk-1)#
Related Commands
None
3.5.2 add
Function
The add command adds a member interface in the trunk interface configuration view.
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to bind multiple physical interfaces into a logical interface
(trunk interface). Each physical interface is called a member interface. Link
aggregation technology (trunk) can increase link bandwidth, enhance link reliability,
and implement load balancing.
Before using this command, run the interface trunk command to create a trunk
interface first.
The S6800 supports cross-card trunk interfaces. That is, interfaces on different line
cards can be bound to one trunk interface.
The S6800 supports a maximum of 32 trunk interfaces and allows each trunk interface
to have a maximum of 8 member interfaces. Member interfaces of the same trunk
interface must have the same settings of the following attributes. Otherwise, they
cannot be bound to the same trunk interface.
Link type
Speed
Duplex mode
You are also advised to use the same settings for other interface attributes, including
but not limited to:
Rate limits for broadcast, multicast, and unknown unicast packets for storm control
Dropping of broadcast, multicast, and unknown unicast packets for storm control
VLAN mapping
QinQ
Interface priority
Attributes of member interfaces cannot be changed individually. You can only change
the attributes of the trunk interface, which will change the corresponding attributes of
all member interfaces.
To ensure normal communication between the devices connected by a trunk link, you
must ensure consistent settings of the following physical attributes on both ends in
addition to consistent physical attribute settings of trunk member interfaces:
Example
Related Commands
None
The debug lacp command enables debugging of the Link Aggregation Control
Protocol (LACP) module.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
3.5.5 no {xgigaethernet|40gigaethernet|100gigaethernet}
Function
The no {xgigaethernet|40gigaethernet|100gigaethernet} to
{xgigaethernet|40gigaethernet|100gigaethernet} command batch deletes multiple
member interfaces from a trunk interface.
Format
Parameters
Default Value
None
View
Usage Guidelines
You can delete trunk members in batches using this command only after you add
Ethernet interfaces to the trunk interface using the add command.
Example
Related Commands
add
The interface eth-trunk command creates a trunk interface and displays the trunk
interface configuration view.
Format
Parameters
Default Value
None
View
Usage Guidelines
If the specified trunk interface has been created, this command displays the trunk
interface configuration view directly.
When you delete an existing trunk interface, the system first deletes member
interfaces of the trunk interface. You do not need to delete the member interfaces
manually.
Example
S6800(config)#interface eth-trunk-1
S6800(config-eth-trunk-1)#
Related Commands
None
The no join eth-trunk command deletes an interface from a specified trunk interface.
Format
no join eth-trunk
Parameters
Default Value
View
Usage Guidelines
You can use this command to bind multiple physical interfaces into a logical interface
(trunk interface). Each physical interface is called a member interface. Link
aggregation technology (trunk) can increase link bandwidth, enhance link reliability,
and implement load balancing.
Before using this command, run the interface trunk command to create a trunk
interface first.
The S6800 supports cross-card trunk interfaces. That is, interfaces on different line
cards can be bound to one trunk interface.
The S6800 supports a maximum of 32 trunk interfaces and allows each trunk interface
to have a maximum of 8 member interfaces. Member interfaces of the same trunk
interface must have the same settings of the following attributes. Otherwise, they
cannot be bound to the same trunk interface.
Link type
Speed
Duplex mode
You are also advised to use the same settings for other interface attributes, including
but not limited to:
Rate limits for broadcast, multicast, and unknown unicast packets for storm control
Dropping of broadcast, multicast, and unknown unicast packets for storm control
VLAN mapping
QinQ
Interface priority
Attributes of member interfaces cannot be changed individually. You can only change
the attributes of the trunk interface, which will change the corresponding attributes of
all member interfaces.
To ensure normal communication between the devices connected by a trunk link, you
must ensure consistent settings of the following physical attributes on both ends in
addition to consistent physical attribute settings of trunk member interfaces:
Example
S6800(config-xge1/0/3)#join eth-trunk-1
%Join eth-trunk-1 successfully.
S6800(config-xge1/0/3)#
Related Commands
None
Function
The lacp system-priority command sets the global LACP system priority.
Format
Parameters
Default Value
32768
View
Usage Guidelines
None
Example
Related Commands
None
3.5.9 load-balance
Function
The load-balance command sets the load balancing mode for trunk interfaces.
Format
Parameters
Default Value
srcdst-mac
View
Usage Guidelines
This command enables data traffic to be distributed on different member links properly
and finally reach the same destination, preventing link congestion. Choose an
appropriate load balancing mode based on actual situation on your network. Generally,
load balancing based on more frequently changing variables can ensure more
balanced traffic distribution on member links.
The traffic distribution algorithm configured in global configuration mode is valid to all
trunk interfaces.
Load balancing applies only to egress traffic; therefore, different load balancing
modes can be set on two ends of the trunk link.
If you run this command multiple times, the last configured load balancing mode takes
effect.
Example
S6800(config)#load-balance dst-ip
S6800(config)#
Related Commands
None
Function
The ipv4 field command configures the load balancing mode of IPv4 packets in the
enhanced load balancing template.
The no ipv4 field command deletes the configured load balancing mode of IPv4
packets in the enhanced load balancing template.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Set the load balancing mode of IPv4 packets in the enhanced load balancing
template 123 to VLAN-based load balancing.
Trunk interface:
schedule-profile: 123
Packet HashField
L2 src-mac dst-mac src-mac dst-mac vlan
IPV4 src-ip dst-ip vlan
IPV6 src-ip dst-ip
MPLS top-label 2nd-label
Trunk interface:
ecmp load-balance schedule-profile
S6800(config-schedule-profile-123)#
Related Commands
show schedule-profile
Function
The ipv6 field command configures the load balancing mode of IPv6 packets in the
enhanced load balancing template.
The no ipv6 field command deletes the configured load balancing mode of IPv6
packets in the enhanced load balancing template.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Set the load balancing mode of IPv6 packets in the enhanced load balancing
template 123 to VLAN-based load balancing.
Trunk interface:
schedule-profile: 123
Packet HashField
L2 src-mac dst-mac src-mac dst-mac vlan
IPV4 src-ip dst-ip vlan
IPV6 src-ip dst-ip vlan
Trunk interface:
ecmp load-balance schedule-profile
S6800(config-schedule-profile-123)#
Related Commands
show schedule-profile
3.5.12 l2 field
Function
The l2 field command configures the load balancing mode of L2 packets in the
enhanced load balancing template.
The no l2 field command deletes the configured load balancing mode of L2 packets
in the enhanced load balancing template.
Format
Parameters
Default Value
View
Usage Guidelines
If this command is executed for multiple times, the load balancing mode configured for
L2 packets by the last command applies.
If you run the no l2 field command to delete all configuration of the L2 field, the
configuration restores to the default configuration.
Example
# Set the load balancing mode of L2 packets in the enhanced load balancing template
123 to l2-protocol.
Related Commands
show schedule-profile
Function
The mpls field command configures the load balancing mode of MPLS packets in the
enhanced load balancing template.
The no mpls field command deletes the configured load balancing mode of MPLS
packets in the enhanced load balancing template.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Set the load balancing mode of MPLS packets in the enhanced load balancing
template 123 to vlan.
Trunk interface:
schedule-profile: 123
Packet HashField
L2 src-mac dst-mac src-mac dst-mac vlan
IPV4 src-ip dst-ip vlan
IPV6 src-ip dst-ip vlan
MPLS top-label 2nd-label vlan
Trunk interface:
ecmp load-balance schedule-profile
S6800(config-schedule-profile-123)#
Related Commands
show schedule-profile
3.5.14 mode
Function
The mode command sets or changes the working mode of a trunk interface.
Format
Parameters
Default Value
View
Usage Guidelines
Manual load balancing mode: You need to manually create a trunk interface and add
member interfaces to it. Multiple member interfaces manually added to the trunk
interface can perform load balancing.
Static LACP mode: The two ends of the link use the LACP protocol to negotiate trunk
interface parameters and choose active member interfaces to forward data traffic.
Before changing the working mode of a trunk interface, make sure that the trunk
interface does not contain any member interfaces.
Example
S6800(config-eth-trunk-1)#mode lacp-static
S6800(config-eth-trunk-1)#
Related Commands
None
3.5.15 schedule-profile
Function
Format
schedule-profile profile-name
no schedule-profile profile-name
Parameters
Default Value
None
View
Usage Guidelines
Currently, the S6800 supports only one enhanced load balancing template.
Example
# Create an enhanced load balancing template named 1 and enter the template view.
S6800(config)#schedule-profile 1
S6800(config-schedule-profile-1)#
Related Commands
None
Format
Parameters
Default Value
None
View
Privileged user view, global configuration view, common user view, schedule-profile
configuration view, interface configuration view (trunk)
Usage Guidelines
You can use this command to check the list of physical interfaces bound to a trunk
interface and load balancing mode of the trunk interface.
Example
S6800(config)#
Related Commands
None
The show lacp config command displays the LACP configuration on the switch.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (trunk and Ethernet)
Usage Guidelines
None
Example
interface eth-trunk-1
mode lacp-static
S6800(config)#
Related Commands
None
The show lacp eth-trunk command displays information about an LACP trunk
interface.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (trunk and Ethernet)
Usage Guidelines
None
Example
S6800(config)#
Related Commands
None
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (trunk and Ethernet)
Usage Guidelines
None
Example
Related Commands
None
Function
The show schedule-profile command displays details about the enhanced load
balancing template.
Format
show schedule-profile
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Trunk), Schedule-profile configuration view
Usage Guidelines
You can use this command to view details of the enhanced load balancing template,
including the load balancing settings of L3 IPv4, IPv6, L2 packets, and MPLS packets.
Example
S6800(config-schedule-profile-123)#show schedule-profile
schedule-profile: 1
Packet HashField
Trunk interface:
schedule-profile: 123
Packet HashField
L2 src-mac dst-mac src-mac dst-mac vlan
IPV4 src-ip dst-ip vlan
IPV6 src-ip dst-ip vlan
MPLS top-label 2nd-label vlan
Trunk interface:
ecmp load-balance schedule-profile
S6800(config-schedule-profile-123)#
Related Commands
Format
Parameters
Default Value
None
View
Usage Guidelines
Before running this command, run the schedule-profile, ipv4 field, ipv6 field, l2 field,
and mpls field commands to create and configure the enhanced load balancing
template.
Example
# Configure the load balancing for unknown unicast packets based on the enhanced
load balancing template 123.
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#interface vlan 3
S6800(config-vlan-3)#
Related Commands
show vlan
Function
The port default vlan command specifies the default VLAN of an interface and adds
the interface to the VLAN.
The no port default vlan command deletes the default VLAN of an interface and
exits the VLAN.
Format
Parameters
Default Value
The default VLAN of interfaces is VLAN 1, and interfaces are added to VLAN 1 in
untagged mode.
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
This command is valid only to interfaces of the access and QinQ types. The VLAN
specified by vlan-id must exist.
Upon receiving packets without VLAN tags, the interface adds VLAN tags to the
packets and sets the VID in the tag to the default VLAN ID of the interface.
When the interface receives a VLAN tagged packet carrying the same VLAN ID as the
default VLAN ID of the interface, the packet is forwarded through the interface. If the
VLAN ID of the packet is different from the default VLAN ID of the interface, the packet
is dropped.
When the interface receives a VLAN tagged packet carrying the same VLAN ID as the
default VLAN ID of the interface, the interface removes the VLAN tag from the packet
and then sends the packet.
Example
Related Commands
show vlan
Function
The port hybrid vlan command specifies one or more VLANs to which a hybrid
interface belongs.
The no port hybrid vlan command deletes one or more VLANs to which a hybrid
interface belongs.
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to add hybrid interfaces to the VLAN in tagged or
untagged mode. Where:
Tagged: Indicates that the interface does not remove the VLAN tag from a frame when
sending the frame.
Untagged: Indicates that the interface removes the VLAN tag from a frame when
sending the frame.
Example
Related Commands
Function
The port hybrid pvid command specifies the default VLAN of a hybrid interface.
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
After the default VLAN ID is configured for a hybrid interface, you must add the
interface to the default VLAN so that the interface can send packets with the default
VLAN tag.
For details for adding a hybrid interface to the VLAN, see port hybrid vlan.
Example
# Set the default VLAN of hybrid interface xgigaethernet 1/0/1 to VLAN 25.
Related Commands
The port link-type command sets the link type (interface type) of an interface.
Format
Parameters
Default Value
Hybrid
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Access interface: Generally, it is connected to the host. It can only connect to the
access link and transmit Ethernet frames without VLAN tags. If the access interface is
configured with a default VLAN, packets are added with the default VLAN tag. The link
allows Ethernet frames matching the default VLAN tag to pass through.
Hybrid interface: It can be connected to both a host (access link) and a network device
(trunk link). It allows multiple VLAN frames to pass through and removes tags of
certain VLAN frames in the outbound direction.
Note:
Before changing the interface type, delete the original VLAN configuration. That is,
restore the setting of the interface to the default configuration for adding to VLAN 1.
Example
Related Commands
None
Function
The port trunk allow-pass vlan command adds a trunk interface to specified VLANs.
The no port trunk allow-pass vlan command removes a trunk interface from
specified VLANs.
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to add the trunk interface to the VLAN in a tagged mode.
In this way, the interface does not remove the VLAN tags from frames when sending
frames.
The VLAN specified in the VLAN list must exist. Otherwise, the configuration is invalid.
You cannot use this command for physical interfaces added to the aggregation
interface.
Example
Related Commands
show vlan
The port trunk pvid command specifies the default VLAN of a trunk interface.
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
After the default VLAN ID is configured for a trunk interface, you must add the
interface to the default VLAN so that the interface can send packets with the default
VLAN tag.
For details for adding a trunk interface to the VLAN, see port trunk pvid.
Example
Related Commands
Function
The show interface vlan config command displays the VLAN interface
configuration.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
show vlan
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, VLAN
configuration view, interface group configuration view
Usage Guidelines
The show vlan command displays all VLAN configuration information, including the
VLAN ID, type, state, and MAC address learning state.
The show vlan verbose command displays detailed information about all VLANs.
The show vlan vlan-id verbose command displays details about a specific VLAN,
including the VLAN ID, type, description, state, statistics collection state, member
interfaces, and interface joining mode.
Example
S6800#show vlan
The total number of vlans is :2
-=None, M=Member,U=Untagged
VID xge-1/0/1-xge-1/0/24
1 MUUU UUUU UUUU UUUU UUUU UUUU
S6800#
Vlan alias:N/A
The total number of ipv4 address is:0,ipv6 address is:0
Unknown-multicast:forward
Admin status:up
Physical status:up
Vlan-type:normal
Member(s):
Interface Tagged
xgigaethernet 1/0/24 Untag
xgigaethernet 1/0/23 Untag
xgigaethernet 1/0/22 Untag
xgigaethernet 1/0/21 Untag
xgigaethernet 1/0/20 Untag
xgigaethernet 1/0/19 Untag
xgigaethernet 1/0/18 Untag
xgigaethernet 1/0/17 Untag
xgigaethernet 1/0/16 Untag
xgigaethernet 1/0/15 Untag
xgigaethernet 1/0/14 Untag
xgigaethernet 1/0/13 Untag
xgigaethernet 1/0/12 Untag
xgigaethernet 1/0/11 Untag
xgigaethernet 1/0/10 Untag
xgigaethernet 1/0/9 Untag
xgigaethernet 1/0/8 Untag
xgigaethernet 1/0/7 Untag
xgigaethernet 1/0/6 Untag
xgigaethernet 1/0/5 Untag
xgigaethernet 1/0/4 Untag
xgigaethernet 1/0/3 Untag
xgigaethernet 1/0/2 Untag
xgigaethernet 1/0/1 Tag
VLAN ID:2
Vlan alias:vlan2
The total number of ipv4 address is:0,ipv6 address is:0
Unknown-multicast:forward
Admin status:up
Physical status:down
Vlan-type:normal
Member(s):N/A
S6800#
Related Commands
None
3.6.10 tpid
Function
The tpid command sets the protocol ID in the outer tag of packets on the current
interface.
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Different vendors use different protocols for outer tags to achieve the QinQ function.
Therefore, when the S6800 is connected to a device from another vendor, you must
run the tpid command to set the protocol ID in the outer tag on the connected
interface.
Example
# Set the TPID of the outer tag of interface xgigaethernet 1/0/1 to 0x8000.
S6800(config-xge1/0/1)#tpid 0x8000
S6800(config-xge1/0/1)#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Configure the action taken for unknown multicast packets during packet forwarding
in VLAN 100.
Related Commands
None
3.6.12 vlan
Function
The vlan command creates a VLAN and enters the VLAN view.
Format
vlan vlan-list
no vlan vlan-list
Parameters
Default Value
By default, VLAN 1 exists in the system and all interfaces are added to VLAN 1 by
default.
View
Usage Guidelines
You can use this command to create one or more VLANs. If only one parameter is
carried, the system creates a VLAN and enters the VLAN view. If two parameters are
carried, the system creates multiple VLANs in the range specified by the start VLAN
ID and end VLAN ID in the two parameters.
Example
# Create VLAN 2.
S6800(config)#vlan 2
S6800(vlan-2)#
Related Commands
show vlan
3.6.13 no vlan
Function
The no vlan command deletes a specific VLAN and exits the current VLAN
configuration view.
Format
no vlan vlan-id
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Delete VLAN 2 in the VLAN 10 configuration view and exit the VLAN 10
configuration view.
S6800(vlan-10)#no vlan 2
S6800(config)#
Related Commands
vlan
Function
The switch vlan command creates a VLAN and access the corresponding VLAN
configuration view.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Create VLAN 2 in the VLAN 10 configuration view and access the VLAN 2
configuration view.
S6800(vlan-10)#switch vlan 2
S6800(vlan-2)#
Related Commands
vlan
The vlan normal command sets the VLAN type to common VLAN.
Format
vlan normal
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(vlan-10)#vlan normal
S6800(vlan-10)#
Related Commands
show vlan
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
debug vlan-mapping
no debug vlan-mapping
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800#debug vlan-mapping
S6800#
Related Commands
None
outer-layer VLANID and priority, as well as matches the outer-layer VLANID of a data
packet to modify the outer-layer VLANID and priority.
Format
no vlan-mapping all
Parameters
Default Value
None
View
Usage Guidelines
The S6800 supports 1:1 and N:1 VLAN mapping for single-tagged data packets.
Example
Related Commands
show vlan-mapping
Function
Format
show vlan-mapping
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet interface)
Usage Guidelines
None
Example
S6800#show vlan-mapping
Support Max Interface Number :24
Support Max Map List Number :128
Current Map List Number :1
Interface Out-VID Map-OutVID
xgigaethernet 1/0/2 10/10 100
S6800#
Related Commands
None
Function
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to add a PVID tag to the outer layer of a packet.
Example
S6800(config-xge1/0/1)#dot1q-tunnel enable
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
debug vlan-stacking
no debug vlan-stacking
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#debug vlan-stacking
S6800#
Related Commands
None
Function
The vlan-stacking vlan stack-vlan command configures the flexible QinQ function
for a single VLAN or multiple VLANs.
Format
no vlan-stacking all
Parameters
Default Value
None
View
Usage Guidelines
When a packet in this VLAN needs to traverse the carrier’s network, you can use this
command to add a VLAN tag to the packet to form a dual-layer VLAN.
The interface must be a hybrid interface and is valid only in the inbound direction.
The stacked outer VLAN must exist, and the current interface must be added to the
stack VLAN in untagged mode.
Example
# Configure the selective QinQ function for interface XGE 1/0/1 to add outer VLAN tag
20 to packets from VLAN 2.
Related Commands
None
Function
The show vlan-stacking command shows information about the flexible QinQ.
Format
show vlan-stacking
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
S6800#show vlan-stacking
Max interface number :332
Max qinq items :8192
Current qinq items :0
S6800#
Related Commands
None
The debug loop-check command enables the debugging for sent and received loop
detection packets.
The no debug loop-check command disables the debugging for sent and received
loop detection packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The loop-check enable command enables the interface loopback detection function.
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
The loop detection attributes take effect on an interface only after loop detection is
enabled on the interface. Run this command before all the other loop detection
configuration commands.
Example
S6800(config-xge1/0/1)#loop-check enable
S6800(config-xge1/0/1)#
Related Commands
show loop-check
Function
The loop-check action command configures the system action to be taken when a
link loop occurs.
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Once a link loop occurs on the network, the system monitors the network status no
matter which action is configured for loop detection. The VLAN or all VLANs in the
loop remains blocked until the loop is removed.
Example
S6800(config-xge1/0/1)#loop-check enable
S6800(config-xge1/0/1)#loop-check action block
S6800(config-xge1/0/1)#
Related Commands
None
The loop-check reset command resets the loop detection interface state.
Format
loop-check reset
Parameters
None
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Before using this command, run the loop-check enable command to enable loop
detection on the interface. After this command is executed, the switch resets the
interface state to normal regardless of the current interface state.
Example
S6800(config-eth-trunk-1)#loop-check reset
S6800(config-eth-trunk-1)#
Related Commands
None
The loop-check vlan command enables loop detection for specified VLANs.
The no loop-check vlan command disables loop detection for specified VLANs.
Format
Parameters
Default Value
By default, the switch does not perform loop detection for any VLAN.
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
After loop detection is enabled using this command, the switch performs loop
detection only for the specified VLANs. The loop detection packets sent to these
VLANs are tagged broadcast packets. If the interface is not added to a VLAN
specified for loop detection, the switch does not perform loop detection for this VLAN,
but the loop detection configuration is allowed.
Example
S6800(config-eth-trunk-1)#loop-check vlan 20
S6800(config-eth-trunk-1)#
Related Commands
show loop-check
The loop-check interval command sets the interval for sending loop detection
packets.
Format
Parameters
Default Value
View
Usage Guidelines
The interval for sending loop detection packets is the interval at which the system
checks for loops in the network. A smaller interval enables faster response to the link
loops but causes higher resource usage on the switch.
It is recommended that you set the interval to a smaller value during the network
deployment period and change it to a larger value after the network becomes stable.
Example
S6800(config)#loop-check interval 30
S6800(config)#
Related Commands
show loop-check
Function
The loop-check mode command sets the loop detection mode to interface-based
detection or VLAN-based detection.
Format
Parameters
Default Value
View
Usage Guidelines
If the loop detection mode is set to untag (interface based), the switch sends
untagged packets to check for loops. If a loop is detected on an interface, all VLANs
on the interface are blocked.
If the loop detection mode is set to tag (VLAN based), the switch sends tagged
packets to check for loops. If a loop is detected on an interface, VLANs of the
interface are blocked.
Example
Related Commands
None
Function
The loop-check recover-time command configures the multiplier between the wait
time and the packet sending interval.
Format
Parameters
Default Value
The default recovery period of a blocked interface is 5 times the packet sending
interval.
View
Usage Guidelines
The recover-time configured in this command is the multiple times between the wait
time and the packet sending interval instead of the direct wait time after the loop
disappears. That is, it is the real restoration wait time.
Example
# Set the recovery period of blocked interfaces to 10 times of the packet sending
interval.
S6800(config)#loop-check recover-time 10
S6800(config)#
Related Commands
show loop-check
Function
Format
Parameters
Default Value
View
Usage Guidelines
With the help of this command, once the switch discovers a loop at an interface, it
immediately reports the trap alarm to facilitate fault diagnosis and handling.
Example
Related Commands
show loop-check
Function
Format
show loop-check
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to check the loop detection action, interval for sending
loop detection packets, recovery time, and alarm function.
Example
S6800(config)#show loop-check
Loopcheck Action: port-block
Loopcheck interval: 30
Loopcheck recover time: 10
Loopcheck trap: enable
S6800(config)#
Related Commands
None
Function
The show loop-check config command displays the loop detection configuration.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The show loop-check interface command displays the loop detection status of all
interfaces or the loop detection configuration on a specified interface.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Chapter 4 IP Commands
4.1 Overview
This chapter introduces the commands for configuring IPv4 and IPv6 addresses,
DHCP, DHCPv6, and DHCP client.
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Example
Related Commands
None
4.2.2 ip address
Function
Format
ip address ip-address/mask-length
no ip address ip-address
no ip address
Parameters
Default Value
View
Usage Guidelines
Note:
Do not configure IP addresses in the same subnet for all interfaces on the switch.
Example
# Set the primary IP address to 10.18.13.200 and subnet mask length to 24 in VLAN
3.
Related Commands
None
4.2.3 mtu
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-vlan-2)#mtu 1400
S6800(config-vlan-2)#
Related Commands
None
4.2.4 ip prefix-list
Function
Format
no ip prefix-list list-name
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure the action of permitting entry 123 with IPv4 address 10.10.10.10, mask
length 24, and prefix of no shorter than 20.
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ip tcp max-connect command sets the maximum number of TCP connections
allowed on the switch.
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to limit the maximum number of TCP connections. For
example, when a Telnet service is enabled on the switch, you can set the maximum
number of connections.
Example
Related Commands
None
Function
The ip tos-check {enable|disable} command enables TOS field check for a packet.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ip ttl-err to-cpu {enable|disable} command enables the system to send or not
send an IP packet with an incorrect time to live (TTL) value to the CPU.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The icmp redirect send {enable|disable} command enables or disables the sending
of ICMP redirect packets. (This command applies to IPv4 networks.)
Format
Parameters
Default Value
View
Usage Guidelines
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
Example
Related Commands
None
Function
The icmp ttl-err to-cpu {enable|disable} command enables the system to send or
not send an ICMP packet with an incorrect time to live (TTL) value to the CPU.
Format
Parameters
Default Value
View
Usage Guidelines
Example
# Send the ICMP packet with an incorrect TTL value to the CPU.
Related Commands
None
4.2.12 debug ip
Function
Format
Parameters
Default Value
View
Usage Guidelines
Example
S6800#debug ip in
S6800#
Related Commands
None
The debug rawip command enables the debugging for sent and received RAW IPv4
packets.
The no debug rawip command disables the debugging for sent and received RAW
IPv4 packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#debug rawip in
S6800#
Related Commands
None
The debug tcp command enables debugging of sent or received IPv4 TCP packets.
The no debug tcp command disables debugging of sent or received IPv4 TCP
packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#debug tcp in
S6800#
Related Commands
None
The debug udp command enables sent or received IPv4 UDP packet debugging.
The no debug udp command disables sent or received IPv4 UDP packet debugging.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#debug udp in
S6800#
Related Commands
None
The debug ip dst-addr command enables the debugging for sent and received
packets with the specified destination IP address.
The no debug ip dst-addr command disables the debugging for sent and received
packets with the specified destination IP address.
Format
no debug ip dst-addr
Parameters
Default Value
By default, debugging for received and sent packets with the specified destination IP
address is disabled.
View
Usage Guidelines
None
Example
# Enable the debugging for sent and received packets with the specified destination
IP address.
Related Commands
None
Function
The debug ipsrc-addr command enables the debugging for sent and received
packets with the specified source IP address.
The no debug ip src-addr command disables the debugging for sent and received
packets with the specified source IP address.
Format
no debug ip src-addr
Parameters
Default Value
By default, debugging for received and sent packets with the specified source IP
address is disabled.
View
Usage Guidelines
None
Example
# Enable the debugging for sent and received packets with the specified source IP
address.
Related Commands
None
Function
The debug icmp all command enables debugging for ICMP packets.
The no debug icmp all command disables debugging for ICMP packets.
Format
Parameters
None
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
show ip config
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#show ip config
!ip address configuration
outband ip address 10.18.12.120/24
!
!Ip Configuration
ip arp aging-time 600
S6800#
Related Commands
None
Function
Format
show ip interface
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, tunnel interface configuration view, out-of-band interface
configuration view
Usage Guidelines
None
Example
S6800(config-vlan-3)#show ip interface
The total number of ip address is 2
Ip-Address Interface IPIndex State(a/o) Role Type
1.1.1.191/24 Outband 3 up/up -- static
10.18.16.191/24 Vlan4094 5 up/up primary static
127.0.0.1/8 loopback0 4 up/up loopback --
192.169.144.13/24 Outband 3 up/up -- static
S6800(config-vlan-3)#
Related Commands
None
Function
Format
show ip statistic
show ip connect-table
Parameters
None
Default Value
None
View
Usage Guidelines
You can use these commands to view IP statistics, TCP statistics, UDP statistics,
ICMP statistics, IGMP statistics, and TCP/UDP connection table information.
Example
# Display IP statistics.
S6800#show ip statistic
total 6
badsum 0
tooshort 0
toosmall 0
badhlen 0
badlen 0
infragments 0
fragdropped 0
fragtimeout 0
forward 0
fastforward 0
cantforward 0
redirectsent 0
unknownprotocol 1
delivered 5
localout 6
nobuffers 0
reassembled 0
fragmented 0
outfragments 0
cantfrag 0
badoptions 0
noroute 0
badvers 0
rawout 0
toolong 0
notmember 0
nogif 0
badaddr 0
Related Commands
None
Function
The debug ipv6 command enables the debugging for sent and received IPv6
packets.
The no debug ipv6 command disables the debugging for sent and received IPv6
packets.
Format
Parameters
Default Value
View
Usage Guidelines
This command is used to maintain and debug IPv6 functions of the switch.
Example
S6800#debug ipv6 in
S6800#
Related Commands
None
Function
The debug rawip6 command enables the debugging for sent and received RAW IPv6
packets.
The no debug rawip6 command disables the debugging for sent and received RAW
IPv6 packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#debug rawip6 in
S6800#
Related Commands
None
Function
The debug icmp6 all command enables debugging for ICMP6 packets.
The no debug icmp6 all command disables debugging for ICMP6 packets.
Format
Parameters
None
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The debug tcp6 command enables the debugging for sent and received IPv6 TCP
packets.
The no debug tcp6 command disables the debugging for sent and received IPv6
TCP packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#debug tcp6 in
S6800#
Related Commands
None
The debug udp6 command enables the debugging for sent and received IPv6 UDP
packets.
The no debug udp6 command disables the debugging for sent and received IPv6
UDP packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#debug udp6 in
S6800#
Related Commands
None
The flush ipv6 neighbor all command flushes all entries in the IPv6 neighbor table.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
This command is used to configure all entries of the flush neighbor table (IPv6).
Example
Related Commands
None
Function
The flush ipv6 neighbor dynamic command flushes all dynamic entries in the IPv6
neighbor table.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to flush all dynamic entries in the IPv6 neighbor table.
Example
Related Commands
None
The flush ipv6 neighbor static command flushes all static entries in the IPv6
neighbor table.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
This command is used to configure the static entries of the flush neighbor table (IPv6).
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800(config-vlan-3)#ipv6 enable
S6800(config-vlan-3)#
Related Commands
The ipv6 address command configures IPv6 primary and secondary IPv6 addresses
for VLAN interface.
The no ipv6 address command deletes specified or all IPv6 addresses of a VLAN
interface.
Format
no ipv6 address
Parameters
Default Value
By default, the MAC address of the switch is used to generate a global unicast
address.
View
Usage Guidelines
The switch can have only one primary address but several secondary addresses.
IPv6 addresses configured for different VLANIF interfaces cannot be the same.
If the interface is not a VLANIF interface, you need to determine its working mode. If it
works in bridge mode, the IPv6 address is not allowed.
Before using this command, run the ipv6 {enable|disable} command to enable IPv6
functions of the interface.
Example
Related Commands
ipv6 {enable|disable}
Function
The ipv6 address eui command configures the global unicast address in EUI-64
format.
The no ipv6 address eui command deletes a specified global unicast address in
EUI-64 format.
Format
Parameters
Default Value
None
View
Usage Guidelines
sub specifies the sub-address, and the mask length of the address is less than 64.
Before using this command, run the ipv6 {enable|disable} command to enable IPv6
functions of the interface.
Example
S6800(config-vlan-10)#ipv6 enable
S6800(config-vlan-10)#ipv6 address 2000::1/64 eui-64
S6800(config-vlan-10)#
Related Commands
ipv6 {enable|disable}
Function
The ipv6 address link-local command configures a link-local IPv6 address for a
VLAN interface.
Format
Parameters
Default Value
None
View
Usage Guidelines
Before configuring a link-local IPv6 address, you must enable the IPv6 function.
Before deleting the link-local IPv6 address, you must set the mode of generating a
local address to manual, and the prefix of the local address must match FE80::/10.
Example
Related Commands
None
Function
The no ipv6 address auto link-local command deletes the automatically generated
link-local IPv6 address of a VLAN interface.
Format
Parameters
None
Default Value
By default, the MAC address of the switch is used to generate a link-local address.
View
Usage Guidelines
None
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ipv6 hop-limit command sets the maximum number of hops for IPv6 packets.
Format
Parameters
Default Value
64
View
Usage Guidelines
None
Example
S6800(config)#ipv6 hop-limit 5
S6800(config)#
Related Commands
None
Function
The ipv6 neighbor command creates a static neighbor entry in the neighbor
discovery cache.
The no ipv6 neighbor command deletes a static neighbor entry from the neighbor
discovery cache.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The ipv6 mtu command configures the MTU size of an IPv6 interface.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ipv6 pmtu {enable|disable} command enables or disables the path maximum
transmission unit (PMTU).
Format
Parameters
Default Value
Disable
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ipv6 nd autoconfig other-flag command configures the flag bit 1 for other
information. (That is, the host obtains information other than the IPv6 address by
means of stateful automatic configuration, for example, DHCPv6 server.)
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ipv6 nd hop-limit command sets the maximum number of hops for IPv6 unicast
packets initially sent by the device.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Set the maximum number of hops for IPv6 unicast packets initially sent by the
device to 60.
S6800(config-vlan-1)#ipv6 nd hop-limit 60
S6800(config-vlan-1)#
Related Commands
None
Function
The ipv6 nd lifetime command configures the life cycle of IPv6 neighbor discovery.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ipv6 nd ns retrains-timer command sets the time interval for the system to send
neighbor request packets.
Format
Parameters
Default Value
View
Usage Guidelines
You can set the time interval for the system to send neighbor request messages to:
Control the time interval for the routing device to perform neighbor reachability
detection;
Control the time interval for the routing device to perform duplicate address detection;
Notify the host of this value as an RA packet parameter; Allow the host set this value
as a time interval for sending neighbor request messages.
Example
# Set the time interval for the system to send neighbor request packets to 2000 ms.
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-vlan-1)#ipv6 nd ra enable
S6800(config-vlan-1)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
The routing device periodically sends RA packets, containing IPv6 address prefixes
and stateful automatic configuration flag bits.
You can use this command to change the frequency at which the routing device sends
RA packets.
The maximum time interval cannot be less than the minimum time interval. The
default value is recommended.
Example
Related Commands
None
The ipv6 nd ra min-interval command sets the minimum advertisement time interval
for RA packets.
Format
Parameters
Default Value
View
Usage Guidelines
The routing device periodically sends RA packets, containing IPv6 address prefixes
and stateful automatic configuration flag bits.
You can use this command to change the frequency at which the routing device sends
RA packets.
If the maximum advertisement time interval for RA packets is greater than or equal to
9s, the default value is 1/3 of the maximum advertisement time interval. In other cases,
the default value is the maximum advertisement time interval. The default value is
recommended.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The ipv6 nd ra prefix off-link command sets O-Flag in the prefix of an RA packet.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ipv6 nd ra prefix preferred-lifetime command sets the preferred prefix life time
in an RA packet.
Format
Parameters
Default Value
None
View
Usage Guidelines
The preferred life time cannot be greater than the valid life time.
Example
Related Commands
None
Function
The ipv6 nd ra prefix valid-lifetime command sets the valid prefix life time in an RA
packet.
Format
Parameters
Default Value
None
View
Usage Guidelines
The preferred life time cannot be greater than the valid life time.
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The ipv6 prefix-list command configures the IPv6 prefix list entry.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure the action of permitting entry 123 with IPv6 address 10:10::10:10, mask
length 24, and prefix of no shorter than 20.
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
4.3.34 ping6
Function
The ping6 command checks reachability of an IPv6 host. After an ICMPv6 response
packet is sent, the switch waits for the response from the destination host.
Configuration under multi-instance VPN is also supported.
You can use the ping6 -t command to check network connectivity and ping the
designated host until the operation is manually stopped. Configuration under
multi-instance VPN is also supported.
Format
ping6 ipv6-address
ping6 ipv6-address -t
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800#ping6 21DA:D3:0:2F3B:2AA:FF:FE28:9C5A :
Packets:Send = 7, Received = 0 , Lost = 7 (100% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms , Average = 0ms
S6800#
Related Commands
None
The show ipv6 interface command shows IPv6 interface information and interface
information in multi-instance VPN scenario.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ipv6 interface loopback command displays IPv6 loopback interface
information.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
# Set the IPv6 address of loopback 1 to 2001::1/64 and display the IPv6 loopback
interface information.
Related Commands
None
Function
The show ipv6 interface vlan command displays IPv6 VLAN interface information.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ipv6 neighbor command shows IPv6 neighbor information and information
in multi-instance VPN scenario.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
ipv6 neighbor
Function
The show ipv6 neighbor summary command displays the summarized IPv6
neighbor route information.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
The show {ipv6|ip} prefix-list command shows entry information in the IPv6 or IPv4
address prefix list.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Show the information about the fhn entry in the IPv6 address prefix list.
Related Commands
None
Function
The show ipv6 route summary command shows the summarized IPv6 routing
information.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ipv6 statistic interface vlan command displays IPv6 statistics on a
specific VLAN.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Sent packets:
Total :8
Forwarded :0 Discarded :0
Fragments :0 Fragmented :0
Fragments failed :0 Multicast :4
Raw packets :4
Received packets:
Total :0 Header error :0
Too big :0 Routing failed :0
Address error :0 Protocol error :0
Truncated :0 Discarded :0
Delivers :0 Multicast :0
Reassembly :0 Reassembled :0
Reassemble failed :0
Related Commands
None
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The dhcp {start|stop} command enables or disables the DHCP function on the
switch.
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to enable the DHCP function. This command must be
executed before all the other DHCP configuration commands. Other DHCP attribute
configurations takes effect only after the DHCP function is enabled.
Example
S6800(config)#dhcp start
S6800(config)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The debug dhcp fake-server command displays information about servers on the
network.
Format
Parameters
None
Default Value
By default, the fake server detection is disabled, and the switch does not record the
server information.
View
Usage Guidelines
This command displays information about servers on the network, including the IP
address of the server, port that receives the DHCP-REPLY packet, and VLAN.
Example
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
Example
Related Commands
None
4.4.6 option
Function
The option command configures the attribute value of a user-defined DHCP option.
The no option command deletes the attribute value of a user-defined DHCP option.
Format
no option option4-range
Parameters
Default Value
None
View
Usage Guidelines
The Option field in the DHCP packet saves control information and parameters that
are not defined in common protocols. If the Option field is configured on the DHCP
server, when a DHCP client applies for an IP address, it can obtain the configuration
from the Option field in the DHCP response packet. DHCP uses the Option field to
transfer control information and network configuration parameters, and therefore
provides more network configuration information to the clients.
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
By default, the sub-option Circuit ID of DHCP Option 82 is not configured for the
DHCP relay.
View
Usage Guidelines
Example
Related Commands
Function
Format
Parameters
Default Value
By default, the DHCP relay does not support the Option 82 function.
View
Usage Guidelines
Option 82 must work in DHCP relay mode. You must run the ip dhcp command to
enable the DHCP to work in relay mode.
Option 82 is the relay agent information option in a DHCP packet. When a DHCP
client sends a request packet to the DHCP server, the DHCP relay adds Option 82 to
the request packet if the packet needs to pass through the DHCP relay. Option 82
achieves the function of recording address information of the DHCP client and DHCP
relay on the DHCP server. It can cooperate with other software to implement DHCP
allocation limit and charging.
Note:
After the DHCP relay support for Option 82 is enabled, the switch adopts the keep
policy to process Option 82-carried request packet. If other processing policies are
enabled before the DHCP relay support for Option 82 is enabled, the processing
policy is restored to the default value after you enable the DHCP relay support for
Option 82.
Example
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure the policy for processing Option 82-carried
request packets sent by a DHCP client for the DHCP relay.
Example
# Set the policy for processing Option 82-carried request packets sent by a DHCP
client for the DHCP relay to drop.
Related Commands
Format
Parameters
Default Value
By default, the Remote ID of DHCP Option 82 is not configured for the DHCP relay.
View
Usage Guidelines
Example
Related Commands
None
Function
The dhcp pool command creates a DHCP address pool and enters the DHCP pool
configuration view.
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to create an IP address pool and manage parameters
such as NMS and rental period. This address pool is used to allocate addresses to
DHCP servers.
Example
# Create DHCP address pool 12 and enter the address pool configuration view.
S6800(config)#dhcp pool 12
S6800(config-dhcp-pool-12)#
Related Commands
None
Function
The dhcp relay server-ip command configures the IP address of the DHCP server
served by the DHCP relay.
The no dhcp relay server-ip command deletes the IP address of the DHCP relay
server.
Format
Parameters
Default Value
By default, the IP address of the DHCP server served by the DHCP relay is not
configured.
View
Usage Guidelines
If the S6800 acts as a DHCP relay agent and a DHCP server IP address is configured
on its interface using this command, this interface will forward the broadcast DHCP
request packets received from clients to the specified DHCP server. This enables
clients to be served by a DHCP server on a different network segment.
Example
# Configure the IP address of the DHCP server served by the DHCP relay.
Related Commands
ip dhcp
Function
The dhcp relay static-bind command configures the static user address binding
entry of the DHCP relay (you can specify a VPN instance).
The no dhcp relay bind command deletes a static user address binding entry on the
DHCP relay.
Format
Parameters
Default Value
By default, the static user address binding entry of the DHCP relay is not configured.
View
Usage Guidelines
You can use this command to configure the static user address binding entry of the
DHCP relay, that is, the static binding between an IP address and a MAC address.
Example
# In the static user address binding entry of the DHCP relay, set the client IP address
to 10.18.11.2 and MAC address to 00:00:00:ee:ff:ab.
Related Commands
None
Function
The dhcp relay user refresh-interval command configures the scheduled update
period for the DHCP relay user table entry.
Format
Parameters
Default Value
By default, the scheduled update period for the DHCP relay user table entry is set to
1800s.
View
Usage Guidelines
You can use this command to set the update period for the DHCP relay user table
entry or the default update period.
Example
# Set the update period for the DHCP relay user table entry to 600s.
Related Commands
None
Function
The dhcp server detect command enables or disables detection of pseudo DHCP
servers.
Format
Parameters
Default Value
View
Usage Guidelines
In case there is a DHCP server secretly set up in the network, when a client applies
for the IP address, this DHCP server interacts with the DHCP client, which causes the
client to obtain the incorrect IP address. This kind of DHCP server is called the pseudo
DHCP server.
You can use this command to disable detection of pseudo DHCP servers.
Once the pseudo DHCP server detection function is enabled, when the DHCP client
sends the DHCP Request packets, the DHCP server obtains the IP address of the
server that allocates the IP address to the client and records this IP address and the
interface receiving the message. This provides convenience for the administrator to
detect and handle the pseudo DHCP server in time.
Example
Related Commands
None
Function
The no dhcp server forbidden-ip command cancels the IP addresses in the DHCP
address pool that are not automatically allocated.
Format
Parameters
Default Value
By default, except for the IP address of the DHCP server interface, all IP addresses in
the DHCP address pool are automatically allocated.
View
Usage Guidelines
If IP addresses in a certain address range are not automatically allocated, you can
cancel a certain IP address when canceling the exclusion.
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
The Options field in the DHCP packet saves control information and parameters that
are not defined in common protocols. The Options field consists of Code, Length, and
Value. Option82 indicates an Options field with Code set to 82.
If the DHCP server is configured to support the Option82 function, the DHCPREPLY
packet includes the Option82 content when the DHCP server receives a DCHP
request carrying Option82. Otherwise, the Option82 content is not included. Address
allocation to the DHCP clients by the DHCP server is not affected regardless of
whether the Option82 function is enabled.
Example
Related Commands
None
The dhcp server static-bind command binds an IP address in the DHCP address
pool with a MAC address. A VPN instance can be specified during binding.
Format
Parameters
Default Value
View
Usage Guidelines
When a user requires a fixed IP address, you can run this command to bind an idle IP
address in the address pool with the user's MAC address. After binding, the IP
address exists permanently without rental time limitation. When the user uses this IP
address, the configuration cannot be deleted.
If the IP address is unbound, the IP address becomes an idle IP address. Other users
can apply for this IP address.
Example
Related Commands
None
4.4.21 dns
Function
The dns backup command configures the IP address of the backup DNS server.
Format
dns ip-address
no dns
no dns backup
Parameters
Default Value
By default, the IP address of the DNS server or backup DNS server is not configured.
View
Usage Guidelines
You can use this command to configure the IP address of the DNS server or backup
DHS server.
Example
S6800(config-dhcp-pool-1)#dns 10.18.1.254
S6800(config-dhcp-pool-1)#
Related Commands
None
4.4.22 gateway
Function
The gateway command configures the gateway IP address allocated by the DHCP
address pool to the DHCP client.
Format
gateway ip-address
no gateway
Parameters
Default Value
By default, the gateway IP address allocated by the DHCP address pool to the DHCP
client is not configured.
View
Usage Guidelines
You can use this command to configure the IP address of the egress gateway router
allocated by the DHCP address pool to the DHCP client.
Example
# Set the gateway IP address allocated by DHCP global address pool 1 to the DHCP
client to 10.18.2.1.
S6800(config-dhcp-pool-1)#gateway 10.18.2.1
S6800(config-dhcp-pool-1)#
Related Commands
None
4.4.23 ip dhcp
Function
The no ip dhcp command deletes the DHCP interface, and the interface does not
work in any mode.
Format
no ip dhcp
Parameters
Default Value
The server or relay mode is specified in the VLAN configuration view. By default, a
VLAN interface does not work in any DHCP mode.
View
Usage Guidelines
When the DHCP works in server mode, upon receiving a DHCP packet from a DHCP
client, the switch allocates an address in the DHCP server address pool.
When the DHCP works in relay mode, upon receiving a DHCP packet from a DHCP
client, the switch forwards the packet to the DHCP server. Upon receiving a DHCP
response packet from the DHCP server, the switch forwards it to the DHCP client.
Example
Related Commands
None
4.4.24 lease-time
Function
The lease-time command configures the lease time of an IP address in the DHCP
address pool.
Format
Parameters
Default Value
View
Usage Guidelines
The lease time can prevent over-long occupation of valid network resources.
The DHCP server can specify different lease time for different address pools.
However, the addresses in the same DHCP address pool have the same lease time.
The lease time does not have an inheritance relationship.
Example
# Set the lease time of IP addresses in DHCP global address pool 1 to 48 hours.
S6800(config-dhcp-pool-1)#lease-time 48
S6800(config-dhcp-pool-1)#
Related Commands
Function
The lease-time day hour minute command configures the lease time of an IP
address in the DHCP address pool.
Format
Parameters
Default Value
View
Usage Guidelines
The lease time can prevent over-long occupation of valid network resources.
The DHCP server can specify different lease time for different address pools.
However, the addresses in the same DHCP address pool have the same lease time.
The lease time does not have an inheritance relationship.
Example
# Set the lease time of IP addresses in DHCP global address pool 1 to 1 day 5 hours
59 minutes.
Related Commands
The network mask command configures the range and mask of IP addresses in the
DHCP address pool that can be dynamically allocated.
Format
Parameters
Default Value
By default, the range of IP addresses that are dynamically allocated is not configured.
View
Usage Guidelines
Only one network segment can be configured for each DHCP address pool. If IP
addresses in multiple network segments are required, you need to configure multiple
DHCP address pools.
Example
Related Commands
dhcp pool
The no dhcp fake-server all command deletes all recorded server information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to view information about DHCP servers on the network.
After the fake server monitoring is enabled, the switch records the server IP address,
VLAN, and port information in a received DHCP Relay packet.
Example
Related Commands
Function
The no dhcp server bind all command deletes all binding entries on the DHCP
server.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The no dhcp server conflict command deletes the DHCP server conflict table.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The no dhcp server expired command deletes expired binding entries the DHCP
server.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The reset dhcp relay statistic command clears DHCP relay statistics.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
After this command is successfully executed, all statistics of packets on the DHCP
relay is cleared.
Example
Related Commands
Function
The reset dhcp server statistic command clears DHCP server statistics.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
After this command is successfully executed, all statistics about packets on the DHCP
server are cleared.
Example
Related Commands
Function
The show dhcp command displays DHCP server information on the switch.
Format
show dhcp
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
None
Example
S6800(config)#dhcp start
S6800(config)#show dhcp
dhcp state : enable
dhcp server detect : disable
dhcp address-check-time(ms) : 500
dhcp server option82 : enable
dhcp lease-entry number : 0
dhcp bind-entry number : 0
dhcp forbidden-entry number : 0
dhcp user flush interval(seconds) : 1800
S6800(config)#
Related Commands
None
Function
The show dhcp bind-entry command shows DHCP user entry information.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
When a user successfully obtains an IP address from the DHCP address pool, a user
entry is automatically added to the switch.
The output of this command includes the number of entries and the IP address, MAC
address, IP address lease time, and type of each entry.
Example
Related Commands
None
Function
The show dhcp config command displays the DHCP configuration on the switch.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
None
Example
Related Commands
None
The show dhcp fake-server command shows information about servers on the
network.
Format
Parameters
None
Default Value
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
You can use this command to view information about servers on the network,
including the IP address of the server and port that receives the BOOT-REPLY
packets.
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
You can use this command to view lease management information of IP addresses in
the address pool, including the IP address, subnet information, gateway, DNS,
standby DNS, and lease time.
Example
Related Commands
None
Function
The show dhcp pool command displays the configuration of all DHCP address pools
on the switch.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
You can use this command to view the configuration of DHCP address pools on the
switch, including the start and end IP addresses, mask address, gateway address,
DNS address and backup address, lease time, interface bound to the address pool,
and DHCP option43/option60.
Example
S6800(config)#
Related Commands
None
The show dhcp relay config command displays the DHCP relay configuration.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
The DHCP relay function can transparently transmit DHCP broadcast packets across
the networks, so that broadcast packets of the DHCP client or server can be
transparently transmitted to the DHCP server or client on another network segment.
Multiple DHCP clients on the network can use the same DHCP server, which saves
costs and facilitates centralized management.
You can use this command to view the DHCP relay configuration, including whether
DHCP relay is enabled, interface that provides the relay function, and IP address of
the DHCP server served by the relay.
Example
Related Commands
None
The show dhcp relay statistic command displays DHCP relay statistics.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
You can use this command to view DHCP relay statistics, including:
DHCP packets, unicast packets, and broadcast packets sent to the DHCP client
DHCP packets, DHCP OFFER packets, DHCP ACK packets, and DHCP NAK packets
received from the DHCP server
DHCP error packets received from the DHPC server Error packets received by the
DHCP relay, including the packets received from the DHCP server and DHCP client
Example
Related Commands
None
Function
The show dhcp relay user command displays information about the DHCP relay
user entries (including dynamic and static entries).
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
You can use this command to view user information configured on the DHCP relay
server, including the user IP address, MAC address, VLAN, interface number, lease
time, and type.
Example
Related Commands
None
The show dhcp server command displays the DHCP server configuration.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
You can use this command to view DHCP server information, including the interface
with DHCP server mode enabled.
Example
Related Commands
None
Function
The show dhcp server conflict command displays address conflict statistics on the
DHCP server.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
You can use this command to view address conflict statistics of the DHCP server,
including the involved address and conflict time.
Example
Related Commands
None
Function
The show dhcp server expired command shows expired bound entries on the
DHCP server.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
After an entry bound with a DHCP client is expired, the switch adds the entry to the
expired entry table instead of immediately deleting the entry. If the DHCP client
applies for an address again, the previously used address is allocated preferentially.
Example
Related Commands
None
Function
The show dhcp server statistic command displays DHCP server statistics.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
You can use this command to view DHCP server statistics, including:
Number of various types of DHCP packets sent by the DHCP client to the DHCP
server
Number of various types of DHCP packets sent by the DHCP server to the DHCP
client
Example
Related Commands
None
Function
The show dhcp vlan config command displays the DHCP configuration on a specific
VLAN interface.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, DHCP pool configuration view
Usage Guidelines
None
Example
Related Commands
None
4.4.48 vpn-instance
Function
Format
vpn-instance name
no vpn-instance
Parameters
Default Value
By default, VPN instances are not configured for the address pool.
View
Usage Guidelines
If a VPN instance is configured for the address pool, the address allocated by the
address pool is a VPN instance address.
Before using this command, you must create the VPN instance and run the dhcp
{start|stop} command to enable the DHCP function of the switch.
Example
S6800(config)#dhcp start
S6800(config)#dhcp pool 1
S6800(config-dhcp-pool-1)#vpn-instance 1
S6800(config-dhcp-pool-1)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The debug hwroute level command enables hardware debugging for the routing
module.
The no debug hwroute level command disables hardware debugging for the routing
module.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
5.3.2 ip route-static
Function
Format
no ip route-static all
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an IP route with IP address 220.181.111.88 and mask length 24 for NULL
interface 1.
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an IP route with IP address 220.181.111.88 and mask length 24 for tunnel
interface 1.
S6800(config)#
Related Commands
None
Function
The ipv6 route-static command creates a static IPv6 route. Configuration under
multi-instance VPN is also supported.
The no ipv6 route-static all command deletes all static IPv6 routes.
Format
Parameters
Default Value
View
Usage Guidelines
Example
Related Commands
None
Function
The ipv6 route-static interface vlan link-local command configures an IPv6 static
route and designates the next-hop IP address of the egress interface as a local link
address.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
enable
View
Usage Guidelines
None
Example
Related Commands
Function
The show ip route command displays routing information. It can also display routing
information in VPN instances.
Format
show ip route
Parameters
Default Value
None
View
Usage Guidelines
The destination IP address suffixed to this command specify the information about a
specified route.
Example
S6800(config)#show ip route
Bad routing redirect: 0
Dynamically created route: 0
New gateway due to redirects: 0
Destination found unreachable: 1692
Use of a wildcard route: 0
Related Commands
None
Function
The show {ip|ipv6} route static command displays the static IPv4/IPv6 routing table.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show {ip|ipv6} route statistic command shows the comprehensive route
statistics of the IPv4/IPv6 routing table.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
total routes: Indicates the total number of routes in the current routing table.
active routes: Indicates the number of active routes in the routing table.
added routes: Indicates the number of routes added to the routing table (active and
inactive).
deleted routes: Indicates the number of routes with deletion tags in the routing table.
freed routes: Indicates the number of routes freed (permanently deleted) from the
routing table.
Example
Related Commands
None
Function
The show ipv6 route command displays IPv6 interface information or interface
information in VPN instances.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view, VLANIF configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip route hardware command displays the hardware routing table
information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
Note:
This command is only for debugging. It is recommended that you use this command
under instruction of technical support personnel.
Example
Related Commands
None
Function
The show {ip|ipv6} route summary command shows the summarized routing
information.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
Example
Related Commands
None
Function
Format
debug ospf { global | all | lsa | hello | packet | neighbor | interface | ip-route |
rtm | spf | syn | graceful-restart | nbrchange | frr | error }
debug ospf { global | all | lsa | hello | packet | neighbor | interface | ip-route |
rtm | spf | syn | graceful-restart | nbrchange | frr | error } process process
debug ospf { global | all | lsa | hello | packet | neighbor | interface | ip-route |
rtm | spf | syn | graceful-restart | nbrchange | frr | error } process all
Parameters
Default Value
View
Usage Guidelines
You can use this command to debug and locate OSPF faults.
Example
Related Commands
None
The filter route-policy command configures the routing protocol filter policy. Only
filtered routes can be used to generate routes in the routing table.
The no filter router-policy command cancels the routing protocol filter policy.
Format
Parameters
Default Value
By default, the value is a null string, indicating that no routing policy is referenced.
View
Usage Guidelines
You can use this command to set filter conditions for routing information. Only filtered
information can be used to generate routes in the routing table.
Before running this command, you must run the route-policy command to create a
routing policy.
Example
Related Commands
route-policy
5.4.3 valid-ttl-hops
Function
Format
Parameters
Default Value
View
Usage Guidelines
If the TTL is not configured, OSPF does not detect the TTL by default. When the TTL
is configured and the TTL of a received packet is smaller than 255-hops number+1,
the switch discards the packet.
Example
S6800(config-ospf-1)#valid-ttl-hops 200
S6800(config-ospf-1)#
Related Commands
None
5.4.4 area te
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure MD5 authentication for an area. After
configuration, all interfaces within the area use the same MD5 authentication
password. You can run the no area authentication command to cancel the area
authentication. Then, all interfaces within the area do not perform authentication.
Example
S6800#configure
%Enter configuration commands. End with Ctrl+Z or command "quit" & "end"
S6800(config)#router ospf
S6800(config-ospf-1)#network 1.1.1.0 255.255.255.0 area 0
S6800(config-ospf-1)#area 0 authentication md5 100 aaa
S6800(config-ospf-1)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
The ABR in the stub area generates default summary LSA for the area. By default, the
LSA cost is 0. You can use this command to set the cost of the summary LSA (for
example, you need to differentiate priorities of two ABRs). You can run the no
command to restore the cost to default value 0.
Example
S6800#configure
%Enter configuration commands.End with Ctrl+Z or command "quit" & "end"
S6800(config)#router ospf
S6800(config-ospf-1)#network 2.2.2.0 255.255.255.0 area 1
S6800(config-ospf-1)#area 1 default-cost 300
S6800(config-ospf-1)#
Related Commands
None
Function
The area nssa default-cost command configures the default NSSA LSA cost.
Format
Parameters
Default Value
None
View
Usage Guidelines
Example
S6800(config)#router ospf
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
An NSSA area is similar to a stub area, except that the NSSA area can send external
routes but does not accept external routes. The router in the NSSA area generates
Type7 LSAs for external routes, which are used for route calculation within the area.
The ABR converts Type7 LSAs into Type5 LSAs and sends them to other areas. The
ABR also generates a default summary LSA for the NSSA area.
Example
S6800(config)#router ospf
S6800(config-ospf-1)#network 2.2.2.0 255.255.255.0 area 1
S6800(config-ospf-1)#area 1 nssa
S6800(config-ospf-1)#
Related Commands
None
Function
The area nssa range command configures the aggregation route entry in the NSSA
area.
The no area nssa range command deletes the aggregation route entry configured for
the NSSA area.
Format
Parameters
Default Value
By default, the NSSA area does not include any aggregation entry.
View
Usage Guidelines
You can use this command to configure an aggregation route entry for an area. You
can use the no area range command to delete an aggregation entry configured for an
area.
When the ABR calculates the route for area A, it advertises the internal routes of area
A to other areas, and generates a Summary LSA for each area. If the internal route
scale is large, the number of Summary LSA entries is large. You can configure
aggregation entry for area A to control the number of Summary LSAs.
After the aggregation entry is configured, routes matching the aggregation entry in
area A will not be included in the Summary LSAs of other areas. According to different
advertise attributes of the aggregation entries, the following situations may exist:
1. The advertise operation is specified for the aggregation entry, and the Summary
LSA is generated for the aggregation entry.
2. The not-advertise operation is specified for the aggregation entry, and the Summary
LSA is not generated for the aggregation entry.
Note:
Example
# The following command enables area 1 not include any Summary LSA of 1.1.0.0/16.
Related Commands
None
Function
The area range command configures the aggregation route entry in an area.
The no area range command deletes the aggregation route entry configured for an
area.
Format
Parameters
Default Value
By default, an OSPF area does not include any aggregation route entry.
View
Usage Guidelines
You can use this command to configure an aggregation route entry for an area. You
can use the no area range command to delete an aggregation entry configured for an
area.
When the ABR calculates the route for area A, it advertises the internal routes of area
A to other areas, and generates a Summary LSA for each area. If the internal route
scale is large, the number of Summary LSA entries is large. You can configure
aggregation entry for area A to control the number of Summary LSAs.
After the aggregation entry is configured, routes matching the aggregation entry in
area A will not be included in the Summary LSAs of other areas. According to different
advertise attributes of the aggregation entries, the following situations may exist:
1. The advertise operation is specified for the aggregation entry, and the Summary
LSA is generated for the aggregation entry.
2. The not-advertise operation is specified for the aggregation entry, and the Summary
LSA is not generated for the aggregation entry.
Note:
Example
# The following command enables area 1 not include any Summary LSA of 1.1.0.0/16.
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure an area as a stub area. The stub area does
not include external routes (Type 5 LSA) and does not generate external routes. The
stub area configuration has the following limitations:
If an area is a virtual link transit area, you cannot configure this area as a stub area.
Otherwise, the area works abnormally.
After a stub area is configured, the ABR generates a default Summary LSA for the
area. The generation process of other summary LSAs remains unchanged. If the
no-summary attribute is configured, the ABR clears other non-default Summary LSAs
and includes only one default Summary LSA.
A stub area can control the number of LSAs within an area. If an area has limited
router memory and cannot receive a large amount of LSAs, you can configure this
area as a stub area.
A stub area cannot be used as the virtual link transit area. All routers within a stub
area must have the same stub attributes. Otherwise, a neighbor relation cannot be
established.
Example
S6800(config-ospf-1)#
Related Commands
None
The area stub no-summary command configures an area as a totally stub area.
Format
Parameters
Default Value
None
View
Usage Guidelines
The ABR in an area can stop generating other summary LSAs for the stub area to
further compress the LSA scale. At this time, the stub area is known as a totally stub
area.
Example
Related Commands
None
The area nssa no-summary command configures an area as a totally NSSA area.
Format
Parameters
Default Value
None
View
Usage Guidelines
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
The virtual link must be configured on the boundary switch between two areas.
An area through which the virtual link passes is known as a transit area. The transit
area must have all route selection information, so that the switch can identify a
physical route destined for the backbone area to transmit virtual link information.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
Before configuring the virtual link authentication, you must configure the virtual link.
For details, see area virtual-link.
Example
Related Commands
None
5.4.17 bandwidth-reference
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-ospf-1)#bandwidth-reference 1000
S6800(config-ospf-1)#
Related Commands
None
Function
Format
default-route-advertise always
no default-route-advertise
Parameters
Default Value
View
Usage Guidelines
None
Example
# Configure the switch to advertise default routes to common OSPF route areas.
S6800(config-ospf-1)#default-route-advertise always
S6800(config-ospf-1)#show
router ospf 1 vpn-instance m1
router-id 0.0.0.0
rfc1583 compatible enable
default-route-advertise always
loop-prevent enable
Related Commands
None
Function
The frr {enable|disable} command enables or disables the fast re-route function.
Format
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800(config-ospf-1)#frr enable
S6800(config-ospf-1)#
Related Commands
None
Format
graceful-restart begin
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-ospf)#graceful-restart begin
S6800(config-ospf)#
Related Commands
None
Function
The graceful-restart helper command enables the OSPF graceful restart helper.
The graceful-restart helper command disables the OSPF graceful restart helper.
Format
graceful-restart helper
no graceful-restart helper
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-ospf)#graceful-restart helper
S6800(config-ospf)#
Related Commands
None
5.4.22 graceful-restart
Function
Format
graceful-restart
no graceful-restart
Parameters
Default Value
None
View
Usage Guidelines
Before configuring the graceful restart, you must manually enable opaque.
Example
S6800(config-ospf)#graceful-restart
S6800(config-ospf)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to change the default neighbor expiration time of the
OSPF interface. Note that the same expiration time must be configured for both
parties and the value must be larger than three times the interval for sending Hello
packets.
Example
Related Commands
None
The ip ospf hello-interval command configures the interval for sending Hello packets
by an IPv4 OSPF interface.
Format
Parameters
Default Value
View
Usage Guidelines
By default, the interval for sending Hello packets by an OSPF interface is 10s. You
can modify the default value, but the interval configured for both parties must be the
same. The interval must be smaller than neighbor expiration time/3.
Example
# Set the interval for sending Hello packets by the OSPF interface to 20s.
Related Commands
None
The ip ospf if-type command configures the network type of an OSPF interface.
Format
Parameters
Default Value
View
Usage Guidelines
The switch interfaces are Ethernet interfaces. By default, the interface type of OSPF
interfaces is broadcast. The operation of broadcast interfaces is more complex than
that of point-to-point interfaces. In actual situations, if a switch adopts the
point-to-point connection, you need to change the interface type of the OSPF
interfaces to point-to-point. Generally, it is recommended that interfaces on both
parties in a neighbor relation are configured as point-to-point interfaces. Otherwise,
the operation may be abnormal.
Example
Related Commands
None
Function
Format
no ip ospf authentication
Parameters
Default Value
None
View
Usage Guidelines
Example
Related Commands
None
Function
The ip ospf bfd {enable|disable} command enables or disables the BFD function of
a VLAN interface.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The ip ospf mtu command configures the MTU for an OSPF interface.
Format
Parameters
Default Value
View
Usage Guidelines
The default MTU of the OSPF interface is the IPMTU of the interface. If the interface
does not support MTU configuration, the value is 0 by default. You can use this
command to modify the MTU of the OSPF interface. Note that this command is not
used to modify the MTU of an IP interface.
You must configure the same MTU value for both parties in a neighbor relation.
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
ip ospf passive-interface
no ip ospf passive-interface
Parameters
None
Default Value
None
View
Usage Guidelines
A passive interface refers to an OSPF interface that does not send or receive protocol
messages and does not establish any neighbor relation. However, the interface route
is included in the Router LSA for internal route propagation. It can be used for the stub
route.
Example
Related Commands
None
Function
The ip ospf poll-interval command specifies the interval for sending Hello packets by
a neighbor router on the NBMA network.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Set the interval for sending Hello packets by a neighboring router on the NBMA
network to 15000000s.
Related Commands
ip ospf if-type
Function
Format
Parameters
Default Value
View
Usage Guidelines
The OSPF interface priority is used for DR election. Generally, it does not need to be
configured, especially in a point-to-point connection scenario where the interface
priority is basically useless. However, if you require a specific interface functioning as
the DR, you can set a higher priority for the interface. Note that the DR of OSPF
interfaces cannot be preempted. If a device serves as the DR, it constantly serves as
the DR unless it is faulty or disabled.
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
The retransmission interval is a variable and does not need synchronization. You can
configure different retransmission intervals for both parties in a neighbor relation.
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
OSFP assumes that a delay is generated during message transmission. The default
delay is 1s. Delay is set to better control the LSA update. For example, when an LSA
with Age set to 0 is transmitted over an interface, Age should be set to the delay of the
interface. However, considering the aging time of the LSA is 3600s, which is much
larger than the actual transmission delay of the interface, the transmission delay is not
important.
The retransmission delay is a variable and does not need synchronization. You can
configure different retransmission delay values for both parties in a neighbor relation.
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
In OSPF multi-VPN instance, if the DN bit is set in Type 3, Type 5, or Type 7 LSAs and
loop prevention is enabled, the OSPF routes in these LSAs are not calculated.
Example
S6800(config-ospf-1001)#loop-prevent enable
S6800(config-ospf-1001)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-ospf-1001)#maximum load-balancing 2
S6800(config-ospf-1001)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
One OSPF interface can belong to only one area, but the area can contain multiple
interfaces. Before you run this command, if the specified area does not exist, the
command automatically creates an area. If the specified interface does not exist, the
configuration is still reserved. When the interface appears, an OSPF interface is
automatically created.
Example
Related Commands
None
Function
The peer priority command configures the IPv4 address and priority of an adjacent
switch on the NBMA network.
The no peer command deletes the IPv4 address of an adjacent switch on the NBMA
network.
Format
no peer ipv4-address
Parameters
Default Value
None
View
Usage Guidelines
If you use this command to set the priority of a peer router, the peer switch must have
the same priority as the local switch.
Example
# Set the IPv4 address of an adjacent switch on the OSPF network to 10.18.13.1 and
priority to 1.
Related Commands
None
5.4.42 preference
Function
The no preference command cancels the priority configuration for the OSPF
protocol.
Format
preference preference-value
no preference
no preference ase
Parameters
Default Value
The default priority of the OSPF protocol is 10. When the ase keyword is specified, the
default priority is 150.
View
Usage Guidelines
A switch may run multiple dynamic routing protocols simultaneously. In this case, the
switch needs to implement routing information sharing among these protocols and
select routes of them. Therefore, you need to set a priority value for each routing
protocol. When different protocols discover the same route, the switch selects the
protocol with highest priority. This command sets the priority of the OSPF protocol.
Example
S6800(config-ospf-1)#preference 30
S6800(config-ospf-1)#
Related Commands
None
5.4.43 redistribute
Function
The redistribute command enables redistribution of BGP routes, direct routes, and
static routes.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-ospf-1)#redistribute static
S6800(config-ospf-1)#
Related Commands
None
Format
no redistribute ospf
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-ospf-1)#redistribute ospf 10
S6800(config-ospf-1)#
Related Commands
None
Function
The redistribute range command aggregates re-distributed routes that match the
specified network segment.
Format
Parameters
Default Value
By default, an OSPF area does not include any aggregation route entry.
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
By default, the value is a null string, indicating that no routing policy is referenced.
View
Usage Guidelines
None
Example
Related Commands
None
The redistribute metric command configures OSPF to redistribute the route and cost
learned from the RIP, BGP, Static, and Connect protocols.
Format
Parameters
Default Value
View
Usage Guidelines
After you run this command, OSPF can advertise the imported static and direct routes
to the adjacent routers.
By default, all external routes of the same protocol have the same attribute. You can
specify the cost of a specific route.
Example
# Set the OSPF to redistribute the direct route destined for 1.2.3.1 with mask
255.255.255.0, and set the route cost to 10 and cost type to 1.
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to filter out certain external routes during route import.
Example
# Configure OSPF to reject a static route destined for 10.2.3.1 with subnet mask
255.255.255.0.
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Set the translate bit for OSPF redistributed direct route with address 10.13.3.1 and
mask 255.255.255.0 when NSSA LSA is generated.
Related Commands
None
5.4.50 router-id
Function
Format
router-id ip-address
Parameters
Default Value
By default, no router ID is configured for the system, and the switch selects an
interface IP address as its router ID.
View
Usage Guidelines
6) Error return
Example
S6800(config-vlan-3)#quit
S6800(config)#router ospf
S6800(config-ospf-1)#router-id 1.1.1.1
S6800(config-ospf-1)#
Related Commands
None
Function
The router ospf command enables IPv4 OSPF and enters the OSPF configuration
view. The switch supports multiple IPv4 OSPF instances and VPN instances.
Format
router ospf
Parameters
Default Value
View
Usage Guidelines
Before running this command, you must run the ip address command to configure an
IP address for the VLAN interface.
Example
Related Commands
None
Function
Format
reset ospf
Parameters
Default Value
None
View
Privileged user view, OSPFv2 route configuration view, global configuration view
Usage Guidelines
None
Example
S6800(config-ospf-1)#reset ospf 1
S6800(config-ospf-1)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Privileged user view, OSPFv2 route configuration view, global configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
By default, the preferential route selection rules compatible with RFC1583 are
disabled.
View
Usage Guidelines
None
Example
Related Commands
None
5.4.55 route-tag
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-ospf-1001)#route-tag 1000
S6800(config-ospf-1001)#
Related Commands
None
Function
The show ip ospf area command displays all areas directly connected to the switch.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
You can use this command to learn whether the OSPF area is correctly set and
perform OSPF fault locating.
Example
Related Commands
None
The show ip ospf brief command displays global OSPF parameter information.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
You can use this command to learn whether the OSPF area is correctly set and
perform OSPF fault locating.
Example
Router ID :10.18.13.200
Version :2
Area Border Router :false
AS Border Router :false
External LSA Count :0
External LSA Checksum Sum :0
TOS Support :false
New LSA Received :0
External LSDB Limit : -1 No Limited
Exit Overflow Interval :0
Opaque enable :no
Redistribute local enable :no
Redistribute bgp enable :no
S6800(config-ospf-1)#
Related Commands
None
Function
The show ip ospf config command displays general OSPF running information.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
You can use this command to view overall OSPF information, and therefore helping
you monitor the protocol running in a macro manner.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
You can use this command to view information about the OSPF link state database,
helping you implement fault diagnosis.
Example
Related Commands
None
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ip ospf interface command displays information about OSPF interface
table of the switch.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
You can use this command to check the OSPF running status on an interface,
whether OSPF configuration is correct, and whether OSPF faults occur.
Example
S6800#
Related Commands
None
Function
The show ip ospf neighbor command displays information about the adjacent
station table of the switch.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
You can use this command to learn the OSPF neighbor situations, helping you
determine whether the OSPF neighbor is correct and whether OSPF fault
identification is performed.
Example
Related Commands
None
Function
The show ip ospf route command displays the OSPF routing information.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip ospf route count command displays the number of OSPF routes.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ip ospf trap command displays information about the configured traps.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ip ospf virtual interface command displays interfaces of the configured
virtual links.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ip ospf virtual neighbor command displays information about virtual
neighbors of the configured virtual links.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip ospf statistic command displays the current OSPF statistics.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, OSPFv2 route
configuration view, VLANIF configuration view, loopback interface configuration view
Usage Guidelines
None
Example
Related Commands
None
5.4.69 snmp-trap
Function
The snmp-trap command enables or disables the SNMP traps for OSPF.
Format
snmp-trap enable
Parameters
Default Value
None
View
Usage Guidelines
Example
Related Commands
None
5.4.70 spf-running-interval
Function
Format
Parameters
Default Value
View
Usage Guidelines
The OSPF database synchronization and route calculation do not have a direct
cause-effect relation. The device cannot learn whether the database synchronization
is complete. It checks the synchronization based on the specified calculation interval.
If it determines route calculation is required, it starts to calculate the route. A complete
calculation process is time-consuming. If the network keeps updating the database,
the route calculation persists. Therefore, you can set the interval for route calculation
to a larger value to reduce the device burden.
The OSPF route does not need to be re-calculated at the end of each interval. It is
calculated only when change occurs. Therefore, when the network is stable, the
interval for route calculation does not affect OSPF performance.
Example
S6800(config-ospf-1)#spf-running-interval 30
S6800(config-ospf-1)#
Related Commands
None
5.4.71 opaque
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to enable or disable the opaque function. If the opaque
function is enabled, the protocol module can process link state notifications of types 9,
10, and 11. If the opaque function is disabled, the protocol module does not process
link state notifications of these types.
Example
S6800(config-ospf-1)#opaque enable
S6800(config-ospf-1)#
Related Commands
None
5.5.1 ipv4[ipv6]-family
Function
Format
ipv4-family label
ipv4-family multicast
ipv4-family mdt
ipv4-family unicast
ipv4-family vpnv4
ipv6-family unicast
ipv6-family vpnv6
Parameters
Default Value
None
View
Usage Guidelines
If this parameter is not specified, the unicast address family view is displayed by
default.
Example
S6800(config-bgp)#ipv4-family unicast
S6800(config-bgp-af-ipv4)#
Related Commands
None
5.5.2 aggregate
Function
The aggregate command creates an aggregation record in the BGP routing table.
Format
Parameters
Default Value
None
View
Usage Guidelines
When aggregating the addresses of a certain network segment, you can use this
command to reduce the number of routing entries transmitted on the network.
Example
# Create an aggregation record with address 10.10.10.10 10 in the BGP routing table.
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-bgp)#auto-summary enable
S6800(config-bgp)#
Related Commands
None
5.5.5 backup-path
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-bgp)#backup-path enable
S6800(config-bgp)#
Related Commands
None
Function
Format
no confederation identifier
Parameters
Default Value
None
View
Usage Guidelines
Similar to the reflection function, the BGP confederation function is used to reduce
connections within the BGP autonomous system. It allows you to divide a large
autonomous system into several small autonomous systems, but the entire
confederation is equivalent to an autonomous system for the external autonomous
systems. You can use this command to configure the AS number of a BGP
confederation.
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
5.5.8 cluster-id
Function
Format
cluster-id router-id
no cluster-id
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-bgp)#cluster-id 20.20.20.20
S6800(config-bgp)#
S6800(config-bgp)#no cluster-id
S6800(config-bgp)#
Related Commands
None
5.5.9 community
Function
Format
no community
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to control route advertisement by controlling the
community attribute.
Example
Related Commands
None
5.5.10 dampening
Function
Format
Parameters
Default Value
The default values of the previous four parameters are 15, 750, 2000, and 16000.
View
Usage Guidelines
You can use this command to configure the route oscillation dampening suppression
parameter of BGP. The parameter takes effect only when oscillation dampening
suppression is enabled. Generally, it does not need to be modified.
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-bgp)#dampening enable
S6800(config-bgp)#
Related Commands
None
Function
Format
debug bgp
no debug bgp
debug bgp { update | rib-tree | route | event | tcp | packet | all | orf |
graceful-restart | socket | error | neighbor }
no debug bgp { update | rib-tree | route | event | tcp | packet | all | orf |
graceful-restart | socket | error | neighbor }
Parameters
Default Value
View
Privileged user view, BGP configuration view, IPv4 address family configuration view,
IPv6 address family configuration view
Usage Guidelines
None
Example
Related Commands
None
The default local-med command configures the default local MED value of BGP.
Format
Parameters
Default Value
100
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
100
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
After a protocol is configured, the command only filters the specified protocol. After a
routing policy is configured, the filtered routing entries must also conform to the
routing policy configuration.
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
After a protocol is configured, the command only filters the specified protocol. After a
routing policy is configured, the filtered routing entries must also conform to the
routing policy configuration.
Example
Related Commands
None
Function
The frr {enable|disable} command enables or disables the fast re-route function.
Format
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800(config-bgp)#frr enable
S6800(config-bgp)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-bgp)#graceful-restart enable
S6800(config-bgp)#
Related Commands
None
The graceful-restart timer restart command configures the maximum wait time from
discovering local restart by a peer to re-establishing a BGP session.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Configure the maximum wait time from discovering local restart by a peer to
re-establishing a BGP session.
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
logging bgp
no logging bgp
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-bgp)#maximum load-balancing 2
S6800(config-bgp)#
Related Commands
None
5.5.23 network
Function
The network configures the local network routes advertised by BGP, that is, statically
add the routes in the local routing table to the BGP routing table and advertise them to
the peers.
Format
no network network-ipv6-address/mask-length
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
5.5.24 neighbor
Function
Format
no neighbor ipv4-address
no neighbor ipv6-address
Parameters
Default Value
View
Usage Guidelines
If you enable or disable a BGP peer in an address family, for example, run neighbor
enable or neighbor disable in the VPNv4 address family, the BGP connections of the
peer in other address families will be interrupted for automatic re-negotiation.
Example
Related Commands
None
Format
Parameters
Default Value
30
View
Usage Guidelines
None
Example
# Configure the minimum time interval for generating route update packets by BGP.
Related Commands
None
The neighbor as-origin-interval command configures the minimum time interval for
generating BGP route update packets by BGP.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure the minimum time interval for generating BGP route update packets by
BGP.
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure the time interval for initiating reconnection to a peer after disconnection.
Related Commands
None
Function
The neighbor ebgp command configures BGP neighbors to support multi-hop EBGP.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view,
BGP-VPNv4 address family view, BGP-VPNv6 address family view
Usage Guidelines
None
Example
# Specify a routing policy for routes originating from peers or routes advertised to
peers.
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Enable MD5 authentication on TCP connections between BGP peers and BGP
messages.
Related Commands
None
Function
Format
no neighbor ipv4-address
no neighbor ipv6-address
Parameters
Default Value
None
View
Usage Guidelines
None
Note:
Before configuring BGP neighbor commands, you must set the remote as parameter
to specify the neighbor AS number.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an internal BGP peer as a route reflector client and a local party as a
route reflector.
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The neighbor send-label command enables label sending for a specific address
family.
Format
Parameters
Default Value
None
View
Usage Guidelines
Note:
You need to access the config-bgp-af node of the address family to configure the
neighbor send-label command.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The neighbor update-source command specifies the source address used for
initiating connection.
Format
Parameters
Default Value
None
View
Usage Guidelines
You are recommended to use this command when creating multiple peers on two
switches through multiple links.
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The neighbor bfd command creates or cancels a BFD session for a peer/group.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The neighbor orf command configures the ORF function for a peer.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
Generally, all BGP update packets sent by BGP carry AS numbers (public or private
AS numbers).
After this command is configured, if the AS path attribute of BGP routing information
contains only private AS numbers, BGP deletes these private AS numbers and then
advertises the routing information.
Example
# Configure a BGP update packet to carry only a public AS number, without a private
AS number.
Related Commands
None
The preference route-policy command sets the protocol name of a local routing
policy.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
5.5.48 preference
Function
The preference command sets the protocol priorities of external, internal, and local
routes.
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure the BGP protocol priority, to affect the route
selection between BGP and other routing protocols.
Routing policies allow you to configure priorities for the routes received from peers
that meet the matching conditions. For routes that do not meet the matching
conditions, the default priority is used. A smaller priority value indicates a higher
priority.
Example
# Set the protocol priorities of external, internal, and local routes to 10, 20, and 30
respectively.
S6800(config-bgp)#preference 10 20 30
S6800(config-bgp)#
Related Commands
None
The neighbor upe command specifies a BGP peer or peer group as an HoVPN UPE
or cancels the configuration.
Format
Parameters
Default Value
View
Usage Guidelines
After you specify a UPE on an SPE by using this command, the SPE no longer sends
any detailed route to the UPE.
Example
Related Commands
None
5.5.50 router-id
Function
Format
router-id router-id
no router-id
Parameters
Default Value
None
View
Usage Guidelines
Example
S6800(config-bgp)#router-id 10.10.10.10
S6800(config-bgp)#
S6800(config-bgp)#no router-id
S6800(config-bgp)#
Related Commands
None
5.5.51 redistribute
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
By default, BGP does not send non-BGP routing information. To enable BGP to send
non-BGP routing information, you must configure route redistribution for BGP.
If MED is configured, only the routes with the specified MED value are redistributed
when you run this command.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
By default, BGP does not send non-BGP routing information. To enable BGP to send
non-BGP routing information, you must configure route redistribution for BGP.
Example
Related Commands
None
Function
Format
router bgp
no router bgp
Parameters
Default Value
None
View
Usage Guidelines
When the AS number of the router is configured, you can use this command to directly
enter the BGP view.
Example
Related Commands
None
Function
Format
reset bgp
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#reset bgp
S6800(config)#
Related Commands
None
Function
The show ip bgp route label command displays BGP route labels.
The show ip bgp {vpnv4|vpnv6} route label command displays BGP VPNv4 or
VPNv6 route labels.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip bgp mdt command displays information about the BGP-MDT address
family.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip bgp neighbor command displays the status of a specified BGP peer.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
If you use this command without specifying any parameter, all BGP peers are
displayed.
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip bgp resource command displays the BGP resource statistics.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ip bgp route command displays the details about a BGP route.
Format
Parameters
Default Value
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip bgp summary command command displays the BGP route statistics.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ip bgp vpnv4 route command displays the BGP VPNv4 routing
information.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip bgp vpnv6 route command displays the BGP VPNv6 routing
information.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, BGP configuration
view, address family configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-bgp)#snmp-trap enable
S6800(config-bgp)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Enable synchronization.
S6800(config-bgp)#synchronization enable
S6800(config-bgp)#
S6800(config-bgp)#synchronization disable
S6800(config-bgp)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to control local BGP not to accept a remote connection
request, or not initiate an active request. This command is basically used only for
debugging.
Example
Related Commands
None
5.5.70 update-size
Function
The update-size command configures the maximum number of bits for a BGP update
message.
Format
Parameters
Default Value
1460
View
Usage Guidelines
None
Example
S6800(config-bgp)#update-size 200
S6800(config-bgp)#
Related Commands
None
5.5.71 vpls-family
Function
Format
vpls-family
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-bgp)#vpls-family
S6800(config-bgp-af-vpls)#
Related Commands
None
5.6.1 area-authentication-mode
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
This command is available only for Level-1 or Level-1-2 routers.
Example
S6800(config-isis-1)#area-authentication-mode all-send-only
S6800(config-isis-1)#
Related Commands
None
5.6.2 area-password
Function
Format
no area-password
Parameters
Default Value
None
View
Usage Guidelines
You can use this command on all routers in an area to prevent unauthenticated routes
from carrying intrusive wrong routing information into the link state database. This
command is available for Level-1 routers.
Example
S6800(config-isis-1)#area-password simple 11
S6800(config-isis-1)#
Related Commands
None
5.6.3 cost-style
Function
Format
Parameters
Default Value
By default, routes with a narrow or wide cost type can be received, but only routes
with a narrow cost type can be sent.
View
Usage Guidelines
None
Example
Related Commands
None
Format
debug isis { all | hello | csnp | psnp | lsp | pdu | interface | adj | route4 | route6
| restart | sync | leak | tlv | spf | memory | sysmsg | sys | frr | bfd | te | alarm |
timer | redist4 | redist6 | snpdetail | cmd | error | update | summ | routemsg }
no debug isis { all | hello | csnp | psnp | lsp | pdu | interface | adj | route4 |
route6 | restart | sync | leak | tlv | spf | memory | sysmsg | sys | frr | bfd | te |
alarm | timer | redist4 | redist6 | snpdetail | cmd | error | update | summ |
routemsg }
Parameters
None
Default Value
View
Usage Guidelines
You can use this command to view information about the ISIS process and ISIS
packets sent and received. This command is used to maintain and debug the ISIS
function of the switch.
Example
Related Commands
None
5.6.5 default-route-originate
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
This command is available only for Level-1 or Level-2 routers.
Example
S6800(config-isis-1)#default-route-originate level-1
S6800(config-isis-1)#
Related Commands
None
5.6.6 domain-authentication-mode
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
This command is available only for Level-2 or Level-1-2 routers.
Example
S6800(config-isis-1)#domain-authentication-mode all-send-only
S6800(config-isis-1)#
Related Commands
None
5.6.7 domain-password
Function
Format
no domain-password
Parameters
Default Value
None
View
Usage Guidelines
You can use this command on all routers in an area to prevent unauthenticated routes
from carrying intrusive wrong routing information into the link state database. This
command is available for Level-2 routers.
Example
S6800(config-isis-1)#domain-password simple 11
S6800(config-isis-1)#
Related Commands
None
Function
The frr {enable|disable} command enables or disables the fast re-route (FRR)
function.
Format
Parameters
Default Value
Disable
View
Usage Guidelines
None
Example
S6800(config-isis-1)#frr enable
S6800(config-isis-1)#
Related Commands
None
The frr noloop {enable|disable} command enables or disables the loop-free FRR
function.
Format
Parameters
Default Value
Disable
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
graceful-restart enable
graceful-restart disable
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-router-isis)#graceful-restart enable
S6800(config-router-isis)#
Related Commands
None
5.6.11 hostname
Function
Format
hostname hostname
no hostname
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-router-isis)#hostname S6800isis
S6800(config-router-isis)#
Related Commands
None
5.6.12 ignore-lsp-errors
Function
Format
Parameters
None
Default Value
View
Usage Guidelines
You can use this command to enable a router to ignore errors of received ISIS link
state packets without error correction.
Example
S6800(config-isis-1)#ignore-lsp-errors level-1
S6800(config-isis-1)#
Related Commands
None
Format
no ip router isis
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to enable an ISIS routing process on an interface. If
network connection is available, an IP address must be configured for the interface,
and the interface routing process name must be the same as the routing process
name. The interface routing process name can be left empty when there is only one
process. It must be specified when there are multiple areas.
Example
Related Commands
None
5.6.14 is-type
Function
Format
Parameters
None
Default Value
View
Usage Guidelines
You can use this command to configure the router type level. It is recommended that
you configure the router type. You can use level-1 routers in pure CLNS mode, and
use level-2-only routers in pure IP mode.
Example
S6800(config-isis-1)#is-type level-1
S6800(config-isis-1)#
Related Commands
None
Function
Format
isis graceful-restart
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-isis-1)#isis graceful-restart
S6800(config-isis-1)#
Related Commands
None
Function
The isis bfd {enable|disable} command enables or disables BFD on a specified ISIS
interface and creates a BFD session with default parameters.
Format
Parameters
Default Value
Disable
View
Usage Guidelines
If BFD is not enabled globally, the BFD parameters on an interface can be configured,
but no BFD session will be established. The BFD priority of interfaces is higher than
that of processes. If BFD is enabled on an interface, a BFD session will be established
based the BFD parameters on the interface.
Example
Related Commands
None
Function
The isis circuit-ext-domain command suppresses the ISIS PDUs out of an interval
transmission domain in a specific connection.
Format
isis circuit-ext-domain
no isis circuit-ext-domain
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800(config-vlan-100)#isis circuit-ext-domain
S6800(config-vlan-100)#
Related Commands
None
The isis circuit-level command configures the circuit level. The no isis circuit-level
command restores the default state level-1-2.
Format
no isis circuit-level
Parameters
None
Default Value
View
Usage Guidelines
You can use this command to configure the circuit level for saving bandwidth.
Generally, it does not need to be configured.
Example
Related Commands
None
Format
Parameters
Default Value
broadcast
View
Usage Guidelines
None
Example
Related Commands
None
Function
The isis csnp-interval command configures the interval for sending CSNP packets at
a specified level.
Format
Parameters
Default Value
10
View
Usage Guidelines
CSNP is short for complete sequence number PDU. CSNP packets are sent through
designated routers to maintain synchronization with database. This function is
unavailable for serial P2P interfaces. If WAN is regarded as a multi-access grid
network, it can be used for WAN connection..
Example
Related Commands
None
Function
The isis default-metric command configures the metric value of an interface. The no
isis default-metric restores the default value.
Format
Parameters
Default Value
10
View
Usage Guidelines
You can use this command to configure the metric value of an interface on a level-1 or
level-2 router.
Example
S6800(config-vlan-2)#
Related Commands
None
The isis fast-sense neighbor command configures the time for fast sensing a
neighbor..
Format
Parameters
value Specifies an interval for sending The value is an integer ranging from
Hello packets, in ms. 200 to 3000.
Default Value
None
View
Usage Guidelines
When ISIS BFD is disabled, you can use this command to speed up neighbor state
detection and link state convergence. However, the interval for sending neighbor
packets on an interface is also shortened, increasing the device load. Therefore, use
this command carefully.
Example
Related Commands
None
Function
The isis hello-interval command configures the interval for sending ISIS Hello
packets.
Format
Parameters
Default Value
10
View
Usage Guidelines
You can use this command to configure the interval for sending Hello packets on a
level-1 or level-2 router.
Example
Related Commands
isis hello-multiplier
The isis hello-multiplier command configures the multiplier of the interval for holding
an ISIS Hello packet.
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure the multiplier of the interval for holding a Hello
packet, indicating the number of ISIS Hello packets lost by a router before it is
determined as unreachable.
Example
# Configure the multiplier of the interval for holding an ISIS Hello packet.
Related Commands
isis hello-interval
Function
The isis hello padding command enables padding of an ISIS Hello packet to the
MTU on a specific interface.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to enable padding of an ISIS Hello packet to the MTU on a
specific interface over the broadcast network.
Example
Related Commands
None
Function
The isis mesh-group commands an ISIS mesh group and specifies a group ID, or
configures the mesh group to a blocked state.
Format
no isis mesh-group
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to prevent unauthenticated routers from establishing
adjacencies with the router, protecting the network against attacks. A level-1 router
acts only as a site router, and a level-2 router acts only as an area router.
Example
Related Commands
None
The isis passive-interface command configures the passive mode for an interface,
to prohibit packet sending.
Format
isis passive-interface
no isis passive-interface
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-vlan-100)#isis passive-interface
S6800(config-vlan-100)#
Related Commands
None
The isis preference command configures the priority of routes learned by ISIS.
Format
Parameters
Default Value
50
View
Usage Guidelines
None
Example
S6800(config-isis-1)#isis preference 2
S6800(config-isis-1)#
Related Commands
None
Function
Format
Parameters
Default Value
64
View
Usage Guidelines
You can use this command to configure the priority of a specified router. The priority
determines which router on the LAN becomes a designated router or intermediate
system, which is usually a router with a higher priority. A router with a priority of 0 can
also act as a designated router or intermediate system. When two routers have the
same priority, the one with the larger MAC address (system ID) becomes the
designated router or intermediate system.
Example
Related Commands
None
The isis psnp-interval command configures the interval for sending PSNP packets at
a specified level.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
isis three-way-handshake
no isis three-way-handshake
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-vlan-100)#isis three-way-handshake
S6800(config-vlan-100)#
Related Commands
None
Function
Format
Parameters
Default Value
10
View
Usage Guidelines
None
Example
Related Commands
cost-style
5.6.34 lsp-mtu
Function
The lsp-mtu command configures the MTU for ISIS link state packets.
Format
lsp-mtu mtu-value
no lsp-mtu
Parameters
Default Value
1492
View
Usage Guidelines
None
Example
S6800(config-isis-1)#lsp-mtu 1500
S6800(config-isis-1)#
Related Commands
None
Function
Format
Parameters
max-interval Specifies the maximum interval for The value is an integer ranging
generating LSP packets (with the same from 1 to 120, in seconds. The
LSP ID). default value is 2.
int-interval Specifies the initial interval for generating The value is an integer ranging
LSP packets. from 1 to 60000, in ms. By
default, this parameter is not
used.
incr-interval Specifies the incremental interval for The value is an integer ranging
generating two LSP packets with the same from 1 to 60000, in ms. By
LSP ID. default, this parameter is not
used.
level-1 Specifies the interval for generating Level-1 -
LSP packets. If the level is not specified,
the intervals for generating Level-1 and
Level-2 LSP packets are configured.
level-2 Specifies the interval for generating Level-2 -
LSP packets. If the level is not specified,
the intervals for generating Level-1 and
Level-2 LSP packets are configured.
Default Value
View
Usage Guidelines
If the interval for generating LSP packets is excessively long, the neighbors cannot be
notified of the changes in local routing information in time, decreasing the network
convergence speed.
Example
# Set the maximum interval for generating LSP packets in a specified ISIS process to
80s.
Related Commands
None
5.6.36 lsp-refresh-interval
Function
The lsp-refresh-interval command configures the interval for refreshing link state
packets of a router.
Format
lsp-refresh-interval interval-value
no lsp-refresh-interval
Parameters
Default Value
900
View
Usage Guidelines
You can use this command to configure the interval for refreshing link state packets of
a router. The value must be less than the maximum life time of link state packets.
Example
# Set the interval for refreshing link state packets of a router to 1000s.
S6800(config-router-isis)#lsp-refresh-interval 1000
S6800(config-router-isis)#
Related Commands
max-lsp-lifetime
5.6.37 max-lsp-lifetime
Function
The max-lsp-lifetime command configures the maximum life time of link state
packets in the database without refreshing.
Format
max-lsp-lifetime lifetime
no max-lsp-lifetime
Parameters
Default Value
1200
View
Usage Guidelines
You can use this command to configure the maximum life time of link state packets in
the database without refreshing. The value must be greater than the interval for
refreshing link state packets.
Example
# Set the maximum life time of link state packets in the database without refreshing to
2000s.
S6800(config-router-isis)#max-lsp-lifetime 2000
S6800(config-router-isis)#
Related Commands
None
5.6.38 net
Function
The net command configures an ISIS network entity title for a routing process.
Format
net network-entity-title
no net network-entity-title
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure an ISIS network entity title for a routing
process. One to three network entity titles can be configured. The last byte n-selector
of the network entity title is 0. The title contains 8 to 20 bytes (including 8 and 20). The
6 bytes before n-selector represent the system ID (with a fixed length). All bytes
before the system ID represent the area ID. When multiple network entity titles are
configured, the system ID must be the same, and an area has multiple area
addresses (for area merging or splitting).
Example
S6800(config)#router isis 1
S6800(config-isis-1)#net 47.004d.0000.0c11.00
Related Commands
None
5.6.39 precedence
Function
Format
Parameters
Default Value
15
View
Usage Guidelines
A router may run multiple dynamic routing protocols simultaneously, and routes of
multiple protocols may reach the same destination. In this case, the router needs to
share routing information among these protocols and select routes of them. To resolve
this problem, the system sets a priority for each routing protocol. When different
protocols find routes to the same destination, the route of the protocol with the higher
priority prevails.
Example
S6800(config-isis-1)#precedence 10
S6800(config-isis-1)#
Related Commands
None
Function
The ipv6 preference command configures the priority of IPv6 routes for the ISIS
protocol.
Format
Parameters
Default Value
15
View
Usage Guidelines
A router may run multiple dynamic routing protocols simultaneously. In this case, the
router needs to share routing information among these protocols and select routes of
them. The system sets a priority for each routing protocol. When different protocols
find routes to the same destination, the route of the protocol with the higher priority
prevails.
Example
S6800(config-isis-1)#ipv6 precedence 10
S6800(config-isis-1)#
Related Commands
None
The reset isis command resets all ISIS instances or a single ISIS instance.
Format
reset isis
Parameters
Default Value
None
View
Perform configuration in the global configuration view before you reset ISIS instances.
Perform configuration in the global configuration view or privileged user view after you
reset ISIS instances.
Usage Guidelines
None
Example
S6800(config)#reset isis
S6800(config)#
Related Commands
None
5.6.42 redistribute
Function
Format
redistribute ipv6 { connect | static | rip | bgp | ospf | isis } { level-1 | level-2 |
level-1-2 }
redistribute ipv6 { connect | static | rip | bgp | ospf | isis } { level-1 | level-2 |
level-1-2 } route-policy policy-name
redistribute ipv6 { connect | static | rip | bgp | ospf | isis } cost { cost-value |
default }
redistribute ipv6 { connect | static | rip | bgp | ospf | isis } cost { cost-value |
default } { level-1 | level-2 | level-1-2 }
Parameters
Default Value
None
View
Usage Guidelines
Redistribution: By default, ISIS does not send non-ISIS routing information. To enable
OSPF to send non-ISIS routing information, you must configure route redistribution for
ISIS.
You can use this command to advertise the routes learned by ISIS from direct-connect
ports to neighbor routers.
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Redistribution: By default, ISIS does not send non-ISIS routing information. To enable
ISIS to send non-ISIS routing information, you must configure route redistribution for
ISIS.
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The router isis command enables the ISIS protocol and specifies an ISIS routing
process.
Format
router isis
no router isis
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to enable the ISIS protocol and specify an ISIS routing
process. Only one ISIS routing process can be enabled in the system. Multiple VPN
instances can be configured.
Example
S6800(config)#router isis 10
S6800(config-isis-10)#
Related Commands
None
5.6.46 router-id
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
5.6.47 set-overload-bit
Function
The set-overload-bit on-startup command configures the LSP overload bit for a
non-pseudo node.
Format
set-overload-bit
no set-overload-bit
Parameters
Default Value
None
View
Usage Guidelines
Generally, the overload bit can be set only upon an error of the router. For example,
when the router runs out of memory, the link state database may be incomplete, and
therefore the routing table is incomplete or incorrect. The overload bit can be added to
its LSP packets to tell other routers to ignore the unreliable router during SPF
calculation, until the router recovers. In this case, other routers in the ISIS area may
find that there is no path to pass through the router. However, the IP and CLNS
prefixes directly connected to the router are still available. You can use this command
when you expect to connect a router to the ISIS network without actual traffic passing
through it. The following is an example:
A router is configured as an LSP propagation server (for example, used with the
mesh group feature on an NBMA network).
A router acts just as a collection of virtual circuits used for network management.
In this case, the network management workstation must be located on a directly
connected to the router with the overload bit setting.
Example
S6800(config-router-isis)#set-overload-bit
S6800(config-router-isis)#
Related Commands
None
5.6.48 snmp-trap
Function
Format
snmp-trap enable
snmp-trap disable
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-router-isis)#snmp-trap enable
S6800(config-router-isis)#
Related Commands
None
The show ip isis command displays the information about a single ISIS instance or
all ISIS instances.
Format
show ip isis
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
None
Example
S6800(config)#show ip isis
Protocol information for IS-IS(1)
Max lsp lifetime : 1200s
Lsp refresh interval : 900s
Lsp mtu : 1492bytes
Area auth-type : MD5
Domain auth-type : MD5
S6800(config)#
Related Commands
None
Function
The show ip isis bfd session command displays the information about an ISIS BFD
session.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
The command displays session information only when a BFD session is created
successfully.
Example
Related Commands
None
Function
The show ip isis config command displays the basic ISIS configuration.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
You can use this command to display the basic ISIS configuration.
Example
Related Commands
None
The show ip isis database command displays the link state database.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
You can use this command to display the link state database.
Field Description
LSPID Specifies a link state PDU identifier. The first 6 bytes represent the
system ID of the router sending LSP packets. The next byte represents
the pseudo network ID (0: LSP describes system links; non-0: LSP is
called non-pseudo network LSP). The last byte represents the number of
LSP packets (if the data cannot be filled in a single LSP packet, it will be
fragmented, and each fragment contains a different number of LSP
packets). The asterisk (*) indicates that the LSP identifier is generated by
the system.
LSP SeqNum Specifies the LSP sequence number.
LSP Checksum Specifies the checksum of the entire LSP packet.
LSP Holdtime Specifies the effective time for retaining the LSP packets in the database.
ATT Indicates the Attach bit. (After this bit is set, the L1-only or L1/L2 routers
disconnected from the router finds the nearest L2 router.)
P Indicates the P bit. (It represents the area partitioning function, and
currently cannot be set to 0.)
OL Indicates the Overload bit. (It indicates the congestion status. When it is
set to 1, other routers will not use the system as an intermediate hop. a A
data packet is sent to the overload router only when the destination of the
data packet is directly linked to the overload router.)
Area Address: Specifies the reachable area address of the router. (It is manually
configured for L1 LSPs, and is obtained from the router for L2 LSPs.)
Metric: Specifies the metric of the adjacency cost between the source router and
the advertising router, or the metric of the acquisition cost between the
advertising router and the advertising destination.
Various addresses "IP" indicates the IP subnet to which the router is perform ing
advertisement. "IP-External" indicates a redistributed route.
Example
Related Commands
None
The show ip isis database count command displays the statistics of an ISIS
database.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip isis database verbose command displays the details about the link
state database.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
You can use this command to display the details about the link state database.
Field Description
LSPID Specifies a link state PDU identifier. The first 6 bytes represent the
system ID of the router sending LSP packets. The next byte represents
the pseudo network ID (0: LSP describes system links; non-0: LSP is
called non-pseudo network LSP). The last byte represents the number of
LSP packets (if the data cannot be filled in a single LSP packet, it will be
fragmented, and each fragment contains a different number of LSP
packets). The asterisk (*) indicates that the LSP identifier is generated by
the system.
LSP SeqNum Specifies the LSP sequence number.
LSP Checksum Specifies the checksum of the entire LSP packet.
LSP Holdtime Specifies the effective time for retaining the LSP packets in the database.
ATT Indicates the Attach bit. (After this bit is set, the L1-only or L1/L2 routers
disconnected from the router finds the nearest L2 router.)
P Indicates the P bit. (It represents the area partitioning function, and
currently cannot be set to 0.)
OL Indicates the Overload bit. (It indicates the congestion status. When it is
set to 1, other routers will not use the system as an intermediate hop. a A
data packet is sent to the overload router only when the destination of the
data packet is directly linked to the overload router.)
Area Address: Specifies the reachable area address of the router. (It is manually
configured for L1 LSPs, and is obtained from the router for L2 LSPs.)
Metric: Specifies the metric of the adjacency cost between the source router and
the advertising router, or the metric of the acquisition cost between the
advertising router and the advertising destination.
Various addresses "IP" indicates the IP subnet to which the router is performing
advertisement. "IP-External" indicates a redistributed route.
Example
S6800#
Related Commands
None
Function
The show ip isis frr route command displays the FRR routes of ISIS.
Format
show ip isis frr route { level-1 | level-2 } { include | exclude | begin } substring
string
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
None
Example
S6800(config)#
Related Commands
None
Function
The show ip isis hostname command displays the dynamic host mapping for ISIS.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
None
Example
S6800#
Related Commands
None
The show ip isis interface command displays the information (or details) about an
interface with ISIS enabled.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
None
Example
Neighbor sequence :2
Interface : vlan-20
Level : L1
System ID : 0002.0002.0002
State : up
Support protocol : iso,ip
Area : 47
Ip/Ipv6 : 192.1.2.100
System type : L1L2IntermediateSystem
3way state : up
Life time : 30s
Life time remain : 8s
Extend cid :0
S6800#
Related Commands
None
Function
The show ip isis route command displays the ISIS routing information.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ip isis spf-tree command displays topology information of the SPF tree.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
When the SPF state is Complete, I-SPF calculation is completed, and the generated
SPF tree can be used as a reference for route calculation.
Example
S6800#
Related Commands
None
The show ip isis statistic command displays ISIS system and interface statistics.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
None
Example
Level-1 Statistic
ID Field Length Mismatches :0
Auth Type Fails :0
Auth Fails :0
Corrupt LSPs :0
LSP Errors :0
LSP Database Overloads :0
Own LSP Purges :0
SeqNum Skips :0
Attmpt To Exceed Max SeqNums :0
Manual Address DropFromAreas :0
SPF Runs :11
Level-2 Statistic
ID Field Length Mismatches :0
Auth Type Fails :0
Auth Fails :0
Corrupt LSPs :0
LSP Errors :0
LSP Database Overloads :0
Own LSP Purges :0
SeqNum Skips :0
Attmpt To Exceed Max SeqNums :0
Manual Address DropFromAreas :0
SPF Runs :3
S6800(config-vlan-1)#
S6800#show ip isis statistic interface
Related Commands
None
The show ip isis virtual-system command displays information about the ISIS virtual
system.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, loopback interface configuration view, ISIS configuration view
Usage Guidelines
None
Example
Related Commands
None
5.6.63 summary-address
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to create a summary address. The summary address can
contain multiple addresses at a specified level, and routes obtained from other routing
protocols can also be summarized. The metric value used to advertise the summary
route is the smallest among all the individual routes.
Example
Related Commands
None
5.6.64 summary-prefix
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to create a summary address. The summary address can
contain multiple addresses at a specified level, and routes obtained from other routing
protocols can also be summarized. The metric value used to advertise the summary
route is the smallest among all the individual routes.
Example
Related Commands
None
5.6.65 traffic-engineer
Function
The traffic-engineer command enables the traffic engineer function for ISIS.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-router-isis)#traffic-engineer enable
S6800(config-router-isis)#
Related Commands
None
Function
The timer spf command configures the interval for calculating SPF routes.
Format
Parameters
Default Value
10
View
Usage Guidelines
None
Example
S6800(config-isis-1)#timer spf 20
S6800(config-isis-1)#
Related Commands
None
Function
The timer spf command configures the parameters of the smart SPF calculation
timer.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
5.6.68 virtual-system
Function
Format
virtual-system sys-id
no virtual-system sys-id
Parameters
Default Value
View
Usage Guidelines
Like a common ID, the virtual system ID must be unique in the routing domain.
Example
S6800(config-isis-1)#virtual-system 1111.1111.1111
S6800(config-isis-1)#
Related Commands
Function
The apply cost command sets the route cost in the routing information.
The no apply cost command restores the route cost to the default value.
Format
no apply cost
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The apply cost-type command sets the route cost type in the routing information.
The no apply cost-type command cancels the route cost type setting.
Format
no apply cost-type
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The apply isis command configures the action of modifying the level of a route
introduced to ISIS in a routing policy.
Format
no apply isis
Parameters
Default Value
By default, the action of modifying the level of a route introduced to ISIS is not
configured in a routing policy.
View
Usage Guidelines
To avoid introducing excessive external routes to ISIS and causing extra burden to the
device running ISIS, you can apply a routing policy containing this command when
introducing routes to ISIS, to modify the route level.
Example
Related Commands
None
Function
The apply local-preference command configures the local priority of a BGP route.
Format
no apply local-preference
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The apply origin command configures the route source in the routing information.
Format
no apply origin
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
no apply ospf
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The apply preferred-value command configures the preferred value of a BGP route.
Format
no apply preferred-value
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The apply tag command sets the tag in the routing information.
The no apply tag command cancels the tag in the routing information.
Format
no apply tag
Parameters
Default Value
View
Usage Guidelines
For RIP and RIPNG, the maximum value of the tag field is 65535.
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to maintain and debug routing policies, and therefore
facilitating problem locating.
Example
# Enable routing policy debugging and display error information generated for the
routing policy.
Related Commands
None
Function
The match aspath command configures a match rule based on the AS path filter.
Format
Parameters
Default Value
By default, the match rule based on the AS path filter is not configured.
View
Usage Guidelines
This command is available only for BGP. Before using this command, run the ip
as-path-filter command to define the AS path filter.
Example
# Define a routing policy named test and define a match rule for node 10 in the policy
by using AS path filter 2.
Related Commands
None
Function
The match cost command sets a match rule based on the route cost.
The no match cost command cancels a match rule based on the route cost.
Format
no match cost
Parameters
Default Value
By default, the match rule based on the route cost is not configured.
View
Usage Guidelines
None
Example
Related Commands
None
The match ip filter-list command sets the IPv4-based filter rule for matching the
destination network segment.
The match ipv6 filter-list command sets the IPv6-based filter rule for matching the
destination network segment.
The no match ip filter-list command cancels the IPv4-based filter rule for matching
the destination network segment.
The no match ipv6 filter-list command cancels the IPv6-based filter rule for
matching the destination network segment.
Format
no match ip filter-list
Parameters
Default Value
View
Usage Guidelines
Before using this command, you must run the filter rule-number ip ipv4-address/M
any or filter rule-number ip6 ipv6-address/M any command.
Application Value
Matching the destination network ipv4-address/ipv6-address: specifies the destination
segment network segment.
M: specifies the mask length.
Matching the next-hop address or ipv4-address/ipv6-address: specifies the next-hop IP
source address advertising the route address or source IP address advertising the route.
M: 32 (IPv4) or 128 (IPv6)
Example
Related Commands
None
Function
The match ip-prefix command sets a match rule based on the IP address prefix list.
The no match ip-prefix command cancels a match rule based on the IP address
prefix list.
Format
no match ip-prefix
Parameters
Default Value
By default, no match rule based on an IPv4 address prefix list is not configured.
View
Usage Guidelines
Before using this command, you must configure an IP address prefix list.
Example
S6800#show ip prefix-list
ip prefix-list : tes
index: 11 permit 2.2.0.0/16
S6800#configure
%Enter configuration commands.End with Ctrl+Z or command "quit" & "end"
S6800(config)#route-policy fhn permit node 12
S6800(config-route-policy)#match ip-prefix tes
S6800(config-route-policy)#
Related Commands
None
Function
Format
Parameters
Default Value
By default, no match rule based on an IPv4 address prefix list is not configured.
View
Usage Guidelines
Before using this command, you must configure an IP address prefix list.
Example
S6800#show ip prefix-list
ip prefix-list : tes
index: 11 permit 2.2.0.0/16
S6800#configure
%Enter configuration commands.End with Ctrl+Z or command "quit" & "end"
S6800(config)#route-policy fhn permit node 12
S6800(config-route-policy)#match ip next-hop ip-prefix tes
S6800(config-route-policy)#
Related Commands
None
Function
Format
Parameters
Default Value
By default, no match rule based on an IPv4 address prefix list is not configured.
View
Usage Guidelines
Before using this command, you must configure an IP address prefix list.
Example
Related Commands
None
Function
The match ipv6 filter-list command sets the IPv6-based filter rule for matching the
destination network segment.
The no match ipv6 filter-list command cancels the IPv6-based filter rule for
matching the destination network segment.
Format
Parameters
Default Value
View
Usage Guidelines
Before using this command, you must run the filter rule-number ip ipv4-address/M
any or filter rule-number ip6 ipv6-address/M any command.
Application Value
Matching the destination ipv4-address/ipv6-address: specifies the destination network
network segment segment.
M: specifies the mask length.
Matching the next-hop ipv6-address: Specifies the next-hop IPv6 address or source
address or source address IPv6 address advertising the route.
Application Value
advertising the route M: 32 (IPv4) or 128 (IPv6)
Example
Related Commands
None
Function
The match process command sets a match rule based on a process number.
Format
no match process
Parameters
Default Value
View
Usage Guidelines
This command cooperates with the RIP, OSPF, and BGP re-allocation policy
commands. When one protocol has multiple instances, you can configure the filter
rule to reserve only one instance in compliance with the rule.
Example
Related Commands
None
Function
The match route-type command sets a match rule based on the route type.
The no match route-type command cancels a match rule based on the route type.
Format
Parameters
Default Value
By default, the match rule based on the route type is not configured.
View
Usage Guidelines
For the same routing policy node, if multiple match route-type clauses are configured
and the clauses are in an "Or" relation, the apply clause action is implemented when
any clause is matched.
Example
Related Commands
None
Function
The match tag command sets a match rule based on the route tag.
The no match tag command cancels a match rule based on the route tag.
Format
no match tag
Parameters
Default Value
By default, the match rule based on the route tag is not configured.
View
Usage Guidelines
For RIP and RIPNG, the maximum value of the tag field is 65535.
Example
Related Commands
None
5.7.20 route-policy
Function
The route-policy command creates a routing policy and enters the Route-Policy view.
Format
no route-policy policy-name
Parameters
Default Value
View
Usage Guidelines
Multiple nodes in a routing policy are in an "Or" filter relation. That is, on condition that
routing information passes the filter by one node, it can pass all nodes in the routing
policy, and match test is not implemented on other routing policy nodes. If routing
information does not pass the filter by any node, it cannot pass the routing policy.
If one routing policy defines more than one routing policy node, the smaller the
node-number, the higher the priority, and the earlier the match test is performed. Each
node should have at least one node in permit match mode.
The match clause defines the match condition for a routing policy node. The apply
clause defines the route behavior for filtering. The match clauses are in an "And" filter
relation. That is, a route is considered to pass the filter of a routing policy node unless
it matches all match clauses of this routing policy node.
In permit mode, the match mode of a specified node is permit. If a route matches all
match clauses of a routing policy node, the route passes the test and is processed
with a series of specified actions in the apply clause. Otherwise, the route must attend
the test of a next routing policy node.
In deny mode, the match mode of a specified node is deny, and the apply clause is not
executed. If a route matches all match clauses of a routing policy node, the route fails
the test and cannot attend the test of the next routing policy node. Otherwise, the
route continues to be tested by the next node.
Example
# Configure policy fhn with node-number 12 and match mode permit. Enter the routing
policy view.
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800#show route-policy
!routepolicy configuration
route-policy fhn permit node 1
match ip filter-list 3000
match route-type external-type1
match cost 234545
route-policy fhn permit node 12
# Display configuration of a routing policy named fhn and node 12 under the policy.
Related Commands
None
Function
The show route-policy config command displays the routing policy configuration.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The filter action counter command configures a QoS traffic counter to measure
traffic of a specified data flow.
Format
Parameters
Default Value
None
View
Usage Guidelines
Traffic measurement can measure packets of a specified data flow, that is, data
information in a forwarded packet matching the pre-defined flow rule.
You must configure a counter using the counter command and bind it to the filter.
S6800(config)#counter 100 all sort total
S6800(config)#
S6800(config)#filter-list 100
S6800(configure-filter-l2-100)#
S6800(configure-filter-l2-100)#filter 100 mac any any
S6800(configure-filter-l2-100)#
If different counters are configured, you need to unbind the previously bound counter.
Otherwise, the following symptom may occur:
S6800(configure-filter-l2-100)#filter 100 action counter 200
%Cannot modify, please release the counter from filter firstly.
In the filter list, enter the ACL list, including L2 ACL, IPv4 ACL, hybrid ACL, and IPv6
ACL.
Example
Related Commands
The filter action mirror group command configures flow mirroring to copy packets to
a specified destination interface.
Format
Parameters
Default Value
None
View
Usage Guidelines
Traffic mirroring can copy specified packets to a specified interface for network
detection and fault elimination.
Note:
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Note:
This command is similar to the filter action counter command. You must configure the
meter in the command of the meter module and bind it to a filter (see 6.2.4 meter).
S6800(config)#
S6800(config)#filter-list 100
S6800(configure-filter-l2-100)#
S6800(configure-filter-l2-100)#
Example
# Bind a meter.
Related Commands
6.2.4 meter
Function
The meter command specifies the CIR, CBS, PIR, EBS, and PBS rate limiting rule
through the meter.
Format
no meter meter-number
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure the QoS CAR template (CIR, CBS, PIR, and
PBS), applied in the inbound or outbound interface. After the QoS CAR applies to the
physical interface or Eth-Trunk interface, the system limits the rate of all upstream
packets transmitted over the physical interface or Eth-Trunk interface.
The priority of QoS CAR applied to the interface is higher than the QoS CAR of the
VLAN. If the QoS CAR is enabled for both interface and VLAN, the QoS CAR of the
interface shall prevail.
The cir-value specifies the committed information rate (CIR), which ensures a mean
rate of packets passing through an interface.
The cbs-value specifies the size of the committed burst, that is, committed burst traffic
that can pass through an interface.
The value is an integer ranging from 10000 to 4294967295. The unit is bytes.
The pir-value specifies the peak data rate. The value is an integer ranging from 8 to
4294967295, in kbit/s. The pir-value must be equal to or larger than cir-value. By
default, pir-value is equal to cir-value. If the pir-value is equal to cir-value, the
pbs-value is 0 bytes by default. Otherwise, pbs-value is 125 times the pir-value by
default.
The pbs-value specifies the size of the peak burst. The value is an integer ranging
from 10000 to 4294967295. The unit is bytes. The pbs-value must be equal to or
larger than cbs-value.
Traffic-based traffic policing enables a switch to limit the rate of traffic in compliance
with the traffic classification rules. By policing the traffic rate, the switch discards traffic
beyond the rote limiting, so that traffic entering the switch is limited within a
reasonable range, and therefore protecting network resources and carrier's interests.
The traffic-based traffic policing adopts the dual leaky bucket algorithm.
You can specify the rate limiting rule using the meter, including the CIR, CBS, PIR,
and PBS, specify the traffic type through the ACL, and associate the traffic type with
the meter. You can enable the ACL at a physical interface (including Trunk) or VLAN
interface.
The S6800 supports two types of traffic shaping, namely, port shaping and port queue
shaping. You can select the traffic shaping mode according to actual requirements.
When both traffic shaping modes co-exist, ensure that the CIR of port shaping is equal
to or larger than the sum of CIR of port queue shaping. Otherwise, traffic shaping is
abnormal (for example, traffic in a queue with a lower priority preempts for bandwidth
for traffic in a queue with a higher priority).
Example
# Specify the CIR, CBS, PIR, EBS, and PBS rate limiting rule using a meter.
Related Commands
filter meter
Function
The reset counter filte-list filter command resets the filter counter of an ACL.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Reset the counter of filter 1 in ACL 100 in the inbound direction of interface
xgigaethernet 1/0/1.
Related Commands
None
Function
The show meter command displays rate limiting configuration of the meter, including
the CIR, CBS, PIR, EBS, and PBS.
Format
show meter
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#show meter
ID CIR PIR CBS EBS PBS Mode Ref-Cnt Status
1 100 - 100000010000000- aware 0 Valid
S6800#
Related Commands
None
The show meter config command displays rate limiting configuration of the meter,
including the CIR, CBS, PIR, EBS, and PBS.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The cos max-queue command sets the maximum number of port queues.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-if-group)#cos max-queue 6
S6800(config-if-group)#
Related Commands
None
Function
The cos queue weight command sets the weight of a port queue.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The cos queue weight command sets the weight of a port queue.
Format
Parameters
Default Value
If the value is set to the default value using the cos scheduling command, the switch
does not have the default weight entry. If the value is set to WRR using the cos
scheduling command, the default number of weight entries is 1.
View
Usage Guidelines
The cos scheduling command needs to match the cos scheduling algorithm command
to complete the configuration (SP+WRR or WRR). If the scheduling algorithm is set to
SP, you cannot configure cos queue weight. For details, see 6.3.4 cos scheduling.
Example
S6800#config
%Enter configuration commands.End with Ctrl+Z or command "quit" & "end"
S6800(config)#interface xgigaethernet 1/0/1
S6800(config-xge1/0/1)#cos queue 1 weight 1
S6800(config-xge1/0/1)#
Related Commands
cos scheduling
Function
The cos scheduling command sets the scheduling mode for queues on an interface.
Format
Parameters
Default Value
View
Usage Guidelines
SP queue scheduling
The S6800 supports eight queues on each interface. These queues can use different
queue scheduling algorithms. During queue scheduling, the switch schedules the SP
queues first. Multiple SP queues are scheduled based on the priority from high to low.
After scheduling of SP queues is complete, the system starts weighted round robin
scheduling for WRR or DRR queues.
Before configuring queue shaping on an interface, set the scheduling mode to WRR
or DRR for the specified queues. Otherwise, the queue shaping function will not take
effect.
Example
S6800(config-xge1/0/1)#cos scheduling sp
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The filter action remove-inner-vid command configures the action of removing the
VID of a specified packet.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show cos interface command displays the CoS configuration on an interface.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
# Display the mapping between the interface queue and the priority.
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
debug wred
no debug wred
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#debug wred
S6800#
Related Commands
None
Function
The qos queue wred command applies a WRED drop profile to an interface queue.
The no qos queue wred command deletes a WRED drop profile from an interface
queue.
Format
Parameters
Default Value
View
Usage Guidelines
Before running this command, you must run the drop-profile command to create a
WRED drop profile.
Example
Related Commands
drop-profile
6.3.11 drop-profile
Function
The drop-profile command creates a WRED drop profile and displays its
configuration view or directly displays the configuration view of an existing drop
profile.
Format
no drop-profile drop-profile-name
Parameters
Default Value
None
View
Usage Guidelines
A WRED drop profile specifies WRED parameters for packets of different priorities in
interface queues, to implement congestion avoidance for the interface or interface
queue to which the WRED drop profile is bound.
Example
S6800(config)#drop-profile fhn
S6800(config-drop-fhn)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
A WRED drop profile specifies WRED parameters for packets of different priorities in
interface queues, to implement congestion avoidance for the interface or interface
queue to which the WRED drop profile is bound. If you configure WRED parameters
for packets of the same color multiple times using this command, only the last
configuration takes effect.
Example
Related Commands
None
The show wred config command displays all WRED configuration on an interface or
a VLAN.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view, VLANIF
configuration view, VLAN configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show drop-profile command displays summary information about all or specified
WRED drop profiles on the switch.
The show drop-profile all command displays detailed information about all WRED
drop profiles on the switch.
Format
show drop-profile
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view, VLANIF
configuration view, VLAN configuration view
Usage Guidelines
None
Example
# Display summary information about all WRED drop profiles on the switch.
S6800(config-xge1/0/40)#show drop-profile
Index Drop profile name
0 default
1 fhn
2 1
Total:64 Used:3
S6800(config-xge1/0/40)#
Related Commands
None
Function
Format
debug diffserv
no debug diffserv
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800#debug diffserv
S6800#
Related Commands
None
The diffserv domain command creates a DiffServ domain and displays its
configuration view.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Create a DiffServ domain and display the DiffServ domain configuration view.
Related Commands
no diffserv domain
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
You can only modify mappings of the default domain but cannot delete it.
Example
Related Commands
None
6.4.4 8021p-inbound
Function
Format
8021p-inbound priority phb { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } { green |
yellow | red }
8021p-inbound default
Parameters
Default Value
By default, the mappings between 802.1p priorities, PHBs, and colors of ingress
VLAN packets in a DiffServ domain are as follows.
By default, the mappings between DSCP priorities, PHBs, and colors of ingress IP
messages in a DiffServ domain are as follows.
View
Usage Guidelines
You can bind a DiffServ domain to the inbound interface of packets so that the system
can map the priorities of packets from the upstream device to certain PHBs and colors
based on mappings configured in the DiffServ domain.
Example
# Configure the mapping between the 802.1p priority of VLAN packets in the ingress
direction in the DiffServ domain and PHBs, and color tag the packets.
S6800(config-dsdomain-domain-1)#8021p-inbound 1 phb be
S6800(config-dsdomain-domain-1)#
Related Commands
None
6.4.5 8021p-outbound
Function
The 8021p-outbound command configures the mappings from per hop behaviors
(PHBs) and colors of egress VLAN packets to 802.1p priorities in a DiffServ domain.
Format
8021p-outbound { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } { green | yellow | red }
default
8021p-outbound { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } { green | yellow | red }
map priority
8021p-outbound default
Parameters
Default Value
By default, the mappings between PHBs, colors, and 802.1p priorities of egress VLAN
packets in a DiffServ domain are as follows.
By default, the mappings between PHBs, colors, and DSCP priorities of egress IP
messages in a DiffServ domain are as follows.
View
Usage Guidelines
You can bind a DiffServ domain to the outbound interface of packets so that the
system can map the PHBs and colors of packets sent to the downstream device to
certain priorities based on mappings configured in the DiffServ domain.
Example
# Configure the mapping between the PHBs/colors of VLAN packets in the egress
direction in the DiffServ domain and the 802.1p priority.
Related Commands
None
6.4.6 ip-dscp-inbound
Function
Format
ip-dscp-inbound priority phb { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } { green |
yellow | red }
ip-dscp-inbound default
Parameters
Default Value
By default, the mappings between DSCP priorities, PHBs, and colors of ingress IP
messages in a DiffServ domain are as follows.
View
Usage Guidelines
When QoS scheduling is required for IP messages carrying DSCP priorities from the
upstream device, you can use this command to set the mappings from DSCP
priorities to PHBs and colors in a DiffServ domain. After the DiffServ domain is bound
to the inbound interface of messages, the switch sends messages to corresponding
queues on the interface based on the PHBs to implement congestion management.
After a drop profile is configured, the system can implement congestion avoidance
based on message colors.
Example
# Configure the mapping between the DSCP priority of IP packets in the ingress
direction in the DiffServ domain and PHBs, and color tag the packets.
S6800(config-dsdomain-domain-1)#ip-dscp-inbound 1 phb be
S6800(config-dsdomain-domain-1)#
Related Commands
None
6.4.7 ip-dscp-outbound
Function
The ip-dscp-outbound command configures the mappings from per hop behaviors
(PHBs) and colors of egress IP messages to DSCP priorities in a DiffServ domain.
Format
ip-dscp-outbound default
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure mappings from PHBs and colors to DSCP
priorities on a DiffServ domain for IP messages after QoS scheduling. After the
DiffServ domain is bound to the outbound interface of messages, the downstream
device can perform message scheduling based on the DSCP priority.
Example
Related Commands
None
6.4.8 mpls-exp-inbound
Function
Format
mpls-exp-inbound priority phb { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } { green
| yellow | red }
mpls-exp-inbound default
Parameters
Default Value
None
View
Usage Guidelines
When QoS scheduling is required for MPLS packets from the upstream device, you
can use this command to set the mappings from EXP priorities to PHBs and colors in
a DiffServ domain. After you bind the DiffServ domain to the inbound interface of
packets, the QoS module performs congestion management based on PHBs of
packets.
Example
# Configure the mapping between the EXP priority of MPLS packets in the ingress
direction in the DiffServ domain and PHBs, and color tag the packets.
S6800(config-dsdomain-domain-1)#mpls-exp-inbound 7 phb be
S6800(config-dsdomain-domain-1)#
Related Commands
None
6.4.9 mpls-exp-outbound
Function
The mpls-exp-outbound command configures the mappings from per hop behaviors
(PHBs) and colors of egress MPLS packets to 802.1p priorities in a DiffServ domain.
Format
mpls-exp-outbound default
Parameters
Default Value
None
View
Usage Guidelines
When QoS scheduling is required for MPLS packets from the upstream device, you
can use this command to set the mappings from EXP priorities to PHBs and colors in
a DiffServ domain. After you bind the DiffServ domain to the inbound interface of
packets, the QoS module performs congestion management based on PHBs of
packets.
Example
# Configure the mapping between the PHBs/colors of VLAN packets in the egress
direction in the DiffServ domain and the 802.1p priority.
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The trust diffServ domain name command binds a DiffServ domain to an interface.
The trust diffServ domain recover command restores the default priority mapping
for ingress or egress packets on an interface.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Restore the default priority mapping for ingress or egress packets on an interface.
Related Commands
None
The trust 8021p command specifies the type of the priority to be mapped in packets
in the interface configuration view.
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
A DiffServ domain defines mappings between three types of priority (802.1p, DSCP,
and MPLS EXP) and PHBs/colors. After a DiffServ domain is bound to an interface,
you can use this command to the specify the type of priority to be mapped.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
After this command is configured, the system maps the priorities of packets passing
through the interface based on the mapping in the DiffServ domain.
The default command restores the default configuration that may have been modified.
The recover command restores the original default configuration.
A DiffServ domain defines mappings between three types of priority (802.1p, DSCP,
and MPLS EXP) and PHBs/colors. After a DiffServ domain is bound to an interface,
you can use this command to the specify the type of priority to be mapped.
Example
Related Commands
None
Function
The trust dscp command specifies the type of the priority to be mapped in DSCP
packets.
Format
trust dscp
Parameters
None
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
A DiffServ domain defines mappings between three types of priority (802.1p, DSCP,
and MPLS EXP) and PHBs/colors. After a DiffServ domain is bound to an interface,
you can use this command to the specify the type of priority to be mapped.
Example
S6800(config-ge1/0/1)#trust dscp
S6800(config-ge1/0/1)#
Related Commands
None
Format
trust mpls-exp
Parameters
None
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
A DiffServ domain defines mappings between three types of priority (802.1p, DSCP,
and MPLS EXP) and PHBs/colors. After a DiffServ domain is bound to an interface,
you can use this command to the specify the type of priority to be mapped.
Example
S6800(config-ge1/0/1)#trust none
S6800(config-ge1/0/1)#
Related Commands
None
The trust none command cancels the type of the priority to be mapped in packets.
Format
trust none
Parameters
None
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
S6800(config-ge1/0/1)#trust none
S6800(config-ge1/0/1)#
Related Commands
None
Function
Format
debug igmpsnoop
no debug igmpsnoop
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800#debug igmpsnoop
S6800#
Related Commands
None
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
igmp-snooping {start|stop}
Function
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Example
S6800(config-xge1/0/1)#igmp-snooping enable
S6800(config-xge1/0/1)#igmp-snooping ctrlmode enable
S6800(config-xge1/0/1)#
Related Commands
igmp-snooping {enable|disable}
The igmp-snooping fast-leave command enables or disables the fast leave function
on an interface.
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
After the fast leave function is enabled on an interface, the S6800 will delete the
interface from the forwarding entry of a multicast group immediately after receiving an
IGMP Leave packet for this group from a host. When only one user host is connected
to the interface, the fast leave mechanism enables the switch to release bandwidth
resources in a timely manner.
Before using this command, run the igmp-snooping start and igmp-snooping
enable commands in the global configuration view.
Note:
You can configure the fast leave function only when each multicast group member
interface in a VLAN is connected to only one receiver host. If an interface is connected
to multiple receiver hosts, fast leave will interrupt multicast data transmission to other
receiver hosts.
Example
Related Commands
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#
Related Commands
igmp-snooping {start|stop}
Format
Parameters
Default Value
None
View
Usage Guidelines
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Example
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
Controls the deadline for hosts to send Membership Report Packets. Enables hosts to
rapidly respond to Query packets and avoids traffic congestion due to a large number
of Report packets sent by many hosts simultaneously.
Adjusts the aging time of member interfaces. When the S6800 receives an IGMP
Report packet from a host, it sets the aging time of the corresponding group member
interface to: IGMP robustness count x General query interval + Maximum response
time. This command sets the maximum response time used in the formula. You can
configure the IGMP robustness variable using the igmp-snooping robust-count
command. The general query interval is configured using the igmp-snooping
query-interval command.
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Note:
Example
# Configure the global maximum response time for IGMP snooping General Query
packets.
S6800(config)#igmp-snooping max-response-time 10
S6800(config)#
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Example
S6800(config-igmpsnoop-mvlan2)#igmp-snooping forwarding-mode ip
S6800(config-igmpsnoop-mvlan2)#
Related Commands
None
Function
Format
no igmp-snooping group-policy
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Before using this command, run the igmp-snooping enable command in the global
configuration view.
Example
Related Commands
None
Function
Format
no igmp-snooping proxy-ip
Parameters
Default Value
None
View
Usage Guidelines
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Example
Related Commands
igmp-snooping group-address
Function
The igmp-snooping query-interval command sets the global general query interval
for IGMP snooping.
Format
Parameters
Default Value
View
Usage Guidelines
It is used to configure the interval for sending IGMP general query messages. If the
querier function is enabled in a VLAN, you can use this command to set the general
query interval. The S6800 switch then periodically sends General Query messages to
maintain group memberships on interfaces in the VLAN. The smaller the general
query interval, the more sensitive the querier will be, but the more resources will be
consumed on the S6800 switch.
It can be used to adjust the aging time of member interfaces. When the S6800
receives an IGMP Report packet from a host, it sets the aging time of the
corresponding group member interface to: IGMP robustness variable x General query
interval + Maximum response time. This command sets the general query interval
used in the formula. You can configure the IGMP robustness variable using the
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Example
S6800(config)#igmp-snooping query-interval 20
S6800(config)#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
After you configure this command, the switch sends a Report or a Leave packet to the
upstream device only when the first member joins the multicast group or the last
member leaves the multicast group.
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The igmp-snooping robust-count command sets the robustness count, that is, the
number of Group-specific Query packets sent by the querier.
Format
Parameters
Default Value
View
Usage Guidelines
Configure the number of Group-specific Query packets sent by the querier to avoid
packet loss. When the S6800 receives an IGMP Leave packet for a group om a host,
it sends a specified number of Group-specific Query packets to check whether this
group has other members. The number of Group-specific Query packets is specified
by the robustness count. The interval for sending Group-specific Query packets is
configured using the igmp-snooping lastmember-queryinterval command.
It can be used to adjust the aging time of member interfaces. When the S6800
receives an IGMP Report packet from a host, it sets the aging time of the
corresponding group member interface to: IGMP robustness count x General query
interval + Maximum response time. This command sets the robustness count used in
the formula. The general query interval is configured using the igmp-snooping
query-interval command. The maximum response time is configured using the
igmp-snooping max-response-time command.
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
If you repeatedly run this command in the same configuration view, the new
configuration will overwrite the old configuration.
Example
S6800(config)#igmp-snooping robust-count 2
S6800(config)#
Related Commands
None
Function
The igmp-snooping router-aging time command sets the global aging time for
router interfaces.
Format
Parameters
Default Value
View
Usage Guidelines
When a dynamic router interface receives an IGMP Query packet or PIM Hello packet,
the S6800 resets the aging timer of the router interface.
By default:
When a dynamic router interface receives an IGMP Query packet, the S6800 resets
the aging timer of the router interface to 400s.
When the interface receives a PIM Hello packet and the Holdtime value carried in the
packet is greater than the remaining aging time of the router interface, the S6800
resets the aging timer of the router interface to the Holdtime value. If the Holdtime
value is smaller than the remaining aging time, the switch does not reset the aging
timer of the router interface.
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Note:
If you repeatedly run this command in the same configuration view, the new
configuration will overwrite the old configuration.
Example
S6800(config)#igmp-snooping router-aging-time 2
S6800(config)#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Example
S6800(config)#igmp-snooping lastmember-querynumber 10
S6800(config)#
Related Commands
igmp-snooping lastmember-queryinterval
Function
Format
Parameters
Default Value
View
Usage Guidelines
Before using this command, run the igmp-snooping start and igmp-snooping enable
commands in the global configuration view.
Example
S6800(config)#igmp-snooping lastmember-queryinterval 2
S6800(config)#
Related Commands
igmp-snooping lastmember-querynumber
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config)#igmp-snooping start
S6800(config)#
Related Commands
None
The igmp-snooping group-limit action command sets the action when the number
of multicast groups on an interface exceeds the limit.
Format
no igmp-snooping group-limit
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Before running this command, you must enable the multicast snooping function using
the igmp-snooping {enable|disable} command.
Example
S6800(config-xge1/0/1)#igmp-snooping group-limit 2
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
no igmp-snooping static-group
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
igmp-snooping group-address
Function
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
igmp-snooping group-address
Format
Parameters
Default Value
View
Usage Guidelines
Before running this command, you must run the igmp-snooping version command to
set the protocol version to V3.
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
igmp-snooping {start|stop}
Function
Format
igmp-snooping version { v1 | v2 | v3 }
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-igmpsnoop-mvlan100)#igmp-snooping version v1
S6800(config-igmpsnoop-mvlan100)#
Related Commands
igmp-snooping {start|stop}
The igmp-snooping workmode command sets the IGMP snooping working mode.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The igmp-snooping drop command configures the IGMP snooping query or report
mode on an interface.
Format
no igmp-snooping drop
Parameters
Default Value
None
View
Usage Guidelines
Before running this command, you must enable IGMP snooping using the
igmp-snooping {enable|disable} command.
Example
Related Commands
None
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
show igmp-snooping
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
This command displays the following information: IGMP snooping status (enabled or
disabled), number of query packets, global general query interval, global aging time,
and line card synchronization status.
Example
S6800(config)#show igmp-snooping
S6800(config)#
Related Commands
None
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
None
Example
Related Commands
show igmp-snooping
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
This command displays the following information: group address of the outbound
interface, multicast VLAN ID, interface type, and interface number.
Example
Related Commands
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
This command displays the following information: group address, multicast VLAN ID,
and member interfaces added to multicast groups.
Example
Related Commands
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
This command displays the following information: multicast interface type, IGMP
snooping information, fast leave function status, and controllable multicast information
(ctrlmode).
Example
Related Commands
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
This command displays the following information: multicast VLAN working mode,
multicast VLAN ID, IGMP snooping version, log proxy function status, and user
VLANs.
Example
Related Commands
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
This command displays the following information: multicast source address, multicast
VLAN ID, interface type, and port type.
Example
Related Commands
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), MVLAN configuration view, interface group
configuration view
Usage Guidelines
This command displays the following information: uplink interfaces, multicast VLAN ID,
and interface type.
Example
Related Commands
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
256
View
Usage Guidelines
Before using this command, run the igmp-control channel mvlan group-address
source-address command.
Example
Related Commands
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
The igmp-control package command configures channel binding for the controllable
program package.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
Function
The igmp-control auth package command configures a user as common user and
binds a program package.
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
S6800(config-xge1/0/1)#igmp-control max-channel 15
S6800(config-xge1/0/1)#
Related Commands
None
Function
The igmp-control no-auth command sets the user as a super user and allows the
user to watch all channels.
Format
igmp-control no-auth
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
# Set the user as a super user and allow the user to watch all channels.
S6800(config-xge1/0/1)#igmp-control no-auth
S6800(config-xge1/0/1)#
Related Commands
None
7.3.11 no igmp-control
Function
Format
no igmp-control
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
To perform the operation for all VLANs, use a command without VLAN parameters.
Example
S6800(config-xge1/0/1)#no igmp-control
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show igmp-control channel command to shows the controllable channel list
information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show igmp-control log-info command shows the user login, logout, and online
period statistics.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
# Display the login, logout, and online duration information of controllable users.
S6800(config)#
Related Commands
None
Function
The show igmp-control package command shows the controllable channel package
information.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
igmp-control preview-profile
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
igmp-control preview-reset-time
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to view information about the IGMP process and IGMP
packets sent and received. This command is used to maintain and debug the IGMP
function of the switch.
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#igmp start
S6800(config)#igmp
S6800(config-igmp)#general-query vlan 1
S6800(config-igmp)#
Related Commands
None
7.4.3 igmp
Function
Format
igmp
no igmp
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#igmp
S6800(config-igmp)#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
Note:
When configuring IGMP in the VLANIF configuration view, make sure that the
corresponding VLAN has been configured with an IP address. Otherwise, IGMP
configuration fails.
Before enabling IGMP on an interface, enable IGMP in the instance to which the interface
belongs. Otherwise, IGMP cannot be enabled on this interface.
Example
Related Commands
None
The igmp fast-leave enable command enables IGMP fast leave on an interface.
The igmp fast-leave disable command disables IGMP fast leave on an interface.
Format
Parameters
Default Value
View
Usage Guidelines
When a group member leaves the multicast group, the host sends an IGMP Leave
packet. If IGMP fast leave is enabled on an interface, the switch will delete the
multicast forwarding entry of the interface immediately after receiving an IGMP Leave
packet. This function conserves bandwidth and system resources, and enables fast
switching of service traffic.
After IGMP fast leave is disabled, the IGMP querier does not send a Leave packet to
the upstream device after receiving an IGMP Leave packet from a host. Instead, it
sends IGMP Group-Specific Query or Source-Specific Query packets.
Example
Related Commands
None
The igmp lastmember-queryinterval command sets the interval at which the IGMP
querier sends Group-Specific Query packets after receiving an IGMP Leave packet
from a host.
Format
Parameters
Default Value
View
Usage Guidelines
This command takes effect for an IGMP querier running IGMPv2 or IGMPv3. This
command (valid only on the current interface) has the same function as the
lastmember-queryinterval command in the IGMP view (globally valid for all interfaces),
except for the scopes they take effect. The configuration in the interface view takes
precedence over the global configuration. The configuration in the IGMP view takes
effect only when no configuration is made in the interface view.
Example
# Set the interval at which the IGMP querier sends Group-Specific Query packets to
2s.
S6800(config-vlan-100)#igmp lastmember-queryinterval 2
S6800(config-vlan-100)#
Related Commands
None
The igmp limit command sets the maximum number of IGMP group memberships on
an interface.
Format
Parameters
Default Value
View
Usage Guidelines
The system no longer creates new IGMP entries after the number of existing IGMP
entries reaches the limit. To add new multicast groups, delete unnecessary entries,
change the limit value, or create static multicast groups.
Example
Related Commands
None
Function
The igmp max-response-time command sets the maximum response time for IGMP
Query packets on an interface.
Format
Parameters
Default Value
By default, the maximum response time for IGMP Query packets is 10s.
View
Usage Guidelines
The maximum response time provides the following functions: Controls the deadline
for hosts to send Membership Report Packets. Enables hosts to rapidly respond to
Query packets and avoids traffic congestion due to a large number of Report packets
sent by many hosts simultaneously. The actual maximum response time for hosts to
respond to general query packets is a random value ranging from 0 to
max-response-time.
This command (valid only on the current interface) has the same function as the
max-response-time command (globally valid for all interfaces), except for the scopes
they take effect. The configuration in the interface view takes precedence over the
global configuration. The configuration in the IGMP view takes effect only when no
configuration is made in the interface view.
Example
# Set the maximum response time for IGMP general query packets on interface
VLANIF100 to 6s.
S6800(config-vlan-100)#igmp max-response-time 6
S6800(config-vlan-100)#
Related Commands
None
Function
The igmp timer other-querier-present command sets the IGMP other querier
present timer on an interface.
Format
Parameters
Default Value
View
Usage Guidelines
The querier present timer value is calculated using the following formula: IGMP other
querier present timer = Robustness count x IGMP general query interval + 1/2 x
Maximum response time for Query packets. If the robustness count, IGMP general
query interval, and maximum response time all retain the default values, the IGMP
other querier present timer is 255s (default value).
This command is applicable to IGMPv2 and IGMPv3. This command (valid only on the
current interface) has the same function as the timer other-querier-present command
(globally valid for all interfaces), except for the scopes they take effect. The
configuration in the interface view takes precedence over the global configuration.
The configuration in the IGMP view takes effect only when no configuration is made in
the interface view.
Note:
If the other IGMP querier present timer value is smaller than the general query interval,
the querier on the network will change frequently on the network. Therefore, set an
appropriate value for the timer.
Example
Related Commands
None
Function
Format
igmp general-query
Parameters
None
Default Value
View
Usage Guidelines
The IGMP querier periodically sends General Query messages to every connected
subnet to determine whether any group members exist and check which subnets have
no group member.
Example
S6800(config-vlan-100)#igmp general-query
S6800(config-vlan-100)#
Related Commands
None
The no igmp group-policy command deletes the IGMP group filter on an interface.
Format
no igmp group-policy
Parameters
Default Value
By default, no filter is configured on an interface, and hosts can join any multicast
groups.
View
Usage Guidelines
Before using this command, configure the ACL you want to reference to limit the range
of multicast groups that hosts connected to the interface can join.
If you do not specify any IGMP version in the command, the ACL applies to IGMPv1,
IGMPv2, and IGMPv3 hosts.
Example
# Configure ACL 1001 to allow hosts to accept messages from multicast group
225.1.1.1. Configure a filter referencing this ACL on VLANIF 10 to specify that hosts
connected to the interface can only join multicast group 225.1.1.1.
S6800(config)#filter-list 1001
S6800(configure-filter-ipv4-1001)#filter 1 ip 225.1.1.1/32 any
S6800(configure-filter-ipv4-1001)#filter 1 action permit
S6800(configure-filter-ipv4-1001)#quit
S6800(config)#interface vlan 10
S6800(config-vlan-10)#igmp group-policy filter-list 1001
S6800(config-vlan-10)#
Related Commands
None
Function
Format
igmp require-router-alert
no igmp require-router-alert
Parameters
None
Default Value
By default, the system does not check the Router-Alert option in IGMP packet
headers on an interface. That is, the system processes all the received IGMP packets,
including those not carrying the Router-Alert option.
View
Usage Guidelines
After you use this command to configure Router-Alert option check on an interface,
received IGMP packets not carrying this option will be dropped on this interface. This
command is applicable to IGMPv2 and IGMPv3.
This command (valid only on the current interface) has the same function as the
require-router-alert command in the IGMP view (globally valid for all interfaces),
except for the scopes they take effect. The configuration in the interface view takes
precedence over the global configuration. The configuration in the IGMP view takes
effect only when no configuration is made in the interface view.
Example
# Configure VLANIF 100 to drop IGMP packets without the Router-Alert option.
S6800(config-vlan-100)#igmp require-router-alert
S6800(config-vlan-100)#
Related Commands
None
The igmp robust-count command sets the IGMP querier robustness count on an
interface.
Format
Parameters
Default Value
View
Usage Guidelines
The IGMP querier maintains IGMP group memberships on interfaces. The robustness
count affects the timeout time of group memberships.
The group membership timeout time is calculated using the following formula: Group
membership timeout time = IGMP general query interval x Robustness count +
Maximum response time.
This command (valid only on the current interface) has the same function as the
robust-count command in the IGMP view (globally valid for all interfaces), except for
the scopes they take effect. The configuration in the interface view takes precedence
over the global configuration. The configuration in the IGMP view takes effect only
when no configuration is made in the interface view.
Example
S6800(config-vlan-100)#igmp robust-count 4
S6800(config-vlan-100)#
Related Commands
None
Function
Format
igmp send-router-alert
no igmp send-router-alert
Parameters
None
Default Value
By default, IGMP packets sent from an interface carry the Router-Alert option in IP
packet headers.
View
Usage Guidelines
This command (valid only on the current interface) has the same function as the
robust-count command in the IGMP view (globally valid for all interfaces), except for
the scopes they take effect. The configuration in the interface view takes precedence
over the global configuration. The configuration in the IGMP view takes effect only
when no configuration is made in the interface view.
Example
# Configure VLANIF 100 to send IGMP packets carrying the Router-Alert option.
S6800(config-vlan-100)#igmp send-router-alert
S6800(config-vlan-100)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
This command must be used before all the other IGMP configuration commands.
Other configuration takes effect only after the IGMP is enabled globally.
Example
S6800(config)#igmp start
S6800(config)#igmp stop
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The igmp static-group egress-port command creates a static IGMP group and
specifies the outbound interface on an interface.
The no igmp static-group egress-port command deletes a static IGMP group and
the specified outbound interface on an interface.
Format
Parameters
Default Value
View
Usage Guidelines
After you use this command to create a static multicast group on an interface, the
IGMP entry created on the switch does not have a timer. Therefore, the switch
considers that the interface is always connected to group member hosts and
continuously forwards multicast packets matching specified conditions to the network
segment of the interface. If you do not want the switch to forward multicast data to
receiver hosts connected to the interface, you must manually delete the static
multicast group.
Example
Related Commands
None
Function
The igmp static-group source command creates a static IGMP group and specifies
a matching multicast source address on an interface.
The no igmp static-group source command deletes a static IGMP group and the
matching multicast source address on an interface.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Create static multicast group 224.1.1.1 and specify multicast source 10.18.11.1 on
VLANIF 100.
Related Commands
None
The igmp static-group source egress-port command creates a static IGMP group
and specifies the matching multicast source address and outbound interface on an
interface.
Format
Parameters
Default Value
View
Usage Guidelines
After you use this command to create a static multicast group on an interface, the
IGMP entry created on the switch does not have a timer. Therefore, the switch
considers that the interface is always connected to group member hosts and
continuously forwards multicast packets matching specified conditions to the network
segment of the interface. If you do not want the switch to forward multicast data to
receiver hosts connected to the interface, you must manually delete the static
multicast group.
Example
# Create static multicast group 224.1.1.1 and specify multicast source 10.18.11.1 and
outbound interface xgigaethernet1/0/1 on VLANIF 100.
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
The SSM source-group address mapping entries configured on an interface only after
you run this command to enable SSM mapping on the interface. This command takes
effect only on the received IGMPv1 and IGMPv2 Join packets. The system converts
group join information in these packets into source-specific join information.
Example
S6800(config-vlan-1)#igmp enable
S6800(config-vlan-1)#igmp ssm-mapping enable
S6800(config-vlan-1)#
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Example
S6800(config)#filter-list 1001
S6800(configure-filter-ipv4-1001)#quit
S6800(config)#igmp start
S6800(config)#igmp
S6800(config-igmp)#
S6800(config-igmp)#igmp ssm-mapping filter-list 1001 source-address 1.1.1.1
S6800(config-igmp)#
Related Commands
Function
The igmp timer query command sets the IGMP general query interval on an
interface.
Format
Parameters
Default Value
View
Usage Guidelines
This command (valid only on the current interface) has the same function as the timer
query command (globally valid for all interfaces), except for the scopes they take
effect. The configuration in the interface view takes precedence over the global
configuration. The configuration in the IGMP view takes effect only when no
configuration is made in the interface view.
Example
Related Commands
None
Function
The igmp version command configures the IGMP version running on an interface.
Format
Parameters
Default Value
View
Usage Guidelines
All device interfaces in the same subnet must run the same IGMP version cannot
automatically switch between different IGMP versions.
Example
S6800(config-vlan-100)#igmp version v1
S6800(config-vlan-100)#
Related Commands
None
Function
The igmp vpn-instance command creates the IGMP view of a VPN instance.
Format
Parameters
Default Value
None
View
Usage Guidelines
The VPN instance specified in the command must be an existing one. Otherwise, the
IGMP view fails to be created.
Example
Related Commands
None
7.4.25 lastmember-queryinterval
Function
The lastmember-queryinterval command sets the global interval at which the IGMP
querier sends Group-Specific Query packets after receiving an IGMP Leave packet
from a host.
Format
Parameters
Default Value
View
Usage Guidelines
This command is globally valid for all interfaces. It has the same function as the igmp
lastmember-queryinterval command in the VLANIF configuration command (valid only
on the current interface), except for the scopes they take effect. The configuration in
the interface view takes precedence over the global configuration. The configuration
in the IGMP view takes effect only when no configuration is made in the interface view.
Example
# In the IGMP configuration view, set the interval at which the IGMP querier sends
Group-Specific Query packets to 2s.
S6800(config-igmp)#lastmember-queryinterval 2
S6800(config-igmp)#
Related Commands
None
7.4.26 limit
Function
The limit command sets the maximum number of IGMP entries that can be created in
the system.
Format
Parameters
Default Value
View
Usage Guidelines
The system no longer creates new IGMP entries when the number of existing IGMP
entries reaches the configured limit. To add new multicast groups, delete unnecessary
entries, change the limit value, or create static multicast groups.
Example
# Set the maximum number of IGMP entries can be created in the system to 1000.
S6800(config-igmp)#limit 1000
S6800(config-igmp)#
Related Commands
None
7.4.27 max-response-time
Function
The max-response-time command sets the maximum response time for IGMP Query
packets.
Format
Parameters
Default Value
By default, the maximum response time for IGMP Query packets is 10s.
View
Usage Guidelines
This command (globally valid for all interfaces) has the same function as the igmp
max-response-time command in the VLANIF configuration command (valid only on
the current interface), except for the scopes they take effect. The configuration in the
interface view takes precedence over the global configuration. The configuration in
the IGMP view takes effect only when no configuration is made in the interface view.
Example
# Set the maximum response time for IGMP Query packets to 15s.
S6800(config-igmp)#max-response-time 15
S6800(config-igmp)#
Related Commands
None
Function
The no igmp group vlan command deletes a specified VLAN interface or the
dynamic IGMP entry of the specified group address on the specified VLAN interface.
The no igmp group vlan all command deletes all dynamic IGMP entries.
Format
Parameters
Default Value
None
View
Usage Guidelines
This command deletes only dynamic IGMP entries and does not take effect on
multicast groups.
Example
Related Commands
None
Function
The no igmp group vlan source command deletes the multicast source in the
dynamic IGMP entry with the specified group on a specified VLAN interface.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Delete the multicast source in the dynamic IGMP entry with the specified group on a
specified VLAN interface.
S6800(config-igmp)#
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Delete an outbound interface in the dynamic IGMP entry with the specified group
address and source address on a specified VLAN interface.
S6800(config-igmp)#no igmp group vlan 255 1.1.0 source 10.18.2.12 egress-port xgigaethernet
1/0/1
S6800(config-igmp)#
Related Commands
None
7.4.31 require-router-alert
Function
Format
require-router-alert
no require-router-alert
Parameters
None
Default Value
By default, the system does not check the Router-Alert option in IGMP packet
headers. That is, the system processes all the received IGMP packets, including
those not carrying the Router-Alert option.
View
Usage Guidelines
After you use this command to configure Router-Alert option check, received IGMP
packets not carrying this option will be dropped. This command is applicable to
IGMPv2 and IGMPv3.
This command (globally valid for all interfaces) has the same function as the igmp
require-router-alert command in the VLANIF configuration command (valid only on the
current interface), except for the scopes they take effect. The configuration in the
interface view takes precedence over the global configuration. The configuration in
the IGMP view takes effect only when no configuration is made in the interface view.
Example
# Configure the system to drop IGMP packets without the Router-Alert option.
S6800(config-igmp)#require-router-alert
S6800(config-igmp)#
Related Commands
None
7.4.32 robust-count
Function
The robust-count command sets the global IGMP querier robustness count.
Format
Parameters
Default Value
View
Usage Guidelines
The IGMP querier robustness count is used to set the following parameters:
Number of times the querier sends General Query packets upon startup
Number of times the querier sends Group-Specific packets after receiving a Leave
packet.
This command (globally valid for all interfaces) has the same function as the igmp
send-router-alert command in the VLANIF configuration command (valid only on the
current interface), except for the scopes they take effect. The configuration in the
interface view takes precedence over the global configuration. The configuration in
the IGMP view takes effect only when no configuration is made in the interface view.
Example
S6800(config-igmp)#robust-count 2
S6800(config-igmp)#
Related Commands
None
7.4.33 send-router-alert
Function
Format
send-router-alert
no send-router-alert
Parameters
None
Default Value
By default, IGMP packets sent from the switch carry the Router-Alert option in IP
packet headers.
View
Usage Guidelines
This command (globally valid for all interfaces) has the same function as the igmp
send-router-alert command in the VLANIF configuration command (valid only on the
current interface), except for the scopes they take effect. The configuration in the
interface view takes precedence over the global configuration. The configuration in
the IGMP view takes effect only when no configuration is made in the interface view.
Example
# Configure the system to send IGMP packets carrying the Router-Alert option.
S6800(config-igmp)#send-router-alert
S6800(config-igmp)#
Related Commands
None
Format
show igmp
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, IGMP configuration view, IGMP VPN configuration view
Usage Guidelines
None
Example
S6800#show igmp
IGMP is started
Global interface maximum: 32
Global group maximum: 2048
Global source maximun: 2048
Global egress maximum: 2048
S6800#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, IGMP configuration view, IGMP VPN configuration view
Usage Guidelines
You can use this command to check IGMP configuration information, including
whether IGMP is enabled globally, configuration of require-route-alert,
send-route-alert, and timer query, and IGMP configuration on VLAN interfaces.
Example
!Interface configuration
VID:100
igmp enable
igmp version v1
igmp max-response-time 100
igmp timer other-querier-present 100
igmp fast-leave enable
igmp require-router-alert
igmp limit 100
igmp static-group 1.1.1.1
igmp static-group 1.1.1.1 egress-port xgigaethernet 1/0/1
S6800(config-igmp)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, IGMP configuration view, IGMP VPN configuration view
Usage Guidelines
You can use this command to view information about outbound interfaces in IGMP
entries, including the VLAN ID, group address, multicast source address, outbound
interface number, and type (static or dynamic).
Example
Related Commands
None
Function
The show igmp group command displays the IGMP group information.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, IGMP configuration view, IGMP VPN configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, IGMP configuration view, IGMP VPN configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show igmp source command displays IGMP multicast source information.
Format
show igmp source { static | dynamic | all } vlan vlan-id group group-address
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, IGMP configuration view, IGMP VPN configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show igmp ssm-mapping command displays SSM mapping entries configured
using the ssm-mapping command.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, IGMP configuration view, IGMP VPN configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, IGMP configuration view, IGMP VPN configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The timer other-querier-present command sets the global IGMP other querier
present timer.
Format
Parameters
Default Value
View
Usage Guidelines
The querier present timer value is calculated using the following formula: IGMP other
querier present timer = Robustness count x IGMP general query interval + 1/2 x
Maximum response time for Query packets. If the robustness count, IGMP general
query interval, and maximum response time all retain the default values, the IGMP
other querier present timer is 255s (default value).
This command is applicable to IGMPv2 and IGMPv3. This command (globally valid for
all interfaces) has the same function as the igmp timer other-querier-present
command in the VLANIF configuration command (valid only on the current interface),
except for the scopes they take effect. The configuration in the interface view takes
precedence over the global configuration. The configuration in the IGMP view takes
effect only when no configuration is made in the interface view.
Note:
If the other IGMP querier present timer value is smaller than the general query interval,
the querier on the network will change frequently on the network. Therefore, set an
appropriate value for the timer.
Example
Related Commands
None
Function
The timer query command sets the global IGMP general query interval.
Format
Parameters
Default Value
View
Usage Guidelines
This command (globally valid for all interfaces) has the same function as the igmp
timer query command in the VLANIF configuration command (valid only on the current
interface), except for the scopes they take effect. The configuration in the interface
view takes precedence over the global configuration. The configuration in the IGMP
view takes effect only when no configuration is made in the interface view.
Example
Related Commands
None
7.5.1 accept-unkown-rp
Function
The accept-unkown-rp enable command enables PIM to accept Join messages with
unknown rendezvous point (RP) addresses.
Format
accept-unkown-rp enable
accept-unkown-rp disable
Parameters
None
Default Value
None
View
Usage Guidelines
In some cases, a PIM router may receive Join messages carrying an RP address
before it learns this RP address. By default, the PIM router drops such Join messages,
affecting multicast data forwarding in a period of time. This command enables the PIM
router to accept such Join messages before learning the RP address.
This function is used to optimize the multicast performance and is not required
generally.
Example
S6800(config)#ip multicast-routing
S6800(config)#pim
S6800(config-pim)#accept-unkown-rp enable
S6800(config-pim)#
Related Commands
None
7.5.2 assert-holdtime
Function
The assert-holdtime command sets the Assert state hold time for all the PIM
interfaces on the switch.
Format
Parameters
Default Value
180s
View
Usage Guidelines
None
Example
# Set the Assert state hold time for all the PIM interfaces on the switch to 30s.
S6800(config-pim)#assert-holdtime 30
S6800(config-pim)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
Example
S6800(config)#ip multicast-routing
S6800(config)#pim
S6800(config-pim)#c-bsr admin-scope enable
S6800(config-pim)#
Related Commands
None
Function
The c-bsr send-interval command sets the interval at which the BSR sends
Bootstrap packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Set the interval at which the BSR continuously sends Bootstrap packets to 30s.
S6800(config-pim)#c-bsr send-interval 30
S6800(config-pim)#
Related Commands
None
Function
The c-rp hold-time command sets the hold time for received Advertisement packets
on the BSR.
Format
Parameters
Default Value
150s
View
Usage Guidelines
None
Example
# Set the hold time for received Advertisement packets on the BSR to 30s.
S6800(config-pim)#c-rp hold-time 30
S6800(config-pim)#
Related Commands
None
Function
The c-rp send-interval command sets the interval at which the C-RP continuously
sends Advertisement packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Set the interval at which the C-RP continuously sends Advertisement packets to
30s.
S6800(config-pim)#c-rp send-interval 30
S6800(config-pim)#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
With this function enabled, the switch checks whether the received Join/Prune and
Assert packets are sent from PIM neighbors. If not, the switch drops the packets.
Example
S6800(config)#receive-check-neighbor enable
S6800(config)#
Related Commands
None
Function
Format
debug pim
debug pim { all | message | if | nbr | route | rp | bsr | packet | igmp | hello |
join-prune | reg | graft | srm | assert | hardware | sync }
no debug pim
no debug pim { all | message | if | nbr | route | rp | bsr | packet | igmp | hello |
join-prune | reg | graft | srm | assert | hardware | sync }
Parameters
None
Default Value
View
Usage Guidelines
When you need to maintain PIM or locate PIM problems, you can use this command
to enable PIM debugging.
Example
Related Commands
None
7.5.9 ip multicast-routing
Function
Format
ip multicast-routing
no ip multicast-routing
Parameters
None
Default Value
View
Usage Guidelines
After you run this command to enable the PIM protocol, PIM runs on all the interfaces.
Example
S6800(config)#ip multicast-routing
S6800(config)#
Related Commands
None
7.5.10 ip {pim-sm|pim-dm}
Function
Format
ip pim-sm
no ip pim-sm
ip pim-dm
no ip pim-dm
Parameters
None
Default Value
View
Usage Guidelines
After you globally enable the PIM protocol and then enable the PIM-SM function on an
interface, the switch can establish a PIM neighbor relationship with neighboring
switches and process protocol packets from the PIM neighbors.
Note:
Before configuring IP PIM, ensure that the PIM protocol is globally enabled, that is, ip
multicast-routing is enabled.
Example
Related Commands
None
The ip pim bfd command configures the BFD function on a PIM interface.
Command format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
224.0.0.0/4
View
Usage Guidelines
By configuring a PIM boundary router on an interface, you can divide a large PIM
network into multiple PIM domains, and each BSR only serves the local PIM-SM
domain. Bootstrap packets cannot pass the BSR boundary, but other multicast
packets can.
The boundary router of a PIM domain mainly generates RP entries and prohibits
propagation of BSR packets. Generally, no boundary router needs to be configured.
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The ip pim c-rp group priority command configures a router interface as a CRP.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Configure interface VLAN 1 as a CRP with a priority of 15, to serve multicast groups
within the range of 225.1.1.0/24.
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
After configuring an IP address and enabling PIM on an interface, you can use this
command to configure the DR priority of PIM on the interface. The priority is used for
electing a DR from PIM neighbors on an interface (a PIM neighbor with the highest
DR priority is preferentially selected, and if PIM neighbors have the same DR priority,
the one with a larger IP address is selected).
Example
Related Commands
None
Function
The ip pim graft retry-time command sets the time interval for retransmitting graft
messages.
Format
Parameters
Default Value
View
Usage Guidelines
In PIM-DM mode, when a member joins a pruned group, the switch sends a graft
message and waits for upstream confirmation. If no confirmation message is received
within the time configured by this command, the switch retransmits the graft message
until it receives an upstream confirmation message.
Example
S6800(config-vlan-1)#no ip pim-sm
S6800(config-vlan-1)#ip pim-dm
S6800(config-vlan-1)#ip pim graft retry-time 10
S6800(config-vlan-1)#
Related Commands
None
Function
The ip pim hello-interval command sets the time interval for sending Hello packets
on a PIM interface.
Format
Parameters
Default Value
The default time interval for sending Hello packets on a PIM interface is 30s.
View
Usage Guidelines
After configuring an IP address and enabling PIM on an interface, you can use this
command to set the frequency for sending PIM Hello messages on the interface,
which can be changed as required.
Generally, this value does not need to be changed. The Hello interval of neighbors
must be the same.
Example
# Set the time interval for sending PIM Hello packets on interface VLANIF 100 to 60s.
Related Commands
None
Function
The ip pim hello-option holdtime command sets the timeout interval for a PIM
interface to wait for Hello packets from a PIM neighbor.
Format
Parameters
Default Value
View
Usage Guidelines
On the PIM network, after receiving a Hello packet from a PIM neighbor, the switch
starts a timer, and the time is set to the hold time carried in the packet. If the switch
does not receive a subsequent Hello packet from the neighbor upon timeout, the
neighbor is considered unavailable or unreachable.
You can use this command to set the Holdtime parameter to adjust the hold time of
Hello packets. The hold time of Hello packets must be greater than the time interval
for sending Hello packets.
Example
# Set the timeout interval for a PIM interface to wait for Hello packets from a PIM
neighbor to 60s.
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
When sending a Hello packet, the switch generates a generation ID and adds it to the
packet. Generally, the generation ID remains unchanged. A new generation ID may be
generated only when the device status changes. In this case, after receiving the Hello
packet, the neighboring switch finds that the generation ID changes, and immediately
sends a join message to the switch to refresh the neighbor relationship. Generally, if
multiple switches in the shared network segment prepare to send join requests to the
same upstream switch, a listening mechanism is used to suppress the number of such
join packets, that is, after detecting a join packet of another switch, one switch no
longer sends join packets to the upstream PIM neighbor. Therefore, in this case, the
upstream neighbor whose generation ID has changed cannot update the neighbor
relationship with each downstream switch.
You can use this command to enable neighbor tracking. After detecting a join packet
sent by another switch, one switch still sends join packets to the same upstream PIM
neighbor.
Before using this command, run the ip multicast command on the public network or
VPN instance to enable multicast routing.
To enable neighbor tracking, you must run this command on all switches in the shared
network segment.
Example
Related Commands
None
Function
Format
Parameters
Default Value
2500 ms
View
Usage Guidelines
A Hello packet sent by the switch carries the lan-delay (packet transmission delay)
and override-interval (pruning override interval) parameters. override-interval
specifies the time allowed for the downstream switch to override the pruning action.
When a switch sends a pruning packet to the upstream switch, if another switch in the
same network segment needs to receive multicast data, the switch must send a
pruning override packet to the upstream switch within the override interval.
When the override-interval values on all switches in the same link vary, the maximum
value will be selected through negotiation.
Example
# Set the pruning override interval in Hello packets sent on interface VLANIF 100 to
3000 ms.
Related Commands
None
The ip pim hello-option prune-delay command sets the packet transmission delay
on a shared network in the interface view.
Format
Parameters
Default Value
500 ms
View
Usage Guidelines
A Hello packet sent by the switch carries the lan-delay (packet transmission delay)
and override-interval (pruning override interval) parameters. lan-delay specifies the
packet transmission delay on a LAN. When the lan-delay values on all switches in the
same link vary, the maximum value will be selected through negotiation.
When a switch sends a pruning packet to the upstream switch, if another switch in the
same network segment needs to receive multicast data, the switch must send a
pruning override packet to the upstream switch within the override interval.
lan-delay + override-interval = PPT. PPT specifies the delay between the time when
the current switch receives a downstream pruning packet and the time when pruning
is performed (suppressing the forwarding on a downstream interface). If receiving a
pruning override packet from the downstream switch within the period specified by the
PPT, the switch cancels pruning.
Example
# Set the packet transmission delay on a shared network in the interface view.
Related Commands
None
The ip pim join-prune holdtime command sets the hold time of Join/Prune packets.
A switch receiving a Join/Prune packet determines the time for the corresponding
downstream interface to remain in the Join or Prune state based on the hold time
carried in the packet.
Format
Parameters
Default Value
View
Usage Guidelines
After receiving a Join/Prune packet from a downstream switch, the switch starts a
timer whose time is equal to the hold time carried in packet. If the switch does not
receive a subsequent Join/Prune packet from the downstream switch after timeout,
when the Join/Prune packet carries information about joining a multicast group, the
switch suppresses the forwarding on the downstream interface of the corresponding
multicast group; when the packet carries pruning information for a certain multicast
group, the switch resumes the forwarding on the downstream interface of the
corresponding multicast group.
Example
Related Commands
None
Function
The ip pim join-prune interval command sets the interval of a PIM interface
cyclically sending Join/Prune messages to upstream devices.
Format
Parameters
Default Value
View
Usage Guidelines
After configuring an IP address and enabling PIM on an interface, you can use this
command to set the frequency for cyclically sending Join/Prune messages on the
interface, which can be changed as required.
Note:
Before configuring IP PIM commands, ensure that the PIM protocol is globally enabled and PIM-SM
is enabled on the corresponding VLAN interface, that is, ip multicast-routing is enabled and ip pim is
Example
# Set the interval of interface VLANIF 100 cyclically sending Join/Prune messages to
upstream devices to 100s.
Related Commands
None
Format
Parameters
None
Default Value
View
Usage Guidelines
State refreshing messages are cyclically sent on the network to enable PIM-DM state
refreshing. After receiving a state refreshing message, a switch in the pruning state
resets the pruning state timer to prevent the downstream interface from resuming
forwarding after the timer expires.
After PIM-DM state refreshing is disabled, the interface starts forwarding multicast
data after the pruning timer expires. The downstream switch that does not want to
receive the data sends Prune packets for pruning. This process repeats cyclically,
occupying a large number of network resources. Therefore, PIM-DM state refreshing
can optimize network traffic to some extent.
Example
S6800(config-vlan-1)#ip pim-sm
S6800(config-vlan-1)#ip pim state-refresh-capable disable
S6800(config-vlan-1)#
Related Commands
ip {pim-sm|pim-dm}
7.5.25 pim
Function
The pim command creates the PIM public network instance and displays its
configuration view.
The pim vpn-instance command creates a PIM VPN instance and displays its
configuration view.
Format
pim
no pim
Parameters
Default Value
None
View
Usage Guidelines
Before running this command, enable the PIM protocol. For details, see ip
multicast-routing.
Example
# Create PIM VPN instance abc and enter its configuration view.
S6800(config)#pim
S6800(config-pim)#quit
S6800(config)#ip vpn-instance abc
S6800(config-vpn-instance-abc)#route-distinguisher 100:1
S6800(config-vpn-instance-abc)#q
S6800(config)#pim vpn-instance abc
S6800(config-pim-abc)#
Related Commands
None
Function
Format
Parameters
None
Default Value
By default, the switch calculates the checksum based on all content of Register
messages.
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
None
Default Value
View
Usage Guidelines
When the total length of a multicast packet and Register message exceeds the MTU
of the inbound interface, the packet needs to be fragmented. The switch supports two
fragmentation methods. The first is to construct a Register message and then
fragment the message. The RP will reassemble the packet. The other is to fragment
the multicast packet and then construct two Register messages. The receiver will
reassemble the packet. The PIM standard recommends the second method because
it can reduce the load on the RP.
This command is used to select the Register message fragmentation method. After
you configure this command, the second fragmentation method is used.
Example
S6800(config)#ip multicast-routing
S6800(config)#pim
S6800(config-pim)#register fragment enable
S6800(config-pim)#
Related Commands
None
Function
The register mtu command sets MTU for fragmentation of PIM-SM Register
messages.
Format
Parameters
Default Value
1500
View
Usage Guidelines
When the total length of a multicast packet and Register message exceeds the MTU
of the inbound interface, the packet needs to be fragmented. The switch supports two
fragmentation methods. The first is to construct a Register message and then
fragment the message. The RP will reassemble the packet. The other is to fragment
the multicast packet and then construct two Register messages. The receiver will
reassemble the packet. The PIM standard recommends the second method because
it can reduce the load on the RP.
Because the line MTU in the network is unknown, this command can control the size
of one Register message to prevent secondary fragmentation of Register messages.
Example
S6800(config)#ip multicast-routing
S6800(config)#pim
S6800(config-pim)#register mtu 1000
S6800(config-pim)#
Related Commands
None
Function
Format
no register threshold
Parameters
Default Value
View
Usage Guidelines
By default, the received Register messages are directly decapsulated and forwarded
without SPT switching. When the Register message receiving speed corresponding to
an (S, G) group exceeds the limit, the RP generates another (S, G) routing entry, and
subsequent packets are directly forwarded based on the (S, G) entry without being
encapsulated in Register messages. The RP returns a Register Stop message after
receiving a Register message subsequently.
Example
S6800(config)#ip multicast-routing
S6800(config)#pim
Related Commands
None
Function
The register probe-interval command sets the interval at which the switch sends
probe packets (empty Register packets) to the RP.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the interval at which the switch sends probe packets (empty Register packets)
to the RP to 23s.
S6800(config-pim)#register probe-interval 23
S6800(config-pim)#
Related Commands
None
The register suppression-timeout command sets the timeout time of the registration
suppression state on the switch.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the timeout time of the registration suppression state on the switch to 200s.
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
With this function enabled, the switch checks whether Join/Prune and Assert packets
are sent to PIM neighbors. If not, the switch does not send the packets.
Example
S6800(config-pim)#send-check-neighbor enable
S6800(config-pim)#
Related Commands
None
Format
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800(config-pim)#spt-switch enable
S6800(config-pim)#
Related Commands
None
7.5.34 source-lifetime
Function
The source-lifetime command sets the timeout time of (S, G) entries on the switch.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-pim)#source-lifetime 200s
S6800(config-pim)#
Related Commands
None
The reset pim routing-table command resets the PIM status of downstream
interfaces in PIM entries.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#ip multicast-routing
S6800(config)#pim
S6800(config-pim)#reset pim routing-table
S6800(config-pim)#
Related Commands
None
The rp-address group command configures a static RP address for multicast groups.
Format
Parameters
Default Value
None
View
Usage Guidelines
If you specify group default in the command, the RP serves any groups.
If only a static RP is used, all the PIM routers in the network must be configured with
the same static RP, which requires much workload. Therefore, it is recommended that
you configure the static RP on the Bootstrap router (BSR), which will deliver the RP to
the other routers using BSR messages. You can also configure candidate RPs
(C-RPs) to transmit RP messages. To configure an RP for any groups, specify an RP
for group default. This configuration is different from that on other types of devices.
If you delete a static RP that serves multiple group addresses, these group addresses
are also deleted. Currently, no command can delete only one group address of a static
RP.
Example
S6800(config)#ip multicast-routing
S6800(config)#pim
S6800(config-pim)#rp-address 192.168.15.5 group 224.0.0.0 8
S6800(config-pim)#
Related Commands
None
7.5.37 state-refresh-interval
Function
The state-refresh-interval command sets the interval for sending PIM state refresh
messages.
Format
Parameters
Default Value
View
Usage Guidelines
The interval for sending PIM state refresh messages must be smaller than the hold
time of the Join or Prune state.
Example
# Set the interval for sending PIM state refresh messages to 50s.
S6800(config)#ip multicast-routing
S6800(config)#pim
S6800(config-pim)#state-refresh-interval 50
S6800(config-pim)#
Related Commands
None
7.5.38 state-refresh-rate-limit
Function
Format
Parameters
Default Value
View
Usage Guidelines
A switch may receive duplicate PIM state refresh messages from multiple switches
within a short period of time. This command enables the local switch to resets the
prune timer and starts the state refresh timer immediately after receiving the first state
refresh message. The timeout time of the state refresh timer is the waiting time for the
next state refresh message.
The switch drops the duplicate state refresh messages received before the state
refresh timer expires.
The switch accepts the next state refresh message after the state refresh timer
expires.
Example
# In the public network instance, set the minimum duration before accepting new PIM
state refresh messages to 48s.
S6800(config)#ip multicast-routing
S6800(config)#pim
S6800(config-pim)#state-refresh-rate-limit 48
S6800(config-pim)#
Related Commands
None
7.5.39 state-refresh-ttl
Function
The state-refresh-ttl command sets the TTL value for PIM state refresh messages
sent from the switch.
Format
Parameters
Default Value
255
View
Usage Guidelines
This command is applicable to a PIM-DM network. When the switch receives a state
refresh message, it reduces the TTL value of the message by 1 and forwards the
message to the downstream device. The message is transmitted on the network until
its TTL value is reduced to 0. On a small-scale network, state refresh messages are
transmitted cyclically.
Example
# Set the TTL value for PIM state refresh messages sent from the switch to 100.
S6800(config)#ip multicast-routing
S6800(config)#pim
S6800(config-pim)#state-refresh-ttl 100
S6800(config-pim)#
Related Commands
None
Function
Format
show ip pim
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, tunnel interface configuration view, loopback interface
configuration view
Usage Guidelines
None
Example
S6800(config)#show ip pim
Global information of PIM:
Ip Multicast Routing :enable
Version :v2
Current time :22930 seconds
MRoute Count :0
Interface Count :0
CRP Group Count :0
S6800(config)#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, tunnel interface configuration view, loopback interface
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, tunnel interface configuration view, loopback interface
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, tunnel interface configuration view, loopback interface
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, tunnel interface configuration view, loopback interface
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
show ip pim rp
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, tunnel interface configuration view, loopback interface
configuration view
Usage Guidelines
You can use this command to check whether the information about the optimal RP of
a group selected by the hash algorithm is correct (the RPs selected by all routers in
the domain must be the same).
Example
# Display RP information.
S6800(config)#show ip pim rp
Group RP Priority ExpiryTime(s)
VPN-Instance: public net
225.0.1.1/32 3.3.3.1 0 0
225.0.2.1/32 3.3.3.1 0 0
225.0.3.1/32 3.3.3.1 0 0
225.0.4.1/32 3.3.3.1 0 0
225.0.5.1/32 3.3.3.1 0 0
225.0.6.1/32 3.3.3.1 0 0
225.0.7.1/32 3.3.3.1 0 0
225.0.8.1/32 3.3.3.1 0 0
225.0.9.1/32 3.3.3.1 0 0
225.0.10.1/32 3.3.3.1 0 0
S6800(config)#
Related Commands
None
Function
The show ip pim route command displays the PIM routing information.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, tunnel interface configuration view, loopback interface
configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, tunnel interface configuration view, loopback interface
configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, tunnel interface configuration view, loopback interface
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip pim rp group command displays the IP address of the currently elected
RP.
Format
Parameters
Default Value
None
View
Usage Guidelines
This command displays the current RP address matching the group address in real
time.
Example
# Display the current RP address matching the group address in real time.
Related Commands
None
Function
Format
debug time-range
no debug time-range
Parameters
None
Default Value
View
Usage Guidelines
None
Example
S6800#debug time-range
S6800#
Related Commands
None
8.2.2 name
Function
You can use the name command to define the descriptive name of a time-range
module.
Format
name name
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to define the descriptive name of a time-range module.
Example
S6800(config-timerange1)#name test
S6800(config-timerange1)#
Related Commands
time-range list
Format
Parameters
Default Value
None
View
Usage Guidelines
This command can be used together with the ACL to configure the ACL time range
list.
Example
S6800(config)#time-range list 1
S6800(config-timerange1)#
Related Commands
no time-range
8.2.4 no time-range
Function
Format
no time-range range-number
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to delete the range configuration in a specific time-range
module.
Example
S6800(config-timerange1)#no time-range 10
S6800(config-timerange1)#
Related Commands
None
Function
The time-range absolute command configures the absolute start time and end time
of the time-range module.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the start time and end time of the time-range module to 01:01:01 on January 1,
2018 and 02:02:02 on February 2, 2019.
Related Commands
Function
The time-range everyday command configures the daily time range of the
time-range module.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the time range of the time-range module to 11:11:11 to 22:22:22 everyday.
Related Commands
Function
The time-range everyhour command configures the time range of the time-range
module per hour.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the time range of the time-range module to 33:33 to 44:44 every hour.
Related Commands
The time-range everymonth command configures the monthly time range of the
time-range module.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the time range of the time-range module to 11:11:11 1 to 22:22:22 2 every
month.
Related Commands
Function
The time-range everyweek command configures the weekly time range of the
time-range module.
Format
time-range range-number everyweek hh:mm:ss { mon | tue | wed | thu | fri | sat |
sun } to hh:mm:ss { mon | tue | wed | thu | fri | sat | sun }
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the time range of the time-range module to 11:11:11 Monday to 22:22:22
Tuesday every week.
Related Commands
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the time range of the time-range module to 11:11:11 to 22:22:22 every workday.
Related Commands
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the time range of the time-range module to 11:11:11 to 22:22:22 every weekend.
Related Commands
The time-range everyyear command configures the time range of the time-range
module every year.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the time range of the time-range module to 11:11:11 1/1 to 22:22:22 2/2 every
year.
Related Commands
The show time-range config command shows the configuration of all the current
time-range modules.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show time-range list command displays a specified or all time-range lists.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-timerange1)#
Related Commands
None
Note:
Function
Format
Parameters
None
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ip prefix-list command creates a filter rule to completely match the network
segment address of the MASKLEN in the prefix. (This command applies to IPv4
networks.)
The ipv6 prefix-list command creates a filter rule to completely match the network
segment address of the MASKLEN in the prefix. (This command applies to IPv6
networks.)
Format
Parameters
Default Value
View
Usage Guidelines
The matching is implemented based on the index in an ascending order. If the index is
not set, the maximum index in the table - index%10 + 10 is automatically adopted.
The original rule is overwritten when a rule is configured for an existing index.
Example
# Create a filter rule to completely match the network segment address of the
MASKLEN in the prefix.
Related Commands
None
Function
The ip prefix-list greater-equal command creates a filter rule, with the route address
mask length being equal to or longer than the minimum value and completely
matching the prefix mask length. (This command applies to IPv4 networks.)
The ipv6 prefix-list greater-equal command creates a filter rule, with the route
address mask length being equal to or longer than the minimum value and completely
matching the prefix mask length. (This command applies to IPv6 networks.)
Format
Parameters
Default Value
View
Usage Guidelines
The matching is implemented based on the index in an ascending order. If the index is
not set, the maximum index in the table - index%10 + 10 is automatically adopted.
The logical entry relation conflict is not detected. You need to independently arrange
the detection.
The original rule is overwritten when a rule is configured for an existing index.
Example
# Create a filter rule, with the route address mask length being equal to or longer than
the minimum value and completely matching the prefix mask length.
Related Commands
None
Function
The ip prefix-list less-equal command creates a filter rule, with the route address
mask length being shorter than or equal to the maximum value and completely
matching the prefix mask length. (This command applies to IPv4 networks.)
The ipv6 prefix-list less-equal command creates a filter rule, with the route address
mask length being shorter than or equal to the maximum value and completely
matching the prefix mask length. (This command applies to IPv6 networks.)
Format
Parameters
Default Value
View
Usage Guidelines
The matching is implemented based on the index in an ascending order. If the index is
not set, the maximum index in the table - index%10 + 10 is automatically adopted.
The logical entry relation conflict is not detected. You need to independently arrange
the detection.
The original rule is overwritten when a rule is configured for an existing index.
Example
# Create a filter rule, with the route address mask length being shorter than or equal to
the maximum value and completely matching the prefix mask length.
ip prefix-list : test
index: 10 permit 1.1.1.1/16 ge 16 le 19
index: 44 permit 2.2.2.2/16 ge 16 le 19
Related Commands
None
Function
The ip prefix-list greater-equal less-equal command creates a filter rule, with the
route address mask length between the minimum value and the maximum value and
completely matching the prefix mask length. (This command applies to IPv4
networks.)
The ipv6 prefix-list greater-equal less-equal command creates a filter rule, with the
route address mask length between the minimum value and the maximum value and
completely matching the prefix mask length. (This command applies to IPv6
networks.)
Format
Parameters
Default Value
View
Usage Guidelines
The matching is implemented based on the index in an ascending order. If the index is
not set, the maximum index in the table - index%10 + 10 is automatically adopted.
The logical entry relation conflict is not detected. You need to independently arrange
the detection.
Example
# Create a filter rule, with the route address mask length between the minimum value
and the maximum value and completely matching the prefix mask length.
Related Commands
None
Function
The no ip prefix-list command deletes a created filter rule. (This command applies to
IPv4 networks.)
The no ipv6 prefix-list command deletes a created filter rule. (This command applies
to IPv6 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The show ip prefix-list command shows a rule in the rule table. (This command
applies to IPv4 networks.)
The show ipv6 prefix-list command shows a rule in the rule table. (This command
applies to IPv6 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
When using this command, if a rule name is not specified, all content of rule tables in
the same address type is displayed.
Example
S6800(config)#show ip prefix-list
ip prefix-list : test
index: 10 permit 1.1.0.0/16
index: 11 permit 2.2.0.0/16
ip prefix-list : tes
index: 11 permit 2.2.0.0/16
S6800(config)#
Related Commands
Function
The show ip prefix-list information command shows the rule information in the IP
address prefix. (This command applies to IPv4 networks.)
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
debug filter { global | if | config | counter | meter | statistic | rule | device | all }
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
8.4.2 filter-list
Function
The filter-list command creates a numbered access control list (ACL) and displays
the ACL view.
Format
no filter-list acl-number
Parameters
Default Value
None
View
Usage Guidelines
When creating an ACL, you need to specify a number, indicating the ACL category.
For example, a number ranging from 1 to 1000 indicates a basic L2 ACL.
Note:
Before configuring ACL functions, you must bind the ACL with filter entries.
Example
S6800(config)#filter-list 100
S6800(configure-filter-l2-100)#
S6800(config)#no filter-list 100
S6800(config)#
Related Commands
filter, filter-list interface in, filter-list in, filter action, show filter-list
Function
The filter-list global command globally binds ports with the ACL.
The no filter-list global command globally unbinds ports with the ACL.
Format
Parameters
Default Value
None
View
Usage Guidelines
After the ACL rule and action are created and defined, they must be applied to a
physical port to take effect. This command can bind a port with the corresponding ACL
in the global configuration view. The function is the same as that of the filter-list in
command configured in the port configuration view. For details, see 8.4.4 filter-list
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to apply an ACL to a physical port or a trunk interface in
the port configuration view. The function of this command is the same as that of 8.4.3
filter-list global configured in the global configuration view. You can select the
commands according to actual requirements.
Example
# Enter the view of xgigaethernet 1/0/1, and apply ACL 100 to the interface.
# Create a trunk interface, enter the trunk interface view, and apply ACL 100 to the
interface.
S6800(config)#interface eth-trunk 2
S6800(config-eth-trunk 2)#filter-list in 100
S6800(config-eth-trunk 2)#
Related Commands
Function
The filter action {permit|deny} command sets the action for an ACL rule to permit or
deny, which means to forward or drop packets matching the rule.
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
If the action defined in the ACL rule is deny, a packet matching the ACL rule will be
dropped.
If the action defined in the ACL rule is permit, a packet matching the ACL rule will be
forwarded or processed.
Example
Related Commands
None
The filter action cpu command sets the action for an ACL rule to CPU forwarding,
which means to forward packets matching the rule to the CPU only.
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
After this command is executed, the switch forwards a packet that matches the ACL
rule to the CPU.
Example
Related Commands
None
Function
The filter action dscp command set the action for an ACL rule to Differentiated
Services CodePoint (DSCP) re-marking, which means to change the DSCP field
(most significant six bits of the ToS field) value of IP packets matching the rule.
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
After this command is executed, the switch changes the DSCP field in a received
packet that matches the ACL rule to the configured value. For details about DSCP
priorities, see the parameter description.
Example
# Set the action for an ACL rule to DSCP re-marking (changing the value of the most
significant six bits of the ToS field) for IP data packets matching the rule.
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
After this command is executed, the 802.1p value in the TOS field and VLAN Tag field
become consistent when a packet passes through a port configured with the ACL rule.
Example
# Configure an action in the ACL rule to map the TOS field in a packet with the 802.1p
priority in the VLAN Tag field, or map the 802.1p priority in the VLAN Tag field with the
TOS field.
S6800(configure-filter-l2-100)#
Related Commands
None
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
After this command is executed, the switch inserts an outer VLAN tag to the data
packets matching the ACL rule, replaces the VLAN ID in the original outer VLAN tag,
or deletes the outer VLAN tag of the packets.
Example
Related Commands
None
Function
The filter action mirror group command configures the action for an ACL rule to
packet mirroring to a specified mirror group.
Format
Parameters
Default Value
None
View
Usage Guidelines
When this command is executed, if the keyword is set to cpu, the switch mirrors a
packet that matches the ACL rule to the CPU. If the keyword is set to group, the
switch mirrors a packet that matches the ACL rule to a created mirror group.
Mirroring process: Upon receiving a packet, the switch performs VLAN, L2, and L3
processing, mirrors the packet to the specified interface, and continues to forward the
original packet.
Example
# Configure the action for an ACL rule to packet mirroring to a specified mirror group.
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
After this command is executed, the switch redirects a packet that matches the ACL
rule to a specified port. The ACL including the redirection action can only be applied in
the inbound direction.
Redirection process: Upon receiving a packet, the switch performs VLAN, L2, and L3
processing, redirects the packet to the specified port, and stops forwarding the
original packet.
Example
# Set the action for rule 2 of ACL 100 to redirection of data packets to a specified
interface.
Related Commands
None
The filter action redirect ip-nexthop command configures the action for an ACL rule
to packet redirection to a specified next-hop IP address.
Format
Parameters
Default Value
None
View
Usage Guidelines
Redirection process: Upon receiving a packet, the switch performs VLAN, L2, and L3
processing, redirects the packet, and stops forwarding the original packet.
If multiple next-hop addresses are configured, the switch redirects the packet in load
balancing mode based on the equivalent route. That is, the switch selects one
next-hop address according to the source IP address (regardless of the traffic) of the
packet using the Hash algorithm. For traffic with the same source IP address,
regardless of the traffic volume, the switch selects the same next-hop address for
forwarding.
During the direction to multiple next-hop addresses, if the outbound interface of a next
hop suddenly becomes down or the route is suddenly changed, the switch rapidly
switches the link to the outbound interface corresponding to an available next hop
(according to the Hash algorithm).
If the ARP entry corresponding to the next-hop IP address does not exist on the switch,
this command can be configured successfully, but the redirection does not take effect.
In addition, the switch triggers ARP learning. If the ARP cannot be learned, the switch
still forwards packets to the original destination, until the corresponding ARP entry
appears on the switch.
Example
Related Commands
None
Function
The filter action counter command configures the action for an ACL rule to statistics
collection by bytes or packets.
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
After this command is executed, the switch counts the received packets that match
the ACL rule by bytes or packets to calculate the total number of packets passing
through the interface and matching the ACL rule.
Note:
You must configure a counter using the counter command and bind it to the filter.
S6800(config)#counter 100 all sort total
S6800(config)#
S6800(config)#filter-list 100
S6800(configure-filter-l2-100)#
S6800(configure-filter-l2-100)#filter 100 mac any any
S6800(configure-filter-l2-100)#
If different counters are configured, you need to unbind the previously bound counter.
Otherwise, the following symptom may occur: S6800(configure-filter-l2-100)#filter 100 action
counter 200
In the filter list, enter the ACL list, including L2 ACL, IPv4 ACL, hybrid ACL, and IPv6
ACL. For details, see 8.4.2 filter-list.
Example
# Configure the action for an ACL rule to statistics collection by bytes or packets.
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
None
Example
# Configure an ACL rule matching packets with the 802.1p priority of 5 in the outer
VLAN tag.
Related Commands
None
The filter action {cos|precedence} command sets the action for an ACL rule to
setting the priority of packets in a port queue or changing most significant three bits in
the Precedence field of IP data packets.
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
Note:
Before configuring the filter action outer-tag-priority command, ensure that the
corresponding cos command is not configured. Otherwise, the following prompt is
displayed:
Therefore, you must run the no filter action command to remove the configuration and
then run the filter action outer-tag-priority command.
Example
Related Commands
None
The filter action remove-inner-vid command configures the action of removing the
VID of a specified packet.
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), L2 filter configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
None
Example
# Configure the action for an ACL rule to replacing the inner VLAN ID.
Related Commands
None
The filter action redirect cpu command sets the action for an ACL rule to packet
redirection to the CPU.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the action for an ACL rule to packet redirection to the CPU.
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on source and destination IPv6
addresses and ICMP6 field.
Related Commands
None
Function
The filter car outaction drop command sets the action for an ACL rule to dropping
excess data packets when the rate of packets exceeds the bandwidth limit of 64 kbit/s
x N.
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
After this command is executed, the port determines whether the traffic rate exceeds
the limit upon receiving packets matching the ACL rule. If yes, the port drops the
packets beyond the traffic limit.
Example
# Set the action for an ACL rule to dropping excess data packets when the rate of
packets exceeds the bandwidth limit of 64 kbit/s x N.
Related Commands
None
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), L2 filter configuration view
Usage Guidelines
After this command is executed, the switch limits the rate of packets matching the ACL
rule according to the meter value.
Note:
This command is similar to the filter action counter command. You must configure the
meter in the command of the meter module and bind it to a filter (see 6.2.4 meter).
S6800(config)#meter 100 cir 100 cbs 20000 ebs 20000 aware
S6800(config)#
S6800(config)#filter-list 100
S6800(configure-filter-l2-100)#
S6800(configure-filter-l2-100)#filter 100 mac any any
S6800(configure-filter-l2-100)#
Example
Related Commands
None
Function
The filter outaction command configures the out-action action for an ACL rule to
dropping data packets marked with a single/dual-rate-three-color marker, re-marking
the DSCP priority of IP packets, or re-marking the 802.1p priority of VLAN packets.
The no filter outaction command deletes the out-action action for an ACL rule, which
can drop, DSCP re-marking for IP packets, or 802.1p priority re-marking for VLAN
packets.
Format
Parameters
Default Value
None
View
Usage Guidelines
Re-marking the DSCP priority of packets does not affect the QoS processing on the
S6800. This operation only affects the QoS processing on downstream L3 or higher
layer devices.
Re-marking the 802.1p priority of packets does not affect the QoS processing on the
S6800. This operation only affects the QoS processing on downstream L2 devices.
When you use this command to configure re-marking multiple times, only the last
configuration takes effect.
Example
# Configure the out-action action for an ACL rule to dropping packets marked with a
single/dual-rate-three-color marker, re-marking the DSCP priority of IP packets, or
re-marking the 802.1p priority of VLAN packets.
S6800(configure-filter-l2-100)#
Related Commands
None
The filter time-range command binds an ACL rule with time-range, so that the ACL
rules take effect only with the specified time range.
The no filter time-range command deletes the binding relation between the ACL rule
and time-range.
Format
Parameters
Default Value
None
View
Filter configuration view, filter configuration view (IPv6), filter-hybrid configuration view,
L2 filter configuration view
Usage Guidelines
Before using this command, you must configure the time-range module and create the
effective time range.
The effective time range is classified into periodic time range and absolute time range.
Time ranges are referenced using indexes ranging from 1 to 128. A time range
corresponding to an index can have multiple effective time points. Effective principles:
Periodic time ranges are in an "Or" relation, and periodic time range and absolute time
range are in an "And" relation. For example, the time range with index 1 has the
following effective time:
The effective time period corresponding to index 1 finally takes effect in the following
periods: 08:30 to 17:30 from Monday to Friday, 14:30 to 18:30 on Saturday and
Sunday, from 00:00 January 1, 2011 to 23:59 December 31, 2011
If the start date is not configured, the time range starts from the earliest time of the
system to the end date. If the end date is not configured, the time range starts from
the configured start date to the latest time of the system.
Example
# Bind an ACL rule with time-range, so that the ACL rules take effect only with the
specified time range.
Related Commands
time-range
8.4.24 filter ip
Function
The filter ip command configures an ACL rule matching packets based on source and
destination IPv4 addresses.
Format
Parameters
Default Value
None
View
Usage Guidelines
After the ACL rule is applied to an interface, the system filters data packets received
on the interface based on the IP addresses in the packets. Packets matching the ACL
rule are processed based on the action configured for the ACL rule.
ACLs are classified into four levels. Therefore, the filter ip and associated commands
are applicable only to IPv4/hybrid ACLs 1001 to 3000.
Example
# Configure an ACL rule based on the source and destination IPv4 address.
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The filter ip dscp command configures an ACL rule matching packets based on
source and destination IPv4 addresses and the DSCP field.
Format
Parameters
Default Value
None
View
Usage Guidelines
After the ACL entry is applied, a port filters received packets according to the IP
addresses and DSCP field in the packets. The port takes the corresponding actions
for packets matching the ACL rule.
Example
# Configure an ACL rule matching packets based on source and destination IPv4
addresses and the DSCP field.
Related Commands
None
The filter ip fragment command configures an ACL rule matching packets based on
source and destination IPv4 addresses and the fragment field.
Format
Parameters
Default Value
None
View
Usage Guidelines
After the ACL entry is applied, the switch matches the IP addresses in the received
packets and determines whether the packets are non-first fragment packets. If the IP
addresses of the packets match the ACL rule and the packets are non-first fragment
packets, the switch takes the corresponding actions for packets according to the ACL
rule.
Example
# Configure an ACL rule matching packets based on source and destination IPv4
addresses and the fragment field.
Related Commands
None
Function
The filter ip precedence command configures an ACL rule matching packets based
on source and destination IPv4 addresses and the TOS field.
Format
Parameters
Default Value
None
View
Usage Guidelines
After the ACL entry is applied to an interface, the system filters packets received on
the interface based on the IP addresses and ToS fields in the packets. Packets
matching the ACL rule are processed based on the action configured for the ACL rule.
Example
# Configure an ACL rule matching packets based on source and destination IPv4
addresses and the ToS field.
S6800(configure-filter-hybrid-1500)#
S6800(configure-filter-ipv4-1500)#filter 100 src-ip 1.1.1.1 src-mask 255.255.255.0 dst-ip 2.2.2.2
dst-mask 255.255.255.0 precedence 2
S6800(configure-filter-hybrid-1500)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on source and destination IPv4
addresses, the ToS field, and the fragment field.
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on the source and destination IPv4
addresses and the protocol type field.
Related Commands
None
Function
The filter ip tos command configures an ACL rule based on the source/destination
IPv4 address and ToS field.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on the source and destination IPv4
addresses and the ToS field.
Related Commands
None
The filter ip ttl command configures an ACL rule based on the source/destination
IPv4 address and TTL field.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule based on the source/destination IPv4 address and TTL field.
Related Commands
None
Function
The filter icmp command configures an ACL rule matching packets based on source
and destination IPv4 addresses and the ICMP field.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on source and destination IPv4
addresses and the ICMP field.
Related Commands
Function
The filter ip igmp command configures an ACL rule based on the source/destination
IPv4 address and IGMP type or code field.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on the source and destination IPv4
addresses and the protocol type field.
Related Commands
None
The filter tcp command configures an ACL rule matching packets based on source
and destination IPv4 addresses and the TCP fields (including syn, synack, ack, and
fin fields).
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on source and destination IPv4
addresses and the TCP fields (including syn, synack, ack, and fin fields).
Related Commands
Function
The filter udp command configures an ACL rule matching packets based on source
and destination IPv4 addresses and the UDP field.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on source and destination IPv4
addresses and the UDP field.
Related Commands
Function
The filter mac command configures an ACL rule matching packets based on MAC
address entries.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
8.4.39 no filter
Function
Format
no filter rule-number
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The no filter action command deletes the action for an ACL rule.
Format
Parameters
Default Value
None
View
Usage Guidelines
After using this command, the action corresponding to the ACL rule is deleted.
Example
Related Commands
None
Function
The reset counter filter-list command resets the counter of a filter in an ACL.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Reset the counter of filter 1 in ACL 100 in the inbound direction of interface
xgigaethernet 1/0/1.
Related Commands
None
Format
show filter-list
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, VLAN
configuration view, filter configuration view, interface group configuration view,
filter-hybrid configuration view, L2 filter configuration view
Usage Guidelines
If acl-number is not specified in the command, the command displays all ACLs and all
ACL rules under each ACL. If acl-number is specified, the command displays
information about the specified ACL.
Example
S6800(configure-filter-l2-100)#show filter-list
<cr>
<1-5000> Filter list number
config Configuration
global Global Configuration
interface Binding interface information
statistic Statistic information
Related Commands
filter, filter-list interface in, filter-list in, filter action, show filter-list
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, VLAN
configuration view, filter configuration view, interface group configuration view,
filter-hybrid configuration view, L2 filter configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show filter-list config command displays the ACL configuration file information
on the switch.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, VLAN
configuration view, filter configuration view, interface group configuration view,
filter-hybrid configuration view, L2 filter configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show filter-list global command displays the global configuration of ACLs.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, VLAN
configuration view, filter configuration view, interface group configuration view,
filter-hybrid configuration view, L2 filter configuration view
Usage Guidelines
None
Example
Related Commands
None
The show filter-list interface command displays information about all interfaces with
ACLs applied.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, VLAN
Usage Guidelines
You can use this command to check the information about ACL-enabled interfaces.
Example
Related Commands
None
The show filter-list name command displays the configuration of a specified ACL.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, VLAN
configuration view, filter configuration view, interface group configuration view,
filter-hybrid configuration view, L2 filter configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), VLANIF configuration view, VLAN
configuration view, filter configuration view, interface group configuration view,
filter-hybrid configuration view, L2 filter configuration view
Usage Guidelines
The ACL statistics include the Direction, Packets, Bytes, Interface, and SwCounterId
fields.
Example
Related Commands
None
8.4.49 counter
Function
The counter command binds a filter entry in an ACL. It is used together with an ACL.
Format
counter counter-number { packet | byte | all } sort { green | yellow | red | greenred |
greenyellow | redyellow | greenyellowred }
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
show counter
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#show counter
P=Packets
B=Bytes
Related Commands
None
Function
The filter ip6 command configures an ACL rule matching packets based on source
and destination IPv6 addresses.
Format
Parameters
View
Usage Guidelines
After the ACL entry is applied, a port filters received packets according to the IPv6
addresses in the packets. The port takes the corresponding actions for packets
matching the ACL rule.
Note:
ACLs are classified into four levels:
S6800(config)#filter-list
in In direction
out Out direction
<1-1000> L2 filter list number
<1001-2000> Ipv4 filter list number
<2001-3000> Hybrid filter list number
<3001-4000> Ipv6 filter list number
Therefore, the filter ip6 and associated commands are applicable only to IPv6 ACLs
3001 to 4000.
Example
# Configure an ACL rule matching packets based on source and destination IPv6
addresses.
Related Commands
None
Function
The filter ip6 hop-limit command configures an ACL rule based on the source IPv6
address and destination IP address.
Format
Parameters
View
Usage Guidelines
After the ACL entry is applied, a port filters received packets according to the IPv6
addresses in the packets. The port takes the corresponding actions for packets
matching the ACL rule, including the limitation on the number of hops in the next
packet.
Example
# Configure an ACL rule matching packets based on source and destination IPv6
addresses.
Related Commands
None
The filter ip6 next-header command configures an ACL rule based on the source
IPv6 address and destination IP address.
Format
Parameters
View
Usage Guidelines
After the ACL entry is applied, a port filters received packets according to the IPv6
addresses in the packets. The port takes the corresponding actions for packets
matching the ACL rule, including the processing of the header value in the next
packet.
Example
# Configure an ACL rule matching packets based on source and destination IPv6
addresses.
Related Commands
None
Function
The filter icmp6 command configures an ACL rule based on the source/destination
IPv6 address and ICMP6 field.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on source and destination IPv6
addresses and ICMP6 field.
Related Commands
None
The filter igmp6 command configures an ACL rule based on the source/destination
IPv6 address and IGMP6 type or code field.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule based on the source/destination IPv6 address and IGMP6
protocol type field.
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule based on the source/destination IPv6 address and protocol
type field.
Related Commands
None
Function
The filter tcp6 command configures an ACL rule matching packets based on source
and destination IPv6 addresses and the TCP6 fields (including syn, synack, ack, and
fin fields).
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on source and destination IPv6
addresses and the TCP6 fields (including syn, synack, ack, and fin fields).
Related Commands
Function
The filter udp6 command configures an ACL rule based on the source/destination
IPv6 address and UDP6 field.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Configure an ACL rule matching packets based on source and destination IPv6
addresses and the UDP6 field.
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#debug dhcp-snooping in
S6800#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
Before running this command, globally enable or disable DHCP snooping. See
dhcp-snooping {start|stop}.
Example
S6800(config-xge1/0/1)#dhcp-snooping start
S6800(config-xge1/0/1)#dhcp-snooping enable
S6800(config-xge1/0/1)#
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
VLAN configuration view
Usage Guidelines
None
Example
# Enable the check of MAC addresses in request packets sent from DHCP users.
Related Commands
Function
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
VLAN configuration view
Usage Guidelines
Before running this command, run the dhcp-snooping start and dhcp-snooping enable
commands to enable DHCP snooping globally and on the corresponding interface.
After you run this command, the switch checks whether DHCP packets (including
DHCP Request and DHCP Reply packets) match the binding table. Checking the
Request packets can prevent unauthorized users from renewing the IP address lease.
Checking the Release packets can prevent unauthorized users from releasing valid IP
addresses.
Example
# Enable the check of DHCP packets against the binding table on interface
xgigaethernet 1/0/1.
S6800(config)#dhcp-snooping start
S6800(config)#interface xgigaethernet 1/0/1
S6800(config-xge1/0/1)#dhcp-snooping enable
S6800(config-xge1/0/1)#dhcp-snooping check user-bind enable
S6800(config-xge1/0/1)#
Related Commands
None
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
VLAN configuration view
Usage Guidelines
None
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
VLAN configuration view
Usage Guidelines
None
Example
Related Commands
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
VLAN configuration view
Usage Guidelines
Before using this command, run the dhcp-snooping start and dhcp-snooping enable
commands to enable DHCP snooping, and then enable Option 82 on the interface.
Otherwise, this command will fail to be executed.
The self-defined format character string can contain the following keywords: sysname,
portname, porttype, iftype, mac, slot, subslot, port, svlan, and cvlan. For details about
the user-defined format character string, see the table below.
Keyword Description
sysname Specifies a device name.
portname Specifies an interface name.
porttype Specifies the interface type, which is required when an NAS interface is
configured in certain scenarios.
iftype Specifies the interface type, generally referring to GE, XGE, and Ethernet.
mac Specifies the MAC address of the switch.
slot Specifies a slot number.
subslot Specifies a subslot number.
port Specifies an interface number.
svlan Specifies the outer VLAN ID.
cvlan Specifies the inner VLAN ID.
Note:
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
VLAN configuration view
Usage Guidelines
None
Example
S6800(config-xge1/0/1)#
S6800(config-xge1/0/1)#dhcp-snooping option82 keep
S6800(config-xge1/0/1)#
S6800(config-xge1/0/1)#dhcp-snooping option82 append
S6800(config-xge1/0/1)#
Related Commands
None
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
VLAN configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
VLAN configuration view
Usage Guidelines
None
Example
S6800(config-xge1/0/1)#
Related Commands
Format
Parameters
Default Value
By default, sub-option 9 will not be added to Option 82 unless the dhcpsnoop option82
sub-option9 enable command is configured.
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
VLAN configuration view
Usage Guidelines
By default, sub-option 9 is set to the enterprise number + hostname. You can also
configure it using this command to fill the content following enterprise number in
sub-option 9.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Before using this command, you must run the dhcp-snooping start and dhcp-snooping
enable commands to enable DHCP Snooping. Otherwise, this command fails.
Example
S6800(config)#dhcp-snooping start
S6800(config)#interface xgigaethernet 1/0/1
S6800(config-xge1/0/1)#dhcp-snooping enable
S6800(config-xge1/0/1)#dhcp-snooping relay server-ip 1.1.1.1
S6800(config-xge1/0/1)#
Related Commands
None
Format
no dhcp-snooping relay-agent-ip
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Before using this command, you must run the dhcp-snooping start and dhcp-snooping
enable commands to enable DHCP Snooping. Otherwise, this command fails.
Example
S6800(config)#dhcp-snooping start
S6800(config)#interface xgigaethernet 1/0/1
S6800(config-xge1/0/1)#dhcp-snooping enable
S6800(config-xge1/0/1)#dhcp-snooping relay-agent-ip 2.1.1.1
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#dhcp-snooping start
S6800(config)#
Related Commands
Function
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
S6800(config-xge1/0/1)#dhcp-snooping trust
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
dhcp-snooping version v4
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view,
VLAN configuration view
Usage Guidelines
None
Example
S6800(config-xge1/0/1)#dhcp-snooping version v4
S6800(config-xge1/0/1)#
Related Commands
None
Format
Parameters
None
Default Value
None
View
Global configuration view, interface configuration view (Ethernet and trunk), interface
group configuration view, VLAN configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Before using this command, you must run the dhcp-snooping start and dhcp-snooping
enable commands to enable DHCP Snooping. Otherwise, this command fails.
Example
S6800(config)#dhcp-snooping start
S6800(config)#interface xgigaethernet 1/0/1
S6800(config-xge1/0/1)#dhcp-snooping enable
S6800(config-xge1/0/1)#dhcp-snooping relay server-ip 1.1.1.1
S6800(config-xge1/0/1)#
Related Commands
None
Function
The show dhcp-snooping binding command displays DHCP snooping user binding
configuration.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view, VLAN
configuration view
Usage Guidelines
The command output includes IP-Addr, Mac-Addr, Vlan, Interface, Time, AgeTime,
and State fields.
Example
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view, VLAN
configuration view
Usage Guidelines
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view, VLAN
configuration view
Usage Guidelines
The command output includes the specific interface information and global interface
information.
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view, VLAN
configuration view
Usage Guidelines
The command output includes the specific interface information and the following
global interface information: Source mac mismatch, Binding entry mismatch, Untrust
reply received, Discord ARP, Discord IP, and Discord DHCP.
Example
Discord DHCP : 0
S6800(config)#show dhcp-snooping statistic interface xgigaethernet 1/0/1
Interface : xge-1/0/1
Source mac mismatch : 0
Binding entry mismatch : 0
Untrust reply received : 0
Discord ARP : 0
Discord IP : 0
Discord DHCP : 0
S6800(config)#
Related Commands
None
Function
The show dhcp-snooping vlan command displays the maximum user quantity and
quantity information of Layer-2 VLAN.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Display the maximum user quantity and quantity information of Layer-2 VLAN.
Related Commands
None
Function
Format
Parameters
None
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The ip source check user-bind alarm enable command enables the IP packet alarm
check function on an interface.
The ip source check user-bind alarm disable command disables the IP packet
alarm check function on an interface.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The ip source check user-bind alarm threshold command sets the alarm threshold
for IP packet check.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The ip source check user-bind enable command enables the IP packet check
function on an interface.
The ip source check user-bind disable command disables the IP packet check
function on an interface.
Format
Parameters
None
Default Value
By default, the switch does not check whether an IP packet matches the binding table.
View
Usage Guidelines
This command configures the switch to check whether IP packets match the binding
table and determine whether to forward the packets.
For DHCP users, a dynamic binding table is generated after DHCP snooping is
enabled.
For users with static addresses, you need to manually create static binding entries.
Example
Related Commands
None
The ip source check user-bind check-item command sets the item for IP packet
check.
The no ip source check user-bind check-item command restores the item for IP
packet check to the default option.
Format
Parameters
Default Value
By default, the IP address (IPv4 or IPv6), MAC address, and VLAN must be checked.
View
Usage Guidelines
Example
# Enable the IP Source Guard function on an interface and specify VLAN as the check
item for IP packet check.
Related Commands
None
Function
The reset ip source statistic check user-bind command resets the IP Source
Guard statistics.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
Example
Related Commands
None
Function
The show ip source check user-bind command displays information about the IP
packet check function.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
None
Function
The show user-bind command displays information about static binding entries.
Format
show user-bind
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
S6800(config)#show user-bind
1 entries in user-bind table
Interface IP-Address Mac-Address Vlan Type
xge-1/0/1 10.1.1.1 01:01:01:01:01:01 1 IPSG
S6800(config)#
Related Commands
user-bind
Function
The show user-bind config command displays the configuration of static binding
entries.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The user-bind static ip|ip6 mac command configures static binding entries.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)# user-bind static ip 10.1.1.1 mac 01:01:01:01:01:01 interface xgigaethernet 1/0/1 vlan
1
S6800(config)#
Related Commands
None
8.7.1 aaa
Function
The aaa command switches to the AAA configuration view from the global
configuration view.
Format
aaa
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
# Switch to the AAA configuration view from the global configuration view.
S6800(config)#aaa
S6800(config-aaa)#
Related Commands
None
Function
The aaa authorization console command enables the console to use AAA
authorization.
The no aaa authorization console command disables the console from using AAA
authorization.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The account realtime command sets the AAA real-time accounting report interval.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
debug aaa
no debug aaa
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#debug aaa
S6800#
S6800#no debug aaa
S6800#
Related Commands
8.7.10 enable|disable
Function
Format
enable [ level-value ]
disable [ level-value ]
Parameters
Default Value
None
View
Usage Guidelines
By default, the enable command elevates the user privilege level to 15, and the
disable command lowers the privilege level to 1.
Example
S6800#enable 3
S6800#
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The enable password command sets the global local secondary authentication
password for users of level 0-15.
Format
no enable password
Parameters
Default Value
None
View
Usage Guidelines
If you do not specify a privilege level in the command, the command configures or
deletes the local secondary authentication password for users of level 15.
Example
# Set the global local secondary authentication password for users of level 0-15.
Related Commands
None
The no aaa method command deletes an AAA method or a server group in an AAA
method.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
show aaa
The login account aaa method command configures an AAA accounting method
name for user login on the terminal.
The no login account aaa method command deletes an AAA accounting method
name for user login on the terminal.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The login authentication command configures the AAA authentication type for Telnet
or console login on the terminal.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The login authorization aaa method command sets the login authorization method
on the terminal.
The no login authorization aaa method command deletes the configured login
authorization method on the terminal.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
8.7.17 no radius-server
Function
Format
no radius-server name
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
show aaa
8.7.18 no server-group
Function
The no server-group command deletes an AAA server group or deletes a server from
the AAA server group.
Format
no server-group name
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
show aaa
8.7.19 no tacacs-server
Function
Format
no tacacs-server name
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
1813
View
Usage Guidelines
None
Example
Related Commands
radius-server auth-port
Format
Parameters
Default Value
1812
View
Usage Guidelines
None
Example
Related Commands
radius-server acc-port
Function
The radius-server deadtime command sets the dead time for a RADIUS server.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
radius-server retransmit-interval
Function
The radius-server ip-address key command creates a RADIUS server and sets its
name, IPv4 address, and shared key.
The radius-server ip6-address key command creates a RADIUS server and sets its
name, IPv6 address, and shared key.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Create a RADIUS server and set its name, IPv4 or IPv6 address, and shared key.
Related Commands
Function
Format
Parameters
Default Value
auth-port: 1812
acc-port: 1813
View
Usage Guidelines
None
Example
S6800(config-aaa)#radius-server 111 ip-address 1.1.1.1 key 123 auth-port 100 acc-port 100
S6800(config-aaa)#
S6800(config-aaa)#radius-server 111 ip6-address 1:1::1:1 key 123 auth-port 100 acc-port 100
S6800(config-aaa)#
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
radius-server retransmit-interval
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Set the global retransmission interval for all the RADIUS servers.
S6800(config-aaa)#radius-server retransmit-interval 2
S6800(config-aaa)#
S6800(config-aaa)#radius-server 111 retransmit-interval 2
S6800(config-aaa)#
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The reset server statistic command resets statistics about a specified TACACS
server.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Create a server group, define its protocol type, and add a server to the group.
Related Commands
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The enable password command sets the local secondary authentication password
for users of a specified level.
Format
no enable password
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the local secondary authentication password for users of level 10.
Related Commands
None
8.7.32 enable|disable
Function
Format
enable priority
disable priority
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800)#enable 10
S6800#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Privileged user view, global configuration view, VLANIF configuration view, VLAN
configuration view, interface configuration view (Ethernet and trunk), interface group
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
show aaa
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, AAA configuration
view, interface configuration view (Ethernet and trunk), interface group configuration
view
Usage Guidelines
None
Example
S6800(config)#show aaa
Account Realtime : 300
Radius-server Retransmit Interval : 2
Radius-server Max Retransmit : 3
Radius-server Deadtime : 60
S6800(config)#
Related Commands
None
Function
The show aaa config command displays the global AAA configuration on the switch.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, AAA configuration
view, interface configuration view (Ethernet and trunk), interface group configuration
view
Usage Guidelines
None
Example
Related Commands
Function
The show aaa method command displays information about configured AAA
methods.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, AAA configuration
view, interface configuration view (Ethernet and trunk), interface group configuration
view
Usage Guidelines
None
Example
Related Commands
Function
The show aaa server command displays AAA RADIUS server configuration.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, AAA configuration
view, interface configuration view (Ethernet and trunk), interface group configuration
view
Usage Guidelines
None
Example
Related Commands
Function
The show aaa server-group command displays AAA server group configuration.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, AAA configuration
view, interface configuration view (Ethernet and trunk), interface group configuration
view
Usage Guidelines
None
Example
Related Commands
None
The show aaa tacacs-server statistic command displays statistics about a TACACS
server.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, AAA configuration
view, interface configuration view (Ethernet and trunk), interface group configuration
view
Usage Guidelines
None
Example
Related Commands
None
Function
The show radius client command displays AAA RADIUS client information.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, AAA configuration
view
Usage Guidelines
None
Example
Client Retransmissions : 0
Client Access Accepts : 0
Client Responses : 0
Client Malformed Responses : 0
Client Bad Authentications : 0
Client Pending Requests : 0
Client Timeouts : 0
Client Unknown Types : 0
Client Packets Dropped : 0
Client Counter Discontinuity : 0
S6800(config)#
Related Commands
The tacacs-server deadtime command configures the dead time for a TACACS
server.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The tacacs-server ip-address key command creates a TACACS server and sets its
name, IPv4 address, and shared key.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Create a TACACS server and configure the server name, IPv4 address, and shared
key.
Related Commands
None
The tacacs-server ip6-address key command creates a TACACS server and sets its
name, IPv6 address, and shared key.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Create and configure a TACACS server, including the server name, IPv6 address,
and shared key
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The tacacs-server port command configures the service port for TACACS server.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The tacacs-server timeout command sets the timeout time for a TACACS server.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The debug cpu-defend command enables debugging of the CPU defense function.
Format
debug cpu-defend
no debug cpu-defend
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#debug cpu-defend
S6800#
Related Commands
None
8.8.2 cpu-defend-policy
Function
Format
cpu-defend-policy policy-name
no cpu-defend-policy policy-name
no cpu-defend-policy
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#cpu-defend-policy aaa
S6800(config)#
Related Commands
None
The car total-packet pps command sets the total rate of packets sent to the CPU.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The no car packet-type {telnet|ftp|snmp} command deletes the CIR and CBS
configured for protocol packets.
Format
car packet-type { telnet | ftp | snmp } cir { cir | default } cbs { cbs | default }
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
8.8.5 description
Function
The description command configures the description about a CPU defense policy.
The no description command cancels the description about a CPU defense policy.
Format
description descry
no description
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#description aaa
S6800(config)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The show cpu-defend config command displays the CPU defense configuration.
Format
Parameters
None
Default Value
None
View
Global configuration view, privileged user view, common user view, VLANIF
configuration view, interface configuration view, interface group configuration view,
VLAN configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show cpu-defend policy command displays information about all CPU defense
policies or a specified CPU defense policy.
Format
Parameters
Default Value
None
View
Global configuration view, privileged user view, common user view, VLANIF
configuration view, interface configuration view, interface group configuration view,
VLAN configuration view
Usage Guidelines
None
Example
ospf 256
rip 512
bgp 256
pim 128
S6800#
Related Commands
None
Function
The debug stp command enables debugging of the Spanning Tree Protocol (STP).
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to debug, maintain, and identify functional problems of
STP.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
Example
Related Commands
stp instance priority (STP configuration view), stp instance vlan, show stp information
The show stp command displays the configuration of the STP protocol on the switch.
Format
show stp
Parameters
None
Default Value
None
View
Privileged user view, global configuration view, STP configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to check the configuration of the STP protocol on the
switch.
Example
S6800#show stp
Oper Configuration:
stp mode:mstp
stp bridge:customer
stp bpdu-guard :disabled
stp loop-protection:disabled
stp tc-protection:disabled
stp root-protection:disabled
Bridge Times:Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Format selector :0
Stp config name :F-engine
Revision level :0
Related Commands
None
Function
The show stp config command displays the configuration file information of the STP
protocol on the switch.
Format
Parameters
None
Default Value
None
View
Privileged user view, global configuration view, STP configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to check the configuration file information of STP protocol
on the switch.
Example
# Display the configuration file information of the STP protocol on the switch.
!Interface configuration
xge-1/0/1
stp enable
stp edge-port enable
S6800#
Related Commands
None
The show stp information command displays information about the STP protocol on
the switch.
Format
Parameters
None
Default Value
None
View
Privileged user view, global configuration view, STP configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to check information about the STP protocol on the switch,
including the CIST and MSTI.
Example
Related Commands
None
The show stp instance interface command displays the spanning tree instance
configuration on all interfaces.
The show stp instance interface eth-trunk command displays the spanning tree
instance configuration on a specified trunk interface.
Format
Parameters
Default Value
None
View
Privileged user view, global configuration view, STP configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to check the STP information on all interfaces or a
specified interface.
Example
--------[PORT Info]--------
Description : xge-1/0/1
Port Role : disable
STP State : discarding
Priority : 128
Port Cost(Dot1t) : config=auto / active=20000000
Desg. Bridge/Port : 32768.0004-6512-4477 / 128.1089
TC or TCN TX :0
TC or TCN RX :0
Last forwarding time : 2019/07/21 11:15:26
Port Edged : config=disable / active=disable
Point-to-point : config=auto / active=false
TCN RX :0
Config RX :0
RSTP RX :0
MSTP RX :0
TCN TX :0
Config TX :0
RSTP TX :0
MSTP TX :0
BPDU Filter : disable
Protection Type : N/A
S6800#
Related Commands
None
Function
The show stp interface command displays the STP configuration on all interfaces or
a specified interface.
Format
Parameters
Default Value
None
View
Privileged user view, global configuration view, STP configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to check the STP configuration on an interface.
Example
RSTP RX :0
MSTP RX :0
TCN TX :0
Config TX :0
RSTP TX :0
MSTP TX :0
BPDU Filter : disable
Protection Type : N/A
S6800#
Related Commands
None
9.2.8 stp
Function
Format
stp
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to switch to the STP configuration view from the global
configuration view to configure STP parameters.
Example
# Switch to the STP configuration view from the global configuration view.
S6800#configure
%Enter configuration commands.End with Ctrl+Z or command "quit" & "end"
S6800(config)#stp
S6800(config-stp)#
Related Commands
None
Function
The stp bpdu-filter command enables or disables the BPDU filter function.
Format
Parameters
Default Value
disable
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
After the BPDU filter function is enabled for the spanning tree on an interface, the
interface will not send and receive the spanning tree packets. This forms a ring on the
network. Unless otherwise specified, this function is not required.
Example
Related Commands
None
The stp bpdu-guard command enables or disables the BPDU guard function.
Format
Parameters
Default Value
View
Usage Guidelines
Generally, the access ports of access-layer devices are directly connected to user
terminals (such as PCs) or file servers. You can configure these access ports as edge
ports to achieve fast migration of these ports. In normal situations, an edge port does
not receive STP configuration messages (BPDU packets). However, if someone
forges configuration messages to maliciously attack the switch, the system
automatically sets an edge port as a non-edge port upon receiving the configuration
message. This will cause re-calculation of the spanning tree and result in network
topology flapping. The BPDU guard function can prevent this problem.
Example
Related Commands
show stp
The stp bpdu-snooping command enables or disables the BPDU snooping function.
Format
Parameters
Default Value
View
Usage Guidelines
Generally, this function needs to be enabled for interworking with Cisco devices over
the MSTP/PVST protocols.
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
In customer mode, protocol packets can pass through the provider's network. This
mode is an implementation of BPDU tunnel.
Example
Related Commands
show stp
Function
The no stp config-name restores the STP region name to the default value.
Format
no stp config-name
Parameters
Default Value
View
Usage Guidelines
The MSTP domain name, MSTP domain, VLAN mapping table, and MSTP revision
level determine the domain of a switch together.
Example
Related Commands
show stp
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
S6800(config-xge1/0/1)#stp enable
S6800(config-xge1/0/1)#
Related Commands
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
An edge port can directly enter the forwarding state without any delay. Generally, the
port that is directly connected to a non-switching device such as a user terminal or a
server is configured as an edge port.
Example
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
When the topology changes, the new configuration message spreads across the
network after a period of time. This delay is called forward delay.
Example
S6800(config-stp)#stp forward-delay 10
S6800(config-stp)#
Related Commands
show stp
Function
The stp hello-time command sets the interval for sending Hello packets.
Format
Parameters
Default Value
View
Usage Guidelines
The switch sends BPDU packets based on the Hello Time to maintain the stability of
the spanning tree.
The Hello time, Forward Delay, and Max Age must satisfy the following relations:
MSTP can work effectively on the entire network only if the preceding relations are
satisfied. If the relations are not satisfied, network flapping frequently occurs.
Example
S6800(config-stp)#stp hello-time 3
S6800(config-stp)#
Related Commands
show stp
Function
The stp instance path-cost command configures the management path cost of the
current port in a specified MST instance (MSTI).
Format
Parameters
Default Value
By default, the instance management path cost is 0. The port path cost is
automatically calculated based on the port rate.
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
The port path cost in a specified MST instance is a major parameter for spanning tree
calculation. You can configure different path costs for the same interface in different
MSTI instances to enable the switch to forward traffic of different VLANs along
different physical links, achieving load balancing among VLANs.
Example
Related Commands
Function
The stp instance priority command configures the MSTI priority of the switch.
Format
Parameters
Default Value
View
Usage Guidelines
The priority configured using this command is a major element for the spanning tree
calculation. You can configure different priority values for each switch in different MSTI
instances.
The step of priority values is 4096. If the priority value is not configured based on this
step, the system displays the following information:
Example
Related Commands
show stp
Function
The stp instance priority command configures the MSTI priority of the current
interface
Format
Parameters
Default Value
By default, the priority of the port matching the spanning tree instance is 128.
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
The interface priority is the basis for role selection of an interface in the specified
MSTI instance. You can configure different priority values for the same interface in
different MSTI instances, achieving load balancing among VLANs.
Example
# Set the priority of interface xgigaethernet 1/0/1 in a spanning tree instance to 16.
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
The same MSTI can be configured with multiple VLANs to achieve load balancing
among VLANs.
Note:
In the no stp instance instance-id vlan vlan-list command, instance-id can be set to 0,
indicating to delete the VLAN list from CIST instance 0.
Example
Related Commands
Format
Parameters
Default Value
View
Usage Guidelines
Most links between switches on the network are connected in point-to-point mode.
Example
Related Commands
Function
The stp loop-guard command enables or disables the spanning tree loop guard
function.
Format
Parameters
Default Value
disable
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The stp max-age command configures the maximum aging time of the spanning tree.
Format
Parameters
Default Value
View
Usage Guidelines
If the port does not receive any configuration message within a specified period of
time, the maximum aging timer is triggered. If the lifetime reaches the maximum aging
time, the bridge considers that the link connected to the port is faulty and performs
fault identification.
Generally, the default forward delay is adopted. Ultra-long maximum aging time
results in the failure of identifying link faults in a timely manner. Ultra-short maximum
aging time makes the switch incorrectly identify a link fault and perform the spanning
tree re-calculation frequently.
Example
S6800(config-stp)#stp max-age 10
S6800(config-stp)#
Related Commands
Function
The stp max-hop command configures the maximum hop count of a spanning tree in
the MST region.
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to set the maximum hop count of a spanning tree in the
MST region, limiting the network scale.
Example
S6800(config-stp)#stp max-hop 10
S6800(config-stp)#
Related Commands
Function
The stp mcheck command configures the current interface to perform the mode
check.
Format
stp mcheck
Parameters
None
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Example
S6800(config-xge1/0/1)#stp mcheck
S6800(config-xge1/0/1)#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure the STP conversion cycle. This parameter is
used for the port protocol migration state machine. Before the port receives the BPDU
packet and changes the Tx BPDU packet type, the switch allows other RSTP bridges
in the same VLAN to synchronize the port state.
Example
S6800(config-stp)#stp migration-time 6
S6800(config-stp)#
Related Commands
Function
The stp mode command configures the STP working mode of the switch.
Format
Parameters
Default Value
View
Usage Guidelines
In the STP-compatible mode, each port of the switch sends STP BPDU packets.
In the RSTP mode, each port of the switch sends RSTP BPDU packets. Upon
discovering that the switch is connected to an STP device, the port automatically
migrates to the STP-compatible mode.
In the MSTP mode, each port of the switch sends MSTP BPDU packets. Upon
discovering that the switch is connected to an STP device, the port automatically
migrates to the STP-compatible mode.
Example
Related Commands
The stp path-cost command configures the management path cost of the current
interface in instance 0.
Format
Parameters
Default Value
By default, the management path cost is 0. The path cost is automatically calculated
based on the port rate.
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to set the management path cost of an interface.
Example
Related Commands
The stp pathcost-standard command configures the standard to calculate the STP
port path cost.
Format
Parameters
Default Value
By default, the standard used to calculate the STP port path cost is dot1t.
View
Usage Guidelines
Generally, interfaces on the same network should adopt the same calculation method.
Example
Related Commands
Function
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
The RSTP and MSTP fast negotiation mechanism is valid only on point-to-point links.
Generally, this command is used together with the stp link-detection command.
Example
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
The step of priority values is 4096. If the priority value is not configured based on this
step, the system displays the following information:
Example
Related Commands
Function
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to set interface priorities for role selection.
Example
Related Commands
Format
Parameters
None
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to set the STP revision level. The STP revision level,
domain name, and VLAN mapping table determine the MST domain to which the
switch belongs together.
Example
S6800(config-stp)#stp revision-level 2
S6800(config-stp)#
Related Commands
Function
The stp root-guard command configures the root protection function on the switch.
Format
Parameters
Default Value
Disable
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
Disable
View
Usage Guidelines
None
Example
Related Commands
None
The stp tc-hold-off command sets the topology change delay (suppression time) for
TC protection.
Format
Parameters
Default Value
View
Usage Guidelines
In normal situations, upon receiving a TC-BPDU packet, the switch deletes the local
MAC address entry and updates the ARP address table based on the STP instances
in the updated MAC address table. W hen a user forges TC-BPDU packets to
maliciously attack the switch, the switch receives a large number of TC-BPDU packets
within a short period of time. The switch frequently deletes the local MAC address
entries, resulting in frequent refresh of the ARP table. This affects the spanning tree
calculation and occupies a large amount of bandwidth resources, resulting in a high
CPU usage. With TC-BPDU protection enabled, the switch deletes the local MAC
address entry after receiving a TC-BPDU packet and starts a 10-second timer. If the
switch receives TC-BPDU packets again within the timeout time, it deletes the MAC
address entry for a maximum of six times only. This prevents frequent MAC address
entry deletion and improves the network stability.
This command must be used together with the stp tc-protection command.
Example
S6800(config-stp)#stp tc-hold-off 15
S6800(config-stp)#
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
The system starts the Hold-off timer for an interface after the interface receives a
TC-BPDU, and drops received TC-BPDUs before the Hold-off timer times out. This
function filters out redundant TC-BPDUs and protects the system against malicious
attacks.
Example
Related Commands
Function
The stp tc-protection threshold command sets the threshold on the number of TC
packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The stp timer-factor command configures the timeout interval of a spanning tree.
Format
Parameters
Default Value
By default, the timeout interval of a spanning tree is 6 times of the Hello interval.
View
Usage Guidelines
None
Example
S6800(config-stp)#stp timer-factor 8
S6800(config-stp)#
Related Commands
None
Function
The stp transmit-limit command sets the number of BPDUs sent in a Hello interval of
STP.
Format
Parameters
Default Value
View
Usage Guidelines
The more the BPDU packets sent in a Hello Time interval, the more the system
resources are occupied. You can use this command to properly limit the BPDU
packets sent in a Hello Time interval to avoid excessive bandwidth resource
occupation during network topology flapping.
Example
S6800(config-stp)#stp transmit-limit 2
S6800(config-stp)#
Related Commands
Function
The stp trap command enables or disables the STP trap function.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
Function
Format
debug mlink
no debug mlink
Parameters
None
Default Value
View
Usage Guidelines
This command is used to debug MLINK failures. Because a large amount of output
debugging information affects system performance, disable the debugging function
after the debugging is complete in a timely manner.
Example
S6800#debug mlink
S6800#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
This command is used to debug RLINK failures. Because a large amount of output
debugging information affects system performance, disable the debugging function
after the debugging is complete in a timely manner.
Example
S6800#
Related Commands
None
The join mlink group adds an interface to a Monitor Link group and configures the
interface as an uplink or downlink interface.
The no join mlink group command removes an interface from the corresponding
Monitor Link group.
Format
Parameters
Default Value
By default, the Monitor Link group does not have any interface.
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
The Monitor Link group consists of uplinks and downlinks. One Monitor Link group
can have multiple uplinks and downlinks. All downlinks monitor the state of the uplinks.
Once all uplinks are faulty, all downlinks will be forcibly disabled. When any uplink
restores, all downlinks are enabled again. The changes of the downlink state do not
affect the uplink state.
Example
Related Commands
None
The join rlink group command adds an interface to a Resilient Link group and
configures the interface as a master, slave, or sender interface.
The no join rlink group command removes an interface from the corresponding
Resilient Link group.
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Before running this command, activate the Resilient Link group. Otherwise, the
interface cannot be successfully added to the group.
If MSTP is enabled on an interface, the interface cannot be added to the Resilient Link
group.
Note:
Two uplinks must be monitored by the BFD or Monitor link. Otherwise, the master and
slave interfaces may fail to correctly identify the faulty link, resulting in link loop on the
master and slave interfaces after the link state restores.
Example
# Add interface xgigaethernet 1/0/1 to Resilient Link group 1 and configure the
interface as the master interface.
S6800(config-xge1/0/1)#
Related Commands
None
9.3.5 manual-change
Function
Format
manual-change
Parameters
None
Default Value
None
View
Usage Guidelines
If allowed by the link states, this command forcibly sets an interface in the Resilient
Link group to the BLK or FWD state and the other interface to FWD or BLK state.
According to different Resilient Link group types, manual link switching is classified
into single-point ode and dual-point mode.
The Resilient Link group must have master and slave interfaces.
The links must allow forced switching. That is, both the master and slave links must be
in the linkup state. For example, when the master is in FWD state and the slave is in
BLK state, you can change the master to BLK state and the slave to FWD state when
the links are both in linkup state.
After this command is executed, temporary packet loss may occur during link
switching, at a level of milliseconds.
Example
S6800(config-rlink1)#manual-change
S6800(config-rlink1)#
Related Commands
Function
The mlink group command creates a Monitor Link group and accesses its
configuration view. If the Monitor Link group already exists, the system directly
accesses its configuration view.
Format
Parameters
Default Value
View
Usage Guidelines
The Monitor Link group is mainly used for monitoring the uplink to perfect the Resilient
Link group backup function.
Example
S6800(config)#mlink group 1
S6800(config-mlink1)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
One interface can be added to only one port-based Resilient Link group. However,
one interface can be added to multiple VLAN-based Resilient Link groups. One
interface cannot be added to the port-based Resilient Link group and VLAN-based
Resilient Link group simultaneously.
If MSTP is enabled on an interface, the interface cannot be added to the Resilient Link
group.
Note:
Two uplinks must be monitored by the BFD or Monitor link. Otherwise, the master and
slave interfaces may fail to correctly identify the faulty link, resulting in link loop on the
master and slave interfaces after the link state restores.
Example
# Add interface xgigaethernet 1/0/1 to Resilient Link group 1 and configure the
interface as the master interface.
Related Commands
Function
Format
Parameters
Default Value
By default, the Monitor Link group does not have any interface.
View
Usage Guidelines
One interface can be configured as the uplink interface in multiple Monitor Link groups.
However, it can be configured as the downlink interface in only one Monitor Link group.
One interface cannot be an uplink interface and a downlink interface simultaneously.
One interface can be the uplink interface of multiple Monitor Link groups.
One interface can be the downlink interface of only one Monitor Link group.
If an interface is added to the eth-trunk, it cannot be added to the Monitor Link group.
Example
Related Commands
9.3.9 protect-vlan
Function
Format
protect-vlan vlan-list
no protect-vlan vlan-list
Parameters
Default Value
None
View
Usage Guidelines
If a protection VLAN is configured, for master port A, the VLAN is in the FWD state.
For slave port B, the VLAN is in the BLK state. When the link connected to master port
A is faulty, the slave port B is switched to the FWD state.
Example
# Configure VLAN 100 as the protection VLAN of the Resilient Link instance.
S6800(config-rlink1)#protect-vlan 100
S6800(config-rlink1)#
Related Commands
None
9.3.10 receive-timeout
Function
The receive-timeout command configures multiples of the timeout value for the
Resilient Link group to receive protocol packets from the peer.
Format
Parameters
Default Value
View
Usage Guidelines
The actual timeout time for receiving protocol packets from the peer is the packet
sending interval at the peer multiplied by the value configured by this command. The
packet sending interval can be configured using the send-interval command, and the
default value is 1s.
After this command is executed, if no protocol packet is received from the peer within
the timeout time, the switch considers that the peer does not have local ports in FWD
state. The timeout value configured using this command will affect the switching
performance. Exercise caution when using this command.
Example
# Set the timeout value for the Resilient Link group to receive protocol packets from
the peer to 16s.
S6800(config-rlink1)#receive-timeout 16
S6800(config-rlink1)#
Related Commands
send-interval
Function
Format
Parameters
Default Value
View
Usage Guidelines
Generally, when the active link in the Resilient Link restores, it retains in the BLK state
to maintain traffic stability and does not perform preemption. If you want to restore it to
the active link, use either of the following two methods:
Enable failback for the Resilient Link group. The active link will automatically switch
back after the failback timer expires. You can set the failback interval using the
reverse-time command.
Example
S6800(config-rlink1)#reverse enable
S6800(config-rlink1)#
Related Commands
manual-change, reverse-time
9.3.12 reverse-time
Function
The reverse-time command configures the failback time of a Resilient Link group.
Format
Parameters
Default Value
View
Usage Guidelines
The failback time is the delay time before the active link switches from the master
interface to the slave interface after fault recovery.
If the network is unstable or has a lower delay requirement, the failback time can be
set to a larger value to avoid smooth switching.
Example
S6800(config-rlink1)#reverse-time 60
S6800(config-rlink1)#
Related Commands
reverse {enable|disable}
The rlink group command a Resilient Link group and displays its configuration view.
If the Resilient Link group already exists, the system directly displays its configuration
view.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config)#rlink group 1
S6800(config-rlink1)#
Related Commands
None
Function
The rlink group send-vlan command configures the VLAN ID of the RLINK protocol
packets sent from an interface.
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
In dual-point mode, you must configure a VLAN for sending protocol packets. The
VLAN ID must be one of VLANs to which the packet sending interface and receiving
interface belong. Otherwise, packets may not be normally received the two nodes.
Before using this command, run the rlink group command to create a Resilient Link
group and activate it. Then, run the add interface
{xgigaethernet|40gigaethernet|100gigaethernet} role {master|slave|sender} or join
rlink group command to add the interface to the Resilient Link group. Otherwise, the
configuration fails and the system displays "%Failed to get rlink member status!". ".
Example
Related Commands
None
9.3.15 send-interval
Function
The send-interval command configures the interval for sending protocol packets.
Format
Parameters
Default Value
In dual-point mode, the default value is 1000 ms. In single-point mode, the default
value is 0 ms.
View
Usage Guidelines
None
Example
# Set the interval for sending protocol packets of the Resilient Link group to 3s.
S6800(config-rlink1)#send-interval 3000
S6800(config-rlink1)#
Related Commands
None
Function
The show mlink config command shows the configuration file information of the
uplink monitoring function.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The show mlink group command shows the information of all Monitor Link groups or
the designated Monitor Link group.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
After the Monitor Link group is created and an uplink port or a downlink port is added,
you can use this command to view information about the Monitor Link group, including
the member interface name, member interface state, and interface link state.
Example
Related Commands
The show mlink interface command shows configuration information of all Monitor
Link interfaces or a specified interface.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The show rlink config command displays the configuration file information of the
dual-uplink redundancy function.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view, RLINK
configuration view
Usage Guidelines
None
Example
receive-timeout 0
send-interval 0
rlink group 2
type single
protect-vlan
reverse disable
reverse-time 0
trap disable
receive-timeout 15
send-interval 100
S6800#
Related Commands
None
The show rlink group command displays the state information about all Resilient
Link groups or a specified Resilient Link group.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view, RLINK
configuration view
Usage Guidelines
You can use this command to check the Resilient Link group state information,
including the group state, group type, failback time, and member interface. When the
Resilient Link group is faulty, you can locate the fault by analyzing the state
information.
Example
Related Commands
None
Function
The show rlink interface command displays configuration of all Resilient Link
interfaces or a specified interface.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view, RLINK
configuration view
Usage Guidelines
None
Example
Related Commands
None
The type {single|double} command sets the single-point mode or dual-point mode
for a Resilient Link group.
Format
Parameters
Default Value
View
Usage Guidelines
If the Resilient Link group is activated, you cannot modify its working mode.
Example
S6800(config-rlink1)#type double
S6800(config-rlink1)#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-mlink1)#snmp-trap enable
S6800(config-mlink1)#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800#debug flush
S6800#
Related Commands
None
Function
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
S6800(config-xge1/0/1)#flush enable
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
show flush
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to query global flush configuration information.
Example
S6800#show flush
Flush Max Interface Number :
Flush Free Interface Number :
S6800#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Privileged user view, global configuration view, common user view, interface
configuration view (Ethernet and trunk), and interface group configuration view
Usage Guidelines
You can use this command to query global flush interface configuration information.
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to debug, maintain, and identify VRRP functional
problems.
Example
S6800#debug vrrp in
S6800#
Related Commands
None
9.5.2 ip vrrp
Function
The ip vrrp command creates a VRRP record entry. (This command applies to IPv4
networks.)
Format
ip vrrp virtual-route-id
no ip vrrp [ virtual-route-id ]
Parameters
Default Value
None
View
Usage Guidelines
Before configuring a virtual router, you must create a record and specify the ID of the
virtual router.
Example
S6800(config)#interface vlan 10
S6800(config-vlan-10)#ip address 1.1.1.1/24
S6800(config-vlan-10)#ip vrrp 1
S6800(config-vlan-10)#
Related Commands
ip address
Format
Parameters
Default Value
View
Usage Guidelines
When the VRRP state changes, the switch sends the corresponding VRRP state trap
message if the SNMP trap function is enabled.
Example
Related Commands
None
Function
The ip vrrp advertise-interval command configures the interval for sending VRRP
advertisement packets. (This command applies to IPv4 networks.)
Format
Parameters
Default Value
By default, the interval for sending VRRP advertisement packets is 100 centiseconds
(1s).
View
Usage Guidelines
A short interval ensures high VRRP sensitivity, which can shorten the switchover
between active and standby interfaces and reduce data loss. A long interval can
reduce the load on the network.
Example
S6800(config)#interface vlan 10
S6800(config-vlan-10)#ip vrrp 1 advertise-interval 10
S6800(config-vlan-10)#
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
After a virtual router record is created, you need to configure at least one associated
IP address as the default gateway address of the terminal host. After VRRP is enabled,
the switch checks this IP address. If this address is the same as the IP address of the
physical port, the switch always uses this address and the interface address of the
primary virtual router (setting the priority of this address to the maximum number (255)
automatically).
Example
S6800(config)#interface vlan 10
S6800(config-vlan-10)#ip vrrp 1 associate-address 10.255.255.254
S6800(config-vlan-10)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Before running this command, create a VRRP record entry. Devices in same VRRP
backup group must use the same authentication mode. Otherwise, the master and
backup switches cannot successfully negotiate with each other.
Example
S6800(config)#interface vlan 10
S6800(config-vlan-10)# ip vrrp 1 associate-address 10.255.255.254
Related Commands
None
Function
The ip vrrp check-ttl {enable|disable} command enables or disables TTL check for
VRRP advertisement packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
By default, the master VRRP interface is enabled to periodically send gratuitous ARP
packets.
View
Usage Guidelines
None
Example
# Enable the master VRRP interface to periodically send gratuitous ARP packets.
Related Commands
None
Function
The ip vrrp gratuitous-arp timeout command configures the interval at which the
master interface sends gratuitous ARP packets.
Format
Parameters
Default Value
View
Usage Guidelines
To enable other network devices connected with to the switch to learn addresses in
the VRRP backup group, the VRRP backup group needs to send gratuitous ARP
packets, and the interval for sending gratuitous ARP packets must be shorter than the
address aging time of the network devices.
Example
# Set the interval at which the master interface sends gratuitous ARP packets to 180s.
Related Commands
None
The ip vrrp holding-multiplier command sets the multiplier of the interval for sending
advertisement packet, which is used to set the holding time of the backup device in a
VRRP backup group.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
# Set the multiplier of the interval for sending advertisement packet in VRRP backup
group 1.
S6800(config-vlan-10)#ip vrrp 1
S6800(config-vlan-10)#ip vrrp 1 holding-multiplier 5
S6800(config-vlan-10)#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
If you want to enable a switch with a higher priority to actively become the master,
configure the preemption mode for the switch.
Example
S6800(config)#interface vlan 10
S6800(config-vlan-10)#ip vrrp 1 preempt disable
S6800(config-vlan-10)#
Related Commands
None
The ip vrrp preempt timer delay command configures the preemption delay for a
switch in the VRRP backup group.
Format
Parameters
Default Value
By default, the preemption delay is set to 0s, that is, immediate preemption.
View
Usage Guidelines
If you want to enable a switch with a higher priority to actively become the master,
configure the preemption mode for the switch.
Example
S6800(config)#interface vlan 10
S6800(config-vlan-10)#ip vrrp 1 preempt timer delay 3
S6800(config-vlan-10)#
Related Commands
None
The ip vrrp priority command configures the priority for VRRP master election. (This
command applies to IPv4 networks.)
Format
Parameters
Default Value
View
Usage Guidelines
The priority is the most important parameter used by VRRP to elect a master virtual
router. The priority ranges from 1 to 254. When several VRRP routers forming a virtual
router do not include a permanent master virtual router (no router has the IP address
same as the associated IP address of the backup group), the VRRP router with the
largest priority is elected as the master virtual router.
Example
S6800(config)#interface vlan 10
S6800(config-vlan-10)#ip vrrp 1 priority 200
S6800(config-vlan-10)#
Related Commands
None
Function
The ip vrrp role admin command creates a management VRRP backup group.
The no ip vrrp role admin command deletes a management VRRP backup group.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The ip vrrp track bfd-session command binds a BFD session and a VRRP instance
to achieve fast switchover.
Format
Parameters
Default Value
None
View
Usage Guidelines
Before using this command, ensure that the BFD session instance exists.
Example
S6800(config)#interface vlan 10
S6800(config-vlan-10)#ip vrrp 1 track bfd-session 1
S6800(config-vlan-10)#
Related Commands
None
The ip vrrp track interface vlan command binds an associated VLAN interface
(applicable to IPv4).
The no ip vrrp track interface vlan command cancels the binding with an associated
VLAN interface.
Format
Parameters
Default Value
10
View
Usage Guidelines
This command associates a VLAN interface with a VRRP group. When the VLAN
state becomes Down, VRRP can detect the failure in a timely manner.
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config-vlan-1)#ip vrrp 1
S6800(config-vlan-1)#ip vrrp admin-vrrp 1 associate-vrrp interface vlan 1 3
S6800(config-vlan-1)#
Related Commands
None
Function
The reset ip vrrp statistic command resets the global VRRP statistics.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
show ip vrrp
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
You can use this command to view the VLAN interface, VRRP ID, VRRP state, and
priority of IPv4 VRRP.
Example
S6800#show ip vrrp
Interface VRID Version VR-State Pri IP-Count State Auth-Mode Auth-Key
vlan 100 1 2 Initial 100 0 Active none N/A
vlan 100 2 3 Initial 100 0 Active none N/A
S6800#
Related Commands
None
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
The following table describes VRRP binding information that can be queried using this
command.
Item Description
Admin-Interface Specifies the interface type and number in the management VRRP group.
Admin-VRID Specifies the management VRRP backup group ID.
Member-Interface Specifies the interface type and number in the member VRRP backup
group bound with the management VRRP.
Member-VRID Specifies the member VRRP backup group number bound with the
management VRRP.
Example
Related Commands
None
The show ip vrrp binding admin-vrrp interface command displays binding relation
between the management VRRP backup group and the member VRRP backup
group.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
The following table describes VRRP binding information that can be queried using this
command.
Item Description
Member-Interface Specifies the interface type and number of the management VRRP.
Member-VRID Specifies the member VRRP backup group ID.
VR-State Specifies the VRRP backup group state, including Master, Backup,
and Initial.
Example
# Display binding relation between the management VRRP backup group and the
member VRRP backup group.
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
!vrrp configuration
ip vrrp enable
interface vlan 1
interface vlan 10
ip vrrp 1
ip vrrp 1 priority 10
ip vrrp 1 associate-address 1.1.1.2
ip vrrp 1 enable
interface vlan 19
S6800#
Related Commands
None
The show ip vrrp interface vlan command displays details about a VRRP router
(applicable to IPv4).
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
The show ip vrrp statistic command displays the current VRRP statistics.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
None
Example
Related Commands
None
The cpu high-threshold command configures the upper limit of CPU usage.
Format
Parameters
Default Value
View
Usage Guidelines
When the CPU usage exceeds the upper limit, the switch triggers a monitoring alarm if
monitoring and alarm reporting are enabled.
The default value is recommended. If the upper limit is too low, the system frequently
reports alarms. If the upper limit is too high, you cannot learn the CPU usage in a
timely manner.
Example
S6800(config)#cpu 1 high-threshold 70
S6800(config)#
Related Commands
None
Function
The cpu low-threshold command configures the lower limit of CPU usage.
Format
Parameters
Default Value
View
Usage Guidelines
When the CPU usage is below the lower limit, the switch triggers a monitoring alarm if
monitoring and alarm reporting are enabled.
The default value is recommended. If the lower limit is too high, the system frequently
reports alarms. If the lower limit is too low, you cannot learn the CPU usage in a timely
manner.
Example
Related Commands
None
Function
The cpu monitor command enables or disables the CPU monitoring function.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
Generally, this command is used together with the cpu monitor command.
Example
Related Commands
None
Function
The show cpu command displays CPU usage statistics and configuration.
Format
show cpu
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to check the usage and configuration of CPUs on the main
control board an all line cards of the switch.
Example
S6800(config)#show cpu
CPU information:
CPU monitor: enable
Related Commands
None
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
show fan
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#show fan
Fan information:
Fan monitor: enable
Related Commands
None
The show cpu configure command displays the current CPU configuration on the
switch.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The show memory command displays the total memory usage of all modules in the
switch.
Format
show memory
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view
Usage Guidelines
None
Example
S6800(config)#show memory
Mem Usage: 27%
Mem Total Size: 1033156K
Mem Usage Size: 287344K
S6800(config)#s
Related Commands
None
Function
The show power command displays power supply status on the switch.
Format
show power
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#show power
Power information:
Power monitor: disable
Index Descr Status Trap FuseStatus Serial
Power-1 power-1 normal disable abnormal
Power-2 power-2 normal disable abnormal
S6800(config)#
Related Commands
None
Function
Format
show temperature
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#show temperature
Temperature information:
Temperature monitor: enable
Index CurrValue L-Threshold H-Threshold Status Trap Descr
* Temper-1/0/1 38 -10 80 normal enable Sensor Temperature
S6800(config)#
Related Commands
None
Function
The show task-usage command displays the CPU usage of each task in the system.
Format
show task-usage
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#show task-usage
TID CPU TaskName
1225 4% /usr/bin/uspmstp
1257 0% /usr/bin/uspnmagent
1237 0% /usr/bin/uspmam
1179 0% /usr/bin/uspigmpsnoop
1235 0% /usr/bin/uspisisv2
1233 0% /usr/bin/usppim
1240 0% /usr/bin/uspdid
1202 0% /usr/bin/usplldp
1245 0% /usr/bin/uspcpudefend
1181 0% /usr/bin/uspalb
1146 0% [linkscan_task]
1142 0% [ctclnkMon]
3 0% [ksoftirqd/0]
1249 0% /usr/bin/uspS6800dev
1243 0% /usr/bin/uspiss
1192 0% /usr/bin/usptimerange
1193 0% /usr/bin/usphwroutefrr
1180 0% /usr/bin/uspmldsnoop
1223 0% /usr/bin/usproutepolicy
0 96% idle
S6800#
Related Commands
None
Format
debug mirror
no debug mirror
Parameters
None
Default Value
View
Usage Guidelines
You can use this command to debug mirroring functions and identify mirroring faults.
Example
S6800#debug mirror
S6800#
Related Commands
None
Function
The mirror group command configures a local mirror group and an observing
interface.
The no mirror group command deletes a local mirror group and an observing
interface.
Format
Parameters
Default Value
By default, the local observing group and observing interface are not configured.
View
Usage Guidelines
When the observing interface and observed interface (source interface of mirroring)
are on the same device, you can use this command to configure a local mirror group
and observing interface.
Example
# Configure a local mirror group and specify xgigaethernet 1/0/1 as the observing
interface.
Related Commands
Format
Parameters
Default Value
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
Example
Related Commands
Function
The show mirror config command displays the mirroring configuration on the switch.
Format
Parameters
None
Default Value
None
View
Privileged user view, global configuration view, interface configuration view (Ethernet
and trunk), VLAN configuration view, interface group configuration view
Usage Guidelines
This command does not show L2, L3, and local mirroring information simultaneously.
The initialized information is 0.
Example
Related Commands
None
Function
The show mirror vlan command displays VLAN mirroring usage on the switch.
Format
Parameters
None
Default Value
None
View
Privileged user view, global configuration view, interface configuration view (Ethernet
and trunk), VLAN configuration view, interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The show mirror group command displays mirror group information on the switch.
Format
Parameters
None
Default Value
None
View
Privileged user view, global configuration view, interface configuration view (Ethernet
and trunk), VLAN configuration view, interface group configuration view
Usage Guidelines
This command does not show L2, L3, and local mirroring information simultaneously.
The initialized information is 0.
Example
S6800#
Related Commands
None
The show mirror interface command displays interface mirroring usage on the
switch.
Format
Parameters
None
Default Value
None
View
Privileged user view, global configuration view, interface configuration view (Ethernet
and trunk), VLAN configuration view, interface group configuration view
Usage Guidelines
None
Example
Related Commands
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
This command deletes logs in the log buffer and resets the statistics.
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
In a sent customized log, the log type must be specified, and the source is the default
source.
Example
Related Commands
None
Function
The logging logfile max-number command configures the maximum number of log
files.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The logging logfile size command configures the size of a log file.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
10.4.6 logging on
Function
Format
logging on
no logging on
Parameters
None
Default Value
View
Usage Guidelines
To monitor system operation and status, you can enable the log function. Then you
can obtain the system status by checking logs and take appropriate actions. The log
file can save 2000 consecutive records. When the number of records exceeds 2000,
the system automatically deletes the earliest records. To prevent loss of log records,
you are advised to export the log file regularly.
Example
S6800(config)#no logging on
S6800(config)#
Related Commands
None
The logging source action command configures log management for the various
modules.
The no logging source action command cancels log management for various
modules.
Format
logging source { acl | arp | arp-probe | cli | default | icmp | ifm | l2vpn | ldp |
mam | rip | vlan-mapping | watchdog } action { console | monitor | logfile |
logbuffer | trap | trapbuffer | syslog | smtp } { log | debug | trap } level
{ emergencies | alert | critical | error | warning | notification | information |
debugging | default }
logging source { acl | arp | arp-probe | cli | default | icmp | ifm | l2vpn | ldp |
mam | rip | vlan-mapping | watchdog } action { console | monitor | logfile |
logbuffer | trap | trapbuffer | syslog | smtp } { log | debug | trap } state
{ enable | disable | default }
logging source { acl | arp | arp-probe | cli | default | icmp | ifm | l2vpn | ldp |
mam | rip | vlan-mapping | watchdog } action { console | monitor | logfile |
logbuffer | trap | trapbuffer | syslog | smtp } { log | debug | trap } state
{ enable | disable | default } level { emergencies | alert | critical | error |
warning | notification | information | debugging | default }
no logging source { acl | arp | arp-probe | cli | default | icmp | ifm | l2vpn | ldp
| mam | rip | vlan-mapping | watchdog } action { console | monitor | logfile |
logbuffer | trap | trapbuffer | syslog | smtp }
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The save logging logfile command enables you to manually save log files.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to save logs in the log buffer to log files.
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, interface configuration view (routing mode)
Usage Guidelines
None
Example
Related Commands
None
Function
Format
show logbuffer
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800#show logbuffer
2019/7/30 00:38:19 S6800 %01-6-DEFAULT-INFO(l):10.166.18.7 User=admin:show abn
2019/7/30 00:38:06 S6800 %01-6-DEFAULT-INFO(l):10.166.18.7 User=admin:exit
2019/7/30 00:38:04 S6800 %01-6-DEFAULT-INFO(l):10.166.18.7 User=admin:eit
2019/7/30 00:32:33 S6800 %01-6-DEFAULT-INFO(l):10.166.18.7 User=admin:logging import log
log
2019/7/30 00:32:33 S6800 %01-0-DEFAULT-INFO(l):log
2019/7/30 00:32:20 S6800 %01-6-DEFAULT-INFO(l):10.166.18.7 User=admin:con
2019/7/30 00:32:18 S6800 %01-5-DEFAULT-INFO(l): [telnet] User admin at host(10.166.18.7)
successfully log on.
2019/7/30 00:32:15 S6800 %01-5-DEFAULT-INFO(l): [telnet] Host(10.166.18.7) successfully log on
2019/7/30 00:20:53 S6800 %01-7-DEFAULT-INFO(l):vty->timeout:fd is 14,line is 32
2019/7/30 00:17:03 S6800 %01-5-DEFAULT-INFO(l): [telnet] Host(10.166.18.7) log off
2019/7/30 00:17:03 S6800 %01-7-DEFAULT-INFO(l):vty->timeout:fd is 17,line is 0
2019/7/30 00:10:52 S6800 %01-6-DEFAULT-INFO(l):Console User=admin: +++
2019/7/30 00:07:00 S6800 %01-6-DEFAULT-INFO(l):10.166.18.7 User=admin:stp
2019/7/30 00:06:59 S6800 %01-6-DEFAULT-INFO(l):10.166.18.7 User=admin:con
2019/7/30 00:06:57 S6800 %01-5-DEFAULT-INFO(l): [telnet] User admin at host(10.166.18.7)
successfully log on.
2019/7/30 00:06:54 S6800 %01-5-DEFAULT-INFO(l): [telnet] User at host(10.166.18.7)
unsuccessfully log on(107).
2019/7/30 00:06:54 S6800 %01-7-DEFAULT-INFO(l): [trap]authentication failed.
2019/7/30 00:04:21 S6800 %01-5-DEFAULT-INFO(l): [telnet] Host(10.166.18.7) successfully log on
2019/7/30 00:03:52 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:ping 10.82.1.254
2019/7/30 00:03:40 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:ping 10.166.18.7
2019/7/30 00:03:18 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:wr f
2019/7/30 00:03:15 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:q
2019/7/30 00:03:14 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:ip route-static 0.0.0.0
0.0.0.0 10.82.1.254
1999/11/30 00:01:59 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:q
2019/7/30 00:01:58 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:ip add 10.82.20.28/16
2019/7/30 00:01:46 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:no ip address
2019/7/30 00:01:42 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:ip add 10.82.20.28/24
2019/7/30 00:01:33 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:int vlan 1
2019/7/30 00:01:30 S6800 %01-6-DEFAULT-INFO(l):Console User=admin:con
2019/7/30 00:01:29 S6800 %01-5-DEFAULT-INFO(l): [console] User admin at host(Console)
successfully log on.
S6800#
Related Commands
None
Function
The show logbuffer module command displays logs of the default, ACL, CLI, or IFM
module.
Format
show logbuffer module { acl | arp | arp-probe | cli | default | icmp | ifm | l2vpn |
ldp | mam | vlan-mapping | watchdog }
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#
Related Commands
None
Function
The show logbuffer size command displays the specified number of logs in the log
buffer.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800#
Related Commands
None
Function
The show logbuffer start-time command displays log information at the specified
time.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show logfile command displays a log file in the log buffer.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show logfile module command displays logs of the default, ACL, CLI, or IFM
module.
Format
show logfile file-name module { acl | arp | arp-probe | cli | default | icmp | ifm |
l2vpn | ldp | mam | vlan-mapping | watchdog }
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show logfile start-time command displays log information at the specified time.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show logging command displays system logs, including the log information of a
specified entry and log information including or excluding a specified string of
characters.
Format
show logging
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
S6800#show logging
Logging: enable
Logging terminal: enable
Logging terminal level: 7
Logging syslog: disable
Logging syslog level: 3
Logging smtp: disable
S6800#
Related Commands
None
The show logging action command displays logging action for each module.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Action:monitor
Source Log Level Debug Level Trap Level
DEFAULT enable warning enable debugging disable debugging
Action:logfile
Source Log Level Debug Level Trap Level
DEFAULT enable debugging disable debugging enable debugging
Action:logbuffer
Source Log Level Debug Level Trap Level
DEFAULT enable debugging disable debugging enable debugging
Action:trap
Source Log Level Debug Level Trap Level
DEFAULT disable information disable debugging disable debugging
Action:syslog
Source Log Level Debug Level Trap Level
DEFAULT enable information disable debugging enable debugging
Action:smtp
Source Log Level Debug Level Trap Level
DEFAULT disable warning disable warning disable warning
S6800#
Related Commands
None
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show logging source command displays details about a specified module.
Format
show logging source { acl | arp | arp-probe | cli | default | icmp | ifm | l2vpn | ldp |
mam | vlan-mapping | watchdog }
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Statistics
Log total number :601
Log lost number :0
Debug total number :440
Debug lost number :0
Trap total number :0
Trap lost number :0
S6800(config)#
Statistics
Log total number :0
Log lost number :0
Related Commands
None
The show logging statistics command shows log statistics of all modules.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The syslog facility command configures the functional entity value in the PRI part of
syslog messages.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Set the functional entity value of the PRI part of the syslog message to kernel.
Related Commands
None
The show syslog config command displays the syslog server configuration file.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
syslog server
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure a syslog server. The syslog server receives
logs from the clients. In this manner, you can uniformly manage and view the logs,
facilitating device monitoring.
Example
Related Commands
None
Format
syslog6 server
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The write log command allows you to manually add log content.
Format
Parameters
Default Value
None
View
Usage Guidelines
You can manually add required log content using this command.
Example
Related Commands
None
Function
Format
show diagnose
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
========================================
show clock
========================================
System Running Time: 5 hours,24 minutes,4 seconds
Clock : 1999-11-30 05:23:48
test-Clock : 1999-11-30 05:23:48 Tue
Time Zone : UTC +00:00
========================================
show hwclock
========================================
hwclock: 2000-00-00 00:00:00
========================================
show logging
========================================
Logging :enable
Source number :1
Logfile path :" /Ram/log"
Logfile max size :1 Mb
Logfile max number :5
Logbuffer Max number :8000
Logbuffer Current number :410
Logbuffer history number :410
========================================
show management acl
========================================
Management Acl State: Disable
……
S6800#
Related Commands
None
Function
The show ddm config command displays Digital Diagnostics Monitoring (DDM)
information on optical interfaces, including upper and lower thresholds of current,
voltage, and other attributes of optical transceivers on the interfaces.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view, interface group configuration view
Usage Guidelines
None
Example
S6800#
Related Commands
None
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view, interface group configuration view
Usage Guidelines
None
Example
# Display general transceiver hardware information on all the interfaces with optical
transceivers installed.
Encoding :NRZ
Nominal BR(mbps) :25
Min BR(mbps) :23.25
Max BR(mbps) :26.0275
DDM support :Yes
Manufacture information:
Vendor Name :etech
Vendor Part Num :OP6E-S05-13-CM
Vendor Serial Num :8225259025
Vendor rev Num :0000
Manufacturing Date :080223
S6800(config)#
Related Commands
None
Function
The show laser hardware detailed command displays detailed transceiver hardware
information on all the interfaces with optical transceivers installed.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface group
configuration view
Usage Guidelines
None
Example
# Display detailed transceiver hardware information on all the interfaces with optical
transceivers installed.
S6800#
Related Commands
None
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view, interface group configuration view
Usage Guidelines
None
Example
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view, interface group configuration view
Usage Guidelines
None
Example
S6800(config-xge1/0/1)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config)#watchdog enable
S6800(config)#
Related Commands
None
Function
The watchdog period command configures the global watchdog trigger time.
Format
Parameters
Default Value
View
Usage Guidelines
After this command is used, the system restarts if the watchdog timer does not restart
when the trigger time arrives.
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Privileged user view, global configuration view, NTP configuration view, VLANIF
configuration view
Usage Guidelines
You can use this command to view the NTP process and packet sending and
receiving situations. This command is used to maintain and debug the NTP function of
the switch.
Example
Related Commands
None
11.2.2 ntp
Function
Format
ntp
Parameters
None
Default Value
None
View
Usage Guidelines
This command is a prerequisite for configuring other NTP parameters in the NTP
configuration view.
Example
# Switch to the NTP configuration view from the global configuration view.
S6800(config)#ntp
S6800(config-ntp)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
For networks requiring high security, you can use this command to enable MD5
authentication globally.
Example
S6800(config-ntp)#authentication enable
S6800(config-ntp)#
S6800(config-ntp)#authentication disable
S6800(config-ntp)#
Related Commands
show ntp
11.2.4 authentication-keyid
Function
Format
no authentication-keyid key-id
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure the NTP authentication key. The switch
supports only MD5 authentication.
Example
# Set the MD5 authentication key ID to 100 and key content to FHNtestkey.
Related Commands
show ntp
Function
The client update-interval command configures the interval for updating the NTP
client.
Format
Parameters
Default Value
The default value of update-interval-time is 2, that is the default interval for updating
the NTP client is 26 seconds.
View
Usage Guidelines
2n seconds
Example
Related Commands
show ntp
11.2.6 master
Function
Format
master
no master
Parameters
None
Default Value
View
Usage Guidelines
You can use this command to configure the switch as the primary clock. The primary
clock can be used as a server to synchronize time of other devices.
Example
S6800(config-ntp)#master
S6800(config-ntp)#
Related Commands
show ntp
Function
Format
ntp broadcast-client
no ntp broadcast-client
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to enable the switch to automatically run in client mode
after the current interface receives an NTP broadcast packet or a multicast message.
Example
S6800(config-vlan-4002)#ntp broadcast-client
S6800(config-vlan-4002)#
Related Commands
None
Function
Format
ntp multicast-client
no ntp multicast-client
Parameters
Default Value
View
Usage Guidelines
Example
S6800(config-vlan-4002)#
Related Commands
None
Function
Format
ntp broadcast-server
no ntp broadcast-server
Parameters
Default Value
View
Usage Guidelines
You can use this command to enable an interface of a local switch to send NTP
broadcast packets. When the local switch runs in server mode, it periodically sends,
as a broadcast or multicast server, broadcast packets to broadcast or multicast clients.
The client and server ends must be configured in the same mode, that is, broadcast or
multicast mode.
Example
Related Commands
None
Function
Format
ntp multicast-server
no ntp multicast-server
Parameters
Default Value
View
Usage Guidelines
Example
Related Commands
None
The ntp unicast-peer command creates or modifies an IPv4 NTP active peer. The
command supports peer configuration in VPN instances.
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to set or cancel an IPv4 peer. The IP address is the peer
IP address, and the version is the NTP version number. The key is the configured key.
Example
Related Commands
show ntp
Function
The ntp unicast-server command designates a unicast IPv4 NTP server for the
switch. The command supports configuration in VPN instances.
The no ntp unicast-server command cancels a unicast IPv4 NTP server for the
device.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
show ntp
11.2.13 oncesync
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to enable or disable the concurrency mechanism in the
process of synchronizing packet interaction.
Example
S6800(config-ntp)#oncesync enable
S6800(config-ntp)#
Related Commands
None
Function
Format
Parameters
Default Value
26 seconds
View
Usage Guidelines
You can use this command to configure the broadcast interval of the NTP server, so
that the NTP server can periodically broadcast its own time.
Example
S6800(config-ntp)#server broadcast-interval 10
S6800(config-ntp)#
Related Commands
show ntp
11.2.15 stratum
Function
Format
Parameters
Default Value
16
View
Usage Guidelines
None
Example
S6800(config-ntp)#stratum 10
S6800(config-ntp)#
Related Commands
show ntp
Format
show ntp
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to check the NTP configuration information in the
configuration file.
Example
S6800#show ntp
ntp client update-interval : 32s
Related Commands
None
Function
The show ntp service command displays the NTP service information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The show ntp service verbose command displays detailed information about the
NTP service.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
clock stratum: 16
reference clock ID: ::
local mode: active, local poll: 4
peer mode: passive, peer poll: 0
offset: 0.000000s, delay: 0.000000s, disper: 16.000000s
root delay: 0.000000s, root disper: 0.000000s
precision: -18, version: 2
reftime: 00:00:00 UTC Jan 00 1900 (0.0)
orgtime: 00:00:00 UTC Jan 00 1900 (0.0)
rcvtime: 00:00:00 UTC Jan 00 1900 (0.0)
xmttime: 00:00:00 UTC Jan 00 1900 (0.0)
clock source: ::
clock stratum: 16
reference clock ID: ::
local mode: client, local poll: 4
peer mode: server, peer poll: 0
offset: 0.000000s, delay: 0.000000s, disper: 16.000000s
root delay: 0.000000s, root disper: 0.000000s
precision: -18, version: 1
reftime: 00:00:00 UTC Jan 00 1900 (0.0)
orgtime: 00:00:00 UTC Jan 00 1900 (0.0)
rcvtime: 00:00:00 UTC Jan 00 1900 (0.0)
xmttime: 00:00:00 UTC Jan 00 1900 (0.0)
clock source: ::
clock stratum: 16
reference clock ID: ::
local mode: server, local poll: 5
peer mode: client, peer poll: 0
offset: 0.000000s, delay: 0.000000s, disper: 16.000000s
root delay: 0.000000s, root disper: 0.000000s
precision: -18, version: 1
reftime: 00:00:00 UTC Jan 00 1900 (0.0)
orgtime: 00:00:00 UTC Jan 00 1900 (0.0)
rcvtime: 00:00:00 UTC Jan 00 1900 (0.0)
xmttime: 04:54:19 UTC Nov 01 2006 (c8f2a6fb.2666664c)
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-ntp)#trusted-keyid 1 enable
S6800(config-ntp)#
Related Commands
show ntp
Function
Format
Parameters
from 0 to 4294967295.
Indicates the falling threshold. The value is an integer ranging
falling-threshold
from 0 to 65535.
Indicates the rising event entry number. The value is an integer ranging
rising-event
from 0 to 4294967295.
Indicates the falling event entry number. The value is an integer ranging
falling-event
from 0 to 65535.
Defines a RMON alarm user (optional). The value is a string of 0 to 127
owner
characters.
Default Value
None
View
Usage Guidelines
When adding an alarm table entry using this command, configure the source object ID,
query interval, alarm sample type, alarm generation type, and the corresponding time.
In this way, the system can determine whether to record an alarm event in a log or
send a trap message to the NMS in case of alarm events.
The sample types can be obtained in the following methods: Compare the difference
between the relative value (currently sample value) minus the last sample value with
the threshold; compare the absolute value (current sample value) with the threshold.
The comparison result is used to generate the rising or falling event.
Example
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure the event ID and event processing mode, so
that the switch can handle the alarm events accordingly.
Example
Related Commands
Function
The rmon history command configures a RMON historical record control entry.
The no rmon history command deletes a RMON historical record control entry.
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to set the sampling interval and quantity of saved samples.
If the quantity of saved samples is too large, the switch allocates the samples
according to the resource situation. The RMON periodically collect data on interfaces
for storage and checking.
Example
# Configure a RMON historical record control entry and set the sampling interval to
10s and quantity of saved samples to 30.
S6800(config-xge1/0/1)#rmon history 1 10 30
S6800(config-xge1/0/1)#
Related Commands
The rmon statistics command configures a RMON statistics record control entry.
The no rmon statistics command deletes a RMON statistics record control entry.
Format
Parameters
Default Value
None
View
Interface configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to configure RMON statistics measurement and enable
the switch to measure errors of the monitoring interfaces.
Example
S6800(config-xge1/0/1)#rmon statistics 1
S6800(config-xge1/0/1)#
Related Commands
The show rmon alarm command displays configuration of RMON alarm control
entries.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to view configuration information of a RMON alarm control
entry, including the alarm ID, alarm query interval, rising threshold, and falling
threshold.
Example
Interval:2
Source OID:1.3.6.1.2.1.2.2.1.8.2
Sample Type:absolute value
Alarm Value:2
Startup Alarm:risingOrFallingAlarm
Rising Threshold:1
Rising Event:1
Falling Threshold:2
Falling Event:1
Owner:CLI
Status:valid
S6800#
Related Commands
rmon alarm
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to view configuration information of a RMON event.
Example
S6800#
Related Commands
None
The show rmon event command displays configuration of RMON event control
entries.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to view configuration information of the RMON event
control entry, including the event control entry ID, description information, type, and
last transmit time.
Example
Related Commands
None
The show rmon history command displays configuration of RMON event control
entries.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to view configuration information of the RMON event
control entry. If history-id is not included, the system displays configuration information
of all historical record control entries. Otherwise, the system displays configuration
information of the historical record control entry with the specified ID.
Example
Related Commands
rmon history
Function
The show rmon history statistics command shows statistics on a RMON historical
record control entry.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to view the statistics on the RMON historical record control
entry.
Example
Collisions:0
S6800#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to view log information of a RMON event, including the
event ID, log ID, log recording time, and log description.
Example
RMON Log:1/40
Time:0 days 1 hours 35 minutes 27 seconds
Description:alarm rising 1,1.3.6.1.2.1.2.2.1.8.2,1,2,1
RMON Log:1/41
Time:0 days 1 hours 35 minutes 29 seconds
Description:alarm rising 1,1.3.6.1.2.1.2.2.1.8.2,1,2,1
RMON Log:1/42
Time:0 days 1 hours 35 minutes 31 seconds
Description:alarm rising 1,1.3.6.1.2.1.2.2.1.8.2,1,2,1
RMON Log:1/43
Time:0 days 1 hours 35 minutes 33 seconds
Description:alarm rising 1,1.3.6.1.2.1.2.2.1.8.2,1,2,1
RMON Log:1/44
Time:0 days 1 hours 35 minutes 35 seconds
Description:alarm rising 1,1.3.6.1.2.1.2.2.1.8.2,1,2,1
RMON Log:1/45
Time:0 days 1 hours 35 minutes 37 seconds
Description:alarm rising 1,1.3.6.1.2.1.2.2.1.8.2,1,2,1
RMON Log:1/46
Time:0 days 1 hours 35 minutes 39 seconds
Description:alarm rising 1,1.3.6.1.2.1.2.2.1.8.2,1,2,1
RMON Log:1/47
Time:0 days 1 hours 35 minutes 41 seconds
Description:alarm rising 1,1.3.6.1.2.1.2.2.1.8.2,1,2,1
S6800#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet and trunk), interface group configuration view
Usage Guidelines
You can use this command to view RMON statistics report, including the data source,
Rx packets, all packets, and error packets.
Example
S6800#
Related Commands
rmon statistics
Format
debug smtp
no debug smtp
Parameters
None
Default Value
View
Usage Guidelines
You can use this command to maintain and debug SMTP functions of the switch.
Example
S6800#debug smtp
S6800#
S6800#
Related Commands
None
Function
The show smtp config command displays the SMTP configuration on the switch.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
Function
The show smtp mailbox command displays the SMTP mailbox information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
Function
The show smtp mailto command displays the SMTP mailto information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
Function
The smtp mailbox command configures an SMTP mail server. (This command
applies to IPv4 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
After you use this command and configure the log function, log records can be sent to
the SMTP mail server to facilitate relevant information query.
Example
Related Commands
Function
The smtp6 mailbox command configures an SMTP mail server. (This command
applies to IPv6 networks.)
Format
Parameters
Default Value
None
View
Usage Guidelines
After you use this command and configure the log function, log records can be sent to
the SMTP mail server to facilitate relevant information query.
Example
Related Commands
Function
The smtp mailto mailbox command configures an SMTP email address for sending
or receiving emails.
The no smtp mailto mailbox command deletes an SMTP email address for sending
or receiving emails.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
Function
Format
debug snmp
no debug snmp
Parameters
None
Default Value
None
View
Usage Guidelines
Example
S6800#debug snmp
S6800#
Related Commands
None
Function
The show snmp agent command displays the SNMP agent information on the
switch.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to view SNMP agent information, including the contact
information of the current device node, physical position of the current device node,
interval for reporting trap messages, and whether trap reporting is enabled.
Example
SNMP agent:
location is WuHan-China
contact is WuHan-Fengine
auth-failure trap is enable
Local EngineID:80000EDF03000469000001
timertrap interval is 30 seconds
timertrap is disable
snmp trap-log priority is 5
snmp trap-log action is history
S6800#
Related Commands
None
Function
The show snmp community command displays the SNMP community configuration.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to view SNMP community configuration information,
including the community name, access permissions, and state.
Example
Related Commands
None
The show snmp config command displays the SNMP configuration information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to view SNMP configuration information in the
configuration file.
Example
Related Commands
None
The show snmp group command displays the SNMP group information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to view SNMP group information, including the group
name, readable view, and writable view.
Example
Related Commands
snmp group
Function
The show snmp statistic command displays statistics on SNMP packet processing.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to analyze packet statistics and obtain information about
communication between the switch and the NMS, facilitating fault identification.
Example
snmpInTotalSetVars : 0
snmpInGetRequests : 0
snmpInGetNexts : 120741
snmpInSetRequests : 0
snmpInGetResponses : 0
snmpInTraps : 0
snmpOutPkts : 120766
snmpOutTooBigs : 0
snmpOutNoSuchNames : 0
snmpOutBadValues : 0
snmpOutReadOnlys : 0
snmpOutGenErrs : 11
snmpOutGetRequests : 0
snmpOutGetNexts : 0
snmpOutSetRequests : 0
snmpOutGetResponses : 120744
snmpOutTraps : 0
snmpUnknownSecurityModels : 0
snmpInvalidMsgs : 0
snmpUnknownPDUHandlers : 0
snmpUnavailableContexts : 0
snmpUnknownContexts : 0
usmStatsUnsupportedSecLevels : 0
usmStatsNotInTimeWindows : 16
usmStatsUnknownUserNames : 0
usmStatsUnknownEngineIDs : 5
usmStatsWrongDigests : 1
usmStatsDecryptionErrors : 0
S6800#
Related Commands
None
Function
The show snmp trap-server command displays the host that receives trap
messages and its version and type.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to check the host receiving trap messages and its version.
Output of the command includes the host IP address, port number, version, and
status.
Example
# Display the host that receives trap messages and its version and type.
Related Commands
None
Function
The show snmp user command displays the SNMP user information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
You can use this command to view SNMP user information, including the user name,
group name, and authentication status.
Example
Related Commands
snmp user
Function
The show snmp view command displays the SNMP view information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The snmp auth-trap command enables or disables the authentication trap function.
Format
Parameters
Default Value
View
Usage Guidelines
After the authentication trap function is enabled, the switch sends a trap message if
authentication fails.
Example
Related Commands
Function
The snmp bulk max-varbind command configures the maximum number of variable
bindings in an SNMP Get Bulk request.
Format
Parameters
Default Value
512
View
Usage Guidelines
Example
# Configure the maximum number of variable bindings in an SNMP Get Bulk request.
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
To remotely manage the switch using an SNMP NMS, you must set a community
name. You can access the MIB information on the device only after the community
name passes the verification. If view-name is not specified, the system starts the
access from the Internet node by default.
Example
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure the SNMP contact information, so that users
can easily contact the device supplier.
Example
Related Commands
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure the number of continuous SNMP login failures.
If the number of login failures reaches the specified value, the switch enters the
silence period. Within this period, you cannot log in to the switch using SNMP, until the
silence period ends.
Example
S6800(config)#snmp fail-count 6
S6800(config)#
Related Commands
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure the SNMP group information, including the
group name and name of the read, write, or notification view. Different SNMP users in
the group are mapped to different views, so that these SNMP users are assigned with
different access permissions.
Example
# Set the SNMP group name to 1, read-only view name to sun333, write-only view
name to sun333, and notification view to sun333.
Related Commands
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure the current location information of the device.
Example
Related Commands
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
You can configure the number of continuous SNMP login failures. If the number of
login failures reaches the specified value, the switch enters the silence period. Within
this period, you cannot log in to the switch using SNMP, until the silence period ends.
Example
S6800(config)#snmp reauth-interval 10
S6800(config)#
Related Commands
snmp fail-count
Function
The snmp rw-community command enables or disables the function of writing the
SNMP community name.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The snmp source-input command configures the input IP address as the source IP
address of a packet.
Format
Parameters
Default Value
Disable
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The snmp timertrap interval command configures the interval for sending scheduled
alarms.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The snmp trap-log action command configures the SNMP alarm logging.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The snmp trap-log priority command configures the priority for SNMP trap logs.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The snmp trap-server command specifies the address for receiving SNMP trap
messages.
The no snmp trap-server command deletes the address for receiving SNMP trap
messages.
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure the IP address of the host that receives trap
messages, so that you can manage faults of the switch remotely.
Example
# Configure the switch to send trap messages to the host with IP address 10.5.6.8 and
running SNMP version v2.
Related Commands
None
Function
The snmp6 trap-server command specifies the address for receiving the SNMP trap
message.
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure the IP address of the host that receives trap
messages, so that you can manage faults of the switch remotely.
Example
# Set the IP address of the receiver that receives the trap message to 2001::1 and
version to v2.
Related Commands
None
Function
The snmp trap-source command configures the source IP address for sending
SNMP trap messages.
Format
no snmp trap-source
Parameters
Default Value
None
View
Usage Guidelines
You can specifies the source IP address for sending SNMP trap messages according
to actual requirements. This IP address must be an IP address existing on the device.
Once an IP address is designated, the source IP address in all alarm messages is the
designated IP address. If the source IP address is not specified, alarms are reported
with the actual IP address. For example, an interface of an L3 device may have
multiple VLAN interface IP addresses. When the physical port generates a link up or
link down alarm, there may be multiple source IP addresses in the alarm. You can use
this command to designate a source IP address in the alarm messages.
Example
S6800(config)#
Related Commands
None
Function
Format
snmp user user-name group group-name auth { md5 | sha } authkey priv
no-priv
snmp user user-name group group-name auth { md5 | sha } authkey priv des
privkey
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure the SNMP user information, including the user
name, group, authentication mode and encryption mode (authentication and
encryption, authentication but no encryption, and no authentication and no
encryption).
Example
# Create user named sun1. Set the group to group 1 and authentication mode to MD5.
Related Commands
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#snmp version v3
S6800(config)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure the SNMP view. It is applicable to SNMPv3.
Specifying the access range of a view can improve the security and controllability.
Example
Related Commands
Function
The debug lldp command enables Link Layer Discovery Protocol (LLDP) debugging.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The lldp faststart-count command sets the number of fast transmitted LLDP MED
packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config)#lldp faststart-count 5
S6800(config)#
Related Commands
None
The lldp notification-interval command sets the global trap transmission interval.
(When traps are generated because of frequent state changes on the switch, the
switch sends a trap only when the interval between two traps is longer than the
configured interval.)
Format
Parameters
Default Value
5s
View
Usage Guidelines
None
Example
S6800(config)#lldp notification-interval 5
S6800(config)#
Related Commands
None
Function
The lldp reinit-delay command sets the delay in re-initiating LLDP interface status.
Format
Parameters
Default Value
2s
View
Usage Guidelines
None
Example
S6800(config)#lldp reinit-delay 5
S6800(config)#
Related Commands
None
Function
The lldp tx-delay command sets the delay in sending LLDP packets.
Format
Parameters
Default Value
2s
View
Usage Guidelines
This command sets the minimum delay before an interface module sends LLDP
packets to the neighbor when the LLDP status of the switch changes frequently.
Example
S6800(config)#lldp tx-delay 5
S6800(config)#
Related Commands
None
The lldp tx-hold command sets the multiplier of LLDP frame transmission interval.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config)#lldp tx-hold 5
S6800(config)#
Related Commands
None
Function
The lldp tx-interval command sets the LLDP frame transmission interval.
Format
Parameters
Default Value
30s
View
Usage Guidelines
None
Example
S6800(config)#lldp tx-interval 10
S6800(config)#
Related Commands
None
Function
The lldp admin-status command enables LLDP and sets its administrative status or
disables LLDP on an interface.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The lldp basic-tlv-tx command sets the basic LLDP type-length-value (TLV) on an
interface.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The lldp dot1-tlv-tx port-vid command enables or disables the port VLAN ID (VID)
field in optional IEEE 802.1 TLVs.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The lldp dot1-tlv-tx vlan-name command enables or disables the VLAN name field
in optional IEEE 802.1 TLVs.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The lldp dot3-tlv-tx command sets TLV information defined in IEEE 802.3.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The lldp med-notification command enables the LLDP MED alarm function on an
interface.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The lldp notification {enable|disable} command enables the LLDP alarm function
on an interface.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The reset lldp counter command resets packet counters on an LLDP interface.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
None
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show lldp config interface command displays the LLDP configuration on a
specified interface.
Format
Parameters
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
S6800(config)#
Related Commands
None
Function
The show lldp interface verbose command displays detailed LLDP interface
information.
Format
Parameters
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The show lldp local command displays local LLDP device information.
Format
Parameters
None
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Med information:
Device class:Network Connectivity Device
Faststart repeat-count:1
Hardware revision:1.0
Firmware revision:0.1
Software revision:V210R230
Serial number: -
Manufacturer name:FiberHome
Model name:LLDP
Asset ID:N/A
POE type:pse
S6800(config)#
Related Commands
None
The show lldp local interface command displays information about a local LLDP
interface.
Format
Parameters
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The show lldp remote command displays information about all neighbors or a
specified neighbor.
Format
Parameters
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
The show lldp remote interface command displays the neighbor information on a
specified interface.
Format
Parameters
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show lldp statistic interface command displays LLDP statistics on an interface.
Format
Parameters
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view (Ethernet), interface group configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The backoff timer command configures the initial value and the maximum value of
the exponential backoff timer.
Format
no backoff timer
Parameters
Default Value
Stop
View
Usage Guidelines
When failing to process the LDP session initialization message or receiving a rejection
notification from the peer for the LSR session initialization message, the session
initiator starts the exponential back-off timer and periodically attempts to re-establish
the session.
After the exponential back-off timer is started, the time that the session initiator waits
to attempt to re-establish the session for the first time is the initial value of the
exponential back-off timer, and the subsequent wait time is twice the previous wait
time until the wait time reaches the maximum value of the exponential back-off timer.
Then the subsequent wait time is equal to the maximum value of the exponential
back-off timer.
You can use this command to adjust the interval at which the session initiator attempts
to re-establish the session.
In different network environments, you can set different initial values and maximum
values to flexibly control the re-establishment of a session.
During device upgrade, the interval at which the session initiator attempts to
establish a session must be extended. In this case, you can use this command to
increase the initial value and maximum value of the exponential backoff timer.
When services running on the device are prone to intermittent disconnection, the
interval at which the session initiator attempts to establish a session must be
shortened. In this case, you can use this command to decrease the initial value
and maximum value of the exponential backoff timer.
Example
Related Commands
None
Function
Format
debug mpls { nm | static-lsp | bfd | ldp | l3vpn | l2vpn | hardware | rsvp | err |
search | tp | pkt-in | pkt-out | kernelio | all }
Parameters
None
Default Value
View
Usage Guidelines
You can use this command to view the MPLS process and packet sending and
receiving situations. This command is used to maintain and debug the MPLS function
of the switch.
Example
Related Commands
None
Function
Format
debug ldp { hello | packet | tcpudp | fec | fsm | gr | sync | error | rtm | check |
fib | nbrchange | l2vpn | keepalive | global | event | all }
no debug mpls { hello | packet | tcpudp | fec | fsm | gr | sync | error | rtm |
check | fib | nbrchange | l2vpn | keepalive | global | event | all }
Parameters
None
Default Value
View
Usage Guidelines
You can use this command to view the MPLS LDP process and packet sending and
receiving situations. This command is used to maintain and debug the MPLS LDP
function of the switch.
Example
Related Commands
None
Function
The debug mpls pkt-out-detail command enables or disables debugging for the
details about sent MPLS packets.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
The debug ldp fec-prefix dst-ip command enables debugging for LDP FEC prefixes.
The no debug ldp fec-prefix command disables debugging for LDP FEC prefixes.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
12.2.6 du-readvertise
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-mpls-ldp)#du-readvertise disable
S6800(config-mpls-ldp)#
Related Commands
None
Function
Format
mpls start
mpls stop
Parameters
Default Value
Stop
View
Usage Guidelines
Before using this command run the mpls lsr-id command to the LSR ID identifying the
distribution router.
Example
S6800(config)#mpls start
S6800(config)#
Related Commands
None
Function
Format
mpls enable
mpls disable
Parameters
Default Value
Disable
View
Usage Guidelines
Before using this command, run the mpls lsr-id and mpls start commands.
Example
Related Commands
mpls lsr-id
Function
The mpls label advertise command configures the penultimate hop popping (PHP)
label for an egress node.
Format
Parameters
Default Value
By default, PHP is supported, and the egress node distributes an implicit null label
(implicit-null) to the penultimate hop.
View
Usage Guidelines
Note:
The label is selected depending on whether the penultimate hop supports PHP.
After a session is established, run the gstm peer valid-ttl-hops command to restart
an LDP session.
Example
# Restore the PHP label for an egress node to the default value.
Related Commands
None
The mpls ldp command globally enables LDP and switches to the MPLS LDP
configuration view from the global configuration view.
The no mpls ldp command globally disables LDP and deletes all LDP runtime
instances.
Format
mpls ldp
no mpls ldp
Parameters
None
Default Value
None
View
Usage Guidelines
Before using this command, run the mpls lsr-id and mpls start commands.
Example
# Globally enable LDP and switch to the MPLS LDP configuration view from the global
configuration view.
S6800(config)#mpls ldp
S6800(config-mpls-ldp)#
Related Commands
mpls lsr-id
Function
Format
Parameters
Default Value
Disable
View
Usage Guidelines
Before using this command, run the ip address command to configure the IP address
of the VLANIF interface.
Before using this command, run the mpls lsr-id and mpls start commands.
If the interface is bound to a VPN instance, run the mpls ldp vpn-instance command to
enable LDP on the VPN and then enable LDP on the interface.
Example
S6800(config)#interface vlan 10
S6800(config-vlan-10)#ip address 1.1.2.2/24
S6800(config-vlan-10)#mpls ldp enable
S6800(config-vlan-10)#
Related Commands
Function
The mpls ldp hello-hold command configures the value of the hello-hold timer.
Format
Parameters
Default Value
The default value of the hello-hold timer is 15s for link neighbors and 45s for target
neighbors.
View
Usage Guidelines
The link hello-hold timer is used to maintain the adjacency of a local LDP session, and
the target hello-hold timer is used to maintain the adjacency of a remote LDP session.
Example
Related Commands
None
Function
The mpls ldp hello-send command configures the value of the hello-send timer.
Format
Parameters
Default Value
By default, the value of the hello-send timer is 1/3 that of the hello-hold timer.
View
Usage Guidelines
Link hello-send timer: Controls the interval for sending Hello messages to local
neighbors. You can use this command to set the timer.
Target hello-send timer: Controls the interval for sending Hello messages to
remote peers. You can use the hello-send command to set the timer.
Example
Related Commands
hello-send
Function
The mpls ldp keepalive-hold command configures value of the keepalive-hold timer.
Format
Parameters
Default Value
The default value of the keepalive-hold timer is 15s for link sessions and 45s for target
sessions.
View
Usage Guidelines
You can use this command to configure the local session keepalive-hold timer. The
remote session keepalive-hold timer is configured in the MPLS remote-peer
configuration view.
Example
Related Commands
Function
The remote-ip bfd {enable|disable} command configures LDP BFD monitoring for a
peer.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-mplsldp-remote1)#remote-id 1.1.1.2
S6800(config-mpls-remote1)#remote-ip bfd enable
S6800(config-mpls-remote1)#
Related Commands
None
keepalive-hold, keepalive-hold
Function
The mpls ldp keepalive-send command configures the value of the keepalive-send
timer.
Format
Parameters
Default Value
By default, the value of the keepalive-send timer is 1/3 that of the keepalive-hold
timer.
View
Usage Guidelines
Keepalive-send timer for local LDP sessions: Controls the interval for sending
keepalive messages to the session peer. You can use this command to set the
timer.
Keepalive-send timer for remote LDP sessions: Controls the interval for sending
keepalive messages to the session peer. You can use the keepalive-send
command to set the timer.
Example
Related Commands
keepalive-send
Function
The mpls ldp remote-peer command switches from the global configuration view to
the MPLS LDP remote-peer configuration view.
The no mpls ldp remote-peer command deletes the MPLS LDP remote-peer
configuration.
Format
Parameters
Default Value
None
View
Usage Guidelines
Before using this command, run the mpls lsr-id, mpls start, and mpls ldp commands.
Example
Related Commands
mpls lsr-id
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to configure the transport address for link Hello packets in
the VLANIF configuration view, to establish a TCP connection with the peer. Therefore,
the peer requires a route to this transport address. Generally, the LSR ID (loopback
interface address) is used as the transport address.
It is generally recommended that you configure the same transport address on the
interfaces at the same end of a session. Otherwise, when multiple links are available
between two LSRs, the LDP session can only be established on one link.
Example
Related Commands
None
Function
The mpls ldp vpn-instance command enables MPLS LDP VPN and displays the
MPLS LDP configuration view.
Format
Parameters
Default Value
None
View
Usage Guidelines
Before using this command, set the LSR ID of the label distribution router and then
run the mpls start command to globally enable MPLS.
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The mpls snmp-trap {enable|disable} command enables or disables MPLS traps for
all or specified types of events.
Format
Parameters
Default Value
Disable
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
By default, the trap suppression interval is 300s, and the maximum number of traps
allowed within the suppression time is 3.
View
Usage Guidelines
To prevent output of massive traps due to frequent changes of the LSP status, you
can use this command to set the suppression interval for LSP massive traps. Within
each suppression interval, the traps of the specified type are output only once,
reducing the number of output traps.
For example, if the suppression interval for LSP-down traps is 60s, an LSP-down trap
is output every 60s, and other traps of the same type are not output. Instead, the
number of traps of the same type within 60s is logged. A new LSP-down trap can be
output only at the next suppression interval.
Example
# Set the suppression interval for the specified type of MPLS traps.
Related Commands
None
12.2.22 remote-id
Function
Format
remote-id ip-address
no remote-id
Parameters
Default Value
None
View
Usage Guidelines
The IP address of an LDP peer must be set to its ISR ID, and is generally a loopback
address.
Function
The remote-ip bfd {enable|disable} command configures LDP BFD monitoring for a
peer.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-mplsldp-remote1)#remote-id 1.1.1.2
S6800(config-mpls-remote1)#remote-ip bfd enable
S6800(config-mpls-remote1)#
Related Commands
None
Example
S6800(config-mpls-remote2)#remote-id 127.1.1.1
S6800(config-mpls-remote2)#
Related Commands
None
The remote-ip bfd {enable|disable} command configures LDP BFD monitoring for a
peer.
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-mplsldp-remote1)#remote-id 1.1.1.2
S6800(config-mpls-remote1)#remote-ip bfd enable
S6800(config-mpls-remote1)#
Related Commands
None
12.2.24 keepalive-hold
Function
The keepalive-hold command configures the value of the keepalive-hold timer for an
LDP session between peers.
Format
Parameters
Default Value
The default value of the keepalive-hold timer is 15s for link sessions and 45s for target
sessions.
View
Usage Guidelines
None
Example
# Set the value of the keepalive-hold timer for an LDP session between peers to 29s.
S6800(config-mplsldp-remote1)#remote-id 1.1.1.2
S6800(config-mpls-remote1)#keepalive-hold 29
S6800(config-mpls-remote1)#
Related Commands
None
12.2.25 keepalive-send
Function
Format
keepalive-send keepalive-send
no keepalive-send
Parameters
Default Value
By default, the value of the keepalive-send timer is 1/3 that of the keepalive-hold
timer.
View
Usage Guidelines
Keepalive-send timer for local LDP sessions: Controls the interval for sending
keepalive messages to the session peer. You can use the mpls ldp
keepalive-send command to set the timer.
Keepalive-send timer for remote LDP sessions: Controls the interval for sending
keepalive messages to the session peer. You can use this command to set the
timer.
Before using this command, run the remote-id command to set the IP address of a
LDP peer.
Example
Related Commands
12.2.26 hello-hold
Function
The hello-hold command configures the value of the hello-hold timer for a LDP peer.
Format
Parameters
Default Value
15
View
Usage Guidelines
The link hello-hold timer is used to maintain the adjacency of a local LDP session, and
the target hello-hold timer is used to maintain the adjacency of a remote LDP session.
Example
S6800(config-mplsldp-remote1)#remote-id 1.1.1.2
S6800(config-mplsldp-remote1)#hello-hold 10
S6800(config-mplsldp-remote1)#
Related Commands
None
12.2.27 hello-send
Function
Format
hello-send hello-send
no hello-send
Parameters
Default Value
By default, the value of the hello-send timer is 1/3 that of the hello-hold timer.
View
Usage Guidelines
Link hello-send timer: Controls the interval for sending Hello messages to local
neighbors. You can use the mpls ldp hello-send command to set the timer.
Target hello-send timer: Controls the interval for sending Hello messages to
remote peers. You can use this command to set the timer.
Before using this command, run the remote-id command to set the IP address of a
LDP peer.
Example
Related Commands
12.2.28 lsp-trigger
Function
Format
Parameters
Default Value
View
Usage Guidelines
This command is available only for the ingress LSP and egress LSP on the public
network and the ingress LSP on the private network. To configure a transit LSP trigger
policy, you can run the propagate mapping route-policy command.
This command and the lsp-trigger bgp-label-route command are used to configure
a policy for triggering LDP LSP establishment. The former is applicable to static and
IGP routes, and the latter is only applicable to labeled public network BGP routes.
Note:
During LDP GR, the operation of modifying the LSP trigger policy is unavailable.
Example
S6800(config-mpls-ldp)#lsp-trigger none
S6800(config-mpls-ldp)#
Related Commands
lsp-trigger bgp-label-route
Function
Format
no lsp-trigger bgp-label-route
Parameters
Default Value
By default, LDP does not distribute labels to labeled public network BGP routes.
View
Usage Guidelines
This command and the lsp-trigger command are used to configure a policy for
triggering LDP LSP establishment. The former is applicable to static and IGP routes,
and the latter is only applicable to labeled public network BGP routes.
Note:
During LDP GR, the operation of modifying the LSP trigger policy is unavailable.
Example
# Enable labeled public network BGP routes to trigger LDP to establish an LSP.
S6800(config-mpls-ldp)#lsp-trigger bgp-label-route
S6800(config-mpls-ldp)#
Related Commands
lsp-trigger
Function
The lsp-trigger route-policy command enables the routes meeting the routing policy
to trigger LSP establishment.
Format
Parameters
Default Value
None
View
Usage Guidelines
This command enables non-BGP static and IGP routes meeting the routing policy to
trigger LSP establishment.
Example
# Enable the routes meeting the routing policy to trigger LSP establishment.
S6800(config-mpls-ldp)#lsp-trigger route-policy 1
S6800(config-mpls-ldp)#
Related Commands
None
12.2.31 lsr-id
Function
Format
lsr-id lsr-id
Parameters
Default Value
View
Usage Guidelines
Modification of the LDP LSR ID causes session re-establishment for all LDP
instances.
Example
S6800(config-mpls-ldp)#lsr-id 1.1.1.1
S6800(config-mpls-ldp)#
Related Commands
Function
Format
loop-detect enable
loop-detect disable
Parameters
Default Value
View
Usage Guidelines
Loopback detection is available only when it is configured or supported for the entire
MPLS domain.
Example
S6800(config-mpls-ldp)#loop-detect enable
S6800(config-mpls-ldp)#
Related Commands
None
12.2.33 hops-count
Function
The no hops-count command restores the maximum hops count to the default value
32.
Format
hops-count hops-count-value
no hops-count
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-mpls-ldp)#hops-count 18
S6800(config-mpls-ldp)#
Related Commands
None
12.2.34 path-vectors
Function
The no path-vectors command restores the maximum number of vector paths to the
default value 32.
Format
path-vectors value
no path-vectors
Parameters
Default Value
View
Usage Guidelines
None
Example
S6800(config-mpls-ldp)#path-vectors 20
S6800(config-mpls-ldp)#
Related Commands
None
The propagate mapping route-policy command filters the routes received by LDP
by using a routing policy. LDP uses only the routes meeting the specified routing
policy to create a transit LSP.
Format
Parameters
Default Value
By default, LDP does not filter the received routes when creating a transit LSP.
View
Usage Guidelines
During LDP GR, the operation of modifying the transit LSP establishment policy is
unavailable.
Example
# Use only the routes filtered by using a routing policy to create a transit LSP.
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
12.2.37 graceful-restart
Function
Format
graceful-restart
no graceful-restart
Parameters
None
Default Value
View
Usage Guidelines
You can use this command to enable LDP GR, to ensure normal local forwarding
when LDP restarts or a neighbor session is down.
Example
S6800(config-mpls-ldp)#graceful-restart
S6800(config-mpls-ldp)#
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
The gstm peer valid-ttl-hops command configures the GTSM function on a specified
LDP peer.
The no gstm peer command deletes the GTSM function configured on a specified
LDP peer.
Format
Parameters
Default Value
None
View
Usage Guidelines
If the hops value is set to the maximum number of effective hops for GTSM, when the
TTL value of a packet sent by an LDP peer falls within [255 – hops + 1, 255], the
packet is received; otherwise, the packet is discarded .
It is recommended that you configure the GTSM function on both LDP peers.
Example
# Set the valid TTL range for LDP packets sent by a peer with transport address
1.1.1.2 to 254–255 on the LSR.
Related Commands
None
12.2.42 reset
Function
Format
reset
Parameters
None
Default Value
None
View
Usage Guidelines
After configuring LDP, you can run the reset command for the new configuration to
take effect.
Example
# Reset LDP.
S6800(config-mpls-ldp)#reset
S6800(config-mpls-ldp)#
Related Commands
None
12.2.43 md5-password
Function
Format
no md5-password ip-address
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
None
Default Value
By default, no horizontal splitting policy is configured for LDP peers, that is, the LSR
allocates labels to both its upstream and downstream LDP peers.
View
Usage Guidelines
Generally, the LSR allocates labels to both its upstream and downstream LDP peers,
increasing the convergence speed of LDP LSPs. However, massive LSPs are created
if label mapping messages are sent to all peers, occupying excessive resources.
Therefore, to reduce the number of LSPs and save memory space, it is recommended
that you use this command to configure a horizontal splitting policy for LDP peers, that
is, control the LSR to allocate labels only to its upstream LDP peers.
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view
Usage Guidelines
Before you run this command, globally enable MPLS LDP. Otherwise, this command
cannot display any information.
Example
Related Commands
None
Function
The show mpls ldp command displays the LDP and LSR information.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
After configuring some LDP functions, you can use this command to view the LDP
configuration, including the following information:
Item Description
Protocol Version Specifies the LDP version.
Instance Status Specifies the instance status.
Enabled: Indicates that the instance is enabled. Disabled: Indicates
that the instance is disabled.
LSR ID Specifies the LSR ID of an LDP instance.
Loop Detection Specifies the loop detection status.
Hop Count Limit Specifies the hop count limit in loop detection.
Path Vector Limit Specifies the path vector limit in loop detection.
Label Distribution Mode Specifies the label distribution mode for an instance.
Down-Unsolicited: Indicates the downstream unsolicited mode.
Down-on-Demand: Indicates the upstream demand mode.
Label Retention Mode Specifies the label retention mode for an instance. Liberal:
Indicates the liberal mode. Conservative: Indicates the
conservative mode.
Label Control Mode Specifies the label control mode for an instance. Ordered:
Indicates the ordered mode. Independent: Indicates the
independent mode.
PHP Indicates the PHP function. Off: The function is disabled. On: The
function is enabled.
Graceful Restart Indicates the graceful restart (GR) function. Off: The function is
disabled. On: The function is enabled.
GR Neighbor Time Specifies the neighbor-liveness time.
GR Reconnect Time Specifies the neighbor reconnection time.
GR Recovery Time Specifies the neighbor recovery time.
Note:
Before you run this command, globally enable MPLS LDP. Otherwise, this command
cannot display any information.
Example
Related Commands
None
The show mpls ldp adjacency command displays the LDP adjacency information.
Format
Parameters
Default Value
None
View
Common user view, global configuration view, VLANIF configuration view, MPLS
Remote-Peer configuration view, MPLS LDP configuration view, MPLS-LDP-VPN
configuration view
Usage Guidelines
You can use this command to view the LDP adjacency information. that can be
queried using this command.
Item Description
Peer ID Specifies the LSR ID of an LDP peer.
Adjacency Type Specifies the LDP adjacency type. link: Indicates a local neighbor.
targeted: Indicates a remote neighbor.
Hold Time Specifies the hello-hold time.
Hold Time Remain Specifies the remaining hello-hold time.
Example
Related Commands
None
The show mpls ldp adjacency statistic command displays the statistics on the
number of LDP neighbors.
Format
Parameters
None
Default Value
None
View
Common user view, global configuration view, VLANIF configuration view, MPLS
Remote-Peer configuration view, MPLS LDP configuration view, MPLS-LDP-VPN
configuration view
Usage Guidelines
You can use this command to view the statistics on the number of LDP neighbors. that
can be queried using this command.
Item Description
Adjacency Type Specifies the LDP adjacency type.
AdjacencyNumber Specifies the number of LDP neighbors.
Local Specifies the number of local LDP neighbors.
Remote Specifies the number of remote LDP neighbors.
Total Specifies the total number of LDP neighbors.
Example
Related Commands
None
The show mpls ldp binding command displays the LIB information of MPLS LDP.
Format
Parameters
Default Value
None
View
Common user view, global configuration view, VLANIF configuration view, MPLS
Remote-Peer configuration view, MPLS LDP configuration view, MPLS-LDP-VPN
configuration view
Usage Guidelines
None
Example
Related Commands
None
The show mpls ldp configuration command displays the LDP configuration.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
You can use this command to view LDP entity information. that can be queried using
this command.
Item Description
mpls ldp lsr-id Specifies the LSR ID of an LDP instance.
mpls ldp Indicates whether to enable LDP.
mpls ldp route-policy Specifies a bound routing policy.
mpls ldp remote-peer Specifies an LDP peer node.
remote-id Specifies the IP address of an LDP peer.
keepalive-hold Specifies the local value of the remote session keepalive-hold
time.
hello-hold Specifies the local value of the hello-hold time for remote
neighbor discovery.
Example
Related Commands
None
Function
The show mpls ldp interface command displays the configuration of an interface
with LDP enabled.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
You can use this command to view the configuration of an interface with LDP enabled.
that can be queried using this command.
Item Description
Interface Specifies the name of an interface with LDP enabled.
Status Specifies the status of an entity. enable: Indicates the active state.
Item Description
disable: Indicates the inactive state.
Hello-hold Specifies the value of the hello-hold timer for LDP sessions on an
interface.
Keepalive-hold Specifies the value of the keepalive-hold timer for LDP sessions on
an interface.
Transport Addr Type Specifies the IP address type of a TCP session connection.
Transport Addr Specifies the IP address a TCP session connection.
Example
Related Commands
None
Function
The show mpls ldp l2vpn command displays the information about an L2VPN
created by using LDP.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show mpls ldp logging command displays MPLS LDP logs.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
None
Example
Related Commands
None
The show mpls ldp lsp command displays the information about the LSP created by
using LDP.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
You can use this command to display the information about the LSP created by using
LDP. that can be queried using this command.
Item Description
Route Specifies the LSP destination address.
Prefix-len Specifies the mask length of the LSP destination address.
Interface Specifies the name of an outbound interface.
In-Label/Out-Label Specifies the in-label or out-label value.
Example
Related Commands
None
The show mpls ldp lsp statistic command displays LDP LSP statistics.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show mpls ldp peer command displays the configuration of local peers.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
You can use this command to view LDP entity information. that can be queried using
this command.
Item Description
Peer ID Specifies an LDP ID, in the format of <LSR ID>: <label control>.
The label control can be set to the following value:
0: Indicates the global label space.
Non-0: Indicates the interface label space.
Transport Address Specifies the transport address of an LDP peer for creating a
TCP connection.
Label Distribution Mode Specifies the label distribution mode for an instance.
Down-Unsolicited: Indicates the downstream unsolicited mode.
Down-on-Demand: Indicates the upstream demand mode.
Path Vector Limit Specifies a path vector limit.
Note:
Before you run this command, globally enable MPLS LDP. Otherwise, this command
cannot display any information.
Example
Related Commands
None
Function
The show mpls ldp peer statistic command displays the statistics on the number of
LDP peers.
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
You can use this command to count the number of local LDP peers, remote LDP
peers, and local/remote LDP peers.
The command displays the statistics on the number of LDP peers. that can be queried
using this command.
Item Description
PeerType Specifies a peer type, for example, Local, Remote, or Total.
PeerNumber Specifies the number of peers.
Local Specifies the number of local LDP peers.
Item Description
Remote Specifies the number of remote LDP peers.
Total Specifies the total number of all LDP peers.
Note:
Before you run this command, globally enable MPLS LDP. Otherwise, this command
cannot display any information.
Example
Related Commands
None
The show mpls ldp remote-peer command displays the information about LDP
peers.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
You can use this command to display the information about LDP peers. that can be
queried using this command.
Item Description
Protocol Version Specifies the LDP version.
Remote-peer ID Specifies the IP address of an LDP peer.
LSR ID Specifies the LSR ID of an LDP instance.
Loop Detection Specifies the loop detection status.
Hop Count Limit Specifies the hop count limit in loop detection.
Path Vector Limit Specifies a path vector limit.
Label Distribution Mode Specifies the label distribution mode for an instance.
Down-Unsolicited: Indicates the downstream unsolicited mode.
Down-on-Demand: Indicates the upstream demand mode.
Label Retention Mode Specifies the label retention mode for an instance. Liberal:
Indicates the liberal mode. Conservative: Indicates the
conservative mode.
Max PDU Length Specifies the maximum PDU length.
Label Type Specifies a label type.
Target Addr Type Specifies a remote IP address type (IPv4 or IPv6).
Target Addr Specifies a remote IP address.
Example
S6800(config)#
Related Commands
None
The show mpls ldp session command displays the information about sessions
between LDP peers.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
You can use this command to display the information about sessions between LDP
peers, to learn the establishment status of LDP sessions. including the following
information:
Item Description
Peer ID Specifies an LDP ID, in the format of <LSR ID>: <label control>.
The label control can be set to the following value:
0: Indicates the global label space.
Non-0: Indicates the interface label space.
Protocol Version Specifies the LDP version.
Status Specifies an LDP session state.
operational: Indicates that the LDP session is established and an
operation can be performed.
initialized: Indicates that the LDP session is being initialized.
Role Specifies a role in the comparison of transport addresses.
active: Indicates one with the larger transport address.
passive: Indicates one with the smaller transport address.
Max PDU Length Specifies the maximum PDU length.
Keepalive-hold Specifies the value of the keepalive-hold timer.
Keepalive remain Specifies the keepalive remaining time. 0 indicates that the time arrives.
Last Change Time Specifies the last time when the state changes.
Discovery Time Specifies the session establishment time when the session state is
operational, and the session down time when the session state is
nonexistent.
Note:
Before you run this command, globally enable MPLS LDP. Otherwise, this command
cannot display any information.
Example
Related Commands
None
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
Note:
Before you run this command, globally enable MPLS LDP. Otherwise, this command
cannot display any information.
Example
Packet Statistic:
TCP Out Error:0, Out Part:0, Last Errno:0
UDP Out Error:0, Last errno:0
Syn Out Error:0, In Reduplicate:0
Error Direct Route: 0
S6800#
Related Commands
None
Function
The show mpls ldp vpn-instance command displays the information about MPLS
LDP VPN instances.
Format
Parameters
Default Value
None
View
Common user view, global configuration view, privileged user view, VLANIF
configuration view, MPLS Remote-Peer configuration view, MPLS LDP configuration
view, MPLS-LDP-VPN configuration view
Usage Guidelines
None
Example
Related Commands
None
The show mpls resource command displays the information about MPLS resources.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show mpls tunnel forward command displays the information about MPLS
tunnel forwarding.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
Default Value
View
Usage Guidelines
When configuring the VPLS function, you can use this command to set the
encapsulation type for an interface.
Before using this command, run the pwsignal and vsi commands.
Example
# Set the encapsulation type for the current VSI instance to Ethernet.
S6800(config-vsi-fhn)#encapsulation ethernet
S6800(config-vsi-fhn)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
Before using other L2VPN commands, you must run this command to enable L2VPN.
Example
# Enable L2VPN.
Related Commands
None
13.2.4 mtu
Function
Format
Parameters
Default Value
1500
View
Usage Guidelines
If the MTUs of the same VSI instance on two PEs are different, the PEs cannot
exchange reachability information or establish a connection. In this case, you can use
this command to adjust the MTUs so that the MTUs of the VSI instance created for the
same VPLS on different PEs are the same.
Before using this command, run the pwsignal and vsi commands.
Example
Related Commands
None
The site range default-offset command configures the site ID of a VSI instance.
Format
Parameters
Default Value
None
View
Usage Guidelines
When configuring Kompella VPLS, you can run this command to configure the site
connection after configuring the VSI RD.
Site IDs of the same VSI instance on different PEs must be different. The local site ID
must be smaller than the sum of site-range and default-offset at the peer end, but
must be greater than or equal to default-offset at the peer end.
A device uses one label block when allocating labels to all Kompella L2 VPN
instances and VPLS VSI instances. Therefore, the sum of the ranges for these
instances cannot exceed the size of the label block. Otherwise, the system prompts
that the number of allocated labels exceeds the maximum value and no label can be
obtained. This results in failure to allocate a site ID to a VSI instance or create a CE.
Before using this command, run the vsi, pwsignal bgp, and route-distinguisher
commands.
Example
# Set the site ID of the current VSI instance to 1 and the number of available sites to
100.
S6800(config-vsi-fhn-bgp)#route-distinguisher 10.1.1.1
S6800(config-vsi-fhn-bgp)#site 1 range 100 default-offset default
Related Commands
None
Function
The vsi vsi-name command creates a VSI instance or displays the VSI configuration
view.
Format
vsi vsi-name
no vis vsi-name
Parameters
Default Value
None
View
Usage Guidelines
When you create a VSI instance for the first time, specify the member discovery
method for the instance. After creating the VSI instance, run the pwsignal command to
set the signaling method after creating a VSI instance. Configure LDP for static
member discovery and BGP for automatic member discovery. The member discovery
method generally cannot be modified. To modify it, you need to delete the instance,
create a new one, and then specify the member discovery method again.
If the corresponding VSI instance already exists, you can use this command to enter
the VSI configuration view.
Example
# Create VSI instance fhn and configure automatic member discovery for the
instance.
Related Commands
None
13.2.7 pwsignal
Function
The pwsignal command configures the signaling method for a VSI instance and
displays the VSI-BGP or VSI-LDP configuration view.
Format
Parameters
Default Value
None
View
Usage Guidelines
After you create a VSI instance, it is recommended that you configure the signaling
method for the instance first.
If static member discovery is configured for the VSI instance, the signaling method
must be LDP. If automatic member discovery is configured for the VSI instance, the
signaling method must be BGP.
The signaling method generally cannot be modified. To modify it, you need to delete
the VSI instance and create a new one.
Example
S6800(config-vsi-fhn)#pwsignal bgp
S6800(config-vsi-fhn-bgp)#
Related Commands
None
13.2.8 vsi-id
Function
Format
vsi-id vsi-id
Parameters
Default Value
None
View
Usage Guidelines
The VSI instance ID cannot be modified. Each VSI instance must have a unique ID.
Example
S6800(config-vsi-fhn-ldp)#vsi-id 10000
S6800(config-vsi-fhn-ldp)#
Related Commands
None
13.2.9 peer
Function
Format
peer peer-address
no peer peer-address
Parameters
Default Value
View
Usage Guidelines
Before you configure a peer for a VSI instance, set the VSI instance ID.
Example
S6800(config-vsi-fhn-ldp)#peer 10.12.13.5
S6800(config-vsi-fhn-ldp)#
Related Commands
vsi-id, peer pw
13.2.10 peer pw
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
You can use this command to create the PW name of a peer IP address after running
the peer command to specify the peer IP address.
Example
Related Commands
peer
Function
The l2 binding vsi command binds the current interface to a VSI instance.
Format
Parameters
Default Value
View
Usage Guidelines
If an IP address has been configured for an interface, the interface cannot be bound to
any VSI instance. If an interface has been bound to a VSI instance, no IP address can
be configured for the interface.
Example
S6800(config-ge1/0/1)#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show vsi command displays the information about all VPN instances or a
specified VPN instance.
Format
show vsi
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view, VSI configuration view, VSI-LDP configuration view
Usage Guidelines
The following table describes fields in the information about all VPN instances.
Item Description
Vsi Name Specifies a VSI name.
Mem Disc Specifies a member discovery method.
PW Type Specifies a PW type.
Mac Learn Specifies a MAC address learning method.
MTU Specifies the MTU.
Vsi ID Specifies a VSI ID.
Example
S6800(config-vsi-fhn-ldp)#show vsi
Vsi Name Mem Disc PW Type Mac Learn MTU Vsi ID
fhn static ldp disable 0 10000
S6800(config-vsi-fhn-ldp)#
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view, VSI configuration view, VSI-LDP configuration view
Usage Guidelines
None
Example
Related Commands
None
13.2.16 show pw
Function
Format
show pw
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view, VSI configuration view, VSI-LDP configuration view
Usage Guidelines
The following table describes fields in the information about a specified VSI instance.
Item Description
Pw index Specifies a PW index.
Peer address Specifies the IP address the peer.
Pw name Specifies the PW name of a peer IP address.
Example
# Display PW information.
S6800(config-vsi-fhn-ldp)#show pw
mplsPwGetNext index=1
mplsPwGetNext next=1
*PwGetNext error1*
Pw index : 1
Peer address: 10.12.13.5
Pw name : fhn1
S6800(config-vsi-fhn-ldp)#
Related Commands
None
Function
The show l2 binding command displays the interface binding information about a
VSI instance.
Format
show l2 binding
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view, VSI configuration view, VSI-LDP configuration view
Usage Guidelines
None
Example
Related Commands
None
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, interface
configuration view, VSI configuration view, VSI-LDP configuration view
Usage Guidelines
If a parameter is specified, the show l2vpn command displays only the information
related to the parameter; otherwise, the show l2vpn command displays all information.
Example
Related Commands
None
Function
The show vpls logging hardware command displays VPLS hardware logs.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
13.3.1 apply-labelper-instance
Function
The apply-label per-instance command enables all BGP routes destined to the peer
PE in the current VPN instance to use the same label.
Format
apply-label per-instance
no apply-label per-instance
Parameters
None
Default Value
By default, the system allocates a label to each route in the VPN instance.
View
Usage Guidelines
Generally, the switch allocates one label per route. When the number of routes is
large, the incoming label map (ILM) entries increase, raising a higher requirement for
switch capacity. To reduce the number if ILM entries, you can use this command to
allocate a label to each VPN instance.
Note:
Exercise caution when using this command because changing the label allocation
mode will trigger route repetition of the VPN instance.
Example
# Enable all routes of VPN1 of the VPN instance to use the same label.
S6800(config)#ip vpn-instance 1
S6800(config-vpn-instance-1)#apply-label per-instance
S6800(config-vpn-instance-1)#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to view the L3VPN process and packet sending and
receiving situations. This command is used to maintain and debug the L3VPN
function of the switch.
Example
Related Commands
None
13.3.3 description
Function
Format
description description-information
no description
Parameters
Default Value
View
Usage Guidelines
If you run the description command multiple times, the last configuration takes effect.
Example
S6800(config-vpn-instance-111)#description fhn
S6800(config-vpn-instance-111)#
Related Commands
None
Function
The ip binding vpn-instance command binds a VPN instance with the VLAN
interface.
The no ip binding vpn-instance command deletes a VPN instance bound with the
VLAN interface.
Format
Parameters
Default Value
By default, the VLAN interface does not bind with any VPN instance.
View
Usage Guidelines
None
Example
Related Commands
None
13.3.5 ip vpn-instance
Function
The ip vpn-instance command creates a VPN instance and displays the VPN
instance configuration view.
Format
ip vpn-instance vpn-instance-name
no ip vpn-instance vpn-instance-name
Parameters
Default Value
View
Usage Guidelines
A VPN instance takes effect only after the route distinguisher (RD) is configured. To
modify the RD, you must delete the corresponding VPN instance and create a VPN
instance again.
Example
Related Commands
route-distinguisher
Function
Format
Parameters
Default Value
View
Usage Guidelines
None
Example
Related Commands
None
13.3.7 route-distinguisher
Function
Format
route-distinguisher rdstring
Parameters
Default Value
None
View
Usage Guidelines
A VPN instance takes effect only after the RD is configured. To modify the RD, you
must delete the corresponding VPN instance and create a VPN instance again.
Example
S6800(config-vpn-instance-111)#route-distinguisher 100:4
S6800(config-vpn-instance-111)#
Related Commands
None
13.3.8 vpn-target
Function
The vpn-target command associates the current VPN instance with one or more VPN
targets.
The no vpn-target command deletes the VPN target associated with the VPN.
Format
no vpn-target
Parameters
Default Value
None
View
Usage Guidelines
Before configuring the VPN target, run the route-distinguisher command to configure
the value of the RD.
Example
Related Commands
route-distinguisher
Format
show ip vpn-instance
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, VPN configuration view, tunnel interface configuration view,
loopback interface configuration view
Usage Guidelines
Item Description
VPN-Instance Name Specifies the name of a VPN instance.
RD Specifies the value of the RD.
Creation Time Specifies the VPN creation time.
Example
S6800(config)#show ip vpn-instance
Total VPN-Instances configured : 2
VPN-Instance Name RD Creation Time
1 2019-02-09 13:44:01
2 2019-02-09 14:17:48
S6800(config)#
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, VPN configuration view, tunnel interface configuration view,
loopback interface configuration view
Usage Guidelines
The following table describes fields in the detailed VPN instance information.
Item Description
VPN-Instance Name Shows the VPN instance name and VPN ID.
Creation Time Shows the VPN creation time.
Route Distinguisher Shows the RD.
Description Shows the VPN instance description.
Apply Label Per Instance Shows the application label of each instance.
VPN Target VPN target
Example
Description: N/A
Apply Label Per Instance: Disable
VPN-Instance Name and ID: 2, 2
Creation Time: 2017-02-09 14:17:48
Route Distinguisher:
Description: N/A
Apply Label Per Instance: This function is enabled.
S6800(config)#
Related Commands
None
Format
Parameters
None
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, VPN configuration view, tunnel interface configuration view,
loopback interface configuration view
Usage Guidelines
None
Example
Related Commands
None
Function
The show ip vpn-instance import-vt command shows the VPN instance with the
specified inbound VPN Target attribute.
Format
Parameters
Default Value
None
View
Common user view, privileged user view, global configuration view, VLANIF
configuration view, VPN configuration view, tunnel interface configuration view,
loopback interface configuration view
Usage Guidelines
IP<X.X.X.X>:NN<0-65535>
AS<0-65535>:NN<0-4294967295>
16-digit automatic system number:32-digit user-defined number, for example, 1:5. The
autonomous system number ranges from 0 to 65535. The user-defined number
ranges from 0 to 4294967295. The autonomous system number and the user-defined
number cannot be 0 simultaneously. That is, the VPN target value cannot be 0:0.
AS<0-65535>. <0-65535>:NN<0-65535>
Example
# Show the VPN instance with the specified inbound VPN Target attribute.
Related Commands
None
Function
The bridge-domain command creates a bridge domain (BD) and displays its
configuration view.
Format
bridge-domain bd-id
no bridge-domain
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#bridge-domain 1
S6800(config-bridge-domain-1)#
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#bridge-domain 1
S6800(config-bridge-domain-1)#interface bridge-domain 1
Related Commands
None
Function
Format
Parameters
Default Value
View
BD configuration view
Usage Guidelines
None
Example
S6800(config)#bridge-domain 1
S6800(config-bridge-domain-1)#vxlan vni 1
Related Commands
None
Function
Format
Parameters
Default Value
None
View
BD configuration view
Usage Guidelines
None
Example
S6800(config-bridge-domain-1)#statistic enable
S6800(config-bridge-domain-1)#
Related Commands
None
Format
unknown-ucast { forward|drop }
Parameters
Default Value
None
View
BD configuration view
Usage Guidelines
None
Example
S6800(config-bridge-domain-1)#unknown-ucast forward
S6800(config-bridge-domain-1)#
Related Commands
None
Format
Parameters
Default Value
View
Usage Guidelines
You can use this command to configure VXLAN tunnel decapsulation on a physical
interface.
Example
S6800(config-xge1/0/1)#decapsulation enable
S6800(config-xge1/0/1)#
Related Commands
None
The interface nve command creates a network virtualization edge (NVE) interface
and displays its configuration view.
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#interface nve 1
S6800(config-nve-1)#
Related Commands
None
The vni ucast-peer command configures the VXLAN network identifier (VNI) and the
peer IP address for a tunnel.
The no vni peer command deletes all tunnels with the specified VNI.
The no vni ucast-peer command deletes the tunnel with the specified VNI and peer
IP address.
The no vni all-peer command deletes all the peers of an NVE interface (with different
VNIs).
Format
no vni all-peer
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#interface nve 1
S6800(config-nve-1)#vni 1 ucast-peer 2.2.2.2
S6800(config-nve-1)#no vni 1 peer
S6800(config-nve-1)#no vni 1 ucast-peer 2.2.2.2
Related Commands
None
14.2.9 ttl
Function
The ttl command sets the TTL packets of IP packets encapsulated in a tunnel.
Format
ttl ttl
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#interface nve 1
S6800(config-nve-1)#ttl 100
Related Commands
None
The tunnel source { vlan|loopback } command configures the primary IPv4 address
of a VLAN or loopback interface as the source IP address of a tunnel.
Format
no tunnel source
Parameters
Default Value
None
View
Usage Guidelines
None
Example
S6800(config)#interface nve 1
S6800(config-nve-1)#tunnel source 1.1.1.1.
Related Commands
None
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show bridge-domain command displays information about all the configured L2
BD interfaces, including the BD interface numbers, bound VNIs, action for unknown
unicast packets, whether statistics collection is enabled.
The show bridge-domain statistic command displays packet statistics on all the
configured L2 BD interfaces, including the numbers of packets and bytes received
and sent on BD interfaces.
Format
show bridge-domain
Parameters
Default Value
None
View
Usage Guidelines
None
Example
# Display BD information.
S6800(config)#show bridge-domain
Interface Vni VAP Ports
bd-1 1 xge-1/0/1.1
Related Commands
None
Function
Format
Parameters
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
The show vxlan resource command displays information about VXLAN resources.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
The show nve peer command displays information about all NVE peers or filtered
information.
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None
Function
Format
Parameters
None
Default Value
None
View
Usage Guidelines
None
Example
Related Commands
None