H3C S3600 Series EPON OLT Switches Command Manual-Release 3103-6W100

16-RRPP Commands

Chapters Download  (76.56 KB)

16-RRPP Commands


RRPP Configuration Commands

RRPP Configuration Commands

control-vlan

Syntax

control-vlan vlan-id

undo control-vlan

View

RRPP domain view

Default Level

2: System level

Parameters

vlan-id: Specifies a VLAN as the primary control VLAN for the RRPP domain, in the range 2 to 4093. This VLAN must be one not created yet.

Description

Use the control-vlan command to specify the primary control VLAN for the current RRPP domain.

Use the undo control-vlan command to remove the control VLANs configured for the current RRPP domain.

Note that:

l          When configuring control VLANs for an RRPP domain, you only need to configure the control VLAN for the primary ring, that is, the primary control VLAN. The system will automatically configure the VLAN whose VLAN ID is the primary control VLAN ID plus 1 as the secondary control VLAN for subrings. Like the primary control VLAN, the secondary control VLAN must be one not created yet. For the control VLAN configuration to be successful, you must make sure that the IDs for the two control VLANs have not been assigned yet.

l          Before configuring RRPP rings for an RRPP domain, you can delete or modify the control VLANs configured for the RRPP domain. However, after configuring RRPP rings for an RRPP domain, you cannot delete or modify the control VLANs of the domain.

l          You cannot use the undo vlan all command to delete a control VLAN.

l          Do not enable QinQ or VLAN mapping on the control VLAN. Otherwise, RRPPDUs cannot be forwarded properly.

Related commands: rrpp domain.

Examples

# Configure VLAN 100 as the primary control VLAN of RRPP domain 1.

<Sysname> system-view

[Sysname] rrpp domain 1

[Sysname-rrpp-domain1] control-vlan 100

display rrpp brief

Syntax

display rrpp brief

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display rrpp brief command to display the brief RRPP information.

Examples

# Display the brief RRPP information.

<Sysname> display rrpp brief

Flags for Node Mode :

M –- Master , T -- Transit , E -- Edge , A -- Assistant-Edge

 

RRPP Protocol Status: Enable

Number of RRPP Domains: 2

 

Domain ID     : 1

Control VLAN  : Major 5    Sub 6

Protected VLAN: Reference Instance 0 to 2, 4

Hello Timer   : 1  sec  Fail Timer : 3  sec

 Ring  Ring   Node  Primary/Common             Secondary/Edge             Enable

 ID    Level  Mode  Port                       Port                       Status

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

 1     1      M     GigabitEthernet1/1/1       GigabitEthernet1/1/3       Yes

 

Domain ID     : 2

Control VLAN  : Major 10    Sub 11

Hello Timer   : 1  sec  Fail Timer : 3  sec

Protected VLAN: Reference Instance 0 to 2, 4

 Ring  Ring   Node  Primary/Common            Secondary/Edge              Enable

 ID    Level  Mode  Port                      Port                        Status

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

 1     0      T     GigabitEthernet1/1/3       GigabitEthernet1/1/1       Yes

Table 1-1 display rrpp brief command output description

Field

Description

Flags for Node Mode

RRPP node mode

l      M represents master node

l      T represents transit node

l      E represents edge node

l      A represents assistant edge node

RRPP Protocol Status

RRPP protocol status

l      Enable (globally enabled)

l      Disable (globally disabled)

Number of RRPP Domains

Number of RRPP domains configured

Domain ID

RRPP domain ID

Control VLAN

Control VLANs of the RRPP domain: Major and Sub

Protected VLAN

List of VLANs protected by the RRPP domain. MSTIs are displayed here. To get the VLANs corresponding to these MSTIs, use the display stp region-configuration command.

Hello Timer

Hello Timer value in seconds

Fail Timer

Fail Timer value in seconds

Ring ID

RRPP ring ID

Ring Level

RRPP ring level

l      0 representing primary ring

l      1 representing subring

Node Mode

Node mode

Primary/Common Port

l      Primary port when the node mode is master node or transit node

