The port command specifies the port to be added to an ERPS ring and sets the port role.
The undo port command deletes a port from the ERPS ring and cancels the port role.
By default, ports are not added to ERPS rings, and no port roles are specified.
Parameter | Description | Value |
---|---|---|
interface-name |
Specifies the interface name. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
interface-type |
Specifies the interface type. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
interface-number |
Specifies the interface number. |
- |
rpl |
Specifies the port type to be added to an ERPS ring. |
- |
neighbour |
Specifies the port to be added to an ERPS ring as the RPL neighbor port. |
- |
owner |
Specifies the port to be added to an ERPS ring as the RPL owner port. |
- |
Usage Scenario
After an ERPS ring is created, run the port command to add Layer 2 ports to the ERPS ring to allow transmission of R-APS PDUs. Each device that is added to an ERPS ring is a node, and each node cannot have more than two ports being added to the ERPS ring.
ERPS defines three port roles: RPL owner port, RPL neighbor port (only in ERPSv2), and ordinary port. The link where the RPL owner port resides is the RPL.Prerequisites
Before adding a port to an ERPS ring, ensure that:
Configuration Impact
If any port has been added to the ERPS ring, the control VLAN cannot be changed. If the configured control VLAN needs to be deleted, run the undo port command in the ERPS ring view, and run the undo control-vlan command to delete the control VLAN.
Precautions
Before removing a port from an ERPS ring or changing the port role, run the shutdown command to shut down the port. Then remove the port or change the port role and run the undo shutdown command to enable the port. If the port is left disabled, traffic will be interrupted.
If ports added to an ERPS ring are all ordinary ports, any port on the device with the largest MAC address will be blocked.<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [~HUAWEI-GigabitEthernet0/1/1] portswitch [*HUAWEI-GigabitEthernet0/1/1] shutdown [*HUAWEI-GigabitEthernet0/1/1] commit [~HUAWEI-GigabitEthernet0/1/1] quit [~HUAWEI] erps ring 10 [*HUAWEI-erps-ring10] version v2 [*HUAWEI-erps-ring10] control-vlan 100 [*HUAWEI-erps-ring10] protected-instance all [*HUAWEI-erps-ring10] port GigabitEthernet 0/1/1 rpl owner