Configuring Metro Ring Protocol

To configure MRP ring between two devices—device 1 (mrp-master) and device 2 (mrp-member), complete the following steps.
  1. Enter the global configuration mode.
    DUT1# configure terminal
  2. Configure VLAN on the device.
    DUT1(config)# vlan 2
  3. Add ports to the VLAN.
    DUT1(config-vlan-2)# tagged ethernet 2/2/2 ethernet 2/2/3
    This step adds tagged port(s) ethernet 2/2/2 and 2/2/3 to port-vlan 2.
    Ideally, a VLAN that runs MRP should have only two uplink/p2p links because MRP configuration takes only two interfaces.
  4. Define MRP ring ID to enable MRP.
    DUT1(config-vlan-2)# metro-ring 2
    Note: The ring ID ranges from 1 through 1023. 256 is reserved for VSRP.
    The prompt changes to MRP mode to define MRP parameters.
  5. In the MRP mode, configure other MRP parameters such as the following:
    1. (Optional) Define a name for the MRP ring.
      DUT1(config-vlan-2-mrp-2)# name mrp-node1
    2. Configure MRP ring interfaces.
      DUT1(config-vlan-2-mrp-2)# ring-interfaces ethernet 2/2/2 ethernet 2/2/3
    3. Define the device as MRP ring Master.
      DUT1(config-vlan-2-mrp-2)# master 
      There can be only one MRP Master node in the MRP Ring. Master node will have a Blocking port after convergence.
    4. (Optional) Enable MRP ring diagnostics.
      DUT1(config-vlan-2-mrp-2)# diagnostics 
      MRP ring diagnostics can only be enabled on a Master node, otherwise the following error is displayed - "Error - Metro Ring diagnostics can only be enabled on ring Master".
    5. (Optional) Change MRP ring default timers.
      • Change the preforwarding timer.
      DUT1(config-vlan-2-mrp-2)# preforwarding-time 600

      The preforwarding time must be at least twice the value of the hello-time and must be a multiple of the hello-time. If UDLD is also enabled on the device, RUCKUS recommends that you set the MRP preforwarding time slightly higher than the default of 300 ms; for example, to 400 or 500 ms.

      • Change the hello-time in accordance with the preforwarding time.
      DUT1(config-vlan-2-mrp-2)# hello-time 300
  6. Enable MRP ring.
    DUT1(config-vlan-2-mrp-2)# enable 
  7. Similarly configure MRP on other devices in the same ring which will be acting as ring member(s).
    DUT2(config)# vlan 2
    DUT2(config-vlan-2)# tagged ethernet 1/2/1 ethernet 1/2/2
    Added tagged port(s) ethe 1/2/1 to 1/2/2 to port-vlan 2.
    DUT2(config-vlan-2)# metro-ring 2
    DUT2(config-vlan-2-mrp-2)# ring-interfaces ethernet 1/2/1 ethernet 1/2/2
    DUT2(config-vlan-2-mrp-2)# enable 
  8. Verify MRP configuration on device 1.
    1. Use the show running command.
      DUT1(config)# show running-config vlan 2
      vlan 2 by port
       tagged ethe 2/2/2 to 2/2/3 
       metro-ring 2
        master
        ring-interfaces ethernet 2/2/2 ethernet 2/2/3
        enable
        preforwarding-time 600
        hello-time 300
        name mrp-node1
        diagnostics
      !
      !
      DUT1(config)#
    2. Use the show metro-ring command.
      DUT1(config)# 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        disabled         none             regular       
      ethernet 2/2/3   secondary      disabled         none             regular       
      
      RHPs sent            RHPs rcvd            TC RBPDUs rcvd       State changes
      0                    0                    0                    2