l      Common port when the node mode is edge node or assistant edge node

l      “-“ appears when the port is not configured on the ring

Secondary/Edge Port

l      Secondary port when the node mode is master node or transit node

l      Edge port when the node mode is edge node or assistant edge node

l      “-“ appears when the port is not configured on the ring

Enable Status

RRPP ring status

l      Yes indicates enabled

l      No indicates disabled

 

display rrpp statistics

Syntax

display rrpp statistics domain domain-id [ ring ring-id ]

View

Any view

Default Level

1: Monitor level

Parameters

domain-id: RRPP domain ID, in the range 1 to 8.

ring-id: RRPP ring ID, in the range 1 to 64.

Description

Use the display rrpp statistics command to display RRPPDU statistics.

Note that:

l          If an RRPP ring ID is specified, the RRPPDU statistics for the specified RRPP ring in the specified RRPP domain on the current device are displayed. If not, the RRPPDU statistics for all RRPP rings in the specified RRPP domain are displayed.

l          If a certain port belongs to more than one ring, its RRPPDU statistics are collected and displayed by ring.

l          When a ring transits from inactive status into active status, packet counting for the ring restarts.

Related commands: reset rrpp statistics.

Examples

# Display the RRPPDU statistics for ring 1 in RRPP domain 1.

<Sysname> display rrpp statistics domain 1 ring 1

Ring ID       : 1

Ring Level    : 1

Node Mode     : Master

Active Status : Yes

Primary port  : GigabitEthernet1/1/1

 Packet            Link        Common      Complete   Edge  Major Packet

 Direct Hello      Down        Flush FDB   Flush FDB  Hello Fault Total

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

 Send   16424       0           0           1         0     0     16425

 Rcv    0           0           0           0         0     0     0

Secondary port: GigabitEthernet1/1/3

 Packet            Link        Common      Complete   Edge  Major Packet

 Direct Hello      Down        Flush FDB   Flush FDB  Hello Fault Total

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

 Send   0           0           0           0         0     0     0

 Rcv    16378       0           0           1         0     0     16379

Table 1-2 display rrpp statistics command output description

Field

Description

Ring ID

RRPP ring ID

Ring Level

RRPP ring level:

l      0 for primary ring

l      1 for subring

Node Mode

Node mode:

l      Master node

l      Transit node

Active Status

RRPP ring activation status:

l      Yes for active

l      No for inactive

Primary Port

The primary port field means the node mode is master node or transit node. “-“ appears when the port is not configured on the ring, and in this case, no corresponding statistics appears.

Secondary Port

The secondary port field means the node mode is master node or transit node. “-” appears when the port is not configured on the ring, and in this case, no corresponding statistics appears.

Packet Direct

Packet transmission direction on the port: Send or Rcv

Hello

Hello packet statistics received/sent on the port

Link Down

Link-Down packet statistics received/sent on the port

Common Flush FDB

Common-Flush-FDB packet statistics received/sent on the port

Complete Flush FDB

Complete-Flush-FDB packet statistics received/sent on the port

Edge Hello

Edge-Hello packet statistics received/sent on the port

Major Fault

Major-Fault packet statistics received/sent on the port

Packet Total

Total number of packets received/sent on the port. Here only Hello, Link-Down, Common-Flush-FDB, Complete-Flush-FDB, Edge-Hello, and Major-Fault packets of RRPP are counted.

 

display rrpp verbose

Syntax

display rrpp verbose domain domain-id [ ring ring-id ]

View

Any view

Default Level

1: Monitor level

Parameters

domain-id: RRPP domain ID, in the range 1 to 8.

ring-id: RRPP ring ID, in the range 1 to 64.

Description

Use the display rrpp verbose command to display detailed RRPP information.

If you have specified an RRPP ring ID in the command, the detailed information of the specified ring in the specified RRPP domain appears. Otherwise, the detailed information of all the rings in the specified RRPP domain appears.

Examples

# Display the detailed information of ring 1 in RRPP domain 1.

<Sysname> display rrpp verbose domain 1 ring 1

Domain ID     : 1

