Enterprise products and services are set forth in the express warranty statements acco mpanying such
products and services. Nothing herein should be construe d as constituting an additional warranty. Hewlett
Packard Enterprise shall not be liable for technical or editorial errors or omissions co ntained herein.
Confidential computer software. V alid license from Hewlett Packard Enterprise required for possession, use, or
copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software
Documentation, and T e chnical Data for Commercial Items are licensed to the U.S. Government under vendor’s
standard commercial license.
Links to third-party websites take you outside the Hewlett Packard Enterprise website. Hewlett Packard
Enterprise has no control over and is not responsible for information outside the Hewlett Packard Enterprise
website.
Acknowledgments
Intel®, Itanium®, Pentium®, Intel Inside®, and the Intel Inside logo are trademarks of Intel Corporation in the
United States and other countries.
Microsoft® and Windows® are trademarks of the Microsoft group of companies.
Adobe® and Acrobat® are trademarks of Adobe Systems In corporated.
Java and Oracle are registered trademarks of Oracle and/or its affiliates.
UNIX® is a registered trademark of The Open Group.
Contents
Active and standby switchover configuration commands ································ 1
Index ··········································································································· 199
iv
Active and standby switchover
configuration commands
The following matrix shows the command and router compatibility:
Command HSR6602 6604/6608/6616
Active and standby
switchover commands
No Yes
display switchover state
Use displayswitchoverstate to display the backup state of the specified MPU.
Syntax
display switchover state [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
slot slot-number: Displays the backup state of a specified card, where slot-number represents the
slot number of a card. If no slot number is specified, the backup state of the active MPU is displayed.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the backup state on the active MPU.
<Sysname> display switchover state
Master HA State to Slot [1]: Realtime backup to slave.
Table 1 Command output
Field Description
Backup state between the active MPU and the standby MPU,
Master HA State to Slot 1
Slave is absent The standby MPU is not in the slot.
Waiting batch backup request from slave Waiting for the batch backup requests from the standby MPU.
Batch backup Batch backup state.
Realtime backup to slave Real-time backup state.
where 1 represents the number of the slot where the standby
MPU resides.
1
Field Description
Data smooth Data smoothing state.
# Display the backup state on the standby MPU in slot 1.
<Sysname> display switchover state slot 1
Slave HA State: Receiving realtime data.
The output indicates that the standby MPU is slot 1 is receiving real-time backup data.
Table 2 Command output
Field Description
Slave HA State
It indicates that the output is generated by the standby MPU and it
describes the backup state of the standby MPU.
Waiting
The standby MPU is in the slot and waiting to enter batch backup
state.
ha slave-ignore-version-check
Use ha slave-ignore-version-check to ignore version check of the standby MPU, meaning not to
check whether the version of the standby MPU is consistent with that of the active MPU.
Use undo ha slave-ignore-version-check to enable version check of the stand by MPU.
Syntax
ha slave-ignore-version-check
undo ha slave-ignore-version-check
Default
Version check of the stand by MPU is enabled.
Views
System view
Default command level
2: System level
Usage guidelines
Inconsistency of the software version of the active MPU and standby MPU might result in system
failure when the system is running.
Examples
# Ignore version check of the standby MPU.
<Sysname> system-view
[Sysname] ha slave-ignore-version-check
slave restart
Use slaverestart to manually restart the standby MPU.
Syntax
slave restart
2
Views
System view
Default command level
2: System level
Examples
# Restart the standby MPU.
<Sysname> system-view
[Sysname] slave restart
The slave will reset! Continue?[Y/N]:y
slave switchover
Use slaveswitchover to manually configure the switchover between the active MPU and standby
MPU.
Syntax
slave switchover
Views
System view
Default command level
2: System level
Examples
# Manually configure the switchover between the active MPU and the standby MPU.
<Sysname> system-view
[Sysname] slave switchover
Caution!!! Confirm to switch slave to master?[Y/N] y
Starting.....
RAM Line....OK
Related commands
slave switchover { disable | enable }
slave switchover { disable | enable }
Use slaveswitchover disable to disable manual switchover function between the active MPU and
standby MPU.
Use slavesw itchover enable to enable manual switchover function between the active MPU and
standby MPU.
Syntax
slave switchover { disable | enable }
Default
Views
Manual configuration of the switchover between the active MPU and standby MPU is enabled.
System view
3
Default command level
2: System level
Parameters
disable: Disables manual switchover between the active MPU and standby MPU.
enable: Enables manual switchover between the active MPU and standby MPU.
Examples
# Enable manual switchover between the active MPU and standby MPU.
The commands in this chapter are supported only when the SAP module is operating in bridge
mode.
display oam
Use display oam to display the information about an Ethernet OAM connection, including
connection status, information contained in Ethernet OAM packet header, and Ethernet OAM packet
statistics.
Syntax
display oam { local | remote } [ interface interface-type interface-number ] [ | { begin | exclude |
include } regular-expression ]
Views
Any view
Default command level
2: System level
Parameters
local: Displays the Ethernet OAM connection information of the local end.
remote: Displays the Ethernet OAM connection information of the remote end.
interface interface-type interface-number: Specifies a port by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify the interface keyword, this command displays the information about all the
Ethernet OAM connections.
Examples
# Display the information about the Ethernet OAM connection established on the local port
GigabitEthernet 3/0/1.
<Sysname> display oam local interface gigabitethernet 3/0/1
Port : GigabitEthernet3/0/1
Link Status : Up
EnableStatus : Enable
Local_oam_mode : Active Local_pdu : ANY
Local_mux_action : FWD Local_par_action : FWD
• Active—The port operates in the active Ethernet OAM mode.
• Passive—The port operates in the passive Ethernet OAM mode.
The way in which the local end processes Ethernet OAMPDUs:
•RX_INFO—The port only receives Information OAMPDUs and does
not send any Ethernet OAMPDUs.
•LF_INFO—The port only sends the Information OAMPDUs without
Information TLV triplets and with their link error flag bits being set.
• INFO—The port sends and receives only Information OAMPDUs.
• ANY—The por t sends and receives Ethernet OAMPDUs of any
type.
Working mode of the local transmitter:
• FWD—The port can send any packets.
• DISCARD—The port only sends Ethernet OAMPDUs.
Working mode of the local receiver:
• FWD—The port can receive any packets.
• DISCARD—The port only receives Ethernet OAMPDUs.
• LB—The local receiver is in loopback state. All the packets other
than Ethernet OAMPDUs received on the local receiver are returned
to their sources along the ways they come.
OAMLocalFlagsField Local flags inserted in the local flag fields of the Ethernet OAMPDUs sent.
Link Fault
Dying Gasp Indicates whether a fatal error is present: 0 for no and 1 for yes.
Critical Event Indicates whether a critical error is present: 0 for no and 1 for yes.
Local Evaluating
Indicates whether an Ethernet OAM link error is present: 0 for no and 1 for
yes.
Indicates whether the local-to-remote configuration negotiation is
complete:
• COMPLETE—The negotiation is completed.
• NOTCOMPLETE—The negotiation is uncompleted.
6
Field Description
Indicates whether the remote-to-local configuration negotiation is
Remote Evaluating
Packets statistic Statistics about Ethernet OAMPDUs sent and received.
OAMPDU Total number of the Ethernet OAMPDUs sent and received.
OAMInformation Number of the Information OAMPDUs sent and received.
OAMEventNotification Number of the Event notification OAMPDUs sent and received.
complete:
• COMPLETE—The negotiation is completed.
• NOTCOMPLETE—The negotiation is uncompleted.
OAMUniqueEventNotification
OAMDuplicateEventNotificatio
n
Number of the unduplicated Event notification OAMPDUs sent or
received uniquely.
Number of the duplicate Event notification OAMPDUs sent or received.
# Display the Ethernet OAM information of the peer port GigabitEthernet 3/0/1.
<Sysname> display oam remote interface gigabitethernet 3/0/1
Port : GigabitEthernet3/0/1
Link Status : Up
Information of the latest received OAM packet:
OAMRemoteMACAddress : 00e0-fd73-6502
OAMRemotePDUConfiguration : 1500
-------------------------------------------------------------------------OAM Mode : Active Unidirectional Support : YES
Loopback Support : YES Link Events : YES
Variable Retrieval : NO
Port Port index.
Link Status Link status.
Information of the latest received
OAM packet
OAMRemoteMACAddress MAC address of the Ethernet OAM peer.
OAMRemotePDUConfiguration Maximum Ethernet OAMPDU size allowed.
Information about the latest received Ethernet OAMPDU.
7
Field Description
OAMRemoteState State of the Ethernet OAM peer.
Remote_mux_action Peer sending mode. For more information, see Table 3.
Remote_par_action Peer receiving mode. For more information, see Table 3.
OAMRemoteConfiguration Configuration of the peer Ethernet OAM entity.
OAM Mode Ethernet OAM mode.
Unidirectional Support Indicates whether unidirectional transmission is supported (YES or NO).
Loopback Support
Link Events
Variable Retrieval Indicates whether MIB variable retrieval is supported (YES or NO).
OAMRemoteFlagsField Values of the peer Ethernet OAM flag fields in OAM packets.
Link Fault Indicates whether a link fault is present: 0 for no and 1 for yes.
Dying Gasp Indicate whether a fatal fault is present: 0 for no and 1 for yes.
Critical Event Indicate whether a critical fault is present: 0 for no and 1 for yes.
Local Evaluating
Remote Evaluating
Related commands
reset oam
Indicates whether Ethernet OAM remote loopback is supported (YES or
NO).
Indicates whether Ethernet OAM link error events are supported (YES
or NO).
Indicates whether the local-to-remote configuration negotiation is
complete:
• COMPLETE—The negotiation is completed.
• NOTCOMPLETE—The negotiation is uncompleted.
Indicates whether the remote-to-local configuration negotiation is
complete:
• COMPLETE—The negotiation is completed.
• NOTCOMPLETE—The negotiation is uncompleted.
display oam configuration
Use display oam configu ration to display global Ethernet OAM configuratio n, including the periods
and thresholds for Ethernet OAM link error event detection.
Syntax
display oam configuration [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
2: System level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
8
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display global Ethernet OAM configuration.
<Sysname> display oam configuration
Configuration of the link event window/threshold :
Errored-frame Event threshold Errored frame event triggering threshold, which defaults to 1.
Errored-frame-period Event
period (in ms)
Errored-frame-period Event
threshold
Errored-frame-seconds Event
period (in seconds)
Errored-frame-seconds Event
threshold
Configuration of the timer Ethernet OAM connection detection timers.
Detection intervals and triggering thresholds configured for link ev ents.
Errored symbol event detection interval, which defaults to one second.
Errored symbol event triggering threshold, which defaults to 1.
Errored frame event detection interval, which defaults to one second.
Errored frame period event detection interval, which defaults to 1000
milliseconds.
Errored frame period event triggering threshold, which defaults to 1.
Errored frame seconds event detection interval, which defaults to 60
seconds.
Errored frame seconds event triggering threshold, which defaults to 1.
Hello timer(in ms)
Keepalive timer(in ms)
Ethernet OAM handshake packet transmission interval, the value of
which defaults to 1000 milliseconds.
Ethernet OAM connection timeout timer, the value of which defaults to
5000 milliseconds.
9
Related commands
• oamerrored-symbol period
• oamerrored-symbol threshold
• oamerrored-frame period
• oamerrored-frame threshold
• oamerrored-frame-period period
• oamerrored-frame-period threshold
• oamerrored-frame-seconds period
• oamerrored-frame-seconds threshold
• oam timer hello
• oam timer keepalive
display oam critical-event
Use display oam critical-event to display the statistics on critical Ethernet OAM link events
occurred on a port.
Syntax
display oam critical-event [ interface interface-type interface-number] [ | { begin | exclude |
include } regular-expression ]
Views
Any view
Default command level
2: System level
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify the interface keyword, this command displays the statistics on the critical
Ethernet OAM link events occurred on all the ports of the switch.
Examples
# Display the statistics on critical Ethernet OAM link events occurred on all the ports.
<Sysname> display oam critical-event
Port : GigabitEthernet3/0/1
Link Status : Up
Event statistic :
Port Port index.
Link Status Link status.
Event statistic Statistics on critical Ethernet OAM link events.
Link Fault Indicates whether a link fault is present: 0 for no and 1 for yes.
Dying Gasp Indicate whether a fatal fault is present: 0 for no and 1 for yes.
Critical Event Indicate whether a critical fault is present: 0 for no and 1 for yes.
display oam link-event
Use display oam link-event to display the statistics o n Ethernet OAM link error events o ccurred on
a local port or a peer port. Ethernet OAM link error events include errored symbol events, errored
frame events, errored frame period events, and errored frame seconds events.
Syntax
display oam link-event { local | remote } [ interface interface-type interface-number ] [ | { begin |
exclude | include } regular-expression ]
Views
Any view
Default command level
2: System level
Parameters
local: Displays the statistics on the local Ethernet OAM link error events.
remote: Displays the statistics on the peer Ethernet OAM link error events.
interface interface-type interface-number: Specifies a port by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not specify the interface keyword, this command displays the statistics on the Ethernet
OAM link error events occurred on all the local/peer ports.
Examples
# Display the statistics on Ethernet OAM link error events occurred on all the local ports.
<Sysname> display oam link-event local
Port : GigabitEthernet3/0/1
Link Status : Up
OAMLocalErrFrameEvent : (ms = milliseconds)
11
-------------------------------------------------------------------------Event Time Stamp : 3539 Errored Frame Window : 10(100ms)
Errored Frame Threshold : 5 Errored Frame : 1488111
Error Running Total : 260908758 Event Running Total : 307
OAMLocalErrFramePeriodEvent :
-------------------------------------------------------------------------Event Time Stamp : 3539 Errored Frame Window : 976500
Errored Frame Threshold : 1 Errored Frame : 1042054
Error Running Total : 260909151 Event Running Total : 471
-------------------------------------------------------------------------Event Time Stamp : 3389
Errored Frame Second Summary Window : 600(100ms)
Errored Frame Second Summary Threshold : 1
Errored Frame Second Summary : 60
Error Running Total : 292 Event Running Total : 5
Table 7 Command output
Field Description
Port Port index.
Link Status Link status.
Information about local errored frame events:
•Event Time Stamp—Time when an errored frame event occurred (in 100
milliseconds).
•Errored Frame Window—Error frame detection interval (in 100 milliseconds).
OAMLocalErrFrame
Event
OAMLocalErrFrame
PeriodEvent
•Errored Frame Threshold—Error threshold that triggers an errored frame
event.
•Errored Frame—Number of detected error frames over the specific detection
interval.
• Error Running Total—Total number of error frames.
• Event Running Total—Total number of errored frame events that have
occurred.
Information about local errored frame period events:
•Event Time Stamp—Time when an errored frame event occurred (in 100
milliseconds).
•Errored Frame Window—Maximum number of 64-byte frames that can be
transmitted through an Ethernet port over the configured error frame period
detection interval. For more information, see the "oam errored-frame-period
peri
od" command.
•Errored Frame Threshold—Error threshold that triggers an error frame period
event.
• Errored Frame—Number of detected error frames over a detection interval.
• Error Running Total—Total number of error frames that have detected.
• Event Running Total—Total number of error frame period events.
12
Field Description
Information about local errored frame seconds events:
•Event Time Stamp—Time when an error frame seconds event occurred (in
terms of 100 milliseconds).
•Errored Frame Second Summary Window—Error frame second detection
interval (in 100 milliseconds).
OAMLocalErrFrame
SecsSummaryEvent
•Errored Frame Second Summary Threshold—Error threshold that triggers
an error frame seconds event.
•Errored Frame Second Summary—Number of detected error frame seconds
over a detection interval.
• Error Running Total—Total number of error frame seconds.
• Event Running Total—Total number of error frame seconds events that have
occurred.
# Display Ethernet OAM link event statistics of the remote ends of all the ports.
<Sysname> display oam link-event remote
Port :GigabitEthernet3/0/1
Link Status :Up
OAMRemoteErrFrameEvent : (ms = milliseconds)
--------------------------------------------------------------------Event Time Stamp : 5789 Errored Frame Window : 10(100ms)
Errored Frame Threshold : 1 Errored Frame : 3
Error Running Total : 35 Event Running Total : 17
Table 8 Command output
Field Description
Port Port index.
Link Status Link status.
OAMLocalErrFra
meEvent
Related commands
• display oam configuration
• reset oam
oam enable
Information about remote errored frame events:
•Event Time Stamp—Time when an errored frame event occurred (in 100
milliseconds).
• Errored Frame Window—Error frame detection interval (in 100 milliseconds).
• Errored Frame Threshold—Error threshold that triggers an errored frame event.
• Errored Frame—Number of detected error frames over the specific detection
interval.
• Error Running Total—Total number of error frames.
• Event Running Total—Total number of errored frame events that have occurred.
Syntax
Use oam enable to enable Ethernet OAM on the Ethernet port.
Use undo oam enable to disable Ethernet OAM on the Ethernet port.
Use oam errored-frame-period period to set the errored frame period event detection interval.
Use undo oam errored-frame-period period to restore the default.
Syntax
oam errored-frame-period period period-value
undo oam errored-frame-period period
Default
The errored frame period event detection interval is 1000 milliseconds.
Views
System view
Default command level
2: System level
Parameters
period-value: Errored frame period event detection interval in the range of 100 to 60000 (in
milliseconds).
Usage guidelines
As for errored frame period event detection, the system first uses the following expre ssion to convert
the errored frame period event detection interval to the maximum number of 64-byte frames that can
be transmitted through an Ethernet port in the period:
bandwidth * period / (64 * 8 * 1000),
15
where bandwidth is the port bandwidth (in bps) and "period" is the configured period (in
milliseconds).
Examples
# Set the errored frame period event detection interval to 10 seconds (10000 milliseconds).
<Sysname> system-view
[Sysname] oam errored-frame-period period 10000
Related commands
• oamerrored-frame-period threshold
• display oam link-event
• display oam configuration
oam errored-frame-period threshold
Use oam errored-frame-period threshold to set the errored frame period event triggering
threshold.
Use undo oam errored-frame-period threshold to restore the default.
Use oam errored-frame-second s period to set the errored frame seconds event detection i nterval.
Use undo oam errored-frame-seconds period to restore the default.
Syntax
oam errored-frame-seconds period period-value
16
undo oam errored-frame-seconds period
Default
The errored frame seconds event detection interval is 60 seconds.
Views
System view
Default command level
2: System level
Parameters
period-value: Errored frame seconds event detection interval in the rang e of 10 t o 900 (in se cond s).
Examples
# Set the errored frame seconds event detection interval to 100 seconds.
<Sysname> system-view
[Sysname] oam errored-frame-seconds period 100
Related commands
• oamerrored-frame-seconds threshold
• display oam link-event
• display oam configuration
oam errored-frame-seconds threshold
Use oam errored-frame-seconds threshold to set the errored frame seconds event triggering
threshold.
Use undo oam errored-frame-seconds threshold to restore the default.
Use oam loopback to enable Ethernet OAM remote loopback on the specified Ethernet port.
Use undo oam loopback to disable Ethernet OAM remote loopback on the Ethernet port.
Syntax
oam loopback
undo oam loopback
Default
Ethernet OAM remote loopback is disabled on the Ethernet port.
Views
Layer 2 Ethernet port view
Default command level
2: System level
Usage guidelines
Ethernet OAM remote loopback is available only after the Ethernet OAM connection is established
and can be performed only by the Ethernet OAM entities operating in active Ethernet OAM mode.
Examples
# Configure the active Ethernet OAM mode and enable Ethernet OAM on GigabitEthernet 3/0/1, and
then enable Ethernet OAM remote loopback on GigabitEthernet 3/0/1 in Layer 2 Ethernet port view.
Ethernet OAM remote loopback is disabled on an Ethernet port.
Views
System view
Default command level
2: System level
Parameters
interface-type interface-number: Specifies a port by its type and number.
Usage guidelines
Ethernet OAM remote loopback is available only after the Ethernet OAM connection is established
and can be performed only by the Ethernet OAM entities operating in active Ethernet OAM mode.
Examples
# Configure the active Ethernet OAM mode and enable Ethernet OAM on GigabitEthernet 3/0/1, and
then enable Ethernet OAM remote loopback on GigabitEthernet 3/0/1 in system view.
Ethernet OAM remote loopback is disabled on an Ethernet port.
20
Views
User view
Default command level
1: Monitor level
Parameters
interface-type interface-number: Specifies a port by its type and number.
Usage guidelines
Ethernet OAM remote loopback is available only after the Ethernet OAM connection is established
and can be performed only by the Ethernet OAM entities operating in active Ethernet OAM mode.
Examples
# Configure the active Ethernet OAM mode and enable Ethernet OAM on GigabitEthernet 3/0/1, and
then enable Ethernet OAM remote loopback on GigabitEthernet 3/0/1 in user view.
Use oam timer hello to configure the Ethernet OAM handshake packet transmission interval.
Use undo oam timer hello to restore the default.
Syntax
Default
oam timer hello interval
undo oam timer hello
The Ethernet OAM handshake packet transmission interval is 1000 milliseconds.
22
Views
System view
Default command level
2: System level
Parameters
interval: Ethernet OAM handshake packet transmission interva in the range of 500 to 5000
milliseconds. The value of this argument must be a multiple of 100.
Usage guidelines
After the timeout timer for an Ethernet OAM connection expires, the local OAM entity ages out its
connection with the peer OAM entity, causing the OAM connection to be disconnected. Hewlett
Packard Enterprise recommends setting the connection timeout timer at least five times the
handshake packet transmission interval, ensuring the stability of Ethernet OAM conne ction s.
Examples
# Set the Ethernet OAM handshake packet transmission interval to 600 milliseconds—assume that
the Ethernet OAM connection timeout timer is 5000 milliseconds.
The Ethernet OAM connection timeout timer is 5000 milliseconds.
Views
System view
Default command level
2: System level
Parameters
interval: Ethernet OAM connection timeout timer in the range of 1000 to 25000 milliseconds. The
value of this argument must be a multiple of 100.
Usage guidelines
After the timeout timer for an Ethernet OAM connection expires, the local OAM entity ages out its
connection with the peer OAM entity, causing the OAM connection to be disconnected. Hewlett
Packard Enterprise recommends setting the connection timeout timer at least five times the
handshake packet transmission interval, ensuring the stability of Ethernet OAM conne ction s.
23
Examples
# Set the Ethernet OAM connection timeout timer to 6000 milliseconds—assume that the Ethernet
OAM handshake packet transmission interval is 1000 milliseconds.
interface interface-type interface-number: Specifies a port by its type and number.
Usage guidelines
If you do not specify the interface keyword, this command clears the statistics on Ethernet OAM
packets and Ethernet OAM link error events of all the ports.
Examples
# Clear the statistics on Ethernet OAM packets and Ethernet OAM link error events of all the ports.
<Sysname> reset oam
Related commands
• display oam
• display oam link-event
24
CFD configuration commands
The commands in this chapter are supported only when the SAP module is operating in bridge
mode.
cfd cc enable
Use cfd cc enable to enable CCM sending on a specified MEP.
Use undo cfd cc enable to disable CCM sending on a specified MEP.
Syntax
cfd cc service-instance instance-id mep mep-id enable
undo cfd cc service-instance instance-id mep mep-id enable
Default
The CCM sending function is disabled.
Views
Layer 2 Ethernet interface view
Default command level
2: System level
Parameters
service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.
mep mep-id: Specifies the ID of a MEP, in the range of 1 to 8191.
Examples
# On port GigabitEthernet 3/0/1, enable CCM sending on MEP 3 in service instance 5.
Use cfd cc interval to set the value of the interval field in the CCM messages.
Use undo cfd cc interval to restore default.
Syntax
Default
Views
cfd cc interval interval-value service-instance instance-id
undo cfd cc interval service-instance instance-id
The value of this field is 4 for all CCMs sent.
System view
25
Default command level
2: System level
Parameters
interval interval-value: Specifies the value of the interval field in CCM messages, in the range of 2 to
7.
service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.
Usage guidelines
The relationship between the interval field value in the CCM messages, the int erval for sending CCM
messages, and the timeout time of the remote MEP is shown in Table 9.
9 Relationship between the interval field value, interval for sending CCMs, and timeout
Table
time of remote MEP
Interval field value Interval for sending CCMs Timeout time of remote MEP
# Set the value of the interval field in CCMs sent by MEPs in service instance 2 to 7.
<Sysname> system-view
[Sysname] cfd cc interval 7 service-instance 2
Related commands
cfd cc enable
cfd enable
Use cfd enable to enable CFD.
Use undo cfd enable to disable CFD.
Syntax
cfd enable
undo cfd enable
Default
CFD is disabled.
Views
System view
Default command level
2: System level
Examples
# Enable CFD.
26
<Sysname> system-view
[Sysname] cfd enable
cfd linktrace
Use cfd linktrace to find the path between the source and target MEPs, which is achieved through
the transmission of LTMs between the two and detection of the responding LTRs.
service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.
mep mep-id: Specifies the ID of the source MEP, in the range of 1 to 8191.
target-map target-mep-id: Specifies the ID of the destination MEP, in the range of 1 to 8191.
target-mac mac-address: Specifies the destination MAC add ress, in the format of H-H-H.
ttl ttl-value: Specifies the time to live value in the range of 1 to 255. The default is 64.
hw-only: Sets the hw-only bits of the LTMs sent. When this keyword is specified and the MIP that
receives LTMs cannot find the destination MAC address in its forwarding table, the MIP does not
broadcast these LTM messages. Otherwise, the MIP broadcasts these LTM messages.
Examples
# Identify the path between source MEP 1101 and target MEP 2001 in service instance 1 when the
standard version (IEEE 802.1ag) of CFD is used.
<Sysname> system-view
[Sysname] cfd version standard
[Sysname] cfd linktrace service-instance 1 mep 1101 target-mep 2001
Linktrace to MEP 2001 with the sequence number 1101-43361
MAC Address TTL Last MAC Relay Action
0010-FC00-6512 63 0010-FC00-6500 Hit
# Identify the path between source MEP 1101 and target MEP 2001 in service instance 1 when the
IEEE 802.1ag draft 5.2 version of CFD is used.
<Sysname> system-view
[Sysname] cfd version draft5
[Sysname] cfd linktrace service-instance 1 mep 1101 target-mep 2001
Linktrace to MEP 2001 with the sequence number 1101-43361 :
MAC Address TTL Forwarded Relay Action
0010-FC00-6512 63 No None
# Identify the path between source MEP 1101 and target MEP 2001 in service instance 1 when the
IEEE 802.1ag draft 5.2 interim version of CFD is used.
Linktrace to MEP 2001 with the sequence number 1101-43361 :
MAC Address TTL Forwarded Relay Action
0010-FC00-6512 63 No None
NOTE:
The output varies by CFD protocol version.
Table 10 Command output
Field Description
Linktrace to MEP 2001 with the
sequence number 1101-43361
MAC Address Source MAC address in the LTR messages.
TTL Hop count when the LTM passes the device.
Last MAC MAC address of the last-hop device the LTM passes.
Forwarded
Relay Action
Related commands
Linktrace to target MEP 2001 with the sequence number 1101-43361.
Indicates whether the device forwards LTMs:
• Yes—The current device forwards LTMs.
• No—The current device does not forward LTMs.
Indicates whether the forwarding device found the destination MAC
address in its MAC address table.
When the standard version (IEEE 802.1ag) of CFD is used:
• Hit—The current device is the destination device.
• FDB—The forwarding device found the destination MAC address.
• MPDB—The destination MAC address is not found, or the
destination MAC address is found in the MEP or MIP database.
When the IEEE 802.1ag draft5.2 version or the IEEE 802.1ag draft 5.2
interim version of CFD is used:
•Found—The forwarding device found the destination MAC
address.
•Unknown—The forwarding device failed to find the destination
MAC address.
•None—It is a MEP that responded to the LTM message. A MEP
does not need to find the destination MAC address.
cfd linktrace auto-detection
cfd linktrace auto-detection
Use cfd linktrace auto-detection to enable the auto sending of linktrace messages.
Use undo cfd linktrace auto-detection to disable this function.
size size-value: Specifies the size of the buffer used to store the auto-dete ction result, in the range of
1 to 100 (in terms of sending times).
This value defaults to 5, which means the buffer stores the results of the recent five auto-d etections.
Usage guidelines
After LT messages automatic sending is enabled, if the source MEP fails to receive the CCMs from
the target MEP within 3.5 times the sending interval, the link between the two is regarded as faulty
and L TMs will be sent out. (The destination of the LTMs is the target MEP, and the TTL field value is
255.) Based on the LTRs that echo back, the fault source can be located.
Once you disable LT messages automatic sending, the content stor ed in the buffer will be removed.
Examples
# Enable automatic LT messages sending, and specify the size of the buffer used to store the
auto-detection result to 100 (in terms of sending times).
Use cfd loopback to enable LB function so that LBMs can be sent from the source MEP to the target
MP, and LBR messages can be received.
Syntax
cfd loopback service-instance instance-id mep mep-id { target-mep target-mep-id | target-mac mac-address} [ number number ]
Default
LB is not enabled.
Views
Any view
Default command level
0: Visit level
Parameters
service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.
mep mep-id: Specifies the ID of the source MEP, in the range of 1 to 8191.
target-mep target-mep-id: Specifies the ID of the target MEP, in the range of 1 to 8191.
target-mac mac-address: Specifies the destination MAC address of the MP, in the format of H-H-H.
number number: Specifies the number of the LBMs packets sent, in the range of 1 to 10 . The
default is 5.
29
Examples
# Enable LB to check the status of the link between MEP 1101 and MEP 2001 in service instance 1
(assume that the link status is normal).
<Sysname> cfd loopback service-instance 1 mep 1101 target-mep 2001
Loopback to 0010-FC00-6512 with the sequence number start from 1101-43404:
Reply from 0010-FC00-6512: sequence number=1101-43404 time=5ms
Reply from 0010-FC00-6512: sequence number=1101-43405 time=5ms
Reply from 0010-FC00-6512: sequence number=1101-43406 time=5ms
Reply from 0010-FC00-6512: sequence number=1101-43407 time=5ms
Reply from 0010-FC00-6512: sequence number=1101-43408 time=5ms
Send:5 Received:5 Lost:0
# Enable LB to check the status of the link between MEP 1101 and MEP 2001 in service instance 1
(assume that the link status is abnormal).
<Sysname> cfd loopback service-instance 1 mep 1101 target-mep 2001
Sequence number=1101-43404: Request timed out
Sequence number=1101-43405: Request timed out
Sequence number=1101-43406: Request timed out
Sequence number=1101-43407: Request timed out
Sequence number=1101-43408: Request timed out
Send:5 Received:0 Lost:5
Table 11 Command output
Field Description
Loopback to 0010-FC00-6512 with the
sequence number start from
1101-43404
sequence number Sequence number in the LBR messages.
time=5ms
Request timed out
Send Number of LBMs sent.
Received Number of LBR messages received.
Lost Number of lost LBRs.
cfd ma
Use cfd ma to create MAs in an MD.
Use undo cfd ma to delete MAs in an MD.
Syntax
Sends LBMs to 0010-FC00-6512 with the sequence number
starting with 1101-43404.
The interval between the sending of LBMs and receiving of LBRs
is 5 milliseconds.
The request is timed out because no LBR is received within 5
milliseconds.
Default
cfd ma ma-name md md-name vlan vlan-id
undo cfd ma ma-name md md-name
No MA is created.
30
Views
System view
Default command level
2: System level
Parameters
ma ma-name: Specifies the name of the MA, which is a string of 1 to 43 characters. IEEE 802.1ag
standard version allows an MA name to contain letters, numbers, and special characters such as
tilde (~), exclamation mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^),
ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign
(=), vertical bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", '), comma (,), period (.),
and slash (/). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MA
name to contain letters, numbers, and special characters such as hyphen (–) and underscore (_), but
do not allow an MA name to start or end with a special character.
mdmd-name: Specifies the name of an MD, a string of 1 to 43 characters. IEEE 802.1ag standard
version allows an MD name to contain letters, numbers, and special characters such as tilde (~),
exclamation mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^), ampersan d
(&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign (=), vertical
bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", '), comma (,), period (.), and slash (/).
IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MD name to
contain letters, numbers, and special characters such as hyphen (–) and underscore (_), but do not
allow an MD name to start or end with a special character.
vlan vlan-id: Specifies the ID of the VLAN where MA is in service, i n the range of 1 to 4094.
Usage guidelines
Before creating an MA, you must create an MD first.
The total length of the MA and MD names should not exceed 44 characters.
When deleting an MA, you will also delete the configurations related to that MA.
Examples
# Create an MA named test_ma in an MD named test_md, and configure the MA to serve VLAN
md md-name: Specifies the name of an MD, which is a string of 1 to 43 characters. IEEE 802.1ag
standard version allows an MD name to contain letters, numbers, and special characters such as
tilde (~), exclamation mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^),
ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign
(=), vertical bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", '), comma (,), period (.),
and slash (/). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MD
name to contain letters, numbers, and special characters such as hyphen (–) and underscore (_), but
do not allow an MD name to start or end with a special character.
level level-value: Specifies an MD level, in the range of 0 to 7.
Usage guidelines
You can create only one MD with a specific level. MD cannot be created if you enter an invalid MD
name or an existing MD name.
When deleting an MD, you will also delete the configurations related to that MD.
Examples
# Create an MD named test_md, with its level being 3.
mep mep-id: Specifies the ID of a MEP, in the range of 1 to 8191.
service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.
inbound: Creates an inward-facing MEP.
outbound: Creates an outward-facing MEP.
32
Usage guidelines
In creating a MEP, the service instance you specified defines the MD and MA that the MEP belongs
to.
You cannot create a MEP if the MEP ID is not included in the MEP list of the relevant service
instance.
Examples
# Configure a MEP list in service instance 5, and create and enable inward-facing MEP 3 in service
instance 5 on GigabitEthernet 3/0/1.
MEP is disabled on a port and cannot respond to various CFD frames (such as LTM frames and
LBMT frames) unless you enable it.
Views
Layer 2 Ethernet interface view
Default command level
2: System level
Parameters
service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.
mep mep-id: Specifies the ID of a MEP, in the range of 1 to 8191.
Examples
# Enable MEP 3 in service instance 5 on GigabitEthernet 3/0/1.
meplist mep-list: Specifies a list of MEP IDs, indicating multiple MEPs, in the format of mep-list =
{ mep-id [ tomep-id ] }&<1-10>, in which mep-id represents the MEP ID and is in the range of 1 to
8191. &<1-10> indicates you can specify up to 10 MEP ID ranges.
service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.
Usage guidelines
Before creating a MEP list, create the relevant MD, MA, and service instance.
After you delete a MEP list, all local MEP configurations based on this list are deleted.
Examples
# Create a MEP list that includes MEP 9 through MEP 15 in service instance 5.
service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.
md md-name: Specifies the name of an MD. The md-name argument is a string of 1 to 43 characters.
IEEE 802.1ag standard version allows an MD name to contain letters, numbers, and special
characters such as tilde (~), exclamation mark (!), at sign (@), number sign (#), dollar sign ($),
percent (%), caret (^), ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyph en (-), underscore (_),
plus (+), equal sign (=), vertical bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", '),
comma (,), period (.), and slash (/). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim
version allow an MD name to contain letters, numbers, and special characters such as hyphen (–)
and underscore (_), but do not allow an MD name to start or end with a special character.
ma ma-name: Specifies the name of an MA. The ma-name argument is a string of 1 to 43 characters.
IEEE 802.1ag standard version allows an MA name to contain letters, numbers, and special
characters such as tilde (~), exclamation mark (!), at sign (@), number sign (#), dollar sign ($),
percent (%), caret (^), ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyph en (-), underscore (_),
35
plus (+), equal sign (=), vertical bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", '),
comma (,), period (.), and slash (/). IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim
version allow an MA name to contain letters, numbers, and special characters such as hyphen (–)
and underscore (_), but do not allow an MA name to start or end with a special character.
Usage guidelines
You must create the relevant MD and MA prior to creating a service instance.
The service instance ID uniquely identifies an MA in an MD.
When deleting a service instance, you are deleting the configurations related to that service instance
as well.
Deleting a service instance breaks up the connection between the service instance and the rele vant
MA, the MA itself is not deleted.
Examples
# Create a level-3 MD named test_md, create an MA named test_ma, which serves VLAN 100, in
test_md, and then create service instance 5 with the MD name for test_md and test_ma.
service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.
icc-based ma-name: Specifies the name of an MA in Y.1731 format. The ma-name argument is a
string of 1 to 13 characters. IEEE 802.1ag standard version allows an MA name to contain letters,
numbers, and special characters such as tilde (~), exclamation mark (!), at sign (@), number sign (#),
dollar sign ($), percent (%), caret (^), ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-),
underscore (_), plus (+), equal sign (=), vertical bar (|), backslash (\), colon (:), semicolon (;),
quotation marks (", '), comma (,), period (.), and slash (/). IEEE 802.1ag draft5.2 version and IEEE
802.1ag draft5.2 interim version allow an MA name to contain letters, numbers, and special
characters such as hyphen (–) and underscore (_), but do not allow an MA name to start or end with
a special character.
string ma-name: Specifies the name of an MA in IEEE 802.1ag format. The ma-name argument is a
string of 1 to 45 characters. IEEE 802.1ag standard version allows an MA name to contain letters,
36
numbers, and special characters such as tilde (~), exclamation mark (!), at sign (@), number sign (#),
dollar sign ($), percent (%), caret (^), ampersand (&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-),
underscore (_), plus (+), equal sign (=), vertical bar (|), backslash (\), colon (:), semicolon (;),
quotation marks (", '), comma (,), period (.), and slash (/). IEEE 802.1ag draft5.2 version and IEEE
802.1ag draft5.2 interim version allow an MA name to contain letters, numbers, and special
characters such as hyphen (–) and underscore (_), but do not allow an MA name to start or end with
a special character.
level level-value: Specifies an MD level in the range of 0 to 7.
vlan vlan-id: Specifies the ID of the VLAN where MA is in service, i n the range of 1 to 4094.
Usage guidelines
When you create a service instance with no MD name, the system automatically cre ates an MA and
MD for the service instance.
The service instance ID, MA name, and MD level uniquely identify an MA in an MD.
When deleting a service instance, you are deleting the configurations related to that service instance
as well.
Deleting a service instance not only breaks up the connection between the servi ce instance a nd the
relevant MA but also deletes the MA itself.
After all MAs in an MD are deleted, the MD is automatically deleted.
Service instances with no MD name only apply to the IEEE 802.1ag version.
Examples
# Create service instance 5 with no MD name in the IEEE 802.1ag standard version. Create an MA
named test_ma1 in Y.1731 format, with the MD level 3 and serving VLAN 100.
<Sysname> system-view
[Sysname] cfd version standard
[Sysname] cfd service-instance 5 maid format icc-based test_ma1 level 3 vlan 100
# Create service instance 6 with no MD name in the IEEE 802.1ag standard version. Create an MA
named test_ma2 in IEEE 802.1ag format, with the MD level 4 and serving VLAN 200.
<Sysname> system-view
[Sysname] cfd version standard
[Sysname] cfd service-instance 6 maid format string test_ma2 level 4 vlan 200
Related commands
cfd version
cfd version
Use cfd version to configure the CFD protocol version.
Use undo cfd version to restore the default.
Syntax
cfd version { draft5 | draft5-plus | standard }
Default
Views
undo cfd version
CFD uses the standard version of IEEE 802.1ag.
System view
37
Default command level
2: System level
Parameters
draft5: Specifies that IEEE 802.1ag draft5.2 be used.
draft5-plus: Specifies that the IEEE 802.1ag draft5.2 interim version be used.
standard: Specifies that the standard version of IEEE 802.1ag be used.
Usage guidelines
If an MD is created by using the cfd md command or automatically generated by using the cfd
service-instance maid format command on a device, you cannot switch between the standard
version and draft5.2 version (or draft5.2 interim version); however, you can switch between the
draft5.2 version and draft5.2 interim version. This restriction does not apply to the device without an
MD configured.
Examples
# Configure the CFD protocol version as IEEE 802.1ag draft5.2.
<Sysname> system-view
[Sysname] cfd version draft5
Related commands
• cfd md
• cfd service-instance maid format
display cfd linktrace-reply
Use display cfd linktrace-reply to display the LTR information received by a MEP.
Syntax
display cfd linktrace-reply [ service-instance instance-id[ mep mep-id] ] [ | { begin | exclude |
include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.
mep mep-id: Specifies the ID of a MEP, in the range of 1 to 8191.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If this command is used without specifying MEP, the information of LTRs of all MEPs in the current
service instance is displayed.
38
If this command is used without specifying any service instance, the information of LTRs of all MEPs
is displayed.
Examples
# Display the LTR information saved on all the MEPs in every service instance when the standard
version (IEEE 802.1ag) of CFD is used.
<Sysname> system-view
[Sysname] cfd version standard
[Sysname] display cfd linktrace-reply
Service instance: 1 MEP ID: 1003
MAC Address TTL Last MAC Relay Action
0000-FC00-6505 63 0000-FC00-6504 MPDB
000F-E269-A852 62 0000-FC00-6505 FDB
0000-FC00-6508 61 000F-E269-A852 Hit
Service instance: 2 MEP ID: 1023
MAC Address TTL Last MAC Relay Action
0000-FC00-6508 61 000F-E269-A852 Hit
# Display the LTR information saved on all the MEPs in every service instance when the IEEE
802.1ag draft5.2 version of CFD is used.
<Sysname> system-view
[Sysname] cfd version draft5
[Sysname] display cfd linktrace-reply
Service instance: 1 MEP ID: 1003
MAC Address TTL Forwarded Relay Action
00E0-FC27-6502 63 Yes Found
00E0-FC00-6510 62 Yes Found
00E0-FC52-BAA0 61 No None
Service instance: 2 MEP ID: 1023
MAC Address TTL Forwarded Relay Action
00E0-FC27-6502 63 No None
# Display the LTR information saved on all the MEPs in every service instance when the IEEE
802.1ag draft5.2 interim version of CFD is used.
<Sysname> system-view
[Sysname] cfd version draft5-plus
[Sysname] display cfd linktrace-reply
Service instance: 1 MEP ID: 1003
MAC Address TTL Forwarded Relay Action
00E0-FC27-6502 63 Yes Found
00E0-FC00-6510 62 Yes Found
00E0-FC52-BAA0 61 No None
Service instance: 2 MEP ID: 1023
MAC Address TTL Forwarded Relay Action
00E0-FC27-6502 63 No None
NOTE:
The output varies by CFD protocol version.
39
Table 12 Command output
Field Description
Service instance Service instance to which the MEPs that send LTMs belong.
MEP ID ID of the MEP that sends LTMs.
MAC Address Source MAC address in the LTR message.
TTL Hop count when LTM passes the device.
Last MAC MAC address of the last-hop device the LTM passes.
Indicates whether the device forwards LTMs:
Forwarded
Relay Action
• Yes—The device has forwarded the LTMs.
• No—The device did not forward the LTMs.
Indicates whether the forwarding device found the destination MAC address in its
MAC address table.
When the standard version (IEEE 802.1ag) of CFD is used:
• Hit—The current device is the destination device.
• FDB—The forwarding device found the destination MAC address.
• MPDB—The destination MAC address is not found, or the destination MAC
address is found in the MEP or MIP database.
When the IEEE 802.1ag draft5.2 version or the IEEE 802.1ag draft5.2 interim
version of CFD is used:
•Found—The forwarding device found the destination MAC address in its
MAC address table.
•Unknown—The forwarding device failed to find the destination MAC
address in its MAC address table.
•None—It is a MEP that responded to the LTM message. A MEP does not
need to find the destination MAC address.
display cfd linktrace-reply auto-detection
Use display cfd linktrace-reply auto-detection to display the content of the LTR messages
received as responses to the automatically sent LTMs.
Syntax
display cfd linktrace-reply auto-detection [ size size-value ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
size size-value: Specifies the times of recent auto-detections, in the range of 1 to 100.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
40
Usage guidelines
These LTR messages received as responses to automatically sent LTMs are stored in the buffer
after you executed the cfd linktrace auto-detection command.
With the size keyword not specified, this command displays the information of all LTRs stored in the
buffer.
Examples
# Display the contents of the LTRs received as responses to the LTMs automatically sent when the
standard version (IEEE 802.1ag) of CFD is used.
<Sysname> system-view
[Sysname] cfd version standard
[Sysname] display cfd linktrace-reply auto-detection
Service instance: 1 MEP ID: 1003 Time: 2009/05/22 10:43:57
Target MEP ID: 2005 TTL: 64
MAC Address TTL Last MAC Relay Action
0000-FC00-6505 63 0000-FC00-6504 MPDB
000F-E269-A852 62 0000-FC00-6505 FDB
0000-FC00-6508 61 000F-E269-A852 Hit
Service instance: 2 MEP ID: 1023 Time: 2009/05/22 10:44:06
Target MEP ID: 2025 TTL: 64
MAC Address TTL Last MAC Relay Action
0000-FC00-6508 61 000F-E269-A852 Hit
# Display the contents of the LTRs received as responses to the LTMs automatically sent when the
IEEE 802.1ag draft5.2 version of CFD is used.
<Sysname> system-view
[Sysname] cfd version draft5
[Sysname] display cfd linktrace-reply auto-detection
Service instance: 1 MEP ID: 1003 Time: 2009/05/22 10:43:57
Target MEP ID: 2005 TTL: 64
MAC Address TTL Forwarded Relay Action
00E0-FC27-6502 63 Yes Found
00E0-FC00-6510 62 Yes Found
00E0-FC52-BAA0 61 No None
Service instance: 2 MEP ID: 1023 Time: 2009/05/22 10:44:06
Target MEP ID: 2025 TTL: 64
MAC Address TTL Forwarded Relay Action
00E0-FC27-6502 63 No None
# Display the contents of the LTRs received as responses to the LTMs automatically sent when the
IEEE 802.1ag draft5.2 interim version of CFD is used.
<Sysname> system-view
[Sysname] cfd version draft5-plus
[Sysname] display cfd linktrace-reply auto-detection
Service instance: 1 MEP ID: 1003 Time: 2009/05/22 10:43:57
Target MEP ID: 2005 TTL: 64
MAC Address TTL Forwarded Relay Action
00E0-FC27-6502 63 Yes Found
00E0-FC00-6510 62 Yes Found
00E0-FC52-BAA0 61 No None
41
Service instance: 2 MEP ID: 1023 Time: 2009/05/22 10:44:06
Target MEP ID: 2025 TTL: 64
MAC Address TTL Forwarded Relay Action
00E0-FC27-6502 63 No None
NOTE:
The output varies by CFD protocol version.
Table 13 Command output
Field Description
Service instance Service instance to which the MEPs that sent LTM messages belong.
MEP ID ID of the MEP that sends LTMs.
Time Time of the LTMs automatically sent.
Target MEP ID ID of the target MEP.
TTL Initial hop count of the automatically sent LTMs.
MAC Address Source MAC address in the LTR messages.
TTL Hop count when LTM passes the device.
Last MAC MAC address of the last-hop device the LTM passes.
Forwarded
Relay Action
Related commands
cfd linktrace auto-detection
Indicates whether the device forwards LTMs:
• Yes—The device has forwarded the LTMs.
• No—The device did not forward the LTMs.
Indicates whether the forwarding device found the destination MAC address in
its MAC address table.
When the standard version (IEEE 802.1ag) of CFD is used:
• Hit—The current device is the destination device.
• FDB—The forwarding device found the destination MAC address.
• MPDB—The destination MAC address is not found, or the destination
MAC address is found in the MEP or MIP database.
When the IEEE 802.1ag draft5.2 version or the IEEE 802.1ag draft5.2 interim
version of CFD is used:
• Found—The forwarding device found the destination MAC address.
• Unknown—The forwarding device failed to find the destination MAC
address.
•None—It is a MEP that responded to the LTM message. A MEP does not
need to find the destination MAC address.
display cfd ma
Use display cfd ma to display the configuration of a specified MA.
Syntax
display cfd ma [ [ma-name] md { md-name | level level-value }] [ | { begin | exclude | include }
regular-expression ]
42
Views
Any view
Default command level
1: Monitor level
Parameters
ma-name: Name of MA, a character string of 1 to 43 characters. IEEE 802.1ag standard version
allows an MA name to contain letters, numbers, and special characters such as tilde (~), exclamation
mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^), ampersand (&),
asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign (=), vertical bar (|),
backslash (\), colon (:), semicolon (;), quotation marks (", '), comma (,), pe riod (.), and slash (/ ). IEEE
802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MA name to contain
letters, numbers, and special characters such as hyphen (–) and underscore (_), but do not allow an
MA name to start or end with a spe cial character.
md-name: Name of an MD, a character string of 1 to 43 characters. IEEE 802.1ag standard version
allows an MD name to contain letters, numbers, and special characters such as tilde (~),
exclamation mark (!), at sign (@), number sign (#), dollar sign ($), percent (%), caret (^), ampersan d
(&), asterisk(*), brackets ({ }, ( ),[ ], < >), hyphen (-), underscore (_), plus (+), equal sign (=), vertical
bar (|), backslash (\), colon (:), semicolon (;), quotation marks (", '), comma (,), period (.), and slash (/).
IEEE 802.1ag draft5.2 version and IEEE 802.1ag draft5.2 interim version allow an MD name to
contain letters, numbers, and special characters such as hyphen (–) and underscore (_), but do not
allow an MD name to start or end with a special character.
level level-value: Specifies an MD level in the range of 0 to 7.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If MD is not specified, this command will display the MA configurations of all MDs on the device.
If both MD and MA are specified, this co mmand will display the specified MA con f iguration.
If only MD is specified, this command will display the configurations of all MAs in that MD.
Examples
# Display the MA configurat ion information in all MDs.
<Sysname> display cfd ma
3 maintenance domain(s) configured.
Maintenance domain: mdtest_5
1 maintenance association(s) belong(s) to maintenance domain mdtest_5::
Maintenance association: matest_5
Service instance: 5 VLAN: 5 Level: 5
3 maintenance domain(s) configured. Number of MDs configured.
Maintenance domain Name of the MD.
1 maintenance association(s) belong(s) to
this maintenance domain
Maintenance association Name of the MA.
Service instance Service instance of the MA.
VLAN VLAN to which the service instance belongs.
Level Level of the MD to which the MA belongs.
display cfd md
Use display cfd md to display the MD configuration information.
Syntax
display cfd md [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
Number of MAs configured in the MD.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
8 maintenance domain(s) configured Number of MDs configured.
Level MD level, each level allows only one MD.
Maintenance domain MD name.
display cfd mep
Use display cfd mep to display the attribute and operating information of a MEP.
Syntax
display cfd mep mep-id service-instance instance-id [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
mep mep-id: Specifies a MEP by its ID in the range of 1 to 8191.
service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the attribute and operating information of MEP 50 in service instance 1 .
One or more streams of error CCMs is received. The last-received CCM:
Maintenance domain: mdtest1
Maintenance association:matest1
MEP:5 Sequence Number:0x50A
Received Time: 02/3/6 13:01:34
One or more streams of cross-connect CCMs is received. The last-received CCM:
Maintenance domain:mdtest1
Maintenance association:matest1
MEP:6 Sequence Number:0x63A
Received Time: 02/3/6 13:01:34
Some other MEPs are transmitting the RDI bit.
Table 16 Command output
Field Description
Interface Interface that an MD belongs to.
Maintenance domain MD that a MEP belongs to.
Maintenance association MA that a MEP belongs to.
Level Level of the MD.
VLAN VLAN that the MA belongs to.
Direction Direction of the MEPs.
Administrative state State of MEP, either Active or Inactive.
CCM send Whether the MEP sends CCM.
State of FNG (Fault Notification Generator):
• FNG_RESET—A fault has been cleared.
• FNG_DEFECT—A fault has been detected.
FNG state
CCM Information related to CCM.
• FNG_REPORT_DEFECT—Report a fault.
• FNG_DEFECT_REPORTED—A fault has been reported.
• FNG_DEFECT_CLEARING—A fault is being cleared.
If this field is not supported, a hyphen (-) is displayed.
State of CCMs sent:
Current state
• CCI_IDLE—Initial state.
• CCI_WAITING—Sending state.
Interval Interval to send CCM.
46
Field Description
SendCCM
Loopback Information related to Loopback.
NextSeqNumber Sequence number of the next LBM to be sent.
Number of CCMs that have been sent by the MEPs.
If this field is not supported, a hyphen (-) is displayed.
SendLBR
ReceiveInOrderLBR Number of LBR messages received in correct sequence.
ReceiveOutOrderLBR Number of LBR messages received out of order.
Linktrace Information related to linktrace.
NextSeqNumber Sequence number of the next LTM to be sent.
SendLTR
ReceiveLTM Number of LTMs received.
No CCM from some remote
MEPs is received.
One or more streams of error
CCMs is received. The
last-received CCM:
Maintenance domain
Maintenance association
MEP
Number of LBRs that have been sent. If the MEP is inward-facing, the
number of LBRs will not be counted.
Number of LTRs sent. If the MEP is inward-facing, the number of LTRs will
not be counted.
Failure to receive CCMs from some remote MEPs. (This information is
displayed only when some CCMs are lost.)
Display the content of the last error CCM when one or more error CCMs are
received. (This information is displayed only when error CCMs is/are
received.)
MD of the last error CCM message.
If this field is not supported, a hyphen (-) is displayed.
MA of the last error CCM message.
If this field is not supported, a hyphen (-) is displayed.
ID of the MEP that sent the last error CCM message.
If this field is not supported, a hyphen (-) is displayed.
Sequence Number
Received Time Time when the last error CCM is received.
One or more streams of
cross-connect CCMs is
received. The last-received
CCM:
Some other MEPs are
transmitting the RDI bit.
display cfd meplist
Use displaycfd meplist to display the MEP list in a service instance.
Syntax
display cfd meplist [ service-instance instance-id] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Sequence number of the last error CCM.
If this field is not supported, a hyphen (-) is displayed.
Cross-connect CCMs are received, and the content of the last
cross-connect CCM is displayed. (This information is displayed only when
cross-connect CCMs is/are received.)
CCMs with the RDI flag bits set are received from other MEPs. (This
information is displayed only when this type of CCMs is/are received.)
47
Default command level
1: Monitor level
Parameters
service-instance instance-id: Specifies a service instance by its ID in the range of 1 to 32767.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If the service instance ID is not specified, this command displays MEP lists in all service instances.
Examples
# Display the MEP list in service instance 5.
<Sysname> display cfd meplist service-instance 5
Service instance: 5
MEP list: 1 to 20, 30, 50.
display cfd mp
Use display cfd mp to display the MP information.
Syntax
display cfd mp [ interface interface-type interface-number ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number: Displays the MP information on a port specified by its port
type and port number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If no port is specified, this command displays the MP information on all ports.
The output is arranged by port name, then in the ascending VLAN I D order o n the same p ort, and in
the order of outward-facing MEPs (from low to high level), MIPs, and inward-facing MEPs (from high
to low level) within the same VLAN.
MEP ID ID of the MEP.
MIP A MIP in the MP.
Level MD level that an MP belongs to.
Service instance Service instance to which the MP belongs.
Direction Direction of the MEP.
Maintenance domain MD to which an MP belongs.
Maintenance association MA to which an MP belongs.
display cfd remote-mep
Use display cfd remote-mep to display the information of a remote MEP.
MP configuration of the specified VLAN on the specified port.
49
Syntax
display cfd remote-mep service-instance instance-id mep mep-id [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.
mep mep-id: Specifies the ID of a remote MEP, in the range of 1 to 8191.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the information of remote MEP 10 in service instance 4.
<Sysname> display cfd remote-mep service-instance 4 mep 10
MEP ID MAC Address State Time MAC Status
20 00E0-FC00-6565 OK 2009/03/06 02:36:38 UP
30 00E0-FC27-6502 OK 2009/03/06 02:36:38 DOWN
40 00E0-FC00-6510 FAILED 2009/03/06 02:36:39 DOWN
50 00E0-FC52-BAA0 OK 2009/03/06 02:36:44 DOWN
60 0010-FC00-6502 OK 2009/03/06 02:36:42 DOWN
Table 18 Command output
Field Description
MEP ID ID of the remote MED.
MAC Address
State Running state of the remote MEP: OK or FAILED.
Time
MAC Status
MAC address of the remote MEP device.
If this field is not supported, a hyphen (-) is displayed.
Time when the remote MEP entered the FAILED or OK state for the last
time.
State of the port indicated by the last CCM received from the remote MEP:
UP or DOWN.
If this field is not supported, a hyphen (-) is displayed.
display cfd service-instance
Use display cfd service-instance to display the configuration information of service instance.
Syntax
display cfd service-instance [ instance-id ] [ | { begin | exclude | include } regular-expression ]
50
Views
Any view
Default command level
1: Monitor level
Parameters
instance-id: Service instance ID in the range of 1 to 32767.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
Without specifying the service instance ID, the command will display the configuration information of
all service instances.
Examples
# Display the configuration information of all service instances.
2 service instance(s) are configured. Number of service instance configured.
Service instance 5 Service instance ID.
Maintenance domain MD of the service instance.
Maintenance association: MA of the service instances.
Level MD level.
VLAN VLAN that the MA belongs to.
MIP rule MIP generation rules configured on service instance.
CCM interval Interval to send CCMs.
MEP ID ID of MEPs configured on the service instance.
Interface Interface of the MEP configured on the service instance.
Direction Direction of the MEPs configured on the service instance.
51
display cfd status
Use display cfd status to display the status of CFD (enabled or disabled).
Syntax
display cfd status [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the status of CFD and AIS.
<Sysname> display cfd status
CFD is enabled.
display cfd version
Use display cfd version to display the CFD protocol version.
Syntax
display cfd version [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the CFD protocol version.
<Sysname> display cfd version
The current CFD version is standard.
52
Table 20 Command output
Field Description
The current CFD version is draft5 Indicates that the current CFD protocol is IEEE 802.1ag draft5.2.
The current CFD version is draft5-plus
The current CFD version is standard
Indicates that the current CFD protocol is the IEEE 802.1ag
draft5.2 interim version.
Indicates that the current CFD protocol is the standard version of
IEEE 802.1ag.
53
DLDP configuration commands
The commands in this chapter are supported only when the SAP module i s operating inbridge mode.
display dldp
Use display dldp to display the DLDP configuration of a port.
Syntax
display dldp [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-type interface-number: Port type and port number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not provide the interface-type interface-number argument, this command displays the
DLDP configuration of all the DLDP-enabled ports.
Examples
# Display the DLDP configuration of all the DLDP-enabled ports.
<Sysname> display dldp
DLDP global status : enable
DLDP interval : 5s
DLDP work-mode : enhance
DLDP authentication-mode : simple
DLDP unidirectional-shutdown : auto
DLDP delaydown-timer : 2s
The number of enabled ports is 2.
Interface GigabitEthernet3/0/1
DLDP port state : advertisement
DLDP link state : up
The neighbor number of the port is 1 (the maximum number ever detected is 2).
Neighbor mac address : 0000-0000-0100
Neighbor port index : 79
Neighbor state : two way
Neighbor aged time : 13
54
Interface GigabitEthernet3/0/2
DLDP port state : advertisement
DLDP link state : up
The neighbor number of the port is 1.
Neighbor mac address : 0000-0000-1100
Neighbor port index : 81
Neighbor state : two way
Neighbor aged time : 12
# Display the DLDP configuration of GigabitEthernet 3/0/1.
<Sysname> display dldp gigabitethernet 3/0/1
Interface GigabitEthernet3/0/1
DLDP port state : advertisement
DLDP link state : up
The neighbor number of the port is 1.
Neighbor mac address : 0000-0000-0100
Neighbor port index : 79
Neighbor state : two way
Neighbor aged time : 13
Table 21 Command output
Field Description
DLDP global status Global DLDP state (enable or disable).
DLDP interval
DLDP work-mode DLDP mode (enhance or normal).
DLDP authentication-mode DLDP authentication mode (none, simple, or md5).
DLDP unidirectional-shutdown
DLDP delaydown-timer Setting of the DelayDown timer.
The number of enabled ports Number of the DLDP-enabled ports.
Interface Index of a DLDP-enable d port.
DLDP port state
Interval for sending Advertisement packets (in seconds) to
maintain neighbor relations.
Port shutdown mode (auto or manual) after unidirectional links are
detected.
DLDP state on a port:
• initial.
• inactive.
• active.
• advertisement.
• probe.
• disable.
• disable (loopback)—The port is in disable state because it
has received loopback packets.
• delaydown.
DLDP link state Port state (up or down).
The neighbor number of the port Current number of neighbors.
the maximum number ever detected is
2
Maximum number of neighbors once detected on the port. This
field appears only when the current number of neighbors is
different from the maximum number of neighbors once detected.
55
Field Description
Neighbor mac address MAC address of the neighbor.
Neighbor port index Neighbor port index.
Neighbor state Neighbor state (unknown, one way, or two way).
Neighbor aged time Neighbor aging time.
display dldp statistics
Use display dldp statistics to display the statistics on the DLDP packets passing through a port.
Syntax
display dldp statistics [ interface-type interface-number ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
interface-type interface-number: Port type and port number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If you do not provide the interface-type interface-number argument, this command displays the
statistics on the DLDP packets passing through all the DLDP-enabled ports.
Examples
# Display the statistics on the DLDP packets passing through all the DLDP-enabled ports.
<Sysname> display dldp statistics
Interface GigabitEthernet3/0/1
Packets sent : 6
Packets received : 5
Invalid packets received : 2
Loop packets received : 0
Authentication failed packets received : 0
Valid packets received : 3
Interface GigabitEthernet3/0/2
Packets sent : 7
Packets received : 7
Invalid packets received : 3
56
Loop packets received : 0
Authentication failed packets received : 0
Valid packets received : 4
# Display the statistics on the DLDP packets passing through GigabitEthernet 3/0 / 1.
<Sysname> display dldp statistics gigabitethernet 3/0/1
Interface GigabitEthernet3/0/1
Packets sent : 6
Packets received : 5
Invalid packets received : 2
Loop packets received : 0
Authentication failed packets received : 0
Valid packets received : 3
Table 22 Command output
Field Description
Interface Port index.
Packets sent Total number of DLDP packets sent.
Packets received Total number of DLDP packets received.
Invalid packets received Number of the invalid packets received.
Loop packets received Number of the loopback packets received.
Authentication failed packets
received
Valid packets received Number of the valid packets received.
dldp authentication-mode
Use dldp authentication-mode to configure DLDP authentication.
Use undo dldp authentication-mode to restore the default.
Number of the received packets that failed to pass the
authentication.
2: System level
Parameters
none: Specifies not to perform authentication.
md5: Specifies the MD5 authentication mode and sets a plaintext or ciphertext password.
simple: Specifies the simple authentication mode and sets a plaintext or ciphertext password.
57
password: Sets the DLDP authentication password. This argument is case sensitive. It must be a
plaintext string of 1 to 16 characters, or a ciphertext string of 33 to 53 characters.
Usage guidelines
To enable DLDP to operate correctly , make sure the DLDP authentication modes and the passwords
configured on the two ends of a link are the same.
For security purposes, all DLDP authentication passwords, including passwords configured in plain
text, are saved in cipher text.
Examples
# Configure the simple authentication mode and set the plaintext password to abc (assuming that
Router A and Router B are connected by a DLDP link).
Use dldp enable to enable DLDP.
Use undo dldp enable to disable DLDP.
58
Syntax
dldp enable
undo dldp enable
Default
DLDP is disabled both globally and on each port.
Views
System view, Ethernet interface view, port group view
Default command level
2: System level
Usage guidelines
When executed in system view, this command enables/disables DLDP globally. When executed in
Ethernet interface view, this command enables/disables DLDP on the current port. When executed
in port group view, this command e nables/disables DLDP on all the ports in the port group.
DLDP can take effect only after you enable it globally and then on a port.
Examples
# Enable DLDP globally, and then enable DLDP on GigabitEthernet 3/0/1.
Use dldp interval to set the interval for sending Advertisement packets.
Use undo dldp interval to restore the default.
Syntax
dldp interval time
undo dldp interval
Default
The interval for sending Advertisement packets is 5 seconds.
Views
System view
Default command level
2: System level
59
Parameters
time: Specifies the interval for sending Advertisement packets, in the range of 1 to 100 (in seconds).
Usage guidelines
This command applies to all DLDP-enabled ports.
Examples
# Set the interval for sending Advertisement packets to 20 seconds.
<Sysname> system-view
[Sysname] dldp interval 20
dldp reset
Use dldp reset to reset DLDP state for ports, thus enabling DLDP down ports to perform
unidirectional link detection.
Syntax
dldp reset
Views
System view, Ethernet interface view, port group view
Default command level
2: System level
Usage guidelines
When executed in system view, this command applies to all ports of the device. When executed in
Ethernet interface view, this command applie s to the current port. When executed in port group view ,
this command applies to all ports in the port group.
Examples
# Reset DLDP state for all ports.
<Sysname> system-view
[Sysname] dldp reset
# Reset DLDP state for port GigabitEthernet 3/0/1.
interface-type interface-number: Port type and port number.
Usage guidelines
If you do not provide the interface-type interface-number argument, this command clears the
statistics on the DLDP packets passing through all the DLDP-enabled ports.
Examples
# Clear the statistics on the DLDP packets passing through all the DLDP-enabled ports.
<Sysname> reset dldp statistics
62
RPR configuration commands
bandwidth
Use bandwidth to set the maximum available bandwidth for the RPR logical interface or RPR
physical port.
bandwidth-value: Maximum available bandwidth, ranging from 1 to 4294967295 (in kbps).
Usage guidelines
The maximum available bandwidth is used by network management to monitor the interface
bandwidth and does not affect the actual bandwidth of the interface. The maximum available
bandwidth can be obtained by querying the ifspeed value from the management information base
(MIB) through the third-party software.
Examples
# Set the maximum available bandwidth to 10000 kbps for Layer 3 RPR logical interface RPR 1.
Use display interface rpr to display the running state and information about an RPR logical
interface.
Syntax
display interface [ rpr ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface rpr interface-number [ brief [ description ] ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
rpr: Displays information about the Layer 3 RPR logical interfaces.
interface-number: Number of an RPR logical interface. It is the number of an existing interface.
brief: Displays brief interface information. If you do not specify this keyword, this command displays
detailed interface information.
description: Displays complete interface description. If you do not specify this keyword, this
command displays only the first 27 characters of the interface description.
down: Displays information about interfaces in DOWN state and the causes. If you do not specify
this keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
64
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If rpr is not specified, this command displays information about all types of interfaces.
If an interface type (rpr) is specified but the interface number (interface-number) is not specified, this
command displays information about RPR logical interfaces of the specified type.
If both the interface type and interface number are specified, this command displays information
about the specific RPR logical interface.
Examples
# Display the information about Layer 3 RPR logical interface RPR 1.
<Sysname> display interface rpr 1
RPR1 current state: UP
Line protocol current state: DOWN
Description: RPR1 Interface
The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 0000-0000-0000
IPv6 Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 0000-0000-0000
Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0
Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0
Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0
Last clearing of counters: Never
# Display the brief information about Layer 3 RPR logical interface RPR 1.
<Sysname> display interface rpr 1 brief
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Main IP Description
RPR1 DOWN DOWN --
# Display the brief information about all Layer 3 RPR logical interfaces in DOWN state.
<Sysname> display interface rpr brief down
The brief information of interface(s) under route mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
RPR1 DOWN Not connected
RPR2 DOWN Not connected
65
Table 23 Command output
Field Description
State of the Layer 3 RPR logical interface:
•DOWN (Administratively)—The interface has been
RPR1 current state
Internet protocol processing :
disabled
administratively shut down with the shutdown command.
•DOWN—The interface is administratively up but physically down,
maybe because no physical link is present or the link has failed.
•UP—The interface is up both administratively and physicall y.
IP packet processing capability.
Disabled indicates that IP packet processing is disabled.
If an IP address is configured for the interface, Internet Address is
displayed for the field.
Internet Address is
192.168.2.1/24 Primary
IP Packet Frame Type Frame type for IPv4 packets.
IPv6 Packet Frame Type Frame type for IPv6 packets.
Output queue : (Urgent
The brief information of
interface(s) under route mode
Link: ADM - administratively
down; Stby - standby
IP address of the RPR logical interface.
Output queue type (urgent queue: packet number/queue
length/discarded packets).
Output queue type (protocol queue: packet number/queue
length/discarded packets).
Output queue type (FIFO queue: packet number/queue length/discarded
packets).
The latest time when the interface statistics were cleared with the
counts interface
have never been cleared.
Brief information about Layer 3 interfaces.
Link status:
•ADM—The interface has been administrativel y shut down. To
recover its physical state, perform the undo shutdown command.
•Stby—The interface is operating as a backup interface. To see the
primary interface, use the display standby state command.
command.
Never
indicates that the interface statistics
reset
Protocol: (s) - spoofing
Interface Abbreviate d interface name.
Link Physical link state of the interface.
Protocol Protocol connection state of the interface.
Main IP Primary IP address of the interface.
Cause Cause of a DOWN physical link.
display interface rprpos
Use display interfacerprpos to display information about an RPR physical port.
If the network layer protocol state of an interface is shown as UP, but its
link is an on-demand link or not present at all, its protocol attribute
includes the spoofing flag (an s in parentheses).
66
Syntax
display interface [ rprpos ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface { rprpos } interface-number [ brief [ description ] ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
rprpos: Displays information about an RPRPOS interface.
interface-number: Number of an RPR physical port.
brief: Displays brief interface information. If you do not specify this keyword, this command displays
detailed interface information.
description: Displays complete interface description. If you do not specify this keyword, this
command displays only the first 27 characters of the interface description.
down: Displays information about interfaces in DOWN state and the causes. If you do not specify
this keyword, this command displays information about interfaces in all states.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If no interface type (rprpos) is specified, this command displays information about all types of
interfaces.
If an interface type (rprpos) is specified but the interface number (interface-number) is not specified,
this command displays information about all RPR physical ports of the specified type.
If both the interface type and interface number are specified, this command displays the information
about the specific RPR physical port.
Examples
# Display information about RPRPOS 2/1/1.
<Sysname> display interface rprpos 2/1/1
RPRPOS2/1/1 current state: DOWN
Line protocol current state: DOWN
Description: RPRPOS2/1/1 Interface
The Maximum Frame Length is 1500
Link delay is 1(sec)
Internet protocol processing : disabled
Physical layer is STM-16/OC-48
Frame-format is SDH, Current baudrate is 2488320000 bps
Clock master, scramble enabled, loopback not set
SD Threshold: 5, SF Threshold: 3
Last clearing of counters: Never
Host receive Packets Bytes
unicast 0 0
multicast 0 0
Line receive Packets Bytes
unicast 0 0
multicast 0 0
Host send Packets Bytes
unicast 0 0
multicast 0 0
Line send Packets Bytes
unicast 0 0
multicast 0 0
Input Errors
parity 0 short 0 crc 0 ringiderr -Output Errors
parity 0 short 0 giant 0 fifo 0
Control Frame In Out
Oam 0 0
Atd 0 0
Tc 0 1
Tp 0 774
Mode Packets Bytes
SaStrip 0 0
TtlDrop 0 0
TxFlood 0 0
RxFlood 0 0
68
Last 5 second Host input : 0.00 packets/sec 0.00 bytes/sec 0.00%
Last 5 second Line input : 0.00 packets/sec 0.00 bytes/sec 0.00%
Last 5 second Host output: 0.00 packets/sec 0.00 bytes/sec 0.00%
Last 5 second Line output: 0.00 packets/sec 0.00 bytes/sec 0.00%
Table 24 Command output
Field Description
Physical state of the RPR physical port:
RPRPOS2/1/1 current
state
Link delay is Delay interval before the interface takes an action for an alarm.
•DOWN (Administratively)—The port has been administratively shut
down with the shutdown command.
• DOWN—The port is administratively up but physically down.
• UP—The port is up both administratively and physically.
Internet protocol
processing
Last clearing of counters
Last 5 second Host input Number of packets received by the host in the last 5 seconds.
Last 5 second Line input Number of packets received by the line in the last 5 seconds.
Last 5 second Host output Number of packets sent by the host in the last 5 seconds.
Last 5 second Line output Number of packets sent by the line in the last 5 seconds.
display rpr bind-info
Use display rpr bind-info to display the binding information of the specified RPR physical port or
RPR logical interface.
Syntax
display rpr bind-info [ { rprpos | rpr } interface-number ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
IP packets processing capability of the interface:
disabled
Latest time when the interface statistics were cleared.
interface statistics have never been cleared.
—The interface does not process IP packets.
Never
indicates that the
Default command level
1: Monitor level
Parameters
{ rprpos | rpr } interface-number: Specifies an RPR physical port or RPR logical interface by its type
and number. I f no RPR physical port or RPR logical interface is specified, this command displays the
binding information of all RPR logical interfaces.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
69
Examples
# Display the binding information of all RPR logical interfaces.
<Sysname> display rpr bind-info
Bind information on interface: RPR1
Smart-connection: Enabled/Connected
PHY-Interface Ringlet-ID Role Mate-Port
-------------------------------------------------- RPRPOS1/0 Ringlet0 Master Up
RPRPOS1/1 Ringlet1 Slave Up
Bind information on interface: RPR2
Smart-connection: Enabled/Connected
PHY-Interface Ringlet-ID Role Mate-Port
Bind information on interface Binding information of an RPR logical interface.
Smart-connection:
Enabled/Connected
PHY-Interface Physical port bound to the RPR logical interface.
Ringlet-ID
Role Role of the physical port. It can be Master, Slave, or N/A.
Mate-Port State of the mate port connected to the physical port.
display rpr defect
Use display rpr defect to display RPR defect information.
State of the RPR mate port smart connection function and connection
state of the mate ports:
•Enabled/Connected—The RPR mate port smart connection
function is enabled, and the mate ports have been connected
internally.
•Enabled/Disconnected—The RPR mate port smart connection
function is enabled, and the mate ports are not connected internally.
•Disabled—The RPR mate port smart connection function is
disabled.
Binding relationship between the physical port and the RPR logical
interface:
• Ringlet0—The physical port is the west interface.
• Ringlet1—The physical port is the east interface.
• N/A—No binding relationship exists.
Syntax
Views
display rpr defect [ rpr interface-number ] [ | { begin | exclude | include } regular-expression ]
Any view
70
Default command level
1: Monitor level
Parameters
rpr interface-number: Specifies an RPR logical interface by its type and number. If no RPR logical
interface is specified, this command displays the RPR defect information of the stations
corresponding to all the RPR logical interfaces on your device.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the ring defect information for RPR logical interface RPR 1.
<Sysname> display rpr defect rpr 1
RPR defects on interface: RPR1
Excess reserved rate defect: ringlet0: 0, ringlet1: 0
Jumbo configuration defect: 0
Maximum number of stations exceeded defect: 0
Miscabling defect: ringlet0: 0, ringlet1: 0
Protection mode configuration defect: 0
Inconsistent topology defect: 0
Topology instability defect: 0
IP address duplicate defect: 0
MAC address duplicate defect: 1
In the output, the value 0 means that no defects are present and 1 means at least a defect is present.
display rpr fairness
Use display rpr fairness to display information about RPR fairness parameters.
Syntax
display rpr fairness [ rpr interface-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
rpr interface-number: Specifies an RPR logical interface by its type and number. If no RPR logical
interface is specified, this command displays the RPR fairness settings of the RPR stations
corresponding to all the RPR logical interfaces on your device.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
71
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the RPR fairness settings for Layer 3 RPR logical interface RPR 1.
<Sysname> display rpr fairness rpr 1
RPR fairness parameters on interface: RPR1
Station's fairness weight on ringlet0: 0
Station's fairness weight on ringlet1: 0
Local reserved bandwidth for class A0 service on ringlet0: 0 Mbps
Local reserved bandwidth for class A0 service on ringlet1: 0 Mbps
Local rate-limiter bandwidth for high priority service on ringlet0: 5 Mbps
Local rate-limiter bandwidth for high priority service on ringlet1: 5 Mbps
Local rate-limiter bandwidth for medium priority service on ringlet0: 0 Mbps
Local rate-limiter bandwidth for medium priority service on ringlet1: 0 Mbps
Local rate-limiter bandwidth for low priority service on ringlet0: 2500 Mbps
Local rate-limiter bandwidth for low priority service on ringlet1: 2500 Mbps
Total reserved bandwidth for class A0 service on ringlet0: 0 Mbps
Total reserved bandwidth for class A0 service on ringlet1: 0 Mbps
# Display the information about RPR fairness parameters for Layer 3 RPR logical interface RPR 2.
<Sysname> display rpr fairness rpr 2
RPR fairness parameters on interface: RPR2
Station's fairness weight on ringlet0: 0
Station's fairness weight on ringlet1: 0
Local reserved bandwidth for class A0 service on ringlet0: 0 in permillage
Local reserved bandwidth for class A0 service on ringlet1: 0 in permillage
Local rate-limiter bandwidth for high priority service on ringlet0: 2 in permillage
Local rate-limiter bandwidth for high priority service on ringlet1: 2 in permillage
Local rate-limiter bandwidth for medium priority service on ringlet0: 0 in permillage
Local rate-limiter bandwidth for medium priority service on ringlet1: 0 in permillage
Local rate-limiter bandwidth for low priority service on ringlet0: 1000 in permillage
Local rate-limiter bandwidth for low priority service on ringlet1: 1000 in permillage
NOTE:
For an RPR logical interface that is not bound to any physical port, the reserved bandwidth for each
class of service is displayed as a permillage of the total bandwidth.
Table 26 Command output
Field Description
Local rate-limiter bandwidth for high priority service
on ringlet0
Local rate-limiter bandwidth for high priority service
on ringlet1
Local rate-limiter bandwidth for medium priority
service on ringlet0
Local rate-limiter bandwidth for medium priority
service on ringlet1
72
Rate limit setting of the local station for the class A1
service on Ringlet 0.
Rate limit setting of the local station for the class A1
service on Ringlet 1.
Rate limit setting of the local station for the class B
CIR service on Ringlet 0.
Rate limit setting of the local station for the class B
CIR service on Ringlet 1.
Field Description
Local rate-limiter bandwidth for low priority service
on ringlet0
Rate limit setting of the local station for the class B
EIR and class C services on Ringlet 0.
Local rate-limiter bandwidth for low priority service
on ringlet1
display rpr protection
Use display rpr protection to display RPR protection information.
Syntax
display rpr protection [ { rpr | rpr-bridge } interface-number ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
{ rpr | rpr-bridge } interface-number: Specifies an RPR logical interface by its type and number . If no
RPR logical interface is specified, this command displays the RPR protection information of all the
RPR stations on your device. Support for the types of RPR logical interfaces depends on the device
model.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
Rate limit setting of the local station for the class B
EIR and class C services on Ringlet 1.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
The protection mode can be configured protection mode and active protection mo de. The configured
protection mode is administratively configured but does not necessarily take effect. RPR
automatically checks the protection modes of all the stations to make sure that the same active
protection mode is used on the ring.
Examples
# Display the protection information of Layer 3 RPR logical interface RPR 1.
<Sysname> display rpr protection rpr1
Protection information on interface: RPR1
Configured protection mode: steer
Active protection mode: steer
Protection reversion mode: revertible
Context containment active: 0
Protection state on the west span: sf
Protection state on the east span: sf
Edge state on the west span: edged
Edge state on the east span: edged
73
Last known neighbour on the west span: 000f-e245-7a43
Last known neighbour on the east span: 000f-e23f-2e80
The number of protections on the west span: 1
The number of protections on the east span: 1
Last protection time on the west span:
Last protection time on the east span:
Protection start time on the west span: 2007.06.12 17:11:43
Protection start time on the east span: 2007.06.12 17:11:43
# Display the protection information of Layer 3 RPR logical interface RPR 2.
<Sysname> display rpr protection rpr2
Protection information on interface: RPR2
Configured protection mode: steer
Protection reversion mode: revertible
NOTE:
For an RPR logical interface not bound with any physical port, this command displays only its
protection mode and protection reversion mode.
Table 27 Command output
Field Description
Protection information on interface
Configured protection mode Protection mode configured administratively.
Active protection mode Protection mode that is taking effect.
Protection reversion mode Protection reversion mode.
Context containment active
Last known neighbour on the west
span
Last known neighbour on the east spanMAC address of the adjacent station on the east.
The number of protections on the west
span
The number of protections on the east
span
Last protection time on the west span
Last protection time on the east span
Protection start time on the west span
RPR protection information of the station corresponding to the
specified interface.
Indicates whether the CC mechanism is taking effect: 0 for active,
1 for inactive.
MAC address of the adjacent station on the west.
Number of protection reversions on the west span.
Number of protection reversions on the east span.
Time when the last protection reversion occurred on the west
span.
Time when the last protection reversion occurred on the east
span.
Starting time of the protection reversion occurring on the west
span.
Protection start time on the east span
display rpr rs-table
Use display rpr rs-table to display information about RPR ringlet selection table.
Starting time of the protection reversion occurring on the east
span.
default: Displays information about the default ringlet selection table.
dynamic: Displays information about the dynamic ringlet selection table.
ipv6: Displays information about the IPv6 ringlet selection table.
overall: Displays information about the overall ringlet selection table.
static: Displays information about the static ringlet selection table.
vrrp: Displays information about the VRRP ringlet selection table.
rpr interface-number: Specifies an RPR logical interface by its type and number. If no RPR logical
interface is specified, this command displays the ringlet selection table information of all the RPR
stations on your device. Support for the types of RPR logical interfaces depends on the device
model.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display information about the dynamic ringlet selection tables of all RPR stations on your device.
Dynamic ringlet selection table of the station corresponding to the
specified interface.
Static ringlet selection table on
interface
MAC-Address Destination MAC address.
Ringlet-ID Sending ringlet: 0 for Ringlet 0, 1 for Ringlet 1.
TTL Time to live. Number of hops for reaching the destination.
IP-Address
Station-Name Name of the destination station.
Status Status of the entry: valid or invalid.
display rpr statistics
Use display rpr statistics to display traffic statistics for the specified or all RPR stations on the
device.
Static ringlet selection table of the station corresponding to the
specified interface.
IP address of the destination. If the destination station has no IP
address, 0.0.0.0 is displayed.
Default command level
1: Monitor level
Parameters
dmac: Displays statistics for traffic sent to destination stations specified by their MAC address.
smac: Displays statistics for traffic received from source stations specified by their source MAC
addresses.
mac-address: Specifies the MAC address of a source or destination station. If the argument is
specified, this command displays statistics about the traffic sent to or received from the specified
station.
rprinterface-number: Specifies an RPR logical interface by its type and number. If no RPR logical
interface is specified, this command displays traffic statistics of all the RPR stations on your device.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display traffic statistics sent out from the station whose MAC address is 00E0-FC00-1A01 on the
ring.
76
<Sysname> display rpr statistics smac 00e0-fc00-1a01
Traffic statistics from the source station on interface: RPR1
MAC-Address Packets Bytes
Traffic statistics from the source station
on interface
Source MAC address-based traffic statistics for the station
corresponding to the specified interface.
Traffic statistics to the destination
station on interface
MAC-Address MAC address of the source or destination station.
display rpr timers
Use displayrpr timers to display RPR timers.
Syntax
display rpr timers [ rpr interface-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
rpr interface-number: Specifies an RPR logical interface by its type and number. If no RPR logical
interface is specified, this command displays the RPR timers for all the RPR stations on your device.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
Destination MAC address-based traffic statistics for the station
corresponding to the specified interface.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the settings of all RPR timers.
<Sysname> display rpr timers
Value of all the timers on interface: RPR1
Fast TP timer: 10 ms
Slow TP timer: 100 ms
Fast TC timer: 10 ms
Slow TC timer: 100 ms
ATD timer: 1 s
WTR timer: 10 s
Holdoff timer: 0 ms
Keepalive timer: 3 ms
77
Topology stability timer: 40 ms
display rpr topology
Use display rpr topology to display RPR topology information.
Syntax
display rpr topology { all | local | ring | stations } [ summary ] [ rpr interface-number ] [ | { begin |
exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
all: Displays all topology information.
local: Displays the topology information of the local station.
ring: Displays the ring topology information.
stations: Displays the topology information of all the stations on the ring.
summary: Displays the RPR topology summary.
rpr interface-number: Specifies an RPR logical interface by its type and number. If no RPR logical
interface is specified, this command displays the topology information of all the RPR stations on your
device.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display all topology information.
<Sysname> display rpr topology all
Ring-level topology information on interface: RPR1
Stations on ringlet0: 1
Stations on ringlet1: 1
Total stations on ring: 2
Jumbo preference: regular
Ring topology type: closed ring
Local station topology information on interface: RPR1
Station name:
Mac address: 00e0-fc00-1001
IP address: 0.0.0.0 Jumbo preference: regular
Active protection mode: steer
Protection state on the west span: idle
Protection state on the east span: idle
78
Edge state on the west span: unedged
Edge state on the east span: unedged
Sequence number: 10
Last known neighbour on the west span: 00e0-fc00-1a01
Last known neighbour on the east span: 00e0-fc00-1a01
Local topology state: valid
Station topology information on interface: RPR1
Station entry on ringlet0
Mac address: 00e0-fc00-1a01
Station name:
IP address: 0.0.0.0 Hops: 1
Jumbo preference: regular
Protection mode: steer
Protection state on the west span: idle
Protection state on the east span: idle
Edge state on the west span: unedged
Edge state on the east span: unedged
Sequence number: 9
Reachability: reachable
Valid: 1
Station entry on ringlet1
Mac address: 00e0-fc00-1a01
Station name:
IP address: 0.0.0.0 Hops: 1
Jumbo preference: regular
Protection mode: steer
Protection state on the west span: idle
Protection state on the east span: idle
Edge state on the west span: unedged
Edge state on the east span: unedged
Sequence number: 9
Reachability: reachable
Valid: 1
# Display the topology information of the RPR station corresponding to Layer 3 RPR logical interface
RPR 2.
<Sysname> display rpr topology all rpr 2
Ring-level topology information on interface: RPR2
Stations on ringlet0: 0
Stations on ringlet1: 0
Total stations on ring: 1
Jumbo preference: regular
Ring topology type: open ring
Local station topology information on interface: RPR2
Station name:
79
IP address: 0.0.0.0
Station topology information on interface: RPR2
Table 30 Command output
Field Description
Ring-level topology information on
interface
Stations on ringlet0 Number of stations on the west span.
Stations on ringlet1 Number of stations on the east span.
Total stations on ring Total number of stations on the ring.
Jumbo preference
Ring topology type Ring status: open ring or closed ring.
Ring topology information of the station corresponding to the
specified interface.
Indicates whether Jumbo frames are supported:
• regular—Not supported.
• jumbo—Supported.
Local station topology information on
interface
Local topology information of the station corresponding to the
interface.
Hops Number of hops from the specific station to the local station.
Protection mode:
Active protection mode
• wrap—Wrapping mode.
• steer—Steering mode.
Protection state on the west span:
• fs—Forced switch.
• sf—Signal fail.
Protection state on the west span
• sd—Signal degrade.
• ms—Manual switch.
• wtr—Wait to restore.
• idle.
Protection state on the east span:
• fs—Forced switch.
• sf—Signal fail.
Protection state on the east span
• sd—Signal degrade.
• ms—Manual switch.
• wtr—Wait to restore.
• idle.
Sequence number Sequence number of the TP frame.
Last known neighbour on the west
span
MAC address of the last learned neighbor on the west span.
Last known neighbour on the east spanMAC address of the last learned neighbor on the east span.
Local topology state Start (for topology initializing), stable, unstable, valid, or invalid.
Station topology information on
interface
Topology information of other RPR stations on the ring.
Station entry on ringlet0 Topology information of the neighbor on the west span.
Station entry on ringlet1 Topology information of the neighbor on the east span.
Valid Status of the entry: 1 (valid) or 0 (invalid).
80
# Display the RPR topology summary.
<Sysname> display rpr topology all summary
Topology information items
Psw:protection state, west Pse:protection state, east
Esw:edge state, west Ese:edge state, east
Wc:wrap protection configured Jp:jumbo frame preferred
Ring-level topology information on interface: RPR1
Ringlet0 Ringlet1 Ring Jumbo-Prefer Topology-Type
------------------------------------------------ 1 1 2 Regular Closed ring
Local station topology information on interface: RPR1
MAC-Address Psw Pse Esw Ese Wc Jp IP-Address Station-Name
Topology information items Items of topology information.
Protection state of the east span:
• Fs—Forced switch.
• Sf—Signal fail.
Pse:protection state, east
Psw:protection state, west
Ese:edge state, east
• Sd—Signal degrade.
• Ms—Manual switch.
• Wtr—Wait to restore.
• Idle.
Protection state of the west span:
• Fs—Forced switch.
• Sf—Signal fail.
• Sd—Signal degrade.
• Ms—Manual switch.
• Wtr—Wait to restore.
• Idle.
Edge state of the east span:
• 1—An edge has been detected.
• 0—No edge has been detected.
81
Field Description
Edge state of the west span:
Esw:edge state, west
Wc:wrap protection configured
Jp:jumbo frame preferred
• 1—An edge has been detected.
• 0—No edge has been detected.
Wrap protection mode configured:
• 1—Wrapping mode.
• 0—Steering mode.
Indicates whether Jumbo frames are supported:
• 1—Supported.
• 0—Not supported.
Ring-level topology information on
interface
Topology information of the RPR station corresponding to the
specific interface.
Ringlet0 Number of stations on the west span.
Ringlet1 Number of stations on the east span.
Ring Total stations on the ring.
Indicates whether Jumbo frames are supported:
Jumbo-Prefer
• Regular—Not supported.
• Jumbo—Supported.
Topology-Type Ring status, either open ring or closed ring.
Local station topology information on
interface
Summary of local topology information of the station that
corresponds to the interface.
MAC-Address MAC address of the station.
IP-Address IP address of the station.
Station-Name Station name.
Station topology information on
interface
Topology summary for the other stations on the same ring to
which the specified interface belongs.
Station entry on ringlet0 Topology summary for the neighbor stations on the west span.
Station entry on ringlet1 Topology summary for the neighbor stations on the east span.
# Display the topology information of the local station.
<Sysname>display rpr topology local
Local station topology information on interface: RPR1
Station name:StationB
Mac address: 00e0-fc00-1001
IP address: 0.0.0.0 Jumbo preference: regular
Active protection mode: steer
Protection state on the west span: idle
Protection state on the east span: idle
Edge state on the west span: unedged
Edge state on the east span: unedged
Sequence number: 10
Last known neighbour on the west span: 00e0-fc00-1a01
Last known neighbour on the east span: 00e0-fc00-1a01
Local topology state: valid
82
Table 32 Command output
Field Description
Local station topology information on
interface
Mac address MAC address of the station.
Station name Station name.
IP address IP address of the station.
Jumbo preference
Sequence number Sequence number of the TP frame.
Topology information of the local stations mapping to the logical
interfaces of the device.
Indicates whether Jumbo frames are supported:
• regular—Not supported.
• jumbo—Supported.
Last known neighbour on the west
span
MAC address of the last learned neighbor on the west span.
Last known neighbour on the east spanMAC address of the last learned neighbor on the east span.
Local topology state Start (for topology initializing), stable, unstable, valid, or invalid.
# Display the ring-level topology information.
<Sysname>display rpr topology ring
Ring-level topology information on interface: RPR1
Stations on ringlet0: 1
Stations on ringlet1: 1
Total stations on ring: 2
Jumbo preference: regular
Ring topology type: closed ring
Table 33 Command output
Field Description
Ring-level topology information on
interface
Stations on ringlet0 Number of stations on the west span.
Stations on ringlet1 Number of stations on the east span.
Ring topology information of the station that corresponds to the
specified interface.
Total stations on ring Total stations on the ring.
Indicates whether Jumbo frames are supported:
Jumbo preference
• regular—Not supported.
• jumbo—Supported.
Ring topology type Ring status, either open ring or closed ring.
# Display all the station topology information on the ring.
<Sysname>display rpr topology stations
Station topology information on interface: RPR1
Station entry on ringlet0
Mac address: 00e0-fc00-1a01
Station name:StationA
IP address: 0.0.0.0 Hops: 1
Jumbo preference: regular
83
Protection mode: steer
Protection state on the west span: idle
Protection state on the east span: idle
Edge state on the west span: unedged
Edge state on the east span: unedged
Sequence number: 9
Reachability: reachable
Valid: 1
Station entry on ringlet1
Mac address: 00e0-fc00-1a01
Station name:StationB
IP address: 0.0.0.0 Hops: 1
Jumbo preference: regular
Protection mode: steer
Protection state on the west span: idle
Protection state on the east span: idle
Edge state on the west span: unedged
Edge state on the east span: unedged
Sequence number: 9
Reachability: reachable
Valid: 1
Table 34 Command output
Field Description
Station topology information on
interface
Station entry on ringlet0 Topology information of the neighbor o n the west span.
Station entry on ringlet1 Topology information of the neighbor on the east span.
MAC-Address MAC address of the station.
Station name Station name.
IP address IP address of the station.
Hops Number of hops from the specified station to the local station.
Jumbo preference
Sequence number Sequence number of the TP frame.
Valid Status of the entry: 1 (valid) or 0 (invalid).
NOTE:
Topology information of other RPR stations.
Indicates whether Jumbo frames are supported:
• regular—Not supported.
• jumbo—Supported.
For an RPR logical interface not bound to any RPR physical port, the display rpr topology local
command displays only the station name and station IP address, and the display rpr topology stations command displays nothing.
84
display rpr vrrp-info
Use display rpr vrrp-info to display RPR VRRP standby group information.
Syntax
display rpr vrrp-info [ rpr interface-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
rpr interface-number: Specifies an RPR logical interface by its type and number. If no RPR logical
interface is specified, this command displays the VRRP standby group information of all the RPR
stations on your device.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifi es a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
For more information about VRRP, see High Availability Configuration Guide.
Examples
# Display VRRP standby group information of RPR.
<Sysname> display rpr vrrp-info
VRRP info on interface: RPR1
Index Virtual-Group Status MAC-Address
The C2 byte value of an RPRPOS interface is 0x16, and the SDH J0 and J1 byte values are null.
RPRPOS interface view
85
Default command level
2: System level
Parameters
c2 flag-value: Specifies the path signal label byte. It is a hexadecimal number in the range of 0x00 to
0xFF.
sdh: Sets the framing format to synchronous digital hierarchy (SDH).
sonet: Sets the framing format to synchronous optical network (SONET).
j0 flag-value: Specifies the regeneration section trace message. If the sdh keyword is configured,
the flag-value argument is a string of 1 to 15 characters. If the sonet keyword is configured, the
argument is a hexadecimal number in the range of 0x00 to 0xFF.
j1 flag-value: Specifies the higher-Order VC-N path trace byte. If the sdh keyword is configured, the
flag-value argument is a string of 1 to 15 characters. If the sonet keyword is configured, the
argument is a string of 1 to 62 characters.
Usage guidelines
Inconsistency between the c2 and j1 settings of the sending and receiving interfaces causes alarms.
The J0 byte can be any character in the network of the same carrier. If networks of two carriers are
involved, however, the sending and rece iving devices at network borders must use the same J0 byte.
With the J0 byte, operators can detect and troubleshoot faults in advance or use l ess time to recover
networks.
Examples
# Set the framing format on interface RPRPOS 2/1/1 to SONET, and set the SONET overhead byte
J0 of RPRPOS 2/1/1 interface to 0xFF.
Use mtu to configure the MTU for the Layer 3 RPR logical interface.
Use undo mtu to restore the default.
Syntax
mtu size
undo mtu
Default
The MTU of a Layer 3 RPR logical interface is 1500 bytes.
Views
Layer 3 RPR logical interface view
Default command level
2: System level
Parameters
size: Specifies an Maximum Transmission Unit (MTU) value. The value range is 128 to 9600 bytes.
The maximum MTU configurable on an interface might be lower than 9600 bytes depending on the
device model, interface module model, and interface type.
88
Examples
# Configure the MTU of Layer 3 RPR logical interface RPR 1 as 1492.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] mtu 1492
Related commands
display interface rpr
reset counters interface rpr
Use reset counters interfacerpr to clear statistics of the specified RPR logical interfaces.
rpr: Clears statistics of the RPR logical interfaces.
interface-number: Number of the RPR logical interface. It is the number of an existing interface.
Usage guidelines
T o collect stat istics of an RPR logical interface within a specific period, you must clear statistics of the
interface before starting statistics collection.
If you do not specify rpr, this command clears the statistics of all interfaces.
If you specify the rpr keyword but not the interface-number argument, this command clears the
statistics of all RPR logical interfaces.
If you specify the rpr keyword and the interface-number argument, this command clears the
statistics of the specified RPR logical interface.
Examples
# Clear the statistics of Layer 3 RPR logical interface RPR 1.
<Sysname> reset counters interface rpr 1
reset counters interface rprpos
Use reset counters interface to clear statistics of the specified RPR physical ports.
interface-number: Specifies the number of an RPR physical port for which statistics are to be
cleared.
Usage guidelines
T o coll ect statistics of an RPR physical port within a specific period, you need to clear statistics of the
port before starting statistics collection.
If you do not specify the rprpos keyword, this command clears the statistics of all ports.
If you specify the rprpos keyword but not the interface-number argument, this command clears the
statistics of all RPRPOS ports.
If you specify the rprpos keyword and the interface-number argument, this command clears the
statistics of the specified RPRPOS port.
Examples
# Clear the statistics of RPR physical port RPRPOS 2/1/1.
<Sysname> reset counters interface rprpos 2/1/1
reset rpr protection statistics
Use reset rpr protection statistics to clear RPR protection events statistics.
rpr interface-number: Specifies an RPR logical interface by its type and number. If no RPR logical
interface is specified, the RPR protection events statistics for the RPR stations corresponding to all
the RPR logical interfaces on your device are cleared.
Examples
# Clear all RPR protection events statistics.
<Sysname> reset rpr protection statistics
rpr admin-request
Use rpr admin-request to send an RPR protection request on the specified ri nglet.
fs: Sends a forced switch (FS) protection request.
idle: Sends an idle protection request.
ms: Sends a manual switch (MS) protection request.
ringlet0: Sends a protection request on Ringlet 0.
ringlet1: Sends a protection request on Ringlet 1.
Usage guidelines
Six types of protection requests, FS, signal fail (SF), signal degrade (SD), MS, wait to restore (WT R),
and idle, are available with decreased priorities. Among them, FS and MS requests are sent
manually, whereas SF, SD, and WTR requests are sent automatically.
•Use the rpr admin-request fs command to send an FS protection request. As the FS request
takes priority over all other requests, you can remove it from the RPR ring only with the rpr admin-request idle command.
•Use the rpr admin-request ms command to send an MS protection request. As the priority of
the MS request is the lowest, RPR ring does not perform MS switching if any other type of
protection request is present. On the contrary, the FS, SF, or SD reque st can override the MS
request.
•Use the rpr admin-request idle command to clear the FS or MS protection request.
Examples
# Configure Layer 3 RPR logical interface RPR 1 to send an FS protection request on Ri nglet 0.
rprpos interface-number: Specifies an RPR physical port by its type and number.
rpr interface-number: Specifies an RPR logical interface by its type and number.
ringlet0: Uses the RPR physical port that receives data frames on Ringlet 0 and sends data frames
on Ringlet 1 as the west port of the current or specified RPR logical interface.
ringlet1: Uses the RPR physical port that sends data frames on Ringlet 0 and receives data frames
on Ringlet 1 as the east port of the current or specified RPR logical interface.
Usage guidelines
An RPR logical interface can be bound with two RPR physical ports, and an RPR physical port can
be bound with only one RPR logical interface.
For an RPR station to operate correctly, an RPR logical interface must be bound with at least one
RPR physical port.
Each RPR physical port is accompanied by a mate port. For an RP R station to operate correctly, you
must use optical fibers to connect the mate ports of the two RPR physical ports bound with its
corresponding RPR logical interface.
Examples
# Configure RPR physical port RPRPOS 2/1/1 as the west port of Layer 3 RPR logical interface RPR
Five Echo Request packets are sent. It is the default ringlet in use that sends Echo Response
packets and Echo Request packets. The response timeout time is 10 milliseconds.
Views
Layer 3 RPR logical interface view
Default command level
2: System level
Parameters
mac-address: Tests the connectivity to the station identified by the MAC address.
-c c-value: Specifies the number of Echo Requests to be sent for testing connectivity, in the range of
1 to 1000.
-r: Specifies the ringlet for the destination to send Echo Respo nses. It could be ringlet0, ringlet1, or
reverse. If the reverse keyword is specified, the destination station is expected to send Echo
Reponses from the ringlet different from the one from which it receives Echo Requests. For example,
if the destination station receives Echo Requests from Ringlet 0, it should send out Echo Responses
onto Ringlet 1.
-s: Specifies the ringlet for sending Echo Requests, either ringlet0 or ringlet1.
-t t-value: Specifies the echo response timeout in the range of 10 to 65535 milliseconds. If it is not
specified, the default of 10 milliseconds applies.
Usage guidelines
If neither the sending ringlet nor the receiving ringlet is specified, the default ringlet in use will be
used for transmitting Echo Request packets and Echo Response packets.
The connectivity between the current station and a peer station is considered normal only when the
connections between the two stations operate correctly on both the sending ringlet and the receiving
ringlet. The peer station can receive Echo Request packets from the current node on a specific
ringlet and the current station can receive Echo Response packets from the peer station on a specific
ringlet. Otherwise, the connections between the current station and the peer station are considered
faulty.
93
Examples
# Test the connectivity between the current station and the station with MAC address
0012-3F83-A1E3, and specify ringlet 0 as the sending ringlet and rin glet 1 as the receiving ringlet on
Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr echo mac 0012-3F83-A1E3 -s ringlet0 -r ringlet1
PING 0012-3F83-A1E3: press CTRL+C to break
Reply from 0012-3F83-A1E3: ringlet=1 hops=1 seq=2 time=1 ms
Reply from 0012-3F83-A1E3: ringlet=1 hops=1 seq=3 time=1 ms
Reply from 0012-3F83-A1E3: ringlet=1 hops=1 seq=4 time=1 ms
Reply from 0012-3F83-A1E3: ringlet=1 hops=1 seq=5 time=1 ms
Reply from 0012-3F83-A1E31: ringlet=1 hops=1 seq=6 time=1 ms
--- echo 0012-3F83-A1E3 statistics ---
100 packet(s) transmitted
100 packet(s) received
0.0% packet loss
round-trip min/avg/max = 1/1/16 ms
rpr mate smart-connect
Use rpr mate smart-connect to enable the RPR mate port smart connection function.
Use undo rpr mate smart-connect to disable the function.
When the two RPR physical ports are on the same subcard—in centralized RPR, you can enable
RPR mate port smart connection. With the function enabled, RPR automatically connects the two
mate ports without you having to connect them manually.
Examples
# Enable RPR mate port smart connection on Layer 3 RPR logical interface RPR 1.