ERPS Configuration Guide for TP-Link JetStream Switch

Configuration Guide
Updated 10-13-2022 08:38:30 AM 11369

TP-Link L2+ managed switches have supported the Ethernet Ring Protection Switching (ERPS) function. ERPS is a standard protocol issued by ITU-T to prevent loops on ring networks, which provides sub-50ms protection and recovery switching for Ethernet traffic, and ensures that no loops are formed at the Ethernet layer.

Compared to Spanning Tree protocols, including STP, RSTP, and MSTP, ERPS can achieve significantly faster convergence (sub-50ms vs. several seconds), meeting carrier-class reliability requirements, but requires more complex manual configurations to perform functions.

In this article, we will introduce how to configure ERPS on TP-Link JetStream switches. For more information about the concept and working mechanism of ERPS, please refer to ITU-T G.8032/Y.1344.

1. ERPS Configuration Commands

Some of the most commonly used commands for ERPS configuration will be described here. For a complete list of ERPS commands of TP-Link JetStream switches, please refer to the CLI Guide.

1) erps ring

The erps ring command enables the ERPS function globally and creates an ERPS ring.

Syntax

erps ring ring-id

no erps ring ring-id

Parameter

Parameter Description
ring-id The ID of the ERPS ring, ranging from 1 to 8.

Example

Enable ERPS function globally and create ERPS ring 1.

Switch(config)#erps ring 1

2) erps ring (interface)

The erps ring command adds a port to an ERPS ring and specifies a role for the port. By default, a port is not added to an ERPS ring, and no port role is specified.

An RPL owner port blocks traffic on the RPL (Ring Protection Link, which is the link on which the RPL owner port is located) to prevent loops. An ERPS ring has only one RPL owner port. When a link or node in the ERPS ring fails, the RPL owner port is enabled and the RPL forwards traffic to ensure nonstop traffic forwarding.

An RPL neighbour port is directly connected to an RPL owner port. In normal situations both RPL owner port and RPL neighbour port are blocked. When the ERPS ring fails, the RPL owner and neighbour ports are unblocked and the RPL forwards traffic.

Common ports are ring ports other than the RPL owner and neighbour ports.

In the figure below, port 2 of Switch B is the RPL owner port, port 1 of Switch C is the RPL neighbour port, while the other ports on four switches are all common ports.

Ring.png

Syntax

erps ring ring-id [rpl owner|neighbour]

Parameter

Parameter Description
ring-id The ID of the ERPS ring, ranging from 1 to 8.
owner Configure the port role as owner
neighbour Configure the port role as neighbour

Example

Enable the role of gigabitEthernet port 1/0/1 in ring 1 as the owner, and gigabitEthernet port 1/0/2 in ring 1 as a common port.

Switch(config)#interface gigiabitEthernet 1/0/1

Switch(config-if)#erps ring 1 rpl owner

Switch(config-if)#exit

Switch(config)#interface gigiabitEthernet 1/0/2

Switch(config)#erps ring 1

3) control-vlan

Each ERPS ring must be configured with a control VLAN, which is used to transmit R-APS (Ring-Automatic Protection Switching) PDUs. Different ERPS rings must use different control VLANs.

The control-vlan command configures a control VLAN for an ERPS ring. Note that no ports should be added to the control VLAN before this configuration.

Syntax

control-vlan vlan

Parameter

Parameter Description
vlan Forwarding VLAN for R-APS PDUs, ranging from 1 to 4094.

Example

Configure control VLAN 10 for ERPS ring 1.

Switch(ring-config)#control-vlan 10

4) description

The description command configures the description of an ERPS ring.

Syntax

description description

Example

Switch(ring-config)#description "ring 1"

5) protected-instance

In an ERPS multi-instance network, multiple logical ERPS rings can be configured on a single physical ring. Each logical ERPS ring is configured with one protection instance, and each protection instance represents a VLAN range. In this way, data traffic belonging to different VLANs can be transported through different physical paths, thus achieving load balancing and link backup.

The protected-instance command is used to configure the protected instance for the ERPS ring, the control-vlan must be in the scope of protected instance. To configure an instance, you should enable MSTP and configure MSTP instance first.

Syntax

protected-instance instance

Parameter

Parameter Description
vlan Forwarding VLAN for R-APS PDUs, ranging from 1 to 4094.

Example

Map VLAN 10-20 to instance 1, and configure instance 1 in ERPS ring 1.

Switch(config)#spanning-tree mode mstp

Switch(config)#spanning-tree mst configuration

Switch(config)#instance 1 vlan 10-20

Switch(config-mst)#erps ring 1

Switch(ring-config)#protected-instance 1

6) guard-timer

When a faulty link or node recovers, the Guard timer is started and the switch does not process any R-APS packet until the timer expires to avoid the link being blocked due to the receipt of expired R-APS packets.

The guard-timer command sets the Guard timer in an ERPS ring. By default, the Guard timer is 200 centiseconds in an ERPS ring.

Syntax

