RPR commands -- alarm-detect

Use alarm-detect to configure the action to take when an RDI, SD, or SF alarm occurs on an interface.

Use undo alarm-detect to remove the configuration.

Syntax

alarm-detect { rdi | sd | sf } action link-down

undo alarm-detect { rdi | sd | sf }

Default

No action is configured.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

rdi: Specifies the remote defect indication (RDI) alarm.

sd: Specifies the signal degrade (SD) alarm.

sf: Specifies the signal fail (SF) alarm.

action: Specifies the action to take when the specified alarm is detected on the interface.

link-down: Shuts down the interface.

Usage guidelines

This command enables the device to shut down the link when detecting an RDI, SD, or SF alarm.

An RDI alarm occurs if the device receives multiplexer section remote defect indication (MS-RDI) signals from the remote end.

An SD or SF alarm occurs if the bit error rate of incoming packets exceeds the SD or SF alarm threshold. To set the SD or SF alarm threshold, use the threshold command.

Examples

# Configure RPRPOS 2/4/0 to shut down the link when detecting an SD alarm.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] alarm-detect sd action link-down

Related commands

threshold

RPR commands -- bandwidth

Use bandwidth to set the expected bandwidth for an interface.

Use undo bandwidth to restore the default.

Syntax

bandwidth bandwidth-value

undo bandwidth

Default

The expected bandwidth (in kbps) is the interface baud rate divided by 1000.

Views

Layer 2/Layer 3 RPR logical interface view

RPRGE/RPRPOS/RPRXGE interface view

Predefined user roles

network-admin

mdc-admin

Parameters

bandwidth-value: Specifies the expected bandwidth in the range of 1 to 400000000 kbps.

Usage guidelines

The expected bandwidth is an informational parameter used only by higher-layer protocols for calculation. You cannot adjust the actual bandwidth of an interface by using this command.

Examples

# Set the expected bandwidth to 10000 kbps for RPR-Bridge 1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] bandwidth 10000

# Set the expected bandwidth to 10000 kbps for RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr–router 1

[Sysname-RPR-Router1] bandwidth 10000

# Set the expected bandwidth to 10000 kbps for RPRGE 2/2/0.

<Sysname> system-view

[Sysname] interface rprge 2/2/0

[Sysname-RPRGE2/2/0] bandwidth 10000

# Set the expected bandwidth to 10000 kbps for RPRXGE 2/3/0.

<Sysname> system-view

[Sysname] interface rprxge 2/3/0

[Sysname-RPRXGE2/3/0] bandwidth 10000

# Set the expected bandwidth to 10000 kbps for RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] bandwidth 10000

RPR commands -- clock

Use clock to set the clock mode of an interface.

Use undo clock to restore the default.

Syntax

clock { master | slave }

undo clock

Default

The clock mode of an interface is slave.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

master: Specifies the internal clock as the clock source.

slave: Specifies the line clock as the clock source.

Usage guidelines

When the RPRPOS interfaces on two devices are directly connected, set the clock mode to master at one end and to slave at the other end. If the local RPRPOS interface is connected to an SONET/SDH device, set the clock mode to slave for the interface.

Examples

# Set the clock mode to master for RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] clock master

RPR commands -- crc

Use crc to set the CRC length for an interface.

Use undo crc to restore the default.

Syntax

crc { 16 | 32 }

undo crc

Default

The CRC length of an interface is 32 bits.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

16: Sets the CRC length to 16 bits.

32: Sets the CRC length to 32 bits.

Usage guidelines

The CRC length must be the same at both ends.

Examples

# Set the CRC length to 16 for RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] crc 16

RPR commands -- dampening

Use dampening to enable interface dampening.

Use undo dampening to restore the default.

Syntax

dampening [ half-life reuse suppress max-suppress-time ]

undo dampening

Default

The dampening feature is disabled for an interface.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

half-life: Specifies the amount of time (in seconds) for a penalty to decrease by half of its value. The value range is 1 to 120 seconds and the default is 54 seconds.

reuse: Specifies the reuse threshold. The value range is 200 to 20000 and the default is 750. The reuse threshold must be less than the suppression threshold.

suppress: Specifies the suppression threshold. The value range is 200 to 20000 and the default is 2000.

max-suppress-time: Specifies the maximum amount of time the interface can be dampened. The value range is 1 to 255 seconds and the default is 162 seconds (three times the half-life timer).

Usage guidelines

The dampening, link-delay, and port link-flap protect enable commands are mutually exclusive with each other on an RPRPOS interface.

This command does not take effect on the administratively down events. When you execute the shutdown command, the penalty restores to 0.

When an up event occurs for a dampened interface, the interface state is displayed as down from the output of the display interface command, MIB, or Web interface.

For more information about the interface dampening feature, see Interface Configuration Guide.

Examples

# Enable interface dampening on RPRPOS 2/4/0, and set the following parameters:

· Half life time to 2 seconds.

· Reuse value to 800.

· Suppression threshold to 3000.

· Maximum suppression interval to 5 seconds.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] dampening 2 800 3000 5

Related commands

display interface

link-delay

link-flap protect enable

RPR commands -- default

Use default to restore the default settings for an interface.

Syntax

default

Views

Layer 2/Layer 3 RPR logical interface view

RPRGE/RPRPOS/RPRXGE interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

| CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impact of this command when you use it on a live network.

This command might fail to restore the default settings for some commands for reasons such as command dependencies or system restrictions. You can use the display this command in interface view to identify these commands, and then use their undo forms or follow the command reference to restore their default settings. If your restoration attempt still fails, follow the error message instructions to resolve the problem.

Examples

# Restore the default settings for RPR-Bridge 1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] default

# Restore the default settings for RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] default

# Restore the default settings for RPRGE 2/2/0.

<Sysname> system-view

[Sysname] interface rprge 2/2/0

[Sysname-RPRGE2/2/0] default

# Restore the default settings for RPRXGE 2/3/0.

<Sysname> system-view

[Sysname] interface rprxge 2/3/0

[Sysname-RPRXGE2/3/0] default

# Restore the default settings for RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] default

RPR commands -- description

Use description to configure the description of an interface.

Use undo description to restore the default.

Syntax

description text

undo description

Default

The interface description uses the interface-name Interface format, for example, RPR-Bridge1 Interface.

Views

Layer 2/Layer 3 RPR logical interface view

RPRGE/RPRPOS/RPRXGE interface view

Predefined user roles

network-admin

mdc-admin

Parameters

text: Specifies the interface description, a case-sensitive string of 1 to 255 characters.

Examples

# Configure the description of 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 RPR-Router 1 as RPR-Router-1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] description RPR-Router-1

# Configure the description of RPRGE 2/2/0 as RPRGE-1.

<Sysname> system-view

[Sysname] interface rprge 2/2/0

[Sysname-RPRGE2/2/0] description RPRGE-1

# Configure the description of RPRXGE 2/3/0 as RPRXGE-1.

<Sysname> system-view

[Sysname] interface rprxge 2/3/0

[Sysname-RPRXGE2/3/0] description RPRXGE-1

# Configure the description of RPRPOS 2/4/0 as RPRPOS-1.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] description RPRPOS-1

Related commands

display interface

RPR commands -- display interface

Use display interface to display information about an interface.

Syntax

