Good day, everyone!
This post talks about CE dual-homing access network design VPWS&ERPS. Please see more details displayed below.
BACKGROUND
In this scene, CE is used AR2240C, PE is used NE20E-S2F. CE1 connects to two PE, CE2 connects to two PE. There, we need to deploy two VPWS tunnels between CE1 and CE2.
For example CE1 connects with PE1 and PE2, while CE2 connects with PE3 and PE4. The topology is as per below figure.
Figure 1-1. VPWS scenarios 3 network topology

In this scenario, CE1 and CE2 just like connect through two Ethernet links, it is a ring, it need to configure the ring network protocol. In this case, we suggest deploy the ERPS. ERPS is a protocol defined by the International Telecommunication Union - Telecommunication Standardization Sector (ITU-T) to eliminate loops at Layer 2. It can interconnect with other Non-Huawei devices, and the convergence speed is faster than STP.
The ERPS design is as per below figure.
Figure 1-2. VPWS Scenarios 3 ERPS topology

As shown in figure above, we can configure two ring on the CE1 and CE2. Some service VLAN belong to ring 1 and the other service VLAN can belong to ring 2, so the two link can work at same time.
For this VPWS scenario, we can refer to these steps to deploy scenario 3 as per below:
configure the VPWS tunnel between the PE1 and PE3, PE2 and PE4;
configure the ERPS on the CE1 and CE2.
The PE configuration template is as below - the PE1 remote peer is PE3 and the PE2 remote peer is PE4. The below the configuration template shows PE1 and PE3; PE2 and PE4 configuration is similar.
Figure 1-3. VPWS scenario 3 PE1 configuration example
# mpls l2vpn mpls # mpls ldp remote-peer 10.0.0.3 remote-ip 10.0.0.3 # interface GigabitEthernet 1/1/0.1000 vlan-type dot1q 1000 mpls l2vc 10.0.0.3 1000 control-word # interface GigabitEthernet 1/1/0.1001 vlan-type dot1q 1001 mpls l2vc 10.0.0.3 1001 control-word # commit # |
Figure 1-4. VPWS scenario 3 PE3 configuration example
# mpls l2vpn mpls # mpls ldp remote-peer 10.0.0.1 remote-ip 10.0.0.1 # interface GigabitEthernet 0/3/4.1000 vlan-type dot1q 1000 mpls l2vc 10.0.0.1 1000 control-word # interface GigabitEthernet 0/3/4.1001 vlan-type dot1q 1001 mpls l2vc 10.0.0.1 1001 control-word # commit # |
CE needs to configure the VLAN and enable the ERPS; the configuration template is as per below figure.
Figure 1-5. VPWS scenario 3 CE1 configuration example
# vlan batch 1000 to 1001 # stp region-configuration instance 1 vlan 20 1000 instance 2 vlan 30 1001 active region-configuration # erps ring 1 control-vlan 20 protected-instance 1 wtr-timer 6 guard-timer 100 erps ring 2 control-vlan 30 protected-instance 2 wtr-timer 6 guard-timer 100 # interface GigabitEthernet1/0/0 portswitch port link-type trunk port trunk allow-pass vlan 20 30 1000 to 1001 stp disable erps ring 1 rpl owner erps ring 2 # interface GigabitEthernet3/0/0 portswitch port link-type trunk port trunk allow-pass vlan 20 30 1000 to 1001 stp disable erps ring 1 erps ring 2 rpl owner # |
Figure 1-6. VPWS scenario 3 CE2 configuration example
# vlan batch 1000 to 1001 # stp region-configuration instance 1 vlan 20 1000 instance 2 vlan 30 1001 active region-configuration # erps ring 1 control-vlan 20 protected-instance 1 wtr-timer 6 guard-timer 100 erps ring 2 control-vlan 30 protected-instance 2 wtr-timer 6 guard-timer 100 # interface GigabitEthernet1/0/0 portswitch port link-type trunk port trunk allow-pass vlan 20 30 1000 to 1001 stp disable erps ring 1 erps ring 2 # interface GigabitEthernet3/0/0 portswitch port link-type trunk port trunk allow-pass vlan 20 30 1000 to 1001 stp disable erps ring 1 erps ring 2 # |

