Displaying MRP Information

The following output displays the MRP details on a master switch.

It shows the metro ring instance configured on the switch, including the ring ID and name (Metro Ring 2 - mrp-node1), the operational state (enabled), and the assigned role (master). It lists the associated VLAN (2), the topology status (not configured), and the timer values for hello messages (300 ms) and topology changes (600 ms). The output also details the ring interfaces, identifying each port (ethernet 2/2/2 and ethernet 2/2/3), its role in the ring (primary or secondary), the forwarding state (forwarding or blocking), and the interface type (regular). Finally, it provides counters for control traffic, including Ring Hello Packets (RHPs) sent and received, topology change (TC) events, and RBPDUs received, along with the current ring state.

DUT1(config-vlan-2)# show metro-ring 
Total MRP entries configured = 1

Metro Ring 2 - mrp-node1
=============
Ring       State      Ring       Master     Topo       Hello      Prefwing
id                    role       vlan       group      time(ms)   time(ms)
2          enabled    master     2          not conf   300        600

Ring interfaces Interface role Forwarding state Active interface interface type 
ethernet 2/2/2   primary        forwarding       ethernet 2/2/2   regular        
ethernet 2/2/3   secondary      blocking         ethernet 2/2/3   regular        

RHPs sent            RHPs rcvd            TC RBPDUs rcvd       State changes
1535                 2310                 0                    5

The following output displays the MRP details based on the specified ring ID.

DUT1(config-vlan-2)# show metro-ring 2

Metro Ring 2 - mrp-node1
=============
Ring       State      Ring       Master     Topo       Hello      Prefwing
id                    role       vlan       group      time(ms)   time(ms)
2          enabled    master     2          not conf   300        600	<<<<<<<<<< master

Ring interfaces Interface role Forwarding state Active interface interface type 
ethernet 2/2/2   primary        forwarding       ethernet 2/2/2   regular        
ethernet 2/2/3   secondary      blocking         ethernet 2/2/3   regular        

RHPs sent            RHPs rcvd            TC RBPDUs rcvd       State changes
1548                 2323                 0                    5

The following output displays the MRP diagnostics result on the master node.

DUT1(config-vlan-2)# show metro-ring 2 diagnostics 

Metro Ring 2 - mrp-node1
=============
diagnostics results

Ring       Diag       RHP average     Recommended     Recommended
id         state      time(microsec)  hello time(ms)  Prefwing time(ms)
2          enabled    < 1628          100             300

Diag frame sent      Diag frame lost
1555                 1

The following output displays the MRP details on a member switch:

DUT2(config-vlan-2)# show metro-ring 
Total MRP entries configured = 1

Metro Ring 2
=============
Ring       State      Ring       Master     Topo       Hello      Prefwing
id                    role       vlan       group      time(ms)   time(ms)
2          enabled    member     2          not conf   100        300	<<<<<<<<<<< member

Ring interfaces Interface role Forwarding state Active interface interface type 
ethernet 1/2/2   primary        forwarding       ethernet 1/2/2   regular        
ethernet 1/2/1   secondary      forwarding       ethernet 1/2/1   regular        

RHPs sent            RHPs rcvd            TC RBPDUs rcvd       State changes
0                    31                   0                    4