Syntax
control-vlan vlan-id
View
RRPP domain view
Parameter
vlan-id:
Control VLAN ID, in the range of 2 to 4093.
Description
Use the control-vlan command to
specify the control VLAN for the RRPP domain. The control VLAN cannot be a VLAN
you have created, and you are not recommended to configure the same VLAN as
both control VLAN and remote-probe VLAN.
You can configure the control VLAN of the
primary ring. The control VLAN of the subring is assigned by the system
automatically. The ID of the subring control VLAN is the ID of the primary ring
control VLAN plus 1.
Example
# Configure VLAN 100 as the control VLAN of
RRPP domain 1.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] control-vlan 100
Syntax
display rrpp brief
View
Any view
Parameter
None
Description
Use the display rrpp brief command
to display the brief information of all RRPP domains configured on the switch,
including the RRPP enable state, RRPP domain configuration, and Ethernet rings
in the domains.
Example
# Display the brief information of the RRPP
domains.
<H3C> display rrpp brief
Abbreviations for Switch Node Mode :
M - Master , T - Transit , E - Edge ,
A - Assistant-Edge
RRPP Protocol Status : Enabled
Number of RRPP Domains : 2
Domain Index : 1
Control Vlan : major 4093 sub 4094
Hello Timer : 1 sec Fail Timer : 3
sec
Ring Ring Node
Primary/Common Secondary/Edge Is
ID Level Mode
Port Port Enabled
-------------------------------------------------------------------------
1 0 M GigabitEthernet
1/0/1 GigabitEthernet 1/0/2 Yes
Domain Index : 2
Control Vlan : major 2003 sub
2004
Hello Timer : 1 sec Fail Timer : 3
sec
Ring Ring Node
Primary/Common Secondary/Edge Is
ID Level Mode
Port Port Enabled
----------------------------------------------------------------------
1 0 T GigabitEthernet
1/0/11 GigabitEthernet 1/0/12 No
Syntax
display rrpp statistics domain domain-id [ ring ring-id ]
View
Any view
Parameter
domain-id:
RRPP domain ID, in the range of 1 to 8.
ring-id:
RRPP ring ID, in the range of 1 to 64.
Description
Use the display rrpp statistics
command to display the RRPP packet statistics.
Example
# Display the packet statistics of primary
ring 10 in RRPP domain1 (the current switch is the master node of ring 10).
<H3C> display rrpp statistics
domain 1 ring 10
RRPP Ring : 10
Ring Level : 0
Node Mode : Master
Is Activated : No
Primary port : -
Packet LINK
LINK COMMON COMPLETE Packet
Direct HEALTH UP
DOWN FDB FDB Total
-------------------------------------------------------------------------
Send 0 0
0 0 0 0
Rcv 0 0
0 0 0 0
Secondary port: -
Packet LINK
LINK COMMON COMPLETE Packet
Direct HEALTH UP
DOWN FDB FDB Total
-------------------------------------------------------------------------
Send 0 0
0 0 0 0
Rcv 0 0
0 0 0 0
# Display the packet statistics of
secondary ring 20 in RRPP domain1 (the current switch is an edge node of
secondary ring 20).
<H3C> display rrpp statistics domain 1 ring 20
RRPP Ring : 20
Ring Level : 1
Node Mode : Edge
Is Activated : No
Primary port : -
Packet LINK
LINK COMMON COMPLETE Packet
Direct HEALTH UP DOWN
FDB FDB Total
-------------------------------------------------------------------------
Send 0 0
0 0 0 0
Rcv 0 0
0 0 0 0
Secondary port: -
Packet LINK
LINK COMMON COMPLETE Packet
Direct HEALTH UP
DOWN FDB FDB Total
-------------------------------------------------------------------------
Send 0 0
0 0 0 0
Rcv 0 0
0 0 0 0
Syntax
display rrpp verbose domain domain-id [ ring ring-id ]
View
Any view
Parameter
domain-id: RRPP
domain ID, in the range of 1 to 8.
ring-id:
RRPP ring ID, in the range of 1 to 64.
Description
Use the display rrpp verbose command
to display the RRPP configuration details on the switch. If you do not specify
the RRPP ring ID, the command displays the details of all rings in the
specified domain. Otherwise, the command displays the details of the specified
ring.
Example
# Display the details of primary ring 10 in
RRPP domain 1 (the current switch is the master node in ring 10).
<H3C> display rrpp verbose
domain 1 ring 10
Domain Index : 1
Control VLAN : major 2003 sub
2004
Hello Timer : 1 sec Fail Timer :
3 sec
RRPP Ring : 10
Ring Level : 0
Node Mode : Master
Ring State : -
Is Enabled : No Is Activated :
No
Primary port : - Port status: -
Secondary port: - Port status:
-
# Display the details of primary ring 10 in
RRPP domain 1 (the current switch is the transit node in ring 10).
<H3C> display rrpp verbose
domain 1 ring 10
Domain Index : 1
Control VLAN : major 2003 sub
2004
Hello Timer : 1 sec Fail Timer :
3 sec
RRPP Ring : 10
Ring Level : 0
Node Mode : Transit
Ring State : -
Is Enabled : No Is Activated :
No
Primary port : - Port status: -
Secondary port: - Port status: -
# Display the details of secondary ring 20
in RRPP domain 1 (the current switch is the transit node in secondary ring 20).
<H3C> display rrpp verbose
domain 1 ring 20
Domain Index : 1
Control VLAN : major 2003 sub
2004
Hello Timer : 1 sec Fail Timer :
3 sec
RRPP Ring : 20
Ring Level : 1
Node Mode : Transit
Ring State : -
Is Enabled : No Is Activated :
No
Primary port : - Port status: -
Secondary port: - Port status: -
# Display the details of secondary ring 20
in RRPP domain 1 (the current switch is the edge node in secondary ring 20).
<H3C> display rrpp verbose
domain 1 ring 20
Domain Index : 1
Control VLAN : major 2003 sub
2004
Hello Timer : 1 sec Fail Timer :
3 sec
RRPP Ring : 20
Ring Level : 1
Node Mode : Edge
Ring State : -
Is Enabled : No Is Activated :
No
Common port : - Port status: -
Edge port : - Port status: -
1.1.5 reset
rrpp statistics
Syntax
reset rrpp statistics domain domain-id [ ring ring-id ]
View
User view
Parameter
domain-id:
RRPP domain ID, in the range of 1 to 8.
ring-id:
RRPP ring ID, in the range of 1 to 64.
Description
Use the reset rrpp statistics
command to clear the statistics information of the specified RRPP domain.
If you specify the RRPP ring ID, the
command clears the RRPP packet statistics information of the specified ring in
the specified domain. Otherwise, the command clears the RRPP packet statistics
information of all the rings in the specified domain.
Related command: display rrpp statistics.
Example
# Clear the packet statistics of ring 10 in
RRPP domain 1 on the current switch.
<H3C> reset rrpp statistics
domain 1 ring 10
# Clear the packet statistics of all rings
in RRPP domain 1 on the current switch.
<H3C> reset rrpp statistics
domain 1
Syntax
ring ring-id
node-mode { master | transit } [ primary-port
pri-port ] [ secondary-port sec-port ] level level-value
ring ring-id
node-mode { edge | assistant-edge } [ common-port comm-port
] [ edge-port edge-port ]
undo ring ring-id
View
RRPP domain view
Parameter
ring-id:
Ethernet ring network ID, in the range of 1 to 64.
master:
Defines the current switch as the master node on the Ethernet ring network.
transit:
Defines the current switch as the transit node on the Ethernet ring network.
primary-port pri-port: Specifies a primary port.
secondary-port sec-port: Specifies a secondary port.
level-value:
RRPP ring level, 0 for primary ring and 1 for secondary ring.
edge:
Specifies the current switch as an edge node on the Ethernet ring network.
assistant-edge: Specifies the current switch as an assistant edge node on the
Ethernet ring network.
common-port comm-port: Specifies a common port.
edge-port
edge-port: Specifies an edge port.
Description
Use the ring command to configure
the node role for the current switch and the port role for the port connecting
to the Ethernet ring.
Use the undo ring command to remove
the role configuration.
For an edge node or an assistant edge node,
make sure you have removed the secondary ring configuration before removing the
primary ring configuration.
I. Node roles
l
Master node: The node that initiates loop
detection and prevents data loops. Each ring has one and only one master node.
l
Transit node: Nodes on a ring other than the
master node are all transit nodes.
l
Edge node: A node on the primary ring and a
secondary ring at the same time is an edge node. An edge node serves as a
transit node on a primary ring and an edge node on a secondary ring. In an RRPP
domain, a secondary ring has two edge nodes. You must specify one of them as an
assistant edge node.
In the same RRPP
domain, different rings must have different Ring IDs.
II. Port roles
Of the two ports that connect the master
node and a transit node to an Ethernet ring, one is the primary port and the other
the secondary port. The port roles are determined by user configuration.
l
The primary port and secondary port of the
master node
The primary port of the master node
transmits the loop detection packet, and the secondary port of the master node
receives the loop detection packet.
When an Ethernet ring is in the healthy
state, the secondary port of the master node allows only packets of control
VLAN to pass, but logically blocks packets of data VLAN.
When the Ethernet ring is in the broken
state, the secondary port of the master node stops blocking the data VLAN and
begins to forwards packets of data VLAN.
l
The primary and secondary ports on a transit
node are functionally the same.
l
Of the two ports connecting an edge node to a
subring, one is the common port and the other is the edge port of the node. The
common port connects the edge node to the primary ring and a subring at the
same time. An edge port is connected only with a subring.
Example
# Configure the current switch as the master
node on primary ring 10 in RRPP domain 1, GigabitEthernet1/0/5 as the primary
port, and GigabitEthernet 1/0/6 as the secondary port.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] ring 10 node-mode
master primary-port GigabitEthernet1/0/5 secondary-port GigabitEthernet 1/0/6
level 0
# Configure the current switch as the
transit node on primary ring 10 in RRPP domain 1, GigabitEthernet1/0/5 as the
primary port, and GigabitEthernet 1/0/6 as the secondary port.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] ring 10 node-mode
transit primary-port GigabitEthernet1/0/5 secondary-port GigabitEthernet 1/0/6
level 0
# Configure the current switch as the
master node on secondary ring 20 in RRPP domain 1, GigabitEthernet1/0/10 as the
primary port, and GigabitEthernet 1/0/11 as the secondary port.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] ring 20 node-mode
master primary-port GigabitEthernet 1/0/10 secondary-port GigabitEthernet
1/0/11 level 1
# Configure the current switch as a transit
node on secondary ring 20 in RRPP domain 1, GigabitEthernet1/0/10 as the
primary port, and GigabitEthernet 1/0/11 port as the secondary port.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] ring 20 node-mode
transit primary-port GigabitEthernet 1/0/10 secondary-port GigabitEthernet
1/0/11 level 1
# Configure the current switch as an edge
node on secondary ring 20 in RRPP domain 1, GigabitEthernet1/0/5 as the common
port, and GigabitEthernet 1/0/10 as the edge port.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] ring 20 node-mode
edge common-port GigabitEthernet 1/0/5 edge-port GigabitEthernet 1/0/10
# Configure the current switch as an
assistant edge node on secondary ring 20 in RRPP domain 1, GigabitEthernet1/0/6
as a common port, and GigabitEthernet 1/0/11 as an edge port.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] ring 20 node-mode
assistant-edge common-port GigabitEthernet 1/0/6 edge-port GigabitEthernet
1/0/11
# Remove the node role configured for the
current switch on RRPP ring 10, and the role configured for the port connecting
to the Ethernet ring.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] undo ring 10
enable
[H3C-rrpp-domain1] undo ring 10
Syntax
ring ring-id enable
undo ring ring-id enable
View
RRPP domain view
Parameter
ring-id:
RRPP ring ID, in the range of 1 to 64.
Description
Use the ring enable command to
enable an RRPP ring for the current switch.
Use the undo ring enable
command to disable an RRPP ring on the current switch.
To enable the RRPP domain of the current
switch, you must enable RRPP and the RRPP ring at the same time.
RRPP and STP are mutually exclusive on the
port to prevent the possible conflict when the RRPP and STP calculate the
blocked/unblocked status of the port.
Related command: rrpp enable.
Example
# Enable Ethernet ring 10 on RRPP domain 1.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] ring 10 enable
# Disable Ethernet ring 10 on RRPP domain
1.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] undo ring 10
enable
Syntax
rrpp domain domain-id
undo rrpp domain domain-id
View
System view
Parameter
domain-id:
RRPP domain ID, in the range of 1 to 8.
Description
Use the rrpp domain command to
create an RRPP domain and enter RRPP domain view.
Use the undo rrpp domain
command to delete an RRPP domain.
Before deleting an RRPP domain, make sure
that no RRPP ring exists in the domain. Otherwise, the deletion operation will
fail.
Example
# Create RRPP domain 1.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1]
# Delete RRPP domain 1.
<H3C> system-view
[H3C] undo rrpp domain 1
Syntax
rrpp enable
undo rrpp enable
View
System view
Parameter
None
Description
Use the rrpp enable command to
enable the RRPP protocol on the current switch.
Use the undo rrpp enable
command to disable the RRPP protocol on the current switch.
To enable an RRPP ring of the current
switch, you must enable RRPP and the RRPP ring at the same time.
Related command: ring enable.
Example
# Enable the RRPP protocol.
<H3C> system-view
[H3C] rrpp enable
# Disable the RRPP protocol.
<H3C> system-view
[H3C] undo rrpp enable
1.1.10 timer
Syntax
timer hello-timer hello-value fail-timer fail-value
undo timer
View
RRPP domain view
Parameter
hello-value:
Time interval, at which the primary port of the master node sends the health
detection packet, in the range of 1 to 10, in seconds. The default value is 1
second.
fail-value:
Timeout time, at which the secondary port of the master node receives the
health detection packet, in the range of 3 to 30, in seconds. The default value
is 3 seconds.
Description
Use the timer command to configure
the time values of the Hello timer and Fail timer in the RRPP domain.
Use the undo timer command to
restore the default time values.
The Fail timer value cannot be less than
three times the Hello timer value.
Example
# Set the time interval at which the
primary port of the master node in RRPP domain 1 sends the health detection
packet to 2 seconds, and set the timeout time for the secondary port of the
master node in the RRPP domain 1 to receive health detection packets to 7
seconds.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] timer hello-timer
2 fail-timer 7
# Restore the default timer values for RRPP
domain 1.
<H3C> system-view
[H3C] rrpp domain 1
[H3C-rrpp-domain1] undo timer