< Home

port (ERPS ring view)

Function

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.

Format

port interface-type interface-number [ rpl { owner | neighbour } ]

undo port interface-type interface-number

Parameters

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.

-

Views

ERPS ring view

Default Level

2: Configuration level

Usage Guidelines

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.

ERPS defines three port roles: RPL owner port, RPL neighbor port (only in ERPSv2), and common port.
  • RPL owner port

    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.

  • RPL neighbor port

    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 port

    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.

  • Spanning Tree Protocol (STP), Rapid Ring Protection Protocol (RRPP), Smart Ethernet Protection (SEP), or Smart Link is not enabled on the port.
    • If the port has STP enabled, run the stp disable command in the interface view to disable STP.
    • If the port has RRPP enabled, run the undo ring ring-id command in the RRPP domain view to disable RRPP.
    • If the port has SEP enabled, run the undo sep segment segment-id command in the interface view to disable SEP.
    • If the port has Smart Link enabled, run the undo port command in the Smart Link group view to disable Smart Link.
  • ERPSv2 has been specified in the ERPS ring using the version v2 command if the port is specified as an RPL neighbor port.

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.

Example

# Add GE0/0/1 to ERPS ring 10, and set the port to the RPL owner port.
<HUAWEI> system-view
[HUAWEI] erps ring 10
[HUAWEI-erps-ring10] port gigabitethernet 0/0/1 rpl owner
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >