The erps ring protect-switch command configures the port blocking mode for an ERPS port.
By default, no port is blocked.
Usage Scenario
In case the ring protection link (RPL) has high bandwidth, blocking a link with low bandwidth and unblocking the RPL allow traffic to use the RPL and have more bandwidth. ERPSv2 supports both FS and MS modes for blocking an ERPS port.
Prerequisites
The port is not a Layer 3 port. If the port is a Layer 3 port, run the portswitch command to switch the port to the Layer 2 mode.
Configuration Impact
After an ERPS port is blocked by using FS or MS mode, the node on which the ERPS port resides sends R-APS (FS) or R-APS (MS) messages to the other nodes on the ERPS ring. ERPS recalculates the paths and finally unblocks the RPL owner port.
Precautions
<HUAWEI> system-view [~HUAWEI] erps ring 5 [*HUAWEI-erps-ring5] control-vlan 100 [*HUAWEI-erps-ring5] protected-instance all [*HUAWEI-erps-ring5] version v2 [*HUAWEI-erps-ring5] quit [*HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] portswitch [*HUAWEI-GigabitEthernet0/1/1] stp disable [*HUAWEI-GigabitEthernet0/1/1] erps ring 5 [*HUAWEI-GigabitEthernet0/1/1] commit [~HUAWEI-GigabitEthernet0/1/1] erps ring 5 protect-switch force