The port command adds a port to an ERPS ring and specifies a role for the port.
The undo port command deletes a port from an ERPS ring and cancels the port role.
By default, a port is not added to an ERPS ring, and no port role is specified.
port interface-type interface-number [ rpl { owner | neighbour } ]
undo port interface-type interface-number
Parameter | Description | Value |
---|---|---|
interface-type interface-number | Specifies the port to be added to an ERPS ring. interface-type specifies the interface type and interface-number specifies the interface number. |
- |
rpl { owner | neighbour } | Specifies the port to be added to an ERPS ring as the RPL owner port or RPL neighbor port. |
- |
Usage Scenario
After an ERPS ring is created, run the port command to add Layer 2 ports to the ERPS ring so that RAPS PDUs can be correctly forwarded. Each device in an ERPS ring is a node, and a maximum of two Layer 2 ports on each node can be added to the same ERPS ring.
An RPL owner port is responsible for blocking traffic over the Ring Protection Link (RPL) to prevent loops. An ERPS ring has only one RPL owner port.
When the node on which the RPL owner port resides receives an RAPS PDU indicating a link or node fault in an ERPS ring, the node unblocks the RPL owner port. Then the RPL owner port can send and receive traffic to ensure nonstop traffic forwarding.
The link where the RPL owner port resides is the RPL.
An RPL neighbor port is directly connected to an RPL owner port.
Both the RPL owner port and RPL neighbor ports are blocked in normal situations to prevent loops.
If an ERPS ring fails, both the RPL owner and neighbor ports are unblocked.
The RPL neighbor port helps reduce the number of FDB entry updates on the device where the RPL neighbor port resides.
Common ports are ring ports other than the RPL owner and neighbor ports.
A common port monitors the status of the directly connected ERPS link and sends RAPS PDUs to notify the other ports of its link status changes.
Prerequisites
The control VLAN and ERP instance have been configured using the control-vlan and protected-instance commands respectively in the ERPS ring view.
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.
Precautions
Before deleting a port from an ERPS ring or changing the port role, use the shutdown (interface view) command to disable the port. Then remove the port or change the port role and run the undo shutdown (interface view) command to enable the port. Otherwise, traffic forwarding may fail.
If ports added to an ERPS ring are all ordinary ports, any port on the device with the largest MAC address will be blocked.