guard-timer time

no guard-timer time

Parameter

Parameter Description
time The time setting for Guard timer, ranging from 1 to 200, in centiseconds.

Example

Set the Guard timer to 150 centiseconds.

Switch(ring-config)#guard-timer 150

7) wtr-timer

WTR (Wait to Restore) timer is used by the RPL owner to verify that the ring has stabilized before blocking the RPL after SF (Signal Fail) recovery.

The wtr-timer command is used to configure the WTR timer. By default, the WTR timer is 5 minutes.

Syntax

wtr-timer time

no wtr-timer time

Parameter

Parameter Description
time The time setting for WTR timer, ranging from 1 to 12, in minutes.

Example

Configure the WTR timer to 10 minutes

Switch(ring-config)#wtr-timer 10

8) holdoff-timer

With the Holdoff timer enabled, faults will only be reported if this timer expires. By default, the Holdoff timer is 0 deciseconds.

Syntax

holdoff-timer time

no holdoff-timer time

Parameter

Parameter Description
time The time setting for Holdoff timer, ranging from 1 to 100, in deciseconds.

Example

Configure the Holdoff timer to 10 deciseconds.

Switch(ring-config)#holdoff-timer 10

9) revertive

The revertive command configures revertive switching or non-revertive switching mode. By default, the ERPS ring uses revertive switching mode, after the ring failure is corrected, the RPL owner is blocked again.

Syntax

revertive enable|disable

Example

Configure non-revertive switching in ERPS ring 1.

Switch(ring-config)#revertive disable

10) version

ERPS has two versions. ERPS v2, described by ITU-T G.8032 (2010) is backward compatible with ERPS v1, described by ITU-T G.8032 (2008), providing enhanced functions, such as multi-ring topologies.

By default, ERPS v1 is used. If all devices in the ERPS ring support both ERPS v1 and v2, it is recommended to use v2.

Syntax

version version

Parameter

Parameter Description
version 1 or 2

Example

Specify ERPS v2 for ERPS ring 1.

Switch(ring-config)#version 2

11) sub-ring

ERPS v2 supports multi-ring topologies. To deploy ERPS on a multi-ring network, configure some rings as sub-rings with the sub-ring command.

In the figure below, the major ring is a closed ring formed by Switch A, B, C, and D, while the sub ring is an open ring formed by the link Switch B <---> E <---> F <---> C.

Sub Ring.png

By default, all ERPS rings are major rings.

Syntax

sub-ring

no sub-ring

Example

Configure ERPS ring 2 as a sub-ring.

Switch(config)#erps ring 2

Switch(ring-config)#sub-ring

12) tc-notify erps ring

By default, an ERPS ring doesn't notify other ERPS rings of its topology change. However when an ERPS sub-ring topology changes, it should notify the major rings, so that those rings are aware of the topology change and send Flush-FDB messages on their separate rings instructing their nodes to update their FDB, which ensures nonstop traffic transmission.

Note: the tc-notify erps ring command takes effect only on ERPS sub-rings.

Syntax

tc-notify erps ring ring-id

no tc-notify erps ring ring-id

Parameter

Parameter Description
ring-id The ID of the ERPS ring, ranging from 1 to 8.

Example

Configure ERPS sub-ring 2 to notify ERPS ring 1of its topology change.

Switch(config)#erps ring 2

Switch(ring-config)#version 2

Switch(ring-config)#sub-ring

Switch(ring-config)#tc-notify erps ring 1

13) show erps ring

The command is used to display the ERPS ring information.

Syntax

show erps ring [ring-id | all]

Example

Show ERPS information of all rings:

Switch# show erps ring all

2. Configuration Roadmap

  1. Create ERPS rings, configure control VLANs and protected instances and other settings;

  2. Configure VLAN-Instance mapping relationships;

  3. Configure 802.1Q VLAN settings and ERPS ring roles for the ERPS ring ports.

3. Example for Configuring an ERPS Single Ring

The figure below shows a simple ring Ethernet topology.

  • Control VLAN is VLAN 10;

  • Protected Instance includes VLAN 10 to 20.

  • GE 1/0/2 on Switch B is the RPL Owner port, and GE 1/0/1 on Switch C is the RPL Neighbour port.

Ring.png

1) Create ERPS Ring 1.

Configure Switch A.

Switch-A> enable

Switch-A# configure

Switch-A (config) # erps ring 1

Switch-A (ring-config) # description ERPS_RING_1

Switch-A (ring-config) # control-vlan 10

Switch-A (ring-config) # protected-instance 1

Switch-A (ring-config) # version 2

Switch-A (ring-config) # exit

Configure Switch B.

Switch-B> enable

Switch-B# configure

Switch-B (config) # erps ring 1

Switch-B (ring-config) # description ERPS_RING_1

Switch-B (ring-config) # control-vlan 10

Switch-B (ring-config) # protected-instance 1

Switch-B (ring-config) # version 2

Switch-B (ring-config) # exit

Configure Switch C.