display interface [ { rpr-bridge | rpr-router | rprge | rprpos | rprxge } [ interface-number ] ] [ brief [ description | down ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

rpr-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

rprge: Specifies the RPRGE interface. Support for this keyword depends on the device model.

rprpos: Specifies the RPRPOS interface. Support for this keyword depends on the device model.

rprxge: Specifies the RPRXGE logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.

description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of interface descriptions.

down: Displays physically down interfaces and their down causes. If you do not specify this keyword, the command displays information about interfaces in any state.

Usage guidelines

If you do not specify the interface type, this command displays information about all types of interfaces.

If you specify the interface type but not the interface number, this command displays information about all interfaces of the specified type.

Examples

# Display detailed information about RPR-Bridge 1.

<Sysname> display interface rpr-bridge 1

RPR-Bridge1

Current state: DOWN

Description: RPR-Bridge1 Interface

Bandwidth: 1000kbps

IP packet frame type: Ethernet II, hardware address: 34b9-854b-0102

Unknown-speed mode, full-duplex mode

Link speed type is autonegotiation, link duplex type is autonegotiation

PVID: 1

Port link-type: Access

Tagged VLANs: none

UnTagged VLANs: 1

Last clearing of counters: Never

# Display detailed information about RPR-Router 1.

<Sysname> display interface rpr-router 1

RPR-Router1

Current state: DOWN

Line protocol state: DOWN

Description: RPR-Router1 Interface

Bandwidth: 1000kbps

Maximum transmit unit: 1500

Internet protocol processing: Disabled

IP packet frame type:Ethernet II, hardware address: 34b9-854b-0102

IPv6 packet frame type:Ethernet II, hardware address: 34b9-854b-0102

Last clearing of counters: Never

# Display brief information about RPR-Bridge 1.

<Sysname> display interface rpr-bridge 1 brief

Brief information on interface in bridge mode:

Link: ADM - administratively down; Stby - standby

Speed: (a) - auto

Duplex: (a)/A - auto; H - half; F - full

Type: A - access; T - trunk; H - hybrid

Interface Link Speed Duplex Type PVID Description

RPR-B1 DOWN auto A A 1

# Display brief information about RPR-Router 1.

<Sysname> display interface rpr-router 1 brief

Brief information on interface in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface Link Protocol Primary IP Description

RPR-R1 DOWN DOWN --

Table 1 Command output

Field | Description
Current state | Physical link state of the interface: · Administratively DOWN—The interface has been shut down by using the shutdown command. · DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed). · Link-Flap DOWN—The interface has been shut down by link flapping protection. · UP—The interface is both administratively and physically up.
Line protocol state | Data link layer state of the interface. The state is determined through automatic parameter negotiation at the data link layer. · UP—The data link layer protocol is up. · DOWN—The data link layer protocol is down.
Description | Description of the interface.
Bandwidth | Expected bandwidth of the interface. If the expected bandwidth of the interface is 0, this field is blank.
link duplex type is force link | The interface is manually configured with a duplex mode (for example, half or full) by using the duplex command.
PVID | Default VLAN ID of the interface.
Port link-type | Link type of the interface: · Access. · Trunk. · Hybrid.
Tagged VLANs | VLANs whose packets are to be sent out of the port tagged.
UnTagged VLANs | VLANs whose packets are to be sent out of the port untagged.
VLAN Passing | VLANs whose packets can be forwarded by the trunk port. The VLANs must have been created.
VLAN permitted | VLANs whose packets are permitted by the trunk port. The VLANs might not exist.
Trunk port encapsulation | Encapsulation protocol type for the trunk port.
Internet protocol processing: Disabled | The interface is not assigned an IP address and cannot process IP packets.
Internet Address | IP address of the interface. The primary attribute indicates that the address is the primary IP address.
IP packet frame type | IPv4 packet framing format.
IPv6 packet frame type | IPv6 packet framing format.
Last link flapping | The amount of time that has elapsed since the most recent physical state change of the interface. This field displays Never if the interface has been physically down since device startup.
Last clearing of counters | 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.
Dampening enabled: Penalty: 0 (not suppressed) Ceiling: 4525 Reuse: 800 Suppress: 3000 Half-life: 2 seconds Max-suppress-time: 5 seconds Flap count: 0 | Interface dampening information: · Dampening enabled—The dampening feature is enabled. · Penalty—Penalty value. The interface suppression state is displayed in parentheses. ?span style='font:7.0pt "Times New Roman"'> Not suppressed—The interface is not dampened. Interface state changes are reported to higher layer protocols. ?span style='font:7.0pt "Times New Roman"'> Suppressed—The interface is dampened. Interface state changes are not reported to higher layer protocols. · Ceiling—Maximum penalty value. · Reuse—Reuse threshold. · Suppress—Suppression threshold. · Half-life—Half-life timer. · Max-suppress-time—Maximum suppression time. · Flap count—Number of times that the interface has flapped. If interface dampening is disabled, the command does not display these fields.
Hold timer | Keepalive interval.
retry times | Keepalive retry limit. The interface determines that the remote end has been down if it does not receive a keepalive response when the keepalive retry limit is reached.
Internet Address | Interface IP address.
Link layer protocol | Data link layer protocol of the interface.
LCP: opened, IPCP: opened | LCP and IPCP negotiation succeeds.
Physical layer | Physical port.
Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec | Average input rates (in Bps, bps, and pps) for the last 300 seconds.
Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec | Average output rates (in Bps, bps, and pps) for the last 300 seconds.
errors | Statistics of incoming error packets.
runts | Number of inbound frames meeting the following conditions: · Shorter than 64 bytes. · In correct format. · Containing valid CRCs.
giants | Number of inbound giants. Giants refer to frames larger than the maximum frame length supported on the interface. For an Ethernet interface that does not permit jumbo frames, the maximum frame length is as follows: · 1518 bytes (without VLAN tags). · 1522 bytes (with VLAN tags). For an Ethernet interface that permits jumbo frames, the maximum Ethernet frame length is set when you configure jumbo frame support on the interface.
CRC | Total number of inbound frames that had a normal length, but contained CRC errors.
overruns | Number of packets dropped because the input rate of the port exceeded the queuing capability.
aborts | Total number of illegal inbound packets: · Fragment frames—CRC error frames shorter than 64 bytes. The length (in bytes) can be an integral or non-integral value. · Jabber frames—CRC error frames greater than the maximum frame length supported on the Ethernet interface (with an integral or non-integral length). ?span style='font:7.0pt "Times New Roman"'> For an Ethernet interface that does not permit jumbo frames, the maximum frame length is 1518 bytes (without VLAN tags) or 1522 bytes (with VLAN tags). ?span style='font:7.0pt "Times New Roman"'> For an Ethernet interface that permits jumbo frames, the maximum Ethernet frame length is set when you configure jumbo frame support on the interface. · Symbol error frames—Frames that contained at least one undefined symbol. · Unknown operation code frames—Non-pause MAC control frames. · Length error frames—Frames whose 802.3 length fields did not match the actual frame length (46 to 1500 bytes).
no buffers | Number of packets dropped because the receiving buffer is full.
underruns | Number of packets dropped because the output rate of the interface exceeded the memory reading rate.
Link | Physical link state of the interface: · UP—The interface is physically up. · DOWN—The interface is physically down. · ADM—The interface has been shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command. · Stby—The interface is a backup interface in standby state. To see the primary interface, use the display interface-backup state command.
Speed | Speed of the interface, in bps. This field displays the (a) flag next to the speed if the speed is automatically negotiated. This field displays auto if the interface is configured to autonegotiate its speed but the autonegotiation has not started.
Duplex | Duplex mode of the interface: · A—Autonegotiation. The interface is configured to autonegotiate its duplex mode but the autonegotiation has not started. · F—Full duplex. · F(a)—Autonegotiated full duplex. · H—Half duplex. · H(a)—Autonegotiated half duplex.
Type | Link type of the interface: · A—Access. · H—Hybrid. · T—Trunk.
Protocol | Data link layer protocol state of the interface: · UP—The data link layer protocol of the interface is up. · DOWN—The data link layer protocol of the interface is down. · UP(s)—The data link layer protocol of the interface is up, but the link is an on-demand link or does not exist. The (s) attribute represents the spoofing flag. This value is typical of null interfaces and loopback interfaces.
Primary IP | Primary IP address of the interface. This field displays two hyphens (--) if the interface does not have an IP address.

Related commands

reset counters interface

RPR commands -- display link-flap protection

Use display link-flap protection to display information about link flapping protection on RPRPOS interfaces.

Syntax

display link-flap protection [ interface rprpos [ interface-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface rprpos [ interface-number ]: Specifies RPRPOS interfaces. If you do not specify the interface rprpos keyword, this command displays information about all supported interfaces. If you specify the interface rprpos keyword without the interface-number argument, this command displays information about all RPRPOS interfaces.

Examples

# Display information about link flapping protection on all RPRPOS interfaces.

<Sysname> display link-flap protection

Link-flap protection: Enable

Interface Link-flap Status Interval Threshold

RPRPOS1/0/1 Enabled Down 10 5

RPRPOS1/0/2 Disabled N/A -- --

Table 2 Command output

Field | Description
Link-flap protection | Status of global link flapping protection: · Enable—Link flapping protection is enabled globally. · Disable—Link flapping protection is disabled globally.
Link-flap | Status of link flapping protection on an RPRPOS interface: · Enabled—Link flapping protection is enabled on an RPRPOS interface. · Disabled—Link flapping protection is disabled on an RPRPOS interface.
Status | Interface status: · Down—An RPRPOS interface has been shut down by the link flapping protection feature. · N/A—The interface status is not affected by the link flapping protection feature.
Interval | Link flapping detection interval for an RPRPOS interface.
Threshold | Link flapping detection threshold for an RPRPOS interface.

Related commands

link-flap protect enable

port link-flap protect enable

RPR commands -- display rpr bind-info

Use display rpr bind-info to display binding information for an interface.

Syntax

display rpr bind-info [ { rpr-bridge | rpr-router | rprge | rprpos | rprxge } interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

rpr-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

rprge: Specifies the RPRGE interface. Support for this keyword depends on the device model.

rprpos: Specifies the RPRPOS interface. Support for this keyword depends on the device model.

rprxge: Specifies the RPRXGE logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

Usage guidelines

If you do not specify an interface, this command displays binding information for all RPR logical interfaces.

Examples

# Display binding information for all RPR logical interfaces.

<Sysname> display rpr bind-info

Bind information on interface RPR-Bridge1:

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

Bind information on interface RPR-Router1:

Smart connection: Enabled/Connected

PHY interface Ringlet ID Role Mate port

---------------------------------------------------

RPRPOS2/4/0 0 Primary Up

RPRPOS2/4/1 1 Secondary Up

Table 3 Command output

Field | Description
Smart connection | State of the RPR mate port smart connection feature and connection state of the mate ports: · Enabled/Connected—The RPR mate port smart connection feature is enabled, and the mate ports have been connected internally. · Enabled/Disconnected—The RPR mate port smart connection feature is enabled, but the mate ports are not connected internally. · Disabled—The RPR mate port smart connection feature is disabled.
PHY interface | Physical ports bound to the RPR logical interface.
Ringlet ID | Binding relationship between the physical port and the RPR logical interface: · 0—The physical port is the west port. · 1—The physical port is the east port. · N/A—No binding exists.
Role | Role of the physical port: · Primary—The physical port is the primary port. · Secondary—The physical port is the secondary port. · N/A—No binding exists.
Mate port | State of the mate port connected to the physical port: · UP—The mate port is up. · Down—The mate port is down. · N/A—No binding exists.

RPR commands -- display rpr defect

Use display rpr defect to display RPR defect information.

Syntax

display rpr defect [ { rpr-bridge | rpr-router } interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

rpr-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

Usage guidelines

If you do not specify an interface, this command displays RPR defect information for all RPR logical interfaces.

Examples

# Display defect information for RPR-Router 1.

<Sysname> display rpr defect rpr-router 1

RPR defects on interface RPR-Router1:

Reserved rate exceeded : Ringlet0: 0; Ringlet1: 0

Jumbo configuration defect : 0

Maximum number of stations exceeded : 0

Miscabling : Ringlet0: 0; Ringlet1: 0

Protection mode configuration defect : 0

Inconsistent topology : 0

Unstable topology : 0

Invalid topology entry : 0

Duplicate IP address : 0

Duplicate secondary MAC address : 0

Maximum number of secondary MAC addresses exceeded: 0

Table 4 Command output

Field | Description
RPR defects on interface RPR-Router1 | Defect information for the station where the specified interface resides.
Reserved rate exceeded | Defect information about the reserved bandwidth for the ringlets: · 0—The used bandwidth has not exceeded the reserved bandwidth. · 1—The used bandwidth has exceeded the reserved bandwidth.
Jumbo configuration defect | Defect information about Jumbo frame configuration for the station: · 0—The Jumbo frame for this station is different than the Jumbo frames for other stations. · 1—No Jumbo frame for this station is the same as the Jumbo frames for other stations.
Maximum number of stations exceeded | Defect information about station number limit: · 0—The number of stations has not reached the upper limit. · 1—The number of stations has reached the upper limit.
Miscabling | Defect information about the optical fiber connection for the ringlets: · 0—Optical fibers are connected correctly. · 1—Optical fibers are connected incorrectly.
Protection mode configuration defect | Defect information about protection mode configuration for the station: · 0—This station uses the same protection mode as other stations. · 1—This station uses a different protection mode than other stations.
Inconsistent topology | Defect information about topology consistency for the station: · 0—This station provides the same topology information as other stations. · 1—This station provides different topology information than other stations.
Unstable topology | Defect information about topology stability for the station: · 0—The topology is stable. · 1—The topology is not stable.
Invalid topology entry | Defect information about topology validity for the station: · 0—The station is valid. · 1—The station is not valid.
Duplicate IP address | Defect information about IP address duplication for the station: · 0—IP address duplication has not occurred. · 1—IP address duplication has occurred.
Duplicate secondary MAC address | Defect information about secondary MAC address duplication for the station: · 0—Secondary MAC address duplication has not occurred. · 1—Secondary MAC address duplication has occurred.
Maximum number of secondary MAC addresses exceeded | Defect information about secondary MAC address number limit: · 0—The number of secondary MAC addresses has not reached the upper limit. · 1—The number of secondary MAC addresses has reached the upper limit.

RPR commands -- display rpr fairness

Use display rpr fairness to display information about RPR fairness settings.

Syntax

display rpr fairness [ { rpr-bridge | rpr-router } interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

rpr-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

Usage guidelines

If you do not specify an interface, this command displays RPR fairness settings for all RPR logical interfaces.

Examples

# Display RPR fairness settings for RPR-Router 1 that is bound with two 2.5G POS ports.

<Sysname> display rpr fairness rpr-router 1

RPR fairness parameters on interface RPR-Router1:

Fairness weight on Ringlet0: 1

Fairness weight on Ringlet1: 1

Local reserved bandwidth for class A0 service on Ringlet0: 0 Mbps

Local reserved bandwidth for class A0 service on Ringlet1: 0 Mbps

Local rate limit for subclass A1 service on Ringlet0: 5 Mbps

Local rate limit for subclass A1 service on Ringlet1: 5 Mbps

Local rate limit for class B CIR service on Ringlet0: 0 Mbps

Local rate limit for class B CIR service on Ringlet1: 0 Mbps

Local rate limit for class B EIR and class C service on Ringlet0: 2500 Mbps

Local rate limit for class B EIR and class C 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 RPR fairness settings for RPR-Router 2 that is not bound with physical ports.

<Sysname> display rpr fairness rpr-router 2

RPR fairness parameters on interface RPR-Router2:

Fairness weight on Ringlet0: 1

Fairness weight on Ringlet1: 1

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 limit for subclass A1 service on Ringlet0: 2 in permillage

Local rate limit for subclass A1 service on Ringlet1: 2 in permillage

Local rate limit for class B CIR service on Ringlet0: 0 in permillage

Local rate limit for class B CIR service on Ringlet1: 0 in permillage

Local rate limit for class B EIR and class C service on Ringlet0: 1000 in permillage

Local rate limit for class B EIR and class C service on Ringlet1: 1000 in permillage

| NOTE: For an RPR logical interface that is not bound with physical ports, the reserved bandwidth for each class of service is displayed as a permillage of the total bandwidth.

RPR commands -- display rpr mac-address

Use display rpr mac-address to display the MAC address table information for an RPR station.

Syntax

display rpr mac-address [ dynamic | static ] [ destination mac-address1 ] [ vlan vlan-id ] [ ring mac-address2 ] [ rpr-bridge interface-number ] [ count ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

dynamic: Displays the dynamic MAC address table.

static: Displays the static MAC address table.

destination mac-address1: Displays the MAC address table entry for the specified destination.

vlan vlan-id: Displays MAC address table information with the VLAN ID identified by the vlan-id argument. The value range for the vlan-id argument varies by device model.

ring mac-address2: Displays the MAC address table entry for the frame copying station identified by the mac-address2 argument.

rpr-bridge interface-number: Specifies a Layer 2 RPR logical interface by its number. If you do not specify this option, this command displays MAC address table information for the RPR stations that correspond to all Layer 2 logical interfaces.

count: Displays the number of entries in the specified MAC address table.

Examples

# Display information about the static MAC address tables for all RPR stations.

<Sysname> display rpr mac-address static

Static MAC address table on interface RPR-Bridge1:

MAC address VLAN ID Next hop Status Ringlet ID TTL

-----------------------------------------------------------------------

0001-0001-0001 1 00e0-fc01-6503 Valid 1 1

0001-0001-0001 2 00e0-fc01-6503 Valid 1 1

0002-0002-0002 2 00e0-fc01-6503 Invalid N/A N/A

0002-0002-0002 1000 00e0-fc01-6503 Valid 1 244

--- Total entrie(s): 4 ---

# Display information about the dynamic MAC address tables for all RPR stations.

<Sysname> display rpr mac-address dynamic

Dynamic MAC address table on interface RPR-Bridge1:

MAC address VLAN ID Next hop Status Ringlet ID TTL

-----------------------------------------------------------------------

0001-0001-0001 2 00e0-fc01-6503 Valid 1 1

--- Total entrie(s): 1 ---

| NOTE: The output of the RPR dynamic MAC address table varies by device model.

# Display information about the number of static MAC address entries.

<Sysname> display rpr mac-address static count

Static MAC address table on interface RPR-Bridge1:

5 entries found.

Static MAC address table on interface RPR-Bridge2:

No entry found.

# Display information about the number of dynamic MAC address entries.

<Sysname> display rpr mac-address dynamic count

Dynamic MAC address table on interface RPR-Bridge1:

No entry found.

Dynamic MAC address table on interface RPR-Bridge2:

No entry found.

| NOTE: The output for the RPR dynamic MAC address entry count varies by device model.

RPR commands -- display rpr mac-address aging-time

Use display rpr mac-address aging-time to display the aging timer for RPR dynamic MAC address table entries.

Syntax

display rpr mac-address aging-time

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Examples

# Display the aging timer for RPR dynamic MAC address table entries.

<Sysname> display rpr mac-address aging-time

Dynamic MAC-Learning aging time : 100 s

Table 5 Command output

Field | Description
Dynamic MAC-Learning aging time | Aging timer for dynamic RPR MAC address entries.

RPR commands -- display rpr protection

Use display rpr protection to display RPR protection information.

Syntax

display rpr protection [ { rpr-bridge | rpr-router } interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

rpr-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

Usage guidelines

RPR automatically verifies the protection mode consistency of all the stations on the ring. The protection mode configured for a station does not take effect if it is different than the protection mode used by other stations.

If you do not specify an interface, this command displays RPR protection information for all RPR logical interfaces.

Examples

# Display protection information for the RPR logical interface RPR-Router 1 that is bound with two physical ports.

<Sysname> display rpr protection rpr-router 1

Protection information on interface RPR-Router1:

Configured protection mode: Steer

Active protection mode: Steer

Protection reversion mode: Revertible

Context containment: Disabled

West span East span

Protection state IDLE FS

Edge state Unedged Edged

Last known neighbour 00e0-0100-0002 00e0-0300-0002

The number of protection states 1 4

The number of local edges 0 2

Last local edge time - 2014.04.08 05:47:31

Local edge start time - 2014.04.08 05:48:07

# Display protection information for the RPR logical interface RPR-Router 2 that is not bound with physical ports.

<Sysname> display rpr protection rpr-router 2

Protection information on interface RPR-Router2:

Configured protection mode: Steer

Protection reversion mode: Revertible

| NOTE: For an RPR logical interface not bound with physical ports, this command displays only its protection mode and protection reversion mode.

Table 6 Command output

Field | Description
Protection state | Protection state on the west and east spans: · FS—Forced switch. · SF—Signal fail. · SD—Signal degrade. · MS—Manual switch. · WTR—Wait to restore. · IDLE.
Edge state | Edge state on the west and east spans: · Edged—An edge exists. · Unedged—No edge exists.
Last known neighbour | MAC address of the adjacent stations on the west and east.
The number of protection states | Number of protection mode changes on the west and east spans.
The number of local edges | Number of edges that have occurred on the west and east spans.
Last local edge time | Time when the last edge occurred on the west and east spans.
Local edge start time | Time that the current edge started on the west and east spans.

RPR commands -- display rpr rs-table

Use display rpr rs-table to display RPR ringlet selection table information.

Syntax

display rpr rs-table { default | dynamic | overall | static } [ { rpr-bridge | rpr-router } interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

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-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

Usage guidelines

If you do not specify an interface, this command displays ringlet selection table information for all RPR logical interfaces.

Examples

# Display dynamic ringlet selection table information for all RPR stations.

<Sysname> display rpr rs-table dynamic

Dynamic ringlet selection table on interface RPR-Router1:

MAC address Ringlet ID TTL IP address Station name

---------------------------------------------------------------------------

00e0-fc00-1a01 0 1 -

--- Entries in total: 1 ---

# Display static ringlet selection table information for all RPR stations.

<Sysname> display rpr rs-table static

Static ringlet selection table on interface RPR-Router1:

MAC address Ringlet ID Status

-------------------------------------

0003-0002-0002 0 Invalid

--- Entries in total: 1 ---

# Display default ringlet selection table information for all RPR stations.

<Sysname>display rpr rs-table default

Default ringlet selection table on interface RPR-Router1:

Configured default ringlet: Ringlet0

Active default ringlet: Ringlet0

# Display overall ringlet selection table information for all RPR stations.

<Sysname>display rpr rs-table default

<Sysname> display rpr rs-table overall

Overall ringlet selection table on interface RPR-Router2:

MAC address Ringlet ID TTL Type IP address Station name

-----------------------------------------------------------------------------

00e0-fe10-0001 0 1 Dynamic -

--- Entries in total: 1 ---

Table 7 Command output

Field | Description
MAC address | MAC address of the destination station.
TTL | Number of hops to the destination station.
IP address | IP address of the destination station. – means the IP address is not configured.
Station name | Name of the destination station.

RPR commands -- display rpr statistics

Use display rpr statistics to display traffic statistics for RPR stations.

Syntax

display rpr statistics { dmac | smac } [ mac-address ] [ { rpr-bridge | rpr-router } interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

dmac: Displays statistics for traffic sent to the destination station specified by its MAC address.

smac: Displays statistics for traffic received from the source station specified by its MAC addresses.

mac-address: Specifies the MAC address of a source or destination station. If you do not specify this argument, this command displays statistics for all traffic sent or received.

rpr-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

Usage guidelines

If you do not specify an interface, this command displays statistics for all RPR logical interfaces.

Examples

# Display statistics for traffic sourced from 00E0-FC00-1A01 on the ring.

<Sysname> display rpr statistics smac 00e0-fc00-1a01

Statistics for traffic from the source station on interface RPR-Router1:

MAC address Packets Bytes

-------------------------------------------

00e0-fc00-1a01 1844 1844

RPR commands -- display rpr timers

Use display rpr timers to display RPR timers.

Syntax

display rpr timers [ { rpr-bridge | rpr-router } interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

rpr-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

Usage guidelines

If you do not specify an interface, this command displays RPR timers for all RPR logical interfaces.

Examples

# Display RPR timers for all stations.

<Sysname> display rpr timers

RPR timers on interface RPR-Bridge1:

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

RPR timers on interface RPR-Router1:

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

| NOTE: The output of the display rpr timer command varies by device model.

RPR commands -- display rpr topology

Use display rpr topology to display RPR topology information.

Syntax

display rpr topology { all | local | ring | stations } [ brief ] [ { rpr-bridge | rpr-router } interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

all: Displays all topology information.

local: Displays topology information for the local station.

ring: Displays ring topology information.

stations: Displays topology information for all stations on the ring.

brief: Displays brief RPR topology information. If you do not specify this argument, this command displays detailed RPR topology information.

rpr-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

Usage guidelines

For an RPR logical interface not bound to RPR physical ports, the following conditions exist:

· The display rpr topology local command displays only the station name and station IP address.

· The display rpr topology stations command has no output.

If you do not specify an interface, this command displays topology information for all RPR logical interfaces.

Examples

# Display all topology information for RPR-Router 1 that is bound with two physical ports.

<Sysname> display rpr topology all rpr-router 1

Ring-level topology information on interface RPR-Router1:

Number of stations on Ringlet0: 1

Number of stations on Ringlet1: 1

Total number of stations on the ring: 2

Jumbo preference: Regular

Ring topology type: Closed ring

Local station topology information on interface RPR-Router1:

Station name:

MAC address: 00e0-fc00-1001

IP address: -

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 RPR-Router1:

Station entry on Ringlet0:

MAC address: 00e0-fc00-1a01

Station name:

IP address: -

Hops: 1

Jumbo preference: Regular

Protection mode: Steer

Protection state on the west span: IDLE

Protection state on the east span: IDLE

Edge state on the west span: Unedged

Edge state on the east span: Unedged

Sequence number: 9

Reachability: Reachable

Valid: 1

Station entry on Ringlet1:

MAC address: 00e0-fc00-1a01

Station name:

IP address: -

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 all topology information for RPR-Router 2 that is not bound with physical ports.

<Sysname> display rpr topology all rpr-router 2

Ring-level topology information on interface RPR-Router2:

Number of stations on Ringlet0: 0

Number of stations on Ringlet1: 0

Total number of stations on the ring: 1

Jumbo preference: Regular

Ring topology type: Open ring

Local station topology information on interface RPR-Router2:

Station name:

IP address: -

Station topology information on interface RPR-Router2:

Station entry on Ringlet0:

No station entry.

Station entry on Ringlet1:

No station entry.

Table 8 Command output

Field | Description
IP address | Station IP address. – means the IP address is not configured.
Active protection mode | Protection mode used by the station: wrapping or steering.
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.
Edge state on the west span | Edge state on the west span: · Edged—An edge exists. · Unedged—No edge exists.
Edge state on the east span | Edge state on the east span: · Edged—An edge exists. · Unedged—No edge exists.
Hops | Number of hops between the local station and a destination 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 most recently learned neighbor on the west span.
Last known neighbour on the east span | MAC address of the most recently learned neighbor on the east span.
Valid | Entry status: · 1—Valid. · 0—Invalid.

# Display brief topology information for all stations.

<Sysname> display rpr topology all brief

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 RPR-Router1:

Ringlet0 Ringlet1 Ring Jumbo prefer Topology type

---------------------------------------------------------

1 1 2 Regular Closed ring

Local station topology information on interface RPR-Router1:

MAC address PSW PSE ESW ESE WC JP IP address Station name

------------------------------------------------------------------------

00e0-fc00-1001 IDLE IDLE 0 0 0 0 - StationA

Station topology information on interface RPR-Router1:

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 - 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 - StationB

Table 9 Command output

Field | Description
PSE | Protection state on the east span: · FS—Forced switch. · SF—Signal fail. · SD—Signal degrade. · MS—Manual switch. · WTR—Wait to restore. · IDLE.
PSW | Protection state on the west span: · FS—Forced switch. · SF—Signal fail. · SD—Signal degrade. · MS—Manual switch. · WTR—Wait to restore. · IDLE.
ESE | Edge state on the east span: · 1—An edge exists. · 0—No edge exists.
ESW | Edge state on the west span: · 1—An edge exists. · 0—No edge exists.
WC | Protection mode: · 1—Wrapping mode. · 0—Steering mode.
JP | Indicates whether Jumbo frames are supported: · 1—Jumbo frames are supported. · 0—Jumbo frames are not supported.
Ringlet0 | Number of stations on the west span.
Ringlet1 | Number of stations on the east span.
Ring | Total number of stations on the ring.
Jumbo prefer | Indicates whether Jumbo frames are supported: · Regular—Not supported. · Jumbo—Supported.
Station entry on ringlet0 | Brief topology information of the neighbor station on the west span.
Station entry on ringlet1 | Brief topology information of the neighbor station on the east span.

# Display topology information for the local station.

Local station topology information on interface RPR-Router1:

Station name: StationA

MAC address: 00e0-fc00-1001

IP address: -

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 10 Command output

Field | Description
Jumbo preference | Indicates whether Jumbo frames are supported: · Regular—Not supported. · Jumbo—Supported.

# Display 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 11 Command output

Field | Description
Jumbo preference | Indicates whether Jumbo frames are supported: · Regular—Not supported. · Jumbo—Supported.

# Display topology information for all stations on the ring.

<Sysname>display rpr topology stations

Station topology information on interface RPR-Router1:

Station entry on Ringlet0:

MAC address: 00e0-fc00-1a01

Station name: StationA

IP address: -

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: -

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 12 Command output

Field | Description
Jumbo preference | Indicates whether Jumbo frames are supported: · regular—Not supported. · jumbo—Supported.
Sequence number | Sequence number of the TP frame.
Valid | Entry status: · 1—Valid. · 0—Invalid.

RPR commands -- flag c2

Use flag c2 to set the C2 path signal label byte.

Use undo flag c2 to restore the default.

Syntax

flag c2 flag-value

undo flag c2

Default

The C2 value is 0x16.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

flag-value: Specifies a C2 byte value, a hexadecimal number in the range of 00 to ff.

Usage guidelines

The C2 byte is a higher-order path overhead byte. It indicates the multiplex structure of virtual container (VC) frames and the property of payload.

The C2 byte must be the same at both ends of a link.

Examples

# Set the C2 byte to 0x01 on RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] flag c2 01

Related commands

display interface

RPR commands -- flag j0

Use flag j0 to set the J0 regenerator section trace byte for SONET or SDH frames.

Use undo flag j0 to restore the default.

Syntax

flag j0 { sdh | sonet } flag-value

undo flag j0 { sdh | sonet }

Default

The device uses the SDH framing format. In SDH frames, the J0 byte is an empty string.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

flag-value: Specifies the J0 byte. It must be a string of 1 to 15 characters for SDH, and a hexadecimal number in the range of 00 to ff for SONET.

sdh: Specifies the SDH framing format.

sonet: Specifies the SONET framing format.

Usage guidelines

J0 byte is a section overhead byte. SDH and SONET use this byte to test continuity of the connection between two interfaces at the span level.

The J0 byte can be different on devices of the same service provider. On the interfaces between two service providers, the J0 byte must be the same.

Examples

# Set the J0 byte to 0xff for SDH on RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] flag j0 sdh ff

Related commands

display interface

frame-format

RPR commands -- flag j1

Use flag j1 to set the J1 path trace byte for SONET or SDH frames.

Use undo flag j1 to restore the default.

Syntax

flag j1 { sdh | sonet } flag-value

undo flag j1 { sdh | sonet }

Default

The device uses the SDH framing format. In SDH frames, the J1 byte is an empty string.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

flag-value: Specifies a J1 byte value. It must be a string of 1 to 15 characters for SDH and a string of 1 to 62 characters for SONET.

sdh: Specifies the SDH framing format.

sonet: Specifies the SONET framing format.

Usage guidelines

J1 byte is a higher-order path overhead byte. SDH and SONET use this byte to test continuity of the connection between two interfaces at the path level.

The J1 byte must be the same at both ends of a link.

Examples

# Set the J1 byte to aabbcc for SDH on RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] flag j1 sdh aabbcc

Related commands

display interface

flag j1 ignore

frame-format

RPR commands -- flag j1 ignore

Use flag j1 ignore to ignore CRC of the J1 byte.

Use undo flag j1 ignore to restore the default.

Syntax

flag j1 ignore

undo flag j1 ignore

Default

CRC is performed for the J1 byte.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Examples

# Ignore CRC of the J1 byte on RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] flag j1 ignore

Related commands

flag j1

RPR commands -- flow-interval

Use flow-interval to set the packet statistics collection interval.

Use undo flow-interval to restore the default.

Syntax

flow-interval interval

undo flow-interval

Default

The default setting varies by device model.

Views

System view

RPRGE/RPRPOS/RPRXGE interface view

Predefined user roles

network-admin

mdc-admin

Parameters

interval: Sets the packet statistics collection interval in the range of 5 to 300 seconds and in increments of 5.

Usage guidelines

You can configure the packet statistics collection interval in system view and interface view. The configuration in system view applies to all interfaces and takes precedence over interface view.

Examples

# Set the global packet statistics collection interval to 100 seconds.

<Sysname> system-view

[Sysname] flow-interval 100

# Set the packet statistics collection interval to 100 seconds for RPRGE 2/2/0.

<Sysname> system-view

[Sysname] interface rprge 2/2/0

[Sysname-RPRGE2/2/0] flow-interval 100

# Set the packet statistics collection interval to 100 seconds for RPRXGE2/3/0.

<Sysname> system-view

[Sysname] interface rprxge 2/3/0

[Sysname-RPRXGE2/3/0] flow-interval 100

# Set the packet statistics collection interval to 100 seconds for RPRPOS2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] flow-interval 100

RPR commands -- frame-format

Use frame-format to set the framing format for the interface.

Use undo frame-format to restore the default.

Syntax

frame-format { sdh | sonet }

undo frame-format

Default

The framing format is SDH.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

sdh: Sets the framing format to SDH.

sonet: Sets the framing format to SONET.

Usage guidelines

The overhead bytes configured with the flag j0 and flag j1 commands must match the framing format.

Examples

# Set the framing format to SONET for RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] frame-format sonet

Related commands

flag j0

flag j1

RPR commands -- interface

Use { rprge | rprpos | rprxge } to enter RPR physical port view.

Use interface { rpr-bridge | rpr-router } to create an RPR logical interface and enter its view, or enter the view of an existing RPR logical interface.

Use undo interface { rpr-bridge | rpr-router } to delete an RPR logical interface.

Syntax

interface { rprge | rprpos | rprxge } interface-number

interface { rpr-bridge | rpr-router } interface-number

undo interface { rpr-bridge | rpr-router } interface-number

Default

No RPR logical interfaces exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

rprge: Specifies an RPRGE port. Support for this keyword depends on the device model.

rprpos: Specifies an RPRPOS port. Support for this keyword depends on the device model.

rprxge: Specifies an RPRXGE port. Support for this keyword depends on the device model.

rpr-bridge: Specifies a Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies a Layer 3 RPR logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an interface by its number.

Examples

# Create interface RPR-Bridge 1 and enter its view.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1]

# Create interface RPR-Router 1 and enter its view.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-router1]

RPR commands -- link-delay

Use link-delay to set the link state change suppression interval on an interface.

Use undo link-delay to restore the default.

Syntax

link-delay msec milliseconds

undo link-delay

Default

The default setting varies by device model.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

msec milliseconds: Sets the link state change suppression interval on an interface, in milliseconds. The value range for this argument varies by device model.

Usage guidelines

This command prevents frequent link state changes within an interval. When an interface comes up or goes down, the interface state changes accordingly after the suppression interval expires.

This command suppresses up state change, down state change, or both, depending on the device model.

The link-delay, dampening, and port link-flap protect enable commands are mutually exclusive with each other on an RPRPOS interface.

Examples

# Set the link state change suppression interval to 100 milliseconds for RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] link-delay msec 100

Related commands

dampening

port link-flap protect enable

RPR commands -- link-flap protect enable

Use link-flap protect enable to enable link flapping protection globally.

Use undo link-flap protect enable to disable link flapping protection globally.

Syntax

link-flap protect enable

undo link-flap protect enable

Default

Link flapping protection is disabled globally.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Link flapping changes network topology and increases the system overhead. For example, in an active/standby link scenario, when the interface status on the active link changes between UP and DOWN, traffic switches between active and standby links. To solve this problem, you can execute the link-flap protect enable command.

With link flapping protection enabled on an RPRPOS interface, when the interface goes down, the system enables link flapping detection on the interface. During the link flapping detection interval, if the number of detected flaps reaches or exceeds the link flapping detection threshold, the system shuts down the interface.

Link flapping protection takes effect on an RPRPOS interface only when it is enabled in both system view and interface view.

Examples

# Enable link flapping protection globally.

<Sysname> system-view

[Sysname] link-flap protect enable

Related commands

port link-flap protect enable

RPR commands -- mtu

Use mtu to set the maximum transmission unit (MTU) size for an interface.

Use undo mtu to restore the default.

Syntax

mtu size

undo mtu

Default

The default setting varies by device model.

Views

Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Parameters

size: Sets the MTU in bytes. The value range for this argument varies by device model.

Usage guidelines

The MTU setting affects the assembly and fragmentation of IP packets.

Examples

# Set the MTU of RPR-Router 1 to 1492.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] mtu 1492

RPR commands -- port link-flap protect enable

Use port link-flap protect enable to enable link flapping protection on an RPRPOS interface.

Use undo port link-flap protect enable to disable link flapping protection on an RPRPOS interface.

Syntax

port link-flap protect enable [ interval interval | threshold threshold ] *

undo port link-flap protect enable [ interval | threshold ]

Default

Link flapping protection is disabled on an RPRPOS interface.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

interval: Specifies the link flapping detection interval in the range of 10 to 60 seconds. The default value for this argument is 10.

threshold: Specifies the link flapping detection threshold in the range of 5 to 10. The default value for this argument is 5.

Usage guidelines

Link flapping protection takes effect on an RPRPOS interface only when it is enabled in both system view and interface view.

If you do not specify the interval interval or threshold threshold option for the port link-flap protect enable command, the default settings apply.

If you specify the interval or threshold keyword for the undo port link-flap protect enable command, the command restores the default setting for the keyword.

With link flapping protection enabled on an RPRPOS interface, when the interface goes down, the system enables link flapping detection on the interface. During the link flapping detection interval, if the number of detected flaps reaches or exceeds the link flapping detection threshold, the system shuts down the interface.

To bring up an RPRPOS interface that has been shut down by link flapping protection, execute the undo shutdown command.

The port link-flap protect enable, dampening, and link-delay commands are mutually exclusive with each other on an RPRPOS interface.

Examples

# Enable link flapping protection on an RPRPOS interface, and set the link flapping detection interval and threshold to 10 seconds and 5, respectively.

<Sysname> system-view

[Sysname] interface rprpos 1/0/1

[Sysname-RPRPOS1/0/1] port link-flap protect enable interval 10 threshold 5

Related commands

dampening

link-delay

link-flap protect enable

RPR commands -- reset counters interface

Use reset counters interface to clear interface statistics.

Syntax

reset counters interface [ { rpr-bridge | rpr-router | rprge | rprpos | rprxge } [ interface-number ] ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

rpr-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

rprge: Specifies the RPRGE interface. Support for this keyword depends on the device model.

rprpos: Specifies the RPRPOS interface. Support for this keyword depends on the device model.

rprxge: Specifies the RPRXGE logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

Usage guidelines

To collect statistics for an RPR logical interface within a specific period, you must clear statistics for the interface before starting statistics collection.

If you do not specify an interface, this command clears statistics for all interfaces.

If you specify the interface type, but not the interface number, this command clears statistics for all interfaces of the specified type.

Examples

# Clear statistics for RPR-Bridge 1.

<Sysname> reset counters interface rpr-bridge 1

# Clear statistics for RPR-Router 1.

<Sysname> reset counters interface rpr-router 1

# Clear statistics for RPRGE 2/2/0.

<Sysname> reset counters interface rprge 2/2/0

# Clear statistics for RPRXGE 2/3/0.

<Sysname> reset counters interface rprxge 2/3/0

# Clear statistics for RPRPOS 2/4/0.

<Sysname> reset counters interface rprpos 2/4/0

Related commands

display interface

RPR commands -- reset rpr protection statistics

Use reset rpr protection statistics to clear RPR protection event statistics.

Syntax

reset rpr protection statistics [ { rpr-bridge | rpr-router } interface-number ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

rpr-bridge: Specifies the Layer 2 RPR logical interface. Support for this keyword depends on the device model.

rpr-router: Specifies the Layer 3 RPR logical interface. Support for this keyword depends on the device model.

interface-number: Specifies an existing interface by its number.

Usage guidelines

If you do not specify an interface, this command clears RPR protection events statistics for all RPR logical interfaces.

Examples

# Clear RPR protection event statistics for all stations.

<Sysname> reset rpr protection statistics

RPR commands -- rpr admin-request

Use rpr admin-request to configure a manual protection request for a station on a ringlet.

Syntax

rpr admin-request { fs | idle | ms } { ringlet0 | ringlet1 }

Default

Idle protection applies.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Parameters

fs: Specifies a forced switch (FS) protection request.

idle: Specifies an idle protection request. If you specify this keyword, the command clears the FS or MS protection request.

ms: Specifies a manual switch (MS) protection request.

ringlet0: Specifies Ringlet 0.

ringlet1: Specifies Ringlet 1.

Usage guidelines

Six types of protection requests, FS, signal fail (SF), signal degrade (SD), MS, wait to restore (WTR), and idle, are available with decreased priorities. FS and MS requests are sent manually. SF, SD, and WTR requests are sent automatically.

On an RPR station, only the protection request with the highest priority will be processed.

If you execute this command multiple times for an RPR physical port, the most recent configuration takes effect.

Examples

# Configure an FS protection request on Ringlet 0 for RPR-Bridge 1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr admin-request fs ringlet0

# Configure an FS protection request on Ringlet 0 for RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr admin-request fs ringlet0

RPR commands -- rpr bind

| NOTE: Support for this command depends on the device model.

Use rpr bind to bind an RPR physical port to an RPR logical interface.

Use undo rpr bind to remove the binding.

Syntax

In Layer 2 or Layer 3 RPR logical interface view:

rpr bind { { rprge | rprpos | rprxge } interface-number } { ringlet0 | ringlet1 }

undo rpr bind { { rprge | rprpos | rprxge } interface-number }

In RPRGE interface view, RPRPOS interface view, or RPRXGE interface view:

rpr bind { { rpr-bridge | rpr-router } interface-number } { ringlet0 | ringlet1 }

undo rpr bind

Default

No RPR physical ports are bound to an RPR logical interface.

Views

Layer 2/Layer 3 RPR logical interface view

RPRGE/RPRPOS/RPRXGE interface view

Predefined user roles

network-admin

mdc-admin

Parameters

{ rprge | rprpos | rprxge } interface-number: Specifies an RPR physical port by its type and number. Support for the types of RPR physical ports depends on the device model.

{ rpr-bridge | rpr-router } interface-number: Specifies an RPR logical interface by its type and number. Support for the types of RPR logical interfaces depends on the device model.

ringlet0: Specifies the receiving port on Ringlet 0 as the west port of the RPR logical interface.

ringlet1: Specifies the receiving port on Ringlet 1 as the east port of the RPR logical interface.

Usage guidelines

An RPR logical interface must be bound with one or two RPR physical ports. An RPR physical port can be bound to only one RPR logical interface.

Each RPR physical port has a mate port. You must connect the mate ports of the two RPR physical ports bound to the same RPR logical interface.

Examples

# Configure RPRPOS 2/4/0 as the west port of RPR-Bridge 1 in Layer 2 RPR logical interface view.

<Sysname> system-view

[sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr bind rprpos 2/4/0 ringlet0

# Configure RPRPOS 2/4/0 as the west port of RPR-Router 1 in Layer 3 RPR logical interface view.

<Sysname> system-view

[sysname] interface rpr-router 1

[sysname-RPR-Router1] rpr bind rprpos 2/4/0 ringlet0

# Configure RPRPOS 2/4/0 as the east port of RPR-Bridge 1 in RPRPOS interface view.

<Sysname> system-view

[sysname] interface rprpos 2/4/0

[sysname-RPRPOS2/3] rpr bind rpr-bridge 1 ringlet1

# Configure RPRPOS 2/4/0 as the east port of RPR-Router 1 in RPRPOS interface view.

<Sysname> system-view

[sysname] interface rprpos 2/4/0

[sysname-RPRPOS2/4] rpr bind rpr-router 1 ringlet1

RPR commands -- rpr default-rs ringlet1

Use rpr default-rs ringlet1 to configure Ringlet 1 as the default sending ringlet.

Use undo rpr default-rs to restore the default.

Syntax

rpr default-rs ringlet1

undo rpr default-rs

Default

The default sending ringlet is Ringlet 0.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

If the configured default sending ringlet is faulty, the other ringlet takes over. If both ringlets are faulty, the system uses the configured default sending ringlet.

Examples

# Specify Ringlet 1 as the default sending ringlet for RPR-Bridge1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr default-rs ringlet1

# Specify Ringlet 1 as the default sending ringlet for RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr default-rs ringlet1

RPR commands -- rpr echo mac

Use rpr echo mac to test the connectivity between the current station and a peer station.

Syntax

rpr echo mac mac-address [ -c c-value | -r { reverse | ringlet0 | ringlet1 } | -s { ringlet0 | ringlet1 } | -t t-value ] *

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Parameters

mac-address: Specifies the MAC address of the peer station.

-c c-value: Specifies the number of Echo Requests to be sent for testing connectivity, in the range of 1 to 1000. The default value is 5.

-r: Specifies the sending ringlet for Echo Responses.

reverse: Specifies the ringlet on the reverse direction of the Echo Request receiving ringlet.

-s: Specifies the sending ringlet for Echo Requests.

ringlet0: Specifies Ringlet 0.

ringlet1: Specifies Ringlet 1.

-t t-value: Specifies the echo response timeout timer in the range of 10 to 65535 milliseconds. The default value is 200 milliseconds.

Usage guidelines

If neither the sending ringlet nor the receiving ringlet is specified, ringlets are selected from the overall ringlet selection table for transmitting Echo Request packets and Echo Response packets.

The connectivity between the current station and a peer station is considered normal if the following conditions exist:

· The peer station can receive Echo Request packets from the current station on a specific ringlet.

· The current station can receive Echo Response packets from the peer station on a specific ringlet.

Examples

# Test connectivity between the current station and the station with MAC address 0012-3F83-A1E3 on RPR-Bridge 1. Specify ringlet 0 as the sending ringlet and ringlet 1 as the receiving ringlet.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] 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-A1E3: ringlet=1 hops=1 seq=6 time=1 ms

--- Ping statistics for 0012-3F83-A1E3 ---

5 packet(s) transmitted

5 packet(s) received

0.0% packet loss

Round-trip min/avg/max = 1/1/1 ms

# Test connectivity between the current station and the station with MAC address 0012-3F83-A1E3 on RPR-Router 1. Specify ringlet 0 as the sending ringlet and ringlet 1 as the receiving ringlet.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] 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-A1E3: ringlet=1 hops=1 seq=6 time=1 ms

--- Ping statistics for 0012-3F83-A1E3 ---

5 packet(s) transmitted

5 packet(s) received

0.0% packet loss

Round-trip min/avg/max = 1/1/1 ms

RPR commands -- rpr encapsulation extend

| NOTE: Support for this command depends on the device model.

Use rpr encapsulation extend to set the extended packet encapsulation mode.

Use undo rpr encapsulation extend to restore the default.

Syntax

rpr encapsulation extend

undo rpr encapsulation extend

Default

An RPR station uses the standard packet encapsulation mode.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

If a ring contains S9500E switches, you must set the extended packet encapsulation mode. If the ring does not contain S9500E switches, as a best practice, set the standard packet encapsulation mode.

All devices on a ring must be configured with the same packet encapsulation mode.

Examples

# Set the extended packet encapsulation mode for RPR-Bridge1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr encapsulation extend

# Set the extended packet encapsulation mode for RPR-Router1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr encapsulation extend

RPR commands -- rpr mac-address

Use rpr mac-address to create a MAC address entry.

Use undo rpr mac-address to remove a MAC address entry.

Syntax

rpr mac-address { dynamic | static } destination mac-address1 vlan vlan-id ring mac-address2

undo rpr mac-address [ dynamic | static ] [ destination mac-address1 ] [ vlan vlan-id ] [ ring mac-address2 ]

Default

No MAC address entries exist.

Views

Layer 2 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Parameters

dynamic: Creates a dynamic MAC address entry.

static: Creates a static MAC address entry.

mac-address1: Specifies the destination MAC address.

mac-address2: Specifies the MAC address of the copying station for the destination MAC address on the ring.

vlan-id: Specifies the ID of the VLAN to which the destination MAC address belongs. The value range for this argument varies by device model.

Usage guidelines

The MAC address specified by the mac-address2 argument must belong to a station on the RPR ring.

Examples

# Create a static MAC address entry on RPR-Bridge 1. Specify the destination MAC address 0011-43CA-7D45 that belongs to VLAN 5 and the copying station MAC address 2256-38B8-D92C.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr mac-address static destination 0011-43ca-7d45 vlan 5 ring 2256-38b8-d92c

Related commands

display rpr mac-address

RPR commands -- rpr mac-address timer

Use rpr mac-address timer to set the aging timer for dynamic MAC address entries.

Use undo rpr mac-address timer to restore the default.

Syntax

rpr mac-address timer { aging seconds | no-aging }

undo rpr mac-address timer

Default

RPR dynamic MAC address entries age out after 300 seconds.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

aging seconds: Sets the aging timer for dynamic MAC address entries in the range of 0 to 85899 seconds.

no-aging: Specifies that dynamic MAC address entries do not age out.

Examples

# Set the aging timer to 600 seconds for dynamic MAC address entries.

<Sysname> system-view

[Sysname] rpr mac-address timer aging 600

Related commands

display rpr mac-address aging-time

RPR commands -- rpr mate smart-connect

Use rpr mate smart-connect to enable the RPR mate port smart connection feature.

Use undo rpr mate smart-connect to disable the feature.

Syntax

rpr mate smart-connect

undo rpr mate smart-connect

Default

The RPR mate port smart connection feature is disabled.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Smart connection automatically connects mate ports for the two RPR physical ports on the same subcard.

Examples

# Enable RPR mate port smart connection on 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 RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr mate smart-connect

RPR commands -- rpr port-type

Use rpr port-type to change the RPR physical port type.

Syntax

rpr port-type { 10gpos | 10ge }

Default

The RPR physical port type varies by device model.

Views

RPRPOS/RPRXGE interface view

Predefined user roles

network-admin

mdc-admin

Parameters

10gpos: Changes the type of RPR physical ports to 10GPOS.

10ge: Changes the type of RPR physical ports to 10GE.

Usage guidelines

After you change the RPR physical port type, the following results will occur:

· The subcard where the RPR physical ports reside will reboot, and the configuration on the ports will be lost.

· The ports previously assigned to the non-default Multitenant Device Context (MDC) will be assigned to the default MDC. You must manually change the MDC assignment.

This command takes effect only on 10GPOS and 10GE RPR physical ports. If you execute the command on a 2.5G POS or GE RPR physical port, an error message is displayed.

Examples

# Change the type of RPRXGE 2/3/0 to 10GPOS.

<Sysname> system-view

[Sysname] interface rprxge 2/3/0

[Sysname-RPRXGE2/3/0] rpr port-type 10gpos

# Change the type of RPRPOS 2/4/0 to 10GE.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] rpr port-type 10ge

RPR commands -- rpr protect-mode wrap

| NOTE: Support for this command depends on the device model.

Use rpr protect-mode wrap to set the wrapping protection mode.

Use undo rpr protect-mode to restore the default.

Syntax

rpr protect-mode wrap

undo rpr protect-mode

Default

A station uses the steering protection mode.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Examples

# Set the wrapping protection mode for the station of RPR-Bridge 1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr protect-mode wrap

# Set the wrapping protection mode for the station of RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr protect-mode wrap

Related commands

display rpr protection

RPR commands -- rpr rate-limit

Use rpr rate-limit to configure reserved bandwidth or rate limit for a service class on a sending ringlet.

Use undo rpr rate-limit to remove the reserved bandwidth or rate limit for a service class on a sending ringlet.

Syntax

rpr rate-limit { high | low | medium | reserved } { ringlet0 | ringlet1 } value

undo rpr rate-limit { high | low | medium | reserved } { ringlet0 | ringlet1 }

Default

The default setting varies by service class.

· 0‰ bandwidth reservation for subclass A0.

· 2‰ data rate limit for subclass A1.

· 0‰ data rate limit for class B-CIR.

· 1000‰ data rate limit for classes C and B-EIR.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Parameters

high: Specifies rate limit for subclass A1 traffic.

low: Specifies rate limit for class B-EIR and class C traffic.

medium: Specifies rate limit for class B-CIR traffic.

reserved: Specifies the reserved bandwidth for subclass A0 traffic.

ringlet0: Specifies Ringlet 0 as the sending ringlet.

ringlet1: Specifies Ringlet 1 as the sending ringlet.

value: Set the reserved bandwidth or rate limit value in the range of 0 to 1000, in permillage.

Usage guidelines

The total bandwidth reserved for subclass A0 by the stations on a ringlet must be less than the ringlet bandwidth.

Examples

# Set the reserved bandwidth to 5‰ for subclass A0 traffic on Ringlet 0 for RPR-Bridge 1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr rate-limit reserved ringlet0 5

# Set the reserved bandwidth to 5‰ for subclass A0 traffic on Ringlet 0 for RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr rate-limit reserved ringlet0 5

RPR commands -- rpr reversion-mode non-revertive

Use rpr reversion-mode non-revertive to set the RPR protection reversion mode.

Use undo rpr reversion-mode to restore the default.

Syntax

rpr reversion-mode non-revertive

undo rpr reversion-mode

Default

A station uses the RPR revertive protection mode.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Examples

# Set the non-revertive protection mode for RPR-Bridge 1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr reversion-mode non-revertive

# Set the non-revertive protection mode for RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr reversion-mode non-revertive

RPR commands -- rpr static-rs

Use rpr static-rs to create a static ringlet selection entry.

Use undo rpr static-rs to remove a static ringlet selection entry.

Syntax

rpr static-rs mac-address { ringlet0 | ringlet1 }

undo rpr static-rs mac-address

Default

No static ringlet selection entries exist.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Parameters

ringlet0: Specifies Ringlet 0 as the sending ringlet for data frames destined to the specified MAC address.

ringlet1: Specifies Ringlet 1 as the sending ringlet for data frames destined to the specified MAC address.

mac-address: Specifies a destination station by its MAC address.

Examples

# Create two static ringlet selection entries on RPR-Bridge 1. Specify Ringlet 0 for sending data frames destined to 0001-0002-0003, and Ringlet 1 for sending data frames destined to 0001-0002-0004.

<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

# Create two static ringlet selection entries on RPR-Router 1. Specify Ringlet 0 for sending data frames destined to 0001-0002-0003, and Ringlet 1 for sending data frames destined to 0001-0002-0004.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr static-rs 0001-0002-0003 ringlet0

[Sysname-RPR-Router1] rpr static-rs 0001-0002-0004 ringlet1

RPR commands -- rpr station-name

Use rpr station-name to configure an RPR station name.

Use undo rpr station-name to remove an RPR station name.

Syntax

rpr station-name station-name

undo rpr station-name

Default

An RPR station is not configured with a name.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Parameters

station-name: Configures an RPR station name, a string of 1 to 127 characters.

Examples

# Configure ABC as the station name on RPR-Bridge 1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr station-name ABC

# Configure ABC as the station name on RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr station-name ABC

RPR commands -- rpr timer

Use rpr timer to set RPR timers.

Use undo rpr timer to remove the RPR timer settings.

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 }

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.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

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 steps of 10 milliseconds in the range of 0 to 200 milliseconds. Support for this keyword depends on the device model.

keepalive keepalive-value: Sets the keepalive timer in the range of 2 to 200 milliseconds. Support for this keyword depends on the device model.

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 steps of 50 milliseconds and in the range of 50 to 10000 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 steps of 50 milliseconds in the range of 50 to 10000 milliseconds.

wtr wtr-value: Sets the WTR timer in the range of 0 to 1440 seconds.

Examples

# Set the ATD timer to 3 seconds on 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 RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr timer atd 3

Related commands

display rpr timers

RPR commands -- rpr weight

Use rpr weight to set the weight of a station.

Use undo rpr weight to remove the weight of a station.

Syntax

rpr weight { ringlet0 | ringlet1 } value

undo rpr weight { ringlet0 | ringlet1 }

Default

The weight of a station on both ringlets is 1.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Parameters

ringlet0: Sets the weight of the station on Ringlet 0.

ringlet1: Sets the weight of the station on Ringlet 1.

value: Specifies the weight in the range of 0 to 255. The value must be a power of 2.

Examples

# Set the station weight to 2 for Ringlet 0 on RPR-Bridge 1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr weight ringlet0 2

# Set the station weight to 2 for Ringlet 0 on RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr weight ringlet0 2

Related commands

rpr weight standard

RPR commands -- rpr weight standard

| NOTE: Support for this command depends on the device model.

Use rpr weight standard to specify the standard algorithm for calculating the weight in ATD frames.

Use undo rpr weight standard to restore the default.

Syntax

rpr weight standard

undo rpr weight standard

Default

An RPR station uses the proprietary algorithm for calculating the weight in ATD frames.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

All devices on a ring must be configured with the same algorithm for calculating the weight in ATD frames. If an RPR station supports only the standard algorithm, set the standard algorithm for all RPR stations on the ring.

Examples

# Specify the standard algorithm for calculating the weight in ATD frames for RPR-Bridge1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] rpr weight standard

# Specify the standard algorithm for calculating the weight in ATD frames for RPR-Router1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] rpr weight standard

Related commands

rpr weight

RPR commands -- scramble

Use scramble to enable payload scrambling on an interface.

Use undo scramble to disable payload scrambling.

Syntax

scramble

undo scramble

Default

Payload scrambling is enabled on an interface.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

The payload scrambling setting must be the same at both ends of a link.

Payload scrambling enables an interface to scramble outgoing data and unscramble incoming data.

Several physical layer protocols rely on transitions between 1s and 0s to maintain clocking. By preventing the presence of long strings of all 1s or all 0s, payload scrambling enables the receiving end to extract the line clock signal correctly.

If payload scrambling is disabled, the interface does not scramble outgoing data or unscramble incoming data.

Examples

# Enable payload scrambling on RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] scramble

RPR commands -- service

Use service to specify a traffic processing slot for an RPR logical interface.

Use undo service to restore the default.

Syntax

Distributed devices in standalone mode:Centralized IRF devices:

service slot slot-number

undo service slot

Distributed devices in IRF mode:

service chassis chassis-number slot slot-number

undo service chassis

Default

No traffic processing slot is specified for an RPR logical interface. Traffic on an RPR logical interface is processed on the slot at which the traffic arrives.

Views

Layer 2/Layer 3 RPR logical interface view

Predefined user roles

network-admin

mdc-admin

Parameters

slot slot-number: Specifies a card by its slot number. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. (Distributed devices in IRF mode.) (IRF 3 capable.)

Usage guidelines

This command is supported on distributed devices and IRF-capable centralized devices.

Specify a traffic processing slot for an RPR logical interface if all traffic on the RPR logical interface must be processed on the same slot.

If you do not specify a traffic processing slot or the specified traffic processing slot is unavailable, the traffic is processed on the slot at which it arrives.

Examples

# Specify a traffic processing slot for RPR-Bridge 1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] service slot 2

# Specify a traffic processing slot for RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] service slot 2

RPR commands -- shutdown

Use shutdown to shut down an interface.

Use undo shutdown to bring up an interface.

Syntax

shutdown

undo shutdown

Default

An interface is up.

Views

Layer 2/Layer 3 RPR logical interface view

RPRGE/RPRPOS/RPRXGE interface view

Predefined user roles

network-admin

mdc-admin

Examples

# Shut down RPR-Bridge 1.

<Sysname> system-view

[Sysname] interface rpr-bridge 1

[Sysname-RPR-Bridge1] shutdown

# Shut down RPR-Router 1.

<Sysname> system-view

[Sysname] interface rpr-router 1

[Sysname-RPR-Router1] shutdown

# Shut down RPRGE 2/2/0.

<Sysname> system-view

[Sysname] interface rprge 2/2/0

[Sysname-RPRGE2/2/0] shutdown

# Shut down RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] shutdown

# Shut down RPRXGE 2/3/0.

<Sysname> system-view

[Sysname] interface rprxge 2/3/0

[Sysname-RPRXGE2/3/0] shutdown

RPR commands -- snmp-agent trap enable { b1-tca | b2-tca | b3-tca }

Use snmp-agent trap enable { b1-tca | b2-tca | b3-tca } to enable SNMP notifications about signal transmission performance for an interface.

Use undo snmp-agent trap enable { b1-tca | b2-tca | b3-tca } to disable SNMP notifications about signal transmission performance for an interface.

Syntax

snmp-agent trap enable { b1-tca | b2-tca | b3-tca }

undo snmp-agent trap enable { b1-tca | b2-tca | b3-tca }

Default

Signal transmission performance notifications are enabled for an RPR interface.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

To generate SNMP notifications when a B1, B2, or B3 alarm occurs on an RPR interface, use this command.

B1, B2, and B3 bytes indicate the signal transmission performance of a line at different levels.

· B1 alarm occurs if the bite error rate of a complete STM-N frame exceeds the B1 alarm threshold.

· B2 alarm occurs if the bite error rate of an STM-1 frame exceeds the B2 alarm threshold.

· B3 alarm occurs if the bite error rate of a multiplexed signal (VC3 or VC4 frame) in the STM-1 frame exceeds the B3 alarm threshold.

For more information about SNMP notifications, see Network Management and Monitoring Configuration Guide.

Examples

# Disable B1 alarm notifications on RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] undo snmp-agent trap enable b1-tca

Related commands

threshold { b1-tca | b2-tca | b3-tca }

RPR commands -- threshold

Use threshold to set the SD or SF alarm threshold for an interface.

Use undo threshold to remove the SD or SF alarm threshold setting for an interface.

Syntax

threshold { sd sdvalue| sf sfvalue }*

undo threshold { sd | sf }

Default

The default setting varies by device model.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

sd: Specifies the SD alarm threshold.

sdvalue: Specifies the power for setting the SD alarm threshold. The threshold is 10e to the power of negative sdvalue (10e–sdvalue). The value range for this argument varies by device model. The greater the value, the lower the SD alarm threshold.

sf: Specifies the SF alarm threshold. The SF alarm threshold must be higher than the SD alarm threshold.

sfvalue: Specifies the power for setting the SF alarm threshold. The threshold is 10e to the power of negative sdvalue (10e–sfvalue). The value range for this argument varies by device model. The greater the value, the lower the SF alarm threshold.

Usage guidelines

An interface generates SD or SF alarms when the bit error rate exceeds the SD or SF alarm threshold. The SF alarm threshold must be higher than the SD alarm threshold. SF alarms indicate a more serious line performance degradation than SD alarms. The sdvalue argument must be greater than the sfvalue argument

Examples

# Configure the SD threshold as 10e to the power of negative 4 (10e–4) on RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] threshold sd 4

RPR commands -- threshold { b1-tca | b2-tca | b3-tca }

Use threshold { b1-tca | b2-tca | b3-tca } to configure the power for setting the B1, B2, or B3 alarm threshold on an interface.

Use undo threshold { b1-tca | b2-tca | b3-tca } to remove the configuration.

Syntax

threshold { b1-tca b1value | b2-tca b2value | b3-tca b3value }

undo threshold { b1-tca | b2-tca | b3-tca }

Default

The default setting varies by device model.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

b1value: Specifies the power for setting the B1 alarm threshold. The threshold is 10e to the power of negative b1value (10e–b1value). The value range for this argument is 3 to 9. The greater the value, the lower the B1 alarm threshold.

b2value: Specifies the power for setting the B2 alarm threshold. The threshold is 10e to the power of negative b2value (10e–b2value). The value range for this argument is 3 to 9. The greater the value, the lower the B2 alarm threshold.

b3value: Specifies the power for setting the B3 alarm threshold. The threshold is 10e to the power of negative b1value (10e–b3value). The value range for this argument is 3 to 9. The greater the value, the lower the B3 alarm threshold.

Usage guidelines

B1, B2, and B3 bytes indicate the signal transmission performance of a line at different levels.

· B1 alarm occurs if the bite error rate of a complete STM-N frame exceeds the B1 alarm threshold.

· B2 alarm occurs if the bite error rate of an STM-1 frame exceeds the B2 alarm threshold.

· B3 alarm occurs if the bite error rate of a multiplexed signal (VC3 or VC4 frame) in the STM-1 frame exceeds the B3 alarm threshold.

To generate SNMP notifications about these alarms, use the snmp-agent trap enable { b1-tca | b2-tca | b3-tca } command.

Examples

# Configure the B1 alarm threshold as 10e to the power of negative 4 (10e–4) on RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] threshold b1-tca 4

Related commands

snmp-agent trap enable { b1-tca | b2-tca | b3-tca }

RPR commands -- timer-hold

Use timer-hold to set the keepalive interval.

Use undo timer-hold to restore the default.

Syntax

timer-hold seconds

undo timer-hold

Default

The keepalive interval is 10 seconds.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

seconds: Specifies the interval for sending keepalive packets, in the range of 0 to 32767 seconds.

Usage guidelines

On an interface encapsulated with PPP, FR, or HDLC, the data link layer sends keepalive packets at keepalive intervals to detect the availability of the remote end. The data link layer determines that the peer end has been down if it does not receive keepalive messages when the keepalive retry limit is reached. The data link layer then reports the link down event to the upper-layer protocols.

To set the keepalive retry limit, use the timer-hold retry command.

On a slow link, increase the keepalive interval to prevent false shutdown of the interface. This situation might occur when keepalive packets are delayed because a large packet is being transmitted on the link.

Examples

# Set the keepalive interval to 15 seconds for RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] timer-hold 15

Related commands

timer-hold retry

RPR commands -- timer-hold retry

Use timer-hold retry to set the keepalive retry limit.

Use undo timer-hold retry to restore the default.

Syntax

timer-hold retry retry

undo timer-hold retry

Default

The keepalive retry limit is 5.

Views

RPRPOS interface view

Predefined user roles

network-admin

mdc-admin

Parameters

retry: Specifies the maximum number of keepalive attempts, in the range of 1 to 255.

Usage guidelines

The interface determines that the remote end has been down if it does not receive a keepalive response when the keepalive retry limit is reached.

This command applies to interfaces encapsulated with PPP, FR, or HDLC. To set the keepalive interval, use the timer-hold command.

On a slow link, increase the keepalive retry limit to prevent false shutdown of the interface. This situation might occur when keepalive packets are delayed because a large packet is being transmitted on the link.

Examples

# Set the keepalive retry limit to 10 for RPRPOS 2/4/0.

<Sysname> system-view

[Sysname] interface rprpos 2/4/0

[Sysname-RPRPOS2/4/0] timer-hold retry 10

Related commands

timer-hold