Control VLAN  : Major 5    Sub 6

Protected VLAN: Reference Instance 0 to 2, 4

Hello Timer   : 1  sec  Fail Timer : 3  sec

Ring ID       : 1

Ring Level    : 1

Node Mode     : Master

Ring State    : Complete

Enable Status : Yes    Active Status: Yes

Primary port  : GigabitEthernet1/1/1              Port status: UP

Secondary port: GigabitEthernet1/1/3              Port status: BLOCKED

Table 1-3 display rrpp verbose command output description

Field

Description

Domain ID

RRPP domain ID

Control VLAN

Control VLANs of the RRPP domain:

l      Major: Represents the primary control VLAN

l      Sub: Represents the secondary control VLAN

Protected VLAN

List of VLANs protected by the RRPP domain. MSTIs are displayed here. To get the VLANs corresponding to these MSTIs, use the display stp region-configuration command.

Hello Timer

Hello Timer value in seconds

Fail Timer

Fail Timer value in seconds

Ring ID

RRPP ring ID

Ring Level

RRPP ring level:

l      0 representing primary ring

l      1 representing subring

Node Mode

Node mode:

l      Master node

l      Transit node

Ring State

RRPP ring state. This field makes sense only when the node mode field is master node.

l      “Complete” appears when the ring is in health state;

l      “Failed” appears when the ring is in disconnect sate;

l      “–” appears in all the other cases.

Enable Status

RRPP ring enable status

l      Yes for enabled

l      No for disabled

Active Status

RRPP ring activation status. An RRPP ring can be active only when the RRPP protocol and the RRPP ring are both enabled. Therefore, you can also use this field to identify whether the RRPP protocol are enabled. Two statuses are available:

l      Yes for active

l      No for inactive

Primary Port

The primary port field means the node mode is master node or transit node. “-“ appears when the port is not configured on the ring.

Secondary Port

The secondary port field means the node mode is master node or transit node. - appears when the port is not configured on the ring.

Port status

Port status includes down, up and blocked; “-“ appears in one of the following cases:

l      the ring is inactive

l      the port is not configured on the ring

l      the board to which the port belongs does not start

 

protected-vlan

Syntax

protected-vlan reference-instance instance-id-list

undo protected-vlan [ reference-instance instance-id-list ]

View

RRPP domain view

Default Level

2: System level

Parameters

reference-instance instance-id-list: Specifies the MSTIs to be referenced. The range of the instance-id-list argument is as specified in the command configuring MSTIs.

Description

Use the protected-vlan command to configure the protected VLANs for the RRPP domain. The protected VLANs are specified by the MSTIs.

Use the undo protected-vlan command to remove the specified protected VLANs of the RRPP domain. If no MSTI is specified, all protected VLANs of the RRPP domain are removed.

By default, no protected VLAN is specified for an RRPP domain.

Note that:

l          You can use the display stp region-configuration command to check the VLANs corresponding to the specified MSTIs.

l          Before configuring rings for an RRPP domain, you can delete or modify the protected VLANs configured for the RRPP domain; after configuring rings for an RRPP domain, you can delete or modify the protected VLANs configured for the RRPP domain, however, you cannot delete all the protected VLANs configured for the domain.

l          When the VLAN-to-MSTI mappings change, the protected VLANs of an RRPP domain also changes according to the MSTIs configured for the domain.

l          All the VLANs permitted to pass through RRPP ports must be configured as protected VLANs of the RRPP domain.

Related commands: rrpp domain, display stp region-configuration in MSTP Commands in this manual.

Examples

# Configure VLANs mapped to MSTI 2 and MSTI 3 as the protected VLANs of RRPP domain 1.

<Sysname> system-view

[Sysname] rrpp domain 1

[Sysname-rrpp-domain1] control-vlan 100

[Sysname-rrpp-domain1] protected-vlan reference-instance 2 to 3

reset rrpp statistics

Syntax

reset rrpp statistics domain domain-id [ ring ring-id ]

View

User view

Default Level

1: Monitor level

Parameters