Switch-C> enable

Switch-C# configure

Switch-C (config) # erps ring 1

Switch-C (ring-config) # description ERPS_RING_1

Switch-C (ring-config) # control-vlan 10

Switch-C (ring-config) # protected-instance 1

Switch-C (ring-config) # version 2

Switch-C (ring-config) # exit

Configure Switch D.

Switch-D> enable

Switch-D# configure

Switch-D (config) # erps ring 1

Switch-D (ring-config) # description ERPS_RING_1

Switch-D (ring-config) # control-vlan 10

Switch-D (ring-config) # protected-instance 1

Switch-D (ring-config) # version 2

Switch-D (ring-config) # exit

2) Create VLANs and map VLAN 100 to 200 to Instance 1

Configure Switch A.

Switch-A (config) # vlan 10-20

Switch-A (config-vlan) # exit

Switch-A (config) # spanning-tree

Switch-A (config) # spanning-tree mode mstp

Switch-A (config) # spanning-tree mst configuration

Switch-A (config-mst) # instance 1 vlan 10-20

Switch-A (config-mst) # exit

Configure Switch B.

Switch-B (config) # vlan 10-20

Switch-B (config-vlan) # exit

Switch-B (config) # spanning-tree

Switch-B (config) # spanning-tree mode mstp

Switch-B (config) # spanning-tree mst configuration

Switch-B (config-mst) # instance 1 vlan 10-20

Switch-B (config-mst) # exit

Configure Switch C.

Switch-C (config) # vlan 10-20

Switch-C (config-vlan) # exit

Switch-C (config) # spanning-tree

Switch-C (config) # spanning-tree mode mstp

Switch-C (config) # spanning-tree mst configuration

Switch-C (config-mst) # instance 1 vlan 10-20

Switch-C (config-mst) # exit

Configure Switch D.

Switch-D (config) # vlan 10-20

Switch-D (config-vlan) # exit

Switch-D (config) # spanning-tree

Switch-D (config) # spanning-tree mode mstp

Switch-D (config) # spanning-tree mst configuration

Switch-D (config-mst) # instance 1 vlan 10-20

Switch-D (config-mst) # exit

3) Configure Port settings.

Configure Switch A.

Switch-A (config) # interface gigabitEthernet 1/0/1

Switch-A (config-if) # switchport general allowed vlan 10-20 tagged

Switch-A (config-if) # no switchport general allowed vlan 1

Switch-A (config-if) # erps ring 1

Switch-A (config-if) # exit

Switch-A (config) # interface gigabitEthernet 1/0/2

Switch-A (config-if) # switchport general allowed vlan 10-20 tagged

Switch-A (config-if) # no switchport general allowed vlan 1

Switch-A (config-if) # erps ring 1

Switch-A (config-if) # exit

Configure Switch B, note that port 1/0/2 is the RPL Owner port.

Switch-B (config) # interface gigabitEthernet 1/0/1

Switch-B (config-if) # switchport general allowed vlan 10-20 tagged

Switch-B (config-if) # no switchport general allowed vlan 1

Switch-B (config-if) # erps ring 1

Switch-B (config-if) # exit

Switch-B (config) # interface gigabitEthernet 1/0/2

Switch-B (config-if) # switchport general allowed vlan 10-20 tagged

Switch-B (config-if) # no switchport general allowed vlan 1

Switch-B (config-if) # erps ring 1 rpl owner

Switch-B (config-if) # exit

Configure Switch C, note that port 1/0/1 is the RPL Neighbour port.

Switch-C (config) # interface gigabitEthernet 1/0/1

Switch-C (config-if) # switchport general allowed vlan 10-20 tagged

Switch-C (config-if) # no switchport general allowed vlan 1

Switch-C (config-if) # erps ring 1 rpl neighbour

Switch-C (config-if) # exit

Switch-C (config) # interface gigabitEthernet 1/0/2

Switch-C (config-if) # switchport general allowed vlan 10-20 tagged

Switch-C (config-if) # no switchport general allowed vlan 1

Switch-C (config-if) # erps ring 1

Switch-C (config-if) # exit

Configure Switch D.

Switch-D (config) # interface gigabitEthernet 1/0/1

Switch-D (config-if) # switchport general allowed vlan 10-20 tagged

Switch-D (config-if) # no switchport general allowed vlan 1

Switch-D (config-if) # erps ring 1

Switch-D (config-if) # exit

Switch-D (config) # interface gigabitEthernet 1/0/2

Switch-D (config-if) # switchport general allowed vlan 10-20 tagged

Switch-D (config-if) # no switchport general allowed vlan 1

Switch-D (config-if) # erps ring 1

Switch-D (config-if) # exit

4) Verify the configuration.

After completing the configurations, run show erps ring to verify the configuration.

Run command on Switch B.

Switch-B # show erps ring 1

Ring ID :1

Describe :ERPS_RING_1

Control Vlan :10

Protected Instance :1

WTR Timer Setting (min) :5 Running (s) :0

