- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-RPR Commands | 208.15 KB |
Contents
display interface { rprpos | rprxge }
reset counters interface { rprpos | rprxge }
reset rpr protection statistics
default
Syntax
default
View
Layer 3 RPR logical interface view, RPR POS interface view, RPR XGE interface view
Default level
2: System level
Parameters
None
Description
Use the default command to restore the default settings for the interface.
This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. You can use the display this command in interface view to check for these commands, and perform their undo forms or follow the command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message to resolve the problem.
|
CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you perform it on a live network. |
Examples
# Restore the default settings for Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] default
This command will restore the default settings. Continue? [Y/N]:y
# Restore the default settings for RPR physical port RPRPOS 2/1/1.
<Sysname> system-view
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1] default
This command will restore the default settings. Continue? [Y/N]:y
# Restore the default settings for RPR physical port RPRXGE 3/1/1.
<Sysname> system-view
[Sysname] interface rprxge 3/1/1
[Sysname-RPRXGE3/1/1] default
This command will restore the default settings. Continue? [Y/N]:y
description
Syntax
description text
undo description
View
Layer 3 RPR logical interface view, RPR POS interface view, RPR XGE interface view
Default level
2: System level
Parameters
text: Description information of an RPR logical interface or RPR physical port, a string of 1 to 80 characters.
Description
Use the description command to set the description of the current RPR logical interface or RPR physical port.
Use the undo description command to restore the default.
By default, the description of an RPR logical interface or RPR physical port is interface-name Interface, for example, RPR1 Interface.
Related commands: display interface rpr and display interface { rprpos | rprxge }.
Examples
# Configure the description of Layer 3 RPR logical interface RPR 1 as RPR-1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] description RPR-1
# Configure the description of RPR physical port RPRPOS 2/1/1 as RPRPOS-1.
<Sysname> system-view
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1] description RPRPOS-1
# Configure the description of RPR physical port RPRXGE 3/1/1 as RPRXGE-1.
<Sysname> system-view
[Sysname] interface rprxge 3/1/1
[Sysname-RPRXGE3/1/1] description RPRXGE-1
display interface rpr
Syntax
display interface [ rpr ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface rpr interface-number [ brief ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
rpr: Displays information about the Layer 3 RPR logical interface(s).
interface-number: Number of an RPR logical interface.
brief: Displays brief interface information. If you do not specify this keyword, this command displays detailed interface information.
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: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display interface rpr command to display the running state and information about an RPR logical interface.
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: 0023-8957-b900
IPv6 Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 0023-8957-b900
Port priority: 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
Table 1 Output description
Field |
Description |
RPR1 current state |
State of the Layer 3 RPR logical interface: · DOWN (Administratively)—The interface has been 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 physically. |
Internet protocol processing : disabled |
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 address of the RPR logical interface. |
IP Packet Frame Type |
Frame type for IPv4 packets. |
IPv6 Packet Frame Type |
Frame type for IPv6 packets. |
Last clearing of counters: Never |
The latest time when the interface statistics were cleared with the reset counts interface command. Never indicates that the interface statistics have never been cleared. |
The brief information of interface(s) under route mode |
Brief information about Layer 3 interfaces. |
Link: ADM - administratively down; Stby - standby |
Link status: · ADM—The interface has been administratively 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. |
Protocol: (s) - spoofing |
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). |
Interface |
Abbreviated interface name. |
Link |
Physical link state of the interface. |
Protocol |
Protocol connection state of the interface. |
Main IP |
The main IP address of the interface. |
Cause |
The cause of a DOWN physical link. |
display interface { rprpos | rprxge }
Syntax
display interface [ rprpos | rprxge ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface { rprpos | rprxge } interface-number [ brief ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
rprpos: Displays information about an RPR POS interface.
rprxge: Displays information about an RPR XGE 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.
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: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display interface command to display information about an RPR physical port.
If no interface type (rprpos or rprxge) is specified, this command displays information about all types of interfaces.
If an interface type (rprpos or rprxge) 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 RPRPOS2/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 9216
Internet protocol processing : disabled
Optical module state: Absent
Physical layer is packet over SDH
Port speed type: STM-16
Clock source: Master
Clock grade: Quality unknown(existing synchronization network)
BER thresholds:
SD: 10e-5 SF: 10e-3
Regenerator section layer:
J0(TX): ""
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
J0(RX): ""
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Alarm: LOS
Error: 0 BIP(B1)
Multiplex section layer:
Alarm: NONE
Error: 0 BIP(B2), 0 REI(M1)
Higher order path layer:
C2(TX): 0x1 C2(RX): 0xff
J1(TX): "?
89 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
89 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
89 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
89 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
J1(RX): ""
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Alarm: TIM SLM
Error: 0 BIP(B3), 0 REI(G1)
-- PJE, -- NJE
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 0
Tp 0 0
Mode Packets Bytes
SaStrip -- --
TtlDrop 0 --
TxFlood 0 0
RxFlood 0 0
Last 300 second Host input : 0 packet/sec 0 byte/sec 0%
Last 300 second Line input : 0 packet/sec 0 byte/sec 0%
Last 300 second Host output: -- packet/sec -- byte/sec --%
Last 300 second Line output: 0 packet/sec 0 byte/sec 0%
Host peak value of input: 0 bytes/sec, at 0000-00-00 00:00:00
Line peak value of input: 0 bytes/sec, at 0000-00-00 00:00:00
Host peak value of output: -- bytes/sec, at 0000-00-00 00:00:00
Line peak value of output: 0 bytes/sec, at 0000-00-00 00:00:00
Table 2 Output description
Field |
Description |
RPRPOS2/1/1 current state |
Physical state of the RPR physical port: · DOWN (Administratively)—Indicates that the port has been administratively shut down with the shutdown command. · DOWN—Indicates that the port is administratively up but physically down. · UP—Indicates that the port is up both administratively and physically. |
Internet protocol processing |
IP packets processing capability of the interface: Disabled means the interface does not process IP packets. |
Clock source |
Clocking mode of the interface. |
Clock grade |
Clock grade of the interface. |
BER thresholds |
Signal degrade (SD) and signal fail (SF) thresholds of the interface. |
C2(Rx) |
Received C2 byte value. |
C2(Tx) |
Sent C2 byte value. |
J0(RX): "" |
Received J0 trace message value. |
J0(TX): "" |
Sent J0 trace message value. |
J1(Rx): "" |
Received J1 trace message value. |
J1(Tx): "" |
Sent J1 trace message value. |
Regenerator section layer |
Alarm and error statistics for the regenerator section. |
Multiplex section layer |
Alarm and error statistics for the multiplex section. |
Higher order path layer |
Alarm and error statistics for the higher order path. |
short |
Number of undersized packets. |
ringiderr |
Count of packets on a wrong ringlet. |
SaStrip |
Number of strips at the source station. |
TtlDrop |
Number of strips due to TTL expiration. |
TxFlood |
Number of transmitted broadcasts. |
RxFlood |
Number of received broadcasts. |
display rpr bind-info
Syntax
display rpr bind-info [ { rprpos | rprxge | rpr } interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
{ rprpos | rprxge | rpr } interface-number: Specifies an RPR physical port or logical interface by its type and number. If no RPR physical port or logical interface is specified, this command displays the binding information of all RPR physical ports or 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: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display rpr bind-info command to display the binding information of the specified RPR physical port or logical interface.
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
---------------------------------------------------
RPRPOS7/1/1 Ringlet0 Master Up
RPRPOS7/1/2 Ringlet1 Slave Up
Bind information on interface: RPR2
Smart-connection: Enabled/Disconnected
PHY-Interface Ringlet-ID Role Mate-Port
---------------------------------------------------
None N/A N/A N/A
None N/A N/A N/A
Table 3 Output description
Field |
Description |
Bind information on interface |
Binding information of an RPR logical interface. |
Smart-connection: Enabled/Connected |
The enable state of the RPR mate port smart connection function and the 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. |
PHY-Interface |
A physical port bound to the RPR logical interface. |
Ringlet-ID |
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. |
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
Syntax
display rpr defect [ rpr interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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 router.
|: 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: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display rpr defect command to display RPR defect information.
Examples
# Display the ring defect information for Layer 3 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
Syntax
display rpr fairness [ rpr interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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 router.
|: 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: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display rpr fairness command to display information about RPR fairness parameters.
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 4 Output description
Field |
Description |
Local rate-limiter bandwidth for high priority service on ringlet0 |
The rate limit setting of the local station for the class A1 service on Ringlet 0 |
Local rate-limiter bandwidth for high priority service on ringlet1 |
The rate limit setting of the local station for the class A1 service on Ringlet 1 |
Local rate-limiter bandwidth for medium priority service on ringlet0 |
The rate limit setting of the local station for the class B CIR service on Ringlet 0 |
Local rate-limiter bandwidth for medium priority service on ringlet1 |
The rate limit setting of the local station for the class B CIR service on Ringlet 1 |
Local rate-limiter bandwidth for low priority service on ringlet0 |
The 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 |
The rate limit setting of the local station for the class B EIR and class C services on Ringlet 1 |
display rpr protection
Syntax
display rpr protection [ rpr interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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 protection information of all the RPR stations on your router.
|: 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: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display rpr protection command to display RPR protection information.
The protection mode can be configured protection mode and active protection mode. 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
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 5 Output description
Field |
Description |
Protection information on interface |
RPR protection information of the station corresponding to the specified 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 |
Indicates whether the CC mechanism is taking effect: 0 for active, 1 for inactive. |
Last known neighbour on the west span |
MAC address of the adjacent station on the west. |
Last known neighbour on the east span |
MAC address of the adjacent station on the east. |
The number of protections on the west span |
Number of protection reversions on the west span. |
The number of protections on the east span |
Number of protection reversions on the east span. |
Last protection time on the west span |
Time when the last protection reversion occurred on the west span. |
Last protection time on the east span |
Time when the last protection reversion occurred on the east span. |
Protection start time on the west span |
Starting time of the protection reversion occurring on the west span. |
Protection start time on the east span |
Starting time of the protection reversion occurring on the east span. |
display rpr rs-table
Syntax
display rpr rs-table { default | dynamic | overall | static } [ rpr interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
default: Displays information about the default ringlet selection table.
dynamic: Displays information about the dynamic ringlet selection table.
overall: Displays information about the overall ringlet selection table.
static: Displays information about the static 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 router.
|: 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: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display rpr rs-table command to display information about RPR ringlet selection table.
Examples
# Display information about the dynamic ringlet selection tables of all RPR stations on your router.
<Sysname> display rpr rs-table dynamic
Dynamic ringlet selection table on interface: RPR1
MAC-Address Ringlet-ID TTL IP-Address Station-Name
-----------------------------------------------------------------------
00e0-fc00-1a01 Ringlet0 1 0.0.0.0
--- Total entrie(s): 1 ---
# Display information about the static ringlet selection tables of all RPR stations on your router.
<Sysname> display rpr rs-table static
Static ringlet selection table on interface: RPR1
MAC-Address Ringlet-ID Status
-----------------------------------
0003-0002-0002 Ringlet0 Invalid
--- Total entrie(s): 1 ---
Table 6 Output description
Field |
Description |
Dynamic ringlet selection table on interface |
Dynamic ringlet selection table of the station corresponding to the specified interface. |
Static ringlet selection table on interface |
Static ringlet selection table of the station corresponding to the specified interface. |
MAC-Address |
Destination MAC address. |
Ringlet-ID |
Sending ringlet: 0 for Ringlet 0, 1 for Ringlet 1. |
TTL |
|
IP-Address |
IP address of the destination. If the destination station has no IP address, 0.0.0.0 is displayed. |
Station-Name |
Name of the destination station. |
Status |
Status of the entry: valid or invalid. |
display rpr timers
Syntax
display rpr timers [ rpr interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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 router.
|: 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: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display rpr timer command to display RPR timers.
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
Topology stability timer: 40 ms
display rpr topology
Syntax
display rpr topology { all | local | ring | stations } [ summary ] [ rpr interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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 router.
|: 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: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display rpr topology command to display RPR topology information.
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: RPR 1
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
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: 000f-e200-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:
IP address: 0.0.0.0
Station topology information on interface: RPR2
Table 7 Output description
Field |
Description |
Ring-level topology information on interface |
Ring topology information of the station corresponding to the specified 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 |
Indicates whether Jumbo frames are supported: · Regular—Not supported. · Jumbo—Supported. |
Ring topology type |
Ring status: open ring or closed ring. |
Local station topology information on interface |
Local topology information of the station corresponding to the interface. |
Active protection mode |
Protection mode: · wrap—Wrapping mode. · steer—Steering mode. |
Protection state on the west span |
Protection state on the west span: · fs—Forced switch. · sf—Signal fail. · sd—Signal degrade. · ms—Manual switch. · wtr—Wait to restore. · Idle. |
Protection state on the east span |
Protection state on the east span: · fs—Forced switch. · sf—Signal fail. · sd—Signal degrade. · ms—Manual switch. · wtr—Wait to restore. · idle. |
Hops |
Number of hops from the specific station to the local station. |
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 span |
MAC address of the last learned neighbor on the east span. |
Local topology state |
It could be 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: valid or invalid. |
# 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
---------------------------------------------------------------------
00e0-fc00-1001 Idle Idle 0 0 0 0 0.0.0.0 StationA
Station topology information on interface: RPR1
Station entry on ringlet0
MAC-Address Psw Pse Esw Ese Wc Jp IP-Address Station-Name
---------------------------------------------------------------------
00e0-fc00-1a01 Idle Idle 0 0 0 0 0.0.0.0 StationB
Station entry on ringlet1
MAC-Address Psw Pse Esw Ese Wc Jp IP-Address Station-Name
---------------------------------------------------------------------
00e0-fc00-1a01 Idle Idle 0 0 0 0 0.0.0.0 StationB
Table 8 Output description
Field |
Description |
Topology information items |
Items of topology information. |
Pse:protection state, east |
Protection state of the east span: · Fs—Forced switch. · Sf—Signal fail. · Sd—Signal degrade. · Ms—Manual switch. · Wtr—Wait to restore. · Idle. |
Psw:protection state, west |
Protection state of the west span: · Fs—Forced switch. · Sf—Signal fail. · Sd—Signal degrade. · Ms—Manual switch. · Wtr—Wait to restore. · Idle. |
Ese:edge state, east |
Edge state of the east span: · 1—An edge has been detected. · 0—No edge has been detected. |
Esw:edge state, west |
Edge state of the west span: · 1—An edge has been detected. · 0—No edge has been detected. |
Wc:wrap protection configured |
Wrap protection mode configured: · 1—Wrapping mode. · 0—Steering mode. |
Jp:jumbo frame preferred |
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. |
Jumbo-Prefer |
Indicates whether Jumbo frames are supported: · Regular—Not supported. · Jumbo—Supported. |
Topology-Type |
Ring status: 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: StationA
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
Table 9 Output description
Field |
Description |
Local station topology information on interface |
Topology information of the local stations mapping to the logical interfaces of the router. |
Mac address |
MAC address of the station. |
Station name |
Station name. |
IP address |
IP address of the station. |
Jumbo preference |
Indicates whether Jumbo frames are supported: · Regular—Not supported. · Jumbo—Supported. |
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 span |
MAC address of the last learned neighbor on the east span. |
Local topology state |
It could be 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 10 Output description
Field |
Description |
Ring-level topology information on interface |
Ring topology information of the station that corresponds to the specified 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 stations on the ring |
Jumbo preference |
Indicates whether Jumbo frames are supported: · Regular—Not supported · Jumbo—Supported |
Ring topology type |
Ring status: 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
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 11 Output description
Field |
Description |
Station topology information on interface |
Topology information of other RPR stations. |
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 |
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 |
Indicates whether Jumbo frames are supported: · Regular—Not supported · Jumbo—Supported |
Sequence number |
Sequence number of the TP frame |
Valid |
Status of the entry: valid or invalid |
|
NOTE: 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. |
flag
Syntax
flag { c2 | { j0 | j1 } { sdh | sonet } } flag-value
undo flag { c2 | { j0 | j1 } { sdh | sonet } }
View
RPR POS interface view
Default 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.
Use the flag command to set the overhead bytes of the interface.
Use the undo flag command to restore the default.
By default, the C2 byte value of an RPR POS interface is 0x16, and the SDH J0 and J1 byte values are null.
|
NOTE: · 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 receiving devices at network borders must use the same J0 byte. With the J0 byte, operators can detect and troubleshoot faults in advance or use less time to recover networks. |
Examples
# Set the SONET overhead byte J0 of RPRPOS2/1/1 interface to 0xFF.
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1] flag j0 sonet ff
frame-format
Syntax
frame-format { sdh | sonet }
undo frame-format
View
RPR POS interface view
Default level
2: System level
Parameters
sdh: Sets the framing format to SDH.
sonet: Sets the framing format to SONET.
Description
Use the frame-format command to set the framing format on the interface.
Use the undo frame-format command to restore the default.
By default, the framing format is SDH.
Examples
# Set the framing format on interface RPRPOS2/1/1 to SONET.
<Sysname> system-view
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1] frame-format sonet
interface rpr
Syntax
interface rpr interface-number
undo interface rpr interface-number
View
System view
Default level
2: System level
Parameters
rpr: Specifies a Layer 3 RPR logical interface.
interface-number: Number of the RPR logical interface, in the range of 0 to 15.
Description
Use the interface rpr command to create an RPR logical interface and enter RPR logical interface view.
Use the undo interface rpr command to remove an RPR logical interface.
If the specified RPR logical interface does not exist, executing this command first creates an RPR logical interface and then enters its view.
You cannot delete an RPR logical interface bound to RPR physical ports.
Examples
# Create a Layer 3 RPR logical interface RPR 1 and enter its view.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1]
interface { rprpos | rprxge }
Syntax
interface { rprpos | rprxge } interface-number
View
System view
Default level
2: System level
Parameters
rprpos: Creates an RPRPOS port.
rprxge: Creates an RPRXGE port.
interface-number: Number of an RPR physical port.
Description
Use the interface { rprpos | rprxge } command to enter RPR physical port view.
Examples
# Enter RPR physical port RPRPOS 2/1/1 view.
<Sysname> system-view
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1]
# Enter RPR physical port RPRXGE 3/1/1 view.
<Sysname> system-view
[Sysname] interface rprxge 3/1/1
[Sysname-RPRXGE3/1/1]
mtu
Syntax
mtu size
undo mtu
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
size: Maximum Transmission Unit (MTU) size in bytes, in the range of 46 to 9198.
Description
Use the mtu command to configure the MTU for the Layer 3 RPR logical interface.
Use the undo mtu command to restore the default.
By default, the MTU of a Layer 3 RPR logical interface is 1500 bytes.
Related commands: display interface rpr.
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
reset counters interface rpr
Syntax
reset counters interface [ rpr interface-number ]
View
User view
Default level
2: System level
Parameters
rpr: Clears statistics of the Layer 3 RPR logical interface(s).
interface-number: Number of the RPR logical interface. It is the number of an existing interface.
Description
Use the reset counters interface rpr command to clear statistics of the specified RPR logical interface(s).
To collect statistics of an RPR logical interface within a specific period, you must clear statistics of the interface before starting statistics collection.
If rpr is not specified, 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 of the specified type.
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 | rprxge }
Syntax
reset counters interface [ { rprpos | rprxge } [ interface-number ] ]
View
User view
Default level
2: System level
Parameters
rprpos: Clears statistics of RPRPOS ports.
rprxge: Clears statistics of RPRXGE ports.
interface-number: Specifies the number of an RPR physical port for which statistics are to be cleared.
Description
Use the reset counters interface command to clear statistics of the specified RPR physical port(s).
To collect statistics of an RPR physical port within a specific period, you must clear statistics of the port before starting statistics collection.
If you specify none of the rprpos and rprxge keywords, this command clears the statistics of all ports.
If you specify one of the rprpos and rprxge keywords but not the interface-number argument, this command clears the statistics of all RPRPOS or RPRXGE ports.
If you specify one of the rprpos and rprxge keywords and the interface-number argument, this command clears the statistics of the specified RPRPOS or RPRXGE port.
Examples
# Clear the statistics of RPR physical port RPRPOS 2/1/1.
<Sysname> reset counters interface rprpos 2/1/1
# Clear the statistics of RPR physical port RPRXGE 3/1/1.
<Sysname> reset counters interface rprxge 3/1/1
reset rpr protection statistics
Syntax
reset rpr protection statistics [ rpr interface-number ]
View
User view
Default 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, the RPR protection events statistics for the RPR stations corresponding to all the RPR logical interfaces on your router are cleared.
Description
Use the reset rpr protection statistics command to clear RPR protection events statistics.
Examples
# Clear all RPR protection events statistics.
<Sysname> reset rpr protection statistics
rpr admin-request
Syntax
rpr admin-request { fs | idle | ms } { ringlet0 | ringlet1 }
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
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.
Description
Use the rpr admin-request command to send an RPR protection request on the specified ringlet.
By default, idle protection applies.
Six types of protection requests, FS, signal fail (SF), signal degrade (SD), MS, wait to restore (WTR), 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 request 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 Ringlet 0.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr admin-request fs ringlet0
rpr bind
Syntax
In Layer 3 RPR logical interface view:
rpr bind { { rprpos | rprxge } interface-number } { ringlet0 | ringlet1 }
undo rpr bind { { rprpos | rprxge } interface-number }
In RPR POS interface view or RPR XGE interface view:
rpr bind { rpr interface-number } { ringlet0 | ringlet1 }
undo rpr bind
View
Layer 3 RPR logical interface view, RPR POS interface view, RPR XGE interface view
Default level
2: System level
Parameters
{ rprpos | rprxge } 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.
Description
Use the rpr bind command to bind an RPR logical interface with an RPR physical port.
Use the undo rpr bind command to remove the binding.
By default, no RPR physical ports are bound with any RPR logical interface.
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 properly, 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 RPR station to operate properly, 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/2 as the west port of Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[sysname] interface rpr 1
[sysname-RPR1] rpr bind rprpos 2/1/2 ringlet0
# Configure RPR physical port RPRPOS 2/1/4 as the east port of Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[sysname] interface rprpos 2/1/4
[sysname-RPRPOS2/1/4] rpr bind rpr 1 ringlet1
rpr default-rs
Syntax
rpr default-rs { ringlet0 | ringlet1 }
undo rpr default-rs
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
ringlet0: Specifies Ringlet 0 as the default ringlet.
ringlet1: Specifies Ringlet 1 as the default ringlet.
Description
Use the rpr default-rs command to configure the default RPR ringlet for sending data frames.
Use the undo rpr default-rs command to restore the default.
By default, the default ringlet is Ringlet 0.
In case the default ringlet you configured is faulty, the other ringlet works as the default ringlet to forward data.
Examples
# Specify Ringlet 1 as the default ringlet on Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr default-rs ringlet1
rpr echo mac
Syntax
rpr echo mac mac-address [ -c c-value | -r { ringlet0 | ringlet1 | reverse } | -s { ringlet0 | ringlet1 } | -t t-value ] *
View
Layer 3 RPR logical interface view
Default 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 1 to 1000. The default is 5.
-r: Specifies the ringlet for the destination to send Echo Responses. 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 10 to 65535 milliseconds. If it is not specified, the default of 10 milliseconds applies.
Description
Use the rpr echo mac command to test the connectivity between the current station and a peer station.
By default, 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.
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 properly 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.
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 ringlet 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
Syntax
rpr mate smart-connect
undo rpr mate smart-connect
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
None
Description
Use the rpr mate smart-connect command to enable the RPR mate port smart connection function.
Use the undo rpr mate smart-connect command to disable the function.
By default, RPR mate port smart connection is disabled.
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.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr mate smart-connect
rpr port-type
Syntax
rpr port-type { 10gpos | 10ge }
View
RPR POS interface view, RPR XGE interface view
Default level
2: System level
Parameters
10gpos: Changes the type of RPR physical ports to 10GPOS.
10ge: Changes the type of RPR physical ports to 10GE.
Description
Use the rpr port-type command to change the RPR physical port type.
|
NOTE: · After you change the RPR port type, the interface card will reboot to have the change take effect. · This command takes effect only on 10GPOS and 10GE RPR physical ports. It cannot take effect on 2.5GPOS RPR ports. |
Examples
# Change the RPR physical port type to 10GE.
<Sysname> system-view
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1] rpr port-type 10ge
# Change the RPR physical port type to 10G POS.
<Sysname> system-view
[Sysname] interface rprxge 2/1/1
[Sysname-RPRXGE2/1/1] rpr port-type 10gpos
rpr protect-mode
Syntax
rpr protect-mode { steer | wrap }
undo rpr protect-mode
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
steer: Sets the protection mode to steering where the source station directs protected frames to the ringlet that retains connectivity to their destinations.
wrap: Sets the protection mode to wrapping where protected traffic is directed at the point of failure to the opposing ringlet.
Description
Use the rpr protect-mode command to set the RPR protection mode for the station.
Use the undo rpr protect-mode command to restore the default.
By default, the steering protection mode is used.
Examples
# Adopt the wrapping protection mode on the station of Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr protect-mode wrap
rpr rate-limiter
Syntax
rpr rate-limiter { high | low | medium | reserved } { ringlet0 | ringlet1 } value
undo rpr rate-limiter { high | low | medium | reserved } { ringlet0 | ringlet1 }
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
high: Configures the rate limit for subclass A1 traffic.
low: Configures the rate limit for class B EIR and class C traffic.
medium: Configures the rate limit for class B CIR traffic.
reserved: Configures the reserved bandwidth for subclass A0 traffic.
ringlet0: Applies the reserved bandwidth or rate limit configuration to Ringlet 0.
ringlet1: Applies the reserved bandwidth or rate limit configuration to Ringlet 1.
value: A permillage of the reserved bandwidth for subclass A0 to the total bandwidth or the rate limit in permillage for any other service. It ranges from 0 to 1000.
Description
Use the rpr rate-limiter command to configure reserved bandwidth or rate limit for traffic of a certain service class on the specified ringlet.
Use the undo rpr rate-limiter command to restore the default.
The defaults in permillage for different services are as follows:
· 0 for subclass A0
· 2 for subclass A1
· 0 for class B CIR
· 1000 for classes C and B –EIR
|
NOTE: · The total bandwidth reserved for subclass A0 by the stations on a ringlet must be less than the ringlet bandwidth. · The ringlet0 and ringlet1 keywords in this command refer to sending ringlets. |
Examples
# Set the reserved bandwidth in permillage for subclass A0 traffic on Ringlet 0 to 5 on Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr rate-limiter reserved ringlet0 5
rpr reversion-mode
Syntax
rpr reversion-mode { non-revertive | revertive }
undo rpr reversion-mode
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
non-revertive: Sets the protection reversion mode to non-revertive, where the station remains in automatic protection state upon expiration of the WTR timer and does not resume the idle state until a higher protection request is present on the ring.
revertive: Sets the protection reversion mode to revertive, where the station resumes the idle protection state once the WTR timer expires.
Description
Use the rpr reversion-mode command to set the RPR protection reversion mode.
Use the undo rpr reversion-mode command to restore the default.
By default, revertive mode applies.
Examples
# Set the protection reversion mode to non-revertive on Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr reversion-mode non-revertive
rpr static-rs
Syntax
rpr static-rs mac-address { ringlet0 | ringlet1 }
undo rpr static-rs mac-address
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
ringlet0: Specifies Ringlet 0 as the sending ringlet for data frames destined to a specified MAC address.
ringlet1: Specifies Ringlet 1 as the sending ringlet for data frames destined to a specified MAC address.
mac-address: Destination MAC address.
Description
Use the rpr static-rs command to add a static ringlet selection entry, specifying which ringlet is used for sending data frames destined to the specified MAC address.
Use the undo rpr static-rs command to remove the entry.
By default, no static ringlet selection entry exists.
Examples
# Configure Layer 3 RPR logical interface RPR 1 to send data frames with destination MAC 0001-0002-0003 on Ringlet 0 and data frames with destination MAC address 0001-0002-0004 on Ringlet 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr static-rs 0001-0002-0003 ringlet0
[Sysname-RPR1] rpr static-rs 0001-0002-0004 ringlet1
rpr station-name
Syntax
rpr station-name station-name
undo rpr station-name
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
station-name: Name of an RPR station, a string of 1 to 20 characters.
Description
Use the rpr station-name command to assign a name to the RPR station.
Use the undo rpr station-name command to remove the station name.
By default, no name is configured for any RPR station.
Examples
# Name the station as ABC on Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr station-name ABC
rpr timer
Syntax
rpr timer { atd atd-value | holdoff holdoff-value | keepalive keepalive-value | stability stability-value | tc-fast tc-fast-value | tc-slow tc-slow-value | tp-fast tp-fast-value | tp-slow tp-slow-value | wtr wtr-value }
undo rpr timer { atd | holdoff | keepalive | stability | tc-fast | tc-slow | tp-fast | tp-slow | wtr }
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
atd atd-value: Sets the ATD timer, in the range 1 to 10 seconds. The default is 1 second.
holdoff holdoff-value: Sets the hold-off timer, in steps of 10 milliseconds in the range 0 to 200 milliseconds. The default is 0 seconds.
keepalive keepalive-value: Sets the keepalive timer, in the range 2 to 50 milliseconds. The default is 3 seconds.
stability stability-value: Sets the topology stability timer, in the range 10 to 100 milliseconds. The default is 40 seconds.
tc-fast tc-fast-value: Sets the TC fast timer, in the range 1 to 20 milliseconds. The default is 10 seconds.
tc-slow tc-slow-value: Sets the TC slow timer, in steps of 50 milliseconds in the range 50 to 10000 milliseconds. The default is 100 seconds.
tp-fast tp-fast-value: Sets the TP fast timer, in the range 1 to 20 milliseconds. The default is 10 seconds.
tp-slow tp-slow-value: Sets the TP slow timer, in steps of 50 milliseconds in the range 50 to 10000 milliseconds. The default is 100 seconds.
wtr wtr-value: Sets the WTR timer, in the range 0 to 1440 seconds. The default is 10 seconds.
Description
Use the rpr timer command to set RPR timers.
Use the undo rpr timer command to restore the defaults.
Examples
# Set the ATD timer to three seconds on Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr timer atd 3
rpr weight
Syntax
rpr weight { ringlet0 | ringlet1 } value
undo rpr weight { ringlet0 | ringlet1 }
View
Layer 3 RPR logical interface view
Default level
2: System level
Parameters
ringlet0: Sets the Ringlet 0 weight of the station.
ringlet1: Sets the Ringlet 1 weight of the station.
value: Expresses the weight as 2value. The value argument is in the range of 0 to 7.
Description
Use the rpr weight command to set the weight of a station.
Use the undo rpr weight command to restore the default.
By default, the weight of a station is 20=1.
Examples
# Set the weight of the station on Ringlet 0 to 4—two squared—on Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr weight ringlet0 2
shutdown
Syntax
shutdown
undo shutdown
View
Layer 3 RPR logical interface view, RPR POS interface view, RPR XGE interface view
Default level
2: System level
Parameters
None
Description
Use the shutdown command to shut down the interface.
Use the undo shutdown command to bring up the interface.
By default, an interface is enabled.
Examples
# Shut down Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] shutdown
# Shut down RPR physical port RPRPOS 2/1/1.
<Sysname> system-view
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1] shutdown
# Shut down RPR physical port RPRXGE 3/1/1.
<Sysname> system-view
[Sysname] interface rprxge 3/1/1
[Sysname-RPRXGE3/1/1] shutdown
threshold
Syntax
threshold { sd | sf } value
undo threshold { sd | sf }
View
RPR POS interface view
Default level
2: System level
Parameters
sd: Sets the signal degrade (SD) alarm threshold.
sf: Sets the signal fail (SF) alarm threshold.
value: SD or SF threshold value in the range of 3 to 9. It is interpreted as a negative exponent of 10e. The SD alarm threshold value must be larger than the SF alarm threshold value, and the difference cannot be larger than 2.
Description
Use the threshold command to set the SD or SF alarm threshold for the interface.
Use the undo threshold command to restore the default.
By default, the SD alarm threshold is 10e-5, and the SF alarm threshold is 10e-3.
SD and SF alarms are used to indicate current line performance. They are generated when the receiving end detects a certain amount of B2 errors. The bit error rate threshold of SF is higher than that of SD. When a small amount of errors occur, SD alarms are generated; when the error rate increases to a certain level, SF alarms are generated, indicating the line performance has been degrading seriously. When setting the thresholds, set the SD threshold lower than the SF threshold.
Examples
# Set the SD threshold on RPRPOS2/1/1 to 10e-5.
<Sysname> system-view
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1] threshold sd 5