- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
05-RPR Commands | 238.3 KB |
Contents
display interface { rpr | rpr-bridge }
display interface { rprpos | rprxge }
interface { rpr | rpr-bridge }
reset counters interface { rpr | rpr-bridge }
reset counters interface { rprpos | rprxge }
reset rpr protection statistics
The switch supports RPR only when its system working mode is hybrid (hybrid is specified for the system working mode command). For more information about the system working mode, see Fundamentals Configuration Guide.
default
Syntax
default
View
Layer 2 RPR logical interface view, Layer 3 RPR logical interface view, RPRPOS interface view, RPRXGE interface view
Default level
2: System level
Parameters
None
Description
Use default to restore the default settings for an interface.
This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. Use the display this command in interface view to identify these commands, and then use their undo forms or follow the command reference to individually restore their default settings. If your restoration attempt still fails, follow the error message instructions 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 2 RPR logical interface RPR-Bridge 1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] default
This command will restore the default settings. Continue? [Y/N]:y
# 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 2 RPR logical interface view, Layer 3 RPR logical interface view, RPRPOS interface view, RPRXGE interface view
Default level
2: System level
Parameters
text: Description of an RPR logical interface or RPR physical port, which is a string of 1 to 80 characters.
Description
Use description to set the description of the current RPR logical interface or RPR physical port.
Use undo description 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 | rpr-bridge } and display interface { rprpos | rprxge }.
Examples
# Configure the description of Layer 2 RPR logical interface RPR-Bridge 1 as RPR-Bridge-1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] description RPR-Bridge-1
# 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 | rpr-bridge }
Syntax
display interface [ rpr | rpr-bridge ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface [ { rpr | rpr-bridge } [ interface-number ] ] [ brief [ description ] ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
rpr: Displays information about the Layer 3 RPR logical interfaces.
rpr-bridge: Displays information about the Layer 2 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.
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.
description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 25 characters of interface descriptions.
|: 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 display interface { rpr | rpr-bridge } to display the running state and information about an RPR logical interface.
If neither rpr nor rpr-bridge is specified, this command displays information about all types of interfaces.
If an interface type (rpr or rpr-bridge) 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 2 RPR logical interface RPR-Bridge 1.
<Sysname> display interface rpr-bridge 1
RPR-Bridge1 current state: DOWN
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 0000-0000-0000
Description: RPR-Bridge1 Interface
Unknown-speed mode, unknown-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
PVID: 1
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last clearing of counters: Never
# 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
Port priority: 0
Output queue: Strict-priority queue pattern0
Last clearing of counters: Never
# Display the brief information about Layer 2 RPR logical interface RPR-Bridge 1.
<Sysname> display interface rpr-bridge 1 brief
The brief information of interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Speed or Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
RPR-Bridge1 DOWN auto A A 1
# 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 2 RPR logical interfaces in DOWN state.
<Sysname> display interface rpr brief down
The brief information of interface(s) under bridge mode:
Link: ADM - administratively down; Stby - standby
Interface Link Cause
RPR-Bridge1 DOWN Not connected
RPR-Bridge2 DOWN Not connected
# 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 Command output
Field |
Description |
RPR-Bridge1 current state/RPR1 current state |
State of the Layer 2/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, possibly because no physical link is present or the link has failed. · UP—The interface is up both administratively and physically. |
Unknown-speed mode, unknown-duplex mode |
Unknown interface rate and unknown duplex mode. |
Link speed type is autonegotiation |
The interface rate is determined through auto negotiation. |
link duplex type is autonegotiation |
The link duplex mode is determined through auto negotiation. |
PVID |
Default VLAN ID of the interface. |
Port link-type |
Link type of the interface: access, trunk, or hybrid. |
Tagged VLAN ID |
VLANs whose packets are to be sent out of the port tagged. |
Untagged VLAN ID |
VLANs whose packets are to be sent out of the port untagged. |
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. |
Output queue: Strict-priority queue pattern0 |
Output queue type. The sample output shows that the queue is scheduled using pattern 0 of strict priority (SP) queuing. |
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 bridge mode |
Brief information about Layer 2 interfaces. |
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. |
Speed or Duplex: (a)/A - auto; H - half; F - full |
If the attribute value of Speed is (a), the interface rate is obtained through auto negotiation. If the attribute value of Duplex is (a) or A, the duplex mode of the interface is obtained through auto negotiation. H means half duplex, and F means full duplex. |
Type: A - access; T - trunk; H - hybrid |
Link type: · A—access. · H—hybrid. · T—trunk. |
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. |
Speed |
Interface rate in bps. |
Duplex |
Duplex mode of the interface: · A—determined through auto negotiation. · F—full duplex. · F(a)—full duplex (auto negotiation result). · H—half duplex. · H(a)–half duplex (auto negotiation result). |
Type |
Link type of the interface: · A—access. · H—hybrid. · T—trunk. |
Protocol |
Protocol connection state of the interface. |
Main IP |
Main IP address of the interface. |
Cause |
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 [ description ] ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
rprpos: Displays information about an RPRPOS interface.
rprxge: Displays information about an RPRXGE 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.
description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 25 characters of interface descriptions.
|: 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 display interface { rprpos | rprxge } 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 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 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): ""
00 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: SLM
Error: 0 BIP(B3), 0 REI(G1)
-- PJE, -- NJE
Port statistic:start time: 2011-06-17 07:02:30
UP time: 0 H 0 M 0 S
Section: ES 0 SES 0 SEFS 0
Line : ES 0 SES 0 UAS 0 FE-ES 0
Path1 : ES 0 SES 0 UAS 0 FE-ES 1
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: 0 packet/sec 0 byte/sec 0%
Last 300 second Line output: 0 packet/sec 0 byte/sec 0%
Host peak value of input: 0 bytes/sec, at 2011-06-17 07:02:30
Line peak value of input: 0 bytes/sec, at 2011-06-17 07:02:30
Host peak value of output: 0 bytes/sec, at 2011-06-17 07:02:30
Line peak value of output: 0 bytes/sec, at 2011-06-17 07:02:30
Table 2 Command output
Field |
Description |
RPRPOS2/1/1 current state |
Physical state of the RPR physical port: · 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 |
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. |
Port statistic:start time |
Interface startup time. |
UP time |
Time that the interface has been up. |
Section |
Count of alarms for the regenerator section. |
Line |
Count of alarms for the multiplex section. |
Path1 |
Alarm time (in seconds) for the higher order path. (It is displayed when the alarm statistics value is not 0.) |
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. |
Last 300 second Host input |
Number of packets received by the host in the last 300 seconds. |
Last 300 second Line input |
Number of packets received by the line in the last 300 seconds. |
Last 300 second Host output |
Number of packets sent by the host in the last 300 seconds. |
Last 300 second Line output |
Number of packets sent by the line in the last 300 seconds. |
Host peak value of input |
Peak value of packets received by the host. |
Line peak value of input |
Peak value of packets received by the line. |
Host peak value of output |
Peak value of packets sent by the host. |
Line peak value of output |
Peak value of packets sent by the line. |
display rpr bind-info
Syntax
display rpr bind-info [ { rprpos | rprxge | rpr | rpr-bridge } interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
{ rprpos | rprxge | rpr | rpr-bridge } interface-number: Specifies an RPR physical port or logical interface by its type and number. If no RPR physical port or RPR logical interface is specified, this command displays the binding information of all RPR logical interfaces. The value range for the interface-number argument is 0 to 15.
|: 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 display rpr bind-info to display the binding information of the specified or all RPR logical interfaces.
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 Command output
Field |
Description |
Bind information on interface |
Binding information of an RPR logical interface. |
Smart-connection: Enabled/Connected |
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 port. · Ringlet1—The physical port is the east port. · 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 | rpr-bridge } interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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 defect information of the stations corresponding to all the RPR logical interfaces on your switch. The value range for the interface-number argument is 0 to 15.
|: 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 display rpr defect 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 | rpr-bridge } interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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 fairness settings of the RPR stations corresponding to all the RPR logical interfaces on your switch. The value range for the interface-number argument is 0 to 15.
|: 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 display rpr fairness 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
|
NOTE: For an RPR logical interface that is not bound to any physical port, the reserved bandwidth for each class of traffic is displayed as a permillage of the total bandwidth. |
Table 4 Command output
Field |
Description |
Local rate-limiter bandwidth for high priority service on ringlet0 |
Rate limit setting of the local station for the class A1 traffic on Ringlet 0. |
Local rate-limiter bandwidth for high priority service on ringlet1 |
Rate limit setting of the local station for the class A1 traffic on Ringlet 1. |
Local rate-limiter bandwidth for medium priority service on ringlet0 |
Rate limit setting of the local station for the class B CIR traffic on Ringlet 0. |
Local rate-limiter bandwidth for medium priority service on ringlet1 |
Rate limit setting of the local station for the class B CIR traffic on Ringlet 1. |
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 traffic on Ringlet 0. |
Local rate-limiter bandwidth for low priority service on ringlet1 |
Rate limit setting of the local station for the class B EIR and class C traffic on Ringlet 1. |
display rpr mac-address
Syntax
display rpr mac-address [ static | dynamic ] [ destination mac-address1 ] [ vlan vlan-id ] [ ring mac-address2 ] [ rpr-bridge interface-number ] [ count ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
static: Displays the static MAC address table of an RPR station.
dynamic: Displays the dynamic MAC address table of an RPR station.
destination mac-address1: Displays the MAC address table entry for the specified destination.
vlan vlan-id: Displays the MAC address table information with the VLAN ID identified by vlan-id in the range of 1 to 4094.
ring mac-address2: Displays the MAC address table entry for the frame copying station identified by mac-address2.
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 MAC address table information of all RPR stations on your switch. The value range for the interface-number argument is 0 to 15.
count: Displays the number of entries in the specified MAC address table.
|: 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 display rpr mac-address to display the MAC address table information of RPR stations.
Examples
# Display information about the static MAC address tables of all RPR stations.
<Sysname> display rpr mac-address static
Static MAC address table on interface: RPR-Bridge0
MAC-Address VLAN-ID Next-Hop Status Ringlet-ID TTL
-----------------------------------------------------------------------
--- Total entrie(s): 0 ---
|
NOTE: The switch does not support displaying information about the static MAC address table, so no output is displayed. |
# Display information about the dynamic MAC address tables of all RPR stations.
<Sysname> display rpr mac-address dynamic
Dynamic MAC address table on interface: RPR-Bridge0
MAC-Address VLAN-ID Next-Hop Status Ringlet-ID TTL
-----------------------------------------------------------------------
3ce5-a635-4100 557 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 548 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 528 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 714 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 552 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 681 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 603 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 531 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 589 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 750 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 669 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 699 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 640 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 649 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 628 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 556 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 525 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 594 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 751 3ce5-a635-4100 Valid 1 1
3ce5-a635-4100 536 3ce5-a635-4100 Valid 1 1
# Display information on the number of static MAC address entries.
<Sysname> display rpr mac-address static count
Static MAC address table on interface: RPR-Bridge0
No entry found!
# Display information on the number of dynamic MAC address entries.
<Sysname> display rpr mac-address dynamic count
Dynamic MAC address table on interface: RPR-Bridge0
131332 entries found!
Dynamic MAC address table on interface: RPR-Bridge15
No entry found!
display rpr protection
Syntax
display rpr protection [ { rpr | rpr-bridge } interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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 switch. The value range for the interface-number argument is 0 to 15.
|: 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 display rpr protection 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 rpr 2
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, only its protection mode and protection reversion mode are displayed. |
Table 5 Command output
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 | rpr-bridge } 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 | 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 ringlet selection table information of all the RPR stations on your switch. The value range for the interface-number argument is 0 to 15.
|: 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 display rpr rs-table to display information about RPR ringlet selection tables.
Examples
# Display information about the dynamic ringlet selection tables of all RPR stations on your switch.
<Sysname> display rpr rs-table dynamic
Dynamic ringlet selection table on interface: RPR1
MAC-Address Ringlet-ID TTL IP-Address Station-Name
-----------------------------------------------------------------------
000f-e200-1a01 Ringlet0 1 100.0.0.3 RPR_3
--- Total entrie(s): 1 ---
# Display information about the static ringlet selection tables of all RPR stations on your switch.
<Sysname> display rpr rs-table static
Static ringlet selection table on interface: RPR1
MAC-Address Ringlet-ID Status
-----------------------------------
000f-e202-0002 Ringlet0 Valid
--- Total entrie(s): 1 ---
Table 6 Command output
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 | rpr-bridge } interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default 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 timers for all the RPR stations on your switch. The value range for the interface-number argument is 0 to 15.
|: 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 display rpr timers 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 | rpr-bridge } 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 | 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 topology information of all the RPR stations on your switch. The value range for the interface-number argument is 0 to 15.
|: 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 display rpr topology 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: 000f-e200-1001
IP address: 100.0.0.4 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: 000f-e200-1a01
Last known neighbour on the east span: 000f-e200-1a01
Local topology state: valid
Station topology information on interface: RPR1
Station entry on ringlet0
Mac address: 000f-e200-1a01
Station name: RPR_3
IP address: 100.0.0.3 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: RPR_3
IP address: 100.0.0.3 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 Command output
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. |
Hops |
Number of hops from the specific station to the local station. |
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. |
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 can 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: · 1—valid. · 0—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
---------------------------------------------------------------------
000f-e200-1001 Idle Idle 0 0 0 1 100.0.0.4 StationA
Station topology information on interface: RPR1
Station entry on ringlet0
MAC-Address Psw Pse Esw Ese Wc Jp IP-Address Station-Name
---------------------------------------------------------------------
000f-e200-1a01 Idle Idle 0 0 0 1 100.0.0.3 StationB
Station entry on ringlet1
MAC-Address Psw Pse Esw Ese Wc Jp IP-Address Station-Name
---------------------------------------------------------------------
000f-e200-1a01 Idle Idle 0 0 0 1 100.0.0.3 StationB
Table 8 Command output
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, 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: StationA
Mac address: 000f-e200-1001
IP address: 100.0.0.4 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: 000f-e200-1a01
Last known neighbour on the east span: 000f-e200-1a01
Local topology state: valid
Table 9 Command output
Field |
Description |
Local station topology information on interface |
Topology information of the local stations mapping to the logical interfaces of the switch. |
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 can 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 Command output
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: 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: 000f-e200-1a01
Station name: StationA
IP address: 100.0.0.3 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: StationA
IP address: 100.0.0.3 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 Command output
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. The value can be: · regular—Not supported. · jumbo—Supported. |
Sequence number |
Sequence number of the TP frame. |
Valid |
Status of the entry: · 1—valid. · 0—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 has no output. |
flag
Syntax
flag { c2 | { j0 | j1 } { sdh | sonet } } flag-value
undo flag { c2 | { j0 | j1 } { sdh | sonet } }
View
RPRPOS 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 flag to set the overhead bytes of the interface.
Use undo flag to restore the default.
By default, the C2 byte value of an RPRPOS 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] frame-format sonet
[Sysname-RPRPOS2/1/1] flag j0 sonet ff
flow-interval
Syntax
flow-interval interval
undo flow-interval
View
RPRPOS interface view, RPRXGE interface view
Default level
2: System level
Parameters
interval: Specifies the packet statistics collection interval in the range of 5 to 300 and in steps of 5, in seconds.
Description
Use flow-interval to configure the packet statistics collection interval.
Use undo flow-interval to restore the default.
Examples
# Configure the packet statistics collection interval as 100 seconds for RPR physical port RPRPOS2/1/1.
<Sysname> system-view
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1] flow-interval 100
# Configure the packet statistics collection interval as 100 seconds for RPR physical port RPRXGE3/1/1.
<Sysname> system-view
[Sysname] interface rprxge 3/1/1
[Sysname-RPRXGE3/1/1] flow-interval 100
frame-format
Syntax
frame-format { sdh | sonet }
undo frame-format
View
RPRPOS interface view
Default level
2: System level
Parameters
sdh: Sets the framing format to SDH.
sonet: Sets the framing format to SONET.
Description
Use frame-format to set the framing format on the interface.
Use undo frame-format 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 | rpr-bridge }
Syntax
interface { rpr | rpr-bridge } interface-number
undo interface { rpr | rpr-bridge } interface-number
View
System view
Default level
2: System level
Parameters
rpr: Specifies a Layer 3 RPR logical interface.
rpr-bridge: Specifies a Layer 2 RPR logical interface.
interface-number: Number of the RPR logical interface. The value range for this argument is 0 to 15.
Description
Use interface { rpr | rpr-bridge } to create an RPR logical interface and enter RPR logical interface view.
Use undo interface { rpr | rpr-bridge } to remove an RPR logical interface.
If the specified RPR logical interface does not exist, this command first creates the RPR logical interface.
You cannot directly remove an RPR logical interface bound with RPR physical ports.
Examples
# Create a Layer 2 RPR logical interface RPR-Bridge 1 and enter its view.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1]
# 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 interface { rprpos | rprxge } to enter RPR physical port view.
For a switch just shipped, the interface { rprpos | rprxge } command enters only RPRPOS physical port view. To enter RPRXGE physical port view of the switch, you must execute the rpr port-type 10ge command first.
All RPR physical ports on the same subcard must be of the same type—RPRPOS or RPRXGE.
The rpr port-type command changes the RPR physical port type and takes effect only on the current subcard. If two RPR interface subcards are installed on a base card, you can set different RPR physical port types for the subcards.
If the physical port type of a subcard is RPRXGE, you can specify only the RPRXGE port type when entering RPR physical port view of the subcard; if the physical port type of the subcard is RPRPOS, you can specify only the RPRPOS port type when entering RPR physical port view of the subcard.
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. The value range for this argument is 64 to 9198.
Description
Use mtu to configure the MTU for the Layer 3 RPR logical interface.
Use undo mtu 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 | rpr-bridge }
Syntax
reset counters interface [ { rpr | rpr-bridge } [ interface-number ] ]
View
User view
Default level
2: System level
Parameters
rpr: Clears statistics of the Layer 3 RPR logical interfaces.
rpr-bridge: Clears statistics of the Layer 2 RPR logical interfaces.
interface-number: Number of the RPR logical interface. It is the number of an existing interface.
Description
Use reset counters interface { rpr | rpr-bridge } to clear statistics of the specified RPR logical interfaces.
To collect statistics of an RPR logical interface within a specific period, you must clear statistics of the interface before starting statistics collection.
If you specify neither rpr nor rpr-bridge, this command clears the statistics of all interfaces.
If you specify one of the rpr and rpr-bridge keywords but not the interface-number argument, this command clears the statistics of all RPR logical interfaces of the specified type.
If you specify one of the rpr and rpr-bridge keywords and the interface-number argument, this command clears the statistics of the specified RPR logical interface.
Examples
# Clear the statistics of Layer 2 RPR logical interface RPR-Bridge 1.
<Sysname> reset counters interface rpr-bridge 1
# 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 reset counters interface to clear statistics of the specified RPR physical ports.
To collect statistics of an RPR physical port within a specific period, you need to 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 | rpr-bridge } interface-number ]
View
User view
Default 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, the RPR protection events statistics for the RPR stations corresponding to all the RPR logical interfaces on your switch are cleared. The value range for the interface-number argument is 0 to 15.
Description
Use reset rpr protection statistics 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 2 RPR logical interface 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 rpr admin-request to send an RPR protection request on the specified ringlet.
By default, idle protection applies.
The following types of protection requests, Forced Switch (FS), Manual Switch (MS), and idle, are available with decreased priorities. Among them, FS and MS requests are sent manually.
· 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 2 RPR logical interface RPR-Bridge 1 to send an FS protection request on Ringlet 0.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] rpr admin-request fs ringlet0
# 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 2 or Layer 3 RPR logical interface view:
rpr bind { { rprpos | rprxge } interface-number } { ringlet0 | ringlet1 }
undo rpr bind { { rprpos | rprxge } interface-number }
In RPRPOS interface view or RPRXGE interface view:
rpr bind { { rpr | rpr-bridge } interface-number } { ringlet0 | ringlet1 }
undo rpr bind
View
Layer 2 RPR logical interface view, Layer 3 RPR logical interface view, RPRPOS interface view, RPRXGE interface view
Default level
2: System level
Parameters
{ rprpos | rprxge } interface-number: Specifies an RPR physical port by its type and number. In RPR logical interface view, the interface-type interface-number arguments must be the type and number of an RPR physical port. In RPR physical port view, the interface-type interface-number arguments must be the type and number of an RPR logical interface.
{ rpr | rpr-bridge } interface-number: Specifies an RPR logical interface by its type and number. The value range for the interface-number argument is 0 to 15.
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 rpr bind to bind an RPR logical interface with an RPR physical port.
Use undo rpr bind 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, while 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 physical port is accompanied by a mate port. For an RPR 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 2 RPR logical interface RPR-Bridge 1.
<Sysname> system-view
[sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] rpr bind rprpos 2/1/1 ringlet0
# Configure RPR physical port RPRPOS 3/1/1 as the west port of Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[sysname] interface rpr 1
[sysname-RPR1] rpr bind rprpos 3/1/1 ringlet0
# Configure RPR physical port RPRPOS 2/1/2 as the east port of Layer 2 RPR logical interface RPR-Bridge1.
<Sysname> system-view
[sysname] interface rprpos 2/1/2
[sysname-RPRPOS2/1/2] rpr bind rpr-bridge 1 ringlet1
# Configure RPR physical port RPRPOS 3/1/2 as the east port of Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[sysname] interface rprpos 3/1/2
[sysname-RPRPOS3/1/2] rpr bind rpr 1 ringlet1
rpr-bridge extend
Syntax
rpr-bridge extend slot slot-number
undo rpr-bridge extend slot slot-number
View
System view
Default level
2: System level
Parameters
slot slot-number: Specifies the slot number of a base card installed with RPR interface subcards.
Description
Use rpr-bridge extend to configure Layer 2 RPR extension for a base card installed with RPR interface subcards. Execute this command to make sure the Layer 2 RPR function of an S9500E switch can be successfully connected to the RPR function of an S9500 switch.
Use undo rpr-bridge extend to remove the configuration.
By default, Layer 2 RPR extension is not configured for the base card installed with RPR interface subcards.
This command takes effect for only base cards installed with RPR interface subcards.
Before executing this command on a based card, make sure all cards installed on it are RPR interface subcards.
To connect the Layer 2 RPR function of an S9500E switch to the RPR function of an S9500 switch, execute the rpr station-mac command in RPR logical interface view on the S9500 switch. For more information about the rpr station-mac command, see H3C S9500 Routing Switch Series High Availability Command Reference.
After the Layer 2 RPR function of an S9500E switch is successfully connected to the RPR function of an S9500 switch, Layer 3 multicast packets are added with 4 bytes when they are inserted by the S9500E switch and copied by the S9500 switch.
Examples
# Configure Layer 2 RPR extension for the base card in slot 3 installed with RPR interface subcards.
<Sysname> system-view
[sysname] rpr-bridge extend slot 3
rpr default-rs
Syntax
rpr default-rs { ringlet0 | ringlet1 }
undo rpr default-rs
View
Layer 2 RPR logical interface 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 rpr default-rs to configure the default RPR ringlet for sending data frames.
Use undo rpr default-rs 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 2 RPR logical interface RPR-Bridge1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] rpr default-rs ringlet1
# 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 2 RPR logical interface 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 of 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 of 10 to 65535 milliseconds. If it is not specified, the default of 10 milliseconds applies.
Description
Use rpr echo mac 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 correctly on both the sending ringlet and the receiving ringlet. In this case, 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 000F-E200-1C01, and specify ringlet 1 as the sending ringlet and ringlet 0 as the receiving ringlet on RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] rpr echo mac 000f-e200-1c01 -r ringlet0 -s ringlet1
rpr mate smart-connect
Syntax
rpr mate smart-connect
undo rpr mate smart-connect
View
Layer 2 RPR logical interface view, Layer 3 RPR logical interface view
Default level
2: System level
Parameters
None
Description
Use rpr mate smart-connect to enable the RPR mate port smart connection function.
Use undo rpr mate smart-connect to disable the function.
By default, RPR mate port smart connection is disabled.
When the two RPR physical ports are on the same subcard, 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.
This command takes effect only on the logical interface bound with two 2.5GPOS RPR ports. It cannot take effect on the logical interface bound with 10GPOS and 10GE RPR physical ports.
Examples
# Enable RPR mate port smart connection on Layer 2 RPR logical interface RPR-Bridge 1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] rpr mate smart-connect
# 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
RPRPOS interface view, RPRXGE 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 rpr port-type to change the physical port type for the RPR station.
|
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 10G POS and 10GE RPR physical ports. It cannot take effect on 2.5G POS ports. |
Examples
# Change the type of RPRPOS2/1/1 to 10GE.
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1] rpr port-type 10ge
# Change the type of RPRXGE2/1/1 to 10GPOS.
<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 2 RPR logical interface 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 rpr protect-mode to set the RPR protection mode for the station.
Use undo rpr protect-mode to restore the default.
By default, the RPR protection mode for the station is steering.
|
NOTE: Use the same protection mode for stations on the same ring. Otherwise, the system will generate alarms. |
Examples
# Adopt the wrapping protection mode on the station of Layer 2 RPR logical interface RPR-Bridge 1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] rpr protect-mode wrap
# 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 2 RPR logical interface 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: Specifies the permillage of the reserved bandwidth for subclass A0 to the total bandwidth or the rate limit in permillage for any other traffic. The value range for this argument is 0 to 1000.
Description
Use rpr rate-limiter to configure reserved bandwidth or rate limit for traffic of a certain traffic class on the specified ringlet.
Use undo rpr rate-limiter to restore the default.
The defaults in permillage for different traffic classes 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 the command refer to sending ringlets. |
Examples
# Set the reserved bandwidth in permillage for subclass A0 traffic on Ringlet 0 to 5 on Layer 2 RPR logical interface RPR-Bridge 1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] rpr rate-limiter reserved ringlet0 5
# 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 2 RPR logical interface 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 rpr reversion-mode to set the RPR protection reversion mode.
Use undo rpr reversion-mode to restore the default.
By default, revertive mode applies.
Examples
# Set the protection reversion mode to non-revertive on Layer 2 RPR logical interface RPR-Bridge 1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] rpr reversion-mode non-revertive
# 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 2 RPR logical interface 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, in the format of H-H-H.
Description
Use rpr static-rs to add a static ringlet selection entry, specifying which ringlet is used for sending data frames destined to the specified MAC address.
Use undo rpr static-rs to remove the entry.
By default, no static ringlet selection entry exists.
Examples
# Configure Layer 2 RPR logical interface RPR-Bridge 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-bridge 1
[Sysname-RPR-Bridge1] rpr static-rs 0001-0002-0003 ringlet0
[Sysname-RPR-Bridge1] rpr static-rs 0001-0002-0004 ringlet1
# 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 2 RPR logical interface view, Layer 3 RPR logical interface view
Default level
2: System level
Parameters
station-name: Name of an RPR station, which is a string of 1 to 20 characters.
Description
Use rpr station-name to assign a name to the RPR station.
Use undo rpr station-name to remove the station name.
By default, no name is configured for any RPR station.
Examples
# Name the station as ABC on Layer 2 RPR logical interface RPR-Bridge 1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] rpr station-name ABC
# 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 2 RPR logical interface view, Layer 3 RPR logical interface view
Default level
2: System level
Parameters
atd atd-value: Sets the ATD timer in the range of 1 to 10 seconds.
holdoff holdoff-value: Sets the hold-off timer in the range of 0 to 200 milliseconds in steps of 10 milliseconds.
keepalive keepalive-value: Sets the keepalive timer in the range of 2 to 50 milliseconds.
stability stability-value: Sets the topology stability timer in the range of 10 to 100 milliseconds.
tc-fast tc-fast-value: Sets the TC fast timer in the range of 1 to 20 milliseconds.
tc-slow tc-slow-value: Sets the TC slow timer in the range of 50 to 10000 milliseconds in steps of 50 milliseconds.
tp-fast tp-fast-value: Sets the TP fast timer in the range of 1 to 20 milliseconds.
tp-slow tp-slow-value: Sets the TP slow timer in the range of 50 to 10000 milliseconds in steps of 50 milliseconds.
wtr wtr-value: Sets the WTR timer in the range of 0 to 1440 seconds.
Description
Use rpr timer to set RPR timers.
Use undo rpr timer to restore the defaults.
By default:
· The ATD timer is 1 second.
· The hold-off timer is 0 milliseconds.
· The keepalive timer is 3 milliseconds.
· The topology stability timer is 40 milliseconds.
· The TC fast timer is 10 milliseconds.
· The TC slow timer is 100 milliseconds.
· The TP fast timer is 10 milliseconds.
· The TP slow timer is 100 milliseconds.
· The WTR timer is 10 seconds.
Examples
# Set the ATD timer to 3 seconds on Layer 2 RPR logical interface RPR-Bridge 1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] rpr timer atd 3
# Set the ATD timer to 3 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 2 RPR logical interface 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 range for the value argument is 0 to 7.
Description
Use rpr weight to set the weight of a station.
Use undo rpr weight 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 2 RPR logical interface RPR-Bridge 1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] rpr weight ringlet0 2
# 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 2 RPR logical interface view, Layer 3 RPR logical interface view, RPRPOS interface view, RPRXGE interface view
Default level
2: System level
Parameters
None
Description
Use shutdown to shut down the interface.
Use undo shutdown to bring up the interface.
By default, an interface is enabled.
Examples
# Shut down Layer 2 RPR logical interface RPR-Bridge 1.
<Sysname> system-view
[Sysname] interface rpr-bridge 1
[Sysname-RPR-Bridge1] shutdown
# Shut down Layer 3 RPR logical interface RPR 1.
<Sysname> system-view
[Sysname] interface rpr 1
[Sysname-RPR1] shutdown
# Shut down RPR physical port RPRPOS2/1/1.
<Sysname> system-view
[Sysname] interface rprpos 2/1/1
[Sysname-RPRPOS2/1/1] shutdown
# Shut down RPR physical port RPRXGE3/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
RPRPOS 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: Specifies the 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 threshold to set the SD or SF alarm threshold for the interface.
Use undo threshold 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. 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.
Related commands: alarm-detect.
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