Guard Timer Setting (csec) :200 Running (csec) :0

Holdoff Timer Setting (deciseconds) :0 Running (deciseconds) :0

WTB Timer Running (csec) :0

Ring State :PROTECTION

RAPS_MEL :7

Revertive Mode :Revertive

Version :2

Sub-ring :No

Virtual-channel :No

Forced Switch Port :---

Manual Switch Port :---

Port Port Role Port Status Signal Status

Gi1/0/1 Common Forwarding Non-Failed

Gi1/0/2 RPL Owner Discarding Failed

5) Configuration Files.

Switch A configuration file.

!TL-SG3428

vlan 10-20

#

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

#

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

#

interface gigabitEthernet 1/0/1

erps ring 1

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

#

interface gigabitEthernet 1/0/2

erps ring 1

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

Switch B configuration file.

!TL-SG3428

vlan 10-20

#

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

#

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

#

interface gigabitEthernet 1/0/1

erps ring 1

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

#

interface gigabitEthernet 1/0/2

erps ring 1 rpl owner

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

Switch C configuration file.

!TL-SG3428

vlan 10-20

#

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

#

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

#

interface gigabitEthernet 1/0/1

erps ring 1 rpl neighbour

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

#

interface gigabitEthernet 1/0/2

erps ring 1

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

Switch D configuration file.

!TL-SG3428

vlan 10-20

#

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

#

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

#

interface gigabitEthernet 1/0/1

erps ring 1

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

#

interface gigabitEthernet 1/0/2

erps ring 1 rpl owner

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

4. Example for Configuring an ERPS Ring with Multiple Instances.

The figure below shows a simple ring Ethernet topology. We can configure two ERPS rings for traffic load balancing.

  • ERPS Ring 1:

    • Control VLAN is VLAN 10;

    • Protected Instance includes VLAN 10 to 20.

    • GE 1/0/2 on Switch B is the RPL Owner port, and GE 1/0/1 on Switch C is the RPL Neighbour port.

    • Under normal conditions, RPL (Switch B --- Switch C) is blocked and the data forwarding path is Switch B --- Switch A --- Switch D.

  • ERPS Ring 2:

    • Control VLAN is VLAN 30;

    • Protected Instance includes VLAN 30 to 40.

    • GE 1/0/1 on Switch A is the RPL Owner port, and GE 1/0/1 on Switch D is the RPL Neighbour port.

    • Under normal conditions, RPL (Switch A --- Switch D) is blocked and the data forwarding path is Switch A --- Switch B --- Switch C.

SingleRing2

1) Create ERPS Rings.

Configure Switch A.

Switch-A> enable

Switch-A# configure

Switch-A (config) # erps ring 1

Switch-A (ring-config) # description ERPS_RING_1

Switch-A (ring-config) # control-vlan 10

Switch-A (ring-config) # protected-instance 1

Switch-A (ring-config) # version 2

Switch-A (ring-config) # exit

Switch-A (config) # erps ring 2

Switch-A (ring-config) # description ERPS_RING_2

Switch-A (ring-config) # control-vlan 30

Switch-A (ring-config) # protected-instance 2

Switch-A (ring-config) # version 2

Switch-A (ring-config) # exit

Configure Switch B.

Switch-B> enable

Switch-B# configure

Switch-B (config) # erps ring 1

Switch-B (ring-config) # description ERPS_RING_1

Switch-B (ring-config) # control-vlan 10

Switch-B (ring-config) # protected-instance 1

Switch-B (ring-config) # version 2

Switch-B (ring-config) # exit

Switch-B (config) # erps ring 2

Switch-B (ring-config) # description ERPS_RING_2

Switch-B (ring-config) # control-vlan 30

Switch-B (ring-config) # protected-instance 2

Switch-B (ring-config) # version 2

Switch-B (ring-config) # exit

Configure Switch C.

Switch-C> enable

Switch-C# configure

Switch-C (config) # erps ring 1

Switch-C (ring-config) # description ERPS_RING_1

Switch-C (ring-config) # control-vlan 10

Switch-C (ring-config) # protected-instance 1

Switch-C (ring-config) # version 2

Switch-C (ring-config) # exit

Switch-C (config) # erps ring 2

Switch-C (ring-config) # description ERPS_RING_2

Switch-C (ring-config) # control-vlan 30

Switch-C (ring-config) # protected-instance 2

Switch-C (ring-config) # version 2

Switch-C (ring-config) # exit

Configure Switch D.

Switch-D> enable

Switch-D# configure

Switch-D (config) # erps ring 1

Switch-D (ring-config) # description ERPS_RING_1

Switch-D (ring-config) # control-vlan 10

Switch-D (ring-config) # protected-instance 1

Switch-D (ring-config) # version 2

Switch-D (ring-config) # exit

Switch-D (config) # erps ring 2

Switch-D (ring-config) # description ERPS_RING_2

Switch-D (ring-config) # control-vlan 30

Switch-D (ring-config) # protected-instance 2

