The following example configures Ethernet ring protection for three MX-series router nodes. The links connecting the routers are shown in Figure 17.
Figure 17: Ethernet Ring Protection Example Nodes

This example uses the following topology details for Ethernet ring protection:
![]() |
Note: Although not strictly required for physical ring protection, this example configures Ethernet OAM with MEPs. |
Router 1 (RPL owner) configuration
- [edit]
- interfaces {
-
- ge-1/0/1 {
- vlan-tagging;
- encapsulation flexible-ethernet-services;
-
- unit 1 {
- encapsulation vlan-bridge;
- vlan-id 100;
- }
- }
-
- ge-1/2/4 {
- vlan-tagging;
- encapsulation flexible-ethernet-services;
-
- unit 1 {
- encapsulation vlan-bridge;
- vlan-id 100;
- }
- }
- }
- [edit]
- bridge-domains {
-
- bd1 {
- domain-type bridge;
- interface ge-1/2/4.1;
- interface ge-1/0/1.1;
- }
- }
- [edit]
- protocols {
-
- protection-group {
-
- ethernet-ring pg101 {
- node-id 00:01:01:00:00:01;
- ring-protection-link-owner;
-
- east-interface {
- control-channel ge-1/0/1.1;
- ring-protection-link-end;
- }
-
- west-interface {
- control-channel ge-1/2/4.1;
- }
- }
- }
- }
- [edit]
- protocols {
-
- oam {
-
- ethernet {
-
- connectivity-fault-management {
-
- action-profile rmep-defaults {
-
- default-action {
- interface-down;
- }
- }
-
- maintenance-domain d1 {
- level 0;
-
- maintenance-association 100 {
-
- mep 1 {
- interface ge-1/0/1;
-
- remote-mep 2 {
- action-profile rmep-defaults;
- }
- }
- }
- }
-
- maintenance-domain d2 {
- level 0;
-
- maintenance-association 100 {
-
- mep 1 {
- interface ge-1/2/4;
-
- remote-mep 2 {
- action-profile rmep-defaults;
- }
- }
- }
- }
- }
- }
- }
- }
Router 2 configuration
- [edit]
- interfaces {
-
- ge-1/0/2 {
- vlan-tagging;
- encapsulation flexible-ethernet-services;
-
- unit 1 {
- encapsulation vlan-bridge;
- vlan-id 100;
- }
- }
-
- ge-1/2/1 {
- vlan-tagging;
- encapsulation flexible-ethernet-services;
-
- unit 1 {
- encapsulation vlan-bridge;
- vlan-id 100;
- }
- }
- }
- [edit]
- bridge-domains {
-
- bd1 {
- domain-type bridge;
- interface ge-1/2/1.1;
- interface ge-1/0/2.1;
- }
- }
- [edit]
- protocols {
-
- protection-group {
-
- ethernet-ring pg102 {
-
- east-interface {
- control-channel ge-1/0/2.1;
- }
-
- west-interface {
- control-channel ge-1/2/1.1;
- }
- }
- }
- }
- [edit]
- protocols {
-
- oam {
-
- ethernet {
-
- connectivity-fault-management {
-
- action-profile rmep-defaults {
-
- default-action {
- interface-down;
- }
- }
-
- maintenance-domain d1 {
- level 0;
-
- maintenance-association 100 {
-
- mep 2 {
- interface ge-1/2/1;
-
- remote-mep 1 {
- action-profile rmep-defaults;
- }
- }
- }
- }
-
- maintenance-domain d3 {
- level 0;
-
- maintenance-association 100 {
-
- mep 1 {
- interface ge-1/0/2;
-
- remote-mep 2 {
- action-profile rmep-defaults;
- }
- }
- }
- }
- }
- }
- }
- }
Router 3 configuration
- [edit]
- interfaces {
-
- ge-1/0/4 {
- vlan-tagging;
- encapsulation flexible-ethernet-services;
-
- unit 1 {
- encapsulation vlan-bridge;
- vlan-id 100;
- }
- }
-
- ge-1/0/3 {
- vlan-tagging;
- encapsulation flexible-ethernet-services;
-
- unit 1 {
- encapsulation vlan-bridge;
- vlan-id 100;
- }
- }
- }
- [edit]
- bridge-domains {
-
- bd1 {
- domain-type bridge;
- interface ge-1/0/4.1;
- interface ge-1/0/3.1;
- }
- }
- [edit]
- protocols {
-
- protection-group {
-
- ethernet-ring pg103 {
-
- east-interface {
- control-channel ge-1/0/3.1;
- }
-
- west-interface {
- control-channel ge-1/0/4.1;
- }
- }
- }
- }
- [edit]
- protocols {
-
- oam {
-
- ethernet {
-
- connectivity-fault-management {
-
- action-profile rmep-defaults {
-
- default-action {
- interface-down;
- }
- }
-
- maintenance-domain d2 {
- level 0;
-
- maintenance-association 100 {
-
- mep 2 {
- interface ge-1/0/4;
-
- remote-mep 1 {
- action-profile rmep-defaults;
- }
- }
- }
- }
-
- maintenance-domain d3 {
- level 0;
-
- maintenance-association 100 {
-
- mep 2 {
- interface ge-1/0/3;
-
- remote-mep 1 {
- action-profile rmep-defaults;
- }
- }
- }
- }
- }
- }
- }
- }