domain-id: RRPP domain ID, in the range 1 to 8.

ring-id: RRPP ring ID, in the range 1 to 64.

Description

Use the reset rrpp statistics command to clear RRPPDU statistics.

If you have specified an RRPP ring ID in the command, RRPPDU statistics of the specified RRPP ring in the specified RRPP domain on the current device are cleared. Otherwise, RRPPDU statistics of all RRPP rings in the specified RRPP domain are cleared.

Related commands: display rrpp statistics.

Examples

# Clear the RRPPDU statistics of ring 10 in RRPP domain 10.

<Sysname> reset rrpp statistics domain 1 ring 10

ring

Syntax

ring ring-id node-mode { { master | transit } [ primary-port interface-type interface-number ] [ secondary-port interface-type interface-number ] level level-value }

undo ring ring-id

View

RRPP domain view

Default Level

2: System level

Parameters

ring-id: RRPP ring ID, in the range 1 to 64.

master: Specifies the device as the master node of the RRPP ring.

transit: Specifies the device as the transit node of the RRPP ring.

primary-port: Specifies the port as a primary port.

interface-type interface-number: Specifies a port by its type and number.

secondary-port: Specifies the port as a secondary port.

level-value: RRPP ring level, with 0 representing primary ring and 1 representing subring.

Description

Use the ring command to configure the node mode of the device, the role of the specified RRPP port, and the level of the RRPP ring.

Use the undo ring command to remove the configuration.

Ports connected to an RRPP ring must conform to the following conditions:

l          The link type of these ports must be trunk.

l          They must be GE ports, and can not be OLT ports or ONU ports.

l          They must not be Layer 2 aggregate ports.

l          They must not be member ports of any aggregation group, service loopback group, or smart link group.

l          STP is disabled on them.

l          You are recommended not to configure physical-link-state change suppression time on a port accessing an RRPP ring to accelerate topology convergence. For details, refer to Ethernet Port Configuration.

Note that:

l          Make sure the control VLAN and the protected VLAN have been configured before configuring the RRPP ring.

l          Because each S3600 EPON OLT switch has only two Gigabit uplink combo ports that support RRPP, you can configure only one RRPP ring in an RRPP domain. Hence, you cannot configure an S3600 EPON OLT switch as an edge node or assistant-edge node of an RRPP ring. When configuring edge nodes or assistant-edge nodes of RRPP rings, select H3C switches of other series.

l          The node mode, RRPP port role, and ring level settings of an RRPP ring cannot be modified once they are configured. To modify the settings, you must first remove the present settings.

Related command: ring enable.

Examples

# Specify the device as the master node of primary ring 10 in RRPP domain 1, GigabitEthernet 1/1/1 as the primary port and GigabitEthernet 1/1/3 as the secondary port.

<Sysname> system-view

[Sysname] rrpp domain 1

[Sysname-rrpp-domain1] control-vlan 100

[Sysname-rrpp-domain1] protect-vlan reference-instance 0 1 2

[Sysname-rrpp-domain1] ring 10 node-mode master primary-port gigabitethernet 1/1/1 secondary-port gigabitethernet 1/1/3 level 0

# Specify the device as the transit node of primary ring 10 in RRPP domain 1, GigabitEthernet 1/1/1 as the primary port and GigabitEthernet 1/1/3 as the secondary port.

<Sysname> system-view

[Sysname] rrpp domain 1

[Sysname-rrpp-domain1] control-vlan 100

[Sysname-rrpp-domain1] protect-vlan reference-instance 0 1 2

[Sysname-rrpp-domain1] ring 10 node-mode transit primary-port gigabitethernet 1/1/1 secondary-port gigabitethernet 1/1/3 level 0

# Specify the device as the master node of subring 20 in RRPP domain 1, GigabitEthernet 1/1/1 as the primary port and GigabitEthernet 1/1/3 as the secondary port.

<Sysname> system-view

[Sysname] rrpp domain 1

[Sysname-rrpp-domain1] control-vlan 100

[Sysname-rrpp-domain1] protect-vlan reference-instance 0 1 2