Switch-D (ring-config) # version 2

Switch-D (ring-config) # exit

2) Create VLANs, map VLAN 10 to 20 to Instance 1, VLAN 30 to 40 to Instance 2.

Configure Switch A.

Switch-A (config) # vlan 10-20,30-40

Switch-A (config-vlan) # exit

Switch-A (config) # spanning-tree

Switch-A (config) # spanning-tree mode mstp

Switch-A (config) # spanning-tree mst configuration

Switch-A (config-mst) # instance 1 vlan 10-20

Switch-A (config-mst) # instance 2 vlan 30-40

Switch-A (config-mst) # exit

Configure Switch B.

Switch-B (config) # vlan 10-20,30-40

Switch-B (config-vlan) # exit

Switch-B (config) # spanning-tree

Switch-B (config) # spanning-tree mode mstp

Switch-B (config) # spanning-tree mst configuration

Switch-B (config-mst) # instance 1 vlan 10-20

Switch-B (config-mst) # instance 2 vlan 30-40

Switch-B (config-mst) # exit

Configure Switch C.

Switch-C (config) # vlan 10-20,30-40

Switch-C (config-vlan) # exit

Switch-C (config) # spanning-tree

Switch-C (config) # spanning-tree mode mstp

Switch-C (config) # spanning-tree mst configuration

Switch-C (config-mst) # instance 1 vlan 10-20

Switch-C (config-mst) # instance 2 vlan 30-40

Switch-C (config-mst) # exit

Configure Switch D.

Switch-D (config) # vlan 10-20,30-40

Switch-D (config-vlan) # exit

Switch-D (config) # spanning-tree

Switch-D (config) # spanning-tree mode mstp

Switch-D (config) # spanning-tree mst configuration

Switch-D (config-mst) # instance 1 vlan 10-20

Switch-D (config-mst) # instance 2 vlan 30-40

Switch-D (config-mst) # exit

3) Configure Port settings.

Configure Switch A, note that port 1/0/1 is the RPL Owner port of ERPS ring 2.

Switch-A (config) # interface gigabitEthernet 1/0/1

Switch-A (config-if) # switchport general allowed vlan 10-20,30-40 tagged

Switch-A (config-if) # no switchport general allowed vlan 1

Switch-A (config-if) # erps ring 1

Switch-A (config-if) # erps ring 2 rpl owner

Switch-A (config-if) # exit

Switch-A (config) # interface gigabitEthernet 1/0/2

Switch-A (config-if) # switchport general allowed vlan 10-20,30-40 tagged

Switch-A (config-if) # no switchport general allowed vlan 1

Switch-A (config-if) # erps ring 1

Switch-A (config-if) # erps ring 2

Switch-A (config-if) # exit

Configure Switch B, note that port 1/0/2 is the RPL Owner port of ERPS ring 1.

Switch-B (config) # interface gigabitEthernet 1/0/1

Switch-B (config-if) # switchport general allowed vlan 10-20,30-40 tagged

Switch-B (config-if) # no switchport general allowed vlan 1

Switch-B (config-if) # erps ring 1

Switch-B (config-if) # erps ring 1

Switch-B (config-if) # exit

Switch-B (config) # interface gigabitEthernet 1/0/2

Switch-B (config-if) # switchport general allowed vlan 10-20,30-40 tagged

Switch-B (config-if) # no switchport general allowed vlan 1

Switch-B (config-if) # erps ring 1 rpl owner

Switch-B (config-if) # erps ring 2

Switch-B (config-if) # exit

Configure Switch C, note that port 1/0/1 is the RPL Neighbour port of ERPS ring 1.

Switch-C (config) # interface gigabitEthernet 1/0/1

Switch-C (config-if) # switchport general allowed vlan 10-20,30-40 tagged

Switch-C (config-if) # no switchport general allowed vlan 1

Switch-C (config-if) # erps ring 1 rpl neighbour

Switch-C (config-if) # erps ring 2

Switch-C (config-if) # exit

Switch-C (config) # interface gigabitEthernet 1/0/2

Switch-C (config-if) # switchport general allowed vlan 10-20,30-40 tagged

Switch-C (config-if) # no switchport general allowed vlan 1

Switch-C (config-if) # erps ring 1

Switch-C (config-if) # erps ring 2

Switch-C (config-if) # exit

Configure Switch D, note that port 1/0/1 is the RPL Neighbour port of ERPS ring 2.

Switch-D (config) # interface gigabitEthernet 1/0/1

Switch-D (config-if) # switchport general allowed vlan 10-20,30-40 tagged

Switch-D (config-if) # no switchport general allowed vlan 1

Switch-D (config-if) # erps ring 1

Switch-D (config-if) # erps ring 2 rpl neighbour

Switch-D (config-if) # exit

Switch-D (config) # interface gigabitEthernet 1/0/2

Switch-D (config-if) # switchport general allowed vlan 10-20,30-40 tagged

Switch-D (config-if) # no switchport general allowed vlan 1

