Supported Platforms
Configuring Ethernet Ring Protection Switching (CLI Procedure)
You can configure Ethernet ring protection switching (ERPS) on connected switches to prevent fatal loops from disrupting a network. ERPS is similar to spanning-tree protocols, but ERPS is more efficient than spanning-tree protocols because it is customized for ring topologies. You must configure at least three switches to form a ring. One of the links, called the ring protection link (RPL) end interface, is blocked until another link fails—at this time the RPL link is unblocked, ensuring connectivity.
![]() | Note: Ethernet OAM connectivity fault management (CFM) can be used with ERPS to detect link faults faster in some cases. See Configuring Ethernet OAM Connectivity Fault Management (CLI Procedure). The time needed for switchover to the ERPS link is affected by three settings—link failure detection time, the number of nodes in the ring, and the time it takes to unblock the RPL after a failure is detected. |
![]() | Note: Do not configure redundant trunk groups on ERPS interfaces. You can configure VSTP on ERPS interfaces if the VSTP uses a VLAN that is not part of the ERPS control VLAN or data channel VLANs. The total number of ERPS and VSTP or MSTP instances is limited to 253. |
Before you begin:
- Configure a VLAN to act as a control channel for ERPS.
Two interfaces (east and west) on each switch in the ring must be
associated with the control VLAN. See Configuring VLANs for EX Series Switches (CLI Procedure).
- The interfaces on the ERPS control channel are usually (but not required to be) configured as trunk ports. See Configuring Gigabit Ethernet Interfaces (CLI Procedure). Note that if one switch has trunk ports as the ERPS control interfaces, the same must be true of all switches on the ring (the ERPS control interfaces must also be trunk ports).
- Data channels are optional on the ERPS link. If you plan to use them, configure a VLAN for each data channel. If you have multiple ERPS instances, the control VLANs and data channel VLANs must not overlap.
To configure ERPS:
![]() | Note: You must configure at least three switches, with only one switch designated as the RPL owner node. |
- Spanning tree protocols and ERPS cannot both be configured
on the ring ports, so on each ERPS interface, you must disable any
configured spanning tree protocols (such as STP, RSTP, VSTP, or MSTP).
Spanning tree protocols are disabled for individual interfaces in
two different ways, depending on which Junos OS version and release
is running on the switch. RSTP is enabled in the default configuration,
so disabling RSTP is shown here.
For switches without Enhanced Layer 2 (ELS) software support, and switches running ELS software with Junos OS release 15.1 or later, use this command to disable RSTP on the individual ERPS interfaces:
[edit protocols]user@switch# set rstp interface interface-name disableFor switches running Enhanced Layer 2 (ELS) software with Junos OS releases prior to 15.1, you disable spanning tree protocols on individual interfaces by deleting that configuration item. Use this command to delete the RSTP configuration item on the individual ERPS interfaces:
[edit protocols]user@switch# delete rstp interface interface-name - Create a node ring on each switch:[edit protocols]user@switch# set protection-group ethernet-ring ring-name
- Configure a control VLAN for the node ring:[edit protocols protection-group ethernet-ring ring name]user@switch# set control-vlan vlan-name-or-vlan-id
- Configure the east and west interfaces of the node ring
with the control-channel interface.[edit protocols protection-group ethernet-ring ring-name]user@switch# set east-interface control-channel control-channel-nameuser@switch# set west-interface control-channel control-channel-name
For switches with ELS support, additionally associate the east and west interfaces with the control VLAN:
[edit protocols protection-group ethernet-ring ring-name]user@switch# set east-interface control-channel vlan vlan-name-or-vlan-iduser@switch# set west-interface control-channel vlan vlan-name-or-vlan-id - In addition, configure either the east interface or the
west interface (but not both) as a link end. For example, configure
the east interface:[edit protocols protection-group ethernet-ring ring-name]user@switch# set east-interface ring-protection-link-end
- Configure only one switch as the RPL owner node:[edit protocols protection-group ethernet-ring ring-name]user@switch# set ring-protection-link-owner
- The restore interval is the time the RPL owner node waits
after the last ring automatic protection switching (RAPS) signal failure
(SF) event has been cleared, to see if any further RAPS events occur.
During this time interval, the RPL owner continues to process RAPS
packets, and the ring remains in protection state with the RPL link
unblocked. When this interval expires, if no further RAPS SF events
have been reported, the RPL owner reverts the protection switching,
blocks the RPL link, and returns the protection ring to idle state.
Optionally, configure a local restore interval for the ERPS ring on
each switch:[edit protocols protection-group ethernet-ring ring-name]user@switch# set restore-interval restore-interval-value
Note: The restore interval can also be set globally to apply to any ERPS rings configured on the switch. Local per-ring settings take priority over global settings.
- The guard interval prevents ring nodes from receiving
outdated RAPS messages. Optionally, configure the guard interval on
each switch:[edit protocols protection-group ethernet-ring ring name]user@switch# set guard-interval guard-interval-value
Note: The guard interval can also be set globally to apply to any ERPS rings configured on the switch. Local per-ring settings take priority over global settings.
- Global restore and guard interval settings are used when
no local settings are configured. If these intervals are not configured
globally or locally, the default values apply. Optionally configure
global interval settings on the switch to apply to all rings that
do not have a corresponding interval configured locally for the ring:
- restore interval:[edit protocols protection-group]user@switch# set restore-interval restore-interval-value
- guard interval: [edit protocols protection-group]user@switch# set guard-interval guard-interval-value
Note: You can also configure other global settings, such as ERP traceoptions (file, page size, file size, flag name).
- restore interval:
- Optionally, configure VLANs for data channels on the ERPS
link:[edit protocols protection-group ethernet-ring ring name]user@switch# set data-channel vlan-name