[Sysname-rrpp-domain1] ring 20 node-mode master primary-port gigabitethernet 1/1/1 secondary-port gigabitethernet 1/1/3 level 1

# Specify the device as the transit node of primary ring 20 in RRPP domain 1, GigabitEthernet 1/1/1 as the primary port and GigabitEthernet 1/1/3 as the secondary port.

<Sysname> system-view

[Sysname] rrpp domain 1

[Sysname-rrpp-domain1] control-vlan 100

[Sysname-rrpp-domain1] protect-vlan reference-instance 0 1 2

[Sysname-rrpp-domain1] ring 20 node-mode transit primary-port gigabitethernet 1/1/1 secondary-port gigabitethernet 1/1/3 level 1

ring enable

Syntax

ring ring-id enable

undo ring ring-id enable

View

RRPP domain view

Default Level

2: System level

Parameters

ring-id: RRPP ring ID, in the range 1 to 64.

Description

Use the ring enable command to enable the RRPP ring.

Use the undo ring enable command to disable the RRPP ring.

By default, the RRPP ring is disabled.

To activate the RRPP domain, enable the RRPP protocol and the RRPP rings for the RRPP domain.

Related commands: rrpp enable.

Examples

# Enable RRPP ring 10 in RRPP domain 1.

<Sysname> system-view

[Sysname] rrpp domain 1

[Sysname-rrpp-domain1] control-vlan 100

[Sysname-rrpp-domain1] protect-vlan reference-instance 0 1 2

[Sysname-rrpp-domain1] ring 10 node-mode master primary-port gigabitethernet 1/1/1 secondary-port gigabitethernet 1/1/3 level 0

[Sysname-rrpp-domain1] ring 10 enable

rrpp domain

Syntax

rrpp domain domain-id

undo rrpp domain domain-id

View

System view

Default Level

2: System level

Parameters

domain-id: RRPP domain ID, in the range 1 to 8.

Description

Use the rrpp domain command to create an RRPP domain and enter its view.

Use the undo rrpp domain command to remove an RRPP domain.

Note that:

l          When you delete an RRPP domain, the control VLANs and protected VLANs of it are deleted at the same time.

l          To delete an RRPP domain successfully, be sure that it has no RRPP rings.

Related commands: control-vlan, protected-vlan.

Examples

# Create RRPP domain 1, and enter RRPP domain 1 view.

<Sysname> system-view

[Sysname] rrpp domain 1

[Sysname-rrpp-domain1]

rrpp enable

Syntax

rrpp enable

undo rrpp enable

View

System view

Default Level

2: System level

Parameters

None

Description

Use the rrpp enable command to enable RRPP protocol.

Use the undo rrpp enable command to disable RRPP protocol.

By default, RRPP protocol is disabled.

To activate the RRPP domain, enable the RRPP protocol and the RRPP rings for the RRPP domain.

Related commands: ring enable.

Examples

# Enable the RRPP protocol.

<Sysname> system-view

[Sysname] rrpp enable

timer

Syntax

timer hello-timer hello-value fail-timer fail-value

undo timer

View

RRPP domain view

Default Level

2: System level

Parameters

hello-value: Hello timer value, in the range 1 to 10 seconds.

fail-value: Fail timer value, in the range 3 to 30 seconds.

Description

Use the timer command to configure the Hello timer value and the Fail timer value for the RRPP domain.

Use the undo timer command to restore it to the default value.

By default, the Hello timer value is 1 second and the Fail timer value is 3 seconds.

Note that:

l          The Fail timer value must be equal to or greater than three times the Hello timer value.

l          To avoid temporary loops when the primary ring fails in a dual-homed-ring network, ensure that the difference between the Fail timer value on the master node of the subring and that on the master node of the primary ring is greater than twice the Hello timer value of the master node of the subring.

Examples

# Set the Hello timer value to 2 seconds and the Fail timer value to 7 seconds.

<Sysname> system-view

[Sysname] rrpp domain 1

[Sysname-rrpp-domain1] timer hello-timer 2 fail-timer 7

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.