Switch-D (config-if) # erps ring 1

Switch-D (config-if) # erps ring 2

Switch-D (config-if) # exit

4) Verify the configuration.

After completing the configurations, run show erps ring to verify the configuration.

Run command on Switch B.

Switch-B # show erps ring all

Ring ID :1

Describe :ERPS_RING_1

Control Vlan :10

Protected Instance :1

WTR Timer Setting (min) :5 Running (s) :0

Guard Timer Setting (csec) :200 Running (csec) :0

Holdoff Timer Setting (deciseconds) :0 Running (deciseconds) :0

WTB Timer Running (csec) :0

Ring State :PROTECTION

RAPS_MEL :7

Revertive Mode :Revertive

Version :2

Sub-ring :No

Virtual-channel :No

Forced Switch Port :---

Manual Switch Port :---

Port Port Role Port Status Signal Status

Gi1/0/1 Common Forwarding Non-Failed

Gi1/0/2 RPL Owner Discarding Failed

Ring ID :2

Describe :ERPS_RING_2

Control Vlan :30

Protected Instance :2

WTR Timer Setting (min) :5 Running (s) :0

Guard Timer Setting (csec) :200 Running (csec) :0

Holdoff Timer Setting (deciseconds) :0 Running (deciseconds) :0

WTB Timer Running (csec) :0

Ring State :PROTECTION

RAPS_MEL :7

Revertive Mode :Revertive

Version :2

Sub-ring :No

Virtual-channel :No

Forced Switch Port :---

Manual Switch Port :---

Port Port Role Port Status Signal Status

Gi1/0/1 Common Forwarding Non-Failed

Gi1/0/2 Common Forwarding Non-Failed

5) Configuration Files.

Switch A configuration file.

!TL-SG3428

vlan 10-20

vlan 30-40

#

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

#

erps ring 2

description "ERPS_RING_2"

control-vlan 30

protected-instance 2

version 2

#

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

instance 2 vlan 30-40,

#

interface gigabitEthernet 1/0/1

erps ring 1

erps ring 2 rpl owner

switchport general allowed vlan 10-20,30-40 tagged

no switchport general allowed vlan 1

#

interface gigabitEthernet 1/0/2

erps ring 1

erps ring 2

switchport general allowed vlan 10-20,30-40 tagged

no switchport general allowed vlan 1

Switch B configuration file.

!TL-SG3428

vlan 10-20

vlan 30-40

#

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

#

erps ring 2

description "ERPS_RING_2"

control-vlan 30

protected-instance 2

version 2

#

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

instance 2 vlan 30-40,

#

interface gigabitEthernet 1/0/1

erps ring 1

erps ring 2

switchport general allowed vlan 10-20,30-40 tagged

no switchport general allowed vlan 1

#

interface gigabitEthernet 1/0/2

erps ring 1 rpl owner

erps ring 2

switchport general allowed vlan 10-20,30-40 tagged

no switchport general allowed vlan 1

Switch C configuration file.

!TL-SG3428

vlan 10-20

vlan 30-40

#

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

#

erps ring 2

description "ERPS_RING_2"

control-vlan 30

protected-instance 2

version 2

#

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

instance 2 vlan 30-40,

#

interface gigabitEthernet 1/0/1

erps ring 1 rpl neighbour

erps ring 2

switchport general allowed vlan 10-20,30-40 tagged

no switchport general allowed vlan 1

#

interface gigabitEthernet 1/0/2

erps ring 1

erps ring 2

switchport general allowed vlan 10-20,30-40 tagged

no switchport general allowed vlan 1

Switch D configuration file.

!TL-SG3428

vlan 10-20

vlan 30-40

#

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

#

erps ring 2

description "ERPS_RING_2"

control-vlan 30

protected-instance 2

version 2

#

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

instance 2 vlan 30-40,

#

interface gigabitEthernet 1/0/1

erps ring 1

erps ring 2

switchport general allowed vlan 10-20,30-40 tagged

no switchport general allowed vlan 1

#

interface gigabitEthernet 1/0/2

erps ring 1 rpl neighbour

erps ring 2

switchport general allowed vlan 10-20,30-40 tagged

no switchport general allowed vlan 1

5. Example for Configuring an ERPS Multi-Ring Network

In the figure below, Switch A, B, D form the major ring, and Switch A, C, D form a sub-ring.

  • Major Ring:

    • ERPS version 2 supports sub-ring.

    • Control VLAN is VLAN 10;

    • Protected Instance includes VLAN 10 to 20;

    • GE 1/0/2 on Switch B is the RPL Owner port, and GE 1/0/3 on Switch D is the RPL Neighbour port.

  • Sub Ring:

    • ERPS version 2 supports sub-ring.

    • Control VLAN is VLAN 11;

    • Protected Instance includes VLAN 10 to 20;

    • GE 1/0/1 on Switch C is the RPL Owner port, and GE 1/0/3 on Switch A is the RPL Neighbour port.

MultipleRing2

1) Create ERPS Rings.

Configure Switch A.

Switch-A> enable

Switch-A# configure

Switch-A (config) # erps ring 1

Switch-A (ring-config) # description ERPS_RING_1

Switch-A (ring-config) # control-vlan 10

Switch-A (ring-config) # protected-instance 1

Switch-A (ring-config) # version 2

Switch-A (ring-config) # exit

Switch-A (config) # erps ring 2

Switch-A (ring-config) # description ERPS_RING_2

Switch-A (ring-config) # control-vlan 11

Switch-A (ring-config) # protected-instance 1

Switch-A (ring-config) # version 2

Switch-A (ring-config) # sub-ring

Switch-A (ring-config) # tc-notify erps ring 1

Switch-A (ring-config) # exit

Configure Switch B.

Switch-B> enable

Switch-B# configure

Switch-B (config) # erps ring 1

Switch-B (ring-config) # description ERPS_RING_1

Switch-B (ring-config) # control-vlan 10

Switch-B (ring-config) # protected-instance 1

Switch-B (ring-config) # version 2

Switch-B (ring-config) # exit

Configure Switch C.

Switch-C> enable

Switch-C# configure

Switch-C (config) # erps ring 2

Switch-C (ring-config) # description ERPS_RING_2

Switch-C (ring-config) # control-vlan 11

Switch-C (ring-config) # protected-instance 1

Switch-C (ring-config) # version 2

Switch-C (ring-config) # sub-ring

Switch-C (ring-config) # exit

Configure Switch D.

Switch-D> enable

Switch-D# configure

Switch-D (config) # erps ring 1

Switch-D (ring-config) # description ERPS_RING_1

Switch-D (ring-config) # control-vlan 10

Switch-D (ring-config) # protected-instance 1

Switch-D (ring-config) # version 2

Switch-D (ring-config) # exit

Switch-D (config) # erps ring 2

Switch-D (ring-config) # description ERPS_RING_2

Switch-D (ring-config) # control-vlan 11

Switch-D (ring-config) # protected-instance 1

Switch-D (ring-config) # version 2

Switch-D (ring-config) # sub-ring

Switch-D (ring-config) # tc-notify erps ring 1

Switch-D (ring-config) # exit

2) Create VLANs, map VLAN 10 to 20 to Instance 1.

Configure Switch A.

Switch-A (config) # vlan 10-20

Switch-A (config-vlan) # exit

Switch-A (config) # spanning-tree

Switch-A (config) # spanning-tree mode mstp

Switch-A (config) # spanning-tree mst configuration

Switch-A (config-mst) # instance 1 vlan 10-20

Switch-A (config-mst) # exit

Configure Switch B.

Switch-B (config) # vlan 10-20

Switch-B (config-vlan) # exit

Switch-B (config) # spanning-tree

Switch-B (config) # spanning-tree mode mstp

Switch-B (config) # spanning-tree mst configuration

Switch-B (config-mst) # instance 1 vlan 10-20

Switch-B (config-mst) # exit

Configure Switch C.

Switch-C (config) # vlan 10-20

Switch-C (config-vlan) # exit

Switch-C (config) # spanning-tree

Switch-C (config) # spanning-tree mode mstp

Switch-C (config) # spanning-tree mst configuration

Switch-C (config-mst) # instance 1 vlan 10-20

Switch-C (config-mst) # exit

Configure Switch D.

Switch-D (config) # vlan 10-20

Switch-D (config-vlan) # exit

Switch-D (config) # spanning-tree

Switch-D (config) # spanning-tree mode mstp

Switch-D (config) # spanning-tree mst configuration

Switch-D (config-mst) # instance 1 vlan 10-20

Switch-D (config-mst) # exit

3) Configure Port settings.

Configure Switch A, note that port 1/0/3 is the RPL Neighbour port of ERPS sub ring 2.

Switch-A (config) # interface gigabitEthernet 1/0/1

Switch-A (config-if) # switchport general allowed vlan 10-20 tagged

Switch-A (config-if) # no switchport general allowed vlan 1

Switch-A (config-if) # erps ring 1

Switch-A (config-if) # exit

Switch-A (config) # interface gigabitEthernet 1/0/2

Switch-A (config-if) # switchport general allowed vlan 10-20 tagged

Switch-A (config-if) # no switchport general allowed vlan 1

Switch-A (config-if) # erps ring 1

Switch-A (config-if) # exit

Switch-A (config) # interface gigabitEthernet 1/0/3

Switch-A (config-if) # switchport general allowed vlan 10-20 tagged

Switch-A (config-if) # no switchport general allowed vlan 1

Switch-A (config-if) # erps ring 2 rpl neighbour

Switch-A (config-if) # exit

Configure Switch B, note that port 1/0/2 is the RPL Owner port of ERPS major ring 1.

Switch-B (config) # interface gigabitEthernet 1/0/1

Switch-B (config-if) # switchport general allowed vlan 10-20 tagged

