Configuring ERPS from the CLI

Although RingV2 cannot be used concurrently with Ethernet Ring Protection Switching (ERPS), you might need to configure ERPS if your ISW ring will interact with rings on other platforms. ExtremeXOS (EXOS) switches can run with ERPS, for example, and so can some switches from other manufacturers.

When configuring a RingV2 ISW switch to interact with an EXOS switch running ERPS, keep the following principles in mind:
  • The key to connecting RingV2 rings with ERPS rings is ensuring that configuration parameters align in both systems.
  • ISW default values for some timings (associated with recovery of the ring) do not match EXOS defaults.
  • Some ISW variables have a different accepted variable length than the equivalent variables in EXOS.
  • Carefully test your configuration, using logs and other troubleshooting tools to understand ways in which the settings interact with each other.

The following examples provide guidance for configuring ERPS.

Initial Switch Configuration

The following commands disable STP and LLDP. They also enable C-Port on Port 1 and 2 on all switches.

#configure port 1-2
interface GigabitEthernet 1/1-2
#set C-Port
switchport hybrid port-type c-port
switchport mode hybrid
#disable LLDP
no lldp receive
no lldp transmit
#disable Spanning Tree Protocol
no spanning-tree

#disable Loop Protection
no loop-protect

Configuring MEP and ERPS on Switch 1 (RPL Owner)

#create mep 1 on port 1
mep 1 down domain port level 0 interface GigabitEthernet 1/1
#set vlan for MEP traffic
mep 1 vid 3001
#set id of peer mep
mep 1 peer-mep-id 5
#enable ccm; frames are to use priority 7, at a rate of 10pps
mep 1 cc 7 fr10s
#enable RAPS; frames are to use priority 7
mep 1 aps 7 raps
mep 2 down domain port level 0 interface GigabitEthernet 1/2
mep 2 mep-id 2
mep 2 vid 3001
mep 2 peer-mep-id 3
mep 2 cc 7 fr10s
mep 2 aps 7 raps
#create erps on port 1 and port 2
erps 1 major port0 interface GigabitEthernet 1/1 port1 interface GigabitEthernet 1/2
#set MEP ID for the corresponding port
erps 1 mep port0 sf 1 aps 1 port1 sf 2 aps 2
#set the RPL owner 
erps 1 rpl owner port1
#configure protected VLAN
erps 1 vlan 1

Configuring MEP and ERPS on Switch 2 (RPL Neighbor)

mep 3 down domain port level 0 interface GigabitEthernet 1/1
mep 3 mep-id 3
mep 3 vid 3001
mep 3 peer-mep-id 2
mep 3 cc 7 fr10s
mep 3 aps 7 raps
mep 4 down domain port level 0 interface GigabitEthernet 1/2
mep 4 mep-id 4
mep 4 vid 3001
mep 4 peer-mep-id 6
mep 4 cc 7 fr10s
mep 4 aps 7 raps
erps 1 major port0 interface GigabitEthernet 1/1 port1 interface GigabitEthernet 1/2
erps 1 mep port0 sf 3 aps 3 port1 sf 4 aps 4
#set the RPL neighbor
erps 1 rpl neighbor port0
erps 1 vlan 1

Configuring MEP and ERPS on Switch 3

mep os-tlv oui 0xC sub-type 0x1 value 0x2
mep 5 down domain port level 0 interface GigabitEthernet 1/1\
mep 5 mep-id 5
mep 5 vid 3001
mep 5 peer-mep-id 1 mac D8-84-66-56-FB-E4
mep 5 cc 7 fr10s
mep 5 aps 7 raps
mep 6 down domain port level 0 interface GigabitEthernet 1/2
mep 6 mep-id 6
mep 6 vid 3001
mep 6 peer-mep-id 4 mac D8-84-66-56-FE-2E
mep 6 cc 7 fr10s
mep 6 aps 7 raps
erps 1 major port0 interface GigabitEthernet 1/1 port1 interface GigabitEthernet 1/2
erps 1 mep port0 sf 5 aps 5 port1 sf 6 aps 6
erps 1 vlan 1

You can check the ERPS status with the show erps command. Below is the output from Switch 1 as configured in this example:

Sw1# show erps
(L=Link Up/Down; B=Blocked/Unblocked)      Maj RPL  RPL   RPL  FSM   R-APS
Gr Typ V Rev Port 0     L B Port 1     L B Grp Role Port  Blck State TX RX FOP
--+---+-+---+----------+-+-+----------+-+-+---+----+-----+----+-----+--+--+---
 1 Maj 2 Rev Gi 1/1     U U Gi 1/2     U B -   Ownr Port1 Y    IDLE  Y     N