MRP Commands on Switch A (Master Node)
The following commands configure a VLAN for the ring. The ring VLAN must contain both of the node interfaces with the ring. Add these interfaces as tagged interfaces since the interfaces also must be in each of the customer VLANs configured on the node.
device(config)# vlan 2 device(config-vlan-2)# tagged ethernet 1/1/1 to 1/1/2 device(config-vlan-2)# metro-ring 1 device(config-vlan-2-mrp-1)# name "Metro A" device(config-vlan-2-mrp-1)# master device(config-vlan-2-mrp-1)# ring-interface ethernet 1/1/1 ethernet 1/1/2 device(config-vlan-2-mrp-1)# enable device(config-vlan-2-mrp-1)# exit device(config-vlan-2)# exit
The following commands configure the customer VLANs. The customer VLANs must contain both the ring interfaces as well as the customer interfaces.
device(config)# vlan 30 device(config-vlan-30)# tagged ethernet 1/1/1 to 1/1/2 device(config-vlan-30)# tagged ethernet 1/2/1 device(config-vlan-30)# exit device(config)# vlan 40 device(config-vlan-40)# tagged ethernet 1/1/1 to 1/1/2 device(config-vlan-40)# tagged ethernet 1/4/1 device(config-vlan-40)# exit
The following commands configure topology group 1 on VLAN 2. The master VLAN is the one that contains the MRP configuration. The member VLANs use the MRP parameters of the master VLAN. The control interfaces (the ones shared by the master VLAN and member VLAN) also share MRP state.
device(config)# topology-group 1 device(config-topo-group-1)# master-vlan 2 device(config-topo-group-1)# member-vlan 30 device(config-topo-group-1)# member-vlan 40