Switch-B (config-if) # no switchport general allowed vlan 1

Switch-B (config-if) # erps ring 1

Switch-B (config-if) # exit

Switch-B (config) # interface gigabitEthernet 1/0/2

Switch-B (config-if) # switchport general allowed vlan 10-20 tagged

Switch-B (config-if) # no switchport general allowed vlan 1

Switch-B (config-if) # erps ring 1 rpl owner

Switch-B (config-if) # exit

Configure Switch C, note that port 1/0/1 is the RPL Owner port of ERPS sub ring 2.

Switch-C (config) # interface gigabitEthernet 1/0/1

Switch-C (config-if) # switchport general allowed vlan 10-20 tagged

Switch-C (config-if) # no switchport general allowed vlan 1

Switch-C (config-if) # erps ring 2 rpl owner

Switch-C (config-if) # exit

Switch-C (config) # interface gigabitEthernet 1/0/2

Switch-C (config-if) # switchport general allowed vlan 10-20 tagged

Switch-C (config-if) # no switchport general allowed vlan 1

Switch-C (config-if) # erps ring 2

Switch-C (config-if) # exit

Configure Switch D, note that port 1/0/3 is the RPL Neighbour port of ERPS major ring 1.

Switch-D (config) # interface gigabitEthernet 1/0/1

Switch-D (config-if) # switchport general allowed vlan 10-20 tagged

Switch-D (config-if) # no switchport general allowed vlan 1

Switch-D (config-if) # erps ring 1

Switch-D (config-if) # exit

Switch-D (config) # interface gigabitEthernet 1/0/2

Switch-D (config-if) # switchport general allowed vlan 10-20 tagged

Switch-D (config-if) # no switchport general allowed vlan 1

Switch-D (config-if) # erps ring 2

Switch-D (config-if) # exit

Switch-D (config) # interface gigabitEthernet 1/0/3

Switch-D (config-if) # switchport general allowed vlan 10-20 tagged

Switch-D (config-if) # no switchport general allowed vlan 1

Switch-D (config-if) # erps ring 1 rpl neighbour

Switch-D (config-if) # exit

4) Verify the configuration.

After completing the configurations, run show erps ring to verify the configuration.

Run command on Switch C.

Switch-C # show erps ring all

Ring ID :2

Describe :ERPS_RING_2

Control Vlan :11

Protected Instance :1

WTR Timer Setting (min) :5 Running (s) :0

Guard Timer Setting (csec) :200 Running (csec) :0

Holdoff Timer Setting (deciseconds) :0 Running (deciseconds) :0

WTB Timer Running (csec) :0

Ring State :PROTECTION

RAPS_MEL :7

Revertive Mode :Revertive

Version :2

Sub-ring :Yes

Virtual-channel :No

TC-Notify :1

Notify-interval :2

Notify-threshold :3

Forced Switch Port :---

Manual Switch Port :---

Port Port Role Port Status Signal Status

Gi1/0/1 RPL Owner Discarding Failed

Gi1/0/2 Common Forwarding Non-Failed

5) Configuration Files.

Switch A configuration file.

!TL-SG3428

vlan 10-20

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

erps ring 2

description "ERPS_RING_2"

control-vlan 11

protected-instance 1

version 2

sub-ring

tc-notify erps ring 1

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

interface gigabitEthernet 1/0/1

erps ring 1

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

interface gigabitEthernet 1/0/2

erps ring 1

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

interface gigabitEthernet 1/0/3

erps ring 2 rpl neighbour

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

Switch B configuration file.

!TL-SG3428

vlan 10-20

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

interface gigabitEthernet 1/0/1

erps ring 1

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

interface gigabitEthernet 1/0/2

erps ring 1 rpl owner

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

Switch C configuration file.

!TL-SG3428

vlan 10-20

erps ring 2

description "ERPS_RING_2"

control-vlan 11

protected-instance 1

version 2

sub-ring

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

interface gigabitEthernet 1/0/1

erps ring 2 rpl owner

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

interface gigabitEthernet 1/0/2

erps ring 2

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

Switch D configuration file.

!TL-SG3428

vlan 10-20

erps ring 1

description "ERPS_RING_1"

control-vlan 10

protected-instance 1

version 2

erps ring 2

description "ERPS_RING_2"

control-vlan 11

protected-instance 1

version 2

sub-ring

tc-notify erps ring 1

spanning-tree

spanning-tree mode mstp

spanning-tree mst configuration

instance 1 vlan 10-20,

interface gigabitEthernet 1/0/1

erps ring 1

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

interface gigabitEthernet 1/0/2

erps ring 2

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

interface gigabitEthernet 1/0/2

erps ring 1 rpl neighbour

switchport general allowed vlan 10-20 tagged

no switchport general allowed vlan 1

Is this faq useful?

Your feedback helps improve this site.

Community

TP-Link Community

Still need help? Search for answers, ask questions, and get help from TP-Link experts and other users around the world.

Visit the Community >

From United States?

Get products